feat(amulet-drip): batch Amulet distribution CLI with UTXO selection, tx verification, and build.sbt integration#5233
Open
anhlh2311 wants to merge 15 commits intocanton-network:mainfrom
Open
Conversation
Signed-off-by: Le Hoang Anh <[email protected]>
…es with tests Signed-off-by: Le Hoang Anh <[email protected]>
… tx verification Signed-off-by: Le Hoang Anh <[email protected]>
…, rich errors Signed-off-by: Le Hoang Anh <[email protected]>
Signed-off-by: Le Hoang Anh <[email protected]>
Signed-off-by: Le Hoang Anh <[email protected]>
Signed-off-by: Le Hoang Anh <[email protected]>
…start script dependencies Signed-off-by: Le Hoang Anh <[email protected]>
…g guide Signed-off-by: Le Hoang Anh <[email protected]>
Signed-off-by: Le Hoang Anh <[email protected]>
…auth flow, and troubleshooting Signed-off-by: Le Hoang Anh <[email protected]>
Signed-off-by: Le Hoang Anh <[email protected]>
Signed-off-by: Le Hoang Anh <[email protected]>
Signed-off-by: Le Hoang Anh <[email protected]>
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.
Summary
Adds
amulet-drip, a general-purpose CLI tool for batch-distributing Amulet ($CC) tokens to multiple recipients on a Canton/Splice network.Reads a CSV of party IDs (with optional amounts), transfers Amulet from a funded internal sender party to each recipient using the Splice Token Standard v1 TransferFactory API, and writes a JSON report of the results.
Key features
submit-and-wait-for-transaction(not just completion) to parse created Amulet contracts and identify receiver vs changeparty,amount/party,expected_amount/ party-only formatsArchitecture
canton-json-api-v2-openapifor Ledger API,transfer-instruction-openapifor TransferFactory)party-allocatorproject structure and conventionsbuild.sbtwith npm lifecycle tasks (build, test, lint, fix)Files
amulet-drip/src/— logger, config, csv-parser, holdings, amulet-transfer, index (CLI)amulet-drip/__tests__/— config, csv-parser, holdings testsamulet-drip/README.md— architecture diagrams (Mermaid), usage guide, env var referenceamulet-drip/TESTING.md— local dev guide with verified port reference, auth flow, troubleshootingbuild.sbt— project definition + root aggregate registrationPull Request Checklist
Cluster Testing
/cluster_teston this PR to request it, and ping someone with access to the DA-internal system to approve it./hdm_teston this PR to request it, and ping someone with access to the DA-internal system to approve it./lsu_teston this PR to request it, and ping someone with access to the DA-internal system to approve it.PR Guidelines
notes.
Fixes #n, and mention issues worked on using#nuse your favorite screenshot tool
Merge Guidelines