Add Token Registry utilities + Integration tests#668
Draft
RodrigoAD wants to merge 5 commits into
Draft
Conversation
add integration tests with registry
There was a problem hiding this comment.
Pull request overview
This PR introduces a new registry-kit Go module providing Canton Registry utility onboarding/mint/supply verification helpers plus CCIP “token registry” utilities, and wires these utilities into existing CCIP integration tests.
Changes:
- Added
registry-kitCLI + config/state management for devnet Registry onboarding, minting, and CCIP TokenAdminRegistry linking. - Added registry/CCIP utility helpers (ACS discovery, choice-context building, disclosures, pool deploy/send/release helpers, package/DAR checks).
- Updated integration tests to consume
registry-kitand added generated bindings / contract package metadata for Utility DARs.
Reviewed changes
Copilot reviewed 40 out of 58 changed files in this pull request and generated 11 comments.
Show a summary per file
| File | Description |
|---|---|
| registry-kit/registry/verify.go | Adds holding verification utilities (template + interface view + aggregated balance). |
| registry-kit/registry/supply.go | Adds supply aggregation query over Registry Holding contracts. |
| registry-kit/registry/packages.go | Adds Utility DAR loading and package presence checks. |
| registry-kit/registry/onboarding.go | Adds devnet onboarding flows for Provider/Registrar services + instrument configuration creation. |
| registry-kit/registry/mint.go | Adds local mint flow via AllocationFactory with manually assembled choice-context. |
| registry-kit/registry/mint_devnet.go | Adds devnet mint flow using DA operator backend choice-context + disclosures. |
| registry-kit/registry/discover.go | Adds ACS discovery for Registry service/factory contracts. |
| registry-kit/registry/context.go | Adds Registry mint choice-context construction helpers. |
| registry-kit/registry/bootstrap.go | Adds local bootstrap for Registry services (operator=provider=registrar). |
| registry-kit/registry/acs.go | Adds generic ACS contract lookup helpers by template/entity. |
| registry-kit/registry-kit.yaml.example | Adds example devnet configuration (TOML-formatted). |
| registry-kit/operator/backend.go | Adds HTTP client for DA operator backend choice-context + disclosed contract parsing. |
| registry-kit/main.go | Adds CLI entrypoint for canton-registry-kit. |
| registry-kit/ledger/parse.go | Adds transaction parsing helpers (created contract IDs, lock/burn & release outputs). |
| registry-kit/ledger/devnet_client.go | Adds devnet client connection helper using CLDF RPC participant + auth. |
| registry-kit/ledger/ctf_client.go | Adds participant-backed command submission wrapper (create/exercise + disclosures). |
| registry-kit/ledger/client.go | Adds ledger client interface abstraction for registry-kit. |
| registry-kit/go.mod | Introduces standalone Go module for registry-kit. |
| registry-kit/config/state.go | Adds persisted state file for CLI progress tracking. |
| registry-kit/config/config.go | Adds config loader/validator and party-role selection helpers. |
| registry-kit/config/config_test.go | Adds config + state round-trip test. |
| registry-kit/cmd/runtime.go | Adds CLI runtime (config/state loading, connecting, operator client, timeouts). |
| registry-kit/cmd/root.go | Adds Cobra root command + global flags. |
| registry-kit/cmd/operator.go | Adds CLI commands for TAR linking and validation. |
| registry-kit/cmd/onboarding.go | Adds CLI onboarding commands (package checks, provider service request/wait, registrar onboarding, discovery). |
| registry-kit/cmd/issuer.go | Adds CLI issuer lifecycle commands (create instrument, mint, accept mint, query supply). |
| registry-kit/ccip/validate.go | Adds read-only TAR/pool mapping validation and holdings visibility checks. |
| registry-kit/ccip/send.go | Adds BurnMintTokenPool LockOrBurn helpers + SendingMessage creation and TAR factory config. |
| registry-kit/ccip/release.go | Adds BurnMintTokenPool ReleaseFromTicket helper. |
| registry-kit/ccip/register.go | Adds TAR token pool registration helpers (sequence-based + explicit actAs via ledger client). |
| registry-kit/ccip/pool_context.go | Adds disclosure builders and nested extraContext construction for pool send/release/execute. |
| registry-kit/ccip/pool_context_v1.go | Adds “latest bindings” variant of pool extraContext for integration-test compatibility. |
| registry-kit/ccip/deploy.go | Adds helpers to deploy rate limiters and burn/mint pools for a given owner party. |
| registry-kit/ccip/bundle.go | Adds CLDF operations bundle helper. |
| integration-tests/go.mod | Adds local replace for registry-kit and switches canton dep to local v0.0.0. |
| integration-tests/ccip/registry_send_helpers_test.go | Adds helpers for building pool disclosures/choice-context for registry token pool tests. |
| integration-tests/ccip/ccip_execute_token_registry_test.go | Adds full receive-flow integration test using Registry holdings + registrar-owned token pool. |
| contracts/contracts.go | Adds Utility DAR packages + pinned package IDs + splice package constants. |
| contracts/cmd/bindings/main.go | Adjusts bindings generation to skip prim/stdlib dalfs. |
| bindings/generated/latest/utility/registry_holding_v0/tuple2.go | Adds Tuple2 shim type required by utility DAR bindings. |
| bindings/generated/latest/utility/credential_v0/tuple2.go | Adds Tuple2 shim type required by utility DAR bindings. |
| bindings/generated/latest/utility/credential_v0/credential_v0.go | Adds generated utility credential bindings. |
| bindings/generated/latest/splice/splice_api_token_allocation_v1/splice_api_token_allocation_v1.go | Adds generated splice allocation bindings. |
| bindings/generated/latest/splice/splice_api_token_allocation_instruction_v1/splice_api_token_allocation_instruction_v1.go | Adds generated splice allocation-instruction bindings. |
| bindings/generated/latest/splice/splice_api_featured_app_v1/splice_api_featured_app_v1.go | Adds generated splice featured-app bindings. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.