@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/types/app.d.ts
CHANGED
|
@@ -1,257 +1,72 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ABIValue } from "../packages/abi/src/abi-value.js";
|
|
3
|
-
import { ABIType } from "../packages/abi/src/abi-type.js";
|
|
4
|
-
import { ABIMethod, ABIReturn } from "../packages/abi/src/abi-method.js";
|
|
5
|
-
import { BoxReference, OnApplicationComplete } from "../packages/transact/src/transactions/app-call.js";
|
|
6
|
-
import { Transaction } from "../packages/transact/src/transactions/transaction.js";
|
|
7
|
-
import { SuggestedParams } from "../packages/algod_client/src/models/suggested-params.js";
|
|
8
|
-
import { ProgramSourceMap } from "../packages/sdk/src/logic/sourcemap.js";
|
|
9
|
-
import { BoxIdentifier, BoxReference as BoxReference$1 } from "./app-manager.js";
|
|
10
|
-
import { Expand } from "./expand.js";
|
|
11
|
-
import { SendSingleTransactionResult, SendTransactionFrom, SendTransactionParams, SendTransactionResult, SendTransactionResults, TransactionNote, TransactionToSign } from "./transaction.js";
|
|
12
|
-
import { TransactionWithSigner } from "../transaction/transaction.js";
|
|
1
|
+
import { ABIAppCallArg as ABIAppCallArg$1, ABIAppCallArgs as ABIAppCallArgs$1, AppCallArgs as AppCallArgs$1, AppCallParams as AppCallParams$1, AppCallTransactionResult as AppCallTransactionResult$1, AppCallTransactionResultOfType as AppCallTransactionResultOfType$1, AppCompilationResult as AppCompilationResult$1, AppDeployMetadata as AppDeployMetadata$1, AppLookup as AppLookup$1, AppMetadata as AppMetadata$1, AppReference as AppReference$1, AppReturn as AppReturn$1, AppState as AppState$1, AppStorageSchema as AppStorageSchema$1, BoxName as BoxName$1, BoxValueRequestParams as BoxValueRequestParams$1, BoxValuesRequestParams as BoxValuesRequestParams$1, CompiledTeal as CompiledTeal$1, CoreAppCallArgs as CoreAppCallArgs$1, OnSchemaBreak as OnSchemaBreak$1, OnUpdate as OnUpdate$1, RawAppCallArgs as RawAppCallArgs$1, SendAppCreateTransactionResult as SendAppCreateTransactionResult$1, SendAppTransactionResult as SendAppTransactionResult$1, SendAppUpdateTransactionResult as SendAppUpdateTransactionResult$1, TealTemplateParams as TealTemplateParams$1 } from "../app.js";
|
|
13
2
|
|
|
14
3
|
//#region src/types/app.d.ts
|
|
15
|
-
|
|
16
|
-
/** The name of the TEAL template variable for deploy-time immutability control */
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
17
5
|
declare const UPDATABLE_TEMPLATE_NAME = "TMPL_UPDATABLE";
|
|
18
|
-
/**
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
19
7
|
declare const DELETABLE_TEMPLATE_NAME = "TMPL_DELETABLE";
|
|
20
|
-
/**
|
|
8
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
21
9
|
declare const APP_DEPLOY_NOTE_DAPP = "ALGOKIT_DEPLOYER";
|
|
22
|
-
/**
|
|
10
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
23
11
|
declare const APP_PAGE_MAX_SIZE = 2048;
|
|
24
|
-
/**
|
|
12
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
25
13
|
declare const ABI_RETURN_PREFIX: Uint8Array;
|
|
26
|
-
/**
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
type
|
|
62
|
-
/**
|
|
63
|
-
|
|
64
|
-
*/
|
|
65
|
-
type
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
type
|
|
76
|
-
/**
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
/** The account to make the call from */
|
|
83
|
-
from: SendTransactionFrom;
|
|
84
|
-
/** Optional transaction parameters */
|
|
85
|
-
transactionParams?: SuggestedParams;
|
|
86
|
-
/** The (optional) transaction note */
|
|
87
|
-
note?: TransactionNote;
|
|
88
|
-
/** The arguments passed in to the app call */
|
|
89
|
-
args?: AppCallArgs;
|
|
90
|
-
}
|
|
91
|
-
/** Parameters representing the storage schema of an app. */
|
|
92
|
-
interface AppStorageSchema {
|
|
93
|
-
/** Restricts number of ints in per-user local state */
|
|
94
|
-
localInts: number;
|
|
95
|
-
/** Restricts number of byte slices in per-user local state */
|
|
96
|
-
localByteSlices: number;
|
|
97
|
-
/** Restricts number of ints in global state */
|
|
98
|
-
globalInts: number;
|
|
99
|
-
/** Restricts number of byte slices in global state */
|
|
100
|
-
globalByteSlices: number;
|
|
101
|
-
/** Any extra pages that are needed for the smart contract; if left blank then the right number of pages will be calculated based on the teal code size */
|
|
102
|
-
extraPages?: number;
|
|
103
|
-
}
|
|
104
|
-
/** Information about a compiled teal program */
|
|
105
|
-
interface CompiledTeal {
|
|
106
|
-
/** Original TEAL code */
|
|
107
|
-
teal: string;
|
|
108
|
-
/** The compiled code */
|
|
109
|
-
compiled: string;
|
|
110
|
-
/** The hash returned by the compiler */
|
|
111
|
-
compiledHash: string;
|
|
112
|
-
/** The base64 encoded code as a byte array */
|
|
113
|
-
compiledBase64ToBytes: Uint8Array;
|
|
114
|
-
/** Source map from the compilation */
|
|
115
|
-
sourceMap: SourceMap;
|
|
116
|
-
}
|
|
117
|
-
interface AppCallTransactionResultOfType<T> extends SendTransactionResults, SendTransactionResult {
|
|
118
|
-
/** If an ABI method was called the processed return value */
|
|
119
|
-
return?: T;
|
|
120
|
-
}
|
|
121
|
-
/** Result from calling an app */
|
|
122
|
-
type AppCallTransactionResult = AppCallTransactionResultOfType<ABIReturn>;
|
|
123
|
-
/**
|
|
124
|
-
* The payload of the metadata to add to the transaction note when deploying an app, noting it will be prefixed with `APP_DEPLOY_NOTE_PREFIX`.
|
|
125
|
-
*/
|
|
126
|
-
interface AppDeployMetadata {
|
|
127
|
-
/** The unique name identifier of the app within the creator account */
|
|
128
|
-
name: string;
|
|
129
|
-
/** The version of app that is / will be deployed */
|
|
130
|
-
version: string;
|
|
131
|
-
/** Whether or not the app is deletable / permanent / unspecified */
|
|
132
|
-
deletable?: boolean;
|
|
133
|
-
/** Whether or not the app is updatable / immutable / unspecified */
|
|
134
|
-
updatable?: boolean;
|
|
135
|
-
}
|
|
136
|
-
/** The metadata that can be collected about a deployed app */
|
|
137
|
-
interface AppMetadata extends AppReference, AppDeployMetadata {
|
|
138
|
-
/** The round the app was created */
|
|
139
|
-
createdRound: number;
|
|
140
|
-
/** The last round that the app was updated */
|
|
141
|
-
updatedRound: number;
|
|
142
|
-
/** The metadata when the app was created */
|
|
143
|
-
createdMetadata: AppDeployMetadata;
|
|
144
|
-
/** Whether or not the app is deleted */
|
|
145
|
-
deleted: boolean;
|
|
146
|
-
}
|
|
147
|
-
/** A lookup of name -> Algorand app for a creator */
|
|
148
|
-
interface AppLookup {
|
|
149
|
-
creator: Readonly<string>;
|
|
150
|
-
apps: Readonly<{
|
|
151
|
-
[name: string]: AppMetadata;
|
|
152
|
-
}>;
|
|
153
|
-
}
|
|
154
|
-
/** Dictionary of deploy-time parameters to replace in a teal template.
|
|
155
|
-
*
|
|
156
|
-
* Note: Looks for `TMPL_{parameter}` for template replacements i.e. you can leave out the `TMPL_`.
|
|
157
|
-
*
|
|
158
|
-
*/
|
|
159
|
-
interface TealTemplateParams {
|
|
160
|
-
[key: string]: string | bigint | number | Uint8Array;
|
|
161
|
-
}
|
|
162
|
-
/** What action to perform when deploying an app and an update is detected in the TEAL code */
|
|
163
|
-
declare enum OnUpdate {
|
|
164
|
-
/** Fail the deployment */
|
|
165
|
-
Fail = 0,
|
|
166
|
-
/** Update the app */
|
|
167
|
-
UpdateApp = 1,
|
|
168
|
-
/** Delete the app and create a new one in its place */
|
|
169
|
-
ReplaceApp = 2,
|
|
170
|
-
/** Create a new app */
|
|
171
|
-
AppendApp = 3,
|
|
172
|
-
}
|
|
173
|
-
/** What action to perform when deploying an app and a breaking schema change is detected */
|
|
174
|
-
declare enum OnSchemaBreak {
|
|
175
|
-
/** Fail the deployment */
|
|
176
|
-
Fail = 0,
|
|
177
|
-
/** Delete the app and create a new one in its place */
|
|
178
|
-
ReplaceApp = 1,
|
|
179
|
-
/** Create a new app */
|
|
180
|
-
AppendApp = 2,
|
|
181
|
-
}
|
|
182
|
-
/** The result of compiling the approval and clear state TEAL programs for an app */
|
|
183
|
-
interface AppCompilationResult {
|
|
184
|
-
/** The result of compiling the approval program */
|
|
185
|
-
compiledApproval: CompiledTeal;
|
|
186
|
-
/** The result of compiling the clear state program */
|
|
187
|
-
compiledClear: CompiledTeal;
|
|
188
|
-
}
|
|
189
|
-
type AppReturn<TReturn> = {
|
|
190
|
-
/** The ABI method call return value */
|
|
191
|
-
return?: TReturn;
|
|
192
|
-
};
|
|
193
|
-
/** Result from sending a single app transaction. */
|
|
194
|
-
type SendAppTransactionResult = Expand<SendSingleTransactionResult & {
|
|
195
|
-
/** If an ABI method was called the processed return value */
|
|
196
|
-
return?: ABIReturn;
|
|
197
|
-
}>;
|
|
198
|
-
/** Result from sending a single app transaction. */
|
|
199
|
-
type SendAppUpdateTransactionResult = Expand<SendAppTransactionResult & Partial<AppCompilationResult>>;
|
|
200
|
-
/** Result from sending a single app transaction. */
|
|
201
|
-
type SendAppCreateTransactionResult = Expand<SendAppUpdateTransactionResult & {
|
|
202
|
-
/** The id of the created app */
|
|
203
|
-
appId: bigint;
|
|
204
|
-
/** The Algorand address of the account associated with the app */
|
|
205
|
-
appAddress: Address;
|
|
206
|
-
}>;
|
|
207
|
-
/** Object holding app state values */
|
|
208
|
-
interface AppState {
|
|
209
|
-
[key: string]: {
|
|
210
|
-
value: bigint;
|
|
211
|
-
keyRaw: Uint8Array;
|
|
212
|
-
keyBase64: string;
|
|
213
|
-
} | {
|
|
214
|
-
value: string;
|
|
215
|
-
valueRaw: Uint8Array;
|
|
216
|
-
valueBase64: string;
|
|
217
|
-
keyRaw: Uint8Array;
|
|
218
|
-
keyBase64: string;
|
|
219
|
-
};
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* The name of a box storage box */
|
|
223
|
-
interface BoxName {
|
|
224
|
-
/** Name in UTF-8 */
|
|
225
|
-
name: string;
|
|
226
|
-
/** Name in binary bytes */
|
|
227
|
-
nameRaw: Uint8Array;
|
|
228
|
-
/** Name in Base64 */
|
|
229
|
-
nameBase64: string;
|
|
230
|
-
}
|
|
231
|
-
/**
|
|
232
|
-
* @deprecated Use `types/app-manager/BoxValueRequestParams` instead.
|
|
233
|
-
* Parameters to get and decode a box value as an ABI type.
|
|
234
|
-
*/
|
|
235
|
-
interface BoxValueRequestParams {
|
|
236
|
-
/** The ID of the app return box names for */
|
|
237
|
-
appId: number | bigint;
|
|
238
|
-
/** The name of the box to return either as a string, binary array or `BoxName` */
|
|
239
|
-
boxName: string | Uint8Array | BoxName;
|
|
240
|
-
/** The ABI type to decode the value using */
|
|
241
|
-
type: ABIType;
|
|
242
|
-
}
|
|
243
|
-
/**
|
|
244
|
-
* @deprecated Use `types/app-manager/BoxValuesRequestParams` instead.
|
|
245
|
-
* Parameters to get and decode a box value as an ABI type.
|
|
246
|
-
*/
|
|
247
|
-
interface BoxValuesRequestParams {
|
|
248
|
-
/** The ID of the app return box names for */
|
|
249
|
-
appId: number;
|
|
250
|
-
/** The names of the boxes to return either as a string, binary array or BoxName` */
|
|
251
|
-
boxNames: (string | Uint8Array | BoxName)[];
|
|
252
|
-
/** The ABI type to decode the value using */
|
|
253
|
-
type: ABIType;
|
|
254
|
-
}
|
|
14
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
15
|
+
declare const OnUpdate: typeof OnUpdate$1;
|
|
16
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
17
|
+
type OnUpdate = OnUpdate$1;
|
|
18
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
19
|
+
declare const OnSchemaBreak: typeof OnSchemaBreak$1;
|
|
20
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
21
|
+
type OnSchemaBreak = OnSchemaBreak$1;
|
|
22
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
23
|
+
type AppReference = AppReference$1;
|
|
24
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
25
|
+
type CoreAppCallArgs = CoreAppCallArgs$1;
|
|
26
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
27
|
+
type RawAppCallArgs = RawAppCallArgs$1;
|
|
28
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
29
|
+
type ABIAppCallArg = ABIAppCallArg$1;
|
|
30
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
31
|
+
type ABIAppCallArgs = ABIAppCallArgs$1;
|
|
32
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
33
|
+
type AppCallArgs = AppCallArgs$1;
|
|
34
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
35
|
+
type AppCallParams = AppCallParams$1;
|
|
36
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
37
|
+
type AppStorageSchema = AppStorageSchema$1;
|
|
38
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
39
|
+
type CompiledTeal = CompiledTeal$1;
|
|
40
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
41
|
+
type AppCallTransactionResultOfType<T> = AppCallTransactionResultOfType$1<T>;
|
|
42
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
43
|
+
type AppCallTransactionResult = AppCallTransactionResult$1;
|
|
44
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
45
|
+
type AppDeployMetadata = AppDeployMetadata$1;
|
|
46
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
47
|
+
type AppMetadata = AppMetadata$1;
|
|
48
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
49
|
+
type AppLookup = AppLookup$1;
|
|
50
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
51
|
+
type TealTemplateParams = TealTemplateParams$1;
|
|
52
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
53
|
+
type AppCompilationResult = AppCompilationResult$1;
|
|
54
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
55
|
+
type AppReturn<TReturn> = AppReturn$1<TReturn>;
|
|
56
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
57
|
+
type SendAppTransactionResult = SendAppTransactionResult$1;
|
|
58
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
59
|
+
type SendAppUpdateTransactionResult = SendAppUpdateTransactionResult$1;
|
|
60
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
61
|
+
type SendAppCreateTransactionResult = SendAppCreateTransactionResult$1;
|
|
62
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
63
|
+
type AppState = AppState$1;
|
|
64
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
65
|
+
type BoxName = BoxName$1;
|
|
66
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
67
|
+
type BoxValueRequestParams = BoxValueRequestParams$1;
|
|
68
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
69
|
+
type BoxValuesRequestParams = BoxValuesRequestParams$1;
|
|
255
70
|
//#endregion
|
|
256
71
|
export { ABIAppCallArg, ABIAppCallArgs, ABI_RETURN_PREFIX, APP_DEPLOY_NOTE_DAPP, APP_PAGE_MAX_SIZE, AppCallArgs, AppCallParams, AppCallTransactionResult, AppCallTransactionResultOfType, AppCompilationResult, AppDeployMetadata, AppLookup, AppMetadata, AppReference, AppReturn, AppState, AppStorageSchema, BoxName, BoxValueRequestParams, BoxValuesRequestParams, CompiledTeal, CoreAppCallArgs, DELETABLE_TEMPLATE_NAME, OnSchemaBreak, OnUpdate, RawAppCallArgs, SendAppCreateTransactionResult, SendAppTransactionResult, SendAppUpdateTransactionResult, TealTemplateParams, UPDATABLE_TEMPLATE_NAME };
|
|
257
72
|
//# sourceMappingURL=app.d.ts.map
|
package/types/app.js
CHANGED
|
@@ -1,42 +1,20 @@
|
|
|
1
|
+
const require_app = require('../app.js');
|
|
1
2
|
|
|
2
3
|
//#region src/types/app.ts
|
|
3
|
-
/**
|
|
4
|
-
const UPDATABLE_TEMPLATE_NAME =
|
|
5
|
-
/**
|
|
6
|
-
const DELETABLE_TEMPLATE_NAME =
|
|
7
|
-
/**
|
|
8
|
-
const APP_DEPLOY_NOTE_DAPP =
|
|
9
|
-
/**
|
|
10
|
-
const APP_PAGE_MAX_SIZE =
|
|
11
|
-
/**
|
|
12
|
-
const ABI_RETURN_PREFIX =
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
]);
|
|
18
|
-
/** What action to perform when deploying an app and an update is detected in the TEAL code */
|
|
19
|
-
let OnUpdate = /* @__PURE__ */ function(OnUpdate$1) {
|
|
20
|
-
/** Fail the deployment */
|
|
21
|
-
OnUpdate$1[OnUpdate$1["Fail"] = 0] = "Fail";
|
|
22
|
-
/** Update the app */
|
|
23
|
-
OnUpdate$1[OnUpdate$1["UpdateApp"] = 1] = "UpdateApp";
|
|
24
|
-
/** Delete the app and create a new one in its place */
|
|
25
|
-
OnUpdate$1[OnUpdate$1["ReplaceApp"] = 2] = "ReplaceApp";
|
|
26
|
-
/** Create a new app */
|
|
27
|
-
OnUpdate$1[OnUpdate$1["AppendApp"] = 3] = "AppendApp";
|
|
28
|
-
return OnUpdate$1;
|
|
29
|
-
}({});
|
|
30
|
-
/** What action to perform when deploying an app and a breaking schema change is detected */
|
|
31
|
-
let OnSchemaBreak = /* @__PURE__ */ function(OnSchemaBreak$1) {
|
|
32
|
-
/** Fail the deployment */
|
|
33
|
-
OnSchemaBreak$1[OnSchemaBreak$1["Fail"] = 0] = "Fail";
|
|
34
|
-
/** Delete the app and create a new one in its place */
|
|
35
|
-
OnSchemaBreak$1[OnSchemaBreak$1["ReplaceApp"] = 1] = "ReplaceApp";
|
|
36
|
-
/** Create a new app */
|
|
37
|
-
OnSchemaBreak$1[OnSchemaBreak$1["AppendApp"] = 2] = "AppendApp";
|
|
38
|
-
return OnSchemaBreak$1;
|
|
39
|
-
}({});
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
5
|
+
const UPDATABLE_TEMPLATE_NAME = require_app.UPDATABLE_TEMPLATE_NAME;
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
7
|
+
const DELETABLE_TEMPLATE_NAME = require_app.DELETABLE_TEMPLATE_NAME;
|
|
8
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
9
|
+
const APP_DEPLOY_NOTE_DAPP = require_app.APP_DEPLOY_NOTE_DAPP;
|
|
10
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
11
|
+
const APP_PAGE_MAX_SIZE = require_app.APP_PAGE_MAX_SIZE;
|
|
12
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
13
|
+
const ABI_RETURN_PREFIX = require_app.ABI_RETURN_PREFIX;
|
|
14
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
15
|
+
const OnUpdate = require_app.OnUpdate;
|
|
16
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
17
|
+
const OnSchemaBreak = require_app.OnSchemaBreak;
|
|
40
18
|
|
|
41
19
|
//#endregion
|
|
42
20
|
exports.ABI_RETURN_PREFIX = ABI_RETURN_PREFIX;
|
package/types/app.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.js","names":[],"sources":["../../src/types/app.ts"],"sourcesContent":["import { ABIMethod, ABIReturn, ABIType, ABIValue } from '@algorandfoundation/algokit-abi'\nimport { SuggestedParams } from '@algorandfoundation/algokit-algod-client'\nimport { Address } from '@algorandfoundation/algokit-common'\nimport { OnApplicationComplete, BoxReference as TransactBoxReference, Transaction } from '@algorandfoundation/algokit-transact'\nimport { ProgramSourceMap } from '@algorandfoundation/sdk'\nimport { TransactionWithSigner } from '../transaction'\nimport { BoxIdentifier, BoxReference } from './app-manager'\nimport { Expand } from './expand'\nimport {\n SendSingleTransactionResult,\n SendTransactionFrom,\n SendTransactionParams,\n SendTransactionResult,\n SendTransactionResults,\n TransactionNote,\n TransactionToSign,\n} from './transaction'\ntype SourceMap = ProgramSourceMap\n\n/** The name of the TEAL template variable for deploy-time immutability control */\nexport const UPDATABLE_TEMPLATE_NAME = 'TMPL_UPDATABLE'\n\n/** The name of the TEAL template variable for deploy-time permanence control */\nexport const DELETABLE_TEMPLATE_NAME = 'TMPL_DELETABLE'\n\n/** The app create/update [ARC-2](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0002.md) transaction note prefix */\nexport const APP_DEPLOY_NOTE_DAPP = 'ALGOKIT_DEPLOYER'\n\n/** The maximum number of bytes in a single app code page */\nexport const APP_PAGE_MAX_SIZE = 2048\n\n/** First 4 bytes of SHA-512/256 hash of \"return\" for retrieving ABI return values */\nexport const ABI_RETURN_PREFIX = new Uint8Array([21, 31, 124, 117])\n\n/** Information about an Algorand app */\nexport interface AppReference {\n /** The id of the app */\n appId: number | bigint\n /** The Algorand address of the account associated with the app */\n appAddress: string\n}\n\n/** Common app call arguments for ABI and non-ABI (raw) calls */\nexport interface CoreAppCallArgs {\n /** The optional lease for the transaction */\n lease?: string | Uint8Array\n /** Any box references to load */\n boxes?: (TransactBoxReference | BoxReference | BoxIdentifier)[]\n /** The address of any accounts to load in */\n accounts?: (string | Address)[]\n /** IDs of any apps to load into the foreignApps array */\n apps?: number[]\n /** IDs of any assets to load into the foreignAssets array */\n assets?: number[]\n /** Optional account / account address that should be authorised to transact on behalf of the from account the app call is sent from after this transaction.\n *\n * **Note:** Use with extreme caution and review the [official rekey guidance](https://dev.algorand.co/concepts/accounts/rekeying) first.\n */\n rekeyTo?: SendTransactionFrom | string\n}\n\n/**\n * App call args with non-ABI (raw) values (minus some processing like encoding strings as binary)\n */\nexport interface RawAppCallArgs extends CoreAppCallArgs {\n /** Any application arguments to pass through */\n appArgs?: (Uint8Array | string)[]\n /** Property to aid intellisense */\n method?: undefined\n}\n\n/** An argument for an ABI method, either a primitive value, or a transaction with or without signer, or the unawaited async return value of an algokit method that returns a `SendTransactionResult` */\nexport type ABIAppCallArg =\n | ABIValue\n | TransactionWithSigner\n | TransactionToSign\n | Transaction\n | Promise<SendTransactionResult>\n | SendTransactionResult\n | undefined\n\n/**\n * App call args for an ABI call\n */\nexport type ABIAppCallArgs = CoreAppCallArgs & {\n /** The ABI method to call */\n method: ABIMethod\n /** The ABI method args to pass in */\n methodArgs: ABIAppCallArg[]\n}\n\n/** Arguments to pass to an app call either:\n * * The raw app call values to pass through into the transaction (after processing); or\n * * An ABI method definition (method and args)\n **/\nexport type AppCallArgs = RawAppCallArgs | ABIAppCallArgs\n\n/** Parameters representing a call to an app. */\nexport interface AppCallParams extends SendTransactionParams {\n /** The id of the app to call */\n appId: number | bigint\n /** The type of call, everything except create (see `createApp`) and update (see `updateApp`) */\n callType: Exclude<OnApplicationComplete, OnApplicationComplete.UpdateApplication>\n /** The account to make the call from */\n from: SendTransactionFrom\n /** Optional transaction parameters */\n transactionParams?: SuggestedParams\n /** The (optional) transaction note */\n note?: TransactionNote\n /** The arguments passed in to the app call */\n args?: AppCallArgs\n}\n\n/** Parameters representing the storage schema of an app. */\nexport interface AppStorageSchema {\n /** Restricts number of ints in per-user local state */\n localInts: number\n /** Restricts number of byte slices in per-user local state */\n localByteSlices: number\n /** Restricts number of ints in global state */\n globalInts: number\n /** Restricts number of byte slices in global state */\n globalByteSlices: number\n /** Any extra pages that are needed for the smart contract; if left blank then the right number of pages will be calculated based on the teal code size */\n extraPages?: number\n}\n\n/** Information about a compiled teal program */\nexport interface CompiledTeal {\n /** Original TEAL code */\n teal: string\n /** The compiled code */\n compiled: string\n /** The hash returned by the compiler */\n compiledHash: string\n /** The base64 encoded code as a byte array */\n compiledBase64ToBytes: Uint8Array\n /** Source map from the compilation */\n sourceMap: SourceMap\n}\n\nexport interface AppCallTransactionResultOfType<T> extends SendTransactionResults, SendTransactionResult {\n /** If an ABI method was called the processed return value */\n return?: T\n}\n\n/** Result from calling an app */\nexport type AppCallTransactionResult = AppCallTransactionResultOfType<ABIReturn>\n\n/**\n * The payload of the metadata to add to the transaction note when deploying an app, noting it will be prefixed with `APP_DEPLOY_NOTE_PREFIX`.\n */\nexport interface AppDeployMetadata {\n /** The unique name identifier of the app within the creator account */\n name: string\n /** The version of app that is / will be deployed */\n version: string\n /** Whether or not the app is deletable / permanent / unspecified */\n deletable?: boolean\n /** Whether or not the app is updatable / immutable / unspecified */\n updatable?: boolean\n}\n\n/** The metadata that can be collected about a deployed app */\nexport interface AppMetadata extends AppReference, AppDeployMetadata {\n /** The round the app was created */\n createdRound: number\n /** The last round that the app was updated */\n updatedRound: number\n /** The metadata when the app was created */\n createdMetadata: AppDeployMetadata\n /** Whether or not the app is deleted */\n deleted: boolean\n}\n\n/** A lookup of name -> Algorand app for a creator */\nexport interface AppLookup {\n creator: Readonly<string>\n apps: Readonly<{\n [name: string]: AppMetadata\n }>\n}\n\n/** Dictionary of deploy-time parameters to replace in a teal template.\n *\n * Note: Looks for `TMPL_{parameter}` for template replacements i.e. you can leave out the `TMPL_`.\n *\n */\nexport interface TealTemplateParams {\n [key: string]: string | bigint | number | Uint8Array\n}\n\n/** What action to perform when deploying an app and an update is detected in the TEAL code */\nexport enum OnUpdate {\n /** Fail the deployment */\n Fail,\n /** Update the app */\n UpdateApp,\n /** Delete the app and create a new one in its place */\n ReplaceApp,\n /** Create a new app */\n AppendApp,\n}\n\n/** What action to perform when deploying an app and a breaking schema change is detected */\nexport enum OnSchemaBreak {\n /** Fail the deployment */\n Fail,\n /** Delete the app and create a new one in its place */\n ReplaceApp,\n /** Create a new app */\n AppendApp,\n}\n\n/** The result of compiling the approval and clear state TEAL programs for an app */\nexport interface AppCompilationResult {\n /** The result of compiling the approval program */\n compiledApproval: CompiledTeal\n /** The result of compiling the clear state program */\n compiledClear: CompiledTeal\n}\n\nexport type AppReturn<TReturn> = {\n /** The ABI method call return value */\n return?: TReturn\n}\n\n/** Result from sending a single app transaction. */\nexport type SendAppTransactionResult = Expand<\n SendSingleTransactionResult & {\n /** If an ABI method was called the processed return value */\n return?: ABIReturn\n }\n>\n\n/** Result from sending a single app transaction. */\nexport type SendAppUpdateTransactionResult = Expand<SendAppTransactionResult & Partial<AppCompilationResult>>\n\n/** Result from sending a single app transaction. */\nexport type SendAppCreateTransactionResult = Expand<\n SendAppUpdateTransactionResult & {\n /** The id of the created app */\n appId: bigint\n /** The Algorand address of the account associated with the app */\n appAddress: Address\n }\n>\n\n/** Object holding app state values */\nexport interface AppState {\n [key: string]:\n | {\n value: bigint\n keyRaw: Uint8Array\n keyBase64: string\n }\n | {\n value: string\n valueRaw: Uint8Array\n valueBase64: string\n keyRaw: Uint8Array\n keyBase64: string\n }\n}\n\n/**\n * The name of a box storage box */\nexport interface BoxName {\n /** Name in UTF-8 */\n name: string\n /** Name in binary bytes */\n nameRaw: Uint8Array\n /** Name in Base64 */\n nameBase64: string\n}\n\n/**\n * @deprecated Use `types/app-manager/BoxValueRequestParams` instead.\n * Parameters to get and decode a box value as an ABI type.\n */\nexport interface BoxValueRequestParams {\n /** The ID of the app return box names for */\n appId: number | bigint\n /** The name of the box to return either as a string, binary array or `BoxName` */\n boxName: string | Uint8Array | BoxName\n /** The ABI type to decode the value using */\n type: ABIType\n}\n\n/**\n * @deprecated Use `types/app-manager/BoxValuesRequestParams` instead.\n * Parameters to get and decode a box value as an ABI type.\n */\nexport interface BoxValuesRequestParams {\n /** The ID of the app return box names for */\n appId: number\n /** The names of the boxes to return either as a string, binary array or BoxName` */\n boxNames: (string | Uint8Array | BoxName)[]\n /** The ABI type to decode the value using */\n type: ABIType\n}\n"],"mappings":";;;AAoBA,MAAa,0BAA0B;;AAGvC,MAAa,0BAA0B;;AAGvC,MAAa,uBAAuB;;AAGpC,MAAa,oBAAoB;;AAGjC,MAAa,oBAAoB,IAAI,WAAW;CAAC;CAAI;CAAI;CAAK;CAAI,CAAC;;AAiKnE,IAAY,gDAAL;;AAEL;;AAEA;;AAEA;;AAEA;;;;AAIF,IAAY,0DAAL;;AAEL;;AAEA;;AAEA"}
|
|
1
|
+
{"version":3,"file":"app.js","names":["_UPDATABLE_TEMPLATE_NAME","_DELETABLE_TEMPLATE_NAME","_APP_DEPLOY_NOTE_DAPP","_APP_PAGE_MAX_SIZE","_ABI_RETURN_PREFIX","_OnUpdate","_OnSchemaBreak"],"sources":["../../src/types/app.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/app'\n\nimport {\n UPDATABLE_TEMPLATE_NAME as _UPDATABLE_TEMPLATE_NAME,\n DELETABLE_TEMPLATE_NAME as _DELETABLE_TEMPLATE_NAME,\n APP_DEPLOY_NOTE_DAPP as _APP_DEPLOY_NOTE_DAPP,\n APP_PAGE_MAX_SIZE as _APP_PAGE_MAX_SIZE,\n ABI_RETURN_PREFIX as _ABI_RETURN_PREFIX,\n OnUpdate as _OnUpdate,\n OnSchemaBreak as _OnSchemaBreak,\n type AppReference as _AppReference,\n type CoreAppCallArgs as _CoreAppCallArgs,\n type RawAppCallArgs as _RawAppCallArgs,\n type ABIAppCallArg as _ABIAppCallArg,\n type ABIAppCallArgs as _ABIAppCallArgs,\n type AppCallArgs as _AppCallArgs,\n type AppCallParams as _AppCallParams,\n type AppStorageSchema as _AppStorageSchema,\n type CompiledTeal as _CompiledTeal,\n type AppCallTransactionResultOfType as _AppCallTransactionResultOfType,\n type AppCallTransactionResult as _AppCallTransactionResult,\n type AppDeployMetadata as _AppDeployMetadata,\n type AppMetadata as _AppMetadata,\n type AppLookup as _AppLookup,\n type TealTemplateParams as _TealTemplateParams,\n type AppCompilationResult as _AppCompilationResult,\n type AppReturn as _AppReturn,\n type SendAppTransactionResult as _SendAppTransactionResult,\n type SendAppUpdateTransactionResult as _SendAppUpdateTransactionResult,\n type SendAppCreateTransactionResult as _SendAppCreateTransactionResult,\n type AppState as _AppState,\n type BoxName as _BoxName,\n type BoxValueRequestParams as _BoxValueRequestParams,\n type BoxValuesRequestParams as _BoxValuesRequestParams,\n} from '../app'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const UPDATABLE_TEMPLATE_NAME = _UPDATABLE_TEMPLATE_NAME\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const DELETABLE_TEMPLATE_NAME = _DELETABLE_TEMPLATE_NAME\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const APP_DEPLOY_NOTE_DAPP = _APP_DEPLOY_NOTE_DAPP\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const APP_PAGE_MAX_SIZE = _APP_PAGE_MAX_SIZE\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const ABI_RETURN_PREFIX = _ABI_RETURN_PREFIX\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const OnUpdate = _OnUpdate\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type OnUpdate = _OnUpdate\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const OnSchemaBreak = _OnSchemaBreak\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type OnSchemaBreak = _OnSchemaBreak\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppReference = _AppReference\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type CoreAppCallArgs = _CoreAppCallArgs\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type RawAppCallArgs = _RawAppCallArgs\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type ABIAppCallArg = _ABIAppCallArg\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type ABIAppCallArgs = _ABIAppCallArgs\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppCallArgs = _AppCallArgs\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppCallParams = _AppCallParams\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppStorageSchema = _AppStorageSchema\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type CompiledTeal = _CompiledTeal\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppCallTransactionResultOfType<T> = _AppCallTransactionResultOfType<T>\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppCallTransactionResult = _AppCallTransactionResult\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppDeployMetadata = _AppDeployMetadata\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppMetadata = _AppMetadata\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppLookup = _AppLookup\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type TealTemplateParams = _TealTemplateParams\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppCompilationResult = _AppCompilationResult\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppReturn<TReturn> = _AppReturn<TReturn>\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type SendAppTransactionResult = _SendAppTransactionResult\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type SendAppUpdateTransactionResult = _SendAppUpdateTransactionResult\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type SendAppCreateTransactionResult = _SendAppCreateTransactionResult\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppState = _AppState\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type BoxName = _BoxName\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type BoxValueRequestParams = _BoxValueRequestParams\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type BoxValuesRequestParams = _BoxValuesRequestParams\n"],"mappings":";;;;AAsCA,MAAa,0BAA0BA;;AAGvC,MAAa,0BAA0BC;;AAGvC,MAAa,uBAAuBC;;AAGpC,MAAa,oBAAoBC;;AAGjC,MAAa,oBAAoBC;;AAGjC,MAAa,WAAWC;;AAKxB,MAAa,gBAAgBC"}
|
package/types/app.mjs
CHANGED
|
@@ -1,41 +1,20 @@
|
|
|
1
|
+
import { ABI_RETURN_PREFIX as ABI_RETURN_PREFIX$1, APP_DEPLOY_NOTE_DAPP as APP_DEPLOY_NOTE_DAPP$1, APP_PAGE_MAX_SIZE as APP_PAGE_MAX_SIZE$1, DELETABLE_TEMPLATE_NAME as DELETABLE_TEMPLATE_NAME$1, OnSchemaBreak as OnSchemaBreak$1, OnUpdate as OnUpdate$1, UPDATABLE_TEMPLATE_NAME as UPDATABLE_TEMPLATE_NAME$1 } from "../app.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/types/app.ts
|
|
2
|
-
/**
|
|
3
|
-
const UPDATABLE_TEMPLATE_NAME =
|
|
4
|
-
/**
|
|
5
|
-
const DELETABLE_TEMPLATE_NAME =
|
|
6
|
-
/**
|
|
7
|
-
const APP_DEPLOY_NOTE_DAPP =
|
|
8
|
-
/**
|
|
9
|
-
const APP_PAGE_MAX_SIZE =
|
|
10
|
-
/**
|
|
11
|
-
const ABI_RETURN_PREFIX =
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
]);
|
|
17
|
-
/** What action to perform when deploying an app and an update is detected in the TEAL code */
|
|
18
|
-
let OnUpdate = /* @__PURE__ */ function(OnUpdate$1) {
|
|
19
|
-
/** Fail the deployment */
|
|
20
|
-
OnUpdate$1[OnUpdate$1["Fail"] = 0] = "Fail";
|
|
21
|
-
/** Update the app */
|
|
22
|
-
OnUpdate$1[OnUpdate$1["UpdateApp"] = 1] = "UpdateApp";
|
|
23
|
-
/** Delete the app and create a new one in its place */
|
|
24
|
-
OnUpdate$1[OnUpdate$1["ReplaceApp"] = 2] = "ReplaceApp";
|
|
25
|
-
/** Create a new app */
|
|
26
|
-
OnUpdate$1[OnUpdate$1["AppendApp"] = 3] = "AppendApp";
|
|
27
|
-
return OnUpdate$1;
|
|
28
|
-
}({});
|
|
29
|
-
/** What action to perform when deploying an app and a breaking schema change is detected */
|
|
30
|
-
let OnSchemaBreak = /* @__PURE__ */ function(OnSchemaBreak$1) {
|
|
31
|
-
/** Fail the deployment */
|
|
32
|
-
OnSchemaBreak$1[OnSchemaBreak$1["Fail"] = 0] = "Fail";
|
|
33
|
-
/** Delete the app and create a new one in its place */
|
|
34
|
-
OnSchemaBreak$1[OnSchemaBreak$1["ReplaceApp"] = 1] = "ReplaceApp";
|
|
35
|
-
/** Create a new app */
|
|
36
|
-
OnSchemaBreak$1[OnSchemaBreak$1["AppendApp"] = 2] = "AppendApp";
|
|
37
|
-
return OnSchemaBreak$1;
|
|
38
|
-
}({});
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
5
|
+
const UPDATABLE_TEMPLATE_NAME = UPDATABLE_TEMPLATE_NAME$1;
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
7
|
+
const DELETABLE_TEMPLATE_NAME = DELETABLE_TEMPLATE_NAME$1;
|
|
8
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
9
|
+
const APP_DEPLOY_NOTE_DAPP = APP_DEPLOY_NOTE_DAPP$1;
|
|
10
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
11
|
+
const APP_PAGE_MAX_SIZE = APP_PAGE_MAX_SIZE$1;
|
|
12
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
13
|
+
const ABI_RETURN_PREFIX = ABI_RETURN_PREFIX$1;
|
|
14
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
15
|
+
const OnUpdate = OnUpdate$1;
|
|
16
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */
|
|
17
|
+
const OnSchemaBreak = OnSchemaBreak$1;
|
|
39
18
|
|
|
40
19
|
//#endregion
|
|
41
20
|
export { ABI_RETURN_PREFIX, APP_DEPLOY_NOTE_DAPP, APP_PAGE_MAX_SIZE, DELETABLE_TEMPLATE_NAME, OnSchemaBreak, OnUpdate, UPDATABLE_TEMPLATE_NAME };
|
package/types/app.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app.mjs","names":[],"sources":["../../src/types/app.ts"],"sourcesContent":["import { ABIMethod, ABIReturn, ABIType, ABIValue } from '@algorandfoundation/algokit-abi'\nimport { SuggestedParams } from '@algorandfoundation/algokit-algod-client'\nimport { Address } from '@algorandfoundation/algokit-common'\nimport { OnApplicationComplete, BoxReference as TransactBoxReference, Transaction } from '@algorandfoundation/algokit-transact'\nimport { ProgramSourceMap } from '@algorandfoundation/sdk'\nimport { TransactionWithSigner } from '../transaction'\nimport { BoxIdentifier, BoxReference } from './app-manager'\nimport { Expand } from './expand'\nimport {\n SendSingleTransactionResult,\n SendTransactionFrom,\n SendTransactionParams,\n SendTransactionResult,\n SendTransactionResults,\n TransactionNote,\n TransactionToSign,\n} from './transaction'\ntype SourceMap = ProgramSourceMap\n\n/** The name of the TEAL template variable for deploy-time immutability control */\nexport const UPDATABLE_TEMPLATE_NAME = 'TMPL_UPDATABLE'\n\n/** The name of the TEAL template variable for deploy-time permanence control */\nexport const DELETABLE_TEMPLATE_NAME = 'TMPL_DELETABLE'\n\n/** The app create/update [ARC-2](https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0002.md) transaction note prefix */\nexport const APP_DEPLOY_NOTE_DAPP = 'ALGOKIT_DEPLOYER'\n\n/** The maximum number of bytes in a single app code page */\nexport const APP_PAGE_MAX_SIZE = 2048\n\n/** First 4 bytes of SHA-512/256 hash of \"return\" for retrieving ABI return values */\nexport const ABI_RETURN_PREFIX = new Uint8Array([21, 31, 124, 117])\n\n/** Information about an Algorand app */\nexport interface AppReference {\n /** The id of the app */\n appId: number | bigint\n /** The Algorand address of the account associated with the app */\n appAddress: string\n}\n\n/** Common app call arguments for ABI and non-ABI (raw) calls */\nexport interface CoreAppCallArgs {\n /** The optional lease for the transaction */\n lease?: string | Uint8Array\n /** Any box references to load */\n boxes?: (TransactBoxReference | BoxReference | BoxIdentifier)[]\n /** The address of any accounts to load in */\n accounts?: (string | Address)[]\n /** IDs of any apps to load into the foreignApps array */\n apps?: number[]\n /** IDs of any assets to load into the foreignAssets array */\n assets?: number[]\n /** Optional account / account address that should be authorised to transact on behalf of the from account the app call is sent from after this transaction.\n *\n * **Note:** Use with extreme caution and review the [official rekey guidance](https://dev.algorand.co/concepts/accounts/rekeying) first.\n */\n rekeyTo?: SendTransactionFrom | string\n}\n\n/**\n * App call args with non-ABI (raw) values (minus some processing like encoding strings as binary)\n */\nexport interface RawAppCallArgs extends CoreAppCallArgs {\n /** Any application arguments to pass through */\n appArgs?: (Uint8Array | string)[]\n /** Property to aid intellisense */\n method?: undefined\n}\n\n/** An argument for an ABI method, either a primitive value, or a transaction with or without signer, or the unawaited async return value of an algokit method that returns a `SendTransactionResult` */\nexport type ABIAppCallArg =\n | ABIValue\n | TransactionWithSigner\n | TransactionToSign\n | Transaction\n | Promise<SendTransactionResult>\n | SendTransactionResult\n | undefined\n\n/**\n * App call args for an ABI call\n */\nexport type ABIAppCallArgs = CoreAppCallArgs & {\n /** The ABI method to call */\n method: ABIMethod\n /** The ABI method args to pass in */\n methodArgs: ABIAppCallArg[]\n}\n\n/** Arguments to pass to an app call either:\n * * The raw app call values to pass through into the transaction (after processing); or\n * * An ABI method definition (method and args)\n **/\nexport type AppCallArgs = RawAppCallArgs | ABIAppCallArgs\n\n/** Parameters representing a call to an app. */\nexport interface AppCallParams extends SendTransactionParams {\n /** The id of the app to call */\n appId: number | bigint\n /** The type of call, everything except create (see `createApp`) and update (see `updateApp`) */\n callType: Exclude<OnApplicationComplete, OnApplicationComplete.UpdateApplication>\n /** The account to make the call from */\n from: SendTransactionFrom\n /** Optional transaction parameters */\n transactionParams?: SuggestedParams\n /** The (optional) transaction note */\n note?: TransactionNote\n /** The arguments passed in to the app call */\n args?: AppCallArgs\n}\n\n/** Parameters representing the storage schema of an app. */\nexport interface AppStorageSchema {\n /** Restricts number of ints in per-user local state */\n localInts: number\n /** Restricts number of byte slices in per-user local state */\n localByteSlices: number\n /** Restricts number of ints in global state */\n globalInts: number\n /** Restricts number of byte slices in global state */\n globalByteSlices: number\n /** Any extra pages that are needed for the smart contract; if left blank then the right number of pages will be calculated based on the teal code size */\n extraPages?: number\n}\n\n/** Information about a compiled teal program */\nexport interface CompiledTeal {\n /** Original TEAL code */\n teal: string\n /** The compiled code */\n compiled: string\n /** The hash returned by the compiler */\n compiledHash: string\n /** The base64 encoded code as a byte array */\n compiledBase64ToBytes: Uint8Array\n /** Source map from the compilation */\n sourceMap: SourceMap\n}\n\nexport interface AppCallTransactionResultOfType<T> extends SendTransactionResults, SendTransactionResult {\n /** If an ABI method was called the processed return value */\n return?: T\n}\n\n/** Result from calling an app */\nexport type AppCallTransactionResult = AppCallTransactionResultOfType<ABIReturn>\n\n/**\n * The payload of the metadata to add to the transaction note when deploying an app, noting it will be prefixed with `APP_DEPLOY_NOTE_PREFIX`.\n */\nexport interface AppDeployMetadata {\n /** The unique name identifier of the app within the creator account */\n name: string\n /** The version of app that is / will be deployed */\n version: string\n /** Whether or not the app is deletable / permanent / unspecified */\n deletable?: boolean\n /** Whether or not the app is updatable / immutable / unspecified */\n updatable?: boolean\n}\n\n/** The metadata that can be collected about a deployed app */\nexport interface AppMetadata extends AppReference, AppDeployMetadata {\n /** The round the app was created */\n createdRound: number\n /** The last round that the app was updated */\n updatedRound: number\n /** The metadata when the app was created */\n createdMetadata: AppDeployMetadata\n /** Whether or not the app is deleted */\n deleted: boolean\n}\n\n/** A lookup of name -> Algorand app for a creator */\nexport interface AppLookup {\n creator: Readonly<string>\n apps: Readonly<{\n [name: string]: AppMetadata\n }>\n}\n\n/** Dictionary of deploy-time parameters to replace in a teal template.\n *\n * Note: Looks for `TMPL_{parameter}` for template replacements i.e. you can leave out the `TMPL_`.\n *\n */\nexport interface TealTemplateParams {\n [key: string]: string | bigint | number | Uint8Array\n}\n\n/** What action to perform when deploying an app and an update is detected in the TEAL code */\nexport enum OnUpdate {\n /** Fail the deployment */\n Fail,\n /** Update the app */\n UpdateApp,\n /** Delete the app and create a new one in its place */\n ReplaceApp,\n /** Create a new app */\n AppendApp,\n}\n\n/** What action to perform when deploying an app and a breaking schema change is detected */\nexport enum OnSchemaBreak {\n /** Fail the deployment */\n Fail,\n /** Delete the app and create a new one in its place */\n ReplaceApp,\n /** Create a new app */\n AppendApp,\n}\n\n/** The result of compiling the approval and clear state TEAL programs for an app */\nexport interface AppCompilationResult {\n /** The result of compiling the approval program */\n compiledApproval: CompiledTeal\n /** The result of compiling the clear state program */\n compiledClear: CompiledTeal\n}\n\nexport type AppReturn<TReturn> = {\n /** The ABI method call return value */\n return?: TReturn\n}\n\n/** Result from sending a single app transaction. */\nexport type SendAppTransactionResult = Expand<\n SendSingleTransactionResult & {\n /** If an ABI method was called the processed return value */\n return?: ABIReturn\n }\n>\n\n/** Result from sending a single app transaction. */\nexport type SendAppUpdateTransactionResult = Expand<SendAppTransactionResult & Partial<AppCompilationResult>>\n\n/** Result from sending a single app transaction. */\nexport type SendAppCreateTransactionResult = Expand<\n SendAppUpdateTransactionResult & {\n /** The id of the created app */\n appId: bigint\n /** The Algorand address of the account associated with the app */\n appAddress: Address\n }\n>\n\n/** Object holding app state values */\nexport interface AppState {\n [key: string]:\n | {\n value: bigint\n keyRaw: Uint8Array\n keyBase64: string\n }\n | {\n value: string\n valueRaw: Uint8Array\n valueBase64: string\n keyRaw: Uint8Array\n keyBase64: string\n }\n}\n\n/**\n * The name of a box storage box */\nexport interface BoxName {\n /** Name in UTF-8 */\n name: string\n /** Name in binary bytes */\n nameRaw: Uint8Array\n /** Name in Base64 */\n nameBase64: string\n}\n\n/**\n * @deprecated Use `types/app-manager/BoxValueRequestParams` instead.\n * Parameters to get and decode a box value as an ABI type.\n */\nexport interface BoxValueRequestParams {\n /** The ID of the app return box names for */\n appId: number | bigint\n /** The name of the box to return either as a string, binary array or `BoxName` */\n boxName: string | Uint8Array | BoxName\n /** The ABI type to decode the value using */\n type: ABIType\n}\n\n/**\n * @deprecated Use `types/app-manager/BoxValuesRequestParams` instead.\n * Parameters to get and decode a box value as an ABI type.\n */\nexport interface BoxValuesRequestParams {\n /** The ID of the app return box names for */\n appId: number\n /** The names of the boxes to return either as a string, binary array or BoxName` */\n boxNames: (string | Uint8Array | BoxName)[]\n /** The ABI type to decode the value using */\n type: ABIType\n}\n"],"mappings":";;AAoBA,MAAa,0BAA0B;;AAGvC,MAAa,0BAA0B;;AAGvC,MAAa,uBAAuB;;AAGpC,MAAa,oBAAoB;;AAGjC,MAAa,oBAAoB,IAAI,WAAW;CAAC;CAAI;CAAI;CAAK;CAAI,CAAC;;AAiKnE,IAAY,gDAAL;;AAEL;;AAEA;;AAEA;;AAEA;;;;AAIF,IAAY,0DAAL;;AAEL;;AAEA;;AAEA"}
|
|
1
|
+
{"version":3,"file":"app.mjs","names":["_UPDATABLE_TEMPLATE_NAME","_DELETABLE_TEMPLATE_NAME","_APP_DEPLOY_NOTE_DAPP","_APP_PAGE_MAX_SIZE","_ABI_RETURN_PREFIX","_OnUpdate","_OnSchemaBreak"],"sources":["../../src/types/app.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/app'\n\nimport {\n UPDATABLE_TEMPLATE_NAME as _UPDATABLE_TEMPLATE_NAME,\n DELETABLE_TEMPLATE_NAME as _DELETABLE_TEMPLATE_NAME,\n APP_DEPLOY_NOTE_DAPP as _APP_DEPLOY_NOTE_DAPP,\n APP_PAGE_MAX_SIZE as _APP_PAGE_MAX_SIZE,\n ABI_RETURN_PREFIX as _ABI_RETURN_PREFIX,\n OnUpdate as _OnUpdate,\n OnSchemaBreak as _OnSchemaBreak,\n type AppReference as _AppReference,\n type CoreAppCallArgs as _CoreAppCallArgs,\n type RawAppCallArgs as _RawAppCallArgs,\n type ABIAppCallArg as _ABIAppCallArg,\n type ABIAppCallArgs as _ABIAppCallArgs,\n type AppCallArgs as _AppCallArgs,\n type AppCallParams as _AppCallParams,\n type AppStorageSchema as _AppStorageSchema,\n type CompiledTeal as _CompiledTeal,\n type AppCallTransactionResultOfType as _AppCallTransactionResultOfType,\n type AppCallTransactionResult as _AppCallTransactionResult,\n type AppDeployMetadata as _AppDeployMetadata,\n type AppMetadata as _AppMetadata,\n type AppLookup as _AppLookup,\n type TealTemplateParams as _TealTemplateParams,\n type AppCompilationResult as _AppCompilationResult,\n type AppReturn as _AppReturn,\n type SendAppTransactionResult as _SendAppTransactionResult,\n type SendAppUpdateTransactionResult as _SendAppUpdateTransactionResult,\n type SendAppCreateTransactionResult as _SendAppCreateTransactionResult,\n type AppState as _AppState,\n type BoxName as _BoxName,\n type BoxValueRequestParams as _BoxValueRequestParams,\n type BoxValuesRequestParams as _BoxValuesRequestParams,\n} from '../app'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const UPDATABLE_TEMPLATE_NAME = _UPDATABLE_TEMPLATE_NAME\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const DELETABLE_TEMPLATE_NAME = _DELETABLE_TEMPLATE_NAME\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const APP_DEPLOY_NOTE_DAPP = _APP_DEPLOY_NOTE_DAPP\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const APP_PAGE_MAX_SIZE = _APP_PAGE_MAX_SIZE\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const ABI_RETURN_PREFIX = _ABI_RETURN_PREFIX\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const OnUpdate = _OnUpdate\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type OnUpdate = _OnUpdate\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport const OnSchemaBreak = _OnSchemaBreak\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type OnSchemaBreak = _OnSchemaBreak\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppReference = _AppReference\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type CoreAppCallArgs = _CoreAppCallArgs\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type RawAppCallArgs = _RawAppCallArgs\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type ABIAppCallArg = _ABIAppCallArg\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type ABIAppCallArgs = _ABIAppCallArgs\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppCallArgs = _AppCallArgs\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppCallParams = _AppCallParams\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppStorageSchema = _AppStorageSchema\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type CompiledTeal = _CompiledTeal\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppCallTransactionResultOfType<T> = _AppCallTransactionResultOfType<T>\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppCallTransactionResult = _AppCallTransactionResult\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppDeployMetadata = _AppDeployMetadata\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppMetadata = _AppMetadata\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppLookup = _AppLookup\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type TealTemplateParams = _TealTemplateParams\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppCompilationResult = _AppCompilationResult\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppReturn<TReturn> = _AppReturn<TReturn>\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type SendAppTransactionResult = _SendAppTransactionResult\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type SendAppUpdateTransactionResult = _SendAppUpdateTransactionResult\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type SendAppCreateTransactionResult = _SendAppCreateTransactionResult\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type AppState = _AppState\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type BoxName = _BoxName\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type BoxValueRequestParams = _BoxValueRequestParams\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/app` instead */\nexport type BoxValuesRequestParams = _BoxValuesRequestParams\n"],"mappings":";;;;AAsCA,MAAa,0BAA0BA;;AAGvC,MAAa,0BAA0BC;;AAGvC,MAAa,uBAAuBC;;AAGpC,MAAa,oBAAoBC;;AAGjC,MAAa,oBAAoBC;;AAGjC,MAAa,WAAWC;;AAKxB,MAAa,gBAAgBC"}
|