Repository navigation
feat(sdk-core): canton end-investor offboarding and invite-cancel intents (CHALO-2278) - #10243
Open
hrishikeshjain wants to merge 1 commit into
Open
hrishikeshjain wants to merge 1 commit into
hrishikeshjain wants to merge 1 commit into
Conversation
… intents Pass-through plumbing for the two new DTCC intents (public-types #504), mirroring the existing onboarding intents exactly: - cantonEndInvestorOffboarding: requires endInvestorPartyId (mirrors the offer intent); the prepared transaction is built server-side by WP/IMS, which discovers the Daml existingContracts lists from the ACS. - cantonEndInvestorOnboardingCancel: requires txRequestId referencing the stored pending offer (mirrors accept/reject); unlike those it is signed by the participant's wallet. No new TransactionType and nothing in sdk-coin-canton: WP wraps IMS-prepared transactions in the SDK CantonCommandBuilder, so decode, explain, verify and signing already handle these as CantonCommand. Hooks were bypassed for this commit (husky shim absent in a worktree installed with --ignore-scripts); prettier and eslint were run manually on the changed files instead. TICKET: CHALO-2278 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Contributor
Contributor
|
|
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review for a one-time review, or @claude review always to subscribe this PR to a review on every future push.
Tip: disable this comment in your organization's Code Review settings.
at31416
approved these changes
Nov 26, 2026
This branch has not been deployed
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.
What
sdk-core pass-through plumbing for two new DTCC Canton intents,
cantonEndInvestorOffboardingandcantonEndInvestorOnboardingCancel(BitGo/public-types#504), mirroring the existing onboarding intents exactly.Linear: CHALO-2278
Why no new TransactionType / builder
Verified on master: wallet-platform wraps IMS-prepared onboarding transactions in the SDK's
CantonCommandBuilder, so they decode, explain, verify and sign asTransactionType.CantonCommand. Offboarding/cancel take the same path — nothing changes insdk-coin-canton.verifyCantonCommandTransactionstays lenient (nocantonCommandParams), same as onboarding.Changes (all
modules/sdk-core)utils/mpcUtils.ts:cantonEndInvestorOnboardingCanceladded to the canton txRequestId-required assert list;cantonEndInvestorOffboardingassertsendInvestorPartyId(mirrors the offer intent); both added to the no-recipients-required list.utils/tss/recipientUtils.ts: both added tointentsWithoutRecipients(+ the mirrored lists in its test).wallet/wallet.ts: twoprebuildTransactioncases — cancel mirrors accept (forwardstxRequestId,sequenceId = txRequestId); offboarding mirrors offer (validates and forwardsendInvestorPartyId).wallet/iWallet.ts/utils/tss/baseTypes.ts:endInvestorPartyIddoc comments extended (field already exists;params.typeandintentTypeare plain strings, no unions to extend).Semantics worth noting for review
Cancel is signed by the participant's wallet (it exercises the participant-controlled
EndInvestorOnboardingOffer_Cancel/Request_Cancel), whereas accept/reject are signed by the end investor's wallet — so retail/WP callers invoke it on the participant wallet, same as offboarding.Testing
yarn build(full sdk-core tsc) clean.recipientUtilsunit tests: 52 passing (both mirrored lists updated).mpcUtils.canton.tscould not load locally (native@bitgo/secp256k1skipped by--ignore-scriptsinstall) — it only covers Broadridge; CI runs it.Related
public-types: BitGo/public-types#504 · IMS: BitGo/indexerdb-microservice#2430 · indexer: BitGo/indexer#9844, BitGo/indexer#9845
🤖 Generated with Claude Code