@algorandfoundation/algokit-utils 9.2.0-beta.7 → 10.0.0-alpha.1
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/README.md +37 -0
- package/_virtual/rolldown_runtime.js +34 -0
- package/_virtual/rolldown_runtime.mjs +13 -0
- package/abi/index.d.ts +6 -0
- package/abi/index.js +40 -0
- package/abi/index.mjs +5 -0
- package/algod-client/index.d.ts +76 -0
- package/algod-client/index.js +17 -0
- package/algod-client/index.mjs +8 -0
- package/amount.d.ts +40 -35
- package/amount.js +36 -36
- package/amount.js.map +1 -1
- package/amount.mjs +36 -34
- package/amount.mjs.map +1 -1
- package/config.d.ts +7 -2
- package/config.js +5 -5
- package/config.js.map +1 -1
- package/config.mjs +4 -2
- package/config.mjs.map +1 -1
- package/index.d.ts +10 -18
- package/index.js +41 -143
- package/index.mjs +11 -29
- package/indexer-client/index.d.ts +78 -0
- package/indexer-client/index.js +17 -0
- package/indexer-client/index.mjs +8 -0
- package/indexer-lookup.d.ts +20 -27
- package/indexer-lookup.js +98 -128
- package/indexer-lookup.js.map +1 -1
- package/indexer-lookup.mjs +93 -123
- package/indexer-lookup.mjs.map +1 -1
- package/kmd-client/index.d.ts +54 -0
- package/kmd-client/index.js +17 -0
- package/kmd-client/index.mjs +8 -0
- package/package.json +43 -5
- package/packages/abi/src/abi-method.d.ts +117 -0
- package/packages/abi/src/abi-method.js +209 -0
- package/packages/abi/src/abi-method.js.map +1 -0
- package/packages/abi/src/abi-method.mjs +196 -0
- package/packages/abi/src/abi-method.mjs.map +1 -0
- package/packages/abi/src/abi-type.d.ts +253 -0
- package/packages/abi/src/abi-type.js +685 -0
- package/packages/abi/src/abi-type.js.map +1 -0
- package/packages/abi/src/abi-type.mjs +674 -0
- package/packages/abi/src/abi-type.mjs.map +1 -0
- package/packages/abi/src/abi-value.d.ts +11 -0
- package/packages/abi/src/arc28-event.d.ts +20 -0
- package/packages/abi/src/arc56-contract.d.ts +389 -0
- package/packages/abi/src/arc56-contract.js +196 -0
- package/packages/abi/src/arc56-contract.js.map +1 -0
- package/packages/abi/src/arc56-contract.mjs +185 -0
- package/packages/abi/src/arc56-contract.mjs.map +1 -0
- package/packages/abi/src/bigint.js +32 -0
- package/packages/abi/src/bigint.js.map +1 -0
- package/packages/abi/src/bigint.mjs +30 -0
- package/packages/abi/src/bigint.mjs.map +1 -0
- package/packages/algo25/src/english.js +2057 -0
- package/packages/algo25/src/english.js.map +1 -0
- package/packages/algo25/src/english.mjs +2056 -0
- package/packages/algo25/src/english.mjs.map +1 -0
- package/packages/algo25/src/index.js +75 -0
- package/packages/algo25/src/index.js.map +1 -0
- package/packages/algo25/src/index.mjs +75 -0
- package/packages/algo25/src/index.mjs.map +1 -0
- package/packages/algod_client/src/apis/api-service.d.ts +184 -0
- package/packages/algod_client/src/apis/api-service.js +627 -0
- package/packages/algod_client/src/apis/api-service.js.map +1 -0
- package/packages/algod_client/src/apis/api-service.mjs +627 -0
- package/packages/algod_client/src/apis/api-service.mjs.map +1 -0
- package/packages/algod_client/src/client.d.ts +10 -0
- package/packages/algod_client/src/client.js +13 -0
- package/packages/algod_client/src/client.js.map +1 -0
- package/packages/algod_client/src/client.mjs +13 -0
- package/packages/algod_client/src/client.mjs.map +1 -0
- package/packages/algod_client/src/core/api-error.d.ts +10 -0
- package/packages/algod_client/src/core/api-error.js +17 -0
- package/packages/algod_client/src/core/api-error.js.map +1 -0
- package/packages/algod_client/src/core/api-error.mjs +16 -0
- package/packages/algod_client/src/core/api-error.mjs.map +1 -0
- package/packages/algod_client/src/core/base-http-request.d.ts +25 -0
- package/packages/algod_client/src/core/base-http-request.js +16 -0
- package/packages/algod_client/src/core/base-http-request.js.map +1 -0
- package/packages/algod_client/src/core/base-http-request.mjs +14 -0
- package/packages/algod_client/src/core/base-http-request.mjs.map +1 -0
- package/packages/algod_client/src/core/client-config.d.ts +17 -0
- package/packages/algod_client/src/core/fetch-http-request.d.ts +10 -0
- package/packages/algod_client/src/core/fetch-http-request.js +85 -0
- package/packages/algod_client/src/core/fetch-http-request.js.map +1 -0
- package/packages/algod_client/src/core/fetch-http-request.mjs +85 -0
- package/packages/algod_client/src/core/fetch-http-request.mjs.map +1 -0
- package/packages/algod_client/src/core/model-runtime.d.ts +10 -0
- package/packages/algod_client/src/core/model-runtime.js +25 -0
- package/packages/algod_client/src/core/model-runtime.js.map +1 -0
- package/packages/algod_client/src/core/model-runtime.mjs +22 -0
- package/packages/algod_client/src/core/model-runtime.mjs.map +1 -0
- package/packages/algod_client/src/core/request.js +62 -0
- package/packages/algod_client/src/core/request.js.map +1 -0
- package/packages/algod_client/src/core/request.mjs +62 -0
- package/packages/algod_client/src/core/request.mjs.map +1 -0
- package/packages/algod_client/src/models/account-application-response.d.ts +15 -0
- package/packages/algod_client/src/models/account-application-response.js +34 -0
- package/packages/algod_client/src/models/account-application-response.js.map +1 -0
- package/packages/algod_client/src/models/account-application-response.mjs +34 -0
- package/packages/algod_client/src/models/account-application-response.mjs.map +1 -0
- package/packages/algod_client/src/models/account-asset-response.d.ts +15 -0
- package/packages/algod_client/src/models/account-asset-response.js +34 -0
- package/packages/algod_client/src/models/account-asset-response.js.map +1 -0
- package/packages/algod_client/src/models/account-asset-response.mjs +34 -0
- package/packages/algod_client/src/models/account-asset-response.mjs.map +1 -0
- package/packages/algod_client/src/models/account-participation.d.ts +33 -0
- package/packages/algod_client/src/models/account-participation.js +50 -0
- package/packages/algod_client/src/models/account-participation.js.map +1 -0
- package/packages/algod_client/src/models/account-participation.mjs +50 -0
- package/packages/algod_client/src/models/account-participation.mjs.map +1 -0
- package/packages/algod_client/src/models/account-state-delta.d.ts +15 -0
- package/packages/algod_client/src/models/account-state-delta.js +24 -0
- package/packages/algod_client/src/models/account-state-delta.js.map +1 -0
- package/packages/algod_client/src/models/account-state-delta.mjs +24 -0
- package/packages/algod_client/src/models/account-state-delta.mjs.map +1 -0
- package/packages/algod_client/src/models/account.d.ts +139 -0
- package/packages/algod_client/src/models/account.js +187 -0
- package/packages/algod_client/src/models/account.js.map +1 -0
- package/packages/algod_client/src/models/account.mjs +187 -0
- package/packages/algod_client/src/models/account.mjs.map +1 -0
- package/packages/algod_client/src/models/application-initial-states.d.ts +22 -0
- package/packages/algod_client/src/models/application-initial-states.js +40 -0
- package/packages/algod_client/src/models/application-initial-states.js.map +1 -0
- package/packages/algod_client/src/models/application-initial-states.mjs +40 -0
- package/packages/algod_client/src/models/application-initial-states.mjs.map +1 -0
- package/packages/algod_client/src/models/application-kv-storage.d.ts +21 -0
- package/packages/algod_client/src/models/application-kv-storage.js +25 -0
- package/packages/algod_client/src/models/application-kv-storage.js.map +1 -0
- package/packages/algod_client/src/models/application-kv-storage.mjs +25 -0
- package/packages/algod_client/src/models/application-kv-storage.mjs.map +1 -0
- package/packages/algod_client/src/models/application-local-reference.d.ts +20 -0
- package/packages/algod_client/src/models/application-local-reference.js +23 -0
- package/packages/algod_client/src/models/application-local-reference.js.map +1 -0
- package/packages/algod_client/src/models/application-local-reference.mjs +23 -0
- package/packages/algod_client/src/models/application-local-reference.mjs.map +1 -0
- package/packages/algod_client/src/models/application-local-state.d.ts +19 -0
- package/packages/algod_client/src/models/application-local-state.js +35 -0
- package/packages/algod_client/src/models/application-local-state.js.map +1 -0
- package/packages/algod_client/src/models/application-local-state.mjs +35 -0
- package/packages/algod_client/src/models/application-local-state.mjs.map +1 -0
- package/packages/algod_client/src/models/application-params.d.ts +37 -0
- package/packages/algod_client/src/models/application-params.js +67 -0
- package/packages/algod_client/src/models/application-params.js.map +1 -0
- package/packages/algod_client/src/models/application-params.mjs +67 -0
- package/packages/algod_client/src/models/application-params.mjs.map +1 -0
- package/packages/algod_client/src/models/application-state-operation.d.ts +30 -0
- package/packages/algod_client/src/models/application-state-operation.js +47 -0
- package/packages/algod_client/src/models/application-state-operation.js.map +1 -0
- package/packages/algod_client/src/models/application-state-operation.mjs +47 -0
- package/packages/algod_client/src/models/application-state-operation.mjs.map +1 -0
- package/packages/algod_client/src/models/application-state-schema.d.ts +17 -0
- package/packages/algod_client/src/models/application-state-schema.js +22 -0
- package/packages/algod_client/src/models/application-state-schema.js.map +1 -0
- package/packages/algod_client/src/models/application-state-schema.mjs +22 -0
- package/packages/algod_client/src/models/application-state-schema.mjs.map +1 -0
- package/packages/algod_client/src/models/application.d.ts +17 -0
- package/packages/algod_client/src/models/application.js +24 -0
- package/packages/algod_client/src/models/application.js.map +1 -0
- package/packages/algod_client/src/models/application.mjs +24 -0
- package/packages/algod_client/src/models/application.mjs.map +1 -0
- package/packages/algod_client/src/models/asset-holding-reference.d.ts +20 -0
- package/packages/algod_client/src/models/asset-holding-reference.js +23 -0
- package/packages/algod_client/src/models/asset-holding-reference.js.map +1 -0
- package/packages/algod_client/src/models/asset-holding-reference.mjs +23 -0
- package/packages/algod_client/src/models/asset-holding-reference.mjs.map +1 -0
- package/packages/algod_client/src/models/asset-holding.d.ts +24 -0
- package/packages/algod_client/src/models/asset-holding.js +32 -0
- package/packages/algod_client/src/models/asset-holding.js.map +1 -0
- package/packages/algod_client/src/models/asset-holding.mjs +32 -0
- package/packages/algod_client/src/models/asset-holding.mjs.map +1 -0
- package/packages/algod_client/src/models/asset-params.d.ts +74 -0
- package/packages/algod_client/src/models/asset-params.js +107 -0
- package/packages/algod_client/src/models/asset-params.js.map +1 -0
- package/packages/algod_client/src/models/asset-params.mjs +107 -0
- package/packages/algod_client/src/models/asset-params.mjs.map +1 -0
- package/packages/algod_client/src/models/asset.d.ts +17 -0
- package/packages/algod_client/src/models/asset.js +24 -0
- package/packages/algod_client/src/models/asset.js.map +1 -0
- package/packages/algod_client/src/models/asset.mjs +24 -0
- package/packages/algod_client/src/models/asset.mjs.map +1 -0
- package/packages/algod_client/src/models/avm-key-value.d.ts +14 -0
- package/packages/algod_client/src/models/avm-key-value.js +24 -0
- package/packages/algod_client/src/models/avm-key-value.js.map +1 -0
- package/packages/algod_client/src/models/avm-key-value.mjs +24 -0
- package/packages/algod_client/src/models/avm-key-value.mjs.map +1 -0
- package/packages/algod_client/src/models/avm-value.d.ts +21 -0
- package/packages/algod_client/src/models/avm-value.js +33 -0
- package/packages/algod_client/src/models/avm-value.js.map +1 -0
- package/packages/algod_client/src/models/avm-value.mjs +33 -0
- package/packages/algod_client/src/models/avm-value.mjs.map +1 -0
- package/packages/algod_client/src/models/block-hash-response.d.ts +10 -0
- package/packages/algod_client/src/models/block-hash-response.js +17 -0
- package/packages/algod_client/src/models/block-hash-response.js.map +1 -0
- package/packages/algod_client/src/models/block-hash-response.mjs +17 -0
- package/packages/algod_client/src/models/block-hash-response.mjs.map +1 -0
- package/packages/algod_client/src/models/block-response.d.ts +12 -0
- package/packages/algod_client/src/models/block-response.js +25 -0
- package/packages/algod_client/src/models/block-response.js.map +1 -0
- package/packages/algod_client/src/models/block-response.mjs +25 -0
- package/packages/algod_client/src/models/block-response.mjs.map +1 -0
- package/packages/algod_client/src/models/block-txids-response.d.ts +10 -0
- package/packages/algod_client/src/models/block-txids-response.js +17 -0
- package/packages/algod_client/src/models/block-txids-response.js.map +1 -0
- package/packages/algod_client/src/models/block-txids-response.mjs +17 -0
- package/packages/algod_client/src/models/block-txids-response.mjs.map +1 -0
- package/packages/algod_client/src/models/block.d.ts +146 -0
- package/packages/algod_client/src/models/block.js +415 -0
- package/packages/algod_client/src/models/block.js.map +1 -0
- package/packages/algod_client/src/models/block.mjs +415 -0
- package/packages/algod_client/src/models/block.mjs.map +1 -0
- package/packages/algod_client/src/models/box-descriptor.d.ts +13 -0
- package/packages/algod_client/src/models/box-descriptor.js +17 -0
- package/packages/algod_client/src/models/box-descriptor.js.map +1 -0
- package/packages/algod_client/src/models/box-descriptor.mjs +17 -0
- package/packages/algod_client/src/models/box-descriptor.mjs.map +1 -0
- package/packages/algod_client/src/models/box-reference.d.ts +17 -0
- package/packages/algod_client/src/models/box-reference.js +23 -0
- package/packages/algod_client/src/models/box-reference.js.map +1 -0
- package/packages/algod_client/src/models/box-reference.mjs +23 -0
- package/packages/algod_client/src/models/box-reference.mjs.map +1 -0
- package/packages/algod_client/src/models/box.d.ts +21 -0
- package/packages/algod_client/src/models/box.js +32 -0
- package/packages/algod_client/src/models/box.js.map +1 -0
- package/packages/algod_client/src/models/box.mjs +32 -0
- package/packages/algod_client/src/models/box.mjs.map +1 -0
- package/packages/algod_client/src/models/boxes-response.d.ts +9 -0
- package/packages/algod_client/src/models/boxes-response.js +19 -0
- package/packages/algod_client/src/models/boxes-response.js.map +1 -0
- package/packages/algod_client/src/models/boxes-response.mjs +19 -0
- package/packages/algod_client/src/models/boxes-response.mjs.map +1 -0
- package/packages/algod_client/src/models/build-version.d.ts +12 -0
- package/packages/algod_client/src/models/build-version.js +50 -0
- package/packages/algod_client/src/models/build-version.js.map +1 -0
- package/packages/algod_client/src/models/build-version.mjs +50 -0
- package/packages/algod_client/src/models/build-version.mjs.map +1 -0
- package/packages/algod_client/src/models/compile-response.d.ts +17 -0
- package/packages/algod_client/src/models/compile-response.js +33 -0
- package/packages/algod_client/src/models/compile-response.js.map +1 -0
- package/packages/algod_client/src/models/compile-response.mjs +33 -0
- package/packages/algod_client/src/models/compile-response.mjs.map +1 -0
- package/packages/algod_client/src/models/disassemble-response.d.ts +10 -0
- package/packages/algod_client/src/models/disassemble-response.js +17 -0
- package/packages/algod_client/src/models/disassemble-response.js.map +1 -0
- package/packages/algod_client/src/models/disassemble-response.mjs +17 -0
- package/packages/algod_client/src/models/disassemble-response.mjs.map +1 -0
- package/packages/algod_client/src/models/eval-delta-key-value.d.ts +14 -0
- package/packages/algod_client/src/models/eval-delta-key-value.js +24 -0
- package/packages/algod_client/src/models/eval-delta-key-value.js.map +1 -0
- package/packages/algod_client/src/models/eval-delta-key-value.mjs +24 -0
- package/packages/algod_client/src/models/eval-delta-key-value.mjs.map +1 -0
- package/packages/algod_client/src/models/eval-delta.d.ts +21 -0
- package/packages/algod_client/src/models/eval-delta.js +33 -0
- package/packages/algod_client/src/models/eval-delta.js.map +1 -0
- package/packages/algod_client/src/models/eval-delta.mjs +33 -0
- package/packages/algod_client/src/models/eval-delta.mjs.map +1 -0
- package/packages/algod_client/src/models/genesis-allocation.d.ts +18 -0
- package/packages/algod_client/src/models/genesis-allocation.js +88 -0
- package/packages/algod_client/src/models/genesis-allocation.js.map +1 -0
- package/packages/algod_client/src/models/genesis-allocation.mjs +88 -0
- package/packages/algod_client/src/models/genesis-allocation.mjs.map +1 -0
- package/packages/algod_client/src/models/genesis.d.ts +17 -0
- package/packages/algod_client/src/models/genesis.js +72 -0
- package/packages/algod_client/src/models/genesis.js.map +1 -0
- package/packages/algod_client/src/models/genesis.mjs +72 -0
- package/packages/algod_client/src/models/genesis.mjs.map +1 -0
- package/packages/algod_client/src/models/get-block-time-stamp-offset-response.d.ts +10 -0
- package/packages/algod_client/src/models/get-block-time-stamp-offset-response.js +17 -0
- package/packages/algod_client/src/models/get-block-time-stamp-offset-response.js.map +1 -0
- package/packages/algod_client/src/models/get-block-time-stamp-offset-response.mjs +17 -0
- package/packages/algod_client/src/models/get-block-time-stamp-offset-response.mjs.map +1 -0
- package/packages/algod_client/src/models/get-sync-round-response.d.ts +10 -0
- package/packages/algod_client/src/models/get-sync-round-response.js +17 -0
- package/packages/algod_client/src/models/get-sync-round-response.js.map +1 -0
- package/packages/algod_client/src/models/get-sync-round-response.mjs +17 -0
- package/packages/algod_client/src/models/get-sync-round-response.mjs.map +1 -0
- package/packages/algod_client/src/models/ledger-state-delta-for-transaction-group.d.ts +14 -0
- package/packages/algod_client/src/models/ledger-state-delta-for-transaction-group.js +24 -0
- package/packages/algod_client/src/models/ledger-state-delta-for-transaction-group.js.map +1 -0
- package/packages/algod_client/src/models/ledger-state-delta-for-transaction-group.mjs +24 -0
- package/packages/algod_client/src/models/ledger-state-delta-for-transaction-group.mjs.map +1 -0
- package/packages/algod_client/src/models/ledger-state-delta.d.ts +351 -0
- package/packages/algod_client/src/models/ledger-state-delta.js +688 -0
- package/packages/algod_client/src/models/ledger-state-delta.js.map +1 -0
- package/packages/algod_client/src/models/ledger-state-delta.mjs +688 -0
- package/packages/algod_client/src/models/ledger-state-delta.mjs.map +1 -0
- package/packages/algod_client/src/models/light-block-header-proof.d.ts +21 -0
- package/packages/algod_client/src/models/light-block-header-proof.js +32 -0
- package/packages/algod_client/src/models/light-block-header-proof.js.map +1 -0
- package/packages/algod_client/src/models/light-block-header-proof.mjs +32 -0
- package/packages/algod_client/src/models/light-block-header-proof.mjs.map +1 -0
- package/packages/algod_client/src/models/node-status-response.d.ts +113 -0
- package/packages/algod_client/src/models/node-status-response.js +172 -0
- package/packages/algod_client/src/models/node-status-response.js.map +1 -0
- package/packages/algod_client/src/models/node-status-response.mjs +172 -0
- package/packages/algod_client/src/models/node-status-response.mjs.map +1 -0
- package/packages/algod_client/src/models/pending-transaction-response.d.ts +67 -0
- package/packages/algod_client/src/models/pending-transaction-response.js +104 -0
- package/packages/algod_client/src/models/pending-transaction-response.js.map +1 -0
- package/packages/algod_client/src/models/pending-transaction-response.mjs +104 -0
- package/packages/algod_client/src/models/pending-transaction-response.mjs.map +1 -0
- package/packages/algod_client/src/models/pending-transactions-response.d.ts +20 -0
- package/packages/algod_client/src/models/pending-transactions-response.js +25 -0
- package/packages/algod_client/src/models/pending-transactions-response.js.map +1 -0
- package/packages/algod_client/src/models/pending-transactions-response.mjs +25 -0
- package/packages/algod_client/src/models/pending-transactions-response.mjs.map +1 -0
- package/packages/algod_client/src/models/post-transactions-response.d.ts +10 -0
- package/packages/algod_client/src/models/post-transactions-response.js +17 -0
- package/packages/algod_client/src/models/post-transactions-response.js.map +1 -0
- package/packages/algod_client/src/models/post-transactions-response.mjs +17 -0
- package/packages/algod_client/src/models/post-transactions-response.mjs.map +1 -0
- package/packages/algod_client/src/models/scratch-change.d.ts +17 -0
- package/packages/algod_client/src/models/scratch-change.js +24 -0
- package/packages/algod_client/src/models/scratch-change.js.map +1 -0
- package/packages/algod_client/src/models/scratch-change.mjs +24 -0
- package/packages/algod_client/src/models/scratch-change.mjs.map +1 -0
- package/packages/algod_client/src/models/simulate-initial-states.d.ts +16 -0
- package/packages/algod_client/src/models/simulate-initial-states.js +19 -0
- package/packages/algod_client/src/models/simulate-initial-states.js.map +1 -0
- package/packages/algod_client/src/models/simulate-initial-states.mjs +19 -0
- package/packages/algod_client/src/models/simulate-initial-states.mjs.map +1 -0
- package/packages/algod_client/src/models/simulate-request-transaction-group.d.ts +16 -0
- package/packages/algod_client/src/models/simulate-request-transaction-group.js +19 -0
- package/packages/algod_client/src/models/simulate-request-transaction-group.js.map +1 -0
- package/packages/algod_client/src/models/simulate-request-transaction-group.mjs +19 -0
- package/packages/algod_client/src/models/simulate-request-transaction-group.mjs.map +1 -0
- package/packages/algod_client/src/models/simulate-request.d.ts +42 -0
- package/packages/algod_client/src/models/simulate-request.js +67 -0
- package/packages/algod_client/src/models/simulate-request.js.map +1 -0
- package/packages/algod_client/src/models/simulate-request.mjs +67 -0
- package/packages/algod_client/src/models/simulate-request.mjs.map +1 -0
- package/packages/algod_client/src/models/simulate-response.d.ts +26 -0
- package/packages/algod_client/src/models/simulate-response.js +56 -0
- package/packages/algod_client/src/models/simulate-response.js.map +1 -0
- package/packages/algod_client/src/models/simulate-response.mjs +56 -0
- package/packages/algod_client/src/models/simulate-response.mjs.map +1 -0
- package/packages/algod_client/src/models/simulate-trace-config.d.ts +25 -0
- package/packages/algod_client/src/models/simulate-trace-config.js +37 -0
- package/packages/algod_client/src/models/simulate-trace-config.js.map +1 -0
- package/packages/algod_client/src/models/simulate-trace-config.mjs +37 -0
- package/packages/algod_client/src/models/simulate-trace-config.mjs.map +1 -0
- package/packages/algod_client/src/models/simulate-transaction-group-result.d.ts +34 -0
- package/packages/algod_client/src/models/simulate-transaction-group-result.js +54 -0
- package/packages/algod_client/src/models/simulate-transaction-group-result.js.map +1 -0
- package/packages/algod_client/src/models/simulate-transaction-group-result.mjs +54 -0
- package/packages/algod_client/src/models/simulate-transaction-group-result.mjs.map +1 -0
- package/packages/algod_client/src/models/simulate-transaction-result.d.ts +30 -0
- package/packages/algod_client/src/models/simulate-transaction-result.js +54 -0
- package/packages/algod_client/src/models/simulate-transaction-result.js.map +1 -0
- package/packages/algod_client/src/models/simulate-transaction-result.mjs +54 -0
- package/packages/algod_client/src/models/simulate-transaction-result.mjs.map +1 -0
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.d.ts +43 -0
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js +60 -0
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js.map +1 -0
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs +60 -0
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs.map +1 -0
- package/packages/algod_client/src/models/simulation-eval-overrides.d.ts +33 -0
- package/packages/algod_client/src/models/simulation-eval-overrides.js +50 -0
- package/packages/algod_client/src/models/simulation-eval-overrides.js.map +1 -0
- package/packages/algod_client/src/models/simulation-eval-overrides.mjs +50 -0
- package/packages/algod_client/src/models/simulation-eval-overrides.mjs.map +1 -0
- package/packages/algod_client/src/models/simulation-opcode-trace-unit.d.ts +38 -0
- package/packages/algod_client/src/models/simulation-opcode-trace-unit.js +54 -0
- package/packages/algod_client/src/models/simulation-opcode-trace-unit.js.map +1 -0
- package/packages/algod_client/src/models/simulation-opcode-trace-unit.mjs +54 -0
- package/packages/algod_client/src/models/simulation-opcode-trace-unit.mjs.map +1 -0
- package/packages/algod_client/src/models/simulation-transaction-exec-trace.d.ts +48 -0
- package/packages/algod_client/src/models/simulation-transaction-exec-trace.js +72 -0
- package/packages/algod_client/src/models/simulation-transaction-exec-trace.js.map +1 -0
- package/packages/algod_client/src/models/simulation-transaction-exec-trace.mjs +72 -0
- package/packages/algod_client/src/models/simulation-transaction-exec-trace.mjs.map +1 -0
- package/packages/algod_client/src/models/source-map.d.ts +22 -0
- package/packages/algod_client/src/models/source-map.js +39 -0
- package/packages/algod_client/src/models/source-map.js.map +1 -0
- package/packages/algod_client/src/models/source-map.mjs +39 -0
- package/packages/algod_client/src/models/source-map.mjs.map +1 -0
- package/packages/algod_client/src/models/state-delta.d.ts +11 -0
- package/packages/algod_client/src/models/state-delta.js +14 -0
- package/packages/algod_client/src/models/state-delta.js.map +1 -0
- package/packages/algod_client/src/models/state-delta.mjs +14 -0
- package/packages/algod_client/src/models/state-delta.mjs.map +1 -0
- package/packages/algod_client/src/models/state-proof-message.d.ts +29 -0
- package/packages/algod_client/src/models/state-proof-message.js +44 -0
- package/packages/algod_client/src/models/state-proof-message.js.map +1 -0
- package/packages/algod_client/src/models/state-proof-message.mjs +44 -0
- package/packages/algod_client/src/models/state-proof-message.mjs.map +1 -0
- package/packages/algod_client/src/models/state-proof.d.ts +17 -0
- package/packages/algod_client/src/models/state-proof.js +24 -0
- package/packages/algod_client/src/models/state-proof.js.map +1 -0
- package/packages/algod_client/src/models/state-proof.mjs +24 -0
- package/packages/algod_client/src/models/state-proof.mjs.map +1 -0
- package/packages/algod_client/src/models/suggested-params.d.ts +14 -0
- package/packages/algod_client/src/models/supply-response.d.ts +21 -0
- package/packages/algod_client/src/models/supply-response.js +31 -0
- package/packages/algod_client/src/models/supply-response.js.map +1 -0
- package/packages/algod_client/src/models/supply-response.mjs +31 -0
- package/packages/algod_client/src/models/supply-response.mjs.map +1 -0
- package/packages/algod_client/src/models/teal-key-value-store.d.ts +11 -0
- package/packages/algod_client/src/models/teal-key-value-store.js +14 -0
- package/packages/algod_client/src/models/teal-key-value-store.js.map +1 -0
- package/packages/algod_client/src/models/teal-key-value-store.mjs +14 -0
- package/packages/algod_client/src/models/teal-key-value-store.mjs.map +1 -0
- package/packages/algod_client/src/models/teal-key-value.d.ts +14 -0
- package/packages/algod_client/src/models/teal-key-value.js +24 -0
- package/packages/algod_client/src/models/teal-key-value.js.map +1 -0
- package/packages/algod_client/src/models/teal-key-value.mjs +24 -0
- package/packages/algod_client/src/models/teal-key-value.mjs.map +1 -0
- package/packages/algod_client/src/models/teal-value.d.ts +21 -0
- package/packages/algod_client/src/models/teal-value.js +33 -0
- package/packages/algod_client/src/models/teal-value.js.map +1 -0
- package/packages/algod_client/src/models/teal-value.mjs +33 -0
- package/packages/algod_client/src/models/teal-value.mjs.map +1 -0
- package/packages/algod_client/src/models/transaction-group-ledger-state-deltas-for-round-response.d.ts +9 -0
- package/packages/algod_client/src/models/transaction-group-ledger-state-deltas-for-round-response.js +19 -0
- package/packages/algod_client/src/models/transaction-group-ledger-state-deltas-for-round-response.js.map +1 -0
- package/packages/algod_client/src/models/transaction-group-ledger-state-deltas-for-round-response.mjs +19 -0
- package/packages/algod_client/src/models/transaction-group-ledger-state-deltas-for-round-response.mjs.map +1 -0
- package/packages/algod_client/src/models/transaction-parameters-response.d.ts +39 -0
- package/packages/algod_client/src/models/transaction-parameters-response.js +51 -0
- package/packages/algod_client/src/models/transaction-parameters-response.js.map +1 -0
- package/packages/algod_client/src/models/transaction-parameters-response.mjs +51 -0
- package/packages/algod_client/src/models/transaction-parameters-response.mjs.map +1 -0
- package/packages/algod_client/src/models/transaction-proof.d.ts +31 -0
- package/packages/algod_client/src/models/transaction-proof.js +45 -0
- package/packages/algod_client/src/models/transaction-proof.js.map +1 -0
- package/packages/algod_client/src/models/transaction-proof.mjs +45 -0
- package/packages/algod_client/src/models/transaction-proof.mjs.map +1 -0
- package/packages/algod_client/src/models/version.d.ts +16 -0
- package/packages/algod_client/src/models/version.js +41 -0
- package/packages/algod_client/src/models/version.js.map +1 -0
- package/packages/algod_client/src/models/version.mjs +41 -0
- package/packages/algod_client/src/models/version.mjs.map +1 -0
- package/packages/common/src/address.d.ts +71 -0
- package/packages/common/src/address.js +156 -0
- package/packages/common/src/address.js.map +1 -0
- package/packages/common/src/address.mjs +144 -0
- package/packages/common/src/address.mjs.map +1 -0
- package/packages/common/src/array.js +21 -0
- package/packages/common/src/array.js.map +1 -0
- package/packages/common/src/array.mjs +19 -0
- package/packages/common/src/array.mjs.map +1 -0
- package/packages/common/src/codecs/codec.d.ts +71 -0
- package/packages/common/src/codecs/codec.js +87 -0
- package/packages/common/src/codecs/codec.js.map +1 -0
- package/packages/common/src/codecs/codec.mjs +86 -0
- package/packages/common/src/codecs/codec.mjs.map +1 -0
- package/packages/common/src/codecs/composite/array.js +45 -0
- package/packages/common/src/codecs/composite/array.js.map +1 -0
- package/packages/common/src/codecs/composite/array.mjs +40 -0
- package/packages/common/src/codecs/composite/array.mjs.map +1 -0
- package/packages/common/src/codecs/composite/map.js +65 -0
- package/packages/common/src/codecs/composite/map.js.map +1 -0
- package/packages/common/src/codecs/composite/map.mjs +65 -0
- package/packages/common/src/codecs/composite/map.mjs.map +1 -0
- package/packages/common/src/codecs/composite/record.js +41 -0
- package/packages/common/src/codecs/composite/record.js.map +1 -0
- package/packages/common/src/codecs/composite/record.mjs +39 -0
- package/packages/common/src/codecs/composite/record.mjs.map +1 -0
- package/packages/common/src/codecs/models/array-model.js +36 -0
- package/packages/common/src/codecs/models/array-model.js.map +1 -0
- package/packages/common/src/codecs/models/array-model.mjs +36 -0
- package/packages/common/src/codecs/models/array-model.mjs.map +1 -0
- package/packages/common/src/codecs/models/object-model.d.ts +22 -0
- package/packages/common/src/codecs/models/object-model.js +87 -0
- package/packages/common/src/codecs/models/object-model.js.map +1 -0
- package/packages/common/src/codecs/models/object-model.mjs +87 -0
- package/packages/common/src/codecs/models/object-model.mjs.map +1 -0
- package/packages/common/src/codecs/models/primitive-model.js +36 -0
- package/packages/common/src/codecs/models/primitive-model.js.map +1 -0
- package/packages/common/src/codecs/models/primitive-model.mjs +36 -0
- package/packages/common/src/codecs/models/primitive-model.mjs.map +1 -0
- package/packages/common/src/codecs/primitives/address.js +33 -0
- package/packages/common/src/codecs/primitives/address.js.map +1 -0
- package/packages/common/src/codecs/primitives/address.mjs +31 -0
- package/packages/common/src/codecs/primitives/address.mjs.map +1 -0
- package/packages/common/src/codecs/primitives/bigint.js +18 -0
- package/packages/common/src/codecs/primitives/bigint.js.map +1 -0
- package/packages/common/src/codecs/primitives/bigint.mjs +18 -0
- package/packages/common/src/codecs/primitives/bigint.mjs.map +1 -0
- package/packages/common/src/codecs/primitives/boolean.js +13 -0
- package/packages/common/src/codecs/primitives/boolean.js.map +1 -0
- package/packages/common/src/codecs/primitives/boolean.mjs +13 -0
- package/packages/common/src/codecs/primitives/boolean.mjs.map +1 -0
- package/packages/common/src/codecs/primitives/bytes.js +28 -0
- package/packages/common/src/codecs/primitives/bytes.js.map +1 -0
- package/packages/common/src/codecs/primitives/bytes.mjs +26 -0
- package/packages/common/src/codecs/primitives/bytes.mjs.map +1 -0
- package/packages/common/src/codecs/primitives/fixed-bytes.js +37 -0
- package/packages/common/src/codecs/primitives/fixed-bytes.js.map +1 -0
- package/packages/common/src/codecs/primitives/fixed-bytes.mjs +33 -0
- package/packages/common/src/codecs/primitives/fixed-bytes.mjs.map +1 -0
- package/packages/common/src/codecs/primitives/number.js +16 -0
- package/packages/common/src/codecs/primitives/number.js.map +1 -0
- package/packages/common/src/codecs/primitives/number.mjs +16 -0
- package/packages/common/src/codecs/primitives/number.mjs.map +1 -0
- package/packages/common/src/codecs/primitives/string.js +17 -0
- package/packages/common/src/codecs/primitives/string.js.map +1 -0
- package/packages/common/src/codecs/primitives/string.mjs +17 -0
- package/packages/common/src/codecs/primitives/string.mjs.map +1 -0
- package/packages/common/src/codecs/primitives/unknown.js +58 -0
- package/packages/common/src/codecs/primitives/unknown.js.map +1 -0
- package/packages/common/src/codecs/primitives/unknown.mjs +58 -0
- package/packages/common/src/codecs/primitives/unknown.mjs.map +1 -0
- package/packages/common/src/codecs/types.d.ts +27 -0
- package/packages/common/src/codecs/wire.d.ts +15 -0
- package/packages/common/src/codecs/wire.js +24 -0
- package/packages/common/src/codecs/wire.js.map +1 -0
- package/packages/common/src/codecs/wire.mjs +21 -0
- package/packages/common/src/codecs/wire.mjs.map +1 -0
- package/packages/common/src/constants.js +63 -0
- package/packages/common/src/constants.js.map +1 -0
- package/packages/common/src/constants.mjs +34 -0
- package/packages/common/src/constants.mjs.map +1 -0
- package/packages/common/src/crypto.js +13 -0
- package/packages/common/src/crypto.js.map +1 -0
- package/packages/common/src/crypto.mjs +11 -0
- package/packages/common/src/crypto.mjs.map +1 -0
- package/packages/common/src/expand.d.ts +9 -0
- package/packages/common/src/json.js +38 -0
- package/packages/common/src/json.js.map +1 -0
- package/packages/common/src/json.mjs +35 -0
- package/packages/common/src/json.mjs.map +1 -0
- package/packages/common/src/logger.d.ts +12 -0
- package/packages/common/src/msgpack.js +26 -0
- package/packages/common/src/msgpack.js.map +1 -0
- package/packages/common/src/msgpack.mjs +23 -0
- package/packages/common/src/msgpack.mjs.map +1 -0
- package/packages/indexer_client/src/apis/api-service.d.ts +251 -0
- package/packages/indexer_client/src/apis/api-service.js +482 -0
- package/packages/indexer_client/src/apis/api-service.js.map +1 -0
- package/packages/indexer_client/src/apis/api-service.mjs +482 -0
- package/packages/indexer_client/src/apis/api-service.mjs.map +1 -0
- package/packages/indexer_client/src/client.d.ts +10 -0
- package/packages/indexer_client/src/client.js +13 -0
- package/packages/indexer_client/src/client.js.map +1 -0
- package/packages/indexer_client/src/client.mjs +13 -0
- package/packages/indexer_client/src/client.mjs.map +1 -0
- package/packages/indexer_client/src/core/api-error.d.ts +10 -0
- package/packages/indexer_client/src/core/api-error.js +17 -0
- package/packages/indexer_client/src/core/api-error.js.map +1 -0
- package/packages/indexer_client/src/core/api-error.mjs +16 -0
- package/packages/indexer_client/src/core/api-error.mjs.map +1 -0
- package/packages/indexer_client/src/core/base-http-request.d.ts +25 -0
- package/packages/indexer_client/src/core/base-http-request.js +16 -0
- package/packages/indexer_client/src/core/base-http-request.js.map +1 -0
- package/packages/indexer_client/src/core/base-http-request.mjs +14 -0
- package/packages/indexer_client/src/core/base-http-request.mjs.map +1 -0
- package/packages/indexer_client/src/core/client-config.d.ts +17 -0
- package/packages/indexer_client/src/core/fetch-http-request.d.ts +10 -0
- package/packages/indexer_client/src/core/fetch-http-request.js +85 -0
- package/packages/indexer_client/src/core/fetch-http-request.js.map +1 -0
- package/packages/indexer_client/src/core/fetch-http-request.mjs +85 -0
- package/packages/indexer_client/src/core/fetch-http-request.mjs.map +1 -0
- package/packages/indexer_client/src/core/model-runtime.d.ts +10 -0
- package/packages/indexer_client/src/core/model-runtime.js +25 -0
- package/packages/indexer_client/src/core/model-runtime.js.map +1 -0
- package/packages/indexer_client/src/core/model-runtime.mjs +22 -0
- package/packages/indexer_client/src/core/model-runtime.mjs.map +1 -0
- package/packages/indexer_client/src/core/request.js +62 -0
- package/packages/indexer_client/src/core/request.js.map +1 -0
- package/packages/indexer_client/src/core/request.mjs +62 -0
- package/packages/indexer_client/src/core/request.mjs.map +1 -0
- package/packages/indexer_client/src/models/account-participation.d.ts +33 -0
- package/packages/indexer_client/src/models/account-participation.js +50 -0
- package/packages/indexer_client/src/models/account-participation.js.map +1 -0
- package/packages/indexer_client/src/models/account-participation.mjs +50 -0
- package/packages/indexer_client/src/models/account-participation.mjs.map +1 -0
- package/packages/indexer_client/src/models/account-response.d.ts +13 -0
- package/packages/indexer_client/src/models/account-response.js +24 -0
- package/packages/indexer_client/src/models/account-response.js.map +1 -0
- package/packages/indexer_client/src/models/account-response.mjs +24 -0
- package/packages/indexer_client/src/models/account-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/account-state-delta.d.ts +14 -0
- package/packages/indexer_client/src/models/account-state-delta.js +24 -0
- package/packages/indexer_client/src/models/account-state-delta.js.map +1 -0
- package/packages/indexer_client/src/models/account-state-delta.mjs +24 -0
- package/packages/indexer_client/src/models/account-state-delta.mjs.map +1 -0
- package/packages/indexer_client/src/models/account.d.ts +152 -0
- package/packages/indexer_client/src/models/account.js +205 -0
- package/packages/indexer_client/src/models/account.js.map +1 -0
- package/packages/indexer_client/src/models/account.mjs +205 -0
- package/packages/indexer_client/src/models/account.mjs.map +1 -0
- package/packages/indexer_client/src/models/accounts-response.d.ts +17 -0
- package/packages/indexer_client/src/models/accounts-response.js +35 -0
- package/packages/indexer_client/src/models/accounts-response.js.map +1 -0
- package/packages/indexer_client/src/models/accounts-response.mjs +35 -0
- package/packages/indexer_client/src/models/accounts-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/application-local-state.d.ts +31 -0
- package/packages/indexer_client/src/models/application-local-state.js +54 -0
- package/packages/indexer_client/src/models/application-local-state.js.map +1 -0
- package/packages/indexer_client/src/models/application-local-state.mjs +54 -0
- package/packages/indexer_client/src/models/application-local-state.mjs.map +1 -0
- package/packages/indexer_client/src/models/application-local-states-response.d.ts +17 -0
- package/packages/indexer_client/src/models/application-local-states-response.js +35 -0
- package/packages/indexer_client/src/models/application-local-states-response.js.map +1 -0
- package/packages/indexer_client/src/models/application-local-states-response.mjs +35 -0
- package/packages/indexer_client/src/models/application-local-states-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/application-log-data.d.ts +17 -0
- package/packages/indexer_client/src/models/application-log-data.js +23 -0
- package/packages/indexer_client/src/models/application-log-data.js.map +1 -0
- package/packages/indexer_client/src/models/application-log-data.mjs +23 -0
- package/packages/indexer_client/src/models/application-log-data.mjs.map +1 -0
- package/packages/indexer_client/src/models/application-logs-response.d.ts +21 -0
- package/packages/indexer_client/src/models/application-logs-response.js +41 -0
- package/packages/indexer_client/src/models/application-logs-response.js.map +1 -0
- package/packages/indexer_client/src/models/application-logs-response.mjs +41 -0
- package/packages/indexer_client/src/models/application-logs-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/application-params.d.ts +37 -0
- package/packages/indexer_client/src/models/application-params.js +67 -0
- package/packages/indexer_client/src/models/application-params.js.map +1 -0
- package/packages/indexer_client/src/models/application-params.mjs +67 -0
- package/packages/indexer_client/src/models/application-params.mjs.map +1 -0
- package/packages/indexer_client/src/models/application-response.d.ts +13 -0
- package/packages/indexer_client/src/models/application-response.js +24 -0
- package/packages/indexer_client/src/models/application-response.js.map +1 -0
- package/packages/indexer_client/src/models/application-response.mjs +24 -0
- package/packages/indexer_client/src/models/application-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/application-state-schema.d.ts +17 -0
- package/packages/indexer_client/src/models/application-state-schema.js +22 -0
- package/packages/indexer_client/src/models/application-state-schema.js.map +1 -0
- package/packages/indexer_client/src/models/application-state-schema.mjs +22 -0
- package/packages/indexer_client/src/models/application-state-schema.mjs.map +1 -0
- package/packages/indexer_client/src/models/application.d.ts +29 -0
- package/packages/indexer_client/src/models/application.js +46 -0
- package/packages/indexer_client/src/models/application.js.map +1 -0
- package/packages/indexer_client/src/models/application.mjs +46 -0
- package/packages/indexer_client/src/models/application.mjs.map +1 -0
- package/packages/indexer_client/src/models/applications-response.d.ts +17 -0
- package/packages/indexer_client/src/models/applications-response.js +35 -0
- package/packages/indexer_client/src/models/applications-response.js.map +1 -0
- package/packages/indexer_client/src/models/applications-response.mjs +35 -0
- package/packages/indexer_client/src/models/applications-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/asset-balances-response.d.ts +17 -0
- package/packages/indexer_client/src/models/asset-balances-response.js +35 -0
- package/packages/indexer_client/src/models/asset-balances-response.js.map +1 -0
- package/packages/indexer_client/src/models/asset-balances-response.mjs +35 -0
- package/packages/indexer_client/src/models/asset-balances-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/asset-holding.d.ts +36 -0
- package/packages/indexer_client/src/models/asset-holding.js +50 -0
- package/packages/indexer_client/src/models/asset-holding.js.map +1 -0
- package/packages/indexer_client/src/models/asset-holding.mjs +50 -0
- package/packages/indexer_client/src/models/asset-holding.mjs.map +1 -0
- package/packages/indexer_client/src/models/asset-holdings-response.d.ts +17 -0
- package/packages/indexer_client/src/models/asset-holdings-response.js +35 -0
- package/packages/indexer_client/src/models/asset-holdings-response.js.map +1 -0
- package/packages/indexer_client/src/models/asset-holdings-response.mjs +35 -0
- package/packages/indexer_client/src/models/asset-holdings-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/asset-params.d.ts +74 -0
- package/packages/indexer_client/src/models/asset-params.js +107 -0
- package/packages/indexer_client/src/models/asset-params.js.map +1 -0
- package/packages/indexer_client/src/models/asset-params.mjs +107 -0
- package/packages/indexer_client/src/models/asset-params.mjs.map +1 -0
- package/packages/indexer_client/src/models/asset-response.d.ts +13 -0
- package/packages/indexer_client/src/models/asset-response.js +24 -0
- package/packages/indexer_client/src/models/asset-response.js.map +1 -0
- package/packages/indexer_client/src/models/asset-response.mjs +24 -0
- package/packages/indexer_client/src/models/asset-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/asset.d.ts +29 -0
- package/packages/indexer_client/src/models/asset.js +46 -0
- package/packages/indexer_client/src/models/asset.js.map +1 -0
- package/packages/indexer_client/src/models/asset.mjs +46 -0
- package/packages/indexer_client/src/models/asset.mjs.map +1 -0
- package/packages/indexer_client/src/models/assets-response.d.ts +17 -0
- package/packages/indexer_client/src/models/assets-response.js +35 -0
- package/packages/indexer_client/src/models/assets-response.js.map +1 -0
- package/packages/indexer_client/src/models/assets-response.mjs +35 -0
- package/packages/indexer_client/src/models/assets-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/block-headers-response.d.ts +17 -0
- package/packages/indexer_client/src/models/block-headers-response.js +35 -0
- package/packages/indexer_client/src/models/block-headers-response.js.map +1 -0
- package/packages/indexer_client/src/models/block-headers-response.mjs +35 -0
- package/packages/indexer_client/src/models/block-headers-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/block-rewards.d.ts +33 -0
- package/packages/indexer_client/src/models/block-rewards.js +50 -0
- package/packages/indexer_client/src/models/block-rewards.js.map +1 -0
- package/packages/indexer_client/src/models/block-rewards.mjs +50 -0
- package/packages/indexer_client/src/models/block-rewards.mjs.map +1 -0
- package/packages/indexer_client/src/models/block-upgrade-state.d.ts +29 -0
- package/packages/indexer_client/src/models/block-upgrade-state.js +45 -0
- package/packages/indexer_client/src/models/block-upgrade-state.js.map +1 -0
- package/packages/indexer_client/src/models/block-upgrade-state.mjs +45 -0
- package/packages/indexer_client/src/models/block-upgrade-state.mjs.map +1 -0
- package/packages/indexer_client/src/models/block-upgrade-vote.d.ts +21 -0
- package/packages/indexer_client/src/models/block-upgrade-vote.js +33 -0
- package/packages/indexer_client/src/models/block-upgrade-vote.js.map +1 -0
- package/packages/indexer_client/src/models/block-upgrade-vote.mjs +33 -0
- package/packages/indexer_client/src/models/block-upgrade-vote.mjs.map +1 -0
- package/packages/indexer_client/src/models/block.d.ts +95 -0
- package/packages/indexer_client/src/models/block.js +151 -0
- package/packages/indexer_client/src/models/block.js.map +1 -0
- package/packages/indexer_client/src/models/block.mjs +151 -0
- package/packages/indexer_client/src/models/block.mjs.map +1 -0
- package/packages/indexer_client/src/models/box-descriptor.d.ts +13 -0
- package/packages/indexer_client/src/models/box-descriptor.js +17 -0
- package/packages/indexer_client/src/models/box-descriptor.js.map +1 -0
- package/packages/indexer_client/src/models/box-descriptor.mjs +17 -0
- package/packages/indexer_client/src/models/box-descriptor.mjs.map +1 -0
- package/packages/indexer_client/src/models/box-reference.d.ts +17 -0
- package/packages/indexer_client/src/models/box-reference.js +23 -0
- package/packages/indexer_client/src/models/box-reference.js.map +1 -0
- package/packages/indexer_client/src/models/box-reference.mjs +23 -0
- package/packages/indexer_client/src/models/box-reference.mjs.map +1 -0
- package/packages/indexer_client/src/models/box.d.ts +21 -0
- package/packages/indexer_client/src/models/box.js +32 -0
- package/packages/indexer_client/src/models/box.js.map +1 -0
- package/packages/indexer_client/src/models/box.mjs +32 -0
- package/packages/indexer_client/src/models/box.mjs.map +1 -0
- package/packages/indexer_client/src/models/boxes-response.d.ts +17 -0
- package/packages/indexer_client/src/models/boxes-response.js +35 -0
- package/packages/indexer_client/src/models/boxes-response.js.map +1 -0
- package/packages/indexer_client/src/models/boxes-response.mjs +35 -0
- package/packages/indexer_client/src/models/boxes-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/eval-delta-key-value.d.ts +14 -0
- package/packages/indexer_client/src/models/eval-delta-key-value.js +24 -0
- package/packages/indexer_client/src/models/eval-delta-key-value.js.map +1 -0
- package/packages/indexer_client/src/models/eval-delta-key-value.mjs +24 -0
- package/packages/indexer_client/src/models/eval-delta-key-value.mjs.map +1 -0
- package/packages/indexer_client/src/models/eval-delta.d.ts +21 -0
- package/packages/indexer_client/src/models/eval-delta.js +33 -0
- package/packages/indexer_client/src/models/eval-delta.js.map +1 -0
- package/packages/indexer_client/src/models/eval-delta.mjs +33 -0
- package/packages/indexer_client/src/models/eval-delta.mjs.map +1 -0
- package/packages/indexer_client/src/models/hash-factory.d.ts +10 -0
- package/packages/indexer_client/src/models/hash-factory.js +17 -0
- package/packages/indexer_client/src/models/hash-factory.js.map +1 -0
- package/packages/indexer_client/src/models/hash-factory.mjs +17 -0
- package/packages/indexer_client/src/models/hash-factory.mjs.map +1 -0
- package/packages/indexer_client/src/models/hb-proof-fields.d.ts +29 -0
- package/packages/indexer_client/src/models/hb-proof-fields.js +43 -0
- package/packages/indexer_client/src/models/hb-proof-fields.js.map +1 -0
- package/packages/indexer_client/src/models/hb-proof-fields.mjs +43 -0
- package/packages/indexer_client/src/models/hb-proof-fields.mjs.map +1 -0
- package/packages/indexer_client/src/models/health-check.d.ts +19 -0
- package/packages/indexer_client/src/models/health-check.js +60 -0
- package/packages/indexer_client/src/models/health-check.js.map +1 -0
- package/packages/indexer_client/src/models/health-check.mjs +60 -0
- package/packages/indexer_client/src/models/health-check.mjs.map +1 -0
- package/packages/indexer_client/src/models/holding-ref.d.ts +20 -0
- package/packages/indexer_client/src/models/holding-ref.js +23 -0
- package/packages/indexer_client/src/models/holding-ref.js.map +1 -0
- package/packages/indexer_client/src/models/holding-ref.mjs +23 -0
- package/packages/indexer_client/src/models/holding-ref.mjs.map +1 -0
- package/packages/indexer_client/src/models/indexer-state-proof-message.d.ts +26 -0
- package/packages/indexer_client/src/models/indexer-state-proof-message.js +44 -0
- package/packages/indexer_client/src/models/indexer-state-proof-message.js.map +1 -0
- package/packages/indexer_client/src/models/indexer-state-proof-message.mjs +44 -0
- package/packages/indexer_client/src/models/indexer-state-proof-message.mjs.map +1 -0
- package/packages/indexer_client/src/models/locals-ref.d.ts +20 -0
- package/packages/indexer_client/src/models/locals-ref.js +23 -0
- package/packages/indexer_client/src/models/locals-ref.js.map +1 -0
- package/packages/indexer_client/src/models/locals-ref.mjs +23 -0
- package/packages/indexer_client/src/models/locals-ref.mjs.map +1 -0
- package/packages/indexer_client/src/models/merkle-array-proof.d.ts +17 -0
- package/packages/indexer_client/src/models/merkle-array-proof.js +34 -0
- package/packages/indexer_client/src/models/merkle-array-proof.js.map +1 -0
- package/packages/indexer_client/src/models/merkle-array-proof.mjs +34 -0
- package/packages/indexer_client/src/models/merkle-array-proof.mjs.map +1 -0
- package/packages/indexer_client/src/models/mini-asset-holding.d.ts +24 -0
- package/packages/indexer_client/src/models/mini-asset-holding.js +51 -0
- package/packages/indexer_client/src/models/mini-asset-holding.js.map +1 -0
- package/packages/indexer_client/src/models/mini-asset-holding.mjs +51 -0
- package/packages/indexer_client/src/models/mini-asset-holding.mjs.map +1 -0
- package/packages/indexer_client/src/models/on-completion.d.ts +16 -0
- package/packages/indexer_client/src/models/on-completion.js +12 -0
- package/packages/indexer_client/src/models/on-completion.js.map +1 -0
- package/packages/indexer_client/src/models/on-completion.mjs +12 -0
- package/packages/indexer_client/src/models/on-completion.mjs.map +1 -0
- package/packages/indexer_client/src/models/participation-updates.d.ts +17 -0
- package/packages/indexer_client/src/models/participation-updates.js +22 -0
- package/packages/indexer_client/src/models/participation-updates.js.map +1 -0
- package/packages/indexer_client/src/models/participation-updates.mjs +22 -0
- package/packages/indexer_client/src/models/participation-updates.mjs.map +1 -0
- package/packages/indexer_client/src/models/resource-ref.d.ts +32 -0
- package/packages/indexer_client/src/models/resource-ref.js +54 -0
- package/packages/indexer_client/src/models/resource-ref.js.map +1 -0
- package/packages/indexer_client/src/models/resource-ref.mjs +54 -0
- package/packages/indexer_client/src/models/resource-ref.mjs.map +1 -0
- package/packages/indexer_client/src/models/state-delta.d.ts +11 -0
- package/packages/indexer_client/src/models/state-delta.js +14 -0
- package/packages/indexer_client/src/models/state-delta.js.map +1 -0
- package/packages/indexer_client/src/models/state-delta.mjs +14 -0
- package/packages/indexer_client/src/models/state-delta.mjs.map +1 -0
- package/packages/indexer_client/src/models/state-proof-fields.d.ts +38 -0
- package/packages/indexer_client/src/models/state-proof-fields.js +61 -0
- package/packages/indexer_client/src/models/state-proof-fields.js.map +1 -0
- package/packages/indexer_client/src/models/state-proof-fields.mjs +61 -0
- package/packages/indexer_client/src/models/state-proof-fields.mjs.map +1 -0
- package/packages/indexer_client/src/models/state-proof-participant.d.ts +13 -0
- package/packages/indexer_client/src/models/state-proof-participant.js +24 -0
- package/packages/indexer_client/src/models/state-proof-participant.js.map +1 -0
- package/packages/indexer_client/src/models/state-proof-participant.mjs +24 -0
- package/packages/indexer_client/src/models/state-proof-participant.mjs.map +1 -0
- package/packages/indexer_client/src/models/state-proof-reveal.d.ts +15 -0
- package/packages/indexer_client/src/models/state-proof-reveal.js +34 -0
- package/packages/indexer_client/src/models/state-proof-reveal.js.map +1 -0
- package/packages/indexer_client/src/models/state-proof-reveal.mjs +34 -0
- package/packages/indexer_client/src/models/state-proof-reveal.mjs.map +1 -0
- package/packages/indexer_client/src/models/state-proof-sig-slot.d.ts +13 -0
- package/packages/indexer_client/src/models/state-proof-sig-slot.js +24 -0
- package/packages/indexer_client/src/models/state-proof-sig-slot.js.map +1 -0
- package/packages/indexer_client/src/models/state-proof-sig-slot.mjs +24 -0
- package/packages/indexer_client/src/models/state-proof-sig-slot.mjs.map +1 -0
- package/packages/indexer_client/src/models/state-proof-signature.d.ts +15 -0
- package/packages/indexer_client/src/models/state-proof-signature.js +40 -0
- package/packages/indexer_client/src/models/state-proof-signature.js.map +1 -0
- package/packages/indexer_client/src/models/state-proof-signature.mjs +40 -0
- package/packages/indexer_client/src/models/state-proof-signature.mjs.map +1 -0
- package/packages/indexer_client/src/models/state-proof-tracking.d.ts +22 -0
- package/packages/indexer_client/src/models/state-proof-tracking.js +39 -0
- package/packages/indexer_client/src/models/state-proof-tracking.js.map +1 -0
- package/packages/indexer_client/src/models/state-proof-tracking.mjs +39 -0
- package/packages/indexer_client/src/models/state-proof-tracking.mjs.map +1 -0
- package/packages/indexer_client/src/models/state-proof-verifier.d.ts +14 -0
- package/packages/indexer_client/src/models/state-proof-verifier.js +23 -0
- package/packages/indexer_client/src/models/state-proof-verifier.js.map +1 -0
- package/packages/indexer_client/src/models/state-proof-verifier.mjs +23 -0
- package/packages/indexer_client/src/models/state-proof-verifier.mjs.map +1 -0
- package/packages/indexer_client/src/models/state-schema.d.ts +17 -0
- package/packages/indexer_client/src/models/state-schema.js +22 -0
- package/packages/indexer_client/src/models/state-schema.js.map +1 -0
- package/packages/indexer_client/src/models/state-schema.mjs +22 -0
- package/packages/indexer_client/src/models/state-schema.mjs.map +1 -0
- package/packages/indexer_client/src/models/teal-key-value-store.d.ts +11 -0
- package/packages/indexer_client/src/models/teal-key-value-store.js +14 -0
- package/packages/indexer_client/src/models/teal-key-value-store.js.map +1 -0
- package/packages/indexer_client/src/models/teal-key-value-store.mjs +14 -0
- package/packages/indexer_client/src/models/teal-key-value-store.mjs.map +1 -0
- package/packages/indexer_client/src/models/teal-key-value.d.ts +14 -0
- package/packages/indexer_client/src/models/teal-key-value.js +24 -0
- package/packages/indexer_client/src/models/teal-key-value.js.map +1 -0
- package/packages/indexer_client/src/models/teal-key-value.mjs +24 -0
- package/packages/indexer_client/src/models/teal-key-value.mjs.map +1 -0
- package/packages/indexer_client/src/models/teal-value.d.ts +21 -0
- package/packages/indexer_client/src/models/teal-value.js +33 -0
- package/packages/indexer_client/src/models/teal-value.js.map +1 -0
- package/packages/indexer_client/src/models/teal-value.mjs +33 -0
- package/packages/indexer_client/src/models/teal-value.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-application.d.ts +66 -0
- package/packages/indexer_client/src/models/transaction-application.js +106 -0
- package/packages/indexer_client/src/models/transaction-application.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-application.mjs +106 -0
- package/packages/indexer_client/src/models/transaction-application.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-asset-config.d.ts +24 -0
- package/packages/indexer_client/src/models/transaction-asset-config.js +24 -0
- package/packages/indexer_client/src/models/transaction-asset-config.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-asset-config.mjs +24 -0
- package/packages/indexer_client/src/models/transaction-asset-config.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-asset-freeze.d.ts +24 -0
- package/packages/indexer_client/src/models/transaction-asset-freeze.js +33 -0
- package/packages/indexer_client/src/models/transaction-asset-freeze.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-asset-freeze.mjs +33 -0
- package/packages/indexer_client/src/models/transaction-asset-freeze.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-asset-transfer.d.ts +36 -0
- package/packages/indexer_client/src/models/transaction-asset-transfer.js +50 -0
- package/packages/indexer_client/src/models/transaction-asset-transfer.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-asset-transfer.mjs +50 -0
- package/packages/indexer_client/src/models/transaction-asset-transfer.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-heartbeat.d.ts +32 -0
- package/packages/indexer_client/src/models/transaction-heartbeat.js +47 -0
- package/packages/indexer_client/src/models/transaction-heartbeat.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-heartbeat.mjs +47 -0
- package/packages/indexer_client/src/models/transaction-heartbeat.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-keyreg.d.ts +40 -0
- package/packages/indexer_client/src/models/transaction-keyreg.js +57 -0
- package/packages/indexer_client/src/models/transaction-keyreg.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-keyreg.mjs +57 -0
- package/packages/indexer_client/src/models/transaction-keyreg.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-payment.d.ts +28 -0
- package/packages/indexer_client/src/models/transaction-payment.js +38 -0
- package/packages/indexer_client/src/models/transaction-payment.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-payment.mjs +38 -0
- package/packages/indexer_client/src/models/transaction-payment.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-response.d.ts +13 -0
- package/packages/indexer_client/src/models/transaction-response.js +24 -0
- package/packages/indexer_client/src/models/transaction-response.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-response.mjs +24 -0
- package/packages/indexer_client/src/models/transaction-response.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-signature-logicsig.d.ts +29 -0
- package/packages/indexer_client/src/models/transaction-signature-logicsig.js +46 -0
- package/packages/indexer_client/src/models/transaction-signature-logicsig.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs +46 -0
- package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.d.ts +14 -0
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js +22 -0
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs +22 -0
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-signature-multisig.d.ts +27 -0
- package/packages/indexer_client/src/models/transaction-signature-multisig.js +34 -0
- package/packages/indexer_client/src/models/transaction-signature-multisig.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-signature-multisig.mjs +34 -0
- package/packages/indexer_client/src/models/transaction-signature-multisig.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-signature.d.ts +19 -0
- package/packages/indexer_client/src/models/transaction-signature.js +34 -0
- package/packages/indexer_client/src/models/transaction-signature.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-signature.mjs +34 -0
- package/packages/indexer_client/src/models/transaction-signature.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction-state-proof.d.ts +22 -0
- package/packages/indexer_client/src/models/transaction-state-proof.js +34 -0
- package/packages/indexer_client/src/models/transaction-state-proof.js.map +1 -0
- package/packages/indexer_client/src/models/transaction-state-proof.mjs +34 -0
- package/packages/indexer_client/src/models/transaction-state-proof.mjs.map +1 -0
- package/packages/indexer_client/src/models/transaction.d.ts +147 -0
- package/packages/indexer_client/src/models/transaction.js +241 -0
- package/packages/indexer_client/src/models/transaction.js.map +1 -0
- package/packages/indexer_client/src/models/transaction.mjs +241 -0
- package/packages/indexer_client/src/models/transaction.mjs.map +1 -0
- package/packages/indexer_client/src/models/transactions-response.d.ts +17 -0
- package/packages/indexer_client/src/models/transactions-response.js +35 -0
- package/packages/indexer_client/src/models/transactions-response.js.map +1 -0
- package/packages/indexer_client/src/models/transactions-response.mjs +35 -0
- package/packages/indexer_client/src/models/transactions-response.mjs.map +1 -0
- package/packages/kmd_client/src/apis/api-service.d.ts +152 -0
- package/packages/kmd_client/src/apis/api-service.js +517 -0
- package/packages/kmd_client/src/apis/api-service.js.map +1 -0
- package/packages/kmd_client/src/apis/api-service.mjs +517 -0
- package/packages/kmd_client/src/apis/api-service.mjs.map +1 -0
- package/packages/kmd_client/src/client.d.ts +10 -0
- package/packages/kmd_client/src/client.js +13 -0
- package/packages/kmd_client/src/client.js.map +1 -0
- package/packages/kmd_client/src/client.mjs +13 -0
- package/packages/kmd_client/src/client.mjs.map +1 -0
- package/packages/kmd_client/src/core/api-error.d.ts +10 -0
- package/packages/kmd_client/src/core/api-error.js +17 -0
- package/packages/kmd_client/src/core/api-error.js.map +1 -0
- package/packages/kmd_client/src/core/api-error.mjs +16 -0
- package/packages/kmd_client/src/core/api-error.mjs.map +1 -0
- package/packages/kmd_client/src/core/base-http-request.d.ts +25 -0
- package/packages/kmd_client/src/core/base-http-request.js +16 -0
- package/packages/kmd_client/src/core/base-http-request.js.map +1 -0
- package/packages/kmd_client/src/core/base-http-request.mjs +14 -0
- package/packages/kmd_client/src/core/base-http-request.mjs.map +1 -0
- package/packages/kmd_client/src/core/client-config.d.ts +17 -0
- package/packages/kmd_client/src/core/fetch-http-request.d.ts +10 -0
- package/packages/kmd_client/src/core/fetch-http-request.js +85 -0
- package/packages/kmd_client/src/core/fetch-http-request.js.map +1 -0
- package/packages/kmd_client/src/core/fetch-http-request.mjs +85 -0
- package/packages/kmd_client/src/core/fetch-http-request.mjs.map +1 -0
- package/packages/kmd_client/src/core/model-runtime.d.ts +10 -0
- package/packages/kmd_client/src/core/model-runtime.js +25 -0
- package/packages/kmd_client/src/core/model-runtime.js.map +1 -0
- package/packages/kmd_client/src/core/model-runtime.mjs +22 -0
- package/packages/kmd_client/src/core/model-runtime.mjs.map +1 -0
- package/packages/kmd_client/src/core/request.js +62 -0
- package/packages/kmd_client/src/core/request.js.map +1 -0
- package/packages/kmd_client/src/core/request.mjs +62 -0
- package/packages/kmd_client/src/core/request.mjs.map +1 -0
- package/packages/kmd_client/src/models/create-wallet-request.d.ts +13 -0
- package/packages/kmd_client/src/models/create-wallet-request.js +38 -0
- package/packages/kmd_client/src/models/create-wallet-request.js.map +1 -0
- package/packages/kmd_client/src/models/create-wallet-request.mjs +38 -0
- package/packages/kmd_client/src/models/create-wallet-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/create-wallet-response.d.ts +13 -0
- package/packages/kmd_client/src/models/create-wallet-response.js +18 -0
- package/packages/kmd_client/src/models/create-wallet-response.js.map +1 -0
- package/packages/kmd_client/src/models/create-wallet-response.mjs +18 -0
- package/packages/kmd_client/src/models/create-wallet-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/delete-key-request.d.ts +15 -0
- package/packages/kmd_client/src/models/delete-key-request.js +32 -0
- package/packages/kmd_client/src/models/delete-key-request.js.map +1 -0
- package/packages/kmd_client/src/models/delete-key-request.mjs +32 -0
- package/packages/kmd_client/src/models/delete-key-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/delete-multisig-request.d.ts +15 -0
- package/packages/kmd_client/src/models/delete-multisig-request.js +32 -0
- package/packages/kmd_client/src/models/delete-multisig-request.js.map +1 -0
- package/packages/kmd_client/src/models/delete-multisig-request.mjs +32 -0
- package/packages/kmd_client/src/models/delete-multisig-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/export-key-request.d.ts +15 -0
- package/packages/kmd_client/src/models/export-key-request.js +32 -0
- package/packages/kmd_client/src/models/export-key-request.js.map +1 -0
- package/packages/kmd_client/src/models/export-key-request.mjs +32 -0
- package/packages/kmd_client/src/models/export-key-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/export-key-response.d.ts +10 -0
- package/packages/kmd_client/src/models/export-key-response.js +17 -0
- package/packages/kmd_client/src/models/export-key-response.js.map +1 -0
- package/packages/kmd_client/src/models/export-key-response.mjs +17 -0
- package/packages/kmd_client/src/models/export-key-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/export-master-key-request.d.ts +11 -0
- package/packages/kmd_client/src/models/export-master-key-request.js +22 -0
- package/packages/kmd_client/src/models/export-master-key-request.js.map +1 -0
- package/packages/kmd_client/src/models/export-master-key-request.mjs +22 -0
- package/packages/kmd_client/src/models/export-master-key-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/export-master-key-response.d.ts +10 -0
- package/packages/kmd_client/src/models/export-master-key-response.js +17 -0
- package/packages/kmd_client/src/models/export-master-key-response.js.map +1 -0
- package/packages/kmd_client/src/models/export-master-key-response.mjs +17 -0
- package/packages/kmd_client/src/models/export-master-key-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/export-multisig-request.d.ts +14 -0
- package/packages/kmd_client/src/models/export-multisig-request.js +23 -0
- package/packages/kmd_client/src/models/export-multisig-request.js.map +1 -0
- package/packages/kmd_client/src/models/export-multisig-request.mjs +23 -0
- package/packages/kmd_client/src/models/export-multisig-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/export-multisig-response.d.ts +12 -0
- package/packages/kmd_client/src/models/export-multisig-response.js +32 -0
- package/packages/kmd_client/src/models/export-multisig-response.js.map +1 -0
- package/packages/kmd_client/src/models/export-multisig-response.mjs +32 -0
- package/packages/kmd_client/src/models/export-multisig-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/generate-key-request.d.ts +10 -0
- package/packages/kmd_client/src/models/generate-key-request.js +17 -0
- package/packages/kmd_client/src/models/generate-key-request.js.map +1 -0
- package/packages/kmd_client/src/models/generate-key-request.mjs +17 -0
- package/packages/kmd_client/src/models/generate-key-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/generate-key-response.d.ts +13 -0
- package/packages/kmd_client/src/models/generate-key-response.js +17 -0
- package/packages/kmd_client/src/models/generate-key-response.js.map +1 -0
- package/packages/kmd_client/src/models/generate-key-response.mjs +17 -0
- package/packages/kmd_client/src/models/generate-key-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/import-key-request.d.ts +11 -0
- package/packages/kmd_client/src/models/import-key-request.js +23 -0
- package/packages/kmd_client/src/models/import-key-request.js.map +1 -0
- package/packages/kmd_client/src/models/import-key-request.mjs +23 -0
- package/packages/kmd_client/src/models/import-key-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/import-key-response.d.ts +13 -0
- package/packages/kmd_client/src/models/import-key-response.js +17 -0
- package/packages/kmd_client/src/models/import-key-response.js.map +1 -0
- package/packages/kmd_client/src/models/import-key-response.mjs +17 -0
- package/packages/kmd_client/src/models/import-key-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/import-multisig-request.d.ts +13 -0
- package/packages/kmd_client/src/models/import-multisig-request.js +39 -0
- package/packages/kmd_client/src/models/import-multisig-request.js.map +1 -0
- package/packages/kmd_client/src/models/import-multisig-request.mjs +39 -0
- package/packages/kmd_client/src/models/import-multisig-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/import-multisig-response.d.ts +13 -0
- package/packages/kmd_client/src/models/import-multisig-response.js +17 -0
- package/packages/kmd_client/src/models/import-multisig-response.js.map +1 -0
- package/packages/kmd_client/src/models/import-multisig-response.mjs +17 -0
- package/packages/kmd_client/src/models/import-multisig-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/init-wallet-handle-token-request.d.ts +11 -0
- package/packages/kmd_client/src/models/init-wallet-handle-token-request.js +22 -0
- package/packages/kmd_client/src/models/init-wallet-handle-token-request.js.map +1 -0
- package/packages/kmd_client/src/models/init-wallet-handle-token-request.mjs +22 -0
- package/packages/kmd_client/src/models/init-wallet-handle-token-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/init-wallet-handle-token-response.d.ts +10 -0
- package/packages/kmd_client/src/models/init-wallet-handle-token-response.js +17 -0
- package/packages/kmd_client/src/models/init-wallet-handle-token-response.js.map +1 -0
- package/packages/kmd_client/src/models/init-wallet-handle-token-response.mjs +17 -0
- package/packages/kmd_client/src/models/init-wallet-handle-token-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/list-keys-request.d.ts +10 -0
- package/packages/kmd_client/src/models/list-keys-request.js +17 -0
- package/packages/kmd_client/src/models/list-keys-request.js.map +1 -0
- package/packages/kmd_client/src/models/list-keys-request.mjs +17 -0
- package/packages/kmd_client/src/models/list-keys-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/list-keys-response.d.ts +13 -0
- package/packages/kmd_client/src/models/list-keys-response.js +17 -0
- package/packages/kmd_client/src/models/list-keys-response.js.map +1 -0
- package/packages/kmd_client/src/models/list-keys-response.mjs +17 -0
- package/packages/kmd_client/src/models/list-keys-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/list-multisig-request.d.ts +10 -0
- package/packages/kmd_client/src/models/list-multisig-request.js +17 -0
- package/packages/kmd_client/src/models/list-multisig-request.js.map +1 -0
- package/packages/kmd_client/src/models/list-multisig-request.mjs +17 -0
- package/packages/kmd_client/src/models/list-multisig-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/list-multisig-response.d.ts +13 -0
- package/packages/kmd_client/src/models/list-multisig-response.js +17 -0
- package/packages/kmd_client/src/models/list-multisig-response.js.map +1 -0
- package/packages/kmd_client/src/models/list-multisig-response.mjs +17 -0
- package/packages/kmd_client/src/models/list-multisig-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/list-wallets-response.d.ts +13 -0
- package/packages/kmd_client/src/models/list-wallets-response.js +19 -0
- package/packages/kmd_client/src/models/list-wallets-response.js.map +1 -0
- package/packages/kmd_client/src/models/list-wallets-response.mjs +19 -0
- package/packages/kmd_client/src/models/list-wallets-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/multisig-sig.d.ts +15 -0
- package/packages/kmd_client/src/models/multisig-sig.js +34 -0
- package/packages/kmd_client/src/models/multisig-sig.js.map +1 -0
- package/packages/kmd_client/src/models/multisig-sig.mjs +34 -0
- package/packages/kmd_client/src/models/multisig-sig.mjs.map +1 -0
- package/packages/kmd_client/src/models/multisig-subsig.d.ts +12 -0
- package/packages/kmd_client/src/models/multisig-subsig.js +22 -0
- package/packages/kmd_client/src/models/multisig-subsig.js.map +1 -0
- package/packages/kmd_client/src/models/multisig-subsig.mjs +22 -0
- package/packages/kmd_client/src/models/multisig-subsig.mjs.map +1 -0
- package/packages/kmd_client/src/models/release-wallet-handle-token-request.d.ts +10 -0
- package/packages/kmd_client/src/models/release-wallet-handle-token-request.js +17 -0
- package/packages/kmd_client/src/models/release-wallet-handle-token-request.js.map +1 -0
- package/packages/kmd_client/src/models/release-wallet-handle-token-request.mjs +17 -0
- package/packages/kmd_client/src/models/release-wallet-handle-token-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/rename-wallet-request.d.ts +12 -0
- package/packages/kmd_client/src/models/rename-wallet-request.js +31 -0
- package/packages/kmd_client/src/models/rename-wallet-request.js.map +1 -0
- package/packages/kmd_client/src/models/rename-wallet-request.mjs +31 -0
- package/packages/kmd_client/src/models/rename-wallet-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/rename-wallet-response.d.ts +13 -0
- package/packages/kmd_client/src/models/rename-wallet-response.js +18 -0
- package/packages/kmd_client/src/models/rename-wallet-response.js.map +1 -0
- package/packages/kmd_client/src/models/rename-wallet-response.mjs +18 -0
- package/packages/kmd_client/src/models/rename-wallet-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/renew-wallet-handle-token-request.d.ts +10 -0
- package/packages/kmd_client/src/models/renew-wallet-handle-token-request.js +17 -0
- package/packages/kmd_client/src/models/renew-wallet-handle-token-request.js.map +1 -0
- package/packages/kmd_client/src/models/renew-wallet-handle-token-request.mjs +17 -0
- package/packages/kmd_client/src/models/renew-wallet-handle-token-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/renew-wallet-handle-token-response.d.ts +13 -0
- package/packages/kmd_client/src/models/renew-wallet-handle-token-response.js +18 -0
- package/packages/kmd_client/src/models/renew-wallet-handle-token-response.js.map +1 -0
- package/packages/kmd_client/src/models/renew-wallet-handle-token-response.mjs +18 -0
- package/packages/kmd_client/src/models/renew-wallet-handle-token-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/sign-multisig-request.d.ts +11 -0
- package/packages/kmd_client/src/models/sign-multisig-response.d.ts +10 -0
- package/packages/kmd_client/src/models/sign-multisig-response.js +17 -0
- package/packages/kmd_client/src/models/sign-multisig-response.js.map +1 -0
- package/packages/kmd_client/src/models/sign-multisig-response.mjs +17 -0
- package/packages/kmd_client/src/models/sign-multisig-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/sign-multisig-txn-request.d.ts +18 -0
- package/packages/kmd_client/src/models/sign-multisig-txn-request.js +52 -0
- package/packages/kmd_client/src/models/sign-multisig-txn-request.js.map +1 -0
- package/packages/kmd_client/src/models/sign-multisig-txn-request.mjs +52 -0
- package/packages/kmd_client/src/models/sign-multisig-txn-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/sign-program-multisig-request.d.ts +20 -0
- package/packages/kmd_client/src/models/sign-program-multisig-request.js +60 -0
- package/packages/kmd_client/src/models/sign-program-multisig-request.js.map +1 -0
- package/packages/kmd_client/src/models/sign-program-multisig-request.mjs +60 -0
- package/packages/kmd_client/src/models/sign-program-multisig-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/sign-program-multisig-response.d.ts +10 -0
- package/packages/kmd_client/src/models/sign-program-multisig-response.js +17 -0
- package/packages/kmd_client/src/models/sign-program-multisig-response.js.map +1 -0
- package/packages/kmd_client/src/models/sign-program-multisig-response.mjs +17 -0
- package/packages/kmd_client/src/models/sign-program-multisig-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/sign-program-request.d.ts +16 -0
- package/packages/kmd_client/src/models/sign-program-request.js +39 -0
- package/packages/kmd_client/src/models/sign-program-request.js.map +1 -0
- package/packages/kmd_client/src/models/sign-program-request.mjs +39 -0
- package/packages/kmd_client/src/models/sign-program-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/sign-program-response.d.ts +10 -0
- package/packages/kmd_client/src/models/sign-program-response.js +17 -0
- package/packages/kmd_client/src/models/sign-program-response.js.map +1 -0
- package/packages/kmd_client/src/models/sign-program-response.mjs +17 -0
- package/packages/kmd_client/src/models/sign-program-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/sign-transaction-request.d.ts +11 -0
- package/packages/kmd_client/src/models/sign-transaction-response.d.ts +10 -0
- package/packages/kmd_client/src/models/sign-transaction-response.js +17 -0
- package/packages/kmd_client/src/models/sign-transaction-response.js.map +1 -0
- package/packages/kmd_client/src/models/sign-transaction-response.mjs +17 -0
- package/packages/kmd_client/src/models/sign-transaction-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/sign-txn-request.d.ts +19 -0
- package/packages/kmd_client/src/models/sign-txn-request.js +38 -0
- package/packages/kmd_client/src/models/sign-txn-request.js.map +1 -0
- package/packages/kmd_client/src/models/sign-txn-request.mjs +38 -0
- package/packages/kmd_client/src/models/sign-txn-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/tx-type.d.ts +8 -0
- package/packages/kmd_client/src/models/tx-type.js +12 -0
- package/packages/kmd_client/src/models/tx-type.js.map +1 -0
- package/packages/kmd_client/src/models/tx-type.mjs +12 -0
- package/packages/kmd_client/src/models/tx-type.mjs.map +1 -0
- package/packages/kmd_client/src/models/versions-response.d.ts +11 -0
- package/packages/kmd_client/src/models/versions-response.js +17 -0
- package/packages/kmd_client/src/models/versions-response.js.map +1 -0
- package/packages/kmd_client/src/models/versions-response.mjs +17 -0
- package/packages/kmd_client/src/models/versions-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/wallet-handle.d.ts +15 -0
- package/packages/kmd_client/src/models/wallet-handle.js +24 -0
- package/packages/kmd_client/src/models/wallet-handle.js.map +1 -0
- package/packages/kmd_client/src/models/wallet-handle.mjs +24 -0
- package/packages/kmd_client/src/models/wallet-handle.mjs.map +1 -0
- package/packages/kmd_client/src/models/wallet-info-request.d.ts +10 -0
- package/packages/kmd_client/src/models/wallet-info-request.js +17 -0
- package/packages/kmd_client/src/models/wallet-info-request.js.map +1 -0
- package/packages/kmd_client/src/models/wallet-info-request.mjs +17 -0
- package/packages/kmd_client/src/models/wallet-info-request.mjs.map +1 -0
- package/packages/kmd_client/src/models/wallet-info-response.d.ts +13 -0
- package/packages/kmd_client/src/models/wallet-info-response.js +18 -0
- package/packages/kmd_client/src/models/wallet-info-response.js.map +1 -0
- package/packages/kmd_client/src/models/wallet-info-response.mjs +18 -0
- package/packages/kmd_client/src/models/wallet-info-response.mjs.map +1 -0
- package/packages/kmd_client/src/models/wallet.d.ts +18 -0
- package/packages/kmd_client/src/models/wallet.js +54 -0
- package/packages/kmd_client/src/models/wallet.js.map +1 -0
- package/packages/kmd_client/src/models/wallet.mjs +54 -0
- package/packages/kmd_client/src/models/wallet.mjs.map +1 -0
- package/packages/sdk/src/convert.d.ts +17 -0
- package/packages/sdk/src/convert.js +28 -0
- package/packages/sdk/src/convert.js.map +1 -0
- package/packages/sdk/src/convert.mjs +25 -0
- package/packages/sdk/src/convert.mjs.map +1 -0
- package/packages/sdk/src/encoding/binarydata.d.ts +34 -0
- package/packages/sdk/src/encoding/binarydata.js +65 -0
- package/packages/sdk/src/encoding/binarydata.js.map +1 -0
- package/packages/sdk/src/encoding/binarydata.mjs +60 -0
- package/packages/sdk/src/encoding/binarydata.mjs.map +1 -0
- package/packages/sdk/src/encoding/encoding.d.ts +237 -0
- package/packages/sdk/src/encoding/encoding.js +302 -0
- package/packages/sdk/src/encoding/encoding.js.map +1 -0
- package/packages/sdk/src/encoding/encoding.mjs +287 -0
- package/packages/sdk/src/encoding/encoding.mjs.map +1 -0
- package/packages/sdk/src/encoding/schema/array.js +35 -0
- package/packages/sdk/src/encoding/schema/array.js.map +1 -0
- package/packages/sdk/src/encoding/schema/array.mjs +35 -0
- package/packages/sdk/src/encoding/schema/array.mjs.map +1 -0
- package/packages/sdk/src/encoding/schema/bytearray.js +49 -0
- package/packages/sdk/src/encoding/schema/bytearray.js.map +1 -0
- package/packages/sdk/src/encoding/schema/bytearray.mjs +49 -0
- package/packages/sdk/src/encoding/schema/bytearray.mjs.map +1 -0
- package/packages/sdk/src/encoding/schema/map.d.ts +58 -0
- package/packages/sdk/src/encoding/schema/map.js +110 -0
- package/packages/sdk/src/encoding/schema/map.js.map +1 -0
- package/packages/sdk/src/encoding/schema/map.mjs +107 -0
- package/packages/sdk/src/encoding/schema/map.mjs.map +1 -0
- package/packages/sdk/src/encoding/schema/optional.js +46 -0
- package/packages/sdk/src/encoding/schema/optional.js.map +1 -0
- package/packages/sdk/src/encoding/schema/optional.mjs +46 -0
- package/packages/sdk/src/encoding/schema/optional.mjs.map +1 -0
- package/packages/sdk/src/encoding/schema/uint64.js +30 -0
- package/packages/sdk/src/encoding/schema/uint64.js.map +1 -0
- package/packages/sdk/src/encoding/schema/uint64.mjs +30 -0
- package/packages/sdk/src/encoding/schema/uint64.mjs.map +1 -0
- package/packages/sdk/src/encoding/uint64.d.ts +34 -0
- package/packages/sdk/src/encoding/uint64.js +34 -0
- package/packages/sdk/src/encoding/uint64.js.map +1 -0
- package/packages/sdk/src/encoding/uint64.mjs +33 -0
- package/packages/sdk/src/encoding/uint64.mjs.map +1 -0
- package/packages/sdk/src/index.d.ts +44 -0
- package/packages/sdk/src/index.js +62 -0
- package/packages/sdk/src/index.js.map +1 -0
- package/packages/sdk/src/index.mjs +58 -0
- package/packages/sdk/src/index.mjs.map +1 -0
- package/packages/sdk/src/logic/sourcemap.d.ts +55 -0
- package/packages/sdk/src/logic/sourcemap.js +88 -0
- package/packages/sdk/src/logic/sourcemap.js.map +1 -0
- package/packages/sdk/src/logic/sourcemap.mjs +86 -0
- package/packages/sdk/src/logic/sourcemap.mjs.map +1 -0
- package/packages/sdk/src/nacl/naclWrappers.js +14 -0
- package/packages/sdk/src/nacl/naclWrappers.js.map +1 -0
- package/packages/sdk/src/nacl/naclWrappers.mjs +11 -0
- package/packages/sdk/src/nacl/naclWrappers.mjs.map +1 -0
- package/packages/sdk/src/types/intDecoding.d.ts +28 -0
- package/packages/sdk/src/types/intDecoding.js +32 -0
- package/packages/sdk/src/types/intDecoding.js.map +1 -0
- package/packages/sdk/src/types/intDecoding.mjs +31 -0
- package/packages/sdk/src/types/intDecoding.mjs.map +1 -0
- package/packages/sdk/src/types/transactions/encoded.d.ts +40 -0
- package/packages/sdk/src/types/transactions/encoded.js +64 -0
- package/packages/sdk/src/types/transactions/encoded.js.map +1 -0
- package/packages/sdk/src/types/transactions/encoded.mjs +59 -0
- package/packages/sdk/src/types/transactions/encoded.mjs.map +1 -0
- package/packages/sdk/src/utils/utils.d.ts +64 -0
- package/packages/sdk/src/utils/utils.js +140 -0
- package/packages/sdk/src/utils/utils.js.map +1 -0
- package/packages/sdk/src/utils/utils.mjs +128 -0
- package/packages/sdk/src/utils/utils.mjs.map +1 -0
- package/packages/transact/src/logicsig.d.ts +47 -0
- package/packages/transact/src/logicsig.js +118 -0
- package/packages/transact/src/logicsig.js.map +1 -0
- package/packages/transact/src/logicsig.mjs +116 -0
- package/packages/transact/src/logicsig.mjs.map +1 -0
- package/packages/transact/src/multisig.d.ts +153 -0
- package/packages/transact/src/multisig.js +388 -0
- package/packages/transact/src/multisig.js.map +1 -0
- package/packages/transact/src/multisig.mjs +368 -0
- package/packages/transact/src/multisig.mjs.map +1 -0
- package/packages/transact/src/signer.d.ts +47 -0
- package/packages/transact/src/signer.js +71 -0
- package/packages/transact/src/signer.js.map +1 -0
- package/packages/transact/src/signer.mjs +70 -0
- package/packages/transact/src/signer.mjs.map +1 -0
- package/packages/transact/src/transactions/app-call.d.ts +209 -0
- package/packages/transact/src/transactions/app-call.js +251 -0
- package/packages/transact/src/transactions/app-call.js.map +1 -0
- package/packages/transact/src/transactions/app-call.mjs +250 -0
- package/packages/transact/src/transactions/app-call.mjs.map +1 -0
- package/packages/transact/src/transactions/asset-config.d.ts +131 -0
- package/packages/transact/src/transactions/asset-config.js +101 -0
- package/packages/transact/src/transactions/asset-config.js.map +1 -0
- package/packages/transact/src/transactions/asset-config.mjs +101 -0
- package/packages/transact/src/transactions/asset-config.mjs.map +1 -0
- package/packages/transact/src/transactions/asset-freeze.d.ts +35 -0
- package/packages/transact/src/transactions/asset-freeze.js +18 -0
- package/packages/transact/src/transactions/asset-freeze.js.map +1 -0
- package/packages/transact/src/transactions/asset-freeze.mjs +18 -0
- package/packages/transact/src/transactions/asset-freeze.mjs.map +1 -0
- package/packages/transact/src/transactions/asset-transfer.d.ts +56 -0
- package/packages/transact/src/transactions/asset-transfer.js +18 -0
- package/packages/transact/src/transactions/asset-transfer.js.map +1 -0
- package/packages/transact/src/transactions/asset-transfer.mjs +18 -0
- package/packages/transact/src/transactions/asset-transfer.mjs.map +1 -0
- package/packages/transact/src/transactions/common.d.ts +37 -0
- package/packages/transact/src/transactions/common.js +24 -0
- package/packages/transact/src/transactions/common.js.map +1 -0
- package/packages/transact/src/transactions/common.mjs +22 -0
- package/packages/transact/src/transactions/common.mjs.map +1 -0
- package/packages/transact/src/transactions/heartbeat.d.ts +37 -0
- package/packages/transact/src/transactions/key-registration.d.ts +45 -0
- package/packages/transact/src/transactions/key-registration.js +54 -0
- package/packages/transact/src/transactions/key-registration.js.map +1 -0
- package/packages/transact/src/transactions/key-registration.mjs +54 -0
- package/packages/transact/src/transactions/key-registration.mjs.map +1 -0
- package/packages/transact/src/transactions/payment.d.ts +32 -0
- package/packages/transact/src/transactions/signed-transaction-meta.d.ts +12 -0
- package/packages/transact/src/transactions/signed-transaction-meta.js +132 -0
- package/packages/transact/src/transactions/signed-transaction-meta.js.map +1 -0
- package/packages/transact/src/transactions/signed-transaction-meta.mjs +129 -0
- package/packages/transact/src/transactions/signed-transaction-meta.mjs.map +1 -0
- package/packages/transact/src/transactions/signed-transaction.d.ts +126 -0
- package/packages/transact/src/transactions/signed-transaction.js +67 -0
- package/packages/transact/src/transactions/signed-transaction.js.map +1 -0
- package/packages/transact/src/transactions/signed-transaction.mjs +64 -0
- package/packages/transact/src/transactions/signed-transaction.mjs.map +1 -0
- package/packages/transact/src/transactions/state-proof.d.ts +64 -0
- package/packages/transact/src/transactions/transaction-meta.d.ts +14 -0
- package/packages/transact/src/transactions/transaction-meta.js +1007 -0
- package/packages/transact/src/transactions/transaction-meta.js.map +1 -0
- package/packages/transact/src/transactions/transaction-meta.mjs +1006 -0
- package/packages/transact/src/transactions/transaction-meta.mjs.map +1 -0
- package/packages/transact/src/transactions/transaction-type.d.ts +47 -0
- package/packages/transact/src/transactions/transaction-type.js +50 -0
- package/packages/transact/src/transactions/transaction-type.js.map +1 -0
- package/packages/transact/src/transactions/transaction-type.mjs +49 -0
- package/packages/transact/src/transactions/transaction-type.mjs.map +1 -0
- package/packages/transact/src/transactions/transaction.d.ts +312 -0
- package/packages/transact/src/transactions/transaction.js +351 -0
- package/packages/transact/src/transactions/transaction.js.map +1 -0
- package/packages/transact/src/transactions/transaction.mjs +337 -0
- package/packages/transact/src/transactions/transaction.mjs.map +1 -0
- package/sdk/index.d.ts +10 -0
- package/sdk/index.js +59 -0
- package/sdk/index.mjs +11 -0
- package/testing/account.d.ts +14 -9
- package/testing/account.js +27 -31
- package/testing/account.js.map +1 -1
- package/testing/account.mjs +27 -29
- package/testing/account.mjs.map +1 -1
- package/testing/fixtures/algokit-log-capture-fixture.d.ts +8 -2
- package/testing/fixtures/algokit-log-capture-fixture.js +35 -39
- package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -1
- package/testing/fixtures/algokit-log-capture-fixture.mjs +35 -37
- package/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -1
- package/testing/fixtures/algorand-fixture.d.ts +11 -5
- package/testing/fixtures/algorand-fixture.js +66 -60
- package/testing/fixtures/algorand-fixture.js.map +1 -1
- package/testing/fixtures/algorand-fixture.mjs +65 -57
- package/testing/fixtures/algorand-fixture.mjs.map +1 -1
- package/testing/index.d.ts +7 -5
- package/testing/index.js +13 -18
- package/testing/index.mjs +8 -7
- package/testing/indexer.d.ts +5 -1
- package/testing/indexer.js +27 -35
- package/testing/indexer.js.map +1 -1
- package/testing/indexer.mjs +27 -34
- package/testing/indexer.mjs.map +1 -1
- package/testing/test-logger.d.ts +42 -36
- package/testing/test-logger.js +70 -74
- package/testing/test-logger.js.map +1 -1
- package/testing/test-logger.mjs +70 -72
- package/testing/test-logger.mjs.map +1 -1
- package/testing/transaction-logger.d.ts +33 -28
- package/testing/transaction-logger.js +73 -91
- package/testing/transaction-logger.js.map +1 -1
- package/testing/transaction-logger.mjs +73 -89
- package/testing/transaction-logger.mjs.map +1 -1
- package/transact/index.d.ts +17 -0
- package/transact/index.js +66 -0
- package/transact/index.mjs +15 -0
- package/transaction/perform-transaction-composer-simulate.d.ts +20 -0
- package/transaction/perform-transaction-composer-simulate.js +33 -0
- package/transaction/perform-transaction-composer-simulate.js.map +1 -0
- package/transaction/perform-transaction-composer-simulate.mjs +32 -0
- package/transaction/perform-transaction-composer-simulate.mjs.map +1 -0
- package/transaction/transaction.d.ts +37 -163
- package/transaction/transaction.js +115 -970
- package/transaction/transaction.js.map +1 -1
- package/transaction/transaction.mjs +115 -953
- package/transaction/transaction.mjs.map +1 -1
- package/transactions/app-call.d.ts +78 -0
- package/transactions/app-call.js +333 -0
- package/transactions/app-call.js.map +1 -0
- package/transactions/app-call.mjs +329 -0
- package/transactions/app-call.mjs.map +1 -0
- package/transactions/asset-config.d.ts +177 -0
- package/transactions/asset-config.js +64 -0
- package/transactions/asset-config.js.map +1 -0
- package/transactions/asset-config.mjs +61 -0
- package/transactions/asset-config.mjs.map +1 -0
- package/transactions/asset-transfer.d.ts +44 -0
- package/transactions/asset-transfer.js +50 -0
- package/transactions/asset-transfer.js.map +1 -0
- package/transactions/asset-transfer.mjs +48 -0
- package/transactions/asset-transfer.mjs.map +1 -0
- package/transactions/common.d.ts +48 -0
- package/transactions/common.js +31 -0
- package/transactions/common.js.map +1 -0
- package/transactions/common.mjs +30 -0
- package/transactions/common.mjs.map +1 -0
- package/transactions/fee-coverage.js +115 -0
- package/transactions/fee-coverage.js.map +1 -0
- package/transactions/fee-coverage.mjs +112 -0
- package/transactions/fee-coverage.mjs.map +1 -0
- package/transactions/key-registration.d.ts +27 -0
- package/transactions/key-registration.js +30 -0
- package/transactions/key-registration.js.map +1 -0
- package/transactions/key-registration.mjs +30 -0
- package/transactions/key-registration.mjs.map +1 -0
- package/transactions/method-call.d.ts +45 -0
- package/transactions/method-call.js +326 -0
- package/transactions/method-call.js.map +1 -0
- package/transactions/method-call.mjs +322 -0
- package/transactions/method-call.mjs.map +1 -0
- package/transactions/payment.d.ts +21 -0
- package/transactions/payment.js +21 -0
- package/transactions/payment.js.map +1 -0
- package/transactions/payment.mjs +21 -0
- package/transactions/payment.mjs.map +1 -0
- package/types/account-manager.d.ts +434 -428
- package/types/account-manager.js +606 -600
- package/types/account-manager.js.map +1 -1
- package/types/account-manager.mjs +604 -598
- package/types/account-manager.mjs.map +1 -1
- package/types/account.d.ts +149 -212
- package/types/account.js +6 -90
- package/types/account.js.map +1 -1
- package/types/account.mjs +7 -88
- package/types/account.mjs.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +1087 -761
- package/types/algorand-client-transaction-creator.js +723 -722
- package/types/algorand-client-transaction-creator.js.map +1 -1
- package/types/algorand-client-transaction-creator.mjs +723 -721
- package/types/algorand-client-transaction-creator.mjs.map +1 -1
- package/types/algorand-client-transaction-sender.d.ts +1298 -1268
- package/types/algorand-client-transaction-sender.js +920 -951
- package/types/algorand-client-transaction-sender.js.map +1 -1
- package/types/algorand-client-transaction-sender.mjs +918 -949
- package/types/algorand-client-transaction-sender.mjs.map +1 -1
- package/types/algorand-client.d.ts +242 -236
- package/types/algorand-client.js +321 -318
- package/types/algorand-client.js.map +1 -1
- package/types/algorand-client.mjs +321 -316
- package/types/algorand-client.mjs.map +1 -1
- package/types/amount.d.ts +47 -43
- package/types/amount.js +62 -68
- package/types/amount.js.map +1 -1
- package/types/amount.mjs +62 -66
- package/types/amount.mjs.map +1 -1
- package/types/app-client.d.ts +2018 -1972
- package/types/app-client.js +900 -1794
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +899 -1792
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.d.ts +149 -141
- package/types/app-deployer.js +349 -382
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs +349 -380
- package/types/app-deployer.mjs.map +1 -1
- package/types/app-factory.d.ts +931 -914
- package/types/app-factory.js +444 -486
- package/types/app-factory.js.map +1 -1
- package/types/app-factory.mjs +444 -484
- package/types/app-factory.mjs.map +1 -1
- package/types/app-manager.d.ts +299 -325
- package/types/app-manager.js +447 -498
- package/types/app-manager.js.map +1 -1
- package/types/app-manager.mjs +448 -496
- package/types/app-manager.mjs.map +1 -1
- package/types/app-spec.d.ts +154 -117
- package/types/app-spec.js +124 -133
- package/types/app-spec.js.map +1 -1
- package/types/app-spec.mjs +124 -131
- package/types/app-spec.mjs.map +1 -1
- package/types/app.d.ts +186 -291
- package/types/app.js +34 -26
- package/types/app.js.map +1 -1
- package/types/app.mjs +32 -25
- package/types/app.mjs.map +1 -1
- package/types/asset-manager.d.ts +206 -199
- package/types/asset-manager.js +162 -172
- package/types/asset-manager.js.map +1 -1
- package/types/asset-manager.mjs +162 -170
- package/types/asset-manager.mjs.map +1 -1
- package/types/async-event-emitter.d.ts +18 -13
- package/types/async-event-emitter.js +35 -47
- package/types/async-event-emitter.js.map +1 -1
- package/types/async-event-emitter.mjs +35 -46
- package/types/async-event-emitter.mjs.map +1 -1
- package/types/client-manager.d.ts +455 -451
- package/types/client-manager.js +612 -596
- package/types/client-manager.js.map +1 -1
- package/types/client-manager.mjs +612 -594
- package/types/client-manager.mjs.map +1 -1
- package/types/composer.d.ts +920 -1312
- package/types/composer.js +1558 -1469
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +1557 -1467
- package/types/composer.mjs.map +1 -1
- package/types/config.d.ts +53 -48
- package/types/config.js +76 -75
- package/types/config.js.map +1 -1
- package/types/config.mjs +76 -73
- package/types/config.mjs.map +1 -1
- package/types/debugging.d.ts +26 -23
- package/types/debugging.js +7 -9
- package/types/debugging.js.map +1 -1
- package/types/debugging.mjs +7 -8
- package/types/debugging.mjs.map +1 -1
- package/types/dispenser-client.d.ts +57 -52
- package/types/dispenser-client.js +122 -139
- package/types/dispenser-client.js.map +1 -1
- package/types/dispenser-client.mjs +122 -137
- package/types/dispenser-client.mjs.map +1 -1
- package/types/expand.d.ts +5 -3
- package/types/expand.js +0 -3
- package/types/expand.mjs +0 -2
- package/types/indexer.d.ts +32 -160
- package/types/indexer.js +34 -29
- package/types/indexer.js.map +1 -1
- package/types/indexer.mjs +30 -28
- package/types/indexer.mjs.map +1 -1
- package/types/instance-of.d.ts +5 -3
- package/types/instance-of.js +0 -3
- package/types/instance-of.mjs +0 -2
- package/types/kmd-account-manager.d.ts +70 -70
- package/types/kmd-account-manager.js +152 -182
- package/types/kmd-account-manager.js.map +1 -1
- package/types/kmd-account-manager.mjs +150 -180
- package/types/kmd-account-manager.mjs.map +1 -1
- package/types/lifecycle-events.d.ts +13 -8
- package/types/lifecycle-events.js +10 -7
- package/types/lifecycle-events.js.map +1 -1
- package/types/lifecycle-events.mjs +8 -6
- package/types/lifecycle-events.mjs.map +1 -1
- package/types/logging.d.ts +11 -13
- package/types/logging.js +28 -29
- package/types/logging.js.map +1 -1
- package/types/logging.mjs +28 -28
- package/types/logging.mjs.map +1 -1
- package/types/logic-error.d.ts +33 -29
- package/types/logic-error.js +48 -47
- package/types/logic-error.js.map +1 -1
- package/types/logic-error.mjs +48 -46
- package/types/logic-error.mjs.map +1 -1
- package/types/network-client.d.ts +32 -27
- package/types/network-client.js +8 -7
- package/types/network-client.js.map +1 -1
- package/types/network-client.mjs +8 -6
- package/types/network-client.mjs.map +1 -1
- package/types/testing.d.ts +138 -132
- package/types/testing.js +0 -3
- package/types/testing.mjs +0 -2
- package/types/transaction.d.ts +108 -123
- package/types/transaction.js +0 -3
- package/types/transaction.mjs +0 -2
- package/util.js +51 -125
- package/util.js.map +1 -1
- package/util.mjs +52 -121
- package/util.mjs.map +1 -1
- package/account/account.d.ts +0 -144
- package/account/account.js +0 -182
- package/account/account.js.map +0 -1
- package/account/account.mjs +0 -172
- package/account/account.mjs.map +0 -1
- package/account/get-account-config-from-environment.d.ts +0 -12
- package/account/get-account-config-from-environment.js +0 -25
- package/account/get-account-config-from-environment.js.map +0 -1
- package/account/get-account-config-from-environment.mjs +0 -23
- package/account/get-account-config-from-environment.mjs.map +0 -1
- package/account/get-account.d.ts +0 -65
- package/account/get-account.js +0 -63
- package/account/get-account.js.map +0 -1
- package/account/get-account.mjs +0 -61
- package/account/get-account.mjs.map +0 -1
- package/account/get-dispenser-account.d.ts +0 -17
- package/account/get-dispenser-account.js +0 -22
- package/account/get-dispenser-account.js.map +0 -1
- package/account/get-dispenser-account.mjs +0 -20
- package/account/get-dispenser-account.mjs.map +0 -1
- package/account/index.d.ts +0 -5
- package/account/mnemonic-account.d.ts +0 -13
- package/account/mnemonic-account.js +0 -21
- package/account/mnemonic-account.js.map +0 -1
- package/account/mnemonic-account.mjs +0 -19
- package/account/mnemonic-account.mjs.map +0 -1
- package/app-client.d.ts +0 -86
- package/app-client.js +0 -98
- package/app-client.js.map +0 -1
- package/app-client.mjs +0 -94
- package/app-client.mjs.map +0 -1
- package/app-deploy.d.ts +0 -120
- package/app-deploy.js +0 -285
- package/app-deploy.js.map +0 -1
- package/app-deploy.mjs +0 -276
- package/app-deploy.mjs.map +0 -1
- package/app.d.ts +0 -205
- package/app.js +0 -349
- package/app.js.map +0 -1
- package/app.mjs +0 -329
- package/app.mjs.map +0 -1
- package/asset.d.ts +0 -74
- package/asset.js +0 -142
- package/asset.js.map +0 -1
- package/asset.mjs +0 -136
- package/asset.mjs.map +0 -1
- package/debugging/debugging.d.ts +0 -8
- package/debugging/debugging.js +0 -15
- package/debugging/debugging.js.map +0 -1
- package/debugging/debugging.mjs +0 -13
- package/debugging/debugging.mjs.map +0 -1
- package/debugging/index.d.ts +0 -1
- package/dispenser-client.d.ts +0 -20
- package/dispenser-client.js +0 -28
- package/dispenser-client.js.map +0 -1
- package/dispenser-client.mjs +0 -26
- package/dispenser-client.mjs.map +0 -1
- package/index.js.map +0 -1
- package/index.mjs.map +0 -1
- package/localnet/get-kmd-wallet-account.d.ts +0 -27
- package/localnet/get-kmd-wallet-account.js +0 -30
- package/localnet/get-kmd-wallet-account.js.map +0 -1
- package/localnet/get-kmd-wallet-account.mjs +0 -28
- package/localnet/get-kmd-wallet-account.mjs.map +0 -1
- package/localnet/get-localnet-dispenser-account.d.ts +0 -13
- package/localnet/get-localnet-dispenser-account.js +0 -19
- package/localnet/get-localnet-dispenser-account.js.map +0 -1
- package/localnet/get-localnet-dispenser-account.mjs +0 -17
- package/localnet/get-localnet-dispenser-account.mjs.map +0 -1
- package/localnet/get-or-create-kmd-wallet-account.d.ts +0 -28
- package/localnet/get-or-create-kmd-wallet-account.js +0 -30
- package/localnet/get-or-create-kmd-wallet-account.js.map +0 -1
- package/localnet/get-or-create-kmd-wallet-account.mjs +0 -28
- package/localnet/get-or-create-kmd-wallet-account.mjs.map +0 -1
- package/localnet/index.d.ts +0 -4
- package/localnet/is-localnet.d.ts +0 -7
- package/localnet/is-localnet.js +0 -14
- package/localnet/is-localnet.js.map +0 -1
- package/localnet/is-localnet.mjs +0 -12
- package/localnet/is-localnet.mjs.map +0 -1
- package/network-client.d.ts +0 -125
- package/network-client.js +0 -156
- package/network-client.js.map +0 -1
- package/network-client.mjs +0 -145
- package/network-client.mjs.map +0 -1
- package/testing/_asset.d.ts +0 -3
- package/testing/fixtures/index.d.ts +0 -2
- package/testing/index.js.map +0 -1
- package/testing/index.mjs.map +0 -1
- package/transaction/index.d.ts +0 -2
- package/transaction/legacy-bridge.d.ts +0 -35
- package/transaction/legacy-bridge.js +0 -129
- package/transaction/legacy-bridge.js.map +0 -1
- package/transaction/legacy-bridge.mjs +0 -124
- package/transaction/legacy-bridge.mjs.map +0 -1
- package/transaction/perform-atomic-transaction-composer-simulate.d.ts +0 -13
- package/transaction/perform-atomic-transaction-composer-simulate.js +0 -40
- package/transaction/perform-atomic-transaction-composer-simulate.js.map +0 -1
- package/transaction/perform-atomic-transaction-composer-simulate.mjs +0 -38
- package/transaction/perform-atomic-transaction-composer-simulate.mjs.map +0 -1
- package/transfer/index.d.ts +0 -2
- package/transfer/transfer-algos.d.ts +0 -18
- package/transfer/transfer-algos.js +0 -31
- package/transfer/transfer-algos.js.map +0 -1
- package/transfer/transfer-algos.mjs +0 -29
- package/transfer/transfer-algos.mjs.map +0 -1
- package/transfer/transfer.d.ts +0 -52
- package/transfer/transfer.js +0 -112
- package/transfer/transfer.js.map +0 -1
- package/transfer/transfer.mjs +0 -108
- package/transfer/transfer.mjs.map +0 -1
- package/types/algo-http-client-with-retry.d.ts +0 -12
- package/types/algo-http-client-with-retry.js +0 -94
- package/types/algo-http-client-with-retry.js.map +0 -1
- package/types/algo-http-client-with-retry.mjs +0 -92
- package/types/algo-http-client-with-retry.mjs.map +0 -1
- package/types/app-arc56.d.ts +0 -359
- package/types/app-arc56.js +0 -200
- package/types/app-arc56.js.map +0 -1
- package/types/app-arc56.mjs +0 -191
- package/types/app-arc56.mjs.map +0 -1
- package/types/asset.d.ts +0 -99
- package/types/asset.js +0 -3
- package/types/asset.js.map +0 -1
- package/types/asset.mjs +0 -2
- package/types/asset.mjs.map +0 -1
- package/types/expand.js.map +0 -1
- package/types/expand.mjs.map +0 -1
- package/types/instance-of.js.map +0 -1
- package/types/instance-of.mjs.map +0 -1
- package/types/testing.js.map +0 -1
- package/types/testing.mjs.map +0 -1
- package/types/transaction.js.map +0 -1
- package/types/transaction.mjs.map +0 -1
- package/types/transfer.d.ts +0 -76
- package/types/transfer.js +0 -3
- package/types/transfer.js.map +0 -1
- package/types/transfer.mjs +0 -2
- package/types/transfer.mjs.map +0 -1
- package/util.d.ts +0 -48
package/types/app-client.d.ts
CHANGED
|
@@ -1,2079 +1,2125 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
1
|
+
import { Address, ReadableAddress } from "../packages/common/src/address.js";
|
|
2
|
+
import { ABIValue } from "../packages/abi/src/abi-value.js";
|
|
3
|
+
import { Arc56Contract, ProgramSourceInfo } from "../packages/abi/src/arc56-contract.js";
|
|
4
|
+
import { ABIType } from "../packages/abi/src/abi-type.js";
|
|
5
|
+
import { ABIMethod, ABIReturn } from "../packages/abi/src/abi-method.js";
|
|
6
|
+
import { AccessReference, OnApplicationComplete } from "../packages/transact/src/transactions/app-call.js";
|
|
7
|
+
import { Transaction } from "../packages/transact/src/transactions/transaction.js";
|
|
8
|
+
import { AddressWithTransactionSigner, SendingAddress, TransactionSigner } from "../packages/transact/src/signer.js";
|
|
9
|
+
import { PendingTransactionResponse } from "../packages/algod_client/src/models/pending-transaction-response.js";
|
|
10
|
+
import { SuggestedParams } from "../packages/algod_client/src/models/suggested-params.js";
|
|
11
|
+
import { AlgoAmount } from "./amount.js";
|
|
12
|
+
import { ProgramSourceMap } from "../packages/sdk/src/logic/sourcemap.js";
|
|
13
|
+
import { AppManager, BoxIdentifier, BoxReference } from "./app-manager.js";
|
|
14
|
+
import { Expand } from "./expand.js";
|
|
15
|
+
import { AppCallParams, AppDeleteParams, AppMethodCallParams, CommonAppCallParams } from "../transactions/app-call.js";
|
|
16
|
+
import { AppMethodCall, AppMethodCallTransactionArgument } from "../transactions/method-call.js";
|
|
17
|
+
import { PaymentParams } from "../transactions/payment.js";
|
|
18
|
+
import { SendParams, SendTransactionFrom, SendTransactionParams, TransactionNote } from "./transaction.js";
|
|
19
|
+
import { TransactionWithSigner } from "../transaction/transaction.js";
|
|
20
|
+
import { ABIAppCallArgs, AppCompilationResult, AppLookup, AppReturn, AppState, AppStorageSchema, BoxName, CompiledTeal, OnSchemaBreak, OnUpdate, RawAppCallArgs, SendAppTransactionResult, TealTemplateParams } from "./app.js";
|
|
21
|
+
import { IndexerClient } from "../packages/indexer_client/src/client.js";
|
|
22
|
+
import { AppLookup as AppLookup$1 } from "./app-deployer.js";
|
|
23
|
+
import { AppSpec } from "./app-spec.js";
|
|
24
|
+
import { AlgorandClient } from "./algorand-client.js";
|
|
25
|
+
|
|
26
|
+
//#region src/types/app-client.d.ts
|
|
23
27
|
/** Configuration to resolve app by creator and name `getCreatorAppsByName` */
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
28
|
+
type ResolveAppByCreatorAndNameBase = {
|
|
29
|
+
/** The address of the app creator account to resolve the app by */
|
|
30
|
+
creatorAddress: ReadableAddress;
|
|
31
|
+
/** The optional name override to resolve the app by within the creator account (default: uses the name in the ABI contract) */
|
|
32
|
+
name?: string;
|
|
33
|
+
/** The mechanism to find an existing app instance metadata for the given creator and name; either:
|
|
34
|
+
* * An indexer instance to search the creator account apps; or
|
|
35
|
+
* * The cached value of the existing apps for the given creator from `getCreatorAppsByName`
|
|
36
|
+
*/
|
|
37
|
+
findExistingUsing: IndexerClient | AppLookup;
|
|
34
38
|
};
|
|
35
39
|
/** Configuration to resolve app by creator and name `getCreatorAppsByName` */
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
type ResolveAppByCreatorAndName = ResolveAppByCreatorAndNameBase & {
|
|
41
|
+
/** How the app ID is resolved, either by `'id'` or `'creatorAndName'`; must be `'creatorAndName'` if you want to use `deploy` */
|
|
42
|
+
resolveBy: 'creatorAndName';
|
|
39
43
|
};
|
|
40
44
|
/** Configuration to resolve app by ID */
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
interface ResolveAppByIdBase {
|
|
46
|
+
/** The id of an existing app to call using this client, or 0 if the app hasn't been created yet */
|
|
47
|
+
id: number | bigint;
|
|
48
|
+
/** The optional name to use to mark the app when deploying `ApplicationClient.deploy` (default: uses the name in the ABI contract) */
|
|
49
|
+
name?: string;
|
|
46
50
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
51
|
+
interface ResolveAppById extends ResolveAppByIdBase {
|
|
52
|
+
/** How the app ID is resolved, either by `'id'` or `'creatorAndName'`; must be `'creatorAndName'` if you want to use `deploy` */
|
|
53
|
+
resolveBy: 'id';
|
|
50
54
|
}
|
|
51
55
|
/** The details of an AlgoKit Utils deployed app */
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
56
|
+
type AppDetailsBase = {
|
|
57
|
+
/** Default sender to use for transactions issued by this application client */
|
|
58
|
+
sender?: SendTransactionFrom;
|
|
59
|
+
/** Default suggested params object to use */
|
|
60
|
+
params?: SuggestedParams;
|
|
61
|
+
/** Optionally provide any deploy-time parameters to replace in the TEAL code; if specified here will get
|
|
62
|
+
* used in calls to `deploy`, `create` and `update` unless overridden in those calls
|
|
63
|
+
*/
|
|
64
|
+
deployTimeParams?: TealTemplateParams;
|
|
61
65
|
};
|
|
62
66
|
/** The details of an AlgoKit Utils deployed app */
|
|
63
|
-
|
|
67
|
+
type AppDetails = AppDetailsBase & (ResolveAppById | ResolveAppByCreatorAndName);
|
|
64
68
|
/** The details of an ARC-0032 app spec specified, AlgoKit Utils deployed app */
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
type AppSpecAppDetailsBase = {
|
|
70
|
+
/** The ARC-0032 application spec as either:
|
|
71
|
+
* * Parsed JSON `AppSpec`
|
|
72
|
+
* * Raw JSON string
|
|
73
|
+
*/
|
|
74
|
+
app: AppSpec | string;
|
|
71
75
|
};
|
|
72
76
|
/** The details of an ARC-0032 app spec specified, AlgoKit Utils deployed app by id*/
|
|
73
|
-
|
|
77
|
+
type AppSpecAppDetailsById = AppSpecAppDetailsBase & AppDetailsBase & ResolveAppByIdBase;
|
|
74
78
|
/** The details of an ARC-0032 app spec specified, AlgoKit Utils deployed app by creator and name*/
|
|
75
|
-
|
|
79
|
+
type AppSpecAppDetailsByCreatorAndName = AppSpecAppDetailsBase & AppDetailsBase & ResolveAppByCreatorAndNameBase;
|
|
76
80
|
/** The details of an ARC-0032 app spec specified, AlgoKit Utils deployed app */
|
|
77
|
-
|
|
81
|
+
type AppSpecAppDetails = AppSpecAppDetailsBase & AppDetails;
|
|
78
82
|
/** Core parameters to pass into ApplicationClient.deploy */
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
83
|
+
interface AppClientDeployCoreParams {
|
|
84
|
+
/** The version of the contract, uses "1.0" by default */
|
|
85
|
+
version?: string;
|
|
86
|
+
/** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
|
|
87
|
+
sender?: SendTransactionFrom;
|
|
88
|
+
/** Parameters to control transaction sending */
|
|
89
|
+
sendParams?: Omit<SendTransactionParams, 'skipSending' | 'skipWaiting'>;
|
|
90
|
+
/** Whether or not to allow updates in the contract using the deploy-time updatability control if present in your contract.
|
|
91
|
+
* If this is not specified then it will automatically be determined based on the AppSpec definition
|
|
92
|
+
**/
|
|
93
|
+
allowUpdate?: boolean;
|
|
94
|
+
/** Whether or not to allow deletes in the contract using the deploy-time deletability control if present in your contract.
|
|
95
|
+
* If this is not specified then it will automatically be determined based on the AppSpec definition
|
|
96
|
+
**/
|
|
97
|
+
allowDelete?: boolean;
|
|
98
|
+
/** What action to perform if a schema break is detected */
|
|
99
|
+
onSchemaBreak?: 'replace' | 'fail' | 'append' | OnSchemaBreak;
|
|
100
|
+
/** What action to perform if a TEAL update is detected */
|
|
101
|
+
onUpdate?: 'update' | 'replace' | 'append' | 'fail' | OnUpdate;
|
|
98
102
|
}
|
|
99
103
|
/** Call interface parameters to pass into ApplicationClient.deploy */
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
104
|
+
interface AppClientDeployCallInterfaceParams {
|
|
105
|
+
/** Any deploy-time parameters to replace in the TEAL code */
|
|
106
|
+
deployTimeParams?: TealTemplateParams;
|
|
107
|
+
/** Any args to pass to any create transaction that is issued as part of deployment */
|
|
108
|
+
createArgs?: AppClientCallArgs;
|
|
109
|
+
/** Override the on-completion action for the create call; defaults to NoOp */
|
|
110
|
+
createOnCompleteAction?: Exclude<OnApplicationComplete, OnApplicationComplete.ClearState>;
|
|
111
|
+
/** Any args to pass to any update transaction that is issued as part of deployment */
|
|
112
|
+
updateArgs?: AppClientCallArgs;
|
|
113
|
+
/** Any args to pass to any delete transaction that is issued as part of deployment */
|
|
114
|
+
deleteArgs?: AppClientCallArgs;
|
|
111
115
|
}
|
|
112
116
|
/** Parameters to pass into ApplicationClient.deploy */
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
117
|
+
interface AppClientDeployParams extends AppClientDeployCoreParams, AppClientDeployCallInterfaceParams {
|
|
118
|
+
/** Any overrides for the storage schema to request for the created app; by default the schema indicated by the app spec is used. */
|
|
119
|
+
schema?: Partial<AppStorageSchema>;
|
|
116
120
|
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
+
type AppClientCallRawArgs = RawAppCallArgs;
|
|
122
|
+
interface AppClientCallABIArgs extends Omit<ABIAppCallArgs, 'method'> {
|
|
123
|
+
/** If calling an ABI method then either the name of the method, or the ABI signature */
|
|
124
|
+
method: string;
|
|
121
125
|
}
|
|
122
126
|
/** The arguments to pass to an Application Client smart contract call */
|
|
123
|
-
|
|
127
|
+
type AppClientCallArgs = AppClientCallRawArgs | AppClientCallABIArgs;
|
|
124
128
|
/** Common (core) parameters to construct a ApplicationClient contract call */
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
129
|
+
interface AppClientCallCoreParams {
|
|
130
|
+
/** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
|
|
131
|
+
sender?: SendTransactionFrom;
|
|
132
|
+
/** The transaction note for the smart contract call */
|
|
133
|
+
note?: TransactionNote;
|
|
134
|
+
/** Parameters to control transaction sending */
|
|
135
|
+
sendParams?: SendTransactionParams;
|
|
132
136
|
}
|
|
133
137
|
/** Parameters to construct a ApplicationClient contract call */
|
|
134
|
-
|
|
138
|
+
type AppClientCallParams = AppClientCallArgs & AppClientCallCoreParams;
|
|
135
139
|
/** Parameters to construct a ApplicationClient clear state contract call */
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
140
|
+
type AppClientClearStateParams = AppClientCallRawArgs & AppClientCallCoreParams;
|
|
141
|
+
interface AppClientCompilationParams {
|
|
142
|
+
/** Any deploy-time parameters to replace in the TEAL code */
|
|
143
|
+
deployTimeParams?: TealTemplateParams;
|
|
144
|
+
/** Whether or not the contract should have deploy-time immutability control set, undefined = ignore */
|
|
145
|
+
updatable?: boolean;
|
|
146
|
+
/** Whether or not the contract should have deploy-time permanence control set, undefined = ignore */
|
|
147
|
+
deletable?: boolean;
|
|
144
148
|
}
|
|
145
149
|
/** On-complete action parameter for creating a contract using ApplicationClient */
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
type AppClientCreateOnComplete = {
|
|
151
|
+
/** Override the on-completion action for the create call; defaults to NoOp */
|
|
152
|
+
onCompleteAction?: Exclude<OnApplicationComplete, OnApplicationComplete.ClearState>;
|
|
149
153
|
};
|
|
150
154
|
/** Parameters for creating a contract using ApplicationClient */
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
155
|
+
type AppClientCreateParams = AppClientCallParams & AppClientCompilationParams & AppClientCreateOnComplete & {
|
|
156
|
+
/** Any overrides for the storage schema to request for the created app; by default the schema indicated by the app spec is used. */
|
|
157
|
+
schema?: Partial<AppStorageSchema>;
|
|
154
158
|
};
|
|
155
159
|
/** Parameters for updating a contract using ApplicationClient */
|
|
156
|
-
|
|
160
|
+
type AppClientUpdateParams = AppClientCallParams & AppClientCompilationParams;
|
|
157
161
|
/** Parameters for funding an app account */
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
162
|
+
interface FundAppAccountParams {
|
|
163
|
+
amount: AlgoAmount;
|
|
164
|
+
/** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
|
|
165
|
+
sender?: SendTransactionFrom;
|
|
166
|
+
/** The transaction note for the smart contract call */
|
|
167
|
+
note?: TransactionNote;
|
|
168
|
+
/** Parameters to control transaction sending */
|
|
169
|
+
sendParams?: SendTransactionParams;
|
|
166
170
|
}
|
|
167
171
|
/** Source maps for an Algorand app */
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
172
|
+
interface AppSourceMaps {
|
|
173
|
+
/** The source map of the approval program */
|
|
174
|
+
approvalSourceMap: SourceMapExport;
|
|
175
|
+
/** The source map of the clear program */
|
|
176
|
+
clearSourceMap: SourceMapExport;
|
|
173
177
|
}
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
178
|
+
interface SourceMapExport {
|
|
179
|
+
version: number;
|
|
180
|
+
sources: string[];
|
|
181
|
+
names: string[];
|
|
182
|
+
mappings: string;
|
|
179
183
|
}
|
|
180
184
|
/**
|
|
181
185
|
* The result of asking an `AppClient` to compile a program.
|
|
182
186
|
*
|
|
183
187
|
* Always contains the compiled bytecode, and may contain the result of compiling TEAL (including sourcemap) if it was available.
|
|
184
188
|
*/
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
189
|
+
interface AppClientCompilationResult extends Partial<AppCompilationResult> {
|
|
190
|
+
/** The compiled bytecode of the approval program, ready to deploy to algod */
|
|
191
|
+
approvalProgram: Uint8Array;
|
|
192
|
+
/** The compiled bytecode of the clear state program, ready to deploy to algod */
|
|
193
|
+
clearStateProgram: Uint8Array;
|
|
190
194
|
}
|
|
191
195
|
/** Parameters to create an app client */
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
196
|
+
interface AppClientParams {
|
|
197
|
+
/** The ID of the app instance this client should make calls against. */
|
|
198
|
+
appId: bigint;
|
|
199
|
+
/** The ARC-56 or ARC-32 application spec as either:
|
|
200
|
+
* * Parsed JSON ARC-56 `Contract`
|
|
201
|
+
* * Parsed JSON ARC-32 `AppSpec`
|
|
202
|
+
* * Raw JSON string (in either ARC-56 or ARC-32 format)
|
|
203
|
+
*/
|
|
204
|
+
appSpec: Arc56Contract | AppSpec | string;
|
|
205
|
+
/** An `AlgorandClient` instance */
|
|
206
|
+
algorand: AlgorandClient;
|
|
207
|
+
/**
|
|
208
|
+
* Optional override for the app name; used for on-chain metadata and lookups.
|
|
209
|
+
* Defaults to the ARC-32/ARC-56 app spec name
|
|
210
|
+
*/
|
|
211
|
+
appName?: string;
|
|
212
|
+
/** Optional address to use for the account to use as the default sender for calls. */
|
|
213
|
+
defaultSender?: ReadableAddress;
|
|
214
|
+
/** Optional signer to use as the default signer for default sender calls (if not specified then the signer will be resolved from `AlgorandClient`). */
|
|
215
|
+
defaultSigner?: TransactionSigner;
|
|
216
|
+
/** Optional source map for the approval program */
|
|
217
|
+
approvalSourceMap?: ProgramSourceMap;
|
|
218
|
+
/** Optional source map for the clear state program */
|
|
219
|
+
clearSourceMap?: ProgramSourceMap;
|
|
216
220
|
}
|
|
217
221
|
/** Parameters to clone an app client */
|
|
218
|
-
|
|
222
|
+
type CloneAppClientParams = Expand<Partial<Omit<AppClientParams, 'algorand' | 'appSpec'>>>;
|
|
219
223
|
/** onComplete parameter for a non-update app call */
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
224
|
+
type CallOnComplete = {
|
|
225
|
+
/** On-complete of the call; defaults to no-op */
|
|
226
|
+
onComplete?: Exclude<OnApplicationComplete, OnApplicationComplete.UpdateApplication>;
|
|
223
227
|
};
|
|
224
228
|
/** AppClient common parameters for a bare app call */
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
229
|
+
type AppClientBareCallParams = Expand<Omit<CommonAppCallParams, 'appId' | 'sender' | 'onComplete'> & {
|
|
230
|
+
/** The address of the account sending the transaction, if undefined then the app client's defaultSender is used. */
|
|
231
|
+
sender?: ReadableAddress;
|
|
228
232
|
}>;
|
|
229
233
|
/** AppClient common parameters for an ABI method call */
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
234
|
+
type AppClientMethodCallParams = Expand<Omit<CommonAppCallParams, 'appId' | 'sender' | 'method' | 'args'> & {
|
|
235
|
+
/** The address of the account sending the transaction, if undefined then the app client's defaultSender is used. */
|
|
236
|
+
sender?: ReadableAddress;
|
|
237
|
+
/** The method name or method signature to call if an ABI call is being emitted
|
|
238
|
+
* @example Method name
|
|
239
|
+
* `my_method`
|
|
240
|
+
* @example Method signature
|
|
241
|
+
* `my_method(unit64,string)bytes`
|
|
242
|
+
*/
|
|
243
|
+
method: string;
|
|
244
|
+
/** Arguments to the ABI method, either:
|
|
245
|
+
* * An ABI value
|
|
246
|
+
* * An ARC-56 struct
|
|
247
|
+
* * A transaction with explicit signer
|
|
248
|
+
* * A transaction (where the signer will be automatically assigned)
|
|
249
|
+
* * An unawaited transaction (e.g. from algorand.createTransaction.transactionType())
|
|
250
|
+
* * Another method call (via method call params object)
|
|
251
|
+
* * undefined (this represents a placeholder for either a default argument or a transaction argument that is fulfilled by another method call argument)
|
|
252
|
+
*/
|
|
253
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[];
|
|
250
254
|
}>;
|
|
251
255
|
/** Parameters for funding an app account */
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
256
|
+
type FundAppParams = Expand<Omit<PaymentParams, 'receiver' | 'sender'> & SendParams & {
|
|
257
|
+
/** The optional sender to send the transaction from, will use the application client's default sender by default if specified */
|
|
258
|
+
sender?: ReadableAddress;
|
|
255
259
|
}>;
|
|
256
260
|
/** Resolve an app client instance by looking up an app created by the given creator with the given name */
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
261
|
+
type ResolveAppClientByCreatorAndName = Expand<Omit<AppClientParams, 'appId'> & {
|
|
262
|
+
/** The address of the creator account for the app */
|
|
263
|
+
creatorAddress: ReadableAddress;
|
|
264
|
+
/** An optional cached app lookup that matches a name to on-chain details;
|
|
265
|
+
* either this is needed or indexer is required to be passed in to this `ClientManager` on construction.
|
|
266
|
+
*/
|
|
267
|
+
appLookupCache?: AppLookup$1;
|
|
268
|
+
/** Whether or not to ignore the `AppDeployer` lookup cache and force an on-chain lookup, default: use any cached value */
|
|
269
|
+
ignoreCache?: boolean;
|
|
266
270
|
}>;
|
|
267
271
|
/** Resolve an app client instance by looking up the current network. */
|
|
268
|
-
|
|
272
|
+
type ResolveAppClientByNetwork = Expand<Omit<AppClientParams, 'appId'>>;
|
|
269
273
|
/** ARC-56/ARC-32 application client that allows you to manage calls and
|
|
270
274
|
* state for a specific deployed instance of an app (with a known app ID). */
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
275
|
+
declare class AppClient {
|
|
276
|
+
private _appId;
|
|
277
|
+
private _appAddress;
|
|
278
|
+
private _appName;
|
|
279
|
+
private _appSpec;
|
|
280
|
+
private _algorand;
|
|
281
|
+
private _defaultSender?;
|
|
282
|
+
private _defaultSigner?;
|
|
283
|
+
private _approvalSourceMap;
|
|
284
|
+
private _clearSourceMap;
|
|
285
|
+
private _localStateMethods;
|
|
286
|
+
private _globalStateMethods;
|
|
287
|
+
private _boxStateMethods;
|
|
288
|
+
private _paramsMethods;
|
|
289
|
+
private _createTransactionsMethods;
|
|
290
|
+
private _sendMethods;
|
|
291
|
+
private _lastCompiled;
|
|
292
|
+
/**
|
|
293
|
+
* Create a new app client.
|
|
294
|
+
* @param params The parameters to create the app client
|
|
295
|
+
* @returns The `AppClient` instance
|
|
296
|
+
* @example
|
|
297
|
+
* ```typescript
|
|
298
|
+
* const appClient = new AppClient({
|
|
299
|
+
* appId: 12345678n,
|
|
300
|
+
* appSpec: appSpec,
|
|
301
|
+
* algorand: AlgorandClient.mainNet(),
|
|
302
|
+
* })
|
|
303
|
+
*/
|
|
304
|
+
constructor(params: AppClientParams);
|
|
305
|
+
/**
|
|
306
|
+
* Clone this app client with different params
|
|
307
|
+
*
|
|
308
|
+
* @param params The params to use for the the cloned app client. Omit a param to keep the original value. Set a param to override the original value. Setting to undefined will clear the original value.
|
|
309
|
+
* @returns A new app client with the altered params
|
|
310
|
+
* @example
|
|
311
|
+
* ```typescript
|
|
312
|
+
* const appClient2 = appClient.clone({ defaultSender: 'NEW_SENDER_ADDRESS' })
|
|
313
|
+
* ```
|
|
314
|
+
*/
|
|
315
|
+
clone(params: CloneAppClientParams): AppClient;
|
|
316
|
+
/**
|
|
317
|
+
* Returns a new `AppClient` client, resolving the app by creator address and name
|
|
318
|
+
* using AlgoKit app deployment semantics (i.e. looking for the app creation transaction note).
|
|
319
|
+
* @param params The parameters to create the app client
|
|
320
|
+
* @returns The `AppClient` instance
|
|
321
|
+
* @example
|
|
322
|
+
* ```typescript
|
|
323
|
+
* const appClient = await AppClient.fromCreatorAndName({
|
|
324
|
+
* creatorAddress: 'CREATOR_ADDRESS',
|
|
325
|
+
* name: 'APP_NAME',
|
|
326
|
+
* appSpec: appSpec,
|
|
327
|
+
* algorand: AlgorandClient.mainNet(),
|
|
328
|
+
* })
|
|
329
|
+
*/
|
|
330
|
+
static fromCreatorAndName(params: ResolveAppClientByCreatorAndName): Promise<AppClient>;
|
|
331
|
+
/**
|
|
332
|
+
* Returns an `AppClient` instance for the current network based on
|
|
333
|
+
* pre-determined network-specific app IDs specified in the ARC-56 app spec.
|
|
334
|
+
*
|
|
335
|
+
* If no IDs are in the app spec or the network isn't recognised, an error is thrown.
|
|
336
|
+
* @param params The parameters to create the app client
|
|
337
|
+
* @returns The `AppClient` instance
|
|
338
|
+
* @example
|
|
339
|
+
* ```typescript
|
|
340
|
+
* const appClient = await AppClient.fromNetwork({
|
|
341
|
+
* appSpec: appSpec,
|
|
342
|
+
* algorand: AlgorandClient.mainNet(),
|
|
343
|
+
* })
|
|
344
|
+
*/
|
|
345
|
+
static fromNetwork(params: ResolveAppClientByNetwork): Promise<AppClient>;
|
|
346
|
+
/**
|
|
347
|
+
* Takes a string or parsed JSON object that could be ARC-32 or ARC-56 format and
|
|
348
|
+
* normalises it into a parsed ARC-56 contract object.
|
|
349
|
+
* @param spec The spec to normalise
|
|
350
|
+
* @returns The normalised ARC-56 contract object
|
|
351
|
+
* @example
|
|
352
|
+
* ```typescript
|
|
353
|
+
* const arc56AppSpec = AppClient.normaliseAppSpec(appSpec)
|
|
354
|
+
* ```
|
|
355
|
+
*/
|
|
356
|
+
static normaliseAppSpec(spec: Arc56Contract | AppSpec | string): Arc56Contract;
|
|
357
|
+
/** The ID of the app instance this client is linked to. */
|
|
358
|
+
get appId(): bigint;
|
|
359
|
+
/** The app address of the app instance this client is linked to. */
|
|
360
|
+
get appAddress(): Address;
|
|
361
|
+
/** The name of the app (from the ARC-32 / ARC-56 app spec or override). */
|
|
362
|
+
get appName(): string;
|
|
363
|
+
/** The ARC-56 app spec being used */
|
|
364
|
+
get appSpec(): Arc56Contract;
|
|
365
|
+
/** A reference to the underlying `AlgorandClient` this app client is using. */
|
|
366
|
+
get algorand(): AlgorandClient;
|
|
367
|
+
/** Get parameters to create transactions for the current app.
|
|
368
|
+
*
|
|
369
|
+
* A good mental model for this is that these parameters represent a deferred transaction creation.
|
|
370
|
+
* @example Create a transaction in the future using Algorand Client
|
|
371
|
+
* ```typescript
|
|
372
|
+
* const myMethodCall = appClient.params.call({method: 'my_method', args: [123, 'hello']})
|
|
373
|
+
* // ...
|
|
374
|
+
* await algorand.send.AppMethodCall(myMethodCall)
|
|
375
|
+
* ```
|
|
376
|
+
* @example Define a nested transaction as an ABI argument
|
|
377
|
+
* ```typescript
|
|
378
|
+
* const myMethodCall = appClient.params.call({method: 'my_method', args: [123, 'hello']})
|
|
379
|
+
* await appClient.send.call({method: 'my_method2', args: [myMethodCall]})
|
|
380
|
+
* ```
|
|
381
|
+
*/
|
|
382
|
+
get params(): {
|
|
327
383
|
/**
|
|
328
|
-
*
|
|
329
|
-
*
|
|
330
|
-
*
|
|
331
|
-
* If no IDs are in the app spec or the network isn't recognised, an error is thrown.
|
|
332
|
-
* @param params The parameters to create the app client
|
|
333
|
-
* @returns The `AppClient` instance
|
|
334
|
-
* @example
|
|
335
|
-
* ```typescript
|
|
336
|
-
* const appClient = await AppClient.fromNetwork({
|
|
337
|
-
* appSpec: appSpec,
|
|
338
|
-
* algorand: AlgorandClient.mainNet(),
|
|
339
|
-
* })
|
|
384
|
+
* Return params for a payment transaction to fund the app account
|
|
385
|
+
* @param params The parameters for the fund app accont payment transaction
|
|
386
|
+
* @returns The parameters which can be used to create a fund app account payment transaction
|
|
340
387
|
*/
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
get params(): {
|
|
379
|
-
/**
|
|
380
|
-
* Return params for a payment transaction to fund the app account
|
|
381
|
-
* @param params The parameters for the fund app accont payment transaction
|
|
382
|
-
* @returns The parameters which can be used to create a fund app account payment transaction
|
|
383
|
-
*/
|
|
384
|
-
fundAppAccount: (params: {
|
|
385
|
-
maxFee?: AlgoAmount | undefined;
|
|
386
|
-
note?: string | Uint8Array | undefined;
|
|
387
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
388
|
-
lease?: string | Uint8Array | undefined;
|
|
389
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
390
|
-
staticFee?: AlgoAmount | undefined;
|
|
391
|
-
extraFee?: AlgoAmount | undefined;
|
|
392
|
-
validityWindow?: number | bigint | undefined;
|
|
393
|
-
firstValidRound?: bigint | undefined;
|
|
394
|
-
lastValidRound?: bigint | undefined;
|
|
395
|
-
amount: AlgoAmount;
|
|
396
|
-
closeRemainderTo?: string | algosdk.Address | undefined;
|
|
397
|
-
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
398
|
-
suppressLog?: boolean | undefined;
|
|
399
|
-
populateAppCallResources?: boolean | undefined;
|
|
400
|
-
coverAppCallInnerTransactionFees?: boolean | undefined;
|
|
401
|
-
sender?: string | algosdk.Address | undefined;
|
|
402
|
-
}) => {
|
|
403
|
-
sender: algosdk.Address;
|
|
404
|
-
signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
405
|
-
receiver: algosdk.Address;
|
|
406
|
-
maxFee?: AlgoAmount | undefined;
|
|
407
|
-
note?: string | Uint8Array | undefined;
|
|
408
|
-
lease?: string | Uint8Array | undefined;
|
|
409
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
410
|
-
staticFee?: AlgoAmount | undefined;
|
|
411
|
-
extraFee?: AlgoAmount | undefined;
|
|
412
|
-
validityWindow?: number | bigint | undefined;
|
|
413
|
-
firstValidRound?: bigint | undefined;
|
|
414
|
-
lastValidRound?: bigint | undefined;
|
|
415
|
-
amount: AlgoAmount;
|
|
416
|
-
closeRemainderTo?: string | algosdk.Address | undefined;
|
|
417
|
-
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
418
|
-
suppressLog?: boolean | undefined;
|
|
419
|
-
populateAppCallResources?: boolean | undefined;
|
|
420
|
-
coverAppCallInnerTransactionFees?: boolean | undefined;
|
|
421
|
-
};
|
|
422
|
-
/**
|
|
423
|
-
* Return params for an update ABI call, including deploy-time TEAL template replacements and compilation if provided
|
|
424
|
-
* @param params The parameters for the update ABI method call
|
|
425
|
-
* @returns The parameters which can be used to create an update ABI method call
|
|
426
|
-
*/
|
|
427
|
-
update: (params: {
|
|
428
|
-
maxFee?: AlgoAmount | undefined;
|
|
429
|
-
note?: string | Uint8Array | undefined;
|
|
430
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
431
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
432
|
-
lease?: string | Uint8Array | undefined;
|
|
433
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
434
|
-
staticFee?: AlgoAmount | undefined;
|
|
435
|
-
extraFee?: AlgoAmount | undefined;
|
|
436
|
-
validityWindow?: number | bigint | undefined;
|
|
437
|
-
firstValidRound?: bigint | undefined;
|
|
438
|
-
lastValidRound?: bigint | undefined;
|
|
439
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
440
|
-
appReferences?: bigint[] | undefined;
|
|
441
|
-
assetReferences?: bigint[] | undefined;
|
|
442
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
443
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
444
|
-
sender?: string | algosdk.Address | undefined;
|
|
445
|
-
method: string;
|
|
446
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
447
|
-
} & AppClientCompilationParams) => Promise<{
|
|
448
|
-
/** The compiled bytecode of the approval program, ready to deploy to algod */
|
|
449
|
-
approvalProgram: Uint8Array;
|
|
450
|
-
/** The compiled bytecode of the clear state program, ready to deploy to algod */
|
|
451
|
-
clearStateProgram: Uint8Array;
|
|
452
|
-
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
453
|
-
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
454
|
-
maxFee?: AlgoAmount | undefined;
|
|
455
|
-
note?: string | Uint8Array | undefined;
|
|
456
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
457
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
458
|
-
lease?: string | Uint8Array | undefined;
|
|
459
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
460
|
-
staticFee?: AlgoAmount | undefined;
|
|
461
|
-
extraFee?: AlgoAmount | undefined;
|
|
462
|
-
validityWindow?: number | bigint | undefined;
|
|
463
|
-
firstValidRound?: bigint | undefined;
|
|
464
|
-
lastValidRound?: bigint | undefined;
|
|
465
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
466
|
-
appReferences?: bigint[] | undefined;
|
|
467
|
-
assetReferences?: bigint[] | undefined;
|
|
468
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
469
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
470
|
-
sender?: string | algosdk.Address | undefined;
|
|
471
|
-
method: string;
|
|
472
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
473
|
-
/** Any deploy-time parameters to replace in the TEAL code */
|
|
474
|
-
deployTimeParams?: TealTemplateParams | undefined;
|
|
475
|
-
/** Whether or not the contract should have deploy-time immutability control set, undefined = ignore */
|
|
476
|
-
updatable?: boolean | undefined;
|
|
477
|
-
/** Whether or not the contract should have deploy-time permanence control set, undefined = ignore */
|
|
478
|
-
deletable?: boolean | undefined;
|
|
479
|
-
} & {
|
|
480
|
-
appId: bigint;
|
|
481
|
-
sender: algosdk.Address;
|
|
482
|
-
signer: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
483
|
-
method: Arc56Method;
|
|
484
|
-
onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC;
|
|
485
|
-
args: (algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | AppMethodCall<{
|
|
486
|
-
sender: string | algosdk.Address;
|
|
487
|
-
maxFee?: AlgoAmount | undefined;
|
|
488
|
-
note?: string | Uint8Array | undefined;
|
|
489
|
-
args?: Uint8Array[] | undefined;
|
|
490
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
491
|
-
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
492
|
-
lease?: string | Uint8Array | undefined;
|
|
493
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
494
|
-
staticFee?: AlgoAmount | undefined;
|
|
495
|
-
extraFee?: AlgoAmount | undefined;
|
|
496
|
-
validityWindow?: number | bigint | undefined;
|
|
497
|
-
firstValidRound?: bigint | undefined;
|
|
498
|
-
lastValidRound?: bigint | undefined;
|
|
499
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
500
|
-
appReferences?: bigint[] | undefined;
|
|
501
|
-
assetReferences?: bigint[] | undefined;
|
|
502
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
503
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
504
|
-
approvalProgram: string | Uint8Array;
|
|
505
|
-
clearStateProgram: string | Uint8Array;
|
|
506
|
-
schema?: {
|
|
507
|
-
globalInts: number;
|
|
508
|
-
globalByteSlices: number;
|
|
509
|
-
localInts: number;
|
|
510
|
-
localByteSlices: number;
|
|
511
|
-
} | undefined;
|
|
512
|
-
extraProgramPages?: number | undefined;
|
|
513
|
-
}> | AppMethodCall<{
|
|
514
|
-
sender: string | algosdk.Address;
|
|
515
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
516
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
517
|
-
note?: string | Uint8Array | undefined;
|
|
518
|
-
lease?: string | Uint8Array | undefined;
|
|
519
|
-
staticFee?: AlgoAmount | undefined;
|
|
520
|
-
extraFee?: AlgoAmount | undefined;
|
|
521
|
-
maxFee?: AlgoAmount | undefined;
|
|
522
|
-
validityWindow?: number | bigint | undefined;
|
|
523
|
-
firstValidRound?: bigint | undefined;
|
|
524
|
-
lastValidRound?: bigint | undefined;
|
|
525
|
-
appId: bigint;
|
|
526
|
-
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
527
|
-
args?: Uint8Array[] | undefined;
|
|
528
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
529
|
-
appReferences?: bigint[] | undefined;
|
|
530
|
-
assetReferences?: bigint[] | undefined;
|
|
531
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
532
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
533
|
-
approvalProgram: string | Uint8Array;
|
|
534
|
-
clearStateProgram: string | Uint8Array;
|
|
535
|
-
}> | AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
|
|
536
|
-
}>;
|
|
537
|
-
/**
|
|
538
|
-
* Return params for an opt-in ABI call
|
|
539
|
-
* @param params The parameters for the opt-in ABI method call
|
|
540
|
-
* @returns The parameters which can be used to create an opt-in ABI method call
|
|
541
|
-
*/
|
|
542
|
-
optIn: (params: {
|
|
543
|
-
maxFee?: AlgoAmount | undefined;
|
|
544
|
-
note?: string | Uint8Array | undefined;
|
|
545
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
546
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
547
|
-
lease?: string | Uint8Array | undefined;
|
|
548
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
549
|
-
staticFee?: AlgoAmount | undefined;
|
|
550
|
-
extraFee?: AlgoAmount | undefined;
|
|
551
|
-
validityWindow?: number | bigint | undefined;
|
|
552
|
-
firstValidRound?: bigint | undefined;
|
|
553
|
-
lastValidRound?: bigint | undefined;
|
|
554
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
555
|
-
appReferences?: bigint[] | undefined;
|
|
556
|
-
assetReferences?: bigint[] | undefined;
|
|
557
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
558
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
559
|
-
sender?: string | algosdk.Address | undefined;
|
|
560
|
-
method: string;
|
|
561
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
562
|
-
}) => Promise<AppCallMethodCall>;
|
|
563
|
-
/**
|
|
564
|
-
* Return params for an delete ABI call
|
|
565
|
-
* @param params The parameters for the delete ABI method call
|
|
566
|
-
* @returns The parameters which can be used to create a delete ABI method call
|
|
567
|
-
*/
|
|
568
|
-
delete: (params: {
|
|
569
|
-
maxFee?: AlgoAmount | undefined;
|
|
570
|
-
note?: string | Uint8Array | undefined;
|
|
571
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
572
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
573
|
-
lease?: string | Uint8Array | undefined;
|
|
574
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
575
|
-
staticFee?: AlgoAmount | undefined;
|
|
576
|
-
extraFee?: AlgoAmount | undefined;
|
|
577
|
-
validityWindow?: number | bigint | undefined;
|
|
578
|
-
firstValidRound?: bigint | undefined;
|
|
579
|
-
lastValidRound?: bigint | undefined;
|
|
580
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
581
|
-
appReferences?: bigint[] | undefined;
|
|
582
|
-
assetReferences?: bigint[] | undefined;
|
|
583
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
584
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
585
|
-
sender?: string | algosdk.Address | undefined;
|
|
586
|
-
method: string;
|
|
587
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
588
|
-
}) => Promise<AppDeleteMethodCall>;
|
|
589
|
-
/** Return params for an close out ABI call
|
|
590
|
-
* @param params The parameters for the close out ABI method call
|
|
591
|
-
* @returns The parameters which can be used to create a close out ABI method call
|
|
592
|
-
*/
|
|
593
|
-
closeOut: (params: {
|
|
594
|
-
maxFee?: AlgoAmount | undefined;
|
|
595
|
-
note?: string | Uint8Array | undefined;
|
|
596
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
597
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
598
|
-
lease?: string | Uint8Array | undefined;
|
|
599
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
600
|
-
staticFee?: AlgoAmount | undefined;
|
|
601
|
-
extraFee?: AlgoAmount | undefined;
|
|
602
|
-
validityWindow?: number | bigint | undefined;
|
|
603
|
-
firstValidRound?: bigint | undefined;
|
|
604
|
-
lastValidRound?: bigint | undefined;
|
|
605
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
606
|
-
appReferences?: bigint[] | undefined;
|
|
607
|
-
assetReferences?: bigint[] | undefined;
|
|
608
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
609
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
610
|
-
sender?: string | algosdk.Address | undefined;
|
|
611
|
-
method: string;
|
|
612
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
613
|
-
}) => Promise<AppCallMethodCall>;
|
|
614
|
-
/** Return params for an ABI call
|
|
615
|
-
* @param params The parameters for the ABI method call
|
|
616
|
-
* @returns The parameters which can be used to create an ABI method call
|
|
617
|
-
*/
|
|
618
|
-
call: (params: {
|
|
619
|
-
maxFee?: AlgoAmount | undefined;
|
|
620
|
-
note?: string | Uint8Array | undefined;
|
|
621
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
622
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
623
|
-
lease?: string | Uint8Array | undefined;
|
|
624
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
625
|
-
staticFee?: AlgoAmount | undefined;
|
|
626
|
-
extraFee?: AlgoAmount | undefined;
|
|
627
|
-
validityWindow?: number | bigint | undefined;
|
|
628
|
-
firstValidRound?: bigint | undefined;
|
|
629
|
-
lastValidRound?: bigint | undefined;
|
|
630
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
631
|
-
appReferences?: bigint[] | undefined;
|
|
632
|
-
assetReferences?: bigint[] | undefined;
|
|
633
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
634
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
635
|
-
sender?: string | algosdk.Address | undefined;
|
|
636
|
-
method: string;
|
|
637
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
638
|
-
} & CallOnComplete) => Promise<AppCallMethodCall>;
|
|
639
|
-
} & {
|
|
640
|
-
/** Interact with bare (raw) call parameters */ bare: {
|
|
641
|
-
/** Return params for an update call, including deploy-time TEAL template replacements and compilation if provided */
|
|
642
|
-
update: (params?: ({
|
|
643
|
-
maxFee?: AlgoAmount | undefined;
|
|
644
|
-
note?: string | Uint8Array | undefined;
|
|
645
|
-
args?: Uint8Array[] | undefined;
|
|
646
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
647
|
-
lease?: string | Uint8Array | undefined;
|
|
648
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
649
|
-
staticFee?: AlgoAmount | undefined;
|
|
650
|
-
extraFee?: AlgoAmount | undefined;
|
|
651
|
-
validityWindow?: number | bigint | undefined;
|
|
652
|
-
firstValidRound?: bigint | undefined;
|
|
653
|
-
lastValidRound?: bigint | undefined;
|
|
654
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
655
|
-
appReferences?: bigint[] | undefined;
|
|
656
|
-
assetReferences?: bigint[] | undefined;
|
|
657
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
658
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
659
|
-
sender?: string | algosdk.Address | undefined;
|
|
660
|
-
} & AppClientCompilationParams) | undefined) => Promise<{
|
|
661
|
-
sender: string | algosdk.Address;
|
|
662
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
663
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
664
|
-
note?: string | Uint8Array | undefined;
|
|
665
|
-
lease?: string | Uint8Array | undefined;
|
|
666
|
-
staticFee?: AlgoAmount | undefined;
|
|
667
|
-
extraFee?: AlgoAmount | undefined;
|
|
668
|
-
maxFee?: AlgoAmount | undefined;
|
|
669
|
-
validityWindow?: number | bigint | undefined;
|
|
670
|
-
firstValidRound?: bigint | undefined;
|
|
671
|
-
lastValidRound?: bigint | undefined;
|
|
672
|
-
appId: bigint;
|
|
673
|
-
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
674
|
-
args?: Uint8Array[] | undefined;
|
|
675
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
676
|
-
appReferences?: bigint[] | undefined;
|
|
677
|
-
assetReferences?: bigint[] | undefined;
|
|
678
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
679
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
680
|
-
approvalProgram: string | Uint8Array;
|
|
681
|
-
clearStateProgram: string | Uint8Array;
|
|
682
|
-
}>;
|
|
683
|
-
/** Return params for an opt-in call */
|
|
684
|
-
optIn: (params?: {
|
|
685
|
-
maxFee?: AlgoAmount | undefined;
|
|
686
|
-
note?: string | Uint8Array | undefined;
|
|
687
|
-
args?: Uint8Array[] | undefined;
|
|
688
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
689
|
-
lease?: string | Uint8Array | undefined;
|
|
690
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
691
|
-
staticFee?: AlgoAmount | undefined;
|
|
692
|
-
extraFee?: AlgoAmount | undefined;
|
|
693
|
-
validityWindow?: number | bigint | undefined;
|
|
694
|
-
firstValidRound?: bigint | undefined;
|
|
695
|
-
lastValidRound?: bigint | undefined;
|
|
696
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
697
|
-
appReferences?: bigint[] | undefined;
|
|
698
|
-
assetReferences?: bigint[] | undefined;
|
|
699
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
700
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
701
|
-
sender?: string | algosdk.Address | undefined;
|
|
702
|
-
} | undefined) => AppCallParams;
|
|
703
|
-
/** Return params for a delete call */
|
|
704
|
-
delete: (params?: {
|
|
705
|
-
maxFee?: AlgoAmount | undefined;
|
|
706
|
-
note?: string | Uint8Array | undefined;
|
|
707
|
-
args?: Uint8Array[] | undefined;
|
|
708
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
709
|
-
lease?: string | Uint8Array | undefined;
|
|
710
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
711
|
-
staticFee?: AlgoAmount | undefined;
|
|
712
|
-
extraFee?: AlgoAmount | undefined;
|
|
713
|
-
validityWindow?: number | bigint | undefined;
|
|
714
|
-
firstValidRound?: bigint | undefined;
|
|
715
|
-
lastValidRound?: bigint | undefined;
|
|
716
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
717
|
-
appReferences?: bigint[] | undefined;
|
|
718
|
-
assetReferences?: bigint[] | undefined;
|
|
719
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
720
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
721
|
-
sender?: string | algosdk.Address | undefined;
|
|
722
|
-
} | undefined) => AppDeleteParams;
|
|
723
|
-
/** Return params for a clear state call */
|
|
724
|
-
clearState: (params?: {
|
|
725
|
-
maxFee?: AlgoAmount | undefined;
|
|
726
|
-
note?: string | Uint8Array | undefined;
|
|
727
|
-
args?: Uint8Array[] | undefined;
|
|
728
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
729
|
-
lease?: string | Uint8Array | undefined;
|
|
730
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
731
|
-
staticFee?: AlgoAmount | undefined;
|
|
732
|
-
extraFee?: AlgoAmount | undefined;
|
|
733
|
-
validityWindow?: number | bigint | undefined;
|
|
734
|
-
firstValidRound?: bigint | undefined;
|
|
735
|
-
lastValidRound?: bigint | undefined;
|
|
736
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
737
|
-
appReferences?: bigint[] | undefined;
|
|
738
|
-
assetReferences?: bigint[] | undefined;
|
|
739
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
740
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
741
|
-
sender?: string | algosdk.Address | undefined;
|
|
742
|
-
} | undefined) => AppCallParams;
|
|
743
|
-
/** Return params for a close out call */
|
|
744
|
-
closeOut: (params?: {
|
|
745
|
-
maxFee?: AlgoAmount | undefined;
|
|
746
|
-
note?: string | Uint8Array | undefined;
|
|
747
|
-
args?: Uint8Array[] | undefined;
|
|
748
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
749
|
-
lease?: string | Uint8Array | undefined;
|
|
750
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
751
|
-
staticFee?: AlgoAmount | undefined;
|
|
752
|
-
extraFee?: AlgoAmount | undefined;
|
|
753
|
-
validityWindow?: number | bigint | undefined;
|
|
754
|
-
firstValidRound?: bigint | undefined;
|
|
755
|
-
lastValidRound?: bigint | undefined;
|
|
756
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
757
|
-
appReferences?: bigint[] | undefined;
|
|
758
|
-
assetReferences?: bigint[] | undefined;
|
|
759
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
760
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
761
|
-
sender?: string | algosdk.Address | undefined;
|
|
762
|
-
} | undefined) => AppCallParams;
|
|
763
|
-
/** Return params for a call (defaults to no-op) */
|
|
764
|
-
call: (params?: ({
|
|
765
|
-
maxFee?: AlgoAmount | undefined;
|
|
766
|
-
note?: string | Uint8Array | undefined;
|
|
767
|
-
args?: Uint8Array[] | undefined;
|
|
768
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
769
|
-
lease?: string | Uint8Array | undefined;
|
|
770
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
771
|
-
staticFee?: AlgoAmount | undefined;
|
|
772
|
-
extraFee?: AlgoAmount | undefined;
|
|
773
|
-
validityWindow?: number | bigint | undefined;
|
|
774
|
-
firstValidRound?: bigint | undefined;
|
|
775
|
-
lastValidRound?: bigint | undefined;
|
|
776
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
777
|
-
appReferences?: bigint[] | undefined;
|
|
778
|
-
assetReferences?: bigint[] | undefined;
|
|
779
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
780
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
781
|
-
sender?: string | algosdk.Address | undefined;
|
|
782
|
-
} & CallOnComplete) | undefined) => AppCallParams;
|
|
783
|
-
};
|
|
784
|
-
};
|
|
785
|
-
/** Create transactions for the current app */
|
|
786
|
-
get createTransaction(): {
|
|
787
|
-
/** Return transaction for a payment transaction to fund the app account
|
|
788
|
-
* @param params The parameters for the fund app account payment transaction
|
|
789
|
-
* @returns A transaction which can be used to fund the app account
|
|
790
|
-
*/
|
|
791
|
-
fundAppAccount: (params: {
|
|
792
|
-
maxFee?: AlgoAmount | undefined;
|
|
793
|
-
note?: string | Uint8Array | undefined;
|
|
794
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
795
|
-
lease?: string | Uint8Array | undefined;
|
|
796
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
797
|
-
staticFee?: AlgoAmount | undefined;
|
|
798
|
-
extraFee?: AlgoAmount | undefined;
|
|
799
|
-
validityWindow?: number | bigint | undefined;
|
|
800
|
-
firstValidRound?: bigint | undefined;
|
|
801
|
-
lastValidRound?: bigint | undefined;
|
|
802
|
-
amount: AlgoAmount;
|
|
803
|
-
closeRemainderTo?: string | algosdk.Address | undefined;
|
|
804
|
-
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
805
|
-
suppressLog?: boolean | undefined;
|
|
806
|
-
populateAppCallResources?: boolean | undefined;
|
|
807
|
-
coverAppCallInnerTransactionFees?: boolean | undefined;
|
|
808
|
-
sender?: string | algosdk.Address | undefined;
|
|
809
|
-
}) => Promise<algosdk.Transaction>;
|
|
810
|
-
/**
|
|
811
|
-
* Return transactions for an update ABI call, including deploy-time TEAL template replacements and compilation if provided
|
|
812
|
-
* @param params The parameters for the update ABI method call
|
|
813
|
-
* @returns The transactions which can be used to create an update ABI method call
|
|
814
|
-
*/
|
|
815
|
-
update: (params: {
|
|
816
|
-
maxFee?: AlgoAmount | undefined;
|
|
817
|
-
note?: string | Uint8Array | undefined;
|
|
818
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
819
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
820
|
-
lease?: string | Uint8Array | undefined;
|
|
821
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
822
|
-
staticFee?: AlgoAmount | undefined;
|
|
823
|
-
extraFee?: AlgoAmount | undefined;
|
|
824
|
-
validityWindow?: number | bigint | undefined;
|
|
825
|
-
firstValidRound?: bigint | undefined;
|
|
826
|
-
lastValidRound?: bigint | undefined;
|
|
827
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
828
|
-
appReferences?: bigint[] | undefined;
|
|
829
|
-
assetReferences?: bigint[] | undefined;
|
|
830
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
831
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
832
|
-
sender?: string | algosdk.Address | undefined;
|
|
833
|
-
method: string;
|
|
834
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
835
|
-
} & AppClientCompilationParams) => Promise<{
|
|
836
|
-
transactions: algosdk.Transaction[];
|
|
837
|
-
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
838
|
-
signers: Map<number, algosdk.TransactionSigner>;
|
|
839
|
-
}>;
|
|
840
|
-
/**
|
|
841
|
-
* Return transactions for an opt-in ABI call
|
|
842
|
-
* @param params The parameters for the opt-in ABI method call
|
|
843
|
-
* @returns The transactions which can be used to create an opt-in ABI method call
|
|
844
|
-
*/
|
|
845
|
-
optIn: (params: {
|
|
846
|
-
maxFee?: AlgoAmount | undefined;
|
|
847
|
-
note?: string | Uint8Array | undefined;
|
|
848
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
849
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
850
|
-
lease?: string | Uint8Array | undefined;
|
|
851
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
852
|
-
staticFee?: AlgoAmount | undefined;
|
|
853
|
-
extraFee?: AlgoAmount | undefined;
|
|
854
|
-
validityWindow?: number | bigint | undefined;
|
|
855
|
-
firstValidRound?: bigint | undefined;
|
|
856
|
-
lastValidRound?: bigint | undefined;
|
|
857
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
858
|
-
appReferences?: bigint[] | undefined;
|
|
859
|
-
assetReferences?: bigint[] | undefined;
|
|
860
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
861
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
862
|
-
sender?: string | algosdk.Address | undefined;
|
|
863
|
-
method: string;
|
|
864
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
865
|
-
}) => Promise<{
|
|
866
|
-
transactions: algosdk.Transaction[];
|
|
867
|
-
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
868
|
-
signers: Map<number, algosdk.TransactionSigner>;
|
|
869
|
-
}>;
|
|
870
|
-
/**
|
|
871
|
-
* Return transactions for a delete ABI call
|
|
872
|
-
* @param params The parameters for the delete ABI method call
|
|
873
|
-
* @returns The transactions which can be used to create a delete ABI method call
|
|
874
|
-
*/
|
|
875
|
-
delete: (params: {
|
|
876
|
-
maxFee?: AlgoAmount | undefined;
|
|
877
|
-
note?: string | Uint8Array | undefined;
|
|
878
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
879
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
880
|
-
lease?: string | Uint8Array | undefined;
|
|
881
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
882
|
-
staticFee?: AlgoAmount | undefined;
|
|
883
|
-
extraFee?: AlgoAmount | undefined;
|
|
884
|
-
validityWindow?: number | bigint | undefined;
|
|
885
|
-
firstValidRound?: bigint | undefined;
|
|
886
|
-
lastValidRound?: bigint | undefined;
|
|
887
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
888
|
-
appReferences?: bigint[] | undefined;
|
|
889
|
-
assetReferences?: bigint[] | undefined;
|
|
890
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
891
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
892
|
-
sender?: string | algosdk.Address | undefined;
|
|
893
|
-
method: string;
|
|
894
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
895
|
-
}) => Promise<{
|
|
896
|
-
transactions: algosdk.Transaction[];
|
|
897
|
-
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
898
|
-
signers: Map<number, algosdk.TransactionSigner>;
|
|
899
|
-
}>;
|
|
900
|
-
/**
|
|
901
|
-
* Return transactions for a close out ABI call
|
|
902
|
-
* @param params The parameters for the close out ABI method call
|
|
903
|
-
* @returns The transactions which can be used to create a close out ABI method call
|
|
904
|
-
*/
|
|
905
|
-
closeOut: (params: {
|
|
906
|
-
maxFee?: AlgoAmount | undefined;
|
|
907
|
-
note?: string | Uint8Array | undefined;
|
|
908
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
909
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
910
|
-
lease?: string | Uint8Array | undefined;
|
|
911
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
912
|
-
staticFee?: AlgoAmount | undefined;
|
|
913
|
-
extraFee?: AlgoAmount | undefined;
|
|
914
|
-
validityWindow?: number | bigint | undefined;
|
|
915
|
-
firstValidRound?: bigint | undefined;
|
|
916
|
-
lastValidRound?: bigint | undefined;
|
|
917
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
918
|
-
appReferences?: bigint[] | undefined;
|
|
919
|
-
assetReferences?: bigint[] | undefined;
|
|
920
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
921
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
922
|
-
sender?: string | algosdk.Address | undefined;
|
|
923
|
-
method: string;
|
|
924
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
925
|
-
}) => Promise<{
|
|
926
|
-
transactions: algosdk.Transaction[];
|
|
927
|
-
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
928
|
-
signers: Map<number, algosdk.TransactionSigner>;
|
|
929
|
-
}>;
|
|
930
|
-
/**
|
|
931
|
-
* Return transactions for an ABI call (defaults to no-op)
|
|
932
|
-
* @param params The parameters for the ABI method call
|
|
933
|
-
* @returns The transactions which can be used to create an ABI method call
|
|
934
|
-
*/
|
|
935
|
-
call: (params: {
|
|
936
|
-
maxFee?: AlgoAmount | undefined;
|
|
937
|
-
note?: string | Uint8Array | undefined;
|
|
938
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
939
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
940
|
-
lease?: string | Uint8Array | undefined;
|
|
941
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
942
|
-
staticFee?: AlgoAmount | undefined;
|
|
943
|
-
extraFee?: AlgoAmount | undefined;
|
|
944
|
-
validityWindow?: number | bigint | undefined;
|
|
945
|
-
firstValidRound?: bigint | undefined;
|
|
946
|
-
lastValidRound?: bigint | undefined;
|
|
947
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
948
|
-
appReferences?: bigint[] | undefined;
|
|
949
|
-
assetReferences?: bigint[] | undefined;
|
|
950
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
951
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
952
|
-
sender?: string | algosdk.Address | undefined;
|
|
953
|
-
method: string;
|
|
954
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
955
|
-
} & CallOnComplete) => Promise<{
|
|
956
|
-
transactions: algosdk.Transaction[];
|
|
957
|
-
methodCalls: Map<number, algosdk.ABIMethod>;
|
|
958
|
-
signers: Map<number, algosdk.TransactionSigner>;
|
|
959
|
-
}>;
|
|
960
|
-
} & {
|
|
961
|
-
/** Interact with bare (raw) call transactions */ bare: {
|
|
962
|
-
/** Returns a transaction for an update call, including deploy-time TEAL template replacements and compilation if provided */
|
|
963
|
-
update: (params?: ({
|
|
964
|
-
maxFee?: AlgoAmount | undefined;
|
|
965
|
-
note?: string | Uint8Array | undefined;
|
|
966
|
-
args?: Uint8Array[] | undefined;
|
|
967
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
968
|
-
lease?: string | Uint8Array | undefined;
|
|
969
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
970
|
-
staticFee?: AlgoAmount | undefined;
|
|
971
|
-
extraFee?: AlgoAmount | undefined;
|
|
972
|
-
validityWindow?: number | bigint | undefined;
|
|
973
|
-
firstValidRound?: bigint | undefined;
|
|
974
|
-
lastValidRound?: bigint | undefined;
|
|
975
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
976
|
-
appReferences?: bigint[] | undefined;
|
|
977
|
-
assetReferences?: bigint[] | undefined;
|
|
978
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
979
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
980
|
-
sender?: string | algosdk.Address | undefined;
|
|
981
|
-
} & AppClientCompilationParams) | undefined) => Promise<algosdk.Transaction>;
|
|
982
|
-
/** Returns a transaction for an opt-in call */
|
|
983
|
-
optIn: (params?: {
|
|
984
|
-
maxFee?: AlgoAmount | undefined;
|
|
985
|
-
note?: string | Uint8Array | undefined;
|
|
986
|
-
args?: Uint8Array[] | undefined;
|
|
987
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
988
|
-
lease?: string | Uint8Array | undefined;
|
|
989
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
990
|
-
staticFee?: AlgoAmount | undefined;
|
|
991
|
-
extraFee?: AlgoAmount | undefined;
|
|
992
|
-
validityWindow?: number | bigint | undefined;
|
|
993
|
-
firstValidRound?: bigint | undefined;
|
|
994
|
-
lastValidRound?: bigint | undefined;
|
|
995
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
996
|
-
appReferences?: bigint[] | undefined;
|
|
997
|
-
assetReferences?: bigint[] | undefined;
|
|
998
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
999
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1000
|
-
sender?: string | algosdk.Address | undefined;
|
|
1001
|
-
} | undefined) => Promise<algosdk.Transaction>;
|
|
1002
|
-
/** Returns a transaction for a delete call */
|
|
1003
|
-
delete: (params?: {
|
|
1004
|
-
maxFee?: AlgoAmount | undefined;
|
|
1005
|
-
note?: string | Uint8Array | undefined;
|
|
1006
|
-
args?: Uint8Array[] | undefined;
|
|
1007
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1008
|
-
lease?: string | Uint8Array | undefined;
|
|
1009
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1010
|
-
staticFee?: AlgoAmount | undefined;
|
|
1011
|
-
extraFee?: AlgoAmount | undefined;
|
|
1012
|
-
validityWindow?: number | bigint | undefined;
|
|
1013
|
-
firstValidRound?: bigint | undefined;
|
|
1014
|
-
lastValidRound?: bigint | undefined;
|
|
1015
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1016
|
-
appReferences?: bigint[] | undefined;
|
|
1017
|
-
assetReferences?: bigint[] | undefined;
|
|
1018
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1019
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1020
|
-
sender?: string | algosdk.Address | undefined;
|
|
1021
|
-
} | undefined) => Promise<algosdk.Transaction>;
|
|
1022
|
-
/** Returns a transaction for a clear state call */
|
|
1023
|
-
clearState: (params?: {
|
|
1024
|
-
maxFee?: AlgoAmount | undefined;
|
|
1025
|
-
note?: string | Uint8Array | undefined;
|
|
1026
|
-
args?: Uint8Array[] | undefined;
|
|
1027
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1028
|
-
lease?: string | Uint8Array | undefined;
|
|
1029
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1030
|
-
staticFee?: AlgoAmount | undefined;
|
|
1031
|
-
extraFee?: AlgoAmount | undefined;
|
|
1032
|
-
validityWindow?: number | bigint | undefined;
|
|
1033
|
-
firstValidRound?: bigint | undefined;
|
|
1034
|
-
lastValidRound?: bigint | undefined;
|
|
1035
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1036
|
-
appReferences?: bigint[] | undefined;
|
|
1037
|
-
assetReferences?: bigint[] | undefined;
|
|
1038
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1039
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1040
|
-
sender?: string | algosdk.Address | undefined;
|
|
1041
|
-
} | undefined) => Promise<algosdk.Transaction>;
|
|
1042
|
-
/** Returns a transaction for a close out call */
|
|
1043
|
-
closeOut: (params?: {
|
|
1044
|
-
maxFee?: AlgoAmount | undefined;
|
|
1045
|
-
note?: string | Uint8Array | undefined;
|
|
1046
|
-
args?: Uint8Array[] | undefined;
|
|
1047
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1048
|
-
lease?: string | Uint8Array | undefined;
|
|
1049
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1050
|
-
staticFee?: AlgoAmount | undefined;
|
|
1051
|
-
extraFee?: AlgoAmount | undefined;
|
|
1052
|
-
validityWindow?: number | bigint | undefined;
|
|
1053
|
-
firstValidRound?: bigint | undefined;
|
|
1054
|
-
lastValidRound?: bigint | undefined;
|
|
1055
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1056
|
-
appReferences?: bigint[] | undefined;
|
|
1057
|
-
assetReferences?: bigint[] | undefined;
|
|
1058
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1059
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1060
|
-
sender?: string | algosdk.Address | undefined;
|
|
1061
|
-
} | undefined) => Promise<algosdk.Transaction>;
|
|
1062
|
-
/** Returns a transaction for a call (defaults to no-op) */
|
|
1063
|
-
call: (params?: ({
|
|
1064
|
-
maxFee?: AlgoAmount | undefined;
|
|
1065
|
-
note?: string | Uint8Array | undefined;
|
|
1066
|
-
args?: Uint8Array[] | undefined;
|
|
1067
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1068
|
-
lease?: string | Uint8Array | undefined;
|
|
1069
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1070
|
-
staticFee?: AlgoAmount | undefined;
|
|
1071
|
-
extraFee?: AlgoAmount | undefined;
|
|
1072
|
-
validityWindow?: number | bigint | undefined;
|
|
1073
|
-
firstValidRound?: bigint | undefined;
|
|
1074
|
-
lastValidRound?: bigint | undefined;
|
|
1075
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1076
|
-
appReferences?: bigint[] | undefined;
|
|
1077
|
-
assetReferences?: bigint[] | undefined;
|
|
1078
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1079
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1080
|
-
sender?: string | algosdk.Address | undefined;
|
|
1081
|
-
} & CallOnComplete) | undefined) => Promise<algosdk.Transaction>;
|
|
1082
|
-
};
|
|
1083
|
-
};
|
|
1084
|
-
/** Send transactions to the current app */
|
|
1085
|
-
get send(): {
|
|
1086
|
-
/** Sign and send transactions for a payment transaction to fund the app account
|
|
1087
|
-
* @param params The parameters for the fund app account payment transaction
|
|
1088
|
-
* @returns The result of send the fund app account payment transaction
|
|
1089
|
-
*/
|
|
1090
|
-
fundAppAccount: (params: {
|
|
1091
|
-
maxFee?: AlgoAmount | undefined;
|
|
1092
|
-
note?: string | Uint8Array | undefined;
|
|
1093
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1094
|
-
lease?: string | Uint8Array | undefined;
|
|
1095
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1096
|
-
staticFee?: AlgoAmount | undefined;
|
|
1097
|
-
extraFee?: AlgoAmount | undefined;
|
|
1098
|
-
validityWindow?: number | bigint | undefined;
|
|
1099
|
-
firstValidRound?: bigint | undefined;
|
|
1100
|
-
lastValidRound?: bigint | undefined;
|
|
1101
|
-
amount: AlgoAmount;
|
|
1102
|
-
closeRemainderTo?: string | algosdk.Address | undefined;
|
|
1103
|
-
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
1104
|
-
suppressLog?: boolean | undefined;
|
|
1105
|
-
populateAppCallResources?: boolean | undefined;
|
|
1106
|
-
coverAppCallInnerTransactionFees?: boolean | undefined;
|
|
1107
|
-
sender?: string | algosdk.Address | undefined;
|
|
1108
|
-
} & SendParams) => Promise<{
|
|
1109
|
-
groupId: string;
|
|
1110
|
-
txIds: string[];
|
|
1111
|
-
returns?: ABIReturn[] | undefined;
|
|
1112
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1113
|
-
transactions: algosdk.Transaction[];
|
|
1114
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1115
|
-
transaction: algosdk.Transaction;
|
|
1116
|
-
}>;
|
|
1117
|
-
/**
|
|
1118
|
-
* Sign and send transactions for an update ABI call, including deploy-time TEAL template replacements and compilation if provided
|
|
1119
|
-
* @param params The parameters for the update ABI method call
|
|
1120
|
-
* @returns The result of sending the update ABI method call
|
|
1121
|
-
*/
|
|
1122
|
-
update: (params: {
|
|
1123
|
-
maxFee?: AlgoAmount | undefined;
|
|
1124
|
-
note?: string | Uint8Array | undefined;
|
|
1125
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1126
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
1127
|
-
lease?: string | Uint8Array | undefined;
|
|
1128
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1129
|
-
staticFee?: AlgoAmount | undefined;
|
|
1130
|
-
extraFee?: AlgoAmount | undefined;
|
|
1131
|
-
validityWindow?: number | bigint | undefined;
|
|
1132
|
-
firstValidRound?: bigint | undefined;
|
|
1133
|
-
lastValidRound?: bigint | undefined;
|
|
1134
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1135
|
-
appReferences?: bigint[] | undefined;
|
|
1136
|
-
assetReferences?: bigint[] | undefined;
|
|
1137
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1138
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1139
|
-
sender?: string | algosdk.Address | undefined;
|
|
1140
|
-
method: string;
|
|
1141
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
1142
|
-
} & AppClientCompilationParams & SendParams) => Promise<{
|
|
1143
|
-
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
1144
|
-
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
1145
|
-
groupId: string;
|
|
1146
|
-
txIds: string[];
|
|
1147
|
-
returns?: ABIReturn[] | undefined;
|
|
1148
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1149
|
-
transactions: algosdk.Transaction[];
|
|
1150
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1151
|
-
transaction: algosdk.Transaction;
|
|
1152
|
-
return?: algosdk.ABIValue | ABIStruct | undefined;
|
|
1153
|
-
}>;
|
|
1154
|
-
/**
|
|
1155
|
-
* Sign and send transactions for an opt-in ABI call
|
|
1156
|
-
* @param params The parameters for the opt-in ABI method call
|
|
1157
|
-
* @returns The result of sending the opt-in ABI method call
|
|
1158
|
-
*/
|
|
1159
|
-
optIn: (params: {
|
|
1160
|
-
maxFee?: AlgoAmount | undefined;
|
|
1161
|
-
note?: string | Uint8Array | undefined;
|
|
1162
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1163
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
1164
|
-
lease?: string | Uint8Array | undefined;
|
|
1165
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1166
|
-
staticFee?: AlgoAmount | undefined;
|
|
1167
|
-
extraFee?: AlgoAmount | undefined;
|
|
1168
|
-
validityWindow?: number | bigint | undefined;
|
|
1169
|
-
firstValidRound?: bigint | undefined;
|
|
1170
|
-
lastValidRound?: bigint | undefined;
|
|
1171
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1172
|
-
appReferences?: bigint[] | undefined;
|
|
1173
|
-
assetReferences?: bigint[] | undefined;
|
|
1174
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1175
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1176
|
-
sender?: string | algosdk.Address | undefined;
|
|
1177
|
-
method: string;
|
|
1178
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
1179
|
-
} & SendParams) => Promise<Omit<{
|
|
1180
|
-
groupId: string;
|
|
1181
|
-
txIds: string[];
|
|
1182
|
-
returns?: ABIReturn[] | undefined;
|
|
1183
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1184
|
-
transactions: algosdk.Transaction[];
|
|
1185
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1186
|
-
transaction: algosdk.Transaction;
|
|
1187
|
-
return?: ABIReturn | undefined;
|
|
1188
|
-
}, "return"> & AppReturn<algosdk.ABIValue | ABIStruct | undefined>>;
|
|
1189
|
-
/**
|
|
1190
|
-
* Sign and send transactions for a delete ABI call
|
|
1191
|
-
* @param params The parameters for the delete ABI method call
|
|
1192
|
-
* @returns The result of sending the delete ABI method call
|
|
1193
|
-
*/
|
|
1194
|
-
delete: (params: {
|
|
1195
|
-
maxFee?: AlgoAmount | undefined;
|
|
1196
|
-
note?: string | Uint8Array | undefined;
|
|
1197
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1198
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
1199
|
-
lease?: string | Uint8Array | undefined;
|
|
1200
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1201
|
-
staticFee?: AlgoAmount | undefined;
|
|
1202
|
-
extraFee?: AlgoAmount | undefined;
|
|
1203
|
-
validityWindow?: number | bigint | undefined;
|
|
1204
|
-
firstValidRound?: bigint | undefined;
|
|
1205
|
-
lastValidRound?: bigint | undefined;
|
|
1206
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1207
|
-
appReferences?: bigint[] | undefined;
|
|
1208
|
-
assetReferences?: bigint[] | undefined;
|
|
1209
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1210
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1211
|
-
sender?: string | algosdk.Address | undefined;
|
|
1212
|
-
method: string;
|
|
1213
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
1214
|
-
} & SendParams) => Promise<Omit<{
|
|
1215
|
-
groupId: string;
|
|
1216
|
-
txIds: string[];
|
|
1217
|
-
returns?: ABIReturn[] | undefined;
|
|
1218
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1219
|
-
transactions: algosdk.Transaction[];
|
|
1220
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1221
|
-
transaction: algosdk.Transaction;
|
|
1222
|
-
return?: ABIReturn | undefined;
|
|
1223
|
-
}, "return"> & AppReturn<algosdk.ABIValue | ABIStruct | undefined>>;
|
|
1224
|
-
/**
|
|
1225
|
-
* Sign and send transactions for a close out ABI call
|
|
1226
|
-
* @param params The parameters for the close out ABI method call
|
|
1227
|
-
* @returns The result of sending the close out ABI method call
|
|
1228
|
-
*/
|
|
1229
|
-
closeOut: (params: {
|
|
1230
|
-
maxFee?: AlgoAmount | undefined;
|
|
1231
|
-
note?: string | Uint8Array | undefined;
|
|
1232
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1233
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
1234
|
-
lease?: string | Uint8Array | undefined;
|
|
1235
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1236
|
-
staticFee?: AlgoAmount | undefined;
|
|
1237
|
-
extraFee?: AlgoAmount | undefined;
|
|
1238
|
-
validityWindow?: number | bigint | undefined;
|
|
1239
|
-
firstValidRound?: bigint | undefined;
|
|
1240
|
-
lastValidRound?: bigint | undefined;
|
|
1241
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1242
|
-
appReferences?: bigint[] | undefined;
|
|
1243
|
-
assetReferences?: bigint[] | undefined;
|
|
1244
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1245
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1246
|
-
sender?: string | algosdk.Address | undefined;
|
|
1247
|
-
method: string;
|
|
1248
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
1249
|
-
} & SendParams) => Promise<Omit<{
|
|
1250
|
-
groupId: string;
|
|
1251
|
-
txIds: string[];
|
|
1252
|
-
returns?: ABIReturn[] | undefined;
|
|
1253
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1254
|
-
transactions: algosdk.Transaction[];
|
|
1255
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1256
|
-
transaction: algosdk.Transaction;
|
|
1257
|
-
return?: ABIReturn | undefined;
|
|
1258
|
-
}, "return"> & AppReturn<algosdk.ABIValue | ABIStruct | undefined>>;
|
|
1259
|
-
/**
|
|
1260
|
-
* Sign and send transactions for a call (defaults to no-op)
|
|
1261
|
-
* @param params The parameters for the ABI method call
|
|
1262
|
-
* @returns The result of sending the ABI method call
|
|
1263
|
-
*/
|
|
1264
|
-
call: (params: {
|
|
1265
|
-
maxFee?: AlgoAmount | undefined;
|
|
1266
|
-
note?: string | Uint8Array | undefined;
|
|
1267
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1268
|
-
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
1269
|
-
lease?: string | Uint8Array | undefined;
|
|
1270
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1271
|
-
staticFee?: AlgoAmount | undefined;
|
|
1272
|
-
extraFee?: AlgoAmount | undefined;
|
|
1273
|
-
validityWindow?: number | bigint | undefined;
|
|
1274
|
-
firstValidRound?: bigint | undefined;
|
|
1275
|
-
lastValidRound?: bigint | undefined;
|
|
1276
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1277
|
-
appReferences?: bigint[] | undefined;
|
|
1278
|
-
assetReferences?: bigint[] | undefined;
|
|
1279
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1280
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1281
|
-
sender?: string | algosdk.Address | undefined;
|
|
1282
|
-
method: string;
|
|
1283
|
-
args?: (algosdk.ABIValue | AppMethodCallTransactionArgument | ABIStruct | undefined)[] | undefined;
|
|
1284
|
-
} & CallOnComplete & SendParams) => Promise<Omit<{
|
|
1285
|
-
groupId: string;
|
|
1286
|
-
txIds: string[];
|
|
1287
|
-
returns?: ABIReturn[] | undefined;
|
|
1288
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1289
|
-
transactions: algosdk.Transaction[];
|
|
1290
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1291
|
-
transaction: algosdk.Transaction;
|
|
1292
|
-
return?: ABIReturn | undefined;
|
|
1293
|
-
}, "return"> & AppReturn<algosdk.ABIValue | ABIStruct | undefined>>;
|
|
1294
|
-
} & {
|
|
1295
|
-
/** Interact with bare (raw) calls */ bare: {
|
|
1296
|
-
/** Signs and sends an update call, including deploy-time TEAL template replacements and compilation if provided */
|
|
1297
|
-
update: (params?: ({
|
|
1298
|
-
maxFee?: AlgoAmount | undefined;
|
|
1299
|
-
note?: string | Uint8Array | undefined;
|
|
1300
|
-
args?: Uint8Array[] | undefined;
|
|
1301
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1302
|
-
lease?: string | Uint8Array | undefined;
|
|
1303
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1304
|
-
staticFee?: AlgoAmount | undefined;
|
|
1305
|
-
extraFee?: AlgoAmount | undefined;
|
|
1306
|
-
validityWindow?: number | bigint | undefined;
|
|
1307
|
-
firstValidRound?: bigint | undefined;
|
|
1308
|
-
lastValidRound?: bigint | undefined;
|
|
1309
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1310
|
-
appReferences?: bigint[] | undefined;
|
|
1311
|
-
assetReferences?: bigint[] | undefined;
|
|
1312
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1313
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1314
|
-
sender?: string | algosdk.Address | undefined;
|
|
1315
|
-
} & AppClientCompilationParams & SendParams) | undefined) => Promise<{
|
|
1316
|
-
compiledApproval?: import("./app").CompiledTeal | undefined;
|
|
1317
|
-
compiledClear?: import("./app").CompiledTeal | undefined;
|
|
1318
|
-
groupId: string;
|
|
1319
|
-
txIds: string[];
|
|
1320
|
-
returns?: ABIReturn[] | undefined;
|
|
1321
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1322
|
-
transactions: algosdk.Transaction[];
|
|
1323
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1324
|
-
transaction: algosdk.Transaction;
|
|
1325
|
-
return?: ABIReturn | undefined;
|
|
1326
|
-
}>;
|
|
1327
|
-
/** Signs and sends an opt-in call */
|
|
1328
|
-
optIn: (params?: ({
|
|
1329
|
-
maxFee?: AlgoAmount | undefined;
|
|
1330
|
-
note?: string | Uint8Array | undefined;
|
|
1331
|
-
args?: Uint8Array[] | undefined;
|
|
1332
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1333
|
-
lease?: string | Uint8Array | undefined;
|
|
1334
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1335
|
-
staticFee?: AlgoAmount | undefined;
|
|
1336
|
-
extraFee?: AlgoAmount | undefined;
|
|
1337
|
-
validityWindow?: number | bigint | undefined;
|
|
1338
|
-
firstValidRound?: bigint | undefined;
|
|
1339
|
-
lastValidRound?: bigint | undefined;
|
|
1340
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1341
|
-
appReferences?: bigint[] | undefined;
|
|
1342
|
-
assetReferences?: bigint[] | undefined;
|
|
1343
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1344
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1345
|
-
sender?: string | algosdk.Address | undefined;
|
|
1346
|
-
} & SendParams) | undefined) => Promise<{
|
|
1347
|
-
groupId: string;
|
|
1348
|
-
txIds: string[];
|
|
1349
|
-
returns?: ABIReturn[] | undefined;
|
|
1350
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1351
|
-
transactions: algosdk.Transaction[];
|
|
1352
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1353
|
-
transaction: algosdk.Transaction;
|
|
1354
|
-
return?: ABIReturn | undefined;
|
|
1355
|
-
}>;
|
|
1356
|
-
/** Signs and sends a delete call */
|
|
1357
|
-
delete: (params?: ({
|
|
1358
|
-
maxFee?: AlgoAmount | undefined;
|
|
1359
|
-
note?: string | Uint8Array | undefined;
|
|
1360
|
-
args?: Uint8Array[] | undefined;
|
|
1361
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1362
|
-
lease?: string | Uint8Array | undefined;
|
|
1363
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1364
|
-
staticFee?: AlgoAmount | undefined;
|
|
1365
|
-
extraFee?: AlgoAmount | undefined;
|
|
1366
|
-
validityWindow?: number | bigint | undefined;
|
|
1367
|
-
firstValidRound?: bigint | undefined;
|
|
1368
|
-
lastValidRound?: bigint | undefined;
|
|
1369
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1370
|
-
appReferences?: bigint[] | undefined;
|
|
1371
|
-
assetReferences?: bigint[] | undefined;
|
|
1372
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1373
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1374
|
-
sender?: string | algosdk.Address | undefined;
|
|
1375
|
-
} & SendParams) | undefined) => Promise<{
|
|
1376
|
-
groupId: string;
|
|
1377
|
-
txIds: string[];
|
|
1378
|
-
returns?: ABIReturn[] | undefined;
|
|
1379
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1380
|
-
transactions: algosdk.Transaction[];
|
|
1381
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1382
|
-
transaction: algosdk.Transaction;
|
|
1383
|
-
return?: ABIReturn | undefined;
|
|
1384
|
-
}>;
|
|
1385
|
-
/** Signs and sends a clear state call */
|
|
1386
|
-
clearState: (params?: ({
|
|
1387
|
-
maxFee?: AlgoAmount | undefined;
|
|
1388
|
-
note?: string | Uint8Array | undefined;
|
|
1389
|
-
args?: Uint8Array[] | undefined;
|
|
1390
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1391
|
-
lease?: string | Uint8Array | undefined;
|
|
1392
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1393
|
-
staticFee?: AlgoAmount | undefined;
|
|
1394
|
-
extraFee?: AlgoAmount | undefined;
|
|
1395
|
-
validityWindow?: number | bigint | undefined;
|
|
1396
|
-
firstValidRound?: bigint | undefined;
|
|
1397
|
-
lastValidRound?: bigint | undefined;
|
|
1398
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1399
|
-
appReferences?: bigint[] | undefined;
|
|
1400
|
-
assetReferences?: bigint[] | undefined;
|
|
1401
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1402
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1403
|
-
sender?: string | algosdk.Address | undefined;
|
|
1404
|
-
} & SendParams) | undefined) => Promise<{
|
|
1405
|
-
groupId: string;
|
|
1406
|
-
txIds: string[];
|
|
1407
|
-
returns?: ABIReturn[] | undefined;
|
|
1408
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1409
|
-
transactions: algosdk.Transaction[];
|
|
1410
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1411
|
-
transaction: algosdk.Transaction;
|
|
1412
|
-
return?: ABIReturn | undefined;
|
|
1413
|
-
}>;
|
|
1414
|
-
/** Signs and sends a close out call */
|
|
1415
|
-
closeOut: (params?: ({
|
|
1416
|
-
maxFee?: AlgoAmount | undefined;
|
|
1417
|
-
note?: string | Uint8Array | undefined;
|
|
1418
|
-
args?: Uint8Array[] | undefined;
|
|
1419
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1420
|
-
lease?: string | Uint8Array | undefined;
|
|
1421
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1422
|
-
staticFee?: AlgoAmount | undefined;
|
|
1423
|
-
extraFee?: AlgoAmount | undefined;
|
|
1424
|
-
validityWindow?: number | bigint | undefined;
|
|
1425
|
-
firstValidRound?: bigint | undefined;
|
|
1426
|
-
lastValidRound?: bigint | undefined;
|
|
1427
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1428
|
-
appReferences?: bigint[] | undefined;
|
|
1429
|
-
assetReferences?: bigint[] | undefined;
|
|
1430
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1431
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1432
|
-
sender?: string | algosdk.Address | undefined;
|
|
1433
|
-
} & SendParams) | undefined) => Promise<{
|
|
1434
|
-
groupId: string;
|
|
1435
|
-
txIds: string[];
|
|
1436
|
-
returns?: ABIReturn[] | undefined;
|
|
1437
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1438
|
-
transactions: algosdk.Transaction[];
|
|
1439
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1440
|
-
transaction: algosdk.Transaction;
|
|
1441
|
-
return?: ABIReturn | undefined;
|
|
1442
|
-
}>;
|
|
1443
|
-
/** Signs and sends a call (defaults to no-op) */
|
|
1444
|
-
call: (params?: ({
|
|
1445
|
-
maxFee?: AlgoAmount | undefined;
|
|
1446
|
-
note?: string | Uint8Array | undefined;
|
|
1447
|
-
args?: Uint8Array[] | undefined;
|
|
1448
|
-
signer?: algosdk.TransactionSigner | TransactionSignerAccount | undefined;
|
|
1449
|
-
lease?: string | Uint8Array | undefined;
|
|
1450
|
-
rekeyTo?: string | algosdk.Address | undefined;
|
|
1451
|
-
staticFee?: AlgoAmount | undefined;
|
|
1452
|
-
extraFee?: AlgoAmount | undefined;
|
|
1453
|
-
validityWindow?: number | bigint | undefined;
|
|
1454
|
-
firstValidRound?: bigint | undefined;
|
|
1455
|
-
lastValidRound?: bigint | undefined;
|
|
1456
|
-
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1457
|
-
appReferences?: bigint[] | undefined;
|
|
1458
|
-
assetReferences?: bigint[] | undefined;
|
|
1459
|
-
boxReferences?: (BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1460
|
-
accessReferences?: import("./app-manager").AccessReference[] | undefined;
|
|
1461
|
-
sender?: string | algosdk.Address | undefined;
|
|
1462
|
-
} & CallOnComplete & SendParams) | undefined) => Promise<{
|
|
1463
|
-
groupId: string;
|
|
1464
|
-
txIds: string[];
|
|
1465
|
-
returns?: ABIReturn[] | undefined;
|
|
1466
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1467
|
-
transactions: algosdk.Transaction[];
|
|
1468
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1469
|
-
transaction: algosdk.Transaction;
|
|
1470
|
-
return?: ABIReturn | undefined;
|
|
1471
|
-
}>;
|
|
1472
|
-
};
|
|
1473
|
-
};
|
|
1474
|
-
/** Get state (local, global, box) from the current app */
|
|
1475
|
-
get state(): {
|
|
1476
|
-
/**
|
|
1477
|
-
* Methods to access local state for the current app
|
|
1478
|
-
* @param address The address of the account to get the local state for
|
|
1479
|
-
*/
|
|
1480
|
-
local: (address: string | algosdk.Address) => {
|
|
1481
|
-
/**
|
|
1482
|
-
* Returns all single-key state values in a record keyed by the key name and the value a decoded ABI value.
|
|
1483
|
-
*/
|
|
1484
|
-
getAll: () => Promise<Record<string, any>>;
|
|
1485
|
-
/**
|
|
1486
|
-
* Returns a single state value for the current app with the value a decoded ABI value.
|
|
1487
|
-
* @param name The name of the state value to retrieve the value for
|
|
1488
|
-
* @param appState Optional cached value of the current state
|
|
1489
|
-
* @returns
|
|
1490
|
-
*/
|
|
1491
|
-
getValue: (name: string, appState?: AppState | undefined) => Promise<algosdk.ABIValue | ABIStruct | undefined>;
|
|
1492
|
-
/**
|
|
1493
|
-
* Returns a single value from the given map for the current app with the value a decoded ABI value.
|
|
1494
|
-
* @param mapName The name of the map to read from
|
|
1495
|
-
* @param key The key within the map (without any map prefix) as either a Buffer with the bytes or a value
|
|
1496
|
-
* that will be converted to bytes by encoding it using the specified ABI key type
|
|
1497
|
-
* in the ARC-56 spec
|
|
1498
|
-
* @param appState Optional cached value of the current state
|
|
1499
|
-
*/
|
|
1500
|
-
getMapValue: (mapName: string, key: any, appState?: AppState | undefined) => Promise<algosdk.ABIValue | ABIStruct | undefined>;
|
|
1501
|
-
/**
|
|
1502
|
-
* Returns all map values for the given map.
|
|
1503
|
-
* @param mapName The name of the map to read from
|
|
1504
|
-
* @param appState Optional cached value of the current state
|
|
1505
|
-
* @returns A map of all key-value pairs in the map as a `Record<string, ABIValue>`
|
|
1506
|
-
*/
|
|
1507
|
-
getMap: (mapName: string) => Promise<Map<algosdk.ABIValue | ABIStruct, algosdk.ABIValue | ABIStruct>>;
|
|
1508
|
-
};
|
|
1509
|
-
/**
|
|
1510
|
-
* Methods to access global state for the current app
|
|
1511
|
-
*/
|
|
1512
|
-
global: {
|
|
1513
|
-
/**
|
|
1514
|
-
* Returns all single-key state values in a record keyed by the key name and the value a decoded ABI value.
|
|
1515
|
-
*/
|
|
1516
|
-
getAll: () => Promise<Record<string, any>>;
|
|
1517
|
-
/**
|
|
1518
|
-
* Returns a single state value for the current app with the value a decoded ABI value.
|
|
1519
|
-
* @param name The name of the state value to retrieve the value for
|
|
1520
|
-
* @param appState Optional cached value of the current state
|
|
1521
|
-
* @returns
|
|
1522
|
-
*/
|
|
1523
|
-
getValue: (name: string, appState?: AppState | undefined) => Promise<algosdk.ABIValue | ABIStruct | undefined>;
|
|
1524
|
-
/**
|
|
1525
|
-
* Returns a single value from the given map for the current app with the value a decoded ABI value.
|
|
1526
|
-
* @param mapName The name of the map to read from
|
|
1527
|
-
* @param key The key within the map (without any map prefix) as either a Buffer with the bytes or a value
|
|
1528
|
-
* that will be converted to bytes by encoding it using the specified ABI key type
|
|
1529
|
-
* in the ARC-56 spec
|
|
1530
|
-
* @param appState Optional cached value of the current state
|
|
1531
|
-
*/
|
|
1532
|
-
getMapValue: (mapName: string, key: any, appState?: AppState | undefined) => Promise<algosdk.ABIValue | ABIStruct | undefined>;
|
|
1533
|
-
/**
|
|
1534
|
-
* Returns all map values for the given map.
|
|
1535
|
-
* @param mapName The name of the map to read from
|
|
1536
|
-
* @param appState Optional cached value of the current state
|
|
1537
|
-
* @returns A map of all key-value pairs in the map as a `Record<string, ABIValue>`
|
|
1538
|
-
*/
|
|
1539
|
-
getMap: (mapName: string) => Promise<Map<algosdk.ABIValue | ABIStruct, algosdk.ABIValue | ABIStruct>>;
|
|
1540
|
-
};
|
|
1541
|
-
/**
|
|
1542
|
-
* Methods to access box storage for the current app
|
|
1543
|
-
*/
|
|
1544
|
-
box: {
|
|
1545
|
-
/**
|
|
1546
|
-
* Returns all single-key state values in a record keyed by the key name and the value a decoded ABI value.
|
|
1547
|
-
*/
|
|
1548
|
-
getAll: () => Promise<Record<string, any>>;
|
|
1549
|
-
/**
|
|
1550
|
-
* Returns a single state value for the current app with the value a decoded ABI value.
|
|
1551
|
-
* @param name The name of the state value to retrieve the value for
|
|
1552
|
-
* @returns
|
|
1553
|
-
*/
|
|
1554
|
-
getValue: (name: string) => Promise<algosdk.ABIValue | ABIStruct>;
|
|
1555
|
-
/**
|
|
1556
|
-
*
|
|
1557
|
-
* @param mapName The name of the map to read from
|
|
1558
|
-
* @param key The key within the map (without any map prefix) as either a Buffer with the bytes or a value
|
|
1559
|
-
* that will be converted to bytes by encoding it using the specified ABI key type
|
|
1560
|
-
* in the ARC-56 spec
|
|
1561
|
-
*/
|
|
1562
|
-
getMapValue: (mapName: string, key: any) => Promise<algosdk.ABIValue | ABIStruct>;
|
|
1563
|
-
/**
|
|
1564
|
-
*
|
|
1565
|
-
* @param mapName The name of the map to read from
|
|
1566
|
-
* @param key The key within the map as either a Buffer with the bytes or a value
|
|
1567
|
-
* that will be converted to bytes by encoding it using the specified ABI key type
|
|
1568
|
-
* in the ARC-56 spec
|
|
1569
|
-
* @param appState
|
|
1570
|
-
*/
|
|
1571
|
-
getMap: (mapName: string) => Promise<Map<algosdk.ABIValue | ABIStruct, algosdk.ABIValue | ABIStruct>>;
|
|
1572
|
-
};
|
|
388
|
+
fundAppAccount: (params: {
|
|
389
|
+
note?: string | Uint8Array | undefined;
|
|
390
|
+
maxFee?: AlgoAmount | undefined;
|
|
391
|
+
lease?: string | Uint8Array | undefined;
|
|
392
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
393
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
394
|
+
staticFee?: AlgoAmount | undefined;
|
|
395
|
+
extraFee?: AlgoAmount | undefined;
|
|
396
|
+
validityWindow?: number | bigint | undefined;
|
|
397
|
+
firstValidRound?: bigint | undefined;
|
|
398
|
+
lastValidRound?: bigint | undefined;
|
|
399
|
+
amount: AlgoAmount;
|
|
400
|
+
closeRemainderTo?: ReadableAddress | undefined;
|
|
401
|
+
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
402
|
+
suppressLog?: boolean | undefined;
|
|
403
|
+
populateAppCallResources?: boolean | undefined;
|
|
404
|
+
coverAppCallInnerTransactionFees?: boolean | undefined;
|
|
405
|
+
sender?: ReadableAddress | undefined;
|
|
406
|
+
}) => {
|
|
407
|
+
sender: Address;
|
|
408
|
+
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
409
|
+
receiver: Address;
|
|
410
|
+
note?: string | Uint8Array | undefined;
|
|
411
|
+
maxFee?: AlgoAmount | undefined;
|
|
412
|
+
lease?: string | Uint8Array | undefined;
|
|
413
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
414
|
+
staticFee?: AlgoAmount | undefined;
|
|
415
|
+
extraFee?: AlgoAmount | undefined;
|
|
416
|
+
validityWindow?: number | bigint | undefined;
|
|
417
|
+
firstValidRound?: bigint | undefined;
|
|
418
|
+
lastValidRound?: bigint | undefined;
|
|
419
|
+
amount: AlgoAmount;
|
|
420
|
+
closeRemainderTo?: ReadableAddress | undefined;
|
|
421
|
+
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
422
|
+
suppressLog?: boolean | undefined;
|
|
423
|
+
populateAppCallResources?: boolean | undefined;
|
|
424
|
+
coverAppCallInnerTransactionFees?: boolean | undefined;
|
|
1573
425
|
};
|
|
1574
426
|
/**
|
|
1575
|
-
*
|
|
1576
|
-
*
|
|
1577
|
-
*
|
|
1578
|
-
* @param params The parameters for the funding transaction
|
|
1579
|
-
* @returns The result of the funding
|
|
1580
|
-
* @example
|
|
1581
|
-
* ```typescript
|
|
1582
|
-
* await appClient.fundAppAccount({ amount: algo(1) })
|
|
1583
|
-
* ```
|
|
427
|
+
* Return params for an update ABI call, including deploy-time TEAL template replacements and compilation if provided
|
|
428
|
+
* @param params The parameters for the update ABI method call
|
|
429
|
+
* @returns The parameters which can be used to create an update ABI method call
|
|
1584
430
|
*/
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
431
|
+
update: (params: {
|
|
432
|
+
note?: string | Uint8Array | undefined;
|
|
433
|
+
maxFee?: AlgoAmount | undefined;
|
|
434
|
+
lease?: string | Uint8Array | undefined;
|
|
435
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
436
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
437
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
438
|
+
staticFee?: AlgoAmount | undefined;
|
|
439
|
+
extraFee?: AlgoAmount | undefined;
|
|
440
|
+
validityWindow?: number | bigint | undefined;
|
|
441
|
+
firstValidRound?: bigint | undefined;
|
|
442
|
+
lastValidRound?: bigint | undefined;
|
|
443
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
444
|
+
appReferences?: bigint[] | undefined;
|
|
445
|
+
assetReferences?: bigint[] | undefined;
|
|
446
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
447
|
+
accessReferences?: AccessReference[] | undefined;
|
|
448
|
+
rejectVersion?: number | undefined;
|
|
449
|
+
sender?: ReadableAddress | undefined;
|
|
450
|
+
method: string;
|
|
451
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
452
|
+
} & AppClientCompilationParams) => Promise<{
|
|
453
|
+
/** The compiled bytecode of the approval program, ready to deploy to algod */
|
|
454
|
+
approvalProgram: Uint8Array;
|
|
455
|
+
/** The compiled bytecode of the clear state program, ready to deploy to algod */
|
|
456
|
+
clearStateProgram: Uint8Array;
|
|
457
|
+
compiledApproval?: CompiledTeal | undefined;
|
|
458
|
+
compiledClear?: CompiledTeal | undefined;
|
|
459
|
+
note?: string | Uint8Array | undefined;
|
|
460
|
+
maxFee?: AlgoAmount | undefined;
|
|
461
|
+
lease?: string | Uint8Array | undefined;
|
|
462
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
463
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
464
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
465
|
+
staticFee?: AlgoAmount | undefined;
|
|
466
|
+
extraFee?: AlgoAmount | undefined;
|
|
467
|
+
validityWindow?: number | bigint | undefined;
|
|
468
|
+
firstValidRound?: bigint | undefined;
|
|
469
|
+
lastValidRound?: bigint | undefined;
|
|
470
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
471
|
+
appReferences?: bigint[] | undefined;
|
|
472
|
+
assetReferences?: bigint[] | undefined;
|
|
473
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
474
|
+
accessReferences?: AccessReference[] | undefined;
|
|
475
|
+
rejectVersion?: number | undefined;
|
|
476
|
+
sender?: ReadableAddress | undefined;
|
|
477
|
+
method: string;
|
|
478
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
479
|
+
/** Any deploy-time parameters to replace in the TEAL code */
|
|
480
|
+
deployTimeParams?: TealTemplateParams | undefined;
|
|
481
|
+
/** Whether or not the contract should have deploy-time immutability control set, undefined = ignore */
|
|
482
|
+
updatable?: boolean | undefined;
|
|
483
|
+
/** Whether or not the contract should have deploy-time permanence control set, undefined = ignore */
|
|
484
|
+
deletable?: boolean | undefined;
|
|
485
|
+
} & {
|
|
486
|
+
appId: bigint;
|
|
487
|
+
sender: Address;
|
|
488
|
+
signer: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
489
|
+
method: ABIMethod;
|
|
490
|
+
onComplete: OnApplicationComplete.UpdateApplication;
|
|
491
|
+
args: (ABIValue | TransactionWithSigner | Transaction | Promise<Transaction> | AppMethodCall<{
|
|
492
|
+
args?: Uint8Array[] | undefined;
|
|
493
|
+
note?: string | Uint8Array | undefined;
|
|
494
|
+
maxFee?: AlgoAmount | undefined;
|
|
495
|
+
sender: SendingAddress;
|
|
496
|
+
lease?: string | Uint8Array | undefined;
|
|
497
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
498
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
499
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
500
|
+
staticFee?: AlgoAmount | undefined;
|
|
501
|
+
extraFee?: AlgoAmount | undefined;
|
|
502
|
+
validityWindow?: number | bigint | undefined;
|
|
503
|
+
firstValidRound?: bigint | undefined;
|
|
504
|
+
lastValidRound?: bigint | undefined;
|
|
505
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
506
|
+
appReferences?: bigint[] | undefined;
|
|
507
|
+
assetReferences?: bigint[] | undefined;
|
|
508
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
509
|
+
accessReferences?: AccessReference[] | undefined;
|
|
510
|
+
rejectVersion?: number | undefined;
|
|
511
|
+
approvalProgram: string | Uint8Array;
|
|
512
|
+
clearStateProgram: string | Uint8Array;
|
|
513
|
+
schema?: {
|
|
514
|
+
globalInts: number;
|
|
515
|
+
globalByteSlices: number;
|
|
516
|
+
localInts: number;
|
|
517
|
+
localByteSlices: number;
|
|
518
|
+
} | undefined;
|
|
519
|
+
extraProgramPages?: number | undefined;
|
|
520
|
+
}> | AppMethodCall<{
|
|
521
|
+
sender: SendingAddress;
|
|
522
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
523
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
524
|
+
note?: string | Uint8Array | undefined;
|
|
525
|
+
lease?: string | Uint8Array | undefined;
|
|
526
|
+
staticFee?: AlgoAmount | undefined;
|
|
527
|
+
extraFee?: AlgoAmount | undefined;
|
|
528
|
+
maxFee?: AlgoAmount | undefined;
|
|
529
|
+
validityWindow?: number | bigint | undefined;
|
|
530
|
+
firstValidRound?: bigint | undefined;
|
|
531
|
+
lastValidRound?: bigint | undefined;
|
|
532
|
+
appId: bigint;
|
|
533
|
+
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
534
|
+
args?: Uint8Array[] | undefined;
|
|
535
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
536
|
+
appReferences?: bigint[] | undefined;
|
|
537
|
+
assetReferences?: bigint[] | undefined;
|
|
538
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
539
|
+
accessReferences?: AccessReference[] | undefined;
|
|
540
|
+
rejectVersion?: number | undefined;
|
|
541
|
+
approvalProgram: string | Uint8Array;
|
|
542
|
+
clearStateProgram: string | Uint8Array;
|
|
543
|
+
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
1593
544
|
}>;
|
|
1594
545
|
/**
|
|
1595
|
-
*
|
|
1596
|
-
* @
|
|
1597
|
-
* @
|
|
1598
|
-
* ```typescript
|
|
1599
|
-
* const globalState = await appClient.getGlobalState()
|
|
1600
|
-
* ```
|
|
1601
|
-
*/
|
|
1602
|
-
getGlobalState(): Promise<AppState>;
|
|
1603
|
-
/**
|
|
1604
|
-
* Returns raw local state for the given account address.
|
|
1605
|
-
* @param address The address of the account to get the local state for
|
|
1606
|
-
* @returns The local state
|
|
1607
|
-
* @example
|
|
1608
|
-
* ```typescript
|
|
1609
|
-
* const localState = await appClient.getLocalState('ACCOUNT_ADDRESS')
|
|
1610
|
-
* ```
|
|
1611
|
-
*/
|
|
1612
|
-
getLocalState(address: Address | string): Promise<AppState>;
|
|
1613
|
-
/**
|
|
1614
|
-
* Returns the names of all current boxes for the current app.
|
|
1615
|
-
* @returns The names of the boxes
|
|
1616
|
-
* @example
|
|
1617
|
-
* ```typescript
|
|
1618
|
-
* const boxNames = await appClient.getBoxNames()
|
|
1619
|
-
* ```
|
|
1620
|
-
*/
|
|
1621
|
-
getBoxNames(): Promise<BoxName[]>;
|
|
1622
|
-
/**
|
|
1623
|
-
* Returns the value of the given box for the current app.
|
|
1624
|
-
* @param name The identifier of the box to return
|
|
1625
|
-
* @returns The current box value as a byte array
|
|
1626
|
-
* @example
|
|
1627
|
-
* ```typescript
|
|
1628
|
-
* const boxValue = await appClient.getBoxValue('boxName')
|
|
1629
|
-
* ```
|
|
1630
|
-
*/
|
|
1631
|
-
getBoxValue(name: BoxIdentifier): Promise<Uint8Array>;
|
|
1632
|
-
/**
|
|
1633
|
-
* Returns the value of the given box for the current app.
|
|
1634
|
-
* @param name The identifier of the box to return
|
|
1635
|
-
* @param type
|
|
1636
|
-
* @returns The current box value as a byte array
|
|
1637
|
-
* @example
|
|
1638
|
-
* ```typescript
|
|
1639
|
-
* const boxValue = await appClient.getBoxValueFromABIType('boxName', new ABIUintType(32))
|
|
1640
|
-
* ```
|
|
1641
|
-
*/
|
|
1642
|
-
getBoxValueFromABIType(name: BoxIdentifier, type: ABIType): Promise<ABIValue>;
|
|
1643
|
-
/**
|
|
1644
|
-
* Returns the values of all current boxes for the current app.
|
|
1645
|
-
* Note: This will issue multiple HTTP requests (one per box) and it's not an atomic operation so values may be out of sync.
|
|
1646
|
-
* @param filter Optional filter to filter which boxes' values are returned
|
|
1647
|
-
* @returns The (name, value) pair of the boxes with values as raw byte arrays
|
|
1648
|
-
* @example
|
|
1649
|
-
* ```typescript
|
|
1650
|
-
* const boxValues = await appClient.getBoxValues()
|
|
1651
|
-
* ```
|
|
1652
|
-
*/
|
|
1653
|
-
getBoxValues(filter?: (name: BoxName) => boolean): Promise<{
|
|
1654
|
-
name: BoxName;
|
|
1655
|
-
value: Uint8Array;
|
|
1656
|
-
}[]>;
|
|
1657
|
-
/**
|
|
1658
|
-
* Returns the values of all current boxes for the current app decoded using an ABI Type.
|
|
1659
|
-
* Note: This will issue multiple HTTP requests (one per box) and it's not an atomic operation so values may be out of sync.
|
|
1660
|
-
* @param type The ABI type to decode the values with
|
|
1661
|
-
* @param filter Optional filter to filter which boxes' values are returned
|
|
1662
|
-
* @returns The (name, value) pair of the boxes with values as the ABI Value
|
|
1663
|
-
* @example
|
|
1664
|
-
* ```typescript
|
|
1665
|
-
* const boxValues = await appClient.getBoxValuesFromABIType(new ABIUintType(32))
|
|
1666
|
-
* ```
|
|
1667
|
-
*/
|
|
1668
|
-
getBoxValuesFromABIType(type: ABIType, filter?: (name: BoxName) => boolean): Promise<{
|
|
1669
|
-
name: BoxName;
|
|
1670
|
-
value: ABIValue;
|
|
1671
|
-
}[]>;
|
|
1672
|
-
/**
|
|
1673
|
-
* Takes an error that may include a logic error from a call to the current app and re-exposes the
|
|
1674
|
-
* error to include source code information via the source map and ARC-56 spec.
|
|
1675
|
-
* @param e The error to parse
|
|
1676
|
-
* @param isClearStateProgram Whether or not the code was running the clear state program (defaults to approval program)
|
|
1677
|
-
* @returns The new error, or if there was no logic error or source map then the wrapped error with source details
|
|
1678
|
-
*/
|
|
1679
|
-
exposeLogicError(e: Error, isClearStateProgram?: boolean): Promise<Error>;
|
|
1680
|
-
/**
|
|
1681
|
-
* Export the current source maps for the app.
|
|
1682
|
-
* @returns The source maps
|
|
546
|
+
* Return params for an opt-in ABI call
|
|
547
|
+
* @param params The parameters for the opt-in ABI method call
|
|
548
|
+
* @returns The parameters which can be used to create an opt-in ABI method call
|
|
1683
549
|
*/
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
550
|
+
optIn: (params: {
|
|
551
|
+
note?: string | Uint8Array | undefined;
|
|
552
|
+
maxFee?: AlgoAmount | undefined;
|
|
553
|
+
lease?: string | Uint8Array | undefined;
|
|
554
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
555
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
556
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
557
|
+
staticFee?: AlgoAmount | undefined;
|
|
558
|
+
extraFee?: AlgoAmount | undefined;
|
|
559
|
+
validityWindow?: number | bigint | undefined;
|
|
560
|
+
firstValidRound?: bigint | undefined;
|
|
561
|
+
lastValidRound?: bigint | undefined;
|
|
562
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
563
|
+
appReferences?: bigint[] | undefined;
|
|
564
|
+
assetReferences?: bigint[] | undefined;
|
|
565
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
566
|
+
accessReferences?: AccessReference[] | undefined;
|
|
567
|
+
rejectVersion?: number | undefined;
|
|
568
|
+
sender?: ReadableAddress | undefined;
|
|
569
|
+
method: string;
|
|
570
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
571
|
+
}) => Promise<{
|
|
572
|
+
appId: bigint;
|
|
573
|
+
note?: string | Uint8Array | undefined;
|
|
574
|
+
maxFee?: AlgoAmount | undefined;
|
|
575
|
+
sender: SendingAddress;
|
|
576
|
+
lease?: string | Uint8Array | undefined;
|
|
577
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
578
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
579
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
580
|
+
staticFee?: AlgoAmount | undefined;
|
|
581
|
+
extraFee?: AlgoAmount | undefined;
|
|
582
|
+
validityWindow?: number | bigint | undefined;
|
|
583
|
+
firstValidRound?: bigint | undefined;
|
|
584
|
+
lastValidRound?: bigint | undefined;
|
|
585
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
586
|
+
appReferences?: bigint[] | undefined;
|
|
587
|
+
assetReferences?: bigint[] | undefined;
|
|
588
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
589
|
+
accessReferences?: AccessReference[] | undefined;
|
|
590
|
+
rejectVersion?: number | undefined;
|
|
591
|
+
method: ABIMethod;
|
|
592
|
+
args?: (ABIValue | TransactionWithSigner | Transaction | Promise<Transaction> | AppMethodCall<{
|
|
593
|
+
args?: Uint8Array[] | undefined;
|
|
594
|
+
note?: string | Uint8Array | undefined;
|
|
595
|
+
maxFee?: AlgoAmount | undefined;
|
|
596
|
+
sender: SendingAddress;
|
|
597
|
+
lease?: string | Uint8Array | undefined;
|
|
598
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
599
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
600
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
601
|
+
staticFee?: AlgoAmount | undefined;
|
|
602
|
+
extraFee?: AlgoAmount | undefined;
|
|
603
|
+
validityWindow?: number | bigint | undefined;
|
|
604
|
+
firstValidRound?: bigint | undefined;
|
|
605
|
+
lastValidRound?: bigint | undefined;
|
|
606
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
607
|
+
appReferences?: bigint[] | undefined;
|
|
608
|
+
assetReferences?: bigint[] | undefined;
|
|
609
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
610
|
+
accessReferences?: AccessReference[] | undefined;
|
|
611
|
+
rejectVersion?: number | undefined;
|
|
612
|
+
approvalProgram: string | Uint8Array;
|
|
613
|
+
clearStateProgram: string | Uint8Array;
|
|
614
|
+
schema?: {
|
|
615
|
+
globalInts: number;
|
|
616
|
+
globalByteSlices: number;
|
|
617
|
+
localInts: number;
|
|
618
|
+
localByteSlices: number;
|
|
619
|
+
} | undefined;
|
|
620
|
+
extraProgramPages?: number | undefined;
|
|
621
|
+
}> | AppMethodCall<{
|
|
622
|
+
sender: SendingAddress;
|
|
623
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
624
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
625
|
+
note?: string | Uint8Array | undefined;
|
|
626
|
+
lease?: string | Uint8Array | undefined;
|
|
627
|
+
staticFee?: AlgoAmount | undefined;
|
|
628
|
+
extraFee?: AlgoAmount | undefined;
|
|
629
|
+
maxFee?: AlgoAmount | undefined;
|
|
630
|
+
validityWindow?: number | bigint | undefined;
|
|
631
|
+
firstValidRound?: bigint | undefined;
|
|
632
|
+
lastValidRound?: bigint | undefined;
|
|
633
|
+
appId: bigint;
|
|
634
|
+
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
635
|
+
args?: Uint8Array[] | undefined;
|
|
636
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
637
|
+
appReferences?: bigint[] | undefined;
|
|
638
|
+
assetReferences?: bigint[] | undefined;
|
|
639
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
640
|
+
accessReferences?: AccessReference[] | undefined;
|
|
641
|
+
rejectVersion?: number | undefined;
|
|
642
|
+
approvalProgram: string | Uint8Array;
|
|
643
|
+
clearStateProgram: string | Uint8Array;
|
|
644
|
+
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
645
|
+
}>;
|
|
1750
646
|
/**
|
|
1751
|
-
*
|
|
1752
|
-
*
|
|
1753
|
-
*
|
|
1754
|
-
* It does this by replacing any `undefined` values with the equivalent default value from the given ARC-56 app spec.
|
|
1755
|
-
* @param methodNameOrSignature The method name or method signature to call if an ABI call is being emitted.
|
|
1756
|
-
* e.g. `my_method` or `my_method(unit64,string)bytes`
|
|
1757
|
-
* @param args The arguments to the method with `undefined` for any that should be populated with a default value
|
|
647
|
+
* Return params for an delete ABI call
|
|
648
|
+
* @param params The parameters for the delete ABI method call
|
|
649
|
+
* @returns The parameters which can be used to create a delete ABI method call
|
|
1758
650
|
*/
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
651
|
+
delete: (params: {
|
|
652
|
+
note?: string | Uint8Array | undefined;
|
|
653
|
+
maxFee?: AlgoAmount | undefined;
|
|
654
|
+
lease?: string | Uint8Array | undefined;
|
|
655
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
656
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
657
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
658
|
+
staticFee?: AlgoAmount | undefined;
|
|
659
|
+
extraFee?: AlgoAmount | undefined;
|
|
660
|
+
validityWindow?: number | bigint | undefined;
|
|
661
|
+
firstValidRound?: bigint | undefined;
|
|
662
|
+
lastValidRound?: bigint | undefined;
|
|
663
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
664
|
+
appReferences?: bigint[] | undefined;
|
|
665
|
+
assetReferences?: bigint[] | undefined;
|
|
666
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
667
|
+
accessReferences?: AccessReference[] | undefined;
|
|
668
|
+
rejectVersion?: number | undefined;
|
|
669
|
+
sender?: ReadableAddress | undefined;
|
|
670
|
+
method: string;
|
|
671
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
672
|
+
}) => Promise<{
|
|
673
|
+
appId: bigint;
|
|
674
|
+
note?: string | Uint8Array | undefined;
|
|
675
|
+
maxFee?: AlgoAmount | undefined;
|
|
676
|
+
sender: SendingAddress;
|
|
677
|
+
lease?: string | Uint8Array | undefined;
|
|
678
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
679
|
+
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
680
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
681
|
+
staticFee?: AlgoAmount | undefined;
|
|
682
|
+
extraFee?: AlgoAmount | undefined;
|
|
683
|
+
validityWindow?: number | bigint | undefined;
|
|
684
|
+
firstValidRound?: bigint | undefined;
|
|
685
|
+
lastValidRound?: bigint | undefined;
|
|
686
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
687
|
+
appReferences?: bigint[] | undefined;
|
|
688
|
+
assetReferences?: bigint[] | undefined;
|
|
689
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
690
|
+
accessReferences?: AccessReference[] | undefined;
|
|
691
|
+
rejectVersion?: number | undefined;
|
|
692
|
+
method: ABIMethod;
|
|
693
|
+
args?: (ABIValue | TransactionWithSigner | Transaction | Promise<Transaction> | AppMethodCall<{
|
|
694
|
+
args?: Uint8Array[] | undefined;
|
|
695
|
+
note?: string | Uint8Array | undefined;
|
|
696
|
+
maxFee?: AlgoAmount | undefined;
|
|
697
|
+
sender: SendingAddress;
|
|
698
|
+
lease?: string | Uint8Array | undefined;
|
|
699
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
700
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
701
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
702
|
+
staticFee?: AlgoAmount | undefined;
|
|
703
|
+
extraFee?: AlgoAmount | undefined;
|
|
704
|
+
validityWindow?: number | bigint | undefined;
|
|
705
|
+
firstValidRound?: bigint | undefined;
|
|
706
|
+
lastValidRound?: bigint | undefined;
|
|
707
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
708
|
+
appReferences?: bigint[] | undefined;
|
|
709
|
+
assetReferences?: bigint[] | undefined;
|
|
710
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
711
|
+
accessReferences?: AccessReference[] | undefined;
|
|
712
|
+
rejectVersion?: number | undefined;
|
|
713
|
+
approvalProgram: string | Uint8Array;
|
|
714
|
+
clearStateProgram: string | Uint8Array;
|
|
715
|
+
schema?: {
|
|
716
|
+
globalInts: number;
|
|
717
|
+
globalByteSlices: number;
|
|
718
|
+
localInts: number;
|
|
719
|
+
localByteSlices: number;
|
|
720
|
+
} | undefined;
|
|
721
|
+
extraProgramPages?: number | undefined;
|
|
722
|
+
}> | AppMethodCall<{
|
|
723
|
+
sender: SendingAddress;
|
|
724
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
725
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
726
|
+
note?: string | Uint8Array | undefined;
|
|
727
|
+
lease?: string | Uint8Array | undefined;
|
|
728
|
+
staticFee?: AlgoAmount | undefined;
|
|
729
|
+
extraFee?: AlgoAmount | undefined;
|
|
730
|
+
maxFee?: AlgoAmount | undefined;
|
|
731
|
+
validityWindow?: number | bigint | undefined;
|
|
732
|
+
firstValidRound?: bigint | undefined;
|
|
733
|
+
lastValidRound?: bigint | undefined;
|
|
734
|
+
appId: bigint;
|
|
735
|
+
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
736
|
+
args?: Uint8Array[] | undefined;
|
|
737
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
738
|
+
appReferences?: bigint[] | undefined;
|
|
739
|
+
assetReferences?: bigint[] | undefined;
|
|
740
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
741
|
+
accessReferences?: AccessReference[] | undefined;
|
|
742
|
+
rejectVersion?: number | undefined;
|
|
743
|
+
approvalProgram: string | Uint8Array;
|
|
744
|
+
clearStateProgram: string | Uint8Array;
|
|
745
|
+
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
746
|
+
}>;
|
|
747
|
+
/** Return params for an close out ABI call
|
|
748
|
+
* @param params The parameters for the close out ABI method call
|
|
749
|
+
* @returns The parameters which can be used to create a close out ABI method call
|
|
1810
750
|
*/
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
751
|
+
closeOut: (params: {
|
|
752
|
+
note?: string | Uint8Array | undefined;
|
|
753
|
+
maxFee?: AlgoAmount | undefined;
|
|
754
|
+
lease?: string | Uint8Array | undefined;
|
|
755
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
756
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
757
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
758
|
+
staticFee?: AlgoAmount | undefined;
|
|
759
|
+
extraFee?: AlgoAmount | undefined;
|
|
760
|
+
validityWindow?: number | bigint | undefined;
|
|
761
|
+
firstValidRound?: bigint | undefined;
|
|
762
|
+
lastValidRound?: bigint | undefined;
|
|
763
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
764
|
+
appReferences?: bigint[] | undefined;
|
|
765
|
+
assetReferences?: bigint[] | undefined;
|
|
766
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
767
|
+
accessReferences?: AccessReference[] | undefined;
|
|
768
|
+
rejectVersion?: number | undefined;
|
|
769
|
+
sender?: ReadableAddress | undefined;
|
|
770
|
+
method: string;
|
|
771
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
772
|
+
}) => Promise<{
|
|
773
|
+
appId: bigint;
|
|
774
|
+
note?: string | Uint8Array | undefined;
|
|
775
|
+
maxFee?: AlgoAmount | undefined;
|
|
776
|
+
sender: SendingAddress;
|
|
777
|
+
lease?: string | Uint8Array | undefined;
|
|
778
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
779
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
780
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
781
|
+
staticFee?: AlgoAmount | undefined;
|
|
782
|
+
extraFee?: AlgoAmount | undefined;
|
|
783
|
+
validityWindow?: number | bigint | undefined;
|
|
784
|
+
firstValidRound?: bigint | undefined;
|
|
785
|
+
lastValidRound?: bigint | undefined;
|
|
786
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
787
|
+
appReferences?: bigint[] | undefined;
|
|
788
|
+
assetReferences?: bigint[] | undefined;
|
|
789
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
790
|
+
accessReferences?: AccessReference[] | undefined;
|
|
791
|
+
rejectVersion?: number | undefined;
|
|
792
|
+
method: ABIMethod;
|
|
793
|
+
args?: (ABIValue | TransactionWithSigner | Transaction | Promise<Transaction> | AppMethodCall<{
|
|
794
|
+
args?: Uint8Array[] | undefined;
|
|
795
|
+
note?: string | Uint8Array | undefined;
|
|
796
|
+
maxFee?: AlgoAmount | undefined;
|
|
797
|
+
sender: SendingAddress;
|
|
798
|
+
lease?: string | Uint8Array | undefined;
|
|
799
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
800
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
801
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
802
|
+
staticFee?: AlgoAmount | undefined;
|
|
803
|
+
extraFee?: AlgoAmount | undefined;
|
|
804
|
+
validityWindow?: number | bigint | undefined;
|
|
805
|
+
firstValidRound?: bigint | undefined;
|
|
806
|
+
lastValidRound?: bigint | undefined;
|
|
807
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
808
|
+
appReferences?: bigint[] | undefined;
|
|
809
|
+
assetReferences?: bigint[] | undefined;
|
|
810
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
811
|
+
accessReferences?: AccessReference[] | undefined;
|
|
812
|
+
rejectVersion?: number | undefined;
|
|
813
|
+
approvalProgram: string | Uint8Array;
|
|
814
|
+
clearStateProgram: string | Uint8Array;
|
|
815
|
+
schema?: {
|
|
816
|
+
globalInts: number;
|
|
817
|
+
globalByteSlices: number;
|
|
818
|
+
localInts: number;
|
|
819
|
+
localByteSlices: number;
|
|
820
|
+
} | undefined;
|
|
821
|
+
extraProgramPages?: number | undefined;
|
|
822
|
+
}> | AppMethodCall<{
|
|
823
|
+
sender: SendingAddress;
|
|
824
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
825
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
826
|
+
note?: string | Uint8Array | undefined;
|
|
827
|
+
lease?: string | Uint8Array | undefined;
|
|
828
|
+
staticFee?: AlgoAmount | undefined;
|
|
829
|
+
extraFee?: AlgoAmount | undefined;
|
|
830
|
+
maxFee?: AlgoAmount | undefined;
|
|
831
|
+
validityWindow?: number | bigint | undefined;
|
|
832
|
+
firstValidRound?: bigint | undefined;
|
|
833
|
+
lastValidRound?: bigint | undefined;
|
|
834
|
+
appId: bigint;
|
|
835
|
+
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
836
|
+
args?: Uint8Array[] | undefined;
|
|
837
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
838
|
+
appReferences?: bigint[] | undefined;
|
|
839
|
+
assetReferences?: bigint[] | undefined;
|
|
840
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
841
|
+
accessReferences?: AccessReference[] | undefined;
|
|
842
|
+
rejectVersion?: number | undefined;
|
|
843
|
+
approvalProgram: string | Uint8Array;
|
|
844
|
+
clearStateProgram: string | Uint8Array;
|
|
845
|
+
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
846
|
+
}>;
|
|
847
|
+
/** Return params for an ABI call
|
|
848
|
+
* @param params The parameters for the ABI method call
|
|
849
|
+
* @returns The parameters which can be used to create an ABI method call
|
|
1818
850
|
*/
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
851
|
+
call: (params: {
|
|
852
|
+
note?: string | Uint8Array | undefined;
|
|
853
|
+
maxFee?: AlgoAmount | undefined;
|
|
854
|
+
lease?: string | Uint8Array | undefined;
|
|
855
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
856
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
857
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
858
|
+
staticFee?: AlgoAmount | undefined;
|
|
859
|
+
extraFee?: AlgoAmount | undefined;
|
|
860
|
+
validityWindow?: number | bigint | undefined;
|
|
861
|
+
firstValidRound?: bigint | undefined;
|
|
862
|
+
lastValidRound?: bigint | undefined;
|
|
863
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
864
|
+
appReferences?: bigint[] | undefined;
|
|
865
|
+
assetReferences?: bigint[] | undefined;
|
|
866
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
867
|
+
accessReferences?: AccessReference[] | undefined;
|
|
868
|
+
rejectVersion?: number | undefined;
|
|
869
|
+
sender?: ReadableAddress | undefined;
|
|
870
|
+
method: string;
|
|
871
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
872
|
+
} & CallOnComplete) => Promise<{
|
|
873
|
+
appId: bigint;
|
|
874
|
+
note?: string | Uint8Array | undefined;
|
|
875
|
+
maxFee?: AlgoAmount | undefined;
|
|
876
|
+
sender: SendingAddress;
|
|
877
|
+
lease?: string | Uint8Array | undefined;
|
|
878
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
879
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
880
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
881
|
+
staticFee?: AlgoAmount | undefined;
|
|
882
|
+
extraFee?: AlgoAmount | undefined;
|
|
883
|
+
validityWindow?: number | bigint | undefined;
|
|
884
|
+
firstValidRound?: bigint | undefined;
|
|
885
|
+
lastValidRound?: bigint | undefined;
|
|
886
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
887
|
+
appReferences?: bigint[] | undefined;
|
|
888
|
+
assetReferences?: bigint[] | undefined;
|
|
889
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
890
|
+
accessReferences?: AccessReference[] | undefined;
|
|
891
|
+
rejectVersion?: number | undefined;
|
|
892
|
+
method: ABIMethod;
|
|
893
|
+
args?: (ABIValue | TransactionWithSigner | Transaction | Promise<Transaction> | AppMethodCall<{
|
|
894
|
+
args?: Uint8Array[] | undefined;
|
|
895
|
+
note?: string | Uint8Array | undefined;
|
|
896
|
+
maxFee?: AlgoAmount | undefined;
|
|
897
|
+
sender: SendingAddress;
|
|
898
|
+
lease?: string | Uint8Array | undefined;
|
|
899
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
900
|
+
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
901
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
902
|
+
staticFee?: AlgoAmount | undefined;
|
|
903
|
+
extraFee?: AlgoAmount | undefined;
|
|
904
|
+
validityWindow?: number | bigint | undefined;
|
|
905
|
+
firstValidRound?: bigint | undefined;
|
|
906
|
+
lastValidRound?: bigint | undefined;
|
|
907
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
908
|
+
appReferences?: bigint[] | undefined;
|
|
909
|
+
assetReferences?: bigint[] | undefined;
|
|
910
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
911
|
+
accessReferences?: AccessReference[] | undefined;
|
|
912
|
+
rejectVersion?: number | undefined;
|
|
913
|
+
approvalProgram: string | Uint8Array;
|
|
914
|
+
clearStateProgram: string | Uint8Array;
|
|
915
|
+
schema?: {
|
|
916
|
+
globalInts: number;
|
|
917
|
+
globalByteSlices: number;
|
|
918
|
+
localInts: number;
|
|
919
|
+
localByteSlices: number;
|
|
920
|
+
} | undefined;
|
|
921
|
+
extraProgramPages?: number | undefined;
|
|
922
|
+
}> | AppMethodCall<{
|
|
923
|
+
sender: SendingAddress;
|
|
924
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
925
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
926
|
+
note?: string | Uint8Array | undefined;
|
|
927
|
+
lease?: string | Uint8Array | undefined;
|
|
928
|
+
staticFee?: AlgoAmount | undefined;
|
|
929
|
+
extraFee?: AlgoAmount | undefined;
|
|
930
|
+
maxFee?: AlgoAmount | undefined;
|
|
931
|
+
validityWindow?: number | bigint | undefined;
|
|
932
|
+
firstValidRound?: bigint | undefined;
|
|
933
|
+
lastValidRound?: bigint | undefined;
|
|
934
|
+
appId: bigint;
|
|
935
|
+
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
936
|
+
args?: Uint8Array[] | undefined;
|
|
937
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
938
|
+
appReferences?: bigint[] | undefined;
|
|
939
|
+
assetReferences?: bigint[] | undefined;
|
|
940
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
941
|
+
accessReferences?: AccessReference[] | undefined;
|
|
942
|
+
rejectVersion?: number | undefined;
|
|
943
|
+
approvalProgram: string | Uint8Array;
|
|
944
|
+
clearStateProgram: string | Uint8Array;
|
|
945
|
+
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
1822
946
|
}>;
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
947
|
+
} & {
|
|
948
|
+
/** Interact with bare (raw) call parameters */bare: {
|
|
949
|
+
/** Return params for an update call, including deploy-time TEAL template replacements and compilation if provided */
|
|
950
|
+
update: (params?: ({
|
|
951
|
+
args?: Uint8Array[] | undefined;
|
|
952
|
+
note?: string | Uint8Array | undefined;
|
|
953
|
+
maxFee?: AlgoAmount | undefined;
|
|
954
|
+
lease?: string | Uint8Array | undefined;
|
|
955
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
956
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
957
|
+
staticFee?: AlgoAmount | undefined;
|
|
958
|
+
extraFee?: AlgoAmount | undefined;
|
|
959
|
+
validityWindow?: number | bigint | undefined;
|
|
960
|
+
firstValidRound?: bigint | undefined;
|
|
961
|
+
lastValidRound?: bigint | undefined;
|
|
962
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
963
|
+
appReferences?: bigint[] | undefined;
|
|
964
|
+
assetReferences?: bigint[] | undefined;
|
|
965
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
966
|
+
accessReferences?: AccessReference[] | undefined;
|
|
967
|
+
rejectVersion?: number | undefined;
|
|
968
|
+
sender?: ReadableAddress | undefined;
|
|
969
|
+
} & AppClientCompilationParams) | undefined) => Promise<{
|
|
970
|
+
sender: SendingAddress;
|
|
971
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
972
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
973
|
+
note?: string | Uint8Array | undefined;
|
|
974
|
+
lease?: string | Uint8Array | undefined;
|
|
975
|
+
staticFee?: AlgoAmount | undefined;
|
|
976
|
+
extraFee?: AlgoAmount | undefined;
|
|
977
|
+
maxFee?: AlgoAmount | undefined;
|
|
978
|
+
validityWindow?: number | bigint | undefined;
|
|
979
|
+
firstValidRound?: bigint | undefined;
|
|
980
|
+
lastValidRound?: bigint | undefined;
|
|
981
|
+
appId: bigint;
|
|
982
|
+
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
983
|
+
args?: Uint8Array[] | undefined;
|
|
984
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
985
|
+
appReferences?: bigint[] | undefined;
|
|
986
|
+
assetReferences?: bigint[] | undefined;
|
|
987
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
988
|
+
accessReferences?: AccessReference[] | undefined;
|
|
989
|
+
rejectVersion?: number | undefined;
|
|
990
|
+
approvalProgram: string | Uint8Array;
|
|
991
|
+
clearStateProgram: string | Uint8Array;
|
|
992
|
+
}>;
|
|
993
|
+
/** Return params for an opt-in call */
|
|
994
|
+
optIn: (params?: {
|
|
995
|
+
args?: Uint8Array[] | undefined;
|
|
996
|
+
note?: string | Uint8Array | undefined;
|
|
997
|
+
maxFee?: AlgoAmount | undefined;
|
|
998
|
+
lease?: string | Uint8Array | undefined;
|
|
999
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1000
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1001
|
+
staticFee?: AlgoAmount | undefined;
|
|
1002
|
+
extraFee?: AlgoAmount | undefined;
|
|
1003
|
+
validityWindow?: number | bigint | undefined;
|
|
1004
|
+
firstValidRound?: bigint | undefined;
|
|
1005
|
+
lastValidRound?: bigint | undefined;
|
|
1006
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1007
|
+
appReferences?: bigint[] | undefined;
|
|
1008
|
+
assetReferences?: bigint[] | undefined;
|
|
1009
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1010
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1011
|
+
rejectVersion?: number | undefined;
|
|
1012
|
+
sender?: ReadableAddress | undefined;
|
|
1013
|
+
} | undefined) => AppCallParams;
|
|
1014
|
+
/** Return params for a delete call */
|
|
1015
|
+
delete: (params?: {
|
|
1016
|
+
args?: Uint8Array[] | undefined;
|
|
1017
|
+
note?: string | Uint8Array | undefined;
|
|
1018
|
+
maxFee?: AlgoAmount | undefined;
|
|
1019
|
+
lease?: string | Uint8Array | undefined;
|
|
1020
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1021
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1022
|
+
staticFee?: AlgoAmount | undefined;
|
|
1023
|
+
extraFee?: AlgoAmount | undefined;
|
|
1024
|
+
validityWindow?: number | bigint | undefined;
|
|
1025
|
+
firstValidRound?: bigint | undefined;
|
|
1026
|
+
lastValidRound?: bigint | undefined;
|
|
1027
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1028
|
+
appReferences?: bigint[] | undefined;
|
|
1029
|
+
assetReferences?: bigint[] | undefined;
|
|
1030
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1031
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1032
|
+
rejectVersion?: number | undefined;
|
|
1033
|
+
sender?: ReadableAddress | undefined;
|
|
1034
|
+
} | undefined) => AppDeleteParams;
|
|
1035
|
+
/** Return params for a clear state call */
|
|
1036
|
+
clearState: (params?: {
|
|
1037
|
+
args?: Uint8Array[] | undefined;
|
|
1038
|
+
note?: string | Uint8Array | undefined;
|
|
1039
|
+
maxFee?: AlgoAmount | undefined;
|
|
1040
|
+
lease?: string | Uint8Array | undefined;
|
|
1041
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1042
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1043
|
+
staticFee?: AlgoAmount | undefined;
|
|
1044
|
+
extraFee?: AlgoAmount | undefined;
|
|
1045
|
+
validityWindow?: number | bigint | undefined;
|
|
1046
|
+
firstValidRound?: bigint | undefined;
|
|
1047
|
+
lastValidRound?: bigint | undefined;
|
|
1048
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1049
|
+
appReferences?: bigint[] | undefined;
|
|
1050
|
+
assetReferences?: bigint[] | undefined;
|
|
1051
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1052
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1053
|
+
rejectVersion?: number | undefined;
|
|
1054
|
+
sender?: ReadableAddress | undefined;
|
|
1055
|
+
} | undefined) => AppCallParams;
|
|
1056
|
+
/** Return params for a close out call */
|
|
1057
|
+
closeOut: (params?: {
|
|
1058
|
+
args?: Uint8Array[] | undefined;
|
|
1059
|
+
note?: string | Uint8Array | undefined;
|
|
1060
|
+
maxFee?: AlgoAmount | undefined;
|
|
1061
|
+
lease?: string | Uint8Array | undefined;
|
|
1062
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1063
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1064
|
+
staticFee?: AlgoAmount | undefined;
|
|
1065
|
+
extraFee?: AlgoAmount | undefined;
|
|
1066
|
+
validityWindow?: number | bigint | undefined;
|
|
1067
|
+
firstValidRound?: bigint | undefined;
|
|
1068
|
+
lastValidRound?: bigint | undefined;
|
|
1069
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1070
|
+
appReferences?: bigint[] | undefined;
|
|
1071
|
+
assetReferences?: bigint[] | undefined;
|
|
1072
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1073
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1074
|
+
rejectVersion?: number | undefined;
|
|
1075
|
+
sender?: ReadableAddress | undefined;
|
|
1076
|
+
} | undefined) => AppCallParams;
|
|
1077
|
+
/** Return params for a call (defaults to no-op) */
|
|
1078
|
+
call: (params?: ({
|
|
1079
|
+
args?: Uint8Array[] | undefined;
|
|
1080
|
+
note?: string | Uint8Array | undefined;
|
|
1081
|
+
maxFee?: AlgoAmount | undefined;
|
|
1082
|
+
lease?: string | Uint8Array | undefined;
|
|
1083
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1084
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1085
|
+
staticFee?: AlgoAmount | undefined;
|
|
1086
|
+
extraFee?: AlgoAmount | undefined;
|
|
1087
|
+
validityWindow?: number | bigint | undefined;
|
|
1088
|
+
firstValidRound?: bigint | undefined;
|
|
1089
|
+
lastValidRound?: bigint | undefined;
|
|
1090
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1091
|
+
appReferences?: bigint[] | undefined;
|
|
1092
|
+
assetReferences?: bigint[] | undefined;
|
|
1093
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1094
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1095
|
+
rejectVersion?: number | undefined;
|
|
1096
|
+
sender?: ReadableAddress | undefined;
|
|
1097
|
+
} & CallOnComplete) | undefined) => AppCallParams;
|
|
1098
|
+
};
|
|
1099
|
+
};
|
|
1100
|
+
/** Create transactions for the current app */
|
|
1101
|
+
get createTransaction(): {
|
|
1102
|
+
/** Return transaction for a payment transaction to fund the app account
|
|
1103
|
+
* @param params The parameters for the fund app account payment transaction
|
|
1104
|
+
* @returns A transaction which can be used to fund the app account
|
|
1826
1105
|
*/
|
|
1827
|
-
|
|
1106
|
+
fundAppAccount: (params: {
|
|
1107
|
+
note?: string | Uint8Array | undefined;
|
|
1108
|
+
maxFee?: AlgoAmount | undefined;
|
|
1109
|
+
lease?: string | Uint8Array | undefined;
|
|
1110
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1111
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1112
|
+
staticFee?: AlgoAmount | undefined;
|
|
1113
|
+
extraFee?: AlgoAmount | undefined;
|
|
1114
|
+
validityWindow?: number | bigint | undefined;
|
|
1115
|
+
firstValidRound?: bigint | undefined;
|
|
1116
|
+
lastValidRound?: bigint | undefined;
|
|
1117
|
+
amount: AlgoAmount;
|
|
1118
|
+
closeRemainderTo?: ReadableAddress | undefined;
|
|
1119
|
+
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
1120
|
+
suppressLog?: boolean | undefined;
|
|
1121
|
+
populateAppCallResources?: boolean | undefined;
|
|
1122
|
+
coverAppCallInnerTransactionFees?: boolean | undefined;
|
|
1123
|
+
sender?: ReadableAddress | undefined;
|
|
1124
|
+
}) => Promise<Transaction>;
|
|
1828
1125
|
/**
|
|
1829
|
-
*
|
|
1830
|
-
* @param
|
|
1126
|
+
* Return transactions for an update ABI call, including deploy-time TEAL template replacements and compilation if provided
|
|
1127
|
+
* @param params The parameters for the update ABI method call
|
|
1128
|
+
* @returns The transactions which can be used to create an update ABI method call
|
|
1831
1129
|
*/
|
|
1832
|
-
|
|
1130
|
+
update: (params: {
|
|
1131
|
+
note?: string | Uint8Array | undefined;
|
|
1132
|
+
maxFee?: AlgoAmount | undefined;
|
|
1133
|
+
lease?: string | Uint8Array | undefined;
|
|
1134
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1135
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
1136
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1137
|
+
staticFee?: AlgoAmount | undefined;
|
|
1138
|
+
extraFee?: AlgoAmount | undefined;
|
|
1139
|
+
validityWindow?: number | bigint | undefined;
|
|
1140
|
+
firstValidRound?: bigint | undefined;
|
|
1141
|
+
lastValidRound?: bigint | undefined;
|
|
1142
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1143
|
+
appReferences?: bigint[] | undefined;
|
|
1144
|
+
assetReferences?: bigint[] | undefined;
|
|
1145
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1146
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1147
|
+
rejectVersion?: number | undefined;
|
|
1148
|
+
sender?: ReadableAddress | undefined;
|
|
1149
|
+
method: string;
|
|
1150
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
1151
|
+
} & AppClientCompilationParams) => Promise<{
|
|
1152
|
+
transactions: Transaction[];
|
|
1153
|
+
methodCalls: Map<number, ABIMethod>;
|
|
1154
|
+
signers: Map<number, TransactionSigner>;
|
|
1155
|
+
}>;
|
|
1833
1156
|
/**
|
|
1834
|
-
*
|
|
1835
|
-
*
|
|
1836
|
-
*
|
|
1837
|
-
*
|
|
1838
|
-
* To understand the architecture decisions behind this functionality please see https://github.com/algorandfoundation/algokit-cli/blob/main/docs/architecture-decisions/2023-01-12_smart-contract-deployment.md
|
|
1839
|
-
*
|
|
1840
|
-
* **Note:** if there is a breaking state schema change to an existing app (and `onSchemaBreak` is set to `'replace'`) the existing app will be deleted and re-created.
|
|
1841
|
-
*
|
|
1842
|
-
* **Note:** if there is an update (different TEAL code) to an existing app (and `onUpdate` is set to `'replace'`) the existing app will be deleted and re-created.
|
|
1843
|
-
* @param deploy Deployment details
|
|
1844
|
-
* @returns The metadata and transaction result(s) of the deployment, or just the metadata if it didn't need to issue transactions
|
|
1157
|
+
* Return transactions for an opt-in ABI call
|
|
1158
|
+
* @param params The parameters for the opt-in ABI method call
|
|
1159
|
+
* @returns The transactions which can be used to create an opt-in ABI method call
|
|
1845
1160
|
*/
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
1872
|
-
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
1873
|
-
transaction: algosdk.Transaction;
|
|
1874
|
-
transactions: algosdk.Transaction[];
|
|
1875
|
-
createdRound: number;
|
|
1876
|
-
updatedRound: number;
|
|
1877
|
-
createdMetadata: import("./app").AppDeployMetadata;
|
|
1878
|
-
deleted: boolean;
|
|
1879
|
-
appId: number | bigint;
|
|
1880
|
-
appAddress: string;
|
|
1881
|
-
name: string;
|
|
1882
|
-
version: string;
|
|
1883
|
-
deletable?: boolean | undefined;
|
|
1884
|
-
updatable?: boolean | undefined;
|
|
1885
|
-
return?: ABIReturn | undefined;
|
|
1886
|
-
deleteReturn?: ABIReturn | undefined;
|
|
1887
|
-
deleteResult: import("./transaction").ConfirmedTransactionResult;
|
|
1888
|
-
operationPerformed: "replace";
|
|
1161
|
+
optIn: (params: {
|
|
1162
|
+
note?: string | Uint8Array | undefined;
|
|
1163
|
+
maxFee?: AlgoAmount | undefined;
|
|
1164
|
+
lease?: string | Uint8Array | undefined;
|
|
1165
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1166
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
1167
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1168
|
+
staticFee?: AlgoAmount | undefined;
|
|
1169
|
+
extraFee?: AlgoAmount | undefined;
|
|
1170
|
+
validityWindow?: number | bigint | undefined;
|
|
1171
|
+
firstValidRound?: bigint | undefined;
|
|
1172
|
+
lastValidRound?: bigint | undefined;
|
|
1173
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1174
|
+
appReferences?: bigint[] | undefined;
|
|
1175
|
+
assetReferences?: bigint[] | undefined;
|
|
1176
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1177
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1178
|
+
rejectVersion?: number | undefined;
|
|
1179
|
+
sender?: ReadableAddress | undefined;
|
|
1180
|
+
method: string;
|
|
1181
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
1182
|
+
}) => Promise<{
|
|
1183
|
+
transactions: Transaction[];
|
|
1184
|
+
methodCalls: Map<number, ABIMethod>;
|
|
1185
|
+
signers: Map<number, TransactionSigner>;
|
|
1889
1186
|
}>;
|
|
1890
1187
|
/**
|
|
1891
|
-
*
|
|
1892
|
-
*
|
|
1893
|
-
*
|
|
1894
|
-
* @param create The parameters to create the app with
|
|
1895
|
-
* @returns The details of the created app, or the transaction to create it if `skipSending` and the compilation result
|
|
1188
|
+
* Return transactions for a delete ABI call
|
|
1189
|
+
* @param params The parameters for the delete ABI method call
|
|
1190
|
+
* @returns The transactions which can be used to create a delete ABI method call
|
|
1896
1191
|
*/
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1192
|
+
delete: (params: {
|
|
1193
|
+
note?: string | Uint8Array | undefined;
|
|
1194
|
+
maxFee?: AlgoAmount | undefined;
|
|
1195
|
+
lease?: string | Uint8Array | undefined;
|
|
1196
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1197
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
1198
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1199
|
+
staticFee?: AlgoAmount | undefined;
|
|
1200
|
+
extraFee?: AlgoAmount | undefined;
|
|
1201
|
+
validityWindow?: number | bigint | undefined;
|
|
1202
|
+
firstValidRound?: bigint | undefined;
|
|
1203
|
+
lastValidRound?: bigint | undefined;
|
|
1204
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1205
|
+
appReferences?: bigint[] | undefined;
|
|
1206
|
+
assetReferences?: bigint[] | undefined;
|
|
1207
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1208
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1209
|
+
rejectVersion?: number | undefined;
|
|
1210
|
+
sender?: ReadableAddress | undefined;
|
|
1211
|
+
method: string;
|
|
1212
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
1213
|
+
}) => Promise<{
|
|
1214
|
+
transactions: Transaction[];
|
|
1215
|
+
methodCalls: Map<number, ABIMethod>;
|
|
1216
|
+
signers: Map<number, TransactionSigner>;
|
|
1907
1217
|
}>;
|
|
1908
1218
|
/**
|
|
1909
|
-
*
|
|
1910
|
-
*
|
|
1911
|
-
*
|
|
1912
|
-
* @param update The parameters to update the app with
|
|
1913
|
-
* @returns The transaction send result and the compilation result
|
|
1219
|
+
* Return transactions for a close out ABI call
|
|
1220
|
+
* @param params The parameters for the close out ABI method call
|
|
1221
|
+
* @returns The transactions which can be used to create a close out ABI method call
|
|
1914
1222
|
*/
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1223
|
+
closeOut: (params: {
|
|
1224
|
+
note?: string | Uint8Array | undefined;
|
|
1225
|
+
maxFee?: AlgoAmount | undefined;
|
|
1226
|
+
lease?: string | Uint8Array | undefined;
|
|
1227
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1228
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
1229
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1230
|
+
staticFee?: AlgoAmount | undefined;
|
|
1231
|
+
extraFee?: AlgoAmount | undefined;
|
|
1232
|
+
validityWindow?: number | bigint | undefined;
|
|
1233
|
+
firstValidRound?: bigint | undefined;
|
|
1234
|
+
lastValidRound?: bigint | undefined;
|
|
1235
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1236
|
+
appReferences?: bigint[] | undefined;
|
|
1237
|
+
assetReferences?: bigint[] | undefined;
|
|
1238
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1239
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1240
|
+
rejectVersion?: number | undefined;
|
|
1241
|
+
sender?: ReadableAddress | undefined;
|
|
1242
|
+
method: string;
|
|
1243
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
1244
|
+
}) => Promise<{
|
|
1245
|
+
transactions: Transaction[];
|
|
1246
|
+
methodCalls: Map<number, ABIMethod>;
|
|
1247
|
+
signers: Map<number, TransactionSigner>;
|
|
1923
1248
|
}>;
|
|
1924
1249
|
/**
|
|
1925
|
-
*
|
|
1926
|
-
*
|
|
1927
|
-
*
|
|
1928
|
-
* @param call The call details.
|
|
1929
|
-
* @returns The result of the call
|
|
1250
|
+
* Return transactions for an ABI call (defaults to no-op)
|
|
1251
|
+
* @param params The parameters for the ABI method call
|
|
1252
|
+
* @returns The transactions which can be used to create an ABI method call
|
|
1930
1253
|
*/
|
|
1931
|
-
call(
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1254
|
+
call: (params: {
|
|
1255
|
+
note?: string | Uint8Array | undefined;
|
|
1256
|
+
maxFee?: AlgoAmount | undefined;
|
|
1257
|
+
lease?: string | Uint8Array | undefined;
|
|
1258
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1259
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
1260
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1261
|
+
staticFee?: AlgoAmount | undefined;
|
|
1262
|
+
extraFee?: AlgoAmount | undefined;
|
|
1263
|
+
validityWindow?: number | bigint | undefined;
|
|
1264
|
+
firstValidRound?: bigint | undefined;
|
|
1265
|
+
lastValidRound?: bigint | undefined;
|
|
1266
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1267
|
+
appReferences?: bigint[] | undefined;
|
|
1268
|
+
assetReferences?: bigint[] | undefined;
|
|
1269
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1270
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1271
|
+
rejectVersion?: number | undefined;
|
|
1272
|
+
sender?: ReadableAddress | undefined;
|
|
1273
|
+
method: string;
|
|
1274
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
1275
|
+
} & CallOnComplete) => Promise<{
|
|
1276
|
+
transactions: Transaction[];
|
|
1277
|
+
methodCalls: Map<number, ABIMethod>;
|
|
1278
|
+
signers: Map<number, TransactionSigner>;
|
|
1279
|
+
}>;
|
|
1280
|
+
} & {
|
|
1281
|
+
/** Interact with bare (raw) call transactions */bare: {
|
|
1282
|
+
/** Returns a transaction for an update call, including deploy-time TEAL template replacements and compilation if provided */
|
|
1283
|
+
update: (params?: ({
|
|
1284
|
+
args?: Uint8Array[] | undefined;
|
|
1285
|
+
note?: string | Uint8Array | undefined;
|
|
1286
|
+
maxFee?: AlgoAmount | undefined;
|
|
1287
|
+
lease?: string | Uint8Array | undefined;
|
|
1288
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1289
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1290
|
+
staticFee?: AlgoAmount | undefined;
|
|
1291
|
+
extraFee?: AlgoAmount | undefined;
|
|
1292
|
+
validityWindow?: number | bigint | undefined;
|
|
1293
|
+
firstValidRound?: bigint | undefined;
|
|
1294
|
+
lastValidRound?: bigint | undefined;
|
|
1295
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1296
|
+
appReferences?: bigint[] | undefined;
|
|
1297
|
+
assetReferences?: bigint[] | undefined;
|
|
1298
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1299
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1300
|
+
rejectVersion?: number | undefined;
|
|
1301
|
+
sender?: ReadableAddress | undefined;
|
|
1302
|
+
} & AppClientCompilationParams) | undefined) => Promise<Transaction>;
|
|
1303
|
+
/** Returns a transaction for an opt-in call */
|
|
1304
|
+
optIn: (params?: {
|
|
1305
|
+
args?: Uint8Array[] | undefined;
|
|
1306
|
+
note?: string | Uint8Array | undefined;
|
|
1307
|
+
maxFee?: AlgoAmount | undefined;
|
|
1308
|
+
lease?: string | Uint8Array | undefined;
|
|
1309
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1310
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1311
|
+
staticFee?: AlgoAmount | undefined;
|
|
1312
|
+
extraFee?: AlgoAmount | undefined;
|
|
1313
|
+
validityWindow?: number | bigint | undefined;
|
|
1314
|
+
firstValidRound?: bigint | undefined;
|
|
1315
|
+
lastValidRound?: bigint | undefined;
|
|
1316
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1317
|
+
appReferences?: bigint[] | undefined;
|
|
1318
|
+
assetReferences?: bigint[] | undefined;
|
|
1319
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1320
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1321
|
+
rejectVersion?: number | undefined;
|
|
1322
|
+
sender?: ReadableAddress | undefined;
|
|
1323
|
+
} | undefined) => Promise<Transaction>;
|
|
1324
|
+
/** Returns a transaction for a delete call */
|
|
1325
|
+
delete: (params?: {
|
|
1326
|
+
args?: Uint8Array[] | undefined;
|
|
1327
|
+
note?: string | Uint8Array | undefined;
|
|
1328
|
+
maxFee?: AlgoAmount | undefined;
|
|
1329
|
+
lease?: string | Uint8Array | undefined;
|
|
1330
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1331
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1332
|
+
staticFee?: AlgoAmount | undefined;
|
|
1333
|
+
extraFee?: AlgoAmount | undefined;
|
|
1334
|
+
validityWindow?: number | bigint | undefined;
|
|
1335
|
+
firstValidRound?: bigint | undefined;
|
|
1336
|
+
lastValidRound?: bigint | undefined;
|
|
1337
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1338
|
+
appReferences?: bigint[] | undefined;
|
|
1339
|
+
assetReferences?: bigint[] | undefined;
|
|
1340
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1341
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1342
|
+
rejectVersion?: number | undefined;
|
|
1343
|
+
sender?: ReadableAddress | undefined;
|
|
1344
|
+
} | undefined) => Promise<Transaction>;
|
|
1345
|
+
/** Returns a transaction for a clear state call */
|
|
1346
|
+
clearState: (params?: {
|
|
1347
|
+
args?: Uint8Array[] | undefined;
|
|
1348
|
+
note?: string | Uint8Array | undefined;
|
|
1349
|
+
maxFee?: AlgoAmount | undefined;
|
|
1350
|
+
lease?: string | Uint8Array | undefined;
|
|
1351
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1352
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1353
|
+
staticFee?: AlgoAmount | undefined;
|
|
1354
|
+
extraFee?: AlgoAmount | undefined;
|
|
1355
|
+
validityWindow?: number | bigint | undefined;
|
|
1356
|
+
firstValidRound?: bigint | undefined;
|
|
1357
|
+
lastValidRound?: bigint | undefined;
|
|
1358
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1359
|
+
appReferences?: bigint[] | undefined;
|
|
1360
|
+
assetReferences?: bigint[] | undefined;
|
|
1361
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1362
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1363
|
+
rejectVersion?: number | undefined;
|
|
1364
|
+
sender?: ReadableAddress | undefined;
|
|
1365
|
+
} | undefined) => Promise<Transaction>;
|
|
1366
|
+
/** Returns a transaction for a close out call */
|
|
1367
|
+
closeOut: (params?: {
|
|
1368
|
+
args?: Uint8Array[] | undefined;
|
|
1369
|
+
note?: string | Uint8Array | undefined;
|
|
1370
|
+
maxFee?: AlgoAmount | undefined;
|
|
1371
|
+
lease?: string | Uint8Array | undefined;
|
|
1372
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1373
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1374
|
+
staticFee?: AlgoAmount | undefined;
|
|
1375
|
+
extraFee?: AlgoAmount | undefined;
|
|
1376
|
+
validityWindow?: number | bigint | undefined;
|
|
1377
|
+
firstValidRound?: bigint | undefined;
|
|
1378
|
+
lastValidRound?: bigint | undefined;
|
|
1379
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1380
|
+
appReferences?: bigint[] | undefined;
|
|
1381
|
+
assetReferences?: bigint[] | undefined;
|
|
1382
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1383
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1384
|
+
rejectVersion?: number | undefined;
|
|
1385
|
+
sender?: ReadableAddress | undefined;
|
|
1386
|
+
} | undefined) => Promise<Transaction>;
|
|
1387
|
+
/** Returns a transaction for a call (defaults to no-op) */
|
|
1388
|
+
call: (params?: ({
|
|
1389
|
+
args?: Uint8Array[] | undefined;
|
|
1390
|
+
note?: string | Uint8Array | undefined;
|
|
1391
|
+
maxFee?: AlgoAmount | undefined;
|
|
1392
|
+
lease?: string | Uint8Array | undefined;
|
|
1393
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1394
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1395
|
+
staticFee?: AlgoAmount | undefined;
|
|
1396
|
+
extraFee?: AlgoAmount | undefined;
|
|
1397
|
+
validityWindow?: number | bigint | undefined;
|
|
1398
|
+
firstValidRound?: bigint | undefined;
|
|
1399
|
+
lastValidRound?: bigint | undefined;
|
|
1400
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1401
|
+
appReferences?: bigint[] | undefined;
|
|
1402
|
+
assetReferences?: bigint[] | undefined;
|
|
1403
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1404
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1405
|
+
rejectVersion?: number | undefined;
|
|
1406
|
+
sender?: ReadableAddress | undefined;
|
|
1407
|
+
} & CallOnComplete) | undefined) => Promise<Transaction>;
|
|
1408
|
+
};
|
|
1409
|
+
};
|
|
1410
|
+
/** Send transactions to the current app */
|
|
1411
|
+
get send(): {
|
|
1412
|
+
/** Sign and send transactions for a payment transaction to fund the app account
|
|
1413
|
+
* @param params The parameters for the fund app account payment transaction
|
|
1414
|
+
* @returns The result of send the fund app account payment transaction
|
|
1938
1415
|
*/
|
|
1939
|
-
|
|
1416
|
+
fundAppAccount: (params: {
|
|
1417
|
+
note?: string | Uint8Array | undefined;
|
|
1418
|
+
maxFee?: AlgoAmount | undefined;
|
|
1419
|
+
lease?: string | Uint8Array | undefined;
|
|
1420
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1421
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1422
|
+
staticFee?: AlgoAmount | undefined;
|
|
1423
|
+
extraFee?: AlgoAmount | undefined;
|
|
1424
|
+
validityWindow?: number | bigint | undefined;
|
|
1425
|
+
firstValidRound?: bigint | undefined;
|
|
1426
|
+
lastValidRound?: bigint | undefined;
|
|
1427
|
+
amount: AlgoAmount;
|
|
1428
|
+
closeRemainderTo?: ReadableAddress | undefined;
|
|
1429
|
+
maxRoundsToWaitForConfirmation?: number | undefined;
|
|
1430
|
+
suppressLog?: boolean | undefined;
|
|
1431
|
+
populateAppCallResources?: boolean | undefined;
|
|
1432
|
+
coverAppCallInnerTransactionFees?: boolean | undefined;
|
|
1433
|
+
sender?: ReadableAddress | undefined;
|
|
1434
|
+
} & SendParams) => Promise<{
|
|
1435
|
+
groupId: string | undefined;
|
|
1436
|
+
txIds: string[];
|
|
1437
|
+
returns?: ABIReturn[] | undefined;
|
|
1438
|
+
confirmations: PendingTransactionResponse[];
|
|
1439
|
+
transactions: Transaction[];
|
|
1440
|
+
confirmation: PendingTransactionResponse;
|
|
1441
|
+
transaction: Transaction;
|
|
1442
|
+
}>;
|
|
1940
1443
|
/**
|
|
1941
|
-
*
|
|
1942
|
-
*
|
|
1943
|
-
*
|
|
1944
|
-
* @param call The call details.
|
|
1945
|
-
* @returns The result of the call
|
|
1444
|
+
* Sign and send transactions for an update ABI call, including deploy-time TEAL template replacements and compilation if provided
|
|
1445
|
+
* @param params The parameters for the update ABI method call
|
|
1446
|
+
* @returns The result of sending the update ABI method call
|
|
1946
1447
|
*/
|
|
1947
|
-
|
|
1448
|
+
update: (params: {
|
|
1449
|
+
note?: string | Uint8Array | undefined;
|
|
1450
|
+
maxFee?: AlgoAmount | undefined;
|
|
1451
|
+
lease?: string | Uint8Array | undefined;
|
|
1452
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1453
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
1454
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1455
|
+
staticFee?: AlgoAmount | undefined;
|
|
1456
|
+
extraFee?: AlgoAmount | undefined;
|
|
1457
|
+
validityWindow?: number | bigint | undefined;
|
|
1458
|
+
firstValidRound?: bigint | undefined;
|
|
1459
|
+
lastValidRound?: bigint | undefined;
|
|
1460
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1461
|
+
appReferences?: bigint[] | undefined;
|
|
1462
|
+
assetReferences?: bigint[] | undefined;
|
|
1463
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1464
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1465
|
+
rejectVersion?: number | undefined;
|
|
1466
|
+
sender?: ReadableAddress | undefined;
|
|
1467
|
+
method: string;
|
|
1468
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
1469
|
+
} & AppClientCompilationParams & SendParams) => Promise<{
|
|
1470
|
+
compiledApproval?: CompiledTeal | undefined;
|
|
1471
|
+
compiledClear?: CompiledTeal | undefined;
|
|
1472
|
+
confirmations: PendingTransactionResponse[];
|
|
1473
|
+
transactions: Transaction[];
|
|
1474
|
+
groupId: string | undefined;
|
|
1475
|
+
txIds: string[];
|
|
1476
|
+
returns?: ABIReturn[] | undefined;
|
|
1477
|
+
confirmation: PendingTransactionResponse;
|
|
1478
|
+
transaction: Transaction;
|
|
1479
|
+
return?: ABIValue | undefined;
|
|
1480
|
+
}>;
|
|
1948
1481
|
/**
|
|
1949
|
-
*
|
|
1950
|
-
*
|
|
1951
|
-
*
|
|
1952
|
-
* @param call The call details.
|
|
1953
|
-
* @returns The result of the call
|
|
1482
|
+
* Sign and send transactions for an opt-in ABI call
|
|
1483
|
+
* @param params The parameters for the opt-in ABI method call
|
|
1484
|
+
* @returns The result of sending the opt-in ABI method call
|
|
1954
1485
|
*/
|
|
1955
|
-
|
|
1486
|
+
optIn: (params: {
|
|
1487
|
+
note?: string | Uint8Array | undefined;
|
|
1488
|
+
maxFee?: AlgoAmount | undefined;
|
|
1489
|
+
lease?: string | Uint8Array | undefined;
|
|
1490
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1491
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
1492
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1493
|
+
staticFee?: AlgoAmount | undefined;
|
|
1494
|
+
extraFee?: AlgoAmount | undefined;
|
|
1495
|
+
validityWindow?: number | bigint | undefined;
|
|
1496
|
+
firstValidRound?: bigint | undefined;
|
|
1497
|
+
lastValidRound?: bigint | undefined;
|
|
1498
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1499
|
+
appReferences?: bigint[] | undefined;
|
|
1500
|
+
assetReferences?: bigint[] | undefined;
|
|
1501
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1502
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1503
|
+
rejectVersion?: number | undefined;
|
|
1504
|
+
sender?: ReadableAddress | undefined;
|
|
1505
|
+
method: string;
|
|
1506
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
1507
|
+
} & SendParams) => Promise<Omit<{
|
|
1508
|
+
groupId: string | undefined;
|
|
1509
|
+
txIds: string[];
|
|
1510
|
+
returns?: ABIReturn[] | undefined;
|
|
1511
|
+
confirmations: PendingTransactionResponse[];
|
|
1512
|
+
transactions: Transaction[];
|
|
1513
|
+
confirmation: PendingTransactionResponse;
|
|
1514
|
+
transaction: Transaction;
|
|
1515
|
+
return?: ABIReturn | undefined;
|
|
1516
|
+
}, "return"> & AppReturn<ABIValue | undefined>>;
|
|
1956
1517
|
/**
|
|
1957
|
-
*
|
|
1958
|
-
*
|
|
1959
|
-
*
|
|
1960
|
-
* @param call The call details.
|
|
1961
|
-
* @returns The result of the call
|
|
1518
|
+
* Sign and send transactions for a delete ABI call
|
|
1519
|
+
* @param params The parameters for the delete ABI method call
|
|
1520
|
+
* @returns The result of sending the delete ABI method call
|
|
1962
1521
|
*/
|
|
1963
|
-
delete(
|
|
1522
|
+
delete: (params: {
|
|
1523
|
+
note?: string | Uint8Array | undefined;
|
|
1524
|
+
maxFee?: AlgoAmount | undefined;
|
|
1525
|
+
lease?: string | Uint8Array | undefined;
|
|
1526
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1527
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
1528
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1529
|
+
staticFee?: AlgoAmount | undefined;
|
|
1530
|
+
extraFee?: AlgoAmount | undefined;
|
|
1531
|
+
validityWindow?: number | bigint | undefined;
|
|
1532
|
+
firstValidRound?: bigint | undefined;
|
|
1533
|
+
lastValidRound?: bigint | undefined;
|
|
1534
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1535
|
+
appReferences?: bigint[] | undefined;
|
|
1536
|
+
assetReferences?: bigint[] | undefined;
|
|
1537
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1538
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1539
|
+
rejectVersion?: number | undefined;
|
|
1540
|
+
sender?: ReadableAddress | undefined;
|
|
1541
|
+
method: string;
|
|
1542
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
1543
|
+
} & SendParams) => Promise<Omit<{
|
|
1544
|
+
groupId: string | undefined;
|
|
1545
|
+
txIds: string[];
|
|
1546
|
+
returns?: ABIReturn[] | undefined;
|
|
1547
|
+
confirmations: PendingTransactionResponse[];
|
|
1548
|
+
transactions: Transaction[];
|
|
1549
|
+
confirmation: PendingTransactionResponse;
|
|
1550
|
+
transaction: Transaction;
|
|
1551
|
+
return?: ABIReturn | undefined;
|
|
1552
|
+
}, "return"> & AppReturn<ABIValue | undefined>>;
|
|
1964
1553
|
/**
|
|
1965
|
-
*
|
|
1966
|
-
*
|
|
1967
|
-
*
|
|
1968
|
-
* @param call The call details.
|
|
1969
|
-
* @param callType The call type
|
|
1970
|
-
* @returns The result of the call
|
|
1554
|
+
* Sign and send transactions for a close out ABI call
|
|
1555
|
+
* @param params The parameters for the close out ABI method call
|
|
1556
|
+
* @returns The result of sending the close out ABI method call
|
|
1971
1557
|
*/
|
|
1972
|
-
|
|
1558
|
+
closeOut: (params: {
|
|
1559
|
+
note?: string | Uint8Array | undefined;
|
|
1560
|
+
maxFee?: AlgoAmount | undefined;
|
|
1561
|
+
lease?: string | Uint8Array | undefined;
|
|
1562
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1563
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
1564
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1565
|
+
staticFee?: AlgoAmount | undefined;
|
|
1566
|
+
extraFee?: AlgoAmount | undefined;
|
|
1567
|
+
validityWindow?: number | bigint | undefined;
|
|
1568
|
+
firstValidRound?: bigint | undefined;
|
|
1569
|
+
lastValidRound?: bigint | undefined;
|
|
1570
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1571
|
+
appReferences?: bigint[] | undefined;
|
|
1572
|
+
assetReferences?: bigint[] | undefined;
|
|
1573
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1574
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1575
|
+
rejectVersion?: number | undefined;
|
|
1576
|
+
sender?: ReadableAddress | undefined;
|
|
1577
|
+
method: string;
|
|
1578
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
1579
|
+
} & SendParams) => Promise<Omit<{
|
|
1580
|
+
groupId: string | undefined;
|
|
1581
|
+
txIds: string[];
|
|
1582
|
+
returns?: ABIReturn[] | undefined;
|
|
1583
|
+
confirmations: PendingTransactionResponse[];
|
|
1584
|
+
transactions: Transaction[];
|
|
1585
|
+
confirmation: PendingTransactionResponse;
|
|
1586
|
+
transaction: Transaction;
|
|
1587
|
+
return?: ABIReturn | undefined;
|
|
1588
|
+
}, "return"> & AppReturn<ABIValue | undefined>>;
|
|
1973
1589
|
/**
|
|
1974
|
-
*
|
|
1975
|
-
* @param
|
|
1976
|
-
* @returns The result of the
|
|
1590
|
+
* Sign and send transactions for a call (defaults to no-op)
|
|
1591
|
+
* @param params The parameters for the ABI method call
|
|
1592
|
+
* @returns The result of sending the ABI method call
|
|
1977
1593
|
*/
|
|
1978
|
-
|
|
1979
|
-
|
|
1594
|
+
call: (params: {
|
|
1595
|
+
note?: string | Uint8Array | undefined;
|
|
1596
|
+
maxFee?: AlgoAmount | undefined;
|
|
1597
|
+
lease?: string | Uint8Array | undefined;
|
|
1598
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1599
|
+
onComplete?: OnApplicationComplete | undefined;
|
|
1600
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1601
|
+
staticFee?: AlgoAmount | undefined;
|
|
1602
|
+
extraFee?: AlgoAmount | undefined;
|
|
1603
|
+
validityWindow?: number | bigint | undefined;
|
|
1604
|
+
firstValidRound?: bigint | undefined;
|
|
1605
|
+
lastValidRound?: bigint | undefined;
|
|
1606
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1607
|
+
appReferences?: bigint[] | undefined;
|
|
1608
|
+
assetReferences?: bigint[] | undefined;
|
|
1609
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1610
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1611
|
+
rejectVersion?: number | undefined;
|
|
1612
|
+
sender?: ReadableAddress | undefined;
|
|
1613
|
+
method: string;
|
|
1614
|
+
args?: (ABIValue | AppMethodCallTransactionArgument | undefined)[] | undefined;
|
|
1615
|
+
} & CallOnComplete & SendParams) => Promise<Omit<{
|
|
1616
|
+
groupId: string | undefined;
|
|
1617
|
+
txIds: string[];
|
|
1618
|
+
returns?: ABIReturn[] | undefined;
|
|
1619
|
+
confirmations: PendingTransactionResponse[];
|
|
1620
|
+
transactions: Transaction[];
|
|
1621
|
+
confirmation: PendingTransactionResponse;
|
|
1622
|
+
transaction: Transaction;
|
|
1623
|
+
return?: ABIReturn | undefined;
|
|
1624
|
+
}, "return"> & AppReturn<ABIValue | undefined>>;
|
|
1625
|
+
} & {
|
|
1626
|
+
/** Interact with bare (raw) calls */bare: {
|
|
1627
|
+
/** Signs and sends an update call, including deploy-time TEAL template replacements and compilation if provided */
|
|
1628
|
+
update: (params?: ({
|
|
1629
|
+
args?: Uint8Array[] | undefined;
|
|
1630
|
+
note?: string | Uint8Array | undefined;
|
|
1631
|
+
maxFee?: AlgoAmount | undefined;
|
|
1632
|
+
lease?: string | Uint8Array | undefined;
|
|
1633
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1634
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1635
|
+
staticFee?: AlgoAmount | undefined;
|
|
1636
|
+
extraFee?: AlgoAmount | undefined;
|
|
1637
|
+
validityWindow?: number | bigint | undefined;
|
|
1638
|
+
firstValidRound?: bigint | undefined;
|
|
1639
|
+
lastValidRound?: bigint | undefined;
|
|
1640
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1641
|
+
appReferences?: bigint[] | undefined;
|
|
1642
|
+
assetReferences?: bigint[] | undefined;
|
|
1643
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1644
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1645
|
+
rejectVersion?: number | undefined;
|
|
1646
|
+
sender?: ReadableAddress | undefined;
|
|
1647
|
+
} & AppClientCompilationParams & SendParams) | undefined) => Promise<{
|
|
1648
|
+
compiledApproval?: CompiledTeal | undefined;
|
|
1649
|
+
compiledClear?: CompiledTeal | undefined;
|
|
1650
|
+
groupId: string | undefined;
|
|
1980
1651
|
txIds: string[];
|
|
1981
1652
|
returns?: ABIReturn[] | undefined;
|
|
1982
|
-
confirmations:
|
|
1983
|
-
transactions:
|
|
1984
|
-
confirmation:
|
|
1985
|
-
transaction:
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
1653
|
+
confirmations: PendingTransactionResponse[];
|
|
1654
|
+
transactions: Transaction[];
|
|
1655
|
+
confirmation: PendingTransactionResponse;
|
|
1656
|
+
transaction: Transaction;
|
|
1657
|
+
return?: ABIReturn | undefined;
|
|
1658
|
+
}>;
|
|
1659
|
+
/** Signs and sends an opt-in call */
|
|
1660
|
+
optIn: (params?: ({
|
|
1661
|
+
args?: Uint8Array[] | undefined;
|
|
1662
|
+
note?: string | Uint8Array | undefined;
|
|
1663
|
+
maxFee?: AlgoAmount | undefined;
|
|
1664
|
+
lease?: string | Uint8Array | undefined;
|
|
1665
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1666
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1667
|
+
staticFee?: AlgoAmount | undefined;
|
|
1668
|
+
extraFee?: AlgoAmount | undefined;
|
|
1669
|
+
validityWindow?: number | bigint | undefined;
|
|
1670
|
+
firstValidRound?: bigint | undefined;
|
|
1671
|
+
lastValidRound?: bigint | undefined;
|
|
1672
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1673
|
+
appReferences?: bigint[] | undefined;
|
|
1674
|
+
assetReferences?: bigint[] | undefined;
|
|
1675
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1676
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1677
|
+
rejectVersion?: number | undefined;
|
|
1678
|
+
sender?: ReadableAddress | undefined;
|
|
1679
|
+
} & SendParams) | undefined) => Promise<{
|
|
1680
|
+
groupId: string | undefined;
|
|
1681
|
+
txIds: string[];
|
|
1682
|
+
returns?: ABIReturn[] | undefined;
|
|
1683
|
+
confirmations: PendingTransactionResponse[];
|
|
1684
|
+
transactions: Transaction[];
|
|
1685
|
+
confirmation: PendingTransactionResponse;
|
|
1686
|
+
transaction: Transaction;
|
|
1687
|
+
return?: ABIReturn | undefined;
|
|
1688
|
+
}>;
|
|
1689
|
+
/** Signs and sends a delete call */
|
|
1690
|
+
delete: (params?: ({
|
|
1691
|
+
args?: Uint8Array[] | undefined;
|
|
1692
|
+
note?: string | Uint8Array | undefined;
|
|
1693
|
+
maxFee?: AlgoAmount | undefined;
|
|
1694
|
+
lease?: string | Uint8Array | undefined;
|
|
1695
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1696
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1697
|
+
staticFee?: AlgoAmount | undefined;
|
|
1698
|
+
extraFee?: AlgoAmount | undefined;
|
|
1699
|
+
validityWindow?: number | bigint | undefined;
|
|
1700
|
+
firstValidRound?: bigint | undefined;
|
|
1701
|
+
lastValidRound?: bigint | undefined;
|
|
1702
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1703
|
+
appReferences?: bigint[] | undefined;
|
|
1704
|
+
assetReferences?: bigint[] | undefined;
|
|
1705
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1706
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1707
|
+
rejectVersion?: number | undefined;
|
|
1708
|
+
sender?: ReadableAddress | undefined;
|
|
1709
|
+
} & SendParams) | undefined) => Promise<{
|
|
1710
|
+
groupId: string | undefined;
|
|
1711
|
+
txIds: string[];
|
|
1712
|
+
returns?: ABIReturn[] | undefined;
|
|
1713
|
+
confirmations: PendingTransactionResponse[];
|
|
1714
|
+
transactions: Transaction[];
|
|
1715
|
+
confirmation: PendingTransactionResponse;
|
|
1716
|
+
transaction: Transaction;
|
|
1717
|
+
return?: ABIReturn | undefined;
|
|
1718
|
+
}>;
|
|
1719
|
+
/** Signs and sends a clear state call */
|
|
1720
|
+
clearState: (params?: ({
|
|
1721
|
+
args?: Uint8Array[] | undefined;
|
|
1722
|
+
note?: string | Uint8Array | undefined;
|
|
1723
|
+
maxFee?: AlgoAmount | undefined;
|
|
1724
|
+
lease?: string | Uint8Array | undefined;
|
|
1725
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1726
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1727
|
+
staticFee?: AlgoAmount | undefined;
|
|
1728
|
+
extraFee?: AlgoAmount | undefined;
|
|
1729
|
+
validityWindow?: number | bigint | undefined;
|
|
1730
|
+
firstValidRound?: bigint | undefined;
|
|
1731
|
+
lastValidRound?: bigint | undefined;
|
|
1732
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1733
|
+
appReferences?: bigint[] | undefined;
|
|
1734
|
+
assetReferences?: bigint[] | undefined;
|
|
1735
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1736
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1737
|
+
rejectVersion?: number | undefined;
|
|
1738
|
+
sender?: ReadableAddress | undefined;
|
|
1739
|
+
} & SendParams) | undefined) => Promise<{
|
|
1740
|
+
groupId: string | undefined;
|
|
1741
|
+
txIds: string[];
|
|
1742
|
+
returns?: ABIReturn[] | undefined;
|
|
1743
|
+
confirmations: PendingTransactionResponse[];
|
|
1744
|
+
transactions: Transaction[];
|
|
1745
|
+
confirmation: PendingTransactionResponse;
|
|
1746
|
+
transaction: Transaction;
|
|
1747
|
+
return?: ABIReturn | undefined;
|
|
1748
|
+
}>;
|
|
1749
|
+
/** Signs and sends a close out call */
|
|
1750
|
+
closeOut: (params?: ({
|
|
1751
|
+
args?: Uint8Array[] | undefined;
|
|
1752
|
+
note?: string | Uint8Array | undefined;
|
|
1753
|
+
maxFee?: AlgoAmount | undefined;
|
|
1754
|
+
lease?: string | Uint8Array | undefined;
|
|
1755
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1756
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1757
|
+
staticFee?: AlgoAmount | undefined;
|
|
1758
|
+
extraFee?: AlgoAmount | undefined;
|
|
1759
|
+
validityWindow?: number | bigint | undefined;
|
|
1760
|
+
firstValidRound?: bigint | undefined;
|
|
1761
|
+
lastValidRound?: bigint | undefined;
|
|
1762
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1763
|
+
appReferences?: bigint[] | undefined;
|
|
1764
|
+
assetReferences?: bigint[] | undefined;
|
|
1765
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1766
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1767
|
+
rejectVersion?: number | undefined;
|
|
1768
|
+
sender?: ReadableAddress | undefined;
|
|
1769
|
+
} & SendParams) | undefined) => Promise<{
|
|
1770
|
+
groupId: string | undefined;
|
|
1771
|
+
txIds: string[];
|
|
1772
|
+
returns?: ABIReturn[] | undefined;
|
|
1773
|
+
confirmations: PendingTransactionResponse[];
|
|
1774
|
+
transactions: Transaction[];
|
|
1775
|
+
confirmation: PendingTransactionResponse;
|
|
1776
|
+
transaction: Transaction;
|
|
1777
|
+
return?: ABIReturn | undefined;
|
|
1778
|
+
}>;
|
|
1779
|
+
/** Signs and sends a call (defaults to no-op) */
|
|
1780
|
+
call: (params?: ({
|
|
1781
|
+
args?: Uint8Array[] | undefined;
|
|
1782
|
+
note?: string | Uint8Array | undefined;
|
|
1783
|
+
maxFee?: AlgoAmount | undefined;
|
|
1784
|
+
lease?: string | Uint8Array | undefined;
|
|
1785
|
+
rekeyTo?: ReadableAddress | undefined;
|
|
1786
|
+
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
1787
|
+
staticFee?: AlgoAmount | undefined;
|
|
1788
|
+
extraFee?: AlgoAmount | undefined;
|
|
1789
|
+
validityWindow?: number | bigint | undefined;
|
|
1790
|
+
firstValidRound?: bigint | undefined;
|
|
1791
|
+
lastValidRound?: bigint | undefined;
|
|
1792
|
+
accountReferences?: ReadableAddress[] | undefined;
|
|
1793
|
+
appReferences?: bigint[] | undefined;
|
|
1794
|
+
assetReferences?: bigint[] | undefined;
|
|
1795
|
+
boxReferences?: (BoxReference | BoxIdentifier)[] | undefined;
|
|
1796
|
+
accessReferences?: AccessReference[] | undefined;
|
|
1797
|
+
rejectVersion?: number | undefined;
|
|
1798
|
+
sender?: ReadableAddress | undefined;
|
|
1799
|
+
} & CallOnComplete & SendParams) | undefined) => Promise<{
|
|
1800
|
+
groupId: string | undefined;
|
|
1801
|
+
txIds: string[];
|
|
1802
|
+
returns?: ABIReturn[] | undefined;
|
|
1803
|
+
confirmations: PendingTransactionResponse[];
|
|
1804
|
+
transactions: Transaction[];
|
|
1805
|
+
confirmation: PendingTransactionResponse;
|
|
1806
|
+
transaction: Transaction;
|
|
1807
|
+
return?: ABIReturn | undefined;
|
|
1808
|
+
}>;
|
|
1809
|
+
};
|
|
1810
|
+
};
|
|
1811
|
+
/** Get state (local, global, box) from the current app */
|
|
1812
|
+
get state(): {
|
|
2055
1813
|
/**
|
|
2056
|
-
*
|
|
2057
|
-
* @param
|
|
2058
|
-
* @returns The ABI method for the given method
|
|
1814
|
+
* Methods to access local state for the current app
|
|
1815
|
+
* @param address The address of the account to get the local state for
|
|
2059
1816
|
*/
|
|
2060
|
-
|
|
1817
|
+
local: (address: ReadableAddress) => {
|
|
1818
|
+
/**
|
|
1819
|
+
* Returns all single-key state values in a record keyed by the key name and the value a decoded ABI value.
|
|
1820
|
+
*/
|
|
1821
|
+
getAll: () => Promise<Record<string, any>>;
|
|
1822
|
+
/**
|
|
1823
|
+
* Returns a single state value for the current app with the value a decoded ABI value.
|
|
1824
|
+
* @param name The name of the state value to retrieve the value for
|
|
1825
|
+
* @param appState Optional cached value of the current state
|
|
1826
|
+
* @returns
|
|
1827
|
+
*/
|
|
1828
|
+
getValue: (name: string, appState?: AppState | undefined) => Promise<ABIValue | undefined>;
|
|
1829
|
+
/**
|
|
1830
|
+
* Returns a single value from the given map for the current app with the value a decoded ABI value.
|
|
1831
|
+
* @param mapName The name of the map to read from
|
|
1832
|
+
* @param key The key within the map (without any map prefix) as either a Buffer with the bytes or a value
|
|
1833
|
+
* that will be converted to bytes by encoding it using the specified ABI key type
|
|
1834
|
+
* in the ARC-56 spec
|
|
1835
|
+
* @param appState Optional cached value of the current state
|
|
1836
|
+
*/
|
|
1837
|
+
getMapValue: (mapName: string, key: any, appState?: AppState | undefined) => Promise<ABIValue | undefined>;
|
|
1838
|
+
/**
|
|
1839
|
+
* Returns all map values for the given map.
|
|
1840
|
+
* @param mapName The name of the map to read from
|
|
1841
|
+
* @param appState Optional cached value of the current state
|
|
1842
|
+
* @returns A map of all key-value pairs in the map as a `Record<string, ABIValue>`
|
|
1843
|
+
*/
|
|
1844
|
+
getMap: (mapName: string) => Promise<Map<ABIValue, ABIValue>>;
|
|
1845
|
+
};
|
|
2061
1846
|
/**
|
|
2062
|
-
*
|
|
2063
|
-
*
|
|
2064
|
-
* Gets the reference information for the current application instance.
|
|
2065
|
-
* `appId` will be 0 if it can't find an app.
|
|
2066
|
-
* @returns The app reference, or if deployed using the `deploy` method, the app metadata too
|
|
1847
|
+
* Methods to access global state for the current app
|
|
2067
1848
|
*/
|
|
2068
|
-
|
|
1849
|
+
global: {
|
|
1850
|
+
/**
|
|
1851
|
+
* Returns all single-key state values in a record keyed by the key name and the value a decoded ABI value.
|
|
1852
|
+
*/
|
|
1853
|
+
getAll: () => Promise<Record<string, any>>;
|
|
1854
|
+
/**
|
|
1855
|
+
* Returns a single state value for the current app with the value a decoded ABI value.
|
|
1856
|
+
* @param name The name of the state value to retrieve the value for
|
|
1857
|
+
* @param appState Optional cached value of the current state
|
|
1858
|
+
* @returns
|
|
1859
|
+
*/
|
|
1860
|
+
getValue: (name: string, appState?: AppState | undefined) => Promise<ABIValue | undefined>;
|
|
1861
|
+
/**
|
|
1862
|
+
* Returns a single value from the given map for the current app with the value a decoded ABI value.
|
|
1863
|
+
* @param mapName The name of the map to read from
|
|
1864
|
+
* @param key The key within the map (without any map prefix) as either a Buffer with the bytes or a value
|
|
1865
|
+
* that will be converted to bytes by encoding it using the specified ABI key type
|
|
1866
|
+
* in the ARC-56 spec
|
|
1867
|
+
* @param appState Optional cached value of the current state
|
|
1868
|
+
*/
|
|
1869
|
+
getMapValue: (mapName: string, key: any, appState?: AppState | undefined) => Promise<ABIValue | undefined>;
|
|
1870
|
+
/**
|
|
1871
|
+
* Returns all map values for the given map.
|
|
1872
|
+
* @param mapName The name of the map to read from
|
|
1873
|
+
* @param appState Optional cached value of the current state
|
|
1874
|
+
* @returns A map of all key-value pairs in the map as a `Record<string, ABIValue>`
|
|
1875
|
+
*/
|
|
1876
|
+
getMap: (mapName: string) => Promise<Map<ABIValue, ABIValue>>;
|
|
1877
|
+
};
|
|
2069
1878
|
/**
|
|
2070
|
-
*
|
|
2071
|
-
* This is automatically used within `ApplicationClient` but if you pass `skipSending: true` e.g. if doing a group transaction
|
|
2072
|
-
* then you can use this in a try/catch block to get better debugging information.
|
|
2073
|
-
* @param e The error to parse
|
|
2074
|
-
* @param isClear Whether or not the code was running the clear state program
|
|
2075
|
-
* @returns The new error, or if there was no logic error or source map then the wrapped error with source details
|
|
1879
|
+
* Methods to access box storage for the current app
|
|
2076
1880
|
*/
|
|
2077
|
-
|
|
2078
|
-
|
|
1881
|
+
box: {
|
|
1882
|
+
/**
|
|
1883
|
+
* Returns all single-key state values in a record keyed by the key name and the value a decoded ABI value.
|
|
1884
|
+
*/
|
|
1885
|
+
getAll: () => Promise<Record<string, any>>;
|
|
1886
|
+
/**
|
|
1887
|
+
* Returns a single state value for the current app with the value a decoded ABI value.
|
|
1888
|
+
* @param name The name of the state value to retrieve the value for
|
|
1889
|
+
* @returns
|
|
1890
|
+
*/
|
|
1891
|
+
getValue: (name: string) => Promise<ABIValue>;
|
|
1892
|
+
/**
|
|
1893
|
+
*
|
|
1894
|
+
* @param mapName The name of the map to read from
|
|
1895
|
+
* @param key The key within the map (without any map prefix) as either a Buffer with the bytes or a value
|
|
1896
|
+
* that will be converted to bytes by encoding it using the specified ABI key type
|
|
1897
|
+
* in the ARC-56 spec
|
|
1898
|
+
*/
|
|
1899
|
+
getMapValue: (mapName: string, key: any) => Promise<ABIValue>;
|
|
1900
|
+
/**
|
|
1901
|
+
*
|
|
1902
|
+
* @param mapName The name of the map to read from
|
|
1903
|
+
* @param key The key within the map as either a Buffer with the bytes or a value
|
|
1904
|
+
* that will be converted to bytes by encoding it using the specified ABI key type
|
|
1905
|
+
* in the ARC-56 spec
|
|
1906
|
+
* @param appState
|
|
1907
|
+
*/
|
|
1908
|
+
getMap: (mapName: string) => Promise<Map<ABIValue, ABIValue>>;
|
|
1909
|
+
};
|
|
1910
|
+
};
|
|
1911
|
+
/**
|
|
1912
|
+
* Funds Algo into the app account for this app.
|
|
1913
|
+
*
|
|
1914
|
+
* An alias for `appClient.send.fundAppAccount(params)`.
|
|
1915
|
+
* @param params The parameters for the funding transaction
|
|
1916
|
+
* @returns The result of the funding
|
|
1917
|
+
* @example
|
|
1918
|
+
* ```typescript
|
|
1919
|
+
* await appClient.fundAppAccount({ amount: algo(1) })
|
|
1920
|
+
* ```
|
|
1921
|
+
*/
|
|
1922
|
+
fundAppAccount(params: FundAppParams): Promise<{
|
|
1923
|
+
groupId: string | undefined;
|
|
1924
|
+
txIds: string[];
|
|
1925
|
+
returns?: ABIReturn[] | undefined;
|
|
1926
|
+
confirmations: PendingTransactionResponse[];
|
|
1927
|
+
transactions: Transaction[];
|
|
1928
|
+
confirmation: PendingTransactionResponse;
|
|
1929
|
+
transaction: Transaction;
|
|
1930
|
+
}>;
|
|
1931
|
+
/**
|
|
1932
|
+
* Returns raw global state for the current app.
|
|
1933
|
+
* @returns The global state
|
|
1934
|
+
* @example
|
|
1935
|
+
* ```typescript
|
|
1936
|
+
* const globalState = await appClient.getGlobalState()
|
|
1937
|
+
* ```
|
|
1938
|
+
*/
|
|
1939
|
+
getGlobalState(): Promise<AppState>;
|
|
1940
|
+
/**
|
|
1941
|
+
* Returns raw local state for the given account address.
|
|
1942
|
+
* @param address The address of the account to get the local state for
|
|
1943
|
+
* @returns The local state
|
|
1944
|
+
* @example
|
|
1945
|
+
* ```typescript
|
|
1946
|
+
* const localState = await appClient.getLocalState('ACCOUNT_ADDRESS')
|
|
1947
|
+
* ```
|
|
1948
|
+
*/
|
|
1949
|
+
getLocalState(address: ReadableAddress): Promise<AppState>;
|
|
1950
|
+
/**
|
|
1951
|
+
* Returns the names of all current boxes for the current app.
|
|
1952
|
+
* @returns The names of the boxes
|
|
1953
|
+
* @example
|
|
1954
|
+
* ```typescript
|
|
1955
|
+
* const boxNames = await appClient.getBoxNames()
|
|
1956
|
+
* ```
|
|
1957
|
+
*/
|
|
1958
|
+
getBoxNames(): Promise<BoxName[]>;
|
|
1959
|
+
/**
|
|
1960
|
+
* Returns the value of the given box for the current app.
|
|
1961
|
+
* @param name The identifier of the box to return
|
|
1962
|
+
* @returns The current box value as a byte array
|
|
1963
|
+
* @example
|
|
1964
|
+
* ```typescript
|
|
1965
|
+
* const boxValue = await appClient.getBoxValue('boxName')
|
|
1966
|
+
* ```
|
|
1967
|
+
*/
|
|
1968
|
+
getBoxValue(name: BoxIdentifier): Promise<Uint8Array>;
|
|
1969
|
+
/**
|
|
1970
|
+
* Returns the value of the given box for the current app.
|
|
1971
|
+
* @param name The identifier of the box to return
|
|
1972
|
+
* @param type
|
|
1973
|
+
* @returns The current box value as a byte array
|
|
1974
|
+
* @example
|
|
1975
|
+
* ```typescript
|
|
1976
|
+
* const boxValue = await appClient.getBoxValueFromABIType('boxName', new ABIUintType(32))
|
|
1977
|
+
* ```
|
|
1978
|
+
*/
|
|
1979
|
+
getBoxValueFromABIType(name: BoxIdentifier, type: ABIType): Promise<ABIValue>;
|
|
1980
|
+
/**
|
|
1981
|
+
* Returns the values of all current boxes for the current app.
|
|
1982
|
+
* Note: This will issue multiple HTTP requests (one per box) and it's not an atomic operation so values may be out of sync.
|
|
1983
|
+
* @param filter Optional filter to filter which boxes' values are returned
|
|
1984
|
+
* @returns The (name, value) pair of the boxes with values as raw byte arrays
|
|
1985
|
+
* @example
|
|
1986
|
+
* ```typescript
|
|
1987
|
+
* const boxValues = await appClient.getBoxValues()
|
|
1988
|
+
* ```
|
|
1989
|
+
*/
|
|
1990
|
+
getBoxValues(filter?: (name: BoxName) => boolean): Promise<{
|
|
1991
|
+
name: BoxName;
|
|
1992
|
+
value: Uint8Array;
|
|
1993
|
+
}[]>;
|
|
1994
|
+
/**
|
|
1995
|
+
* Returns the values of all current boxes for the current app decoded using an ABI Type.
|
|
1996
|
+
* Note: This will issue multiple HTTP requests (one per box) and it's not an atomic operation so values may be out of sync.
|
|
1997
|
+
* @param type The ABI type to decode the values with
|
|
1998
|
+
* @param filter Optional filter to filter which boxes' values are returned
|
|
1999
|
+
* @returns The (name, value) pair of the boxes with values as the ABI Value
|
|
2000
|
+
* @example
|
|
2001
|
+
* ```typescript
|
|
2002
|
+
* const boxValues = await appClient.getBoxValuesFromABIType(new ABIUintType(32))
|
|
2003
|
+
* ```
|
|
2004
|
+
*/
|
|
2005
|
+
getBoxValuesFromABIType(type: ABIType, filter?: (name: BoxName) => boolean): Promise<{
|
|
2006
|
+
name: BoxName;
|
|
2007
|
+
value: ABIValue;
|
|
2008
|
+
}[]>;
|
|
2009
|
+
/**
|
|
2010
|
+
* Takes an error that may include a logic error from a call to the current app and re-exposes the
|
|
2011
|
+
* error to include source code information via the source map and ARC-56 spec.
|
|
2012
|
+
* @param e The error to parse
|
|
2013
|
+
* @param isClearStateProgram Whether or not the code was running the clear state program (defaults to approval program)
|
|
2014
|
+
* @returns The new error, or if there was no logic error or source map then the wrapped error with source details
|
|
2015
|
+
*/
|
|
2016
|
+
exposeLogicError(e: Error, isClearStateProgram?: boolean): Promise<Error>;
|
|
2017
|
+
/**
|
|
2018
|
+
* Export the current source maps for the app.
|
|
2019
|
+
* @returns The source maps
|
|
2020
|
+
*/
|
|
2021
|
+
exportSourceMaps(): AppSourceMaps;
|
|
2022
|
+
/**
|
|
2023
|
+
* Import source maps for the app.
|
|
2024
|
+
* @param sourceMaps The source maps to import
|
|
2025
|
+
*/
|
|
2026
|
+
importSourceMaps(sourceMaps: AppSourceMaps): void;
|
|
2027
|
+
/**
|
|
2028
|
+
* Returns the ABI Method spec for the given method string for the app represented by this application client instance
|
|
2029
|
+
* @param methodNameOrSignature The method name or method signature to call if an ABI call is being emitted.
|
|
2030
|
+
* e.g. `my_method` or `my_method(unit64,string)bytes`
|
|
2031
|
+
* @returns A tuple with: [ARC-56 `Method`, algosdk `ABIMethod`]
|
|
2032
|
+
*/
|
|
2033
|
+
getABIMethod(methodNameOrSignature: string): ABIMethod;
|
|
2034
|
+
/**
|
|
2035
|
+
* Checks for decode errors on the SendAppTransactionResult and maps the return value to the specified type
|
|
2036
|
+
* on the ARC-56 method, replacing the `return` property with the decoded type.
|
|
2037
|
+
*
|
|
2038
|
+
* If the return type is an ARC-56 struct then the struct will be returned.
|
|
2039
|
+
*
|
|
2040
|
+
* @param result The SendAppTransactionResult to be mapped
|
|
2041
|
+
* @param method The method that was called
|
|
2042
|
+
* @returns The smart contract response with an updated return value
|
|
2043
|
+
*/
|
|
2044
|
+
processMethodCallReturn<TReturn extends ABIValue | undefined, TResult extends SendAppTransactionResult = SendAppTransactionResult>(result: Promise<TResult> | TResult): Promise<Omit<TResult, 'return'> & AppReturn<TReturn>>;
|
|
2045
|
+
/**
|
|
2046
|
+
* Compiles the approval and clear state programs (if TEAL templates provided),
|
|
2047
|
+
* performing any provided deploy-time parameter replacement and stores
|
|
2048
|
+
* the source maps.
|
|
2049
|
+
*
|
|
2050
|
+
* If no TEAL templates provided it will use any byte code provided in the app spec.
|
|
2051
|
+
*
|
|
2052
|
+
* Will store any generated source maps for later use in debugging.
|
|
2053
|
+
* @param compilation Any compilation parameters to use
|
|
2054
|
+
* @returns The compiled code and any compilation results (including source maps)
|
|
2055
|
+
*/
|
|
2056
|
+
compile(compilation?: AppClientCompilationParams): Promise<AppClientCompilationResult>;
|
|
2057
|
+
/**
|
|
2058
|
+
* Takes an error that may include a logic error from a call to the current app and re-exposes the
|
|
2059
|
+
* error to include source code information via the source map and ARC-56 spec.
|
|
2060
|
+
* @param e The error to parse
|
|
2061
|
+
* @param appSpec The app spec for the app
|
|
2062
|
+
* @param details Additional information to inform the error
|
|
2063
|
+
* @returns The new error, or if there was no logic error or source map then the wrapped error with source details
|
|
2064
|
+
*/
|
|
2065
|
+
static exposeLogicError(e: Error, appSpec: Arc56Contract, details: {
|
|
2066
|
+
/** Whether or not the code was running the clear state program (defaults to approval program) */isClearStateProgram?: boolean;
|
|
2067
|
+
/** Approval program source map */
|
|
2068
|
+
approvalSourceMap?: ProgramSourceMap;
|
|
2069
|
+
/** Clear state program source map */
|
|
2070
|
+
clearSourceMap?: ProgramSourceMap;
|
|
2071
|
+
/** program bytes */
|
|
2072
|
+
program?: Uint8Array;
|
|
2073
|
+
/** ARC56 approval source info */
|
|
2074
|
+
approvalSourceInfo?: ProgramSourceInfo;
|
|
2075
|
+
/** ARC56 clear source info */
|
|
2076
|
+
clearSourceInfo?: ProgramSourceInfo;
|
|
2077
|
+
}): Error;
|
|
2078
|
+
/**
|
|
2079
|
+
* Compiles the approval and clear state programs (if TEAL templates provided),
|
|
2080
|
+
* performing any provided deploy-time parameter replacement and returns
|
|
2081
|
+
* the compiled code and any compilation results (including source maps).
|
|
2082
|
+
*
|
|
2083
|
+
* If no TEAL templates provided it will use any byte code provided in the app spec.
|
|
2084
|
+
*
|
|
2085
|
+
* Will store any generated source maps for later use in debugging.
|
|
2086
|
+
* @param appSpec The app spec for the app
|
|
2087
|
+
* @param appManager The app manager to use for compilation
|
|
2088
|
+
* @param compilation Any compilation parameters to use
|
|
2089
|
+
* @returns The compiled code and any compilation results (including source maps)
|
|
2090
|
+
*/
|
|
2091
|
+
static compile(appSpec: Arc56Contract, appManager: AppManager, compilation?: AppClientCompilationParams): Promise<AppClientCompilationResult>;
|
|
2092
|
+
/**
|
|
2093
|
+
* Returns ABI method arguments ready for a method call params object with default values populated
|
|
2094
|
+
* and structs replaced with tuples.
|
|
2095
|
+
*
|
|
2096
|
+
* It does this by replacing any `undefined` values with the equivalent default value from the given ARC-56 app spec.
|
|
2097
|
+
* @param methodNameOrSignature The method name or method signature to call if an ABI call is being emitted.
|
|
2098
|
+
* e.g. `my_method` or `my_method(unit64,string)bytes`
|
|
2099
|
+
* @param args The arguments to the method with `undefined` for any that should be populated with a default value
|
|
2100
|
+
*/
|
|
2101
|
+
private getABIArgsWithDefaultValues;
|
|
2102
|
+
private getDefaultValueFromStorage;
|
|
2103
|
+
private getBareParamsMethods;
|
|
2104
|
+
private getBareCreateTransactionMethods;
|
|
2105
|
+
private getBareSendMethods;
|
|
2106
|
+
private getMethodCallParamsMethods;
|
|
2107
|
+
private getMethodCallSendMethods;
|
|
2108
|
+
private getMethodCallCreateTransactionMethods;
|
|
2109
|
+
/** Returns the sender for a call, using the provided sender or using the `defaultSender`
|
|
2110
|
+
* if none provided and throws an error if neither provided */
|
|
2111
|
+
private getSender;
|
|
2112
|
+
/** Returns the signer for a call, using the provided signer or the `defaultSigner`
|
|
2113
|
+
* if no signer was provided and the sender resolves to the default sender, the call will use default signer
|
|
2114
|
+
* or `undefined` otherwise (so the signer is resolved from `AlgorandClient`) */
|
|
2115
|
+
private getSigner;
|
|
2116
|
+
private getBareParams;
|
|
2117
|
+
private getABIParams;
|
|
2118
|
+
/** Make the given call and catch any errors, augmenting with debugging information before re-throwing. */
|
|
2119
|
+
private handleCallErrors;
|
|
2120
|
+
private getBoxMethods;
|
|
2121
|
+
private getStateMethods;
|
|
2079
2122
|
}
|
|
2123
|
+
//#endregion
|
|
2124
|
+
export { AppClient, AppClientBareCallParams, AppClientCallABIArgs, AppClientCallArgs, AppClientCallCoreParams, AppClientCallParams, AppClientCallRawArgs, AppClientClearStateParams, AppClientCompilationParams, AppClientCompilationResult, AppClientCreateOnComplete, AppClientCreateParams, AppClientDeployCallInterfaceParams, AppClientDeployCoreParams, AppClientDeployParams, AppClientMethodCallParams, AppClientParams, AppClientUpdateParams, AppDetails, AppDetailsBase, AppSourceMaps, AppSpecAppDetails, AppSpecAppDetailsBase, AppSpecAppDetailsByCreatorAndName, AppSpecAppDetailsById, CallOnComplete, CloneAppClientParams, FundAppAccountParams, FundAppParams, ResolveAppByCreatorAndName, ResolveAppByCreatorAndNameBase, ResolveAppById, ResolveAppByIdBase, ResolveAppClientByCreatorAndName, ResolveAppClientByNetwork, SourceMapExport };
|
|
2125
|
+
//# sourceMappingURL=app-client.d.ts.map
|