Skip to content

[PoC] Ressaign correction#1714

Merged
Viktor-Kalashnykov-da merged 9 commits into
wiktor/multisync-examplefrom
jarekrmultisync-example_correction1
May 8, 2026
Merged

[PoC] Ressaign correction#1714
Viktor-Kalashnykov-da merged 9 commits into
wiktor/multisync-examplefrom
jarekrmultisync-example_correction1

Conversation

@jarekr-da
Copy link
Copy Markdown
Contributor

@jarekr-da jarekr-da commented May 6, 2026

THis is PoC mostly genrated using agent - just to show working example
This is only demonstration: do not merge

  1. removed one manual reassignment - maybe second also can be
    (one manual reassignment needed)
  2. removed party.ts
  3. improved logs

Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
options?: Partial<{
expectHeavyLoad?: boolean
grantUserRights?: boolean
skipExistenceCheck?: boolean
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is not a good solution - only quickly generated,
actually change code below to check if party exists on given synchronizer (if provided)

@jarekr-da jarekr-da changed the title Ressaign correction [Edit Ressaign correction May 6, 2026
@jarekr-da jarekr-da changed the title [Edit Ressaign correction [PoC] Ressaign correction May 6, 2026
- Remove reassignBobContractsToGlobal (step 6c): Bob mints Token on
  app-synchronizer and Canton automatically reassigns to global when the
  allocation is prescribed there.
- Remove party.ts utility: use SDK's party.external.create().sign().execute()
  directly for registering parties on additional synchronizers.
- Add skipExistenceCheck option to SDK's SignedPartyCreationService.execute()
  to allow re-registering an existing party on a new synchronizer.

Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
@jarekr-da jarekr-da force-pushed the jarekrmultisync-example_correction1 branch from 4be7aa0 to 9ca212e Compare May 6, 2026 10:40
jarekr-da added 5 commits May 6, 2026 12:57
Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
Omit<OperationBodyRequest<Operation>, UnusedParams | RequiredParams>
>

export interface ReassignParams {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually we do not use this function in this version of example....but only cause we did quite artificial hack with Bob Transfer - so I keep it -> Maybe it is actually better to keep it

Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
* Self-transfers Alice's TestToken on app-synchronizer via TransferFactory_Transfer.
* Both TokenRules (the factory) and Alice's Token have been reassigned to app-synchronizer
* in step 11c, so the submission targets app-synchronizer.
* Bob self-transfers a portion of his remaining TestToken holding from global
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is "hack" that allows to get away without use of sdk.ledger.internal reassign.
causes auto-reassign ot TokenRules to app-synchronizer
but really feels like hack

* Replaced location of DARs of TradeApp V1 and TestToken V1

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>

* Improvement: replaced Bob's self transfer of Tokens to reassignment of Token and Token Rules contracts. Updated documentation for example

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>

* Fix: added splice-test-token-v1 DAR to example

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>

* Improvement: added changes in README file of example and exluded example 15 from single sync tests in CI

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>

---------

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
@Viktor-Kalashnykov-da Viktor-Kalashnykov-da marked this pull request as ready for review May 8, 2026 08:39
@Viktor-Kalashnykov-da Viktor-Kalashnykov-da requested review from a team as code owners May 8, 2026 08:39
@Viktor-Kalashnykov-da Viktor-Kalashnykov-da merged commit f512d2f into wiktor/multisync-example May 8, 2026
3 of 4 checks passed
@Viktor-Kalashnykov-da Viktor-Kalashnykov-da deleted the jarekrmultisync-example_correction1 branch May 8, 2026 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants