@fairmint/canton-node-sdk 0.0.98 → 0.0.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierignore +10 -0
- package/README.md +0 -1
- package/build/src/clients/index.d.ts +1 -1
- package/build/src/clients/index.d.ts.map +1 -1
- package/build/src/clients/index.js +1 -1
- package/build/src/clients/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/authenticated-user/get.d.ts +19 -32
- package/build/src/clients/ledger-json-api/operations/v2/authenticated-user/get.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/authenticated-user/get.js +6 -5
- package/build/src/clients/ledger-json-api/operations/v2/authenticated-user/get.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.d.ts +3 -17
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.js +4 -6
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit-reassignment.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts +17 -31
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.js +5 -7
- package/build/src/clients/ledger-json-api/operations/v2/commands/async/submit.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/completions.d.ts +9 -23
- package/build/src/clients/ledger-json-api/operations/v2/commands/completions.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/completions.js +6 -8
- package/build/src/clients/ledger-json-api/operations/v2/commands/completions.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/index.d.ts +3 -3
- package/build/src/clients/ledger-json-api/operations/v2/commands/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/index.js +3 -3
- package/build/src/clients/ledger-json-api/operations/v2/commands/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.d.ts +73 -85
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.js +16 -16
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-reassignment.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.d.ts +30 -44
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.js +7 -8
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction-tree.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts +20 -34
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.js +5 -7
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait-for-transaction.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts +20 -34
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.js +5 -7
- package/build/src/clients/ledger-json-api/operations/v2/commands/submit-and-wait.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-completions.d.ts +8 -11
- package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-completions.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-completions.js +5 -11
- package/build/src/clients/ledger-json-api/operations/v2/commands/subscribe-to-completions.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.d.ts +15 -28
- package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.js +14 -13
- package/build/src/clients/ledger-json-api/operations/v2/events/get-events-by-contract-id.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/idps/delete-idp.d.ts +8 -21
- package/build/src/clients/ledger-json-api/operations/v2/idps/delete-idp.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/idps/delete-idp.js +5 -4
- package/build/src/clients/ledger-json-api/operations/v2/idps/delete-idp.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/idps/get-idp.d.ts +16 -29
- package/build/src/clients/ledger-json-api/operations/v2/idps/get-idp.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/idps/get-idp.js +6 -5
- package/build/src/clients/ledger-json-api/operations/v2/idps/get-idp.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/idps/get.d.ts +15 -28
- package/build/src/clients/ledger-json-api/operations/v2/idps/get.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/idps/get.js +6 -5
- package/build/src/clients/ledger-json-api/operations/v2/idps/get.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/idps/index.d.ts +2 -2
- package/build/src/clients/ledger-json-api/operations/v2/idps/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/idps/index.js +2 -2
- package/build/src/clients/ledger-json-api/operations/v2/idps/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/idps/patch-idp.d.ts +28 -41
- package/build/src/clients/ledger-json-api/operations/v2/idps/patch-idp.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/idps/patch-idp.js +9 -8
- package/build/src/clients/ledger-json-api/operations/v2/idps/patch-idp.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/idps/post.d.ts +24 -37
- package/build/src/clients/ledger-json-api/operations/v2/idps/post.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/idps/post.js +8 -7
- package/build/src/clients/ledger-json-api/operations/v2/idps/post.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/index.d.ts +7 -7
- package/build/src/clients/ledger-json-api/operations/v2/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/index.js +7 -7
- package/build/src/clients/ledger-json-api/operations/v2/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/allocate-party.d.ts +17 -30
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/allocate-party.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/allocate-party.js +7 -6
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/allocate-party.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/create-user.d.ts +51 -64
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/create-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/create-user.js +12 -11
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/create-user.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.d.ts +21 -34
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.js +8 -7
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-package-version.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-packages.d.ts +26 -39
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-packages.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-packages.js +11 -10
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/get-preferred-packages.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.d.ts +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.js +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/upload-dar.d.ts +11 -24
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/upload-dar.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/upload-dar.js +11 -11
- package/build/src/clients/ledger-json-api/operations/v2/interactive-submission/upload-dar.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-package-status.d.ts +13 -25
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-package-status.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-package-status.js +9 -7
- package/build/src/clients/ledger-json-api/operations/v2/packages/get-package-status.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/get.d.ts +9 -23
- package/build/src/clients/ledger-json-api/operations/v2/packages/get.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/get.js +7 -6
- package/build/src/clients/ledger-json-api/operations/v2/packages/get.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/index.d.ts +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/index.js +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/post.d.ts +13 -25
- package/build/src/clients/ledger-json-api/operations/v2/packages/post.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/packages/post.js +13 -11
- package/build/src/clients/ledger-json-api/operations/v2/packages/post.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.d.ts +4 -18
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-participant-id.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-party-details.d.ts +14 -27
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-party-details.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-party-details.js +8 -7
- package/build/src/clients/ledger-json-api/operations/v2/parties/get-party-details.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get.d.ts +7 -21
- package/build/src/clients/ledger-json-api/operations/v2/parties/get.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get.js +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/get.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/post.d.ts +25 -38
- package/build/src/clients/ledger-json-api/operations/v2/parties/post.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/post.js +23 -22
- package/build/src/clients/ledger-json-api/operations/v2/parties/post.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.d.ts +19 -33
- package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.js +1 -2
- package/build/src/clients/ledger-json-api/operations/v2/parties/update-party-details.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.d.ts +12 -26
- package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.js +13 -14
- package/build/src/clients/ledger-json-api/operations/v2/state/get-active-contracts.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.d.ts +7 -21
- package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-connected-synchronizers.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.d.ts +11 -24
- package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.js +6 -5
- package/build/src/clients/ledger-json-api/operations/v2/state/get-latest-pruned-offsets.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.d.ts +4 -18
- package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/get-ledger-end.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/index.d.ts +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/index.js +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/subscribe-to-active-contracts.d.ts +21 -24
- package/build/src/clients/ledger-json-api/operations/v2/state/subscribe-to-active-contracts.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/state/subscribe-to-active-contracts.js +15 -19
- package/build/src/clients/ledger-json-api/operations/v2/state/subscribe-to-active-contracts.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-flats.d.ts +250 -262
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-flats.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-flats.js +20 -18
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-flats.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.d.ts +55 -69
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-id.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.d.ts +55 -69
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-by-offset.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.d.ts +16 -28
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.js +12 -13
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-id.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.d.ts +16 -28
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.js +12 -13
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-transaction-tree-by-offset.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-trees.d.ts +181 -193
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-trees.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-trees.js +20 -18
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-trees.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.d.ts +5 -20
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.js +3 -3
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-id.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.d.ts +105 -119
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/get-update-by-offset.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/index.d.ts +5 -5
- package/build/src/clients/ledger-json-api/operations/v2/updates/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/index.js +5 -5
- package/build/src/clients/ledger-json-api/operations/v2/updates/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-flats.d.ts +65 -68
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-flats.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-flats.js +11 -13
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-flats.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-trees.d.ts +65 -68
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-trees.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-trees.js +10 -12
- package/build/src/clients/ledger-json-api/operations/v2/updates/subscribe-to-trees.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/utils/format-normalizers.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/updates/utils/format-normalizers.js +46 -16
- package/build/src/clients/ledger-json-api/operations/v2/updates/utils/format-normalizers.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/create-user.d.ts +33 -47
- package/build/src/clients/ledger-json-api/operations/v2/users/create-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/create-user.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/delete-user.d.ts +5 -19
- package/build/src/clients/ledger-json-api/operations/v2/users/delete-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/delete-user.js +1 -2
- package/build/src/clients/ledger-json-api/operations/v2/users/delete-user.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/get-user.d.ts +14 -27
- package/build/src/clients/ledger-json-api/operations/v2/users/get-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/get-user.js +7 -7
- package/build/src/clients/ledger-json-api/operations/v2/users/get-user.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.d.ts +28 -42
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.js +1 -2
- package/build/src/clients/ledger-json-api/operations/v2/users/grant-user-rights.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/index.d.ts +4 -4
- package/build/src/clients/ledger-json-api/operations/v2/users/index.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/index.js +4 -4
- package/build/src/clients/ledger-json-api/operations/v2/users/index.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/list-user-rights.d.ts +8 -22
- package/build/src/clients/ledger-json-api/operations/v2/users/list-user-rights.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/list-user-rights.js +1 -2
- package/build/src/clients/ledger-json-api/operations/v2/users/list-user-rights.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/list-users.d.ts +9 -23
- package/build/src/clients/ledger-json-api/operations/v2/users/list-users.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/list-users.js +1 -2
- package/build/src/clients/ledger-json-api/operations/v2/users/list-users.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.d.ts +28 -42
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.js +1 -2
- package/build/src/clients/ledger-json-api/operations/v2/users/revoke-user-rights.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.d.ts +8 -22
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.js +1 -2
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user-identity-provider.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user.d.ts +20 -34
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user.js +1 -2
- package/build/src/clients/ledger-json-api/operations/v2/users/update-user.js.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/version/get.d.ts +35 -49
- package/build/src/clients/ledger-json-api/operations/v2/version/get.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/operations/v2/version/get.js +7 -6
- package/build/src/clients/ledger-json-api/operations/v2/version/get.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/command-responses.d.ts +1 -3
- package/build/src/clients/ledger-json-api/schemas/api/command-responses.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/command-responses.js +5 -5
- package/build/src/clients/ledger-json-api/schemas/api/command-responses.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/commands.d.ts +7 -21
- package/build/src/clients/ledger-json-api/schemas/api/commands.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/commands.js +26 -39
- package/build/src/clients/ledger-json-api/schemas/api/commands.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/completions.d.ts +7 -21
- package/build/src/clients/ledger-json-api/schemas/api/completions.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/completions.js +14 -25
- package/build/src/clients/ledger-json-api/schemas/api/completions.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/errors.d.ts +6 -14
- package/build/src/clients/ledger-json-api/schemas/api/errors.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/errors.js +55 -60
- package/build/src/clients/ledger-json-api/schemas/api/errors.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/event-details.d.ts +6 -18
- package/build/src/clients/ledger-json-api/schemas/api/event-details.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/event-details.js +6 -18
- package/build/src/clients/ledger-json-api/schemas/api/event-details.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/events.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/events.js +13 -34
- package/build/src/clients/ledger-json-api/schemas/api/events.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.d.ts +6 -18
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.js +18 -24
- package/build/src/clients/ledger-json-api/schemas/api/interactive-submission.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/packages.d.ts +9 -27
- package/build/src/clients/ledger-json-api/schemas/api/packages.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/packages.js +9 -27
- package/build/src/clients/ledger-json-api/schemas/api/packages.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/reassignment.d.ts +10 -30
- package/build/src/clients/ledger-json-api/schemas/api/reassignment.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/reassignment.js +11 -31
- package/build/src/clients/ledger-json-api/schemas/api/reassignment.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/state.d.ts +14 -42
- package/build/src/clients/ledger-json-api/schemas/api/state.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/state.js +15 -43
- package/build/src/clients/ledger-json-api/schemas/api/state.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/transactions.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/transactions.js +4 -2
- package/build/src/clients/ledger-json-api/schemas/api/transactions.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/updates.d.ts +18 -50
- package/build/src/clients/ledger-json-api/schemas/api/updates.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/updates.js +21 -53
- package/build/src/clients/ledger-json-api/schemas/api/updates.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/users.d.ts +27 -81
- package/build/src/clients/ledger-json-api/schemas/api/users.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/api/users.js +27 -81
- package/build/src/clients/ledger-json-api/schemas/api/users.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/base.d.ts +2 -2
- package/build/src/clients/ledger-json-api/schemas/base.js +2 -2
- package/build/src/clients/ledger-json-api/schemas/common.d.ts +14 -42
- package/build/src/clients/ledger-json-api/schemas/common.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/common.js +20 -44
- package/build/src/clients/ledger-json-api/schemas/common.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/base.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/base.js +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/base.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/commands.d.ts +6 -6
- package/build/src/clients/ledger-json-api/schemas/operations/commands.js +12 -12
- package/build/src/clients/ledger-json-api/schemas/operations/commands.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.d.ts +5 -15
- package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.js +13 -19
- package/build/src/clients/ledger-json-api/schemas/operations/interactive-submission.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/packages.d.ts +5 -16
- package/build/src/clients/ledger-json-api/schemas/operations/packages.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/packages.js +5 -16
- package/build/src/clients/ledger-json-api/schemas/operations/packages.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/parties.d.ts +5 -15
- package/build/src/clients/ledger-json-api/schemas/operations/parties.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/parties.js +13 -19
- package/build/src/clients/ledger-json-api/schemas/operations/parties.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/state.d.ts +4 -12
- package/build/src/clients/ledger-json-api/schemas/operations/state.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/state.js +4 -12
- package/build/src/clients/ledger-json-api/schemas/operations/state.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/updates.d.ts +16 -41
- package/build/src/clients/ledger-json-api/schemas/operations/updates.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/updates.js +71 -73
- package/build/src/clients/ledger-json-api/schemas/operations/updates.js.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/users.d.ts +10 -30
- package/build/src/clients/ledger-json-api/schemas/operations/users.d.ts.map +1 -1
- package/build/src/clients/ledger-json-api/schemas/operations/users.js +30 -40
- package/build/src/clients/ledger-json-api/schemas/operations/users.js.map +1 -1
- package/build/src/clients/lighthouse-api/operations/get-transfer-agent.d.ts +35 -54
- package/build/src/clients/lighthouse-api/operations/get-transfer-agent.d.ts.map +1 -1
- package/build/src/clients/lighthouse-api/operations/get-transfer-agent.js +6 -5
- package/build/src/clients/lighthouse-api/operations/get-transfer-agent.js.map +1 -1
- package/build/src/clients/lighthouse-api/types.d.ts +4 -12
- package/build/src/clients/lighthouse-api/types.d.ts.map +1 -1
- package/build/src/clients/lighthouse-api/types.js +4 -12
- package/build/src/clients/lighthouse-api/types.js.map +1 -1
- package/build/src/clients/register.d.ts +1 -1
- package/build/src/clients/register.d.ts.map +1 -1
- package/build/src/clients/register.js +3 -3
- package/build/src/clients/register.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/admin/create-user.d.ts +13 -27
- package/build/src/clients/validator-api/operations/v0/admin/create-user.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/admin/create-user.js +7 -6
- package/build/src/clients/validator-api/operations/v0/admin/create-user.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/admin/get-external-party-balance.d.ts +19 -33
- package/build/src/clients/validator-api/operations/v0/admin/get-external-party-balance.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/admin/get-external-party-balance.js +6 -5
- package/build/src/clients/validator-api/operations/v0/admin/get-external-party-balance.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/create-entry.d.ts +18 -32
- package/build/src/clients/validator-api/operations/v0/ans/create-entry.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/create-entry.js +7 -6
- package/build/src/clients/validator-api/operations/v0/ans/create-entry.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/get-rules.d.ts +13 -27
- package/build/src/clients/validator-api/operations/v0/ans/get-rules.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/get-rules.js +7 -6
- package/build/src/clients/validator-api/operations/v0/ans/get-rules.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/index.d.ts +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/index.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/index.js +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/index.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/list-entries-proxy.d.ts +9 -23
- package/build/src/clients/validator-api/operations/v0/ans/list-entries-proxy.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/list-entries-proxy.js +6 -5
- package/build/src/clients/validator-api/operations/v0/ans/list-entries-proxy.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/lookup-by-name.d.ts +11 -25
- package/build/src/clients/validator-api/operations/v0/ans/lookup-by-name.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/lookup-by-name.js +6 -5
- package/build/src/clients/validator-api/operations/v0/ans/lookup-by-name.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/lookup-by-party.d.ts +11 -25
- package/build/src/clients/validator-api/operations/v0/ans/lookup-by-party.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/ans/lookup-by-party.js +6 -5
- package/build/src/clients/validator-api/operations/v0/ans/lookup-by-party.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/index.d.ts +3 -3
- package/build/src/clients/validator-api/operations/v0/index.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/index.js +3 -3
- package/build/src/clients/validator-api/operations/v0/index.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/register.d.ts +9 -23
- package/build/src/clients/validator-api/operations/v0/register.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/register.js +6 -5
- package/build/src/clients/validator-api/operations/v0/register.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-amulet-rules.d.ts +9 -23
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-amulet-rules.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-amulet-rules.js +6 -5
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-amulet-rules.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-dso-party-id.d.ts +9 -23
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-dso-party-id.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-dso-party-id.js +6 -5
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-dso-party-id.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-member-traffic-status.d.ts +15 -14
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-member-traffic-status.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-member-traffic-status.js +15 -14
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-member-traffic-status.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-mining-round-details.d.ts +16 -29
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-mining-round-details.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-mining-round-details.js +6 -5
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-mining-round-details.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-open-and-issuing-mining-rounds.d.ts +31 -24
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-open-and-issuing-mining-rounds.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-open-and-issuing-mining-rounds.js +7 -6
- package/build/src/clients/validator-api/operations/v0/scan-proxy/get-open-and-issuing-mining-rounds.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/index.d.ts +4 -4
- package/build/src/clients/validator-api/operations/v0/scan-proxy/index.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/index.js +4 -4
- package/build/src/clients/validator-api/operations/v0/scan-proxy/index.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-featured-app-right.d.ts +14 -27
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-featured-app-right.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-featured-app-right.js +7 -7
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-featured-app-right.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-transfer-command-counter-by-party.d.ts +11 -24
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-transfer-command-counter-by-party.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-transfer-command-counter-by-party.js +6 -5
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-transfer-command-counter-by-party.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-transfer-command-status.d.ts +13 -26
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-transfer-command-status.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-transfer-command-status.js +7 -6
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-transfer-command-status.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-transfer-preapproval-by-party.d.ts +13 -26
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-transfer-preapproval-by-party.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-transfer-preapproval-by-party.js +6 -5
- package/build/src/clients/validator-api/operations/v0/scan-proxy/lookup-transfer-preapproval-by-party.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocation-instruction/v1/get-allocation-factory.d.ts +17 -30
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocation-instruction/v1/get-allocation-factory.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocation-instruction/v1/get-allocation-factory.js +8 -8
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocation-instruction/v1/get-allocation-factory.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-cancel-context.d.ts +17 -30
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-cancel-context.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-cancel-context.js +8 -8
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-cancel-context.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-transfer-context.d.ts +17 -30
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-transfer-context.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-transfer-context.js +8 -8
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-transfer-context.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-withdraw-context.d.ts +17 -30
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-withdraw-context.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-withdraw-context.js +8 -8
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/get-allocation-withdraw-context.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/index.d.ts +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/index.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/index.js +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/allocations/v1/index.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/index.d.ts +3 -3
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/index.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/index.js +3 -3
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/index.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/get-instrument.d.ts +19 -32
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/get-instrument.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/get-instrument.js +7 -7
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/get-instrument.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/get-registry-info.d.ts +13 -27
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/get-registry-info.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/get-registry-info.js +8 -8
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/get-registry-info.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/index.d.ts +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/index.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/index.js +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/index.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/list-instruments.d.ts +16 -29
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/list-instruments.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/list-instruments.js +8 -8
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/metadata/v1/list-instruments.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-factory.d.ts +19 -32
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-factory.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-factory.js +8 -8
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-factory.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-accept-context.d.ts +14 -27
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-accept-context.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-accept-context.js +8 -7
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-accept-context.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-reject-context.d.ts +14 -27
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-reject-context.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-reject-context.js +8 -7
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-reject-context.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-withdraw-context.d.ts +14 -27
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-withdraw-context.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-withdraw-context.js +8 -7
- package/build/src/clients/validator-api/operations/v0/scan-proxy/registry/transfer-instruction/v1/get-transfer-instruction-withdraw-context.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/buy-traffic-requests/create.d.ts +12 -25
- package/build/src/clients/validator-api/operations/v0/wallet/buy-traffic-requests/create.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/buy-traffic-requests/create.js +8 -7
- package/build/src/clients/validator-api/operations/v0/wallet/buy-traffic-requests/create.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/buy-traffic-requests/get-status.d.ts +14 -28
- package/build/src/clients/validator-api/operations/v0/wallet/buy-traffic-requests/get-status.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/buy-traffic-requests/get-status.js +6 -5
- package/build/src/clients/validator-api/operations/v0/wallet/buy-traffic-requests/get-status.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/get-amulets.d.ts +10 -24
- package/build/src/clients/validator-api/operations/v0/wallet/get-amulets.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/get-amulets.js +6 -5
- package/build/src/clients/validator-api/operations/v0/wallet/get-amulets.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/get-balance.d.ts +12 -26
- package/build/src/clients/validator-api/operations/v0/wallet/get-balance.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/get-balance.js +6 -5
- package/build/src/clients/validator-api/operations/v0/wallet/get-balance.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/get-user-status.d.ts +12 -26
- package/build/src/clients/validator-api/operations/v0/wallet/get-user-status.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/get-user-status.js +6 -5
- package/build/src/clients/validator-api/operations/v0/wallet/get-user-status.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/index.d.ts +3 -3
- package/build/src/clients/validator-api/operations/v0/wallet/index.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/index.js +3 -3
- package/build/src/clients/validator-api/operations/v0/wallet/index.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/token-standard/transfers/create.d.ts +19 -33
- package/build/src/clients/validator-api/operations/v0/wallet/token-standard/transfers/create.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/token-standard/transfers/create.js +7 -6
- package/build/src/clients/validator-api/operations/v0/wallet/token-standard/transfers/create.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/token-standard/transfers/list.d.ts +9 -23
- package/build/src/clients/validator-api/operations/v0/wallet/token-standard/transfers/list.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/token-standard/transfers/list.js +6 -5
- package/build/src/clients/validator-api/operations/v0/wallet/token-standard/transfers/list.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/accept.d.ts +11 -24
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/accept.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/accept.js +6 -5
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/accept.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/create.d.ts +16 -29
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/create.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/create.js +7 -6
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/create.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/get-status.d.ts +15 -29
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/get-status.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/get-status.js +6 -5
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/get-status.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/index.d.ts +2 -2
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/index.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/index.js +2 -2
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/index.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/list.d.ts +9 -23
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/list.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/list.js +7 -6
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/list.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/reject.d.ts +11 -24
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/reject.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/reject.js +6 -5
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/reject.js.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/withdraw.d.ts +11 -24
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/withdraw.d.ts.map +1 -1
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/withdraw.js +6 -5
- package/build/src/clients/validator-api/operations/v0/wallet/transfer-offers/withdraw.js.map +1 -1
- package/build/src/clients/validator-api/schemas/api/scan-proxy.d.ts +48 -2
- package/build/src/clients/validator-api/schemas/api/scan-proxy.d.ts.map +1 -1
- package/build/src/clients/validator-api/schemas/api/scan-proxy.js +30 -3
- package/build/src/clients/validator-api/schemas/api/scan-proxy.js.map +1 -1
- package/build/src/clients/validator-api/schemas/operations/scan-proxy.d.ts.map +1 -1
- package/build/src/clients/validator-api/schemas/operations/wallet.d.ts.map +1 -1
- package/build/src/clients/validator-api/schemas/operations/wallet.js.map +1 -1
- package/build/src/core/BaseClient.d.ts +1 -1
- package/build/src/core/BaseClient.d.ts.map +1 -1
- package/build/src/core/BaseClient.js +11 -14
- package/build/src/core/BaseClient.js.map +1 -1
- package/build/src/core/auth/AuthenticationManager.d.ts +5 -5
- package/build/src/core/auth/AuthenticationManager.d.ts.map +1 -1
- package/build/src/core/auth/AuthenticationManager.js +10 -8
- package/build/src/core/auth/AuthenticationManager.js.map +1 -1
- package/build/src/core/config/EnvLoader.d.ts +5 -4
- package/build/src/core/config/EnvLoader.d.ts.map +1 -1
- package/build/src/core/config/EnvLoader.js +50 -45
- package/build/src/core/config/EnvLoader.js.map +1 -1
- package/build/src/core/http/HttpClient.d.ts +4 -4
- package/build/src/core/http/HttpClient.d.ts.map +1 -1
- package/build/src/core/http/HttpClient.js +11 -11
- package/build/src/core/http/HttpClient.js.map +1 -1
- package/build/src/core/index.d.ts +4 -4
- package/build/src/core/index.d.ts.map +1 -1
- package/build/src/core/index.js +4 -4
- package/build/src/core/index.js.map +1 -1
- package/build/src/core/logging/FileLogger.d.ts +2 -2
- package/build/src/core/logging/FileLogger.d.ts.map +1 -1
- package/build/src/core/logging/FileLogger.js +15 -21
- package/build/src/core/logging/FileLogger.js.map +1 -1
- package/build/src/core/logging/Logger.d.ts.map +1 -1
- package/build/src/core/logging/index.d.ts +1 -1
- package/build/src/core/logging/index.d.ts.map +1 -1
- package/build/src/core/logging/index.js.map +1 -1
- package/build/src/core/operations/ApiOperation.d.ts +2 -2
- package/build/src/core/operations/ApiOperation.d.ts.map +1 -1
- package/build/src/core/operations/ApiOperation.js +2 -2
- package/build/src/core/operations/ApiOperation.js.map +1 -1
- package/build/src/core/operations/ApiOperationFactory.d.ts +8 -41
- package/build/src/core/operations/ApiOperationFactory.d.ts.map +1 -1
- package/build/src/core/operations/ApiOperationFactory.js +6 -10
- package/build/src/core/operations/ApiOperationFactory.js.map +1 -1
- package/build/src/core/operations/WebSocketOperationFactory.d.ts +5 -8
- package/build/src/core/operations/WebSocketOperationFactory.d.ts.map +1 -1
- package/build/src/core/operations/WebSocketOperationFactory.js +10 -3
- package/build/src/core/operations/WebSocketOperationFactory.js.map +1 -1
- package/build/src/core/types.d.ts.map +1 -1
- package/build/src/core/ws/WebSocketClient.d.ts +3 -2
- package/build/src/core/ws/WebSocketClient.d.ts.map +1 -1
- package/build/src/core/ws/WebSocketClient.js +53 -32
- package/build/src/core/ws/WebSocketClient.js.map +1 -1
- package/build/src/core/ws/WebSocketErrorUtils.d.ts +4 -3
- package/build/src/core/ws/WebSocketErrorUtils.d.ts.map +1 -1
- package/build/src/core/ws/WebSocketErrorUtils.js +7 -6
- package/build/src/core/ws/WebSocketErrorUtils.js.map +1 -1
- package/build/src/index.d.ts +1 -1
- package/build/src/index.d.ts.map +1 -1
- package/build/src/index.js +1 -1
- package/build/src/index.js.map +1 -1
- package/build/src/utils/amulet/get-amulets-for-transfer.d.ts +1 -1
- package/build/src/utils/amulet/get-amulets-for-transfer.d.ts.map +1 -1
- package/build/src/utils/amulet/get-amulets-for-transfer.js +37 -46
- package/build/src/utils/amulet/get-amulets-for-transfer.js.map +1 -1
- package/build/src/utils/amulet/index.d.ts +2 -2
- package/build/src/utils/amulet/index.d.ts.map +1 -1
- package/build/src/utils/amulet/index.js +2 -2
- package/build/src/utils/amulet/index.js.map +1 -1
- package/build/src/utils/amulet/offers.d.ts +2 -2
- package/build/src/utils/amulet/offers.d.ts.map +1 -1
- package/build/src/utils/amulet/offers.js +10 -7
- package/build/src/utils/amulet/offers.js.map +1 -1
- package/build/src/utils/amulet/pre-approve-transfers.d.ts +2 -2
- package/build/src/utils/amulet/pre-approve-transfers.d.ts.map +1 -1
- package/build/src/utils/amulet/pre-approve-transfers.js +19 -30
- package/build/src/utils/amulet/pre-approve-transfers.js.map +1 -1
- package/build/src/utils/amulet/transfer-to-preapproved.d.ts +19 -18
- package/build/src/utils/amulet/transfer-to-preapproved.d.ts.map +1 -1
- package/build/src/utils/amulet/transfer-to-preapproved.js +33 -39
- package/build/src/utils/amulet/transfer-to-preapproved.js.map +1 -1
- package/build/src/utils/contracts/contract-monitor.d.ts +2 -4
- package/build/src/utils/contracts/contract-monitor.d.ts.map +1 -1
- package/build/src/utils/contracts/contract-monitor.js +9 -10
- package/build/src/utils/contracts/contract-monitor.js.map +1 -1
- package/build/src/utils/contracts/featuredAppRight.d.ts +2 -2
- package/build/src/utils/contracts/featuredAppRight.d.ts.map +1 -1
- package/build/src/utils/contracts/featuredAppRight.js +4 -5
- package/build/src/utils/contracts/featuredAppRight.js.map +1 -1
- package/build/src/utils/contracts/findCreatedEvent.d.ts +1 -1
- package/build/src/utils/contracts/findCreatedEvent.d.ts.map +1 -1
- package/build/src/utils/contracts/findCreatedEvent.js +3 -4
- package/build/src/utils/contracts/findCreatedEvent.js.map +1 -1
- package/build/src/utils/index.d.ts +2 -2
- package/build/src/utils/index.d.ts.map +1 -1
- package/build/src/utils/index.js +2 -2
- package/build/src/utils/index.js.map +1 -1
- package/build/src/utils/mining/mining-rounds.d.ts +9 -9
- package/build/src/utils/mining/mining-rounds.d.ts.map +1 -1
- package/build/src/utils/mining/mining-rounds.js +33 -48
- package/build/src/utils/mining/mining-rounds.js.map +1 -1
- package/build/src/utils/parsers/fee-parser.d.ts +6 -4
- package/build/src/utils/parsers/fee-parser.d.ts.map +1 -1
- package/build/src/utils/parsers/fee-parser.js +19 -20
- package/build/src/utils/parsers/fee-parser.js.map +1 -1
- package/build/src/utils/party/createParty.d.ts +2 -2
- package/build/src/utils/party/createParty.d.ts.map +1 -1
- package/build/src/utils/party/createParty.js +4 -11
- package/build/src/utils/party/createParty.js.map +1 -1
- package/build/src/utils/transactions/TransactionBatch.d.ts +3 -3
- package/build/src/utils/transactions/TransactionBatch.d.ts.map +1 -1
- package/build/src/utils/transactions/TransactionBatch.js +5 -10
- package/build/src/utils/transactions/TransactionBatch.js.map +1 -1
- package/build/src/utils/transactions/find-created-event.d.ts +2 -2
- package/build/src/utils/transactions/find-created-event.d.ts.map +1 -1
- package/build/src/utils/transactions/find-created-event.js +3 -6
- package/build/src/utils/transactions/find-created-event.js.map +1 -1
- package/package.json +57 -54
|
@@ -7,25 +7,25 @@ const get_amulets_for_transfer_1 = require("./get-amulets-for-transfer");
|
|
|
7
7
|
* Transfers coins to multiple parties that have pre-approved transfers enabled
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
|
-
*
|
|
11
|
-
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* const result = await transferToPreapproved(ledgerClient, validatorClient, {
|
|
12
12
|
* senderPartyId: 'sender-party-id',
|
|
13
13
|
* transfers: [
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
14
|
+
* {
|
|
15
|
+
* recipientPartyId: 'recipient-1',
|
|
16
|
+
* amount: '100',
|
|
17
|
+
* description: 'Payment for services'
|
|
18
|
+
* },
|
|
19
|
+
* {
|
|
20
|
+
* recipientPartyId: 'recipient-2',
|
|
21
|
+
* amount: '50',
|
|
22
|
+
* description: 'Bonus payment'
|
|
23
|
+
* }
|
|
24
24
|
* ]
|
|
25
|
-
*
|
|
25
|
+
* });
|
|
26
26
|
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
27
|
+
*
|
|
28
|
+
* ```;
|
|
29
29
|
*
|
|
30
30
|
* @param ledgerClient - Ledger JSON API client for submitting commands
|
|
31
31
|
* @param validatorClient - Validator API client for getting network information
|
|
@@ -39,24 +39,22 @@ async function transferToPreapproved(ledgerClient, validatorClient, params) {
|
|
|
39
39
|
// Get network information
|
|
40
40
|
const [amuletRules, miningRoundContext] = await Promise.all([
|
|
41
41
|
validatorClient.getAmuletRules(),
|
|
42
|
-
(0, mining_rounds_1.getCurrentMiningRoundContext)(validatorClient)
|
|
42
|
+
(0, mining_rounds_1.getCurrentMiningRoundContext)(validatorClient),
|
|
43
43
|
]);
|
|
44
|
-
const { openMiningRound: openMiningRoundContractId
|
|
44
|
+
const { openMiningRound: openMiningRoundContractId } = miningRoundContext;
|
|
45
45
|
// Get amulet inputs for the sender party
|
|
46
|
-
console.log('🔍 Fetching amulet inputs for sender party...');
|
|
47
46
|
const amulets = await (0, get_amulets_for_transfer_1.getAmuletsForTransfer)({
|
|
48
47
|
jsonApiClient: ledgerClient,
|
|
49
|
-
readAs: [params.senderPartyId]
|
|
48
|
+
readAs: [params.senderPartyId],
|
|
50
49
|
});
|
|
51
50
|
if (amulets.length === 0) {
|
|
52
51
|
throw new Error(`No unlocked amulets found for sender party ${params.senderPartyId}`);
|
|
53
52
|
}
|
|
54
53
|
// Convert amulets to input format
|
|
55
|
-
const inputs = amulets.map(amulet => ({
|
|
54
|
+
const inputs = amulets.map((amulet) => ({
|
|
56
55
|
tag: 'InputAmulet',
|
|
57
|
-
value: amulet.contractId
|
|
56
|
+
value: amulet.contractId,
|
|
58
57
|
}));
|
|
59
|
-
console.log(`📦 Found ${amulets.length} amulets for transfer`);
|
|
60
58
|
const transferResults = [];
|
|
61
59
|
// Build base disclosed contracts (shared across all transfers)
|
|
62
60
|
const disclosedContracts = [
|
|
@@ -65,7 +63,7 @@ async function transferToPreapproved(ledgerClient, validatorClient, params) {
|
|
|
65
63
|
contractId: amuletRules.amulet_rules.contract.contract_id,
|
|
66
64
|
templateId: amuletRules.amulet_rules.contract.template_id,
|
|
67
65
|
createdEventBlob: amuletRules.amulet_rules.contract.created_event_blob,
|
|
68
|
-
synchronizerId: amuletRules.amulet_rules.domain_id
|
|
66
|
+
synchronizerId: amuletRules.amulet_rules.domain_id ?? '',
|
|
69
67
|
},
|
|
70
68
|
// Open mining round contract (shared)
|
|
71
69
|
{
|
|
@@ -73,26 +71,23 @@ async function transferToPreapproved(ledgerClient, validatorClient, params) {
|
|
|
73
71
|
templateId: miningRoundContext.openMiningRoundContract.templateId,
|
|
74
72
|
createdEventBlob: miningRoundContext.openMiningRoundContract.createdEventBlob,
|
|
75
73
|
synchronizerId: miningRoundContext.openMiningRoundContract.synchronizerId,
|
|
76
|
-
}
|
|
74
|
+
},
|
|
77
75
|
];
|
|
78
76
|
// Process each transfer
|
|
79
77
|
for (const transfer of params.transfers) {
|
|
80
|
-
console.log(`🔄 Processing transfer to ${transfer.recipientPartyId}...`);
|
|
81
78
|
// Look up transfer preapproval for the recipient
|
|
82
79
|
const transferPreapprovalResponse = await validatorClient.lookupTransferPreapprovalByParty({
|
|
83
80
|
partyId: transfer.recipientPartyId,
|
|
84
81
|
});
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
}
|
|
88
|
-
const transferPreapprovalContract = transferPreapprovalResponse.transfer_preapproval.contract;
|
|
82
|
+
const { transfer_preapproval } = transferPreapprovalResponse;
|
|
83
|
+
const transferPreapprovalContract = transfer_preapproval.contract;
|
|
89
84
|
const transferPreapprovalContractId = transferPreapprovalContract.contract_id;
|
|
90
|
-
if (!
|
|
85
|
+
if (!transfer_preapproval.domain_id) {
|
|
91
86
|
throw new Error(`No domain ID found for transfer preapproval for party ${transfer.recipientPartyId}`);
|
|
92
87
|
}
|
|
93
88
|
// Look up featured app right for the recipient
|
|
94
89
|
const featuredAppRight = await validatorClient.lookupFeaturedAppRight({
|
|
95
|
-
partyId: transfer.recipientPartyId
|
|
90
|
+
partyId: transfer.recipientPartyId,
|
|
96
91
|
});
|
|
97
92
|
if (!featuredAppRight.featured_app_right?.contract_id) {
|
|
98
93
|
throw new Error(`No featured app right found for party ${transfer.recipientPartyId}`);
|
|
@@ -106,7 +101,7 @@ async function transferToPreapproved(ledgerClient, validatorClient, params) {
|
|
|
106
101
|
contractId: featuredAppRight.featured_app_right.contract_id,
|
|
107
102
|
templateId: featuredAppRight.featured_app_right.template_id,
|
|
108
103
|
createdEventBlob: featuredAppRight.featured_app_right.created_event_blob,
|
|
109
|
-
synchronizerId: amuletRules.amulet_rules.domain_id
|
|
104
|
+
synchronizerId: amuletRules.amulet_rules.domain_id ?? '',
|
|
110
105
|
},
|
|
111
106
|
// Transfer preapproval contract for this recipient
|
|
112
107
|
{
|
|
@@ -114,7 +109,7 @@ async function transferToPreapproved(ledgerClient, validatorClient, params) {
|
|
|
114
109
|
templateId: transferPreapprovalContract.template_id,
|
|
115
110
|
createdEventBlob: transferPreapprovalContract.created_event_blob,
|
|
116
111
|
synchronizerId: transferPreapprovalResponse.transfer_preapproval.domain_id,
|
|
117
|
-
}
|
|
112
|
+
},
|
|
118
113
|
];
|
|
119
114
|
// Create the transfer command using TransferPreapproval_Send
|
|
120
115
|
const transferCommand = {
|
|
@@ -129,15 +124,15 @@ async function transferToPreapproved(ledgerClient, validatorClient, params) {
|
|
|
129
124
|
openMiningRound: openMiningRoundContractId,
|
|
130
125
|
issuingMiningRounds: [],
|
|
131
126
|
validatorRights: [],
|
|
132
|
-
featuredAppRight: featuredAppRightContractId
|
|
133
|
-
}
|
|
127
|
+
featuredAppRight: featuredAppRightContractId,
|
|
128
|
+
},
|
|
134
129
|
},
|
|
135
130
|
inputs,
|
|
136
131
|
amount: transfer.amount,
|
|
137
132
|
sender: params.senderPartyId,
|
|
138
|
-
description: transfer.description
|
|
139
|
-
}
|
|
140
|
-
}
|
|
133
|
+
description: transfer.description ?? null,
|
|
134
|
+
},
|
|
135
|
+
},
|
|
141
136
|
};
|
|
142
137
|
if (!amuletRules.amulet_rules.domain_id) {
|
|
143
138
|
throw new Error('Amulet rules domain ID is required');
|
|
@@ -156,7 +151,6 @@ async function transferToPreapproved(ledgerClient, validatorClient, params) {
|
|
|
156
151
|
domainId: amuletRules.amulet_rules.domain_id,
|
|
157
152
|
transferResult: result,
|
|
158
153
|
});
|
|
159
|
-
console.log(`✅ Transfer to ${transfer.recipientPartyId} completed successfully`);
|
|
160
154
|
}
|
|
161
155
|
return { transferResults };
|
|
162
156
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transfer-to-preapproved.js","sourceRoot":"","sources":["../../../../src/utils/amulet/transfer-to-preapproved.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"transfer-to-preapproved.js","sourceRoot":"","sources":["../../../../src/utils/amulet/transfer-to-preapproved.ts"],"names":[],"mappings":";;AAqEA,sDAmJC;AAjND,2DAAuE;AACvE,yEAAmE;AAgCnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACI,KAAK,UAAU,qBAAqB,CACzC,YAAiC,EACjC,eAAmC,EACnC,MAAmC;IAEnC,IAAI,MAAM,CAAC,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAClC,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;IAC5D,CAAC;IAED,0BAA0B;IAC1B,MAAM,CAAC,WAAW,EAAE,kBAAkB,CAAC,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC;QAC1D,eAAe,CAAC,cAAc,EAAE;QAChC,IAAA,4CAA4B,EAAC,eAAe,CAAC;KAC9C,CAAC,CAAC;IAEH,MAAM,EAAE,eAAe,EAAE,yBAAyB,EAAE,GAAG,kBAAkB,CAAC;IAE1E,yCAAyC;IAEzC,MAAM,OAAO,GAAG,MAAM,IAAA,gDAAqB,EAAC;QAC1C,aAAa,EAAE,YAAY;QAC3B,MAAM,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC;KAC/B,CAAC,CAAC;IAEH,IAAI,OAAO,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,8CAA8C,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC;IACxF,CAAC;IAED,kCAAkC;IAClC,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACtC,GAAG,EAAE,aAAsB;QAC3B,KAAK,EAAE,MAAM,CAAC,UAAU;KACzB,CAAC,CAAC,CAAC;IAEJ,MAAM,eAAe,GAAmD,EAAE,CAAC;IAE3E,+DAA+D;IAC/D,MAAM,kBAAkB,GAAwB;QAC9C,kCAAkC;QAClC;YACE,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW;YACzD,UAAU,EAAE,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW;YACzD,gBAAgB,EAAE,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,kBAAkB;YACtE,cAAc,EAAE,WAAW,CAAC,YAAY,CAAC,SAAS,IAAI,EAAE;SACzD;QACD,sCAAsC;QACtC;YACE,UAAU,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,UAAU;YACjE,UAAU,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,UAAU;YACjE,gBAAgB,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,gBAAgB;YAC7E,cAAc,EAAE,kBAAkB,CAAC,uBAAuB,CAAC,cAAc;SAC1E;KACF,CAAC;IAEF,wBAAwB;IACxB,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,SAAS,EAAE,CAAC;QACxC,iDAAiD;QACjD,MAAM,2BAA2B,GAAG,MAAM,eAAe,CAAC,gCAAgC,CAAC;YACzF,OAAO,EAAE,QAAQ,CAAC,gBAAgB;SACnC,CAAC,CAAC;QAEH,MAAM,EAAE,oBAAoB,EAAE,GAAG,2BAA2B,CAAC;QAE7D,MAAM,2BAA2B,GAAG,oBAAoB,CAAC,QAAQ,CAAC;QAClE,MAAM,6BAA6B,GAAG,2BAA2B,CAAC,WAAW,CAAC;QAE9E,IAAI,CAAC,oBAAoB,CAAC,SAAS,EAAE,CAAC;YACpC,MAAM,IAAI,KAAK,CAAC,yDAAyD,QAAQ,CAAC,gBAAgB,EAAE,CAAC,CAAC;QACxG,CAAC;QAED,+CAA+C;QAC/C,MAAM,gBAAgB,GAAG,MAAM,eAAe,CAAC,sBAAsB,CAAC;YACpE,OAAO,EAAE,QAAQ,CAAC,gBAAgB;SACnC,CAAC,CAAC;QAEH,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,WAAW,EAAE,CAAC;YACtD,MAAM,IAAI,KAAK,CAAC,yCAAyC,QAAQ,CAAC,gBAAgB,EAAE,CAAC,CAAC;QACxF,CAAC;QAED,MAAM,0BAA0B,GAAG,gBAAgB,CAAC,kBAAkB,CAAC,WAAW,CAAC;QAEnF,8CAA8C;QAC9C,MAAM,0BAA0B,GAAwB;YACtD,GAAG,kBAAkB,EAAE,yBAAyB;YAChD,iDAAiD;YACjD;gBACE,UAAU,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,WAAW;gBAC3D,UAAU,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,WAAW;gBAC3D,gBAAgB,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,kBAAkB;gBACxE,cAAc,EAAE,WAAW,CAAC,YAAY,CAAC,SAAS,IAAI,EAAE;aACzD;YACD,mDAAmD;YACnD;gBACE,UAAU,EAAE,6BAA6B;gBACzC,UAAU,EAAE,2BAA2B,CAAC,WAAW;gBACnD,gBAAgB,EAAE,2BAA2B,CAAC,kBAAkB;gBAChE,cAAc,EAAE,2BAA2B,CAAC,oBAAoB,CAAC,SAAS;aAC3E;SACF,CAAC;QAEF,6DAA6D;QAC7D,MAAM,eAAe,GAAoB;YACvC,eAAe,EAAE;gBACf,UAAU,EAAE,uDAAuD;gBACnE,UAAU,EAAE,6BAA6B;gBACzC,MAAM,EAAE,0BAA0B;gBAClC,cAAc,EAAE;oBACd,OAAO,EAAE;wBACP,WAAW,EAAE,WAAW,CAAC,YAAY,CAAC,QAAQ,CAAC,WAAW;wBAC1D,OAAO,EAAE;4BACP,eAAe,EAAE,yBAAyB;4BAC1C,mBAAmB,EAAE,EAAE;4BACvB,eAAe,EAAE,EAAE;4BACnB,gBAAgB,EAAE,0BAA0B;yBAC7C;qBACF;oBACD,MAAM;oBACN,MAAM,EAAE,QAAQ,CAAC,MAAM;oBACvB,MAAM,EAAE,MAAM,CAAC,aAAa;oBAC5B,WAAW,EAAE,QAAQ,CAAC,WAAW,IAAI,IAAI;iBAC1C;aACF;SACF,CAAC;QAEF,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,SAAS,EAAE,CAAC;YACxC,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;QACxD,CAAC;QAED,qBAAqB;QACrB,MAAM,YAAY,GAA0C;YAC1D,QAAQ,EAAE,CAAC,eAAe,CAAC;YAC3B,SAAS,EAAE,wBAAwB,QAAQ,CAAC,gBAAgB,IAAI,IAAI,CAAC,GAAG,EAAE,EAAE;YAC5E,KAAK,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC;YAC7B,kBAAkB,EAAE,0BAA0B;SAC/C,CAAC;QAEF,MAAM,MAAM,GAAG,MAAM,YAAY,CAAC,+BAA+B,CAAC,YAAY,CAAC,CAAC;QAEhF,eAAe,CAAC,IAAI,CAAC;YACnB,gBAAgB,EAAE,QAAQ,CAAC,gBAAgB;YAC3C,UAAU,EAAE,6BAA6B;YACzC,QAAQ,EAAE,WAAW,CAAC,YAAY,CAAC,SAAS;YAC5C,cAAc,EAAE,MAAM;SACvB,CAAC,CAAC;IACL,CAAC;IAED,OAAO,EAAE,eAAe,EAAE,CAAC;AAC7B,CAAC"}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { LedgerJsonApiClient } from '../../clients/ledger-json-api';
|
|
2
|
-
/**
|
|
3
|
-
* Options for waiting for contract archival
|
|
4
|
-
*/
|
|
1
|
+
import { type LedgerJsonApiClient } from '../../clients/ledger-json-api';
|
|
2
|
+
/** Options for waiting for contract archival */
|
|
5
3
|
export interface WaitForContractArchivalOptions {
|
|
6
4
|
/** Maximum time to wait in milliseconds (default: 300000 = 5 minutes) */
|
|
7
5
|
maxWaitTimeMs?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-monitor.d.ts","sourceRoot":"","sources":["../../../../src/utils/contracts/contract-monitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;
|
|
1
|
+
{"version":3,"file":"contract-monitor.d.ts","sourceRoot":"","sources":["../../../../src/utils/contracts/contract-monitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,gDAAgD;AAChD,MAAM,WAAW,8BAA8B;IAC7C,yEAAyE;IACzE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,0EAA0E;IAC1E,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,wCAAwC;IACxC,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAsB,2BAA2B,CAC/C,mBAAmB,EAAE,mBAAmB,EACxC,UAAU,EAAE,MAAM,EAClB,OAAO,GAAE,8BAAmC,GAC3C,OAAO,CAAC,IAAI,CAAC,CAkDf"}
|
|
@@ -13,10 +13,9 @@ exports.waitForContractToBeArchived = waitForContractToBeArchived;
|
|
|
13
13
|
async function waitForContractToBeArchived(ledgerJsonApiClient, contractId, options = {}) {
|
|
14
14
|
const { maxWaitTimeMs = 300000, // 5 minutes default
|
|
15
15
|
checkIntervalMs = 5000, // 5 seconds default
|
|
16
|
-
verbose = true } = options;
|
|
16
|
+
verbose = true, } = options;
|
|
17
17
|
const startTime = Date.now();
|
|
18
18
|
if (verbose) {
|
|
19
|
-
console.log(`⏳ Waiting for contract ${contractId} to be archived...`);
|
|
20
19
|
}
|
|
21
20
|
while (Date.now() - startTime < maxWaitTimeMs) {
|
|
22
21
|
try {
|
|
@@ -31,24 +30,24 @@ async function waitForContractToBeArchived(ledgerJsonApiClient, contractId, opti
|
|
|
31
30
|
// Check if our contract is still in the active contracts list
|
|
32
31
|
const isStillActive = Array.isArray(activeContracts) &&
|
|
33
32
|
activeContracts.some((contract) => {
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
if ('JsActiveContract' in contract.contractEntry) {
|
|
34
|
+
const { createdEvent } = contract.contractEntry.JsActiveContract;
|
|
35
|
+
return createdEvent.contractId === contractId;
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
36
38
|
});
|
|
37
39
|
if (!isStillActive) {
|
|
38
40
|
if (verbose) {
|
|
39
|
-
console.log(`✅ Contract ${contractId} has been archived successfully`);
|
|
40
41
|
}
|
|
41
42
|
return;
|
|
42
43
|
}
|
|
43
44
|
if (verbose) {
|
|
44
|
-
console.log(`⏳ Contract ${contractId} is still active, waiting...`);
|
|
45
45
|
}
|
|
46
|
-
await new Promise(resolve => setTimeout(resolve, checkIntervalMs));
|
|
46
|
+
await new Promise((resolve) => setTimeout(resolve, checkIntervalMs));
|
|
47
47
|
}
|
|
48
|
-
catch
|
|
49
|
-
console.error('❌ Error checking contract status:', error instanceof Error ? error.message : 'Unknown error');
|
|
48
|
+
catch {
|
|
50
49
|
// Continue waiting even if there's an error checking status
|
|
51
|
-
await new Promise(resolve => setTimeout(resolve, checkIntervalMs));
|
|
50
|
+
await new Promise((resolve) => setTimeout(resolve, checkIntervalMs));
|
|
52
51
|
}
|
|
53
52
|
}
|
|
54
53
|
throw new Error(`Timeout waiting for contract ${contractId} to be archived after ${maxWaitTimeMs / 1000} seconds`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract-monitor.js","sourceRoot":"","sources":["../../../../src/utils/contracts/contract-monitor.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"contract-monitor.js","sourceRoot":"","sources":["../../../../src/utils/contracts/contract-monitor.ts"],"names":[],"mappings":";;AAqBA,kEAsDC;AA/DD;;;;;;;;GAQG;AACI,KAAK,UAAU,2BAA2B,CAC/C,mBAAwC,EACxC,UAAkB,EAClB,UAA0C,EAAE;IAE5C,MAAM,EACJ,aAAa,GAAG,MAAM,EAAE,oBAAoB;IAC5C,eAAe,GAAG,IAAI,EAAE,oBAAoB;IAC5C,OAAO,GAAG,IAAI,GACf,GAAG,OAAO,CAAC;IAEZ,MAAM,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;IAE7B,IAAI,OAAO,EAAE,CAAC;IACd,CAAC;IAED,OAAO,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,GAAG,aAAa,EAAE,CAAC;QAC9C,IAAI,CAAC;YACH,gEAAgE;YAChE,MAAM,OAAO,GAAG,mBAAmB,CAAC,UAAU,EAAE,CAAC;YACjD,IAAI,CAAC,OAAO,EAAE,CAAC;gBACb,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;YACrE,CAAC;YACD,MAAM,eAAe,GAAG,MAAM,mBAAmB,CAAC,kBAAkB,CAAC;gBACnE,OAAO,EAAE,CAAC,OAAO,CAAC;aACnB,CAAC,CAAC;YAEH,8DAA8D;YAC9D,MAAM,aAAa,GACjB,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC;gBAC9B,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE;oBAChC,IAAI,kBAAkB,IAAI,QAAQ,CAAC,aAAa,EAAE,CAAC;wBACjD,MAAM,EAAE,YAAY,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,gBAAgB,CAAC;wBACjE,OAAO,YAAY,CAAC,UAAU,KAAK,UAAU,CAAC;oBAChD,CAAC;oBACD,OAAO,KAAK,CAAC;gBACf,CAAC,CAAC,CAAC;YAEL,IAAI,CAAC,aAAa,EAAE,CAAC;gBACnB,IAAI,OAAO,EAAE,CAAC;gBACd,CAAC;gBACD,OAAO;YACT,CAAC;YAED,IAAI,OAAO,EAAE,CAAC;YACd,CAAC;YACD,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC;QACvE,CAAC;QAAC,MAAM,CAAC;YACP,4DAA4D;YAC5D,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC;QACvE,CAAC;IACH,CAAC;IAED,MAAM,IAAI,KAAK,CAAC,gCAAgC,UAAU,yBAAyB,aAAa,GAAG,IAAI,UAAU,CAAC,CAAC;AACrH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValidatorApiClient } from
|
|
2
|
-
import { DisclosedContract } from
|
|
1
|
+
import { type ValidatorApiClient } from '../../clients';
|
|
2
|
+
import { type DisclosedContract } from '../../clients/ledger-json-api/schemas';
|
|
3
3
|
export declare function getFeaturedAppRightContractDetails(validatorApi: ValidatorApiClient): Promise<DisclosedContract>;
|
|
4
4
|
//# sourceMappingURL=featuredAppRight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featuredAppRight.d.ts","sourceRoot":"","sources":["../../../../src/utils/contracts/featuredAppRight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"featuredAppRight.d.ts","sourceRoot":"","sources":["../../../../src/utils/contracts/featuredAppRight.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAE/E,wBAAsB,kCAAkC,CAAC,YAAY,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAiBrH"}
|
|
@@ -5,18 +5,17 @@ async function getFeaturedAppRightContractDetails(validatorApi) {
|
|
|
5
5
|
const featuredAppRight = await validatorApi.lookupFeaturedAppRight({
|
|
6
6
|
partyId: validatorApi.getPartyId(),
|
|
7
7
|
});
|
|
8
|
-
if (!featuredAppRight
|
|
8
|
+
if (!featuredAppRight.featured_app_right) {
|
|
9
9
|
throw new Error(`No featured app right found for party ${validatorApi.getPartyId()}`);
|
|
10
10
|
}
|
|
11
11
|
// The featured-apps endpoint may not include the synchronizer/domain id.
|
|
12
|
-
//
|
|
12
|
+
// Get domain_id from amulet rules which reliably expose it.
|
|
13
13
|
const amuletRules = await validatorApi.getAmuletRules();
|
|
14
|
-
const
|
|
14
|
+
const synchronizerId = amuletRules.amulet_rules.domain_id ?? '';
|
|
15
15
|
return {
|
|
16
16
|
contractId: featuredAppRight.featured_app_right.contract_id,
|
|
17
17
|
createdEventBlob: featuredAppRight.featured_app_right.created_event_blob,
|
|
18
|
-
synchronizerId
|
|
19
|
-
synchronizerIdFromRules,
|
|
18
|
+
synchronizerId,
|
|
20
19
|
templateId: featuredAppRight.featured_app_right.template_id,
|
|
21
20
|
};
|
|
22
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"featuredAppRight.js","sourceRoot":"","sources":["../../../../src/utils/contracts/featuredAppRight.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"featuredAppRight.js","sourceRoot":"","sources":["../../../../src/utils/contracts/featuredAppRight.ts"],"names":[],"mappings":";;AAGA,gFAiBC;AAjBM,KAAK,UAAU,kCAAkC,CAAC,YAAgC;IACvF,MAAM,gBAAgB,GAAG,MAAM,YAAY,CAAC,sBAAsB,CAAC;QACjE,OAAO,EAAE,YAAY,CAAC,UAAU,EAAE;KACnC,CAAC,CAAC;IACH,IAAI,CAAC,gBAAgB,CAAC,kBAAkB,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CAAC,yCAAyC,YAAY,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC;IACxF,CAAC;IACD,yEAAyE;IACzE,4DAA4D;IAC5D,MAAM,WAAW,GAAG,MAAM,YAAY,CAAC,cAAc,EAAE,CAAC;IACxD,MAAM,cAAc,GAAG,WAAW,CAAC,YAAY,CAAC,SAAS,IAAI,EAAE,CAAC;IAChE,OAAO;QACL,UAAU,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,WAAW;QAC3D,gBAAgB,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,kBAAkB;QACxE,cAAc;QACd,UAAU,EAAE,gBAAgB,CAAC,kBAAkB,CAAC,WAAW;KAC5D,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SubmitAndWaitForTransactionTreeResponse } from
|
|
1
|
+
import { type SubmitAndWaitForTransactionTreeResponse } from '../../clients/ledger-json-api/operations';
|
|
2
2
|
export interface CreatedTreeEventValue {
|
|
3
3
|
contractId: string;
|
|
4
4
|
templateId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findCreatedEvent.d.ts","sourceRoot":"","sources":["../../../../src/utils/contracts/findCreatedEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,0CAA0C,CAAC;
|
|
1
|
+
{"version":3,"file":"findCreatedEvent.d.ts","sourceRoot":"","sources":["../../../../src/utils/contracts/findCreatedEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,uCAAuC,EAAE,MAAM,0CAA0C,CAAC;AAExG,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,gBAAgB,EAAE;QAChB,KAAK,EAAE,qBAAqB,CAAC;KAC9B,CAAC;CACH;AAQD,wBAAgB,4BAA4B,CAC1C,QAAQ,EAAE,uCAAuC,EACjD,kBAAkB,EAAE,MAAM,GACzB,uBAAuB,GAAG,SAAS,CAiCrC"}
|
|
@@ -5,12 +5,11 @@ function isCreatedTreeEventWrapper(event) {
|
|
|
5
5
|
if (!event || typeof event !== 'object')
|
|
6
6
|
return false;
|
|
7
7
|
const e = event;
|
|
8
|
-
return
|
|
8
|
+
return Boolean(e.CreatedTreeEvent) && typeof e.CreatedTreeEvent === 'object' && 'value' in e.CreatedTreeEvent;
|
|
9
9
|
}
|
|
10
10
|
function findCreatedEventByTemplateId(response, expectedTemplateId) {
|
|
11
|
-
// Handle both direct structure and nested transaction structure
|
|
12
11
|
const transactionTree = response.transactionTree;
|
|
13
|
-
const eventsById =
|
|
12
|
+
const eventsById = transactionTree?.eventsById ?? transactionTree?.transaction?.eventsById ?? {};
|
|
14
13
|
// Extract the part after the first ':' from the expected template ID
|
|
15
14
|
const expectedTemplateIdSuffix = expectedTemplateId.includes(':')
|
|
16
15
|
? expectedTemplateId.substring(expectedTemplateId.indexOf(':') + 1)
|
|
@@ -18,7 +17,7 @@ function findCreatedEventByTemplateId(response, expectedTemplateId) {
|
|
|
18
17
|
for (const event of Object.values(eventsById)) {
|
|
19
18
|
if (isCreatedTreeEventWrapper(event)) {
|
|
20
19
|
const created = event.CreatedTreeEvent.value;
|
|
21
|
-
if (created
|
|
20
|
+
if (created.templateId) {
|
|
22
21
|
// Extract the part after the first ':' from the actual template ID
|
|
23
22
|
const actualTemplateIdSuffix = created.templateId.includes(':')
|
|
24
23
|
? created.templateId.substring(created.templateId.indexOf(':') + 1)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"findCreatedEvent.js","sourceRoot":"","sources":["../../../../src/utils/contracts/findCreatedEvent.ts"],"names":[],"mappings":";;AA2BA,
|
|
1
|
+
{"version":3,"file":"findCreatedEvent.js","sourceRoot":"","sources":["../../../../src/utils/contracts/findCreatedEvent.ts"],"names":[],"mappings":";;AA2BA,oEAoCC;AA1CD,SAAS,yBAAyB,CAAC,KAAc;IAC/C,IAAI,CAAC,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,KAAK,CAAC;IACtD,MAAM,CAAC,GAAG,KAAmD,CAAC;IAC9D,OAAO,OAAO,CAAC,CAAC,CAAC,gBAAgB,CAAC,IAAI,OAAO,CAAC,CAAC,gBAAgB,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,CAAC,gBAAgB,CAAC;AAChH,CAAC;AAED,SAAgB,4BAA4B,CAC1C,QAAiD,EACjD,kBAA0B;IAU1B,MAAM,eAAe,GAAG,QAAQ,CAAC,eAAuD,CAAC;IACzF,MAAM,UAAU,GAAG,eAAe,EAAE,UAAU,IAAI,eAAe,EAAE,WAAW,EAAE,UAAU,IAAI,EAAE,CAAC;IAEjG,qEAAqE;IACrE,MAAM,wBAAwB,GAAG,kBAAkB,CAAC,QAAQ,CAAC,GAAG,CAAC;QAC/D,CAAC,CAAC,kBAAkB,CAAC,SAAS,CAAC,kBAAkB,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACnE,CAAC,CAAC,kBAAkB,CAAC;IAEvB,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;QAC9C,IAAI,yBAAyB,CAAC,KAAK,CAAC,EAAE,CAAC;YACrC,MAAM,OAAO,GAAG,KAAK,CAAC,gBAAgB,CAAC,KAAK,CAAC;YAC7C,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC;gBACvB,mEAAmE;gBACnE,MAAM,sBAAsB,GAAG,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC;oBAC7D,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;oBACnE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC;gBAEvB,IAAI,sBAAsB,KAAK,wBAAwB,EAAE,CAAC;oBACxD,OAAO,KAAK,CAAC;gBACf,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './amulet';
|
|
2
2
|
export * from './contracts';
|
|
3
3
|
export * from './mining';
|
|
4
|
-
export * from './
|
|
4
|
+
export * from './parsers';
|
|
5
5
|
export * from './party';
|
|
6
6
|
export * from './transactions';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
|
package/build/src/utils/index.js
CHANGED
|
@@ -14,10 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./amulet"), exports);
|
|
18
18
|
__exportStar(require("./contracts"), exports);
|
|
19
19
|
__exportStar(require("./mining"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./parsers"), exports);
|
|
21
21
|
__exportStar(require("./party"), exports);
|
|
22
22
|
__exportStar(require("./transactions"), exports);
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,8CAA4B;AAC5B,2CAAyB;AACzB,4CAA0B;AAC1B,0CAAwB;AACxB,iDAA+B"}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
/**
|
|
4
|
-
* Context information derived from open / issuing mining rounds.
|
|
5
|
-
*/
|
|
1
|
+
import { type DisclosedContract } from '../../clients/ledger-json-api/schemas';
|
|
2
|
+
import { type ValidatorApiClient } from '../../clients/validator-api';
|
|
3
|
+
/** Context information derived from open / issuing mining rounds. */
|
|
6
4
|
export interface MiningRoundContext {
|
|
7
5
|
/** Contract ID of the open mining round to reference in commands */
|
|
8
6
|
openMiningRound: string;
|
|
@@ -15,15 +13,15 @@ export interface MiningRoundContext {
|
|
|
15
13
|
}>;
|
|
16
14
|
}
|
|
17
15
|
/**
|
|
18
|
-
* Finds the latest mining round that is currently open (
|
|
19
|
-
*
|
|
16
|
+
* Finds the latest mining round that is currently open (`opensAt` is in the past) and returns useful context
|
|
17
|
+
* information.
|
|
20
18
|
*
|
|
21
19
|
* @throws Error if no mining round satisfies the criteria
|
|
22
20
|
*/
|
|
23
21
|
export declare function getCurrentMiningRoundContext(validatorClient: ValidatorApiClient): Promise<MiningRoundContext>;
|
|
24
22
|
/**
|
|
25
|
-
* Gets the domain ID from the current mining round context.
|
|
26
|
-
*
|
|
23
|
+
* Gets the domain ID from the current mining round context. This is useful for operations that need to automatically
|
|
24
|
+
* determine the domain ID.
|
|
27
25
|
*
|
|
28
26
|
* @param validatorClient - Validator API client for getting mining round information
|
|
29
27
|
* @returns Promise resolving to the domain ID string
|
|
@@ -32,6 +30,7 @@ export declare function getCurrentMiningRoundContext(validatorClient: ValidatorA
|
|
|
32
30
|
export declare function getCurrentMiningRoundDomainId(validatorClient: ValidatorApiClient): Promise<string>;
|
|
33
31
|
/**
|
|
34
32
|
* Gets the current mining round number by fetching the latest open mining round
|
|
33
|
+
*
|
|
35
34
|
* @param validatorClient Validator API client to fetch round information
|
|
36
35
|
* @returns Promise resolving to the current round number
|
|
37
36
|
* @throws Error if no open mining rounds are found
|
|
@@ -39,6 +38,7 @@ export declare function getCurrentMiningRoundDomainId(validatorClient: Validator
|
|
|
39
38
|
export declare function getCurrentRoundNumber(validatorClient: ValidatorApiClient): Promise<number>;
|
|
40
39
|
/**
|
|
41
40
|
* Wait until the mining round has actually changed, confirming the change
|
|
41
|
+
*
|
|
42
42
|
* @param validatorClient Validator API client to fetch round information
|
|
43
43
|
* @param maxWaitTime Maximum time to wait in milliseconds (default: 20 minutes)
|
|
44
44
|
* @returns Promise that resolves when the round has changed
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mining-rounds.d.ts","sourceRoot":"","sources":["../../../../src/utils/mining/mining-rounds.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mining-rounds.d.ts","sourceRoot":"","sources":["../../../../src/utils/mining/mining-rounds.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,KAAK,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAwCtE,qEAAqE;AACrE,MAAM,WAAW,kBAAkB;IACjC,oEAAoE;IACpE,eAAe,EAAE,MAAM,CAAC;IACxB,8EAA8E;IAC9E,uBAAuB,EAAE,iBAAiB,CAAC;IAC3C,4DAA4D;IAC5D,mBAAmB,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnE;AAED;;;;;GAKG;AACH,wBAAsB,4BAA4B,CAAC,eAAe,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA6CnH;AAED;;;;;;;GAOG;AACH,wBAAsB,6BAA6B,CAAC,eAAe,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAGxG;AAED;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,eAAe,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAchG;AAED;;;;;;GAMG;AACH,wBAAsB,kBAAkB,CACtC,eAAe,EAAE,kBAAkB,EACnC,WAAW,GAAE,MAAuB,GACnC,OAAO,CAAC,IAAI,CAAC,CAuCf"}
|
|
@@ -4,45 +4,37 @@ exports.getCurrentMiningRoundContext = getCurrentMiningRoundContext;
|
|
|
4
4
|
exports.getCurrentMiningRoundDomainId = getCurrentMiningRoundDomainId;
|
|
5
5
|
exports.getCurrentRoundNumber = getCurrentRoundNumber;
|
|
6
6
|
exports.waitForRoundChange = waitForRoundChange;
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
function sleep(ms) {
|
|
11
|
-
return new Promise(resolve => setTimeout(resolve, ms));
|
|
7
|
+
/** Sleep utility function */
|
|
8
|
+
async function sleep(ms) {
|
|
9
|
+
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
12
10
|
}
|
|
13
|
-
/**
|
|
14
|
-
* Extract round number from a mining round object
|
|
15
|
-
*/
|
|
11
|
+
/** Extract round number from a mining round object */
|
|
16
12
|
function getRoundNumber(miningRound) {
|
|
17
13
|
try {
|
|
18
14
|
// Try to get round number from various possible locations
|
|
19
|
-
return (miningRound.
|
|
20
|
-
miningRound.
|
|
21
|
-
miningRound.contract
|
|
22
|
-
miningRound.contract?.payload?.round_number ||
|
|
23
|
-
parseInt(miningRound.contract?.payload?.round?.number || '0') ||
|
|
24
|
-
0);
|
|
15
|
+
return (miningRound.contract.payload.roundNumber ??
|
|
16
|
+
miningRound.contract.payload.round_number ??
|
|
17
|
+
(miningRound.contract.payload.round?.number ? parseInt(miningRound.contract.payload.round.number, 10) : 0));
|
|
25
18
|
}
|
|
26
19
|
catch {
|
|
27
20
|
return 0;
|
|
28
21
|
}
|
|
29
22
|
}
|
|
30
|
-
/**
|
|
31
|
-
* Find the latest mining round from a list of open mining rounds
|
|
32
|
-
*/
|
|
23
|
+
/** Find the latest mining round from a list of open mining rounds */
|
|
33
24
|
function findLatestMiningRound(openMiningRounds) {
|
|
34
25
|
if (openMiningRounds.length === 0)
|
|
35
26
|
return null;
|
|
36
27
|
// Sort by round number descending and return the first (latest) one
|
|
37
|
-
|
|
28
|
+
const sorted = openMiningRounds.sort((a, b) => {
|
|
38
29
|
const roundA = getRoundNumber(a);
|
|
39
30
|
const roundB = getRoundNumber(b);
|
|
40
31
|
return roundB - roundA;
|
|
41
|
-
})
|
|
32
|
+
});
|
|
33
|
+
return sorted[0] ?? null;
|
|
42
34
|
}
|
|
43
35
|
/**
|
|
44
|
-
* Finds the latest mining round that is currently open (
|
|
45
|
-
*
|
|
36
|
+
* Finds the latest mining round that is currently open (`opensAt` is in the past) and returns useful context
|
|
37
|
+
* information.
|
|
46
38
|
*
|
|
47
39
|
* @throws Error if no mining round satisfies the criteria
|
|
48
40
|
*/
|
|
@@ -50,9 +42,9 @@ async function getCurrentMiningRoundContext(validatorClient) {
|
|
|
50
42
|
const miningRoundsResponse = await validatorClient.getOpenAndIssuingMiningRounds();
|
|
51
43
|
// Filter for rounds that have opened already (opensAt <= now)
|
|
52
44
|
const now = new Date();
|
|
53
|
-
const validOpenRounds = miningRoundsResponse.open_mining_rounds.filter(round => {
|
|
45
|
+
const validOpenRounds = miningRoundsResponse.open_mining_rounds.filter((round) => {
|
|
54
46
|
try {
|
|
55
|
-
const opensAtRaw = round
|
|
47
|
+
const opensAtRaw = round.contract.payload.opensAt;
|
|
56
48
|
if (!opensAtRaw)
|
|
57
49
|
return false;
|
|
58
50
|
const opensAt = new Date(opensAtRaw);
|
|
@@ -67,15 +59,18 @@ async function getCurrentMiningRoundContext(validatorClient) {
|
|
|
67
59
|
}
|
|
68
60
|
// Use the *last* round that has opened (the most recent open one)
|
|
69
61
|
const lastOpenRound = validOpenRounds[validOpenRounds.length - 1];
|
|
62
|
+
if (!lastOpenRound) {
|
|
63
|
+
throw new Error('No valid open mining round found');
|
|
64
|
+
}
|
|
70
65
|
const openMiningRoundContract = {
|
|
71
66
|
contractId: lastOpenRound.contract.contract_id,
|
|
72
67
|
templateId: lastOpenRound.contract.template_id,
|
|
73
68
|
createdEventBlob: lastOpenRound.contract.created_event_blob,
|
|
74
69
|
synchronizerId: lastOpenRound.domain_id, // Using domainId as synchronizerId (legacy behaviour)
|
|
75
70
|
};
|
|
76
|
-
const issuingMiningRounds =
|
|
71
|
+
const issuingMiningRounds = miningRoundsResponse.issuing_mining_rounds.map((round) => ({
|
|
77
72
|
round: round.round_number,
|
|
78
|
-
contractId:
|
|
73
|
+
contractId: round.contract_id ?? round.contract?.contract_id ?? '',
|
|
79
74
|
}));
|
|
80
75
|
return {
|
|
81
76
|
openMiningRound: openMiningRoundContract.contractId,
|
|
@@ -84,8 +79,8 @@ async function getCurrentMiningRoundContext(validatorClient) {
|
|
|
84
79
|
};
|
|
85
80
|
}
|
|
86
81
|
/**
|
|
87
|
-
* Gets the domain ID from the current mining round context.
|
|
88
|
-
*
|
|
82
|
+
* Gets the domain ID from the current mining round context. This is useful for operations that need to automatically
|
|
83
|
+
* determine the domain ID.
|
|
89
84
|
*
|
|
90
85
|
* @param validatorClient - Validator API client for getting mining round information
|
|
91
86
|
* @returns Promise resolving to the domain ID string
|
|
@@ -97,30 +92,26 @@ async function getCurrentMiningRoundDomainId(validatorClient) {
|
|
|
97
92
|
}
|
|
98
93
|
/**
|
|
99
94
|
* Gets the current mining round number by fetching the latest open mining round
|
|
95
|
+
*
|
|
100
96
|
* @param validatorClient Validator API client to fetch round information
|
|
101
97
|
* @returns Promise resolving to the current round number
|
|
102
98
|
* @throws Error if no open mining rounds are found
|
|
103
99
|
*/
|
|
104
100
|
async function getCurrentRoundNumber(validatorClient) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
throw new Error('No open mining rounds found');
|
|
110
|
-
}
|
|
111
|
-
const latestRound = findLatestMiningRound(currentOpenMiningRounds);
|
|
112
|
-
if (!latestRound) {
|
|
113
|
-
throw new Error('No valid mining rounds found');
|
|
114
|
-
}
|
|
115
|
-
return getRoundNumber(latestRound);
|
|
101
|
+
const miningRoundsResponse = await validatorClient.getOpenAndIssuingMiningRounds();
|
|
102
|
+
const currentOpenMiningRounds = miningRoundsResponse.open_mining_rounds;
|
|
103
|
+
if (currentOpenMiningRounds.length === 0) {
|
|
104
|
+
throw new Error('No open mining rounds found');
|
|
116
105
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
throw
|
|
106
|
+
const latestRound = findLatestMiningRound(currentOpenMiningRounds);
|
|
107
|
+
if (!latestRound) {
|
|
108
|
+
throw new Error('No valid mining rounds found');
|
|
120
109
|
}
|
|
110
|
+
return getRoundNumber(latestRound);
|
|
121
111
|
}
|
|
122
112
|
/**
|
|
123
113
|
* Wait until the mining round has actually changed, confirming the change
|
|
114
|
+
*
|
|
124
115
|
* @param validatorClient Validator API client to fetch round information
|
|
125
116
|
* @param maxWaitTime Maximum time to wait in milliseconds (default: 20 minutes)
|
|
126
117
|
* @returns Promise that resolves when the round has changed
|
|
@@ -130,37 +121,31 @@ async function waitForRoundChange(validatorClient, maxWaitTime = 20 * 60 * 1000
|
|
|
130
121
|
const startTime = Date.now();
|
|
131
122
|
const checkInterval = 20000; // Check every 20 seconds
|
|
132
123
|
const initialRoundNumber = await getCurrentRoundNumber(validatorClient);
|
|
133
|
-
console.log(`🔄 Waiting for mining round to change from ${initialRoundNumber}...`);
|
|
134
124
|
while (Date.now() - startTime < maxWaitTime) {
|
|
135
125
|
try {
|
|
136
126
|
const miningRoundsResponse = await validatorClient.getOpenAndIssuingMiningRounds();
|
|
137
127
|
const currentOpenMiningRounds = miningRoundsResponse.open_mining_rounds;
|
|
138
128
|
if (currentOpenMiningRounds.length === 0) {
|
|
139
|
-
console.log('⚠️ No open mining rounds found, waiting...');
|
|
140
129
|
await sleep(checkInterval);
|
|
141
130
|
continue;
|
|
142
131
|
}
|
|
143
132
|
const latestRound = findLatestMiningRound(currentOpenMiningRounds);
|
|
144
133
|
if (!latestRound) {
|
|
145
|
-
console.log('⚠️ No valid mining rounds found, waiting...');
|
|
146
134
|
await sleep(checkInterval);
|
|
147
135
|
continue;
|
|
148
136
|
}
|
|
149
137
|
const currentRoundNumber = getRoundNumber(latestRound);
|
|
150
138
|
process.stdout.write('.');
|
|
151
139
|
if (currentRoundNumber > initialRoundNumber) {
|
|
152
|
-
console.log(`✅ Mining round has changed from ${initialRoundNumber} to ${currentRoundNumber}`);
|
|
153
140
|
return;
|
|
154
141
|
}
|
|
155
142
|
// Round hasn't changed yet, wait and check again
|
|
156
143
|
await sleep(checkInterval);
|
|
157
144
|
}
|
|
158
|
-
catch
|
|
159
|
-
console.error('⚠️ Error checking mining rounds:', error);
|
|
145
|
+
catch {
|
|
160
146
|
await sleep(checkInterval);
|
|
161
147
|
}
|
|
162
148
|
}
|
|
163
|
-
console.log('❌ Timeout exceeded');
|
|
164
149
|
throw new Error(`Timeout waiting for mining round to change from ${initialRoundNumber} after ${maxWaitTime / 1000} seconds`);
|
|
165
150
|
}
|
|
166
151
|
//# sourceMappingURL=mining-rounds.js.map
|