@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
|
@@ -1,1089 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ABIValue } from "../packages/abi/src/abi-value.js";
|
|
3
|
-
import { ABIMethod } from "../packages/abi/src/abi-method.js";
|
|
4
|
-
import { AccessReference, OnApplicationComplete } from "../packages/transact/src/transactions/app-call.js";
|
|
5
|
-
import { Transaction } from "../packages/transact/src/transactions/transaction.js";
|
|
6
|
-
import { AddressWithTransactionSigner, SendingAddress, TransactionSigner } from "../packages/transact/src/signer.js";
|
|
7
|
-
import { AlgoAmount } from "./amount.js";
|
|
8
|
-
import { BoxIdentifier, BoxReference } from "./app-manager.js";
|
|
9
|
-
import { Expand } from "./expand.js";
|
|
10
|
-
import { AppCallParams, AppDeleteParams, AppMethodCallParams } from "../transactions/app-call.js";
|
|
11
|
-
import { AssetOptInParams, AssetOptOutParams, AssetTransferParams } from "../transactions/asset-transfer.js";
|
|
12
|
-
import { AssetConfigParams, AssetCreateParams, AssetDestroyParams, AssetFreezeParams } from "../transactions/asset-config.js";
|
|
13
|
-
import { OfflineKeyRegistrationParams, OnlineKeyRegistrationParams } from "../transactions/key-registration.js";
|
|
14
|
-
import { AppMethodCall } from "../transactions/method-call.js";
|
|
15
|
-
import { PaymentParams } from "../transactions/payment.js";
|
|
16
|
-
import { BuiltTransactions, TransactionComposer, TransactionComposerConfig } from "./composer.js";
|
|
17
|
-
import { TransactionWithSigner } from "../transaction/transaction.js";
|
|
1
|
+
import { AlgorandClientTransactionCreator as AlgorandClientTransactionCreator$1 } from "../algorand-client-transaction-creator.js";
|
|
18
2
|
|
|
19
3
|
//#region src/types/algorand-client-transaction-creator.d.ts
|
|
20
|
-
/**
|
|
21
|
-
declare
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* Creates a new `AlgorandClientTransactionCreator`
|
|
25
|
-
* @param newGroup A lambda that starts a new `TransactionComposer` transaction group
|
|
26
|
-
* @example
|
|
27
|
-
* ```typescript
|
|
28
|
-
* const transactionCreator = new AlgorandClientTransactionCreator(() => new TransactionComposer())
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
constructor(newGroup: (config?: TransactionComposerConfig) => TransactionComposer);
|
|
32
|
-
private _transaction;
|
|
33
|
-
private _transactions;
|
|
34
|
-
/**
|
|
35
|
-
* Create a payment transaction to transfer Algo between accounts.
|
|
36
|
-
* @param params The parameters for the payment transaction
|
|
37
|
-
* @example Basic example
|
|
38
|
-
* ```typescript
|
|
39
|
-
* await algorand.createTransaction.payment({
|
|
40
|
-
* sender: 'SENDERADDRESS',
|
|
41
|
-
* receiver: 'RECEIVERADDRESS',
|
|
42
|
-
* amount: (4).algo(),
|
|
43
|
-
* })
|
|
44
|
-
* ```
|
|
45
|
-
* @example Advanced example
|
|
46
|
-
* ```typescript
|
|
47
|
-
* await algorand.createTransaction.payment({
|
|
48
|
-
* amount: (4).algo(),
|
|
49
|
-
* receiver: 'RECEIVERADDRESS',
|
|
50
|
-
* sender: 'SENDERADDRESS',
|
|
51
|
-
* closeRemainderTo: 'CLOSEREMAINDERTOADDRESS',
|
|
52
|
-
* lease: 'lease',
|
|
53
|
-
* note: 'note',
|
|
54
|
-
* // Use this with caution, it's generally better to use algorand.account.rekeyAccount
|
|
55
|
-
* rekeyTo: 'REKEYTOADDRESS',
|
|
56
|
-
* // You wouldn't normally set this field
|
|
57
|
-
* firstValidRound: 1000n,
|
|
58
|
-
* validityWindow: 10,
|
|
59
|
-
* extraFee: (1000).microAlgo(),
|
|
60
|
-
* staticFee: (1000).microAlgo(),
|
|
61
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
62
|
-
* // already specified, but here for completeness
|
|
63
|
-
* maxFee: (3000).microAlgo(),
|
|
64
|
-
* })
|
|
65
|
-
* ```
|
|
66
|
-
* @returns The payment transaction
|
|
67
|
-
*/
|
|
68
|
-
payment: (params: PaymentParams) => Promise<Transaction>;
|
|
69
|
-
/** Create a create Algorand Standard Asset transaction.
|
|
70
|
-
*
|
|
71
|
-
* The account that sends this transaction will automatically be
|
|
72
|
-
* opted in to the asset and will hold all units after creation.
|
|
73
|
-
*
|
|
74
|
-
* @param params The parameters for the asset creation transaction
|
|
75
|
-
*
|
|
76
|
-
* @example Basic example
|
|
77
|
-
* ```typescript
|
|
78
|
-
* await algorand.createTransaction.assetCreate({ sender: "CREATORADDRESS", total: 100n})
|
|
79
|
-
* ```
|
|
80
|
-
* @example Advanced example
|
|
81
|
-
* ```typescript
|
|
82
|
-
* await algorand.createTransaction.assetCreate({
|
|
83
|
-
* sender: 'CREATORADDRESS',
|
|
84
|
-
* total: 100n,
|
|
85
|
-
* decimals: 2,
|
|
86
|
-
* assetName: 'asset',
|
|
87
|
-
* unitName: 'unit',
|
|
88
|
-
* url: 'url',
|
|
89
|
-
* metadataHash: 'metadataHash',
|
|
90
|
-
* defaultFrozen: false,
|
|
91
|
-
* manager: 'MANAGERADDRESS',
|
|
92
|
-
* reserve: 'RESERVEADDRESS',
|
|
93
|
-
* freeze: 'FREEZEADDRESS',
|
|
94
|
-
* clawback: 'CLAWBACKADDRESS',
|
|
95
|
-
* lease: 'lease',
|
|
96
|
-
* note: 'note',
|
|
97
|
-
* // You wouldn't normally set this field
|
|
98
|
-
* firstValidRound: 1000n,
|
|
99
|
-
* validityWindow: 10,
|
|
100
|
-
* extraFee: (1000).microAlgo(),
|
|
101
|
-
* staticFee: (1000).microAlgo(),
|
|
102
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
103
|
-
* // already specified, but here for completeness
|
|
104
|
-
* maxFee: (3000).microAlgo(),
|
|
105
|
-
* })
|
|
106
|
-
* ```
|
|
107
|
-
* @returns The asset create transaction
|
|
108
|
-
*/
|
|
109
|
-
assetCreate: (params: AssetCreateParams) => Promise<Transaction>;
|
|
110
|
-
/** Create an asset config transaction to reconfigure an existing Algorand Standard Asset.
|
|
111
|
-
*
|
|
112
|
-
* **Note:** The manager, reserve, freeze, and clawback addresses
|
|
113
|
-
* are immutably empty if they are not set. If manager is not set then
|
|
114
|
-
* all fields are immutable from that point forward.
|
|
115
|
-
*
|
|
116
|
-
* @param params The parameters for the asset config transaction
|
|
117
|
-
*
|
|
118
|
-
* @example Basic example
|
|
119
|
-
* ```typescript
|
|
120
|
-
* await algorand.createTransaction.assetConfig({ sender: "MANAGERADDRESS", assetId: 123456n, manager: "MANAGERADDRESS" })
|
|
121
|
-
* ```
|
|
122
|
-
* @example Advanced example
|
|
123
|
-
* ```typescript
|
|
124
|
-
* await algorand.createTransaction.assetConfig({
|
|
125
|
-
* sender: 'MANAGERADDRESS',
|
|
126
|
-
* assetId: 123456n,
|
|
127
|
-
* manager: 'MANAGERADDRESS',
|
|
128
|
-
* reserve: 'RESERVEADDRESS',
|
|
129
|
-
* freeze: 'FREEZEADDRESS',
|
|
130
|
-
* clawback: 'CLAWBACKADDRESS',
|
|
131
|
-
* lease: 'lease',
|
|
132
|
-
* note: 'note',
|
|
133
|
-
* // You wouldn't normally set this field
|
|
134
|
-
* firstValidRound: 1000n,
|
|
135
|
-
* validityWindow: 10,
|
|
136
|
-
* extraFee: (1000).microAlgo(),
|
|
137
|
-
* staticFee: (1000).microAlgo(),
|
|
138
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
139
|
-
* // already specified, but here for completeness
|
|
140
|
-
* maxFee: (3000).microAlgo(),
|
|
141
|
-
* })
|
|
142
|
-
* ```
|
|
143
|
-
* @returns The asset config transaction
|
|
144
|
-
*/
|
|
145
|
-
assetConfig: (params: AssetConfigParams) => Promise<Transaction>;
|
|
146
|
-
/** Create an Algorand Standard Asset freeze transaction.
|
|
147
|
-
*
|
|
148
|
-
* @param params The parameters for the asset freeze transaction
|
|
149
|
-
*
|
|
150
|
-
* @example Basic example
|
|
151
|
-
* ```typescript
|
|
152
|
-
* await algorand.createTransaction.assetFreeze({ sender: "MANAGERADDRESS", assetId: 123456n, account: "ACCOUNTADDRESS", frozen: true })
|
|
153
|
-
* ```
|
|
154
|
-
* @example Advanced example
|
|
155
|
-
* ```typescript
|
|
156
|
-
* await algorand.createTransaction.assetFreeze({
|
|
157
|
-
* sender: 'MANAGERADDRESS',
|
|
158
|
-
* assetId: 123456n,
|
|
159
|
-
* account: 'ACCOUNTADDRESS',
|
|
160
|
-
* frozen: true,
|
|
161
|
-
* lease: 'lease',
|
|
162
|
-
* note: 'note',
|
|
163
|
-
* // You wouldn't normally set this field
|
|
164
|
-
* firstValidRound: 1000n,
|
|
165
|
-
* validityWindow: 10,
|
|
166
|
-
* extraFee: (1000).microAlgo(),
|
|
167
|
-
* staticFee: (1000).microAlgo(),
|
|
168
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
169
|
-
* // already specified, but here for completeness
|
|
170
|
-
* maxFee: (3000).microAlgo(),
|
|
171
|
-
* })
|
|
172
|
-
* ```
|
|
173
|
-
* @returns The asset freeze transaction
|
|
174
|
-
*/
|
|
175
|
-
assetFreeze: (params: AssetFreezeParams) => Promise<Transaction>;
|
|
176
|
-
/** Create an Algorand Standard Asset destroy transaction.
|
|
177
|
-
*
|
|
178
|
-
* Created assets can be destroyed only by the asset manager account.
|
|
179
|
-
* All of the assets must be owned by the creator of the asset before
|
|
180
|
-
* the asset can be deleted.
|
|
181
|
-
*
|
|
182
|
-
* @param params The parameters for the asset destroy transaction
|
|
183
|
-
*
|
|
184
|
-
* @example Basic example
|
|
185
|
-
* ```typescript
|
|
186
|
-
* await algorand.createTransaction.assetDestroy({ sender: "MANAGERADDRESS", assetId: 123456n })
|
|
187
|
-
* ```
|
|
188
|
-
* @example Advanced example
|
|
189
|
-
* ```typescript
|
|
190
|
-
* await algorand.createTransaction.assetDestroy({
|
|
191
|
-
* sender: 'MANAGERADDRESS',
|
|
192
|
-
* assetId: 123456n,
|
|
193
|
-
* lease: 'lease',
|
|
194
|
-
* note: 'note',
|
|
195
|
-
* // You wouldn't normally set this field
|
|
196
|
-
* firstValidRound: 1000n,
|
|
197
|
-
* validityWindow: 10,
|
|
198
|
-
* extraFee: (1000).microAlgo(),
|
|
199
|
-
* staticFee: (1000).microAlgo(),
|
|
200
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
201
|
-
* // already specified, but here for completeness
|
|
202
|
-
* maxFee: (3000).microAlgo(),
|
|
203
|
-
* })
|
|
204
|
-
* ```
|
|
205
|
-
* @returns The asset destroy transaction
|
|
206
|
-
*/
|
|
207
|
-
assetDestroy: (params: AssetDestroyParams) => Promise<Transaction>;
|
|
208
|
-
/** Create an Algorand Standard Asset transfer transaction.
|
|
209
|
-
*
|
|
210
|
-
* @param params The parameters for the asset transfer transaction
|
|
211
|
-
*
|
|
212
|
-
* @example Basic example
|
|
213
|
-
* ```typescript
|
|
214
|
-
* await algorand.createTransaction.assetTransfer({ sender: "HOLDERADDRESS", assetId: 123456n, amount: 1n, receiver: "RECEIVERADDRESS" })
|
|
215
|
-
* ```
|
|
216
|
-
* @example Advanced example (with clawback)
|
|
217
|
-
* ```typescript
|
|
218
|
-
* await algorand.createTransaction.assetTransfer({
|
|
219
|
-
* sender: 'CLAWBACKADDRESS',
|
|
220
|
-
* assetId: 123456n,
|
|
221
|
-
* amount: 1n,
|
|
222
|
-
* receiver: 'RECEIVERADDRESS',
|
|
223
|
-
* clawbackTarget: 'HOLDERADDRESS',
|
|
224
|
-
* // This field needs to be used with caution
|
|
225
|
-
* closeAssetTo: 'ADDRESSTOCLOSETO'
|
|
226
|
-
* lease: 'lease',
|
|
227
|
-
* note: 'note',
|
|
228
|
-
* // You wouldn't normally set this field
|
|
229
|
-
* firstValidRound: 1000n,
|
|
230
|
-
* validityWindow: 10,
|
|
231
|
-
* extraFee: (1000).microAlgo(),
|
|
232
|
-
* staticFee: (1000).microAlgo(),
|
|
233
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
234
|
-
* // already specified, but here for completeness
|
|
235
|
-
* maxFee: (3000).microAlgo(),
|
|
236
|
-
* })
|
|
237
|
-
* ```
|
|
238
|
-
* @returns The result of the asset transfer transaction
|
|
239
|
-
*/
|
|
240
|
-
assetTransfer: (params: AssetTransferParams) => Promise<Transaction>;
|
|
241
|
-
/** Create an Algorand Standard Asset opt-in transaction.
|
|
242
|
-
*
|
|
243
|
-
* @param params The parameters for the asset opt-in transaction
|
|
244
|
-
*
|
|
245
|
-
* @example Basic example
|
|
246
|
-
* ```typescript
|
|
247
|
-
* await algorand.createTransaction.assetOptIn({ sender: "SENDERADDRESS", assetId: 123456n })
|
|
248
|
-
* ```
|
|
249
|
-
* @example Advanced example
|
|
250
|
-
* ```typescript
|
|
251
|
-
* await algorand.createTransaction.assetOptIn({
|
|
252
|
-
* sender: 'SENDERADDRESS',
|
|
253
|
-
* assetId: 123456n,
|
|
254
|
-
* lease: 'lease',
|
|
255
|
-
* note: 'note',
|
|
256
|
-
* // You wouldn't normally set this field
|
|
257
|
-
* firstValidRound: 1000n,
|
|
258
|
-
* validityWindow: 10,
|
|
259
|
-
* extraFee: (1000).microAlgo(),
|
|
260
|
-
* staticFee: (1000).microAlgo(),
|
|
261
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
262
|
-
* // already specified, but here for completeness
|
|
263
|
-
* maxFee: (3000).microAlgo(),
|
|
264
|
-
* })
|
|
265
|
-
* ```
|
|
266
|
-
* @returns The asset opt-in transaction
|
|
267
|
-
*/
|
|
268
|
-
assetOptIn: (params: AssetOptInParams) => Promise<Transaction>;
|
|
269
|
-
/** Create an asset opt-out transaction.
|
|
270
|
-
*
|
|
271
|
-
* *Note:* If the account has a balance of the asset,
|
|
272
|
-
* it will lose those assets
|
|
273
|
-
*
|
|
274
|
-
* @param params The parameters for the asset opt-out transaction
|
|
275
|
-
*
|
|
276
|
-
* @example Basic example (without creator, will be retrieved from algod)
|
|
277
|
-
* ```typescript
|
|
278
|
-
* await algorand.createTransaction.assetOptOut({ sender: "SENDERADDRESS", assetId: 123456n, ensureZeroBalance: true })
|
|
279
|
-
* ```
|
|
280
|
-
* @example Basic example (with creator)
|
|
281
|
-
* ```typescript
|
|
282
|
-
* await algorand.createTransaction.assetOptOut({ sender: "SENDERADDRESS", creator: "CREATORADDRESS", assetId: 123456n, ensureZeroBalance: true })
|
|
283
|
-
* ```
|
|
284
|
-
* @example Advanced example
|
|
285
|
-
* ```typescript
|
|
286
|
-
* await algorand.createTransaction.assetOptOut({
|
|
287
|
-
* sender: 'SENDERADDRESS',
|
|
288
|
-
* assetId: 123456n,
|
|
289
|
-
* creator: 'CREATORADDRESS',
|
|
290
|
-
* ensureZeroBalance: true,
|
|
291
|
-
* lease: 'lease',
|
|
292
|
-
* note: 'note',
|
|
293
|
-
* // You wouldn't normally set this field
|
|
294
|
-
* firstValidRound: 1000n,
|
|
295
|
-
* validityWindow: 10,
|
|
296
|
-
* extraFee: (1000).microAlgo(),
|
|
297
|
-
* staticFee: (1000).microAlgo(),
|
|
298
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
299
|
-
* // already specified, but here for completeness
|
|
300
|
-
* maxFee: (3000).microAlgo(),
|
|
301
|
-
* })
|
|
302
|
-
* ```
|
|
303
|
-
* @returns The asset opt-out transaction
|
|
304
|
-
*/
|
|
305
|
-
assetOptOut: (params: AssetOptOutParams) => Promise<Transaction>;
|
|
306
|
-
/** Create an application create transaction.
|
|
307
|
-
*
|
|
308
|
-
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
309
|
-
*
|
|
310
|
-
* @param params The parameters for the app creation transaction
|
|
311
|
-
* @example Basic example
|
|
312
|
-
* ```typescript
|
|
313
|
-
* await algorand.createTransaction.appCreate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })
|
|
314
|
-
* ```
|
|
315
|
-
* @example Advanced example
|
|
316
|
-
* ```typescript
|
|
317
|
-
* await algorand.createTransaction.appCreate({
|
|
318
|
-
* sender: 'CREATORADDRESS',
|
|
319
|
-
* approvalProgram: "TEALCODE",
|
|
320
|
-
* clearStateProgram: "TEALCODE",
|
|
321
|
-
* schema: {
|
|
322
|
-
* globalInts: 1,
|
|
323
|
-
* globalByteSlices: 2,
|
|
324
|
-
* localInts: 3,
|
|
325
|
-
* localByteSlices: 4
|
|
326
|
-
* },
|
|
327
|
-
* extraProgramPages: 1,
|
|
328
|
-
* onComplete: OnApplicationComplete.OptIn,
|
|
329
|
-
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
330
|
-
* accountReferences: ["ACCOUNT_1"]
|
|
331
|
-
* appReferences: [123n, 1234n]
|
|
332
|
-
* assetReferences: [12345n]
|
|
333
|
-
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
334
|
-
* accessReferences: [{ appId: 1234n }]
|
|
335
|
-
* lease: 'lease',
|
|
336
|
-
* note: 'note',
|
|
337
|
-
* // You wouldn't normally set this field
|
|
338
|
-
* firstValidRound: 1000n,
|
|
339
|
-
* validityWindow: 10,
|
|
340
|
-
* extraFee: (1000).microAlgo(),
|
|
341
|
-
* staticFee: (1000).microAlgo(),
|
|
342
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
343
|
-
* // already specified, but here for completeness
|
|
344
|
-
* maxFee: (3000).microAlgo(),
|
|
345
|
-
*})
|
|
346
|
-
* ```
|
|
347
|
-
* @returns The application create transaction
|
|
348
|
-
*/
|
|
349
|
-
appCreate: (params: {
|
|
350
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
351
|
-
sender: SendingAddress;
|
|
352
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
353
|
-
note?: string | Uint8Array | undefined;
|
|
354
|
-
lease?: string | Uint8Array | undefined;
|
|
355
|
-
staticFee?: AlgoAmount | undefined;
|
|
356
|
-
extraFee?: AlgoAmount | undefined;
|
|
357
|
-
maxFee?: AlgoAmount | undefined;
|
|
358
|
-
validityWindow?: number | bigint | undefined;
|
|
359
|
-
firstValidRound?: bigint | undefined;
|
|
360
|
-
lastValidRound?: bigint | undefined;
|
|
361
|
-
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
362
|
-
args?: Uint8Array[] | undefined;
|
|
363
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
364
|
-
appReferences?: bigint[] | undefined;
|
|
365
|
-
assetReferences?: bigint[] | undefined;
|
|
366
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
367
|
-
accessReferences?: AccessReference[] | undefined;
|
|
368
|
-
rejectVersion?: number | undefined;
|
|
369
|
-
approvalProgram: string | Uint8Array;
|
|
370
|
-
clearStateProgram: string | Uint8Array;
|
|
371
|
-
schema?: {
|
|
372
|
-
globalInts: number;
|
|
373
|
-
globalByteSlices: number;
|
|
374
|
-
localInts: number;
|
|
375
|
-
localByteSlices: number;
|
|
376
|
-
} | undefined;
|
|
377
|
-
extraProgramPages?: number | undefined;
|
|
378
|
-
}) => Promise<Transaction>;
|
|
379
|
-
/** Create an application update transaction.
|
|
380
|
-
*
|
|
381
|
-
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
382
|
-
*
|
|
383
|
-
* @param params The parameters for the app update transaction
|
|
384
|
-
* @example Basic example
|
|
385
|
-
* ```typescript
|
|
386
|
-
* await algorand.createTransaction.appUpdate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })
|
|
387
|
-
* ```
|
|
388
|
-
* @example Advanced example
|
|
389
|
-
* ```typescript
|
|
390
|
-
* await algorand.createTransaction.appUpdate({
|
|
391
|
-
* sender: 'CREATORADDRESS',
|
|
392
|
-
* approvalProgram: "TEALCODE",
|
|
393
|
-
* clearStateProgram: "TEALCODE",
|
|
394
|
-
* onComplete: OnApplicationComplete.UpdateApplication,
|
|
395
|
-
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
396
|
-
* accountReferences: ["ACCOUNT_1"]
|
|
397
|
-
* appReferences: [123n, 1234n]
|
|
398
|
-
* assetReferences: [12345n]
|
|
399
|
-
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
400
|
-
* accessReferences: [{ appId: 1234n }]
|
|
401
|
-
* lease: 'lease',
|
|
402
|
-
* note: 'note',
|
|
403
|
-
* // You wouldn't normally set this field
|
|
404
|
-
* firstValidRound: 1000n,
|
|
405
|
-
* validityWindow: 10,
|
|
406
|
-
* extraFee: (1000).microAlgo(),
|
|
407
|
-
* staticFee: (1000).microAlgo(),
|
|
408
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
409
|
-
* // already specified, but here for completeness
|
|
410
|
-
* maxFee: (3000).microAlgo(),
|
|
411
|
-
*})
|
|
412
|
-
* ```
|
|
413
|
-
* @returns The application update transaction
|
|
414
|
-
*/
|
|
415
|
-
appUpdate: (params: {
|
|
416
|
-
sender: SendingAddress;
|
|
417
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
418
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
419
|
-
note?: string | Uint8Array | undefined;
|
|
420
|
-
lease?: string | Uint8Array | undefined;
|
|
421
|
-
staticFee?: AlgoAmount | undefined;
|
|
422
|
-
extraFee?: AlgoAmount | undefined;
|
|
423
|
-
maxFee?: AlgoAmount | undefined;
|
|
424
|
-
validityWindow?: number | bigint | undefined;
|
|
425
|
-
firstValidRound?: bigint | undefined;
|
|
426
|
-
lastValidRound?: bigint | undefined;
|
|
427
|
-
appId: bigint;
|
|
428
|
-
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
429
|
-
args?: Uint8Array[] | undefined;
|
|
430
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
431
|
-
appReferences?: bigint[] | undefined;
|
|
432
|
-
assetReferences?: bigint[] | undefined;
|
|
433
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
434
|
-
accessReferences?: AccessReference[] | undefined;
|
|
435
|
-
rejectVersion?: number | undefined;
|
|
436
|
-
approvalProgram: string | Uint8Array;
|
|
437
|
-
clearStateProgram: string | Uint8Array;
|
|
438
|
-
}) => Promise<Transaction>;
|
|
439
|
-
/** Create an application delete transaction.
|
|
440
|
-
*
|
|
441
|
-
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
442
|
-
*
|
|
443
|
-
* @param params The parameters for the app deletion transaction
|
|
444
|
-
* @example Basic example
|
|
445
|
-
* ```typescript
|
|
446
|
-
* await algorand.createTransaction.appDelete({ sender: 'CREATORADDRESS' })
|
|
447
|
-
* ```
|
|
448
|
-
* @example Advanced example
|
|
449
|
-
* ```typescript
|
|
450
|
-
* await algorand.createTransaction.appDelete({
|
|
451
|
-
* sender: 'CREATORADDRESS',
|
|
452
|
-
* onComplete: OnApplicationComplete.DeleteApplication,
|
|
453
|
-
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
454
|
-
* accountReferences: ["ACCOUNT_1"]
|
|
455
|
-
* appReferences: [123n, 1234n]
|
|
456
|
-
* assetReferences: [12345n]
|
|
457
|
-
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
458
|
-
* accessReferences: [{ appId: 1234n }]
|
|
459
|
-
* lease: 'lease',
|
|
460
|
-
* note: 'note',
|
|
461
|
-
* // You wouldn't normally set this field
|
|
462
|
-
* firstValidRound: 1000n,
|
|
463
|
-
* validityWindow: 10,
|
|
464
|
-
* extraFee: (1000).microAlgo(),
|
|
465
|
-
* staticFee: (1000).microAlgo(),
|
|
466
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
467
|
-
* // already specified, but here for completeness
|
|
468
|
-
* maxFee: (3000).microAlgo(),
|
|
469
|
-
*})
|
|
470
|
-
* ```
|
|
471
|
-
* @returns The application delete transaction
|
|
472
|
-
*/
|
|
473
|
-
appDelete: (params: AppDeleteParams) => Promise<Transaction>;
|
|
474
|
-
/** Create an application call transaction.
|
|
475
|
-
*
|
|
476
|
-
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
477
|
-
*
|
|
478
|
-
* @param params The parameters for the app call transaction
|
|
479
|
-
* @example Basic example
|
|
480
|
-
* ```typescript
|
|
481
|
-
* await algorand.createTransaction.appCall({ sender: 'CREATORADDRESS' })
|
|
482
|
-
* ```
|
|
483
|
-
* @example Advanced example
|
|
484
|
-
* ```typescript
|
|
485
|
-
* await algorand.createTransaction.appCall({
|
|
486
|
-
* sender: 'CREATORADDRESS',
|
|
487
|
-
* onComplete: OnApplicationComplete.OptIn,
|
|
488
|
-
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
489
|
-
* accountReferences: ["ACCOUNT_1"]
|
|
490
|
-
* appReferences: [123n, 1234n]
|
|
491
|
-
* assetReferences: [12345n]
|
|
492
|
-
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
493
|
-
* accessReferences: [{ appId: 1234n }]
|
|
494
|
-
* lease: 'lease',
|
|
495
|
-
* note: 'note',
|
|
496
|
-
* // You wouldn't normally set this field
|
|
497
|
-
* firstValidRound: 1000n,
|
|
498
|
-
* validityWindow: 10,
|
|
499
|
-
* extraFee: (1000).microAlgo(),
|
|
500
|
-
* staticFee: (1000).microAlgo(),
|
|
501
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
502
|
-
* // already specified, but here for completeness
|
|
503
|
-
* maxFee: (3000).microAlgo(),
|
|
504
|
-
*})
|
|
505
|
-
* ```
|
|
506
|
-
* @returns The application call transaction
|
|
507
|
-
*/
|
|
508
|
-
appCall: (params: AppCallParams) => Promise<Transaction>;
|
|
509
|
-
/** Create an application create call with ABI method call transaction.
|
|
510
|
-
*
|
|
511
|
-
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
512
|
-
*
|
|
513
|
-
* @param params The parameters for the app creation transaction
|
|
514
|
-
* @example Basic example
|
|
515
|
-
* ```typescript
|
|
516
|
-
* const method = new ABIMethod({
|
|
517
|
-
* name: 'method',
|
|
518
|
-
* args: [{ name: 'arg1', type: 'string' }],
|
|
519
|
-
* returns: { type: 'string' },
|
|
520
|
-
* })
|
|
521
|
-
* await algorand.createTransaction.appCreateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: ["arg1_value"] })
|
|
522
|
-
* ```
|
|
523
|
-
* @example Advanced example
|
|
524
|
-
* ```typescript
|
|
525
|
-
* const method = new ABIMethod({
|
|
526
|
-
* name: 'method',
|
|
527
|
-
* args: [{ name: 'arg1', type: 'string' }],
|
|
528
|
-
* returns: { type: 'string' },
|
|
529
|
-
* })
|
|
530
|
-
* await algorand.createTransaction.appCreateMethodCall({
|
|
531
|
-
* sender: 'CREATORADDRESS',
|
|
532
|
-
* method: method,
|
|
533
|
-
* args: ["arg1_value"],
|
|
534
|
-
* approvalProgram: "TEALCODE",
|
|
535
|
-
* clearStateProgram: "TEALCODE",
|
|
536
|
-
* schema: {
|
|
537
|
-
* globalInts: 1,
|
|
538
|
-
* globalByteSlices: 2,
|
|
539
|
-
* localInts: 3,
|
|
540
|
-
* localByteSlices: 4
|
|
541
|
-
* },
|
|
542
|
-
* extraProgramPages: 1,
|
|
543
|
-
* onComplete: OnApplicationComplete.OptIn,
|
|
544
|
-
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
545
|
-
* accountReferences: ["ACCOUNT_1"]
|
|
546
|
-
* appReferences: [123n, 1234n]
|
|
547
|
-
* assetReferences: [12345n]
|
|
548
|
-
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
549
|
-
* accessReferences: [{ appId: 1234n }]
|
|
550
|
-
* lease: 'lease',
|
|
551
|
-
* note: 'note',
|
|
552
|
-
* // You wouldn't normally set this field
|
|
553
|
-
* firstValidRound: 1000n,
|
|
554
|
-
* validityWindow: 10,
|
|
555
|
-
* extraFee: (1000).microAlgo(),
|
|
556
|
-
* staticFee: (1000).microAlgo(),
|
|
557
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
558
|
-
* // already specified, but here for completeness
|
|
559
|
-
* maxFee: (3000).microAlgo(),
|
|
560
|
-
*})
|
|
561
|
-
* ```
|
|
562
|
-
* @returns The application ABI method create transaction
|
|
563
|
-
*/
|
|
564
|
-
appCreateMethodCall: (params: {
|
|
565
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
566
|
-
sender: SendingAddress;
|
|
567
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
568
|
-
note?: string | Uint8Array | undefined;
|
|
569
|
-
lease?: string | Uint8Array | undefined;
|
|
570
|
-
staticFee?: AlgoAmount | undefined;
|
|
571
|
-
extraFee?: AlgoAmount | undefined;
|
|
572
|
-
maxFee?: AlgoAmount | undefined;
|
|
573
|
-
validityWindow?: number | bigint | undefined;
|
|
574
|
-
firstValidRound?: bigint | undefined;
|
|
575
|
-
lastValidRound?: bigint | undefined;
|
|
576
|
-
approvalProgram: string | Uint8Array;
|
|
577
|
-
clearStateProgram: string | Uint8Array;
|
|
578
|
-
extraProgramPages?: number | undefined;
|
|
579
|
-
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
580
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
581
|
-
appReferences?: bigint[] | undefined;
|
|
582
|
-
assetReferences?: bigint[] | undefined;
|
|
583
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
584
|
-
accessReferences?: AccessReference[] | undefined;
|
|
585
|
-
rejectVersion?: number | undefined;
|
|
586
|
-
schema?: {
|
|
587
|
-
globalInts: number;
|
|
588
|
-
globalByteSlices: number;
|
|
589
|
-
localInts: number;
|
|
590
|
-
localByteSlices: number;
|
|
591
|
-
} | undefined;
|
|
592
|
-
method: ABIMethod;
|
|
593
|
-
args?: (Transaction | ABIValue | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
|
|
594
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
595
|
-
sender: SendingAddress;
|
|
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
|
-
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
606
|
-
args?: Uint8Array[] | undefined;
|
|
607
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
608
|
-
appReferences?: bigint[] | undefined;
|
|
609
|
-
assetReferences?: bigint[] | undefined;
|
|
610
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
611
|
-
accessReferences?: AccessReference[] | undefined;
|
|
612
|
-
rejectVersion?: number | undefined;
|
|
613
|
-
approvalProgram: string | Uint8Array;
|
|
614
|
-
clearStateProgram: string | Uint8Array;
|
|
615
|
-
schema?: {
|
|
616
|
-
globalInts: number;
|
|
617
|
-
globalByteSlices: number;
|
|
618
|
-
localInts: number;
|
|
619
|
-
localByteSlices: number;
|
|
620
|
-
} | undefined;
|
|
621
|
-
extraProgramPages?: number | undefined;
|
|
622
|
-
}> | AppMethodCall<{
|
|
623
|
-
sender: SendingAddress;
|
|
624
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
625
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
626
|
-
note?: string | Uint8Array | undefined;
|
|
627
|
-
lease?: string | Uint8Array | undefined;
|
|
628
|
-
staticFee?: AlgoAmount | undefined;
|
|
629
|
-
extraFee?: AlgoAmount | undefined;
|
|
630
|
-
maxFee?: AlgoAmount | undefined;
|
|
631
|
-
validityWindow?: number | bigint | undefined;
|
|
632
|
-
firstValidRound?: bigint | undefined;
|
|
633
|
-
lastValidRound?: bigint | undefined;
|
|
634
|
-
appId: bigint;
|
|
635
|
-
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
636
|
-
args?: Uint8Array[] | undefined;
|
|
637
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
638
|
-
appReferences?: bigint[] | undefined;
|
|
639
|
-
assetReferences?: bigint[] | undefined;
|
|
640
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
641
|
-
accessReferences?: AccessReference[] | undefined;
|
|
642
|
-
rejectVersion?: number | undefined;
|
|
643
|
-
approvalProgram: string | Uint8Array;
|
|
644
|
-
clearStateProgram: string | Uint8Array;
|
|
645
|
-
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
646
|
-
}) => Promise<Expand<BuiltTransactions>>;
|
|
647
|
-
/** Create an application update call with ABI method call transaction.
|
|
648
|
-
*
|
|
649
|
-
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
650
|
-
*
|
|
651
|
-
* @param params The parameters for the app update transaction
|
|
652
|
-
* @example Basic example
|
|
653
|
-
* ```typescript
|
|
654
|
-
* const method = new ABIMethod({
|
|
655
|
-
* name: 'method',
|
|
656
|
-
* args: [{ name: 'arg1', type: 'string' }],
|
|
657
|
-
* returns: { type: 'string' },
|
|
658
|
-
* })
|
|
659
|
-
* await algorand.createTransaction.appUpdateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: ["arg1_value"] })
|
|
660
|
-
* ```
|
|
661
|
-
* @example Advanced example
|
|
662
|
-
* ```typescript
|
|
663
|
-
* const method = new ABIMethod({
|
|
664
|
-
* name: 'method',
|
|
665
|
-
* args: [{ name: 'arg1', type: 'string' }],
|
|
666
|
-
* returns: { type: 'string' },
|
|
667
|
-
* })
|
|
668
|
-
* await algorand.createTransaction.appUpdateMethodCall({
|
|
669
|
-
* sender: 'CREATORADDRESS',
|
|
670
|
-
* method: method,
|
|
671
|
-
* args: ["arg1_value"],
|
|
672
|
-
* approvalProgram: "TEALCODE",
|
|
673
|
-
* clearStateProgram: "TEALCODE",
|
|
674
|
-
* onComplete: OnApplicationComplete.UpdateApplication,
|
|
675
|
-
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
676
|
-
* accountReferences: ["ACCOUNT_1"]
|
|
677
|
-
* appReferences: [123n, 1234n]
|
|
678
|
-
* assetReferences: [12345n]
|
|
679
|
-
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
680
|
-
* accessReferences: [{ appId: 1234n }]
|
|
681
|
-
* lease: 'lease',
|
|
682
|
-
* note: 'note',
|
|
683
|
-
* // You wouldn't normally set this field
|
|
684
|
-
* firstValidRound: 1000n,
|
|
685
|
-
* validityWindow: 10,
|
|
686
|
-
* extraFee: (1000).microAlgo(),
|
|
687
|
-
* staticFee: (1000).microAlgo(),
|
|
688
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
689
|
-
* // already specified, but here for completeness
|
|
690
|
-
* maxFee: (3000).microAlgo(),
|
|
691
|
-
*})
|
|
692
|
-
* ```
|
|
693
|
-
* @returns The application ABI method update transaction
|
|
694
|
-
*/
|
|
695
|
-
appUpdateMethodCall: (params: {
|
|
696
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
697
|
-
sender: SendingAddress;
|
|
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
|
-
approvalProgram: string | Uint8Array;
|
|
708
|
-
clearStateProgram: string | Uint8Array;
|
|
709
|
-
appId: bigint;
|
|
710
|
-
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
711
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
712
|
-
appReferences?: bigint[] | undefined;
|
|
713
|
-
assetReferences?: bigint[] | undefined;
|
|
714
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
715
|
-
accessReferences?: AccessReference[] | undefined;
|
|
716
|
-
rejectVersion?: number | undefined;
|
|
717
|
-
method: ABIMethod;
|
|
718
|
-
args?: (Transaction | ABIValue | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
|
|
719
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
720
|
-
sender: SendingAddress;
|
|
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?: AccessReference[] | undefined;
|
|
737
|
-
rejectVersion?: number | undefined;
|
|
738
|
-
approvalProgram: string | Uint8Array;
|
|
739
|
-
clearStateProgram: string | Uint8Array;
|
|
740
|
-
schema?: {
|
|
741
|
-
globalInts: number;
|
|
742
|
-
globalByteSlices: number;
|
|
743
|
-
localInts: number;
|
|
744
|
-
localByteSlices: number;
|
|
745
|
-
} | undefined;
|
|
746
|
-
extraProgramPages?: number | undefined;
|
|
747
|
-
}> | AppMethodCall<{
|
|
748
|
-
sender: SendingAddress;
|
|
749
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
750
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
751
|
-
note?: string | Uint8Array | undefined;
|
|
752
|
-
lease?: string | Uint8Array | undefined;
|
|
753
|
-
staticFee?: AlgoAmount | undefined;
|
|
754
|
-
extraFee?: AlgoAmount | undefined;
|
|
755
|
-
maxFee?: AlgoAmount | undefined;
|
|
756
|
-
validityWindow?: number | bigint | undefined;
|
|
757
|
-
firstValidRound?: bigint | undefined;
|
|
758
|
-
lastValidRound?: bigint | undefined;
|
|
759
|
-
appId: bigint;
|
|
760
|
-
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
761
|
-
args?: Uint8Array[] | undefined;
|
|
762
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
763
|
-
appReferences?: bigint[] | undefined;
|
|
764
|
-
assetReferences?: bigint[] | undefined;
|
|
765
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
766
|
-
accessReferences?: AccessReference[] | undefined;
|
|
767
|
-
rejectVersion?: number | undefined;
|
|
768
|
-
approvalProgram: string | Uint8Array;
|
|
769
|
-
clearStateProgram: string | Uint8Array;
|
|
770
|
-
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
771
|
-
}) => Promise<Expand<BuiltTransactions>>;
|
|
772
|
-
/** Create an application delete call with ABI method call transaction.
|
|
773
|
-
*
|
|
774
|
-
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
775
|
-
*
|
|
776
|
-
* @param params The parameters for the app deletion transaction
|
|
777
|
-
* @example Basic example
|
|
778
|
-
* ```typescript
|
|
779
|
-
* const method = new ABIMethod({
|
|
780
|
-
* name: 'method',
|
|
781
|
-
* args: [{ name: 'arg1', type: 'string' }],
|
|
782
|
-
* returns: { type: 'string' },
|
|
783
|
-
* })
|
|
784
|
-
* await algorand.createTransaction.appDeleteMethodCall({ sender: 'CREATORADDRESS', method: method, args: ["arg1_value"] })
|
|
785
|
-
* ```
|
|
786
|
-
* @example Advanced example
|
|
787
|
-
* ```typescript
|
|
788
|
-
* const method = new ABIMethod({
|
|
789
|
-
* name: 'method',
|
|
790
|
-
* args: [{ name: 'arg1', type: 'string' }],
|
|
791
|
-
* returns: { type: 'string' },
|
|
792
|
-
* })
|
|
793
|
-
* await algorand.createTransaction.appDeleteMethodCall({
|
|
794
|
-
* sender: 'CREATORADDRESS',
|
|
795
|
-
* method: method,
|
|
796
|
-
* args: ["arg1_value"],
|
|
797
|
-
* onComplete: OnApplicationComplete.DeleteApplication,
|
|
798
|
-
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
799
|
-
* accountReferences: ["ACCOUNT_1"]
|
|
800
|
-
* appReferences: [123n, 1234n]
|
|
801
|
-
* assetReferences: [12345n]
|
|
802
|
-
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
803
|
-
* accessReferences: [{ appId: 1234n }]
|
|
804
|
-
* lease: 'lease',
|
|
805
|
-
* note: 'note',
|
|
806
|
-
* // You wouldn't normally set this field
|
|
807
|
-
* firstValidRound: 1000n,
|
|
808
|
-
* validityWindow: 10,
|
|
809
|
-
* extraFee: (1000).microAlgo(),
|
|
810
|
-
* staticFee: (1000).microAlgo(),
|
|
811
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
812
|
-
* // already specified, but here for completeness
|
|
813
|
-
* maxFee: (3000).microAlgo(),
|
|
814
|
-
*})
|
|
815
|
-
* ```
|
|
816
|
-
* @returns The application ABI method delete transaction
|
|
817
|
-
*/
|
|
818
|
-
appDeleteMethodCall: (params: {
|
|
819
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
820
|
-
sender: SendingAddress;
|
|
821
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
822
|
-
note?: string | Uint8Array | undefined;
|
|
823
|
-
lease?: string | Uint8Array | undefined;
|
|
824
|
-
staticFee?: AlgoAmount | undefined;
|
|
825
|
-
extraFee?: AlgoAmount | undefined;
|
|
826
|
-
maxFee?: AlgoAmount | undefined;
|
|
827
|
-
validityWindow?: number | bigint | undefined;
|
|
828
|
-
firstValidRound?: bigint | undefined;
|
|
829
|
-
lastValidRound?: bigint | undefined;
|
|
830
|
-
appId: bigint;
|
|
831
|
-
onComplete?: OnApplicationComplete.DeleteApplication | undefined;
|
|
832
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
833
|
-
appReferences?: bigint[] | undefined;
|
|
834
|
-
assetReferences?: bigint[] | undefined;
|
|
835
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
836
|
-
accessReferences?: AccessReference[] | undefined;
|
|
837
|
-
rejectVersion?: number | undefined;
|
|
838
|
-
method: ABIMethod;
|
|
839
|
-
args?: (Transaction | ABIValue | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
|
|
840
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
841
|
-
sender: SendingAddress;
|
|
842
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
843
|
-
note?: string | Uint8Array | undefined;
|
|
844
|
-
lease?: string | Uint8Array | undefined;
|
|
845
|
-
staticFee?: AlgoAmount | undefined;
|
|
846
|
-
extraFee?: AlgoAmount | undefined;
|
|
847
|
-
maxFee?: AlgoAmount | undefined;
|
|
848
|
-
validityWindow?: number | bigint | undefined;
|
|
849
|
-
firstValidRound?: bigint | undefined;
|
|
850
|
-
lastValidRound?: bigint | undefined;
|
|
851
|
-
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
852
|
-
args?: Uint8Array[] | undefined;
|
|
853
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
854
|
-
appReferences?: bigint[] | undefined;
|
|
855
|
-
assetReferences?: bigint[] | undefined;
|
|
856
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
857
|
-
accessReferences?: AccessReference[] | undefined;
|
|
858
|
-
rejectVersion?: number | undefined;
|
|
859
|
-
approvalProgram: string | Uint8Array;
|
|
860
|
-
clearStateProgram: string | Uint8Array;
|
|
861
|
-
schema?: {
|
|
862
|
-
globalInts: number;
|
|
863
|
-
globalByteSlices: number;
|
|
864
|
-
localInts: number;
|
|
865
|
-
localByteSlices: number;
|
|
866
|
-
} | undefined;
|
|
867
|
-
extraProgramPages?: number | undefined;
|
|
868
|
-
}> | AppMethodCall<{
|
|
869
|
-
sender: SendingAddress;
|
|
870
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
871
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
872
|
-
note?: string | Uint8Array | undefined;
|
|
873
|
-
lease?: string | Uint8Array | undefined;
|
|
874
|
-
staticFee?: AlgoAmount | undefined;
|
|
875
|
-
extraFee?: AlgoAmount | undefined;
|
|
876
|
-
maxFee?: AlgoAmount | undefined;
|
|
877
|
-
validityWindow?: number | bigint | undefined;
|
|
878
|
-
firstValidRound?: bigint | undefined;
|
|
879
|
-
lastValidRound?: bigint | undefined;
|
|
880
|
-
appId: bigint;
|
|
881
|
-
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
882
|
-
args?: Uint8Array[] | undefined;
|
|
883
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
884
|
-
appReferences?: bigint[] | undefined;
|
|
885
|
-
assetReferences?: bigint[] | undefined;
|
|
886
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
887
|
-
accessReferences?: AccessReference[] | undefined;
|
|
888
|
-
rejectVersion?: number | undefined;
|
|
889
|
-
approvalProgram: string | Uint8Array;
|
|
890
|
-
clearStateProgram: string | Uint8Array;
|
|
891
|
-
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
892
|
-
}) => Promise<Expand<BuiltTransactions>>;
|
|
893
|
-
/** Create an application call with ABI method call transaction.
|
|
894
|
-
*
|
|
895
|
-
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
896
|
-
*
|
|
897
|
-
* @param params The parameters for the app call transaction
|
|
898
|
-
* @example Basic example
|
|
899
|
-
* ```typescript
|
|
900
|
-
* const method = new ABIMethod({
|
|
901
|
-
* name: 'method',
|
|
902
|
-
* args: [{ name: 'arg1', type: 'string' }],
|
|
903
|
-
* returns: { type: 'string' },
|
|
904
|
-
* })
|
|
905
|
-
* await algorand.createTransaction.appCallMethodCall({ sender: 'CREATORADDRESS', method: method, args: ["arg1_value"] })
|
|
906
|
-
* ```
|
|
907
|
-
* @example Advanced example
|
|
908
|
-
* ```typescript
|
|
909
|
-
* const method = new ABIMethod({
|
|
910
|
-
* name: 'method',
|
|
911
|
-
* args: [{ name: 'arg1', type: 'string' }],
|
|
912
|
-
* returns: { type: 'string' },
|
|
913
|
-
* })
|
|
914
|
-
* await algorand.createTransaction.appCallMethodCall({
|
|
915
|
-
* sender: 'CREATORADDRESS',
|
|
916
|
-
* method: method,
|
|
917
|
-
* args: ["arg1_value"],
|
|
918
|
-
* onComplete: OnApplicationComplete.OptIn,
|
|
919
|
-
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
920
|
-
* accountReferences: ["ACCOUNT_1"]
|
|
921
|
-
* appReferences: [123n, 1234n]
|
|
922
|
-
* assetReferences: [12345n]
|
|
923
|
-
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
924
|
-
* accessReferences: [{ appId: 1234n }]
|
|
925
|
-
* lease: 'lease',
|
|
926
|
-
* note: 'note',
|
|
927
|
-
* // You wouldn't normally set this field
|
|
928
|
-
* firstValidRound: 1000n,
|
|
929
|
-
* validityWindow: 10,
|
|
930
|
-
* extraFee: (1000).microAlgo(),
|
|
931
|
-
* staticFee: (1000).microAlgo(),
|
|
932
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
933
|
-
* // already specified, but here for completeness
|
|
934
|
-
* maxFee: (3000).microAlgo(),
|
|
935
|
-
*})
|
|
936
|
-
* ```
|
|
937
|
-
* @returns The application ABI method call transaction
|
|
938
|
-
*/
|
|
939
|
-
appCallMethodCall: (params: {
|
|
940
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
941
|
-
sender: SendingAddress;
|
|
942
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
943
|
-
note?: string | Uint8Array | undefined;
|
|
944
|
-
lease?: string | Uint8Array | undefined;
|
|
945
|
-
staticFee?: AlgoAmount | undefined;
|
|
946
|
-
extraFee?: AlgoAmount | undefined;
|
|
947
|
-
maxFee?: AlgoAmount | undefined;
|
|
948
|
-
validityWindow?: number | bigint | undefined;
|
|
949
|
-
firstValidRound?: bigint | undefined;
|
|
950
|
-
lastValidRound?: bigint | undefined;
|
|
951
|
-
appId: bigint;
|
|
952
|
-
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.DeleteApplication | undefined;
|
|
953
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
954
|
-
appReferences?: bigint[] | undefined;
|
|
955
|
-
assetReferences?: bigint[] | undefined;
|
|
956
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
957
|
-
accessReferences?: AccessReference[] | undefined;
|
|
958
|
-
rejectVersion?: number | undefined;
|
|
959
|
-
method: ABIMethod;
|
|
960
|
-
args?: (Transaction | ABIValue | Promise<Transaction> | TransactionWithSigner | AppMethodCall<{
|
|
961
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
962
|
-
sender: SendingAddress;
|
|
963
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
964
|
-
note?: string | Uint8Array | undefined;
|
|
965
|
-
lease?: string | Uint8Array | undefined;
|
|
966
|
-
staticFee?: AlgoAmount | undefined;
|
|
967
|
-
extraFee?: AlgoAmount | undefined;
|
|
968
|
-
maxFee?: AlgoAmount | undefined;
|
|
969
|
-
validityWindow?: number | bigint | undefined;
|
|
970
|
-
firstValidRound?: bigint | undefined;
|
|
971
|
-
lastValidRound?: bigint | undefined;
|
|
972
|
-
onComplete?: OnApplicationComplete.NoOp | OnApplicationComplete.OptIn | OnApplicationComplete.CloseOut | OnApplicationComplete.UpdateApplication | OnApplicationComplete.DeleteApplication | undefined;
|
|
973
|
-
args?: Uint8Array[] | undefined;
|
|
974
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
975
|
-
appReferences?: bigint[] | undefined;
|
|
976
|
-
assetReferences?: bigint[] | undefined;
|
|
977
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
978
|
-
accessReferences?: AccessReference[] | undefined;
|
|
979
|
-
rejectVersion?: number | undefined;
|
|
980
|
-
approvalProgram: string | Uint8Array;
|
|
981
|
-
clearStateProgram: string | Uint8Array;
|
|
982
|
-
schema?: {
|
|
983
|
-
globalInts: number;
|
|
984
|
-
globalByteSlices: number;
|
|
985
|
-
localInts: number;
|
|
986
|
-
localByteSlices: number;
|
|
987
|
-
} | undefined;
|
|
988
|
-
extraProgramPages?: number | undefined;
|
|
989
|
-
}> | AppMethodCall<{
|
|
990
|
-
sender: SendingAddress;
|
|
991
|
-
signer?: AddressWithTransactionSigner | TransactionSigner | undefined;
|
|
992
|
-
rekeyTo?: ReadableAddress | undefined;
|
|
993
|
-
note?: string | Uint8Array | undefined;
|
|
994
|
-
lease?: string | Uint8Array | undefined;
|
|
995
|
-
staticFee?: AlgoAmount | undefined;
|
|
996
|
-
extraFee?: AlgoAmount | undefined;
|
|
997
|
-
maxFee?: AlgoAmount | undefined;
|
|
998
|
-
validityWindow?: number | bigint | undefined;
|
|
999
|
-
firstValidRound?: bigint | undefined;
|
|
1000
|
-
lastValidRound?: bigint | undefined;
|
|
1001
|
-
appId: bigint;
|
|
1002
|
-
onComplete?: OnApplicationComplete.UpdateApplication | undefined;
|
|
1003
|
-
args?: Uint8Array[] | undefined;
|
|
1004
|
-
accountReferences?: ReadableAddress[] | undefined;
|
|
1005
|
-
appReferences?: bigint[] | undefined;
|
|
1006
|
-
assetReferences?: bigint[] | undefined;
|
|
1007
|
-
boxReferences?: (BoxIdentifier | BoxReference)[] | undefined;
|
|
1008
|
-
accessReferences?: AccessReference[] | undefined;
|
|
1009
|
-
rejectVersion?: number | undefined;
|
|
1010
|
-
approvalProgram: string | Uint8Array;
|
|
1011
|
-
clearStateProgram: string | Uint8Array;
|
|
1012
|
-
}> | AppMethodCall<AppMethodCallParams> | undefined)[] | undefined;
|
|
1013
|
-
}) => Promise<Expand<BuiltTransactions>>;
|
|
1014
|
-
/**
|
|
1015
|
-
* Create an online key registration transaction.
|
|
1016
|
-
* @param params The parameters for the key registration transaction
|
|
1017
|
-
* @example Basic example
|
|
1018
|
-
* ```typescript
|
|
1019
|
-
* await algorand.createTransaction.onlineKeyRegistration({
|
|
1020
|
-
* sender: 'SENDERADDRESS',
|
|
1021
|
-
* voteKey: Uint8Array.from(Buffer.from("voteKeyBase64", 'base64')),
|
|
1022
|
-
* selectionKey: Uint8Array.from(Buffer.from("selectionKeyBase64", 'base64')),
|
|
1023
|
-
* stateProofKey: Uint8Array.from(Buffer.from("stateProofKeyBase64", 'base64')),
|
|
1024
|
-
* voteFirst: 1n,
|
|
1025
|
-
* voteLast: 1000n,
|
|
1026
|
-
* voteKeyDilution: 1n,
|
|
1027
|
-
* })
|
|
1028
|
-
* ```
|
|
1029
|
-
* @example Advanced example
|
|
1030
|
-
* ```typescript
|
|
1031
|
-
* await algorand.createTransaction.onlineKeyRegistration({
|
|
1032
|
-
* sender: 'SENDERADDRESS',
|
|
1033
|
-
* voteKey: Uint8Array.from(Buffer.from("voteKeyBase64", 'base64')),
|
|
1034
|
-
* selectionKey: Uint8Array.from(Buffer.from("selectionKeyBase64", 'base64')),
|
|
1035
|
-
* stateProofKey: Uint8Array.from(Buffer.from("stateProofKeyBase64", 'base64')),
|
|
1036
|
-
* voteFirst: 1n,
|
|
1037
|
-
* voteLast: 1000n,
|
|
1038
|
-
* voteKeyDilution: 1n,
|
|
1039
|
-
* lease: 'lease',
|
|
1040
|
-
* note: 'note',
|
|
1041
|
-
* // Use this with caution, it's generally better to use algorand.account.rekeyAccount
|
|
1042
|
-
* rekeyTo: 'REKEYTOADDRESS',
|
|
1043
|
-
* // You wouldn't normally set this field
|
|
1044
|
-
* firstValidRound: 1000n,
|
|
1045
|
-
* validityWindow: 10,
|
|
1046
|
-
* extraFee: (1000).microAlgo(),
|
|
1047
|
-
* staticFee: (1000).microAlgo(),
|
|
1048
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
1049
|
-
* // already specified, but here for completeness
|
|
1050
|
-
* maxFee: (3000).microAlgo(),
|
|
1051
|
-
* })
|
|
1052
|
-
* ```
|
|
1053
|
-
* @returns The online key registration transaction
|
|
1054
|
-
*/
|
|
1055
|
-
onlineKeyRegistration: (params: OnlineKeyRegistrationParams) => Promise<Transaction>;
|
|
1056
|
-
/**
|
|
1057
|
-
* Create an offline key registration transaction.
|
|
1058
|
-
* @param params The parameters for the key registration transaction
|
|
1059
|
-
* @example Basic example
|
|
1060
|
-
* ```typescript
|
|
1061
|
-
* await algorand.createTransaction.offlineKeyRegistration({
|
|
1062
|
-
* sender: 'SENDERADDRESS',
|
|
1063
|
-
* })
|
|
1064
|
-
* ```
|
|
1065
|
-
* @example Advanced example
|
|
1066
|
-
* ```typescript
|
|
1067
|
-
* await algorand.createTransaction.offlineKeyRegistration({
|
|
1068
|
-
* sender: 'SENDERADDRESS',
|
|
1069
|
-
* lease: 'lease',
|
|
1070
|
-
* note: 'note',
|
|
1071
|
-
* // Use this with caution, it's generally better to use algorand.account.rekeyAccount
|
|
1072
|
-
* rekeyTo: 'REKEYTOADDRESS',
|
|
1073
|
-
* // You wouldn't normally set this field
|
|
1074
|
-
* firstValidRound: 1000n,
|
|
1075
|
-
* validityWindow: 10,
|
|
1076
|
-
* extraFee: (1000).microAlgo(),
|
|
1077
|
-
* staticFee: (1000).microAlgo(),
|
|
1078
|
-
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
1079
|
-
* // already specified, but here for completeness
|
|
1080
|
-
* maxFee: (3000).microAlgo(),
|
|
1081
|
-
* })
|
|
1082
|
-
* ```
|
|
1083
|
-
* @returns The offline key registration transaction
|
|
1084
|
-
*/
|
|
1085
|
-
offlineKeyRegistration: (params: OfflineKeyRegistrationParams) => Promise<Transaction>;
|
|
1086
|
-
}
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/algorand-client-transaction-creator` instead */
|
|
5
|
+
declare const AlgorandClientTransactionCreator: typeof AlgorandClientTransactionCreator$1;
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/algorand-client-transaction-creator` instead */
|
|
7
|
+
type AlgorandClientTransactionCreator = AlgorandClientTransactionCreator$1;
|
|
1087
8
|
//#endregion
|
|
1088
9
|
export { AlgorandClientTransactionCreator };
|
|
1089
10
|
//# sourceMappingURL=algorand-client-transaction-creator.d.ts.map
|