@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/logging.js
CHANGED
|
@@ -1,42 +1,16 @@
|
|
|
1
|
+
const require_logging = require('../logging.js');
|
|
1
2
|
|
|
2
3
|
//#region src/types/logging.ts
|
|
3
|
-
/**
|
|
4
|
-
const consoleLogger =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
warn: console.warn,
|
|
14
|
-
info: console.info,
|
|
15
|
-
verbose: () => {},
|
|
16
|
-
debug: () => {}
|
|
17
|
-
};
|
|
18
|
-
const verboseConsoleLogger = {
|
|
19
|
-
error: console.error,
|
|
20
|
-
warn: console.warn,
|
|
21
|
-
info: console.info,
|
|
22
|
-
verbose: console.trace,
|
|
23
|
-
debug: console.debug
|
|
24
|
-
};
|
|
25
|
-
const warningConsoleLogger = {
|
|
26
|
-
error: console.error,
|
|
27
|
-
warn: console.warn,
|
|
28
|
-
info: () => {},
|
|
29
|
-
verbose: () => {},
|
|
30
|
-
debug: () => {}
|
|
31
|
-
};
|
|
32
|
-
/** A logger implementation that does nothing */
|
|
33
|
-
const nullLogger = {
|
|
34
|
-
error: function(message, ...optionalParams) {},
|
|
35
|
-
warn: function(message, ...optionalParams) {},
|
|
36
|
-
info: function(message, ...optionalParams) {},
|
|
37
|
-
verbose: function(message, ...optionalParams) {},
|
|
38
|
-
debug: function(message, ...optionalParams) {}
|
|
39
|
-
};
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
|
|
5
|
+
const consoleLogger = require_logging.consoleLogger;
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
|
|
7
|
+
const infoConsoleLogger = require_logging.infoConsoleLogger;
|
|
8
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
|
|
9
|
+
const verboseConsoleLogger = require_logging.verboseConsoleLogger;
|
|
10
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
|
|
11
|
+
const warningConsoleLogger = require_logging.warningConsoleLogger;
|
|
12
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
|
|
13
|
+
const nullLogger = require_logging.nullLogger;
|
|
40
14
|
|
|
41
15
|
//#endregion
|
|
42
16
|
exports.consoleLogger = consoleLogger;
|
package/types/logging.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.js","names":["
|
|
1
|
+
{"version":3,"file":"logging.js","names":["_consoleLogger","_infoConsoleLogger","_verboseConsoleLogger","_warningConsoleLogger","_nullLogger"],"sources":["../../src/types/logging.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/logging'\n\nimport {\n type Logger as _Logger,\n consoleLogger as _consoleLogger,\n infoConsoleLogger as _infoConsoleLogger,\n verboseConsoleLogger as _verboseConsoleLogger,\n warningConsoleLogger as _warningConsoleLogger,\n nullLogger as _nullLogger,\n} from '../logging'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport type Logger = _Logger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const consoleLogger = _consoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const infoConsoleLogger = _infoConsoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const verboseConsoleLogger = _verboseConsoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const warningConsoleLogger = _warningConsoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const nullLogger = _nullLogger\n"],"mappings":";;;;AAgBA,MAAa,gBAAgBA;;AAG7B,MAAa,oBAAoBC;;AAGjC,MAAa,uBAAuBC;;AAGpC,MAAa,uBAAuBC;;AAGpC,MAAa,aAAaC"}
|
package/types/logging.mjs
CHANGED
|
@@ -1,41 +1,16 @@
|
|
|
1
|
+
import { consoleLogger as consoleLogger$1, infoConsoleLogger as infoConsoleLogger$1, nullLogger as nullLogger$1, verboseConsoleLogger as verboseConsoleLogger$1, warningConsoleLogger as warningConsoleLogger$1 } from "../logging.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/types/logging.ts
|
|
2
|
-
/**
|
|
3
|
-
const consoleLogger =
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
warn: console.warn,
|
|
13
|
-
info: console.info,
|
|
14
|
-
verbose: () => {},
|
|
15
|
-
debug: () => {}
|
|
16
|
-
};
|
|
17
|
-
const verboseConsoleLogger = {
|
|
18
|
-
error: console.error,
|
|
19
|
-
warn: console.warn,
|
|
20
|
-
info: console.info,
|
|
21
|
-
verbose: console.trace,
|
|
22
|
-
debug: console.debug
|
|
23
|
-
};
|
|
24
|
-
const warningConsoleLogger = {
|
|
25
|
-
error: console.error,
|
|
26
|
-
warn: console.warn,
|
|
27
|
-
info: () => {},
|
|
28
|
-
verbose: () => {},
|
|
29
|
-
debug: () => {}
|
|
30
|
-
};
|
|
31
|
-
/** A logger implementation that does nothing */
|
|
32
|
-
const nullLogger = {
|
|
33
|
-
error: function(message, ...optionalParams) {},
|
|
34
|
-
warn: function(message, ...optionalParams) {},
|
|
35
|
-
info: function(message, ...optionalParams) {},
|
|
36
|
-
verbose: function(message, ...optionalParams) {},
|
|
37
|
-
debug: function(message, ...optionalParams) {}
|
|
38
|
-
};
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
|
|
5
|
+
const consoleLogger = consoleLogger$1;
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
|
|
7
|
+
const infoConsoleLogger = infoConsoleLogger$1;
|
|
8
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
|
|
9
|
+
const verboseConsoleLogger = verboseConsoleLogger$1;
|
|
10
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
|
|
11
|
+
const warningConsoleLogger = warningConsoleLogger$1;
|
|
12
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */
|
|
13
|
+
const nullLogger = nullLogger$1;
|
|
39
14
|
|
|
40
15
|
//#endregion
|
|
41
16
|
export { consoleLogger, infoConsoleLogger, nullLogger, verboseConsoleLogger, warningConsoleLogger };
|
package/types/logging.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logging.mjs","names":["
|
|
1
|
+
{"version":3,"file":"logging.mjs","names":["_consoleLogger","_infoConsoleLogger","_verboseConsoleLogger","_warningConsoleLogger","_nullLogger"],"sources":["../../src/types/logging.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/logging'\n\nimport {\n type Logger as _Logger,\n consoleLogger as _consoleLogger,\n infoConsoleLogger as _infoConsoleLogger,\n verboseConsoleLogger as _verboseConsoleLogger,\n warningConsoleLogger as _warningConsoleLogger,\n nullLogger as _nullLogger,\n} from '../logging'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport type Logger = _Logger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const consoleLogger = _consoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const infoConsoleLogger = _infoConsoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const verboseConsoleLogger = _verboseConsoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const warningConsoleLogger = _warningConsoleLogger\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logging` instead */\nexport const nullLogger = _nullLogger\n"],"mappings":";;;;AAgBA,MAAa,gBAAgBA;;AAG7B,MAAa,oBAAoBC;;AAGjC,MAAa,uBAAuBC;;AAGpC,MAAa,uBAAuBC;;AAGpC,MAAa,aAAaC"}
|
package/types/logic-error.d.ts
CHANGED
|
@@ -1,39 +1,12 @@
|
|
|
1
|
+
import { LogicError as LogicError$1, LogicErrorDetails as LogicErrorDetails$1 } from "../logic-error.js";
|
|
2
|
+
|
|
1
3
|
//#region src/types/logic-error.d.ts
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
/** The program counter where the error was */
|
|
9
|
-
pc: number;
|
|
10
|
-
/** The error message */
|
|
11
|
-
msg: string;
|
|
12
|
-
/** The full error description */
|
|
13
|
-
desc: string;
|
|
14
|
-
/** Any trace information included in the error */
|
|
15
|
-
traces: Record<string, unknown>[];
|
|
16
|
-
}
|
|
17
|
-
/** Wraps key functionality around processing logic errors */
|
|
18
|
-
declare class LogicError extends Error {
|
|
19
|
-
/** Takes an error message and parses out the details of any logic errors in there.
|
|
20
|
-
* @param error The error message to parse
|
|
21
|
-
* @returns The logic error details if any, or undefined
|
|
22
|
-
*/
|
|
23
|
-
static parseLogicError(error: any): LogicErrorDetails | undefined;
|
|
24
|
-
led: LogicErrorDetails;
|
|
25
|
-
program: string[];
|
|
26
|
-
lines: number;
|
|
27
|
-
teal_line: number;
|
|
28
|
-
stack?: string;
|
|
29
|
-
/**
|
|
30
|
-
* Create a new logic error object.
|
|
31
|
-
* @param errorDetails The details of the logic error
|
|
32
|
-
* @param program The TEAL source code, split by line
|
|
33
|
-
* @param getLineForPc The source map of the TEAL source code
|
|
34
|
-
*/
|
|
35
|
-
constructor(errorDetails: LogicErrorDetails, program: string[], getLineForPc: (pc: number) => number | undefined);
|
|
36
|
-
}
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */
|
|
5
|
+
type LogicErrorDetails = LogicErrorDetails$1;
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */
|
|
7
|
+
declare const LogicError: typeof LogicError$1;
|
|
8
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */
|
|
9
|
+
type LogicError = LogicError$1;
|
|
37
10
|
//#endregion
|
|
38
11
|
export { LogicError, LogicErrorDetails };
|
|
39
12
|
//# sourceMappingURL=logic-error.d.ts.map
|
package/types/logic-error.js
CHANGED
|
@@ -1,53 +1,8 @@
|
|
|
1
|
+
const require_logic_error = require('../logic-error.js');
|
|
1
2
|
|
|
2
3
|
//#region src/types/logic-error.ts
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
/** Wraps key functionality around processing logic errors */
|
|
6
|
-
var LogicError = class extends Error {
|
|
7
|
-
/** Takes an error message and parses out the details of any logic errors in there.
|
|
8
|
-
* @param error The error message to parse
|
|
9
|
-
* @returns The logic error details if any, or undefined
|
|
10
|
-
*/
|
|
11
|
-
static parseLogicError(error) {
|
|
12
|
-
const errorMessage = error.message;
|
|
13
|
-
const res = LOGIC_ERROR.exec(errorMessage);
|
|
14
|
-
const innerRes = INNER_LOGIC_ERROR.exec(errorMessage);
|
|
15
|
-
if (res === null || res.length <= 3) return void 0;
|
|
16
|
-
return {
|
|
17
|
-
txId: res[1],
|
|
18
|
-
msg: res[2],
|
|
19
|
-
desc: errorMessage,
|
|
20
|
-
pc: parseInt(innerRes?.[2] ?? res[3] ?? "0"),
|
|
21
|
-
traces: error.traces
|
|
22
|
-
};
|
|
23
|
-
}
|
|
24
|
-
led;
|
|
25
|
-
program;
|
|
26
|
-
lines = 5;
|
|
27
|
-
teal_line = 0;
|
|
28
|
-
stack;
|
|
29
|
-
/**
|
|
30
|
-
* Create a new logic error object.
|
|
31
|
-
* @param errorDetails The details of the logic error
|
|
32
|
-
* @param program The TEAL source code, split by line
|
|
33
|
-
* @param getLineForPc The source map of the TEAL source code
|
|
34
|
-
*/
|
|
35
|
-
constructor(errorDetails, program, getLineForPc) {
|
|
36
|
-
super();
|
|
37
|
-
this.led = errorDetails;
|
|
38
|
-
this.program = program;
|
|
39
|
-
const line = getLineForPc(errorDetails.pc);
|
|
40
|
-
this.teal_line = line === void 0 ? 0 : line;
|
|
41
|
-
this.message = `${this.led.msg}. at:${line}. ${this.led.desc}`;
|
|
42
|
-
if (this.teal_line > 0) {
|
|
43
|
-
const start = this.teal_line > this.lines ? this.teal_line - this.lines : 0;
|
|
44
|
-
const stop = program.length > this.teal_line + this.lines ? this.teal_line + this.lines : program.length;
|
|
45
|
-
const stack_lines = program.slice(start, stop);
|
|
46
|
-
stack_lines[stack_lines.length / 2] += " <--- Error";
|
|
47
|
-
this.stack = stack_lines.join("\n");
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
};
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */
|
|
5
|
+
const LogicError = require_logic_error.LogicError;
|
|
51
6
|
|
|
52
7
|
//#endregion
|
|
53
8
|
exports.LogicError = LogicError;
|
package/types/logic-error.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logic-error.js","names":[],"sources":["../../src/types/logic-error.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"logic-error.js","names":["_LogicError"],"sources":["../../src/types/logic-error.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/logic-error'\n\nimport {\n type LogicErrorDetails as _LogicErrorDetails,\n LogicError as _LogicError,\n} from '../logic-error'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */\nexport type LogicErrorDetails = _LogicErrorDetails\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */\nexport const LogicError = _LogicError\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */\nexport type LogicError = _LogicError\n"],"mappings":";;;;AAYA,MAAa,aAAaA"}
|
package/types/logic-error.mjs
CHANGED
|
@@ -1,52 +1,8 @@
|
|
|
1
|
+
import { LogicError as LogicError$1 } from "../logic-error.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/types/logic-error.ts
|
|
2
|
-
|
|
3
|
-
const
|
|
4
|
-
/** Wraps key functionality around processing logic errors */
|
|
5
|
-
var LogicError = class extends Error {
|
|
6
|
-
/** Takes an error message and parses out the details of any logic errors in there.
|
|
7
|
-
* @param error The error message to parse
|
|
8
|
-
* @returns The logic error details if any, or undefined
|
|
9
|
-
*/
|
|
10
|
-
static parseLogicError(error) {
|
|
11
|
-
const errorMessage = error.message;
|
|
12
|
-
const res = LOGIC_ERROR.exec(errorMessage);
|
|
13
|
-
const innerRes = INNER_LOGIC_ERROR.exec(errorMessage);
|
|
14
|
-
if (res === null || res.length <= 3) return void 0;
|
|
15
|
-
return {
|
|
16
|
-
txId: res[1],
|
|
17
|
-
msg: res[2],
|
|
18
|
-
desc: errorMessage,
|
|
19
|
-
pc: parseInt(innerRes?.[2] ?? res[3] ?? "0"),
|
|
20
|
-
traces: error.traces
|
|
21
|
-
};
|
|
22
|
-
}
|
|
23
|
-
led;
|
|
24
|
-
program;
|
|
25
|
-
lines = 5;
|
|
26
|
-
teal_line = 0;
|
|
27
|
-
stack;
|
|
28
|
-
/**
|
|
29
|
-
* Create a new logic error object.
|
|
30
|
-
* @param errorDetails The details of the logic error
|
|
31
|
-
* @param program The TEAL source code, split by line
|
|
32
|
-
* @param getLineForPc The source map of the TEAL source code
|
|
33
|
-
*/
|
|
34
|
-
constructor(errorDetails, program, getLineForPc) {
|
|
35
|
-
super();
|
|
36
|
-
this.led = errorDetails;
|
|
37
|
-
this.program = program;
|
|
38
|
-
const line = getLineForPc(errorDetails.pc);
|
|
39
|
-
this.teal_line = line === void 0 ? 0 : line;
|
|
40
|
-
this.message = `${this.led.msg}. at:${line}. ${this.led.desc}`;
|
|
41
|
-
if (this.teal_line > 0) {
|
|
42
|
-
const start = this.teal_line > this.lines ? this.teal_line - this.lines : 0;
|
|
43
|
-
const stop = program.length > this.teal_line + this.lines ? this.teal_line + this.lines : program.length;
|
|
44
|
-
const stack_lines = program.slice(start, stop);
|
|
45
|
-
stack_lines[stack_lines.length / 2] += " <--- Error";
|
|
46
|
-
this.stack = stack_lines.join("\n");
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
};
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */
|
|
5
|
+
const LogicError = LogicError$1;
|
|
50
6
|
|
|
51
7
|
//#endregion
|
|
52
8
|
export { LogicError };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logic-error.mjs","names":[],"sources":["../../src/types/logic-error.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"logic-error.mjs","names":["_LogicError"],"sources":["../../src/types/logic-error.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/logic-error'\n\nimport {\n type LogicErrorDetails as _LogicErrorDetails,\n LogicError as _LogicError,\n} from '../logic-error'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */\nexport type LogicErrorDetails = _LogicErrorDetails\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */\nexport const LogicError = _LogicError\n/** @deprecated Import from `@algorandfoundation/algokit-utils/logic-error` instead */\nexport type LogicError = _LogicError\n"],"mappings":";;;;AAYA,MAAa,aAAaA"}
|
|
@@ -1,43 +1,14 @@
|
|
|
1
|
+
import { AlgoClientConfig as AlgoClientConfig$1, AlgoConfig as AlgoConfig$1, NetworkDetails as NetworkDetails$1, genesisIdIsLocalNet as genesisIdIsLocalNet$1 } from "../network-client.js";
|
|
2
|
+
|
|
1
3
|
//#region src/types/network-client.d.ts
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
[name: string]: string;
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
/** Configuration for algod, indexer and kmd clients. */
|
|
14
|
-
interface AlgoConfig {
|
|
15
|
-
/** Algod client configuration */
|
|
16
|
-
algodConfig: AlgoClientConfig;
|
|
17
|
-
/** Indexer client configuration */
|
|
18
|
-
indexerConfig?: AlgoClientConfig;
|
|
19
|
-
/** Kmd configuration */
|
|
20
|
-
kmdConfig?: AlgoClientConfig;
|
|
21
|
-
}
|
|
22
|
-
/** Details of the current network. */
|
|
23
|
-
interface NetworkDetails {
|
|
24
|
-
/** Whether or not the network is TestNet. */
|
|
25
|
-
isTestNet: boolean;
|
|
26
|
-
/** Whether or not the network is MainNet. */
|
|
27
|
-
isMainNet: boolean;
|
|
28
|
-
/** Whether or not the network is LocalNet. */
|
|
29
|
-
isLocalNet: boolean;
|
|
30
|
-
/** The genesis ID of the current network. */
|
|
31
|
-
genesisId: string;
|
|
32
|
-
/** The base64 genesis hash of the current network. */
|
|
33
|
-
genesisHash: string;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Returns true if the given network genesisId is associated with a LocalNet network.
|
|
37
|
-
* @param genesisId The network genesis ID
|
|
38
|
-
* @returns Whether the given genesis ID is associated with a LocalNet network
|
|
39
|
-
*/
|
|
40
|
-
declare function genesisIdIsLocalNet(genesisId: string): boolean;
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */
|
|
5
|
+
type AlgoClientConfig = AlgoClientConfig$1;
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */
|
|
7
|
+
type AlgoConfig = AlgoConfig$1;
|
|
8
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */
|
|
9
|
+
type NetworkDetails = NetworkDetails$1;
|
|
10
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */
|
|
11
|
+
declare const genesisIdIsLocalNet: typeof genesisIdIsLocalNet$1;
|
|
41
12
|
//#endregion
|
|
42
13
|
export { AlgoClientConfig, AlgoConfig, NetworkDetails, genesisIdIsLocalNet };
|
|
43
14
|
//# sourceMappingURL=network-client.d.ts.map
|
package/types/network-client.js
CHANGED
|
@@ -1,13 +1,8 @@
|
|
|
1
|
+
const require_network_client = require('../network-client.js');
|
|
1
2
|
|
|
2
3
|
//#region src/types/network-client.ts
|
|
3
|
-
/**
|
|
4
|
-
|
|
5
|
-
* @param genesisId The network genesis ID
|
|
6
|
-
* @returns Whether the given genesis ID is associated with a LocalNet network
|
|
7
|
-
*/
|
|
8
|
-
function genesisIdIsLocalNet(genesisId) {
|
|
9
|
-
return genesisId === "devnet-v1" || genesisId === "sandnet-v1" || genesisId === "dockernet-v1";
|
|
10
|
-
}
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */
|
|
5
|
+
const genesisIdIsLocalNet = require_network_client.genesisIdIsLocalNet;
|
|
11
6
|
|
|
12
7
|
//#endregion
|
|
13
8
|
exports.genesisIdIsLocalNet = genesisIdIsLocalNet;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-client.js","names":[],"sources":["../../src/types/network-client.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"network-client.js","names":["_genesisIdIsLocalNet"],"sources":["../../src/types/network-client.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/network-client'\n\nimport {\n type AlgoClientConfig as _AlgoClientConfig,\n type AlgoConfig as _AlgoConfig,\n type NetworkDetails as _NetworkDetails,\n genesisIdIsLocalNet as _genesisIdIsLocalNet,\n} from '../network-client'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport type AlgoClientConfig = _AlgoClientConfig\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport type AlgoConfig = _AlgoConfig\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport type NetworkDetails = _NetworkDetails\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport const genesisIdIsLocalNet = _genesisIdIsLocalNet\n"],"mappings":";;;;AAoBA,MAAa,sBAAsBA"}
|
package/types/network-client.mjs
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
+
import { genesisIdIsLocalNet as genesisIdIsLocalNet$1 } from "../network-client.mjs";
|
|
2
|
+
|
|
1
3
|
//#region src/types/network-client.ts
|
|
2
|
-
/**
|
|
3
|
-
|
|
4
|
-
* @param genesisId The network genesis ID
|
|
5
|
-
* @returns Whether the given genesis ID is associated with a LocalNet network
|
|
6
|
-
*/
|
|
7
|
-
function genesisIdIsLocalNet(genesisId) {
|
|
8
|
-
return genesisId === "devnet-v1" || genesisId === "sandnet-v1" || genesisId === "dockernet-v1";
|
|
9
|
-
}
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */
|
|
5
|
+
const genesisIdIsLocalNet = genesisIdIsLocalNet$1;
|
|
10
6
|
|
|
11
7
|
//#endregion
|
|
12
8
|
export { genesisIdIsLocalNet };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"network-client.mjs","names":[],"sources":["../../src/types/network-client.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"network-client.mjs","names":["_genesisIdIsLocalNet"],"sources":["../../src/types/network-client.ts"],"sourcesContent":["// Re-exports with deprecation notices for backwards compatibility\n// New imports should use '@algorandfoundation/algokit-utils/network-client'\n\nimport {\n type AlgoClientConfig as _AlgoClientConfig,\n type AlgoConfig as _AlgoConfig,\n type NetworkDetails as _NetworkDetails,\n genesisIdIsLocalNet as _genesisIdIsLocalNet,\n} from '../network-client'\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport type AlgoClientConfig = _AlgoClientConfig\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport type AlgoConfig = _AlgoConfig\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport type NetworkDetails = _NetworkDetails\n\n/** @deprecated Import from `@algorandfoundation/algokit-utils/network-client` instead */\nexport const genesisIdIsLocalNet = _genesisIdIsLocalNet\n"],"mappings":";;;;AAoBA,MAAa,sBAAsBA"}
|
package/types/testing.d.ts
CHANGED
|
@@ -1,156 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Transaction } from "../packages/transact/src/transactions/transaction.js";
|
|
3
|
-
import { MultisigAccount } from "../packages/transact/src/multisig.js";
|
|
4
|
-
import { LogicSigAccount } from "../packages/transact/src/logicsig.js";
|
|
5
|
-
import { AddressWithSigners, AddressWithTransactionSigner } from "../packages/transact/src/signer.js";
|
|
6
|
-
import { AlgodClient } from "../packages/algod_client/src/client.js";
|
|
7
|
-
import { AlgoAmount } from "./amount.js";
|
|
8
|
-
import { TransactionResponse } from "../packages/indexer_client/src/models/transaction-response.js";
|
|
9
|
-
import { IndexerClient } from "../packages/indexer_client/src/client.js";
|
|
10
|
-
import { KmdClient } from "../packages/kmd_client/src/client.js";
|
|
11
|
-
import { AlgoConfig } from "./network-client.js";
|
|
12
|
-
import { AlgorandClient } from "./algorand-client.js";
|
|
13
|
-
import { TestLogger } from "../testing/test-logger.js";
|
|
14
|
-
import { TransactionLogger } from "../testing/transaction-logger.js";
|
|
1
|
+
import { AlgoKitLogCaptureFixture as AlgoKitLogCaptureFixture$1, AlgorandFixture as AlgorandFixture$1, AlgorandFixtureConfig as AlgorandFixtureConfig$1, AlgorandTestAutomationContext as AlgorandTestAutomationContext$1, GetTestAccountParams as GetTestAccountParams$1, LogSnapshotConfig as LogSnapshotConfig$1 } from "../testing/types.js";
|
|
15
2
|
|
|
16
3
|
//#region src/types/testing.d.ts
|
|
17
|
-
/**
|
|
18
|
-
|
|
19
|
-
*/
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
/** Transaction logger that will log transaction IDs for all transactions issued by `algod` */
|
|
30
|
-
transactionLogger: TransactionLogger;
|
|
31
|
-
/** Default, funded test account that is ephemerally created */
|
|
32
|
-
testAccount: Address & AddressWithSigners;
|
|
33
|
-
/** Generate and fund an additional ephemerally created account */
|
|
34
|
-
generateAccount: (params: GetTestAccountParams) => Promise<Address & AddressWithSigners>;
|
|
35
|
-
/** Wait for the indexer to catch up with all transactions logged by `transactionLogger` */
|
|
36
|
-
waitForIndexer: () => Promise<void>;
|
|
37
|
-
/** Wait for the indexer to catch up with the given transaction ID */
|
|
38
|
-
waitForIndexerTransaction: (transactionId: string) => Promise<TransactionResponse>;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Parameters for the `getTestAccount` function.
|
|
42
|
-
*/
|
|
43
|
-
interface GetTestAccountParams {
|
|
44
|
-
/** Initial funds to ensure the account has */
|
|
45
|
-
initialFunds: AlgoAmount;
|
|
46
|
-
/** Whether to suppress the log (which includes a mnemonic) or not (default: do not suppress the log) */
|
|
47
|
-
suppressLog?: boolean;
|
|
48
|
-
/** Optional override for how to get a test account; this allows you to retrieve accounts from a known or cached list of accounts. */
|
|
49
|
-
accountGetter?: (algorand: AlgorandClient) => Promise<AddressWithSigners>;
|
|
50
|
-
}
|
|
51
|
-
/** Configuration for creating an Algorand testing fixture. */
|
|
52
|
-
interface AlgorandFixtureConfig extends Partial<AlgoConfig> {
|
|
53
|
-
/** An optional algod client, if not specified then it will create one against `algodConfig` (if present) then environment variables defined network (if present) or default LocalNet. */
|
|
54
|
-
algod?: AlgodClient;
|
|
55
|
-
/** An optional indexer client, if not specified then it will create one against `indexerConfig` (if present) then environment variables defined network (if present) or default LocalNet. */
|
|
56
|
-
indexer?: IndexerClient;
|
|
57
|
-
/** An optional kmd client, if not specified then it will create one against `kmdConfig` (if present) then environment variables defined network (if present) or default LocalNet. */
|
|
58
|
-
kmd?: KmdClient;
|
|
59
|
-
/** The amount of funds to allocate to the default testing account, if not specified then it will get 10 ALGO. */
|
|
60
|
-
testAccountFunding?: AlgoAmount;
|
|
61
|
-
/** Optional override for how to get an account; this allows you to retrieve accounts from a known or cached list of accounts. */
|
|
62
|
-
accountGetter?: (algod: AlgodClient, kmd?: KmdClient) => Promise<AddressWithSigners>;
|
|
63
|
-
}
|
|
64
|
-
/** An Algorand automated testing fixture */
|
|
65
|
-
interface AlgorandFixture {
|
|
66
|
-
/**
|
|
67
|
-
* Retrieve the current context.
|
|
68
|
-
* Useful with destructuring.
|
|
69
|
-
*
|
|
70
|
-
* If you haven't called `newScope` then this will throw an error.
|
|
71
|
-
* @example
|
|
72
|
-
* ```typescript
|
|
73
|
-
* test('My test', () => {
|
|
74
|
-
* const {algod, indexer, testAccount, ...} = fixture.context
|
|
75
|
-
* })
|
|
76
|
-
* ```
|
|
77
|
-
*/
|
|
78
|
-
get context(): AlgorandTestAutomationContext;
|
|
79
|
-
/**
|
|
80
|
-
* Retrieve an `AlgorandClient` loaded with the current context, including testAccount and any generated accounts loaded as signers.
|
|
81
|
-
*/
|
|
82
|
-
get algorand(): AlgorandClient;
|
|
83
|
-
/**
|
|
84
|
-
* @deprecated Use newScope instead.
|
|
85
|
-
* Testing framework agnostic handler method to run before each test to prepare the `context` for that test with per test isolation.
|
|
86
|
-
*/
|
|
87
|
-
beforeEach: () => Promise<void>;
|
|
88
|
-
/**
|
|
89
|
-
* Creates a new isolated fixture scope (clean transaction logger, AlgorandClient, testAccount, etc.).
|
|
90
|
-
*
|
|
91
|
-
* You can call this from any testing framework specific hook method to control when you want a new scope.
|
|
92
|
-
*
|
|
93
|
-
* @example Jest / vitest - per test isolation (beforeEach)
|
|
94
|
-
* ```typescript
|
|
95
|
-
* describe('MY MODULE', () => {
|
|
96
|
-
* const fixture = algorandFixture()
|
|
97
|
-
* beforeEach(fixture.newScope, 10_000) // Add a 10s timeout to cater for occasionally slow LocalNet calls
|
|
98
|
-
*
|
|
99
|
-
* test('MY TEST', async () => {
|
|
100
|
-
* const { algorand, testAccount } = fixture.context
|
|
101
|
-
*
|
|
102
|
-
* // Test stuff!
|
|
103
|
-
* })
|
|
104
|
-
* })
|
|
105
|
-
* ```
|
|
106
|
-
*
|
|
107
|
-
* @example Jest / vitest - test suite isolation (beforeAll)
|
|
108
|
-
* ```typescript
|
|
109
|
-
* describe('MY MODULE', () => {
|
|
110
|
-
* const fixture = algorandFixture()
|
|
111
|
-
* beforeAll(fixture.newScope, 10_000) // Add a 10s timeout to cater for occasionally slow LocalNet calls
|
|
112
|
-
*
|
|
113
|
-
* test('test1', async () => {
|
|
114
|
-
* const { algorand, testAccount } = fixture.context
|
|
115
|
-
*
|
|
116
|
-
* // Test stuff!
|
|
117
|
-
* })
|
|
118
|
-
* test('test2', async () => {
|
|
119
|
-
* const { algorand, testAccount } = fixture.context
|
|
120
|
-
* // algorand and testAccount are the same as in test1
|
|
121
|
-
* })
|
|
122
|
-
* })
|
|
123
|
-
* ```
|
|
124
|
-
*
|
|
125
|
-
*/
|
|
126
|
-
newScope: () => Promise<void>;
|
|
127
|
-
}
|
|
128
|
-
/** Configuration for preparing a captured log snapshot.
|
|
129
|
-
* This helps ensure that the provided configuration items won't appear
|
|
130
|
-
* with random values in the log snapshot, but rather will get substituted with predictable ids.
|
|
131
|
-
*/
|
|
132
|
-
interface LogSnapshotConfig {
|
|
133
|
-
/** Any transaction IDs or transactions to replace the ID for predictably */
|
|
134
|
-
transactions?: (string | Transaction)[];
|
|
135
|
-
/** Any accounts/addresses to replace the address for predictably */
|
|
136
|
-
accounts?: (string | Address | LogicSigAccount | MultisigAccount | AddressWithTransactionSigner)[];
|
|
137
|
-
/** Any app IDs to replace predictably */
|
|
138
|
-
apps?: (string | number | bigint)[];
|
|
139
|
-
/** Optional filter predicate to filter out logs */
|
|
140
|
-
filterPredicate?: (log: string) => boolean;
|
|
141
|
-
}
|
|
142
|
-
interface AlgoKitLogCaptureFixture {
|
|
143
|
-
/** The test logger instance for the current test */
|
|
144
|
-
get testLogger(): TestLogger;
|
|
145
|
-
/**
|
|
146
|
-
* Testing framework agnostic handler method to run before each test to prepare the `testLogger` for that test.
|
|
147
|
-
*/
|
|
148
|
-
beforeEach: () => void;
|
|
149
|
-
/**
|
|
150
|
-
* Testing framework agnostic handler method to run after each test to reset the logger.
|
|
151
|
-
*/
|
|
152
|
-
afterEach: () => void;
|
|
153
|
-
}
|
|
4
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/testing` instead */
|
|
5
|
+
type AlgorandTestAutomationContext = AlgorandTestAutomationContext$1;
|
|
6
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/testing` instead */
|
|
7
|
+
type GetTestAccountParams = GetTestAccountParams$1;
|
|
8
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/testing` instead */
|
|
9
|
+
type AlgorandFixtureConfig = AlgorandFixtureConfig$1;
|
|
10
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/testing` instead */
|
|
11
|
+
type AlgorandFixture = AlgorandFixture$1;
|
|
12
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/testing` instead */
|
|
13
|
+
type LogSnapshotConfig = LogSnapshotConfig$1;
|
|
14
|
+
/** @deprecated Import from `@algorandfoundation/algokit-utils/testing` instead */
|
|
15
|
+
type AlgoKitLogCaptureFixture = AlgoKitLogCaptureFixture$1;
|
|
154
16
|
//#endregion
|
|
155
17
|
export { AlgoKitLogCaptureFixture, AlgorandFixture, AlgorandFixtureConfig, AlgorandTestAutomationContext, GetTestAccountParams, LogSnapshotConfig };
|
|
156
18
|
//# sourceMappingURL=testing.d.ts.map
|