Skip to content
CCPEDIAby Unity Nodes
App Development

USDCx and Token Standard V2: committed allocations and executor validation

5 posts74 views2 likesLast activity 3d ago

CIPs mentionedCIP-0112
  1. JoaicoOP 1

    Hi all,

    Joaico is building an open-source settlement pattern on Canton. In our OTSP flow, payment is released from a V2 allocation only when an authorized supplier attests that an off-ledger service (airtime, data, or eSIM) was delivered. We tested this end to end on LocalNet with TestTokenV2 1.0.2 and Canton 3.5.6. The executor is an external party with a 2-of-3 signing threshold, and settlement goes through SettlementFactory_SettleBatch.

    Before we target USDCx, we’d like to confirm how its registry behaves under CIP-0112. The discussions on committed allocations and cancellation policy and the V2 DevNet are helpful context.

    1. Does USDCx support V2 allocations with committed = True, so the authorizer cannot withdraw before the settlement deadline? If not yet, is it on the roadmap?
    2. How does the USDCx registry validate actors? Does SettleBatch require actors to equal settlement.executors, Allocation_Settle require admin + executors, and Allocation_Cancel require the executors, as in the V2 interface defaults and TestTokenV2?
    3. With multiple executors listed, must all of them authorize settle and cancel, or can any one act?
    4. After the settlement deadline, is the authorizer’s withdrawal the only way funds return, or can the registry expire the allocation?
    5. For an executor settling USDCx allocations, which contracts does the off-ledger API return as explicit disclosures (settlement factory, locked holdings, others), and is that API open to app operators?
    6. Is USDCx available on the Token Standard V2 DevNet for testing?

    Happy to share our test setup if it’s useful. Thanks!

    Don, Joaico (joaico.com)

  2. Johan_Sjodin

    Hi @Joaico,

    Good to see you are building on Token Standard V2. Here are the answers to your questions regarding the USDCx behavior under CIP-0112:

    1. Yes, the DA Registry supports Token Standard V2 including as part of the 0.14 release(including committed settlement), and with that also USDCx. Please make sure to use the latest 0.14.13 dars (as those contain a fix for the committed allocations).
    2. It works as per the default Splice implementation, i.e., actors are required to to equal the settlement.executors (and Allocation_Settle is controlled jointly by admin and executors).
    3. All executors must jointly settle and cancel.
    4. For committed allocations, authorizers can only withdraw after the settlement time. The executors can cancel at any time. The admin can currently not cancel (the expiresAt field in the allocation view is planned for a future release, after which the admin can withdraw as well after the expiresAt time).
    5. The off-ledger API return the settlement factory and the locked holdings among the explicitly disclosed contracts, but also the following (per involved instrument):
      • instrument configuration
      • blocklists
      • credentials
    6. It is not available on DevNet, but is available on TestNet and MainNet. The dedicated Token Standard V2 DevNet has been decommissioned.

    Hope that helps.

    Best Regards,
    Johan

  3. Joaico 1

    Thanks, Johan, this is exactly what we needed. We’ll move to the 0.14.13 DARs, add the instrument configuration and credential disclosures to our settle path, and target TestNet for USDCx. Will report back once it runs. Don

  4. Joaico

    One follow-up, Johan: for an app operator like Joaico that doesn’t yet run a validator, what’s the recommended path to TestNet access to test USDCx? And can an app operator call the registry’s off-ledger API directly to get the settlement factory, locked holdings and per-instrument contracts, or do those come through the registry operator or a wallet provider? That decides how our settle path gets its disclosures. Thanks, Don

  5. Johan_Sjodin
    Joaico:

    TestNet access to test USDCx?

    Here are some documentation covering the different environments, their intended use, and how to access them:

    Canton Network Docs

    Network Environments - The Global Synchronizer - Canton Network Docs

    Public infrastructure backbone of Canton Network

    DA Apps

    Quickstart - DA Apps

    In order to onboard as a Registry Provider, the prerequisites detailed below must be completed.

    You don’t necessarily need to run a validator yourself, you could consider using an external party.

    The DA Registry’s token standard endpoints are publicly accessible. As with all token standard endpoints, the arguments that are intended to be passed to the choice must be provided in the body of the POST request. For example, for the settlement endpoint, you need to include the corresponding allocation CIDs to settle (which executors can do, as they are observers on those contract instances). A wallet with token standard v2 support, would also hit those endpoints in the back.