Skip to content

feat: multi sync example test token token standard api implementation#1782

Closed
Viktor-Kalashnykov-da wants to merge 46 commits into
wiktor/multisync-examplefrom
wiktor/multisync-example-token-standard-offledger-api
Closed

feat: multi sync example test token token standard api implementation#1782
Viktor-Kalashnykov-da wants to merge 46 commits into
wiktor/multisync-examplefrom
wiktor/multisync-example-token-standard-offledger-api

Conversation

@Viktor-Kalashnykov-da

Copy link
Copy Markdown

Added implementation of Asset Registry for Test Token (available inside docs/wallet-integration-guide/examples/scripts/15-multi-sync/_registry folder). The registry is started and stopped inside 15-multi-sync example script.
The following APIs are implemented:

  1. Metadata API - endpoints '/registry/metadata/v1/info', 'registry/metadata/v1/instruments' and '/registry/metadata/v1/instruments/:instrumentId' (based on token-metadata-v1.yaml)
  2. Transfer Instruction API - endpoints '/registry/transfer-instruction/v1/transfer-factory', '/registry/transfer-instruction/v1/:transferInstructionId/choice-contexts/accept', '/registry/transfer-instruction/v1/:transferInstructionId/choice-contexts/reject' and '/registry/transfer-instruction/v1/:transferInstructionId/choice-contexts/withdraw' (based on transfer-instruction-v1.yaml)
  3. Allocation Instruction API - endpoint '/registry/allocation-instruction/v1/allocation-factory' (based on allocation-instruction-v1.yaml)
  4. Allocation API - endpoints '/registry/allocations/v1/:allocationId/choice-contexts/execute-transfer', /registry/allocations/v1/:allocationId/choice-contexts/withdraw' and '/registry/allocations/v1/:allocationId/choice-contexts/cancel' (based on allocation-v1.yaml)
    The technical stack:
    NodeJS (built-in Wallet Gateway)
    Typescript (built-in Wallet Gateway)

HTTP API based on NodeJS is started inside example 15, the routes and REST API definitions are generated based on YAML files mentioned in points (1-4)

Example 15 uses newly created Test Toke registry for operations with TestToken asset

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
… from docs/wallet-integration-guide/examples/package.json

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
…nRules Contract to usage of 2 contracts of the same type but on different synchronizers

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: Viktor-Kalashnykov-da <viktor.kalashnykov@digitalasset.com>
Signed-off-by: Viktor-Kalashnykov-da <viktor.kalashnykov@digitalasset.com>
…edBefore and validUntil fields

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
…r in the final step

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
…ntation for example #15

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
…mespace/state/client (and utility type as well)

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Comment thread docs/wallet-integration-guide/examples/scripts/15-multi-sync/_trade_ops.ts Dismissed
Comment thread docs/wallet-integration-guide/examples/scripts/15-multi-sync/_trade_ops.ts Dismissed
@Viktor-Kalashnykov-da Viktor-Kalashnykov-da changed the base branch from main to wiktor/multisync-example May 15, 2026 17:59
…to Asset Registry

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
@Viktor-Kalashnykov-da Viktor-Kalashnykov-da marked this pull request as ready for review May 15, 2026 19:35
@Viktor-Kalashnykov-da Viktor-Kalashnykov-da requested review from a team as code owners May 15, 2026 19:35
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
…i-sync tests

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

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
… for multi-sync

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

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
jarekr-da and others added 8 commits May 20, 2026 10:09
Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
…cts creation (for minting of Tokens by Token Admin)

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
…rated dar files

Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
Signed-off-by: jarekr-da <jaroslaw.ratajski@digitalasset.com>
…-token-standard-offledger-api

Signed-off-by: Viktor-Kalashnykov-da <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
@jarekr-da jarekr-da force-pushed the wiktor/multisync-example branch from 563df2d to 98dfc85 Compare May 20, 2026 17:18
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
…tation purpose), because the mentioned DAR is not part of Splice release yet

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
…-token-standard-offledger-api

Signed-off-by: Viktor-Kalashnykov-da <viktor.kalashnykov@digitalasset.com>
…R is vetted only on app synchronizer and Trading App DAR is vetted only on global synchronizer

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
…s for example 15

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
… the mentioned DAR is vetted both on App Sync and Global Sync

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
…ed on both private and global syncs

Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
Signed-off-by: vkalashnykov <viktor.kalashnykov@digitalasset.com>
@jarekr-da jarekr-da marked this pull request as draft June 10, 2026 10:39
@jarekr-da

Copy link
Copy Markdown
Contributor

code extracted to separate branch and merged to base

@jarekr-da jarekr-da closed this Jun 11, 2026
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