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