Skip to content

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

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

feat: multi sync example test token token standard api implementation#1782
Viktor-Kalashnykov-da wants to merge 13 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>
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>
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.

1 participant