USDCx and Token Standard V2: committed allocations and executor validation
- 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.
- 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? - How does the USDCx registry validate actors? Does
SettleBatchrequire actors to equalsettlement.executors,Allocation_Settlerequire admin + executors, andAllocation_Cancelrequire the executors, as in the V2 interface defaults and TestTokenV2? - With multiple executors listed, must all of them authorize settle and cancel, or can any one act?
- After the settlement deadline, is the authorizer’s withdrawal the only way funds return, or can the registry expire the allocation?
- 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?
- 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)
- Does USDCx support V2 allocations with
- 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:
- 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.13dars (as those contain a fix for the committed allocations). - It works as per the default Splice implementation, i.e.,
actorsare required to to equal thesettlement.executors(andAllocation_Settleis controlled jointly byadminandexecutors). - All executors must jointly settle and cancel.
- For committed allocations, authorizers can only withdraw after the settlement time. The
executorscan cancel at any time. Theadmincan currently not cancel (theexpiresAtfield in the allocation view is planned for a future release, after which the admin can withdraw as well after theexpiresAttime). - 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
- 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 - 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
- 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
- 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
- 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 AppsQuickstart - 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
executorscan do, as they are observers on those contract instances). A wallet with token standard v2 support, would also hit those endpoints in the back.