@algorandfoundation/algokit-utils 10.0.0-alpha.3 → 10.0.0-alpha.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_virtual/rolldown_runtime.js +10 -15
- package/abi/index.d.ts +2 -1
- package/abi/index.js +3 -0
- package/abi/index.mjs +2 -1
- package/account-manager.d.ts +448 -0
- package/account-manager.js +623 -0
- package/account-manager.js.map +1 -0
- package/account-manager.mjs +620 -0
- package/account-manager.mjs.map +1 -0
- package/account.d.ts +156 -0
- package/account.js +10 -0
- package/account.js.map +1 -0
- package/account.mjs +9 -0
- package/account.mjs.map +1 -0
- package/algod-client/index.d.ts +3 -7
- package/algod-client/index.js +2 -5
- package/algod-client/index.mjs +2 -2
- package/algorand-client-transaction-creator.d.ts +1103 -0
- package/algorand-client-transaction-creator.js +735 -0
- package/algorand-client-transaction-creator.js.map +1 -0
- package/algorand-client-transaction-creator.mjs +734 -0
- package/algorand-client-transaction-creator.mjs.map +1 -0
- package/algorand-client-transaction-sender.d.ts +1317 -0
- package/algorand-client-transaction-sender.js +933 -0
- package/algorand-client-transaction-sender.js.map +1 -0
- package/algorand-client-transaction-sender.mjs +932 -0
- package/algorand-client-transaction-sender.mjs.map +1 -0
- package/algorand-client.d.ts +246 -0
- package/algorand-client.js +325 -0
- package/algorand-client.js.map +1 -0
- package/algorand-client.mjs +325 -0
- package/algorand-client.mjs.map +1 -0
- package/amount.d.ts +46 -3
- package/amount.js +92 -13
- package/amount.js.map +1 -1
- package/amount.mjs +80 -3
- package/amount.mjs.map +1 -1
- package/app-client.d.ts +2130 -0
- package/app-client.js +909 -0
- package/app-client.js.map +1 -0
- package/app-client.mjs +908 -0
- package/app-client.mjs.map +1 -0
- package/app-deployer.d.ts +166 -0
- package/app-deployer.js +353 -0
- package/app-deployer.js.map +1 -0
- package/app-deployer.mjs +353 -0
- package/app-deployer.mjs.map +1 -0
- package/app-factory.d.ts +965 -0
- package/app-factory.js +448 -0
- package/app-factory.js.map +1 -0
- package/app-factory.mjs +448 -0
- package/app-factory.mjs.map +1 -0
- package/app-manager.d.ts +323 -0
- package/app-manager.js +468 -0
- package/app-manager.js.map +1 -0
- package/app-manager.mjs +468 -0
- package/app-manager.mjs.map +1 -0
- package/app-spec.d.ts +203 -0
- package/app-spec.js +137 -0
- package/app-spec.js.map +1 -0
- package/app-spec.mjs +137 -0
- package/app-spec.mjs.map +1 -0
- package/app.d.ts +257 -0
- package/app.js +49 -0
- package/app.js.map +1 -0
- package/app.mjs +42 -0
- package/app.mjs.map +1 -0
- package/asset-manager.d.ts +212 -0
- package/asset-manager.js +166 -0
- package/asset-manager.js.map +1 -0
- package/asset-manager.mjs +166 -0
- package/asset-manager.mjs.map +1 -0
- package/async-event-emitter.d.ts +16 -0
- package/async-event-emitter.js +38 -0
- package/async-event-emitter.js.map +1 -0
- package/async-event-emitter.mjs +37 -0
- package/async-event-emitter.mjs.map +1 -0
- package/client-manager.d.ts +475 -0
- package/client-manager.js +616 -0
- package/client-manager.js.map +1 -0
- package/client-manager.mjs +616 -0
- package/client-manager.mjs.map +1 -0
- package/composer.d.ts +947 -0
- package/composer.js +1584 -0
- package/composer.js.map +1 -0
- package/composer.mjs +1583 -0
- package/composer.mjs.map +1 -0
- package/config.d.ts +1 -1
- package/config.js +2 -2
- package/config.js.map +1 -1
- package/config.mjs +1 -1
- package/config.mjs.map +1 -1
- package/debugging.d.ts +47 -0
- package/debugging.js +20 -0
- package/debugging.js.map +1 -0
- package/debugging.mjs +15 -0
- package/debugging.mjs.map +1 -0
- package/dispenser-client.d.ts +90 -0
- package/dispenser-client.js +127 -0
- package/dispenser-client.js.map +1 -0
- package/dispenser-client.mjs +127 -0
- package/dispenser-client.mjs.map +1 -0
- package/expand.d.ts +2 -0
- package/expand.js +0 -0
- package/expand.mjs +0 -0
- package/index.d.ts +6 -6
- package/index.js +4 -10
- package/index.mjs +5 -6
- package/indexer-client/index.d.ts +2 -2
- package/indexer-client/index.js +6 -6
- package/indexer-client/index.mjs +2 -2
- package/{indexer-lookup.d.ts → indexer-client/indexer-lookup.d.ts} +8 -11
- package/{indexer-lookup.mjs → indexer-client/indexer-lookup.js} +6 -10
- package/indexer-client/indexer-lookup.js.map +1 -0
- package/{indexer-lookup.js → indexer-client/indexer-lookup.mjs} +3 -18
- package/indexer-client/indexer-lookup.mjs.map +1 -0
- package/indexer.d.ts +40 -0
- package/indexer.js +38 -0
- package/indexer.js.map +1 -0
- package/indexer.mjs +35 -0
- package/indexer.mjs.map +1 -0
- package/instance-of.d.ts +8 -0
- package/kmd-account-manager.d.ts +74 -0
- package/kmd-account-manager.js +167 -0
- package/kmd-account-manager.js.map +1 -0
- package/kmd-account-manager.mjs +165 -0
- package/kmd-account-manager.mjs.map +1 -0
- package/kmd-client/index.d.ts +1 -2
- package/kmd-client/index.js +0 -5
- package/kmd-client/index.mjs +1 -2
- package/lifecycle-events.d.ts +14 -0
- package/lifecycle-events.js +11 -0
- package/lifecycle-events.js.map +1 -0
- package/lifecycle-events.mjs +10 -0
- package/lifecycle-events.mjs.map +1 -0
- package/logging.d.ts +13 -0
- package/logging.js +47 -0
- package/logging.js.map +1 -0
- package/logging.mjs +42 -0
- package/logging.mjs.map +1 -0
- package/logic-error.d.ts +39 -0
- package/logic-error.js +54 -0
- package/logic-error.js.map +1 -0
- package/logic-error.mjs +53 -0
- package/logic-error.mjs.map +1 -0
- package/network-client.d.ts +43 -0
- package/network-client.js +14 -0
- package/network-client.js.map +1 -0
- package/network-client.mjs +13 -0
- package/network-client.mjs.map +1 -0
- package/package.json +14 -5
- package/packages/abi/src/abi-method.d.ts +1 -1
- package/packages/abi/src/abi-method.js +1 -1
- package/packages/abi/src/abi-method.js.map +1 -1
- package/packages/abi/src/abi-method.mjs +1 -1
- package/packages/abi/src/abi-method.mjs.map +1 -1
- package/packages/abi/src/abi-type.d.ts +1 -3
- package/packages/abi/src/abi-type.js +7 -36
- package/packages/abi/src/abi-type.js.map +1 -1
- package/packages/abi/src/abi-type.mjs +7 -36
- package/packages/abi/src/abi-type.mjs.map +1 -1
- package/packages/abi/src/arc56-contract.js +1 -0
- package/packages/abi/src/arc56-contract.js.map +1 -1
- package/packages/abi/src/arc56-contract.mjs +1 -0
- package/packages/abi/src/arc56-contract.mjs.map +1 -1
- package/packages/abi/src/utils.d.ts +22 -0
- package/packages/abi/src/utils.js +57 -0
- package/packages/abi/src/utils.js.map +1 -0
- package/packages/abi/src/utils.mjs +55 -0
- package/packages/abi/src/utils.mjs.map +1 -0
- package/packages/algo25/src/index.js +1 -1
- package/packages/algo25/src/index.mjs +1 -1
- package/packages/algod_client/src/apis/api-service.d.ts +44 -44
- package/packages/algod_client/src/apis/api-service.js +155 -155
- package/packages/algod_client/src/apis/api-service.js.map +1 -1
- package/packages/algod_client/src/apis/api-service.mjs +155 -155
- package/packages/algod_client/src/apis/api-service.mjs.map +1 -1
- package/packages/algod_client/src/core/api-error.js +3 -1
- package/packages/algod_client/src/core/api-error.js.map +1 -1
- package/packages/algod_client/src/core/api-error.mjs +3 -1
- package/packages/algod_client/src/core/api-error.mjs.map +1 -1
- package/packages/algod_client/src/core/model-runtime.js +6 -6
- package/packages/algod_client/src/core/model-runtime.js.map +1 -1
- package/packages/algod_client/src/core/model-runtime.mjs +8 -8
- package/packages/algod_client/src/core/model-runtime.mjs.map +1 -1
- package/packages/algod_client/src/models/account-participation.js +4 -4
- package/packages/algod_client/src/models/account-participation.js.map +1 -1
- package/packages/algod_client/src/models/account-participation.mjs +4 -4
- package/packages/algod_client/src/models/account-participation.mjs.map +1 -1
- package/packages/algod_client/src/models/application-state-schema.d.ts +2 -2
- package/packages/algod_client/src/models/application-state-schema.js +2 -2
- package/packages/algod_client/src/models/application-state-schema.js.map +1 -1
- package/packages/algod_client/src/models/application-state-schema.mjs +2 -2
- package/packages/algod_client/src/models/application-state-schema.mjs.map +1 -1
- package/packages/algod_client/src/models/asset-params.js +2 -1
- package/packages/algod_client/src/models/asset-params.js.map +1 -1
- package/packages/algod_client/src/models/asset-params.mjs +2 -1
- package/packages/algod_client/src/models/asset-params.mjs.map +1 -1
- package/packages/algod_client/src/models/block-response.js +1 -2
- package/packages/algod_client/src/models/block-response.js.map +1 -1
- package/packages/algod_client/src/models/block-response.mjs +2 -3
- package/packages/algod_client/src/models/block-response.mjs.map +1 -1
- package/packages/algod_client/src/models/block.d.ts +60 -40
- package/packages/algod_client/src/models/block.js +184 -108
- package/packages/algod_client/src/models/block.js.map +1 -1
- package/packages/algod_client/src/models/block.mjs +184 -108
- package/packages/algod_client/src/models/block.mjs.map +1 -1
- package/packages/algod_client/src/models/eval-delta-key-value.js +2 -2
- package/packages/algod_client/src/models/eval-delta-key-value.js.map +1 -1
- package/packages/algod_client/src/models/eval-delta-key-value.mjs +2 -2
- package/packages/algod_client/src/models/eval-delta-key-value.mjs.map +1 -1
- package/packages/algod_client/src/models/eval-delta.js +2 -2
- package/packages/algod_client/src/models/eval-delta.js.map +1 -1
- package/packages/algod_client/src/models/eval-delta.mjs +2 -2
- package/packages/algod_client/src/models/eval-delta.mjs.map +1 -1
- package/packages/algod_client/src/models/ledger-state-delta.js +1 -1
- package/packages/algod_client/src/models/ledger-state-delta.js.map +1 -1
- package/packages/algod_client/src/models/ledger-state-delta.mjs +2 -2
- package/packages/algod_client/src/models/ledger-state-delta.mjs.map +1 -1
- package/packages/algod_client/src/models/simulate-request.js +1 -1
- package/packages/algod_client/src/models/simulate-request.mjs +1 -1
- package/packages/algod_client/src/models/simulate-response.d.ts +2 -1
- package/packages/algod_client/src/models/simulate-response.js +6 -1
- package/packages/algod_client/src/models/simulate-response.js.map +1 -1
- package/packages/algod_client/src/models/simulate-response.mjs +6 -2
- package/packages/algod_client/src/models/simulate-response.mjs.map +1 -1
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.d.ts +3 -5
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js +4 -6
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.js.map +1 -1
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs +3 -5
- package/packages/algod_client/src/models/simulate-unnamed-resources-accessed.mjs.map +1 -1
- package/packages/algod_client/src/models/transaction-parameters-response.js +2 -2
- package/packages/algod_client/src/models/transaction-parameters-response.js.map +1 -1
- package/packages/algod_client/src/models/transaction-parameters-response.mjs +2 -2
- package/packages/algod_client/src/models/transaction-parameters-response.mjs.map +1 -1
- package/packages/common/src/address.d.ts +0 -1
- package/packages/common/src/address.js +4 -17
- package/packages/common/src/address.js.map +1 -1
- package/packages/common/src/address.mjs +5 -17
- package/packages/common/src/address.mjs.map +1 -1
- package/packages/common/src/codecs/composite/map.js +7 -4
- package/packages/common/src/codecs/composite/map.js.map +1 -1
- package/packages/common/src/codecs/composite/map.mjs +7 -4
- package/packages/common/src/codecs/composite/map.mjs.map +1 -1
- package/packages/common/src/codecs/composite/record.js +0 -1
- package/packages/common/src/codecs/composite/record.js.map +1 -1
- package/packages/common/src/codecs/primitives/address.js +0 -1
- package/packages/common/src/codecs/primitives/address.js.map +1 -1
- package/packages/common/src/codecs/primitives/bytes-base64.js +26 -0
- package/packages/common/src/codecs/primitives/bytes-base64.js.map +1 -0
- package/packages/common/src/codecs/primitives/bytes-base64.mjs +25 -0
- package/packages/common/src/codecs/primitives/bytes-base64.mjs.map +1 -0
- package/packages/common/src/codecs/primitives/bytes.js +0 -1
- package/packages/common/src/codecs/primitives/bytes.js.map +1 -1
- package/packages/common/src/codecs/primitives/fixed-bytes.js +0 -1
- package/packages/common/src/codecs/primitives/fixed-bytes.js.map +1 -1
- package/packages/common/src/codecs/wire.js +0 -1
- package/packages/common/src/codecs/wire.js.map +1 -1
- package/packages/common/src/json.mjs +2 -2
- package/packages/common/src/json.mjs.map +1 -1
- package/packages/common/src/msgpack.js +0 -1
- package/packages/common/src/msgpack.js.map +1 -1
- package/packages/{sdk/src/logic → common/src}/sourcemap.d.ts +2 -2
- package/packages/{sdk/src/logic → common/src}/sourcemap.js +2 -2
- package/packages/{sdk/src/logic → common/src}/sourcemap.js.map +1 -1
- package/packages/{sdk/src/logic → common/src}/sourcemap.mjs +1 -1
- package/packages/{sdk/src/logic → common/src}/sourcemap.mjs.map +1 -1
- package/packages/indexer_client/src/apis/api-service.d.ts +1 -1
- package/packages/indexer_client/src/apis/api-service.js +12 -12
- package/packages/indexer_client/src/apis/api-service.js.map +1 -1
- package/packages/indexer_client/src/apis/api-service.mjs +12 -12
- package/packages/indexer_client/src/apis/api-service.mjs.map +1 -1
- package/packages/indexer_client/src/core/api-error.js +3 -1
- package/packages/indexer_client/src/core/api-error.js.map +1 -1
- package/packages/indexer_client/src/core/api-error.mjs +3 -1
- package/packages/indexer_client/src/core/api-error.mjs.map +1 -1
- package/packages/indexer_client/src/core/model-runtime.js +0 -15
- package/packages/indexer_client/src/core/model-runtime.js.map +1 -1
- package/packages/indexer_client/src/core/model-runtime.mjs +1 -13
- package/packages/indexer_client/src/core/model-runtime.mjs.map +1 -1
- package/packages/indexer_client/src/models/account-participation.js +4 -4
- package/packages/indexer_client/src/models/account-participation.js.map +1 -1
- package/packages/indexer_client/src/models/account-participation.mjs +4 -4
- package/packages/indexer_client/src/models/account-participation.mjs.map +1 -1
- package/packages/indexer_client/src/models/application-state-schema.d.ts +2 -2
- package/packages/indexer_client/src/models/application-state-schema.js +2 -2
- package/packages/indexer_client/src/models/application-state-schema.js.map +1 -1
- package/packages/indexer_client/src/models/application-state-schema.mjs +2 -2
- package/packages/indexer_client/src/models/application-state-schema.mjs.map +1 -1
- package/packages/indexer_client/src/models/asset-params.js +2 -1
- package/packages/indexer_client/src/models/asset-params.js.map +1 -1
- package/packages/indexer_client/src/models/asset-params.mjs +2 -1
- package/packages/indexer_client/src/models/asset-params.mjs.map +1 -1
- package/packages/indexer_client/src/models/block.d.ts +5 -5
- package/packages/indexer_client/src/models/block.js +13 -13
- package/packages/indexer_client/src/models/block.js.map +1 -1
- package/packages/indexer_client/src/models/block.mjs +13 -13
- package/packages/indexer_client/src/models/block.mjs.map +1 -1
- package/packages/indexer_client/src/models/eval-delta-key-value.d.ts +1 -1
- package/packages/indexer_client/src/models/eval-delta-key-value.js +2 -2
- package/packages/indexer_client/src/models/eval-delta-key-value.js.map +1 -1
- package/packages/indexer_client/src/models/eval-delta-key-value.mjs +2 -2
- package/packages/indexer_client/src/models/eval-delta-key-value.mjs.map +1 -1
- package/packages/indexer_client/src/models/eval-delta.d.ts +1 -1
- package/packages/indexer_client/src/models/eval-delta.js +2 -2
- package/packages/indexer_client/src/models/eval-delta.js.map +1 -1
- package/packages/indexer_client/src/models/eval-delta.mjs +2 -2
- package/packages/indexer_client/src/models/eval-delta.mjs.map +1 -1
- package/packages/indexer_client/src/models/hb-proof-fields.js +6 -6
- package/packages/indexer_client/src/models/hb-proof-fields.js.map +1 -1
- package/packages/indexer_client/src/models/hb-proof-fields.mjs +6 -6
- package/packages/indexer_client/src/models/hb-proof-fields.mjs.map +1 -1
- package/packages/indexer_client/src/models/participation-updates.d.ts +2 -2
- package/packages/indexer_client/src/models/participation-updates.js +2 -2
- package/packages/indexer_client/src/models/participation-updates.js.map +1 -1
- package/packages/indexer_client/src/models/participation-updates.mjs +2 -2
- package/packages/indexer_client/src/models/participation-updates.mjs.map +1 -1
- package/packages/indexer_client/src/models/state-proof-verifier.js +2 -2
- package/packages/indexer_client/src/models/state-proof-verifier.js.map +1 -1
- package/packages/indexer_client/src/models/state-proof-verifier.mjs +2 -2
- package/packages/indexer_client/src/models/state-proof-verifier.mjs.map +1 -1
- package/packages/indexer_client/src/models/state-schema.d.ts +2 -2
- package/packages/indexer_client/src/models/state-schema.js +2 -2
- package/packages/indexer_client/src/models/state-schema.js.map +1 -1
- package/packages/indexer_client/src/models/state-schema.mjs +2 -2
- package/packages/indexer_client/src/models/state-schema.mjs.map +1 -1
- package/packages/indexer_client/src/models/teal-key-value.d.ts +1 -1
- package/packages/indexer_client/src/models/teal-key-value.js +2 -2
- package/packages/indexer_client/src/models/teal-key-value.js.map +1 -1
- package/packages/indexer_client/src/models/teal-key-value.mjs +2 -2
- package/packages/indexer_client/src/models/teal-key-value.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction-heartbeat.js +2 -1
- package/packages/indexer_client/src/models/transaction-heartbeat.js.map +1 -1
- package/packages/indexer_client/src/models/transaction-heartbeat.mjs +2 -1
- package/packages/indexer_client/src/models/transaction-heartbeat.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction-keyreg.js +4 -4
- package/packages/indexer_client/src/models/transaction-keyreg.js.map +1 -1
- package/packages/indexer_client/src/models/transaction-keyreg.mjs +4 -4
- package/packages/indexer_client/src/models/transaction-keyreg.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction-signature-logicsig.js +2 -1
- package/packages/indexer_client/src/models/transaction-signature-logicsig.js.map +1 -1
- package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs +2 -1
- package/packages/indexer_client/src/models/transaction-signature-logicsig.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js +3 -3
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.js.map +1 -1
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs +3 -3
- package/packages/indexer_client/src/models/transaction-signature-multisig-subsignature.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction-state-proof.d.ts +1 -1
- package/packages/indexer_client/src/models/transaction-state-proof.js +2 -2
- package/packages/indexer_client/src/models/transaction-state-proof.js.map +1 -1
- package/packages/indexer_client/src/models/transaction-state-proof.mjs +2 -2
- package/packages/indexer_client/src/models/transaction-state-proof.mjs.map +1 -1
- package/packages/indexer_client/src/models/transaction.d.ts +2 -2
- package/packages/indexer_client/src/models/transaction.js +6 -5
- package/packages/indexer_client/src/models/transaction.js.map +1 -1
- package/packages/indexer_client/src/models/transaction.mjs +6 -5
- package/packages/indexer_client/src/models/transaction.mjs.map +1 -1
- package/packages/kmd_client/src/apis/api-service.d.ts +5 -5
- package/packages/kmd_client/src/apis/api-service.js +32 -32
- package/packages/kmd_client/src/apis/api-service.js.map +1 -1
- package/packages/kmd_client/src/apis/api-service.mjs +32 -32
- package/packages/kmd_client/src/apis/api-service.mjs.map +1 -1
- package/packages/kmd_client/src/core/api-error.js +3 -1
- package/packages/kmd_client/src/core/api-error.js.map +1 -1
- package/packages/kmd_client/src/core/api-error.mjs +3 -1
- package/packages/kmd_client/src/core/api-error.mjs.map +1 -1
- package/packages/kmd_client/src/core/model-runtime.js +2 -12
- package/packages/kmd_client/src/core/model-runtime.js.map +1 -1
- package/packages/kmd_client/src/core/model-runtime.mjs +3 -11
- package/packages/kmd_client/src/core/model-runtime.mjs.map +1 -1
- package/packages/transact/src/logicsig.d.ts +35 -33
- package/packages/transact/src/logicsig.js +74 -76
- package/packages/transact/src/logicsig.js.map +1 -1
- package/packages/transact/src/logicsig.mjs +77 -78
- package/packages/transact/src/logicsig.mjs.map +1 -1
- package/packages/transact/src/multisig.d.ts +11 -116
- package/packages/transact/src/multisig.js +106 -136
- package/packages/transact/src/multisig.js.map +1 -1
- package/packages/transact/src/multisig.mjs +108 -118
- package/packages/transact/src/multisig.mjs.map +1 -1
- package/packages/transact/src/signer.js +9 -2
- package/packages/transact/src/signer.js.map +1 -1
- package/packages/transact/src/signer.mjs +10 -3
- package/packages/transact/src/signer.mjs.map +1 -1
- package/packages/transact/src/transactions/app-call.d.ts +10 -15
- package/packages/transact/src/transactions/app-call.js.map +1 -1
- package/packages/transact/src/transactions/app-call.mjs.map +1 -1
- package/packages/transact/src/transactions/asset-config.d.ts +1 -6
- package/packages/transact/src/transactions/asset-config.js.map +1 -1
- package/packages/transact/src/transactions/asset-config.mjs.map +1 -1
- package/packages/transact/src/transactions/asset-freeze.d.ts +1 -6
- package/packages/transact/src/transactions/asset-transfer.d.ts +1 -6
- package/packages/transact/src/transactions/key-registration.d.ts +1 -8
- package/packages/transact/src/transactions/reference-types-meta.d.ts +26 -0
- package/packages/transact/src/transactions/reference-types-meta.js +71 -0
- package/packages/transact/src/transactions/reference-types-meta.js.map +1 -0
- package/packages/transact/src/transactions/reference-types-meta.mjs +69 -0
- package/packages/transact/src/transactions/reference-types-meta.mjs.map +1 -0
- package/packages/transact/src/transactions/signed-transaction-meta.js +8 -9
- package/packages/transact/src/transactions/signed-transaction-meta.js.map +1 -1
- package/packages/transact/src/transactions/signed-transaction-meta.mjs +8 -8
- package/packages/transact/src/transactions/signed-transaction-meta.mjs.map +1 -1
- package/packages/transact/src/transactions/signed-transaction.d.ts +10 -6
- package/packages/transact/src/transactions/signed-transaction.js +1 -1
- package/packages/transact/src/transactions/signed-transaction.js.map +1 -1
- package/packages/transact/src/transactions/signed-transaction.mjs +1 -2
- package/packages/transact/src/transactions/signed-transaction.mjs.map +1 -1
- package/packages/transact/src/transactions/state-proof.d.ts +1 -1
- package/packages/transact/src/transactions/transaction-meta.js +29 -23
- package/packages/transact/src/transactions/transaction-meta.js.map +1 -1
- package/packages/transact/src/transactions/transaction-meta.mjs +29 -23
- package/packages/transact/src/transactions/transaction-meta.mjs.map +1 -1
- package/packages/transact/src/transactions/transaction.d.ts +5 -2
- package/packages/transact/src/transactions/transaction.js +5 -4
- package/packages/transact/src/transactions/transaction.js.map +1 -1
- package/packages/transact/src/transactions/transaction.mjs +5 -4
- package/packages/transact/src/transactions/transaction.mjs.map +1 -1
- package/testing/account.d.ts +2 -2
- package/testing/account.js +2 -3
- package/testing/account.js.map +1 -1
- package/testing/account.mjs +2 -3
- package/testing/account.mjs.map +1 -1
- package/testing/fixtures/algokit-log-capture-fixture.d.ts +1 -1
- package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -1
- package/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -1
- package/testing/fixtures/algorand-fixture.d.ts +5 -5
- package/testing/fixtures/algorand-fixture.js +2 -2
- package/testing/fixtures/algorand-fixture.js.map +1 -1
- package/testing/fixtures/algorand-fixture.mjs +2 -2
- package/testing/fixtures/algorand-fixture.mjs.map +1 -1
- package/testing/index.d.ts +2 -1
- package/testing/test-logger.d.ts +1 -1
- package/testing/test-logger.js.map +1 -1
- package/testing/test-logger.mjs.map +1 -1
- package/testing/transaction-logger.js +1 -1
- package/testing/transaction-logger.mjs +1 -1
- package/testing/types.d.ts +156 -0
- package/transact/index.d.ts +11 -10
- package/transact/index.js +7 -31
- package/transact/index.mjs +7 -10
- package/transaction/index.d.ts +4 -0
- package/transaction/index.js +9 -0
- package/transaction/index.mjs +4 -0
- package/transaction/perform-transaction-composer-simulate.d.ts +1 -1
- package/transaction/perform-transaction-composer-simulate.js.map +1 -1
- package/transaction/perform-transaction-composer-simulate.mjs.map +1 -1
- package/transaction/transaction.d.ts +2 -2
- package/transaction/transaction.js +2 -2
- package/transaction/transaction.js.map +1 -1
- package/transaction/transaction.mjs +2 -2
- package/transaction/transaction.mjs.map +1 -1
- package/transaction/types.d.ts +133 -0
- package/transactions/app-call.d.ts +6 -5
- package/transactions/app-call.js +17 -17
- package/transactions/app-call.js.map +1 -1
- package/transactions/app-call.mjs +17 -17
- package/transactions/app-call.mjs.map +1 -1
- package/transactions/asset-config.d.ts +1 -1
- package/transactions/asset-config.js +1 -1
- package/transactions/asset-config.js.map +1 -1
- package/transactions/asset-config.mjs +1 -1
- package/transactions/asset-config.mjs.map +1 -1
- package/transactions/common.d.ts +1 -1
- package/transactions/common.js.map +1 -1
- package/transactions/common.mjs.map +1 -1
- package/transactions/key-registration.d.ts +1 -1
- package/transactions/key-registration.js.map +1 -1
- package/transactions/key-registration.mjs.map +1 -1
- package/transactions/method-call.d.ts +2 -2
- package/transactions/method-call.js +78 -85
- package/transactions/method-call.js.map +1 -1
- package/transactions/method-call.mjs +78 -85
- package/transactions/method-call.mjs.map +1 -1
- package/transactions/payment.d.ts +1 -1
- package/transactions/payment.js.map +1 -1
- package/transactions/payment.mjs.map +1 -1
- package/types/account-manager.d.ts +11 -444
- package/types/account-manager.js +5 -606
- package/types/account-manager.js.map +1 -1
- package/types/account-manager.mjs +5 -604
- package/types/account-manager.mjs.map +1 -1
- package/types/account.d.ts +8 -150
- package/types/account.js +3 -4
- package/types/account.js.map +1 -1
- package/types/account.mjs +4 -4
- package/types/account.mjs.map +1 -1
- package/types/algorand-client-transaction-creator.d.ts +5 -1084
- package/types/algorand-client-transaction-creator.js +3 -721
- package/types/algorand-client-transaction-creator.js.map +1 -1
- package/types/algorand-client-transaction-creator.mjs +4 -721
- package/types/algorand-client-transaction-creator.mjs.map +1 -1
- package/types/algorand-client-transaction-sender.d.ts +5 -1298
- package/types/algorand-client-transaction-sender.js +3 -920
- package/types/algorand-client-transaction-sender.js.map +1 -1
- package/types/algorand-client-transaction-sender.mjs +3 -918
- package/types/algorand-client-transaction-sender.mjs.map +1 -1
- package/types/algorand-client.d.ts +5 -241
- package/types/algorand-client.js +3 -319
- package/types/algorand-client.js.map +1 -1
- package/types/algorand-client.mjs +3 -319
- package/types/algorand-client.mjs.map +1 -1
- package/types/amount.d.ts +6 -45
- package/types/amount.js +3 -60
- package/types/amount.js.map +1 -1
- package/types/amount.mjs +3 -60
- package/types/amount.mjs.map +1 -1
- package/types/app-client.d.ts +75 -2120
- package/types/app-client.js +3 -904
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +3 -902
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.d.ts +21 -161
- package/types/app-deployer.js +3 -347
- package/types/app-deployer.js.map +1 -1
- package/types/app-deployer.mjs +3 -347
- package/types/app-deployer.mjs.map +1 -1
- package/types/app-factory.d.ts +21 -957
- package/types/app-factory.js +3 -442
- package/types/app-factory.js.map +1 -1
- package/types/app-factory.mjs +3 -442
- package/types/app-factory.mjs.map +1 -1
- package/types/app-manager.d.ts +15 -316
- package/types/app-manager.js +3 -456
- package/types/app-manager.js.map +1 -1
- package/types/app-manager.mjs +3 -456
- package/types/app-manager.mjs.map +1 -1
- package/types/app-spec.d.ts +39 -198
- package/types/app-spec.js +3 -124
- package/types/app-spec.js.map +1 -1
- package/types/app-spec.mjs +3 -124
- package/types/app-spec.mjs.map +1 -1
- package/types/app.d.ts +62 -247
- package/types/app.js +15 -37
- package/types/app.js.map +1 -1
- package/types/app.mjs +16 -37
- package/types/app.mjs.map +1 -1
- package/types/asset-manager.d.ts +9 -207
- package/types/asset-manager.js +3 -160
- package/types/asset-manager.js.map +1 -1
- package/types/asset-manager.mjs +3 -160
- package/types/asset-manager.mjs.map +1 -1
- package/types/async-event-emitter.d.ts +7 -14
- package/types/async-event-emitter.js +3 -32
- package/types/async-event-emitter.js.map +1 -1
- package/types/async-event-emitter.mjs +4 -32
- package/types/async-event-emitter.mjs.map +1 -1
- package/types/client-manager.d.ts +27 -470
- package/types/client-manager.js +3 -610
- package/types/client-manager.js.map +1 -1
- package/types/client-manager.mjs +3 -610
- package/types/client-manager.mjs.map +1 -1
- package/types/composer.d.ts +79 -935
- package/types/composer.js +3 -1569
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +3 -1567
- package/types/composer.mjs.map +1 -1
- package/types/config.d.ts +7 -52
- package/types/config.js +3 -74
- package/types/config.js.map +1 -1
- package/types/config.mjs +3 -74
- package/types/config.mjs.map +1 -1
- package/types/debugging.d.ts +12 -33
- package/types/debugging.js +11 -10
- package/types/debugging.js.map +1 -1
- package/types/debugging.mjs +12 -10
- package/types/debugging.mjs.map +1 -1
- package/types/dispenser-client.d.ts +11 -85
- package/types/dispenser-client.js +3 -121
- package/types/dispenser-client.js.map +1 -1
- package/types/dispenser-client.mjs +3 -121
- package/types/dispenser-client.mjs.map +1 -1
- package/types/expand.d.ts +4 -5
- package/types/indexer.d.ts +16 -36
- package/types/indexer.js +7 -30
- package/types/indexer.js.map +1 -1
- package/types/indexer.mjs +8 -30
- package/types/indexer.mjs.map +1 -1
- package/types/instance-of.d.ts +4 -4
- package/types/kmd-account-manager.d.ts +5 -68
- package/types/kmd-account-manager.js +3 -150
- package/types/kmd-account-manager.js.map +1 -1
- package/types/kmd-account-manager.mjs +3 -148
- package/types/kmd-account-manager.mjs.map +1 -1
- package/types/lifecycle-events.d.ts +7 -10
- package/types/lifecycle-events.js +3 -5
- package/types/lifecycle-events.js.map +1 -1
- package/types/lifecycle-events.mjs +4 -5
- package/types/lifecycle-events.mjs.map +1 -1
- package/types/logging.d.ts +14 -9
- package/types/logging.js +11 -37
- package/types/logging.js.map +1 -1
- package/types/logging.mjs +12 -37
- package/types/logging.mjs.map +1 -1
- package/types/logic-error.d.ts +8 -35
- package/types/logic-error.js +3 -48
- package/types/logic-error.js.map +1 -1
- package/types/logic-error.mjs +4 -48
- package/types/logic-error.mjs.map +1 -1
- package/types/network-client.d.ts +10 -39
- package/types/network-client.js +3 -8
- package/types/network-client.js.map +1 -1
- package/types/network-client.mjs +4 -8
- package/types/network-client.mjs.map +1 -1
- package/types/testing.d.ts +13 -151
- package/types/transaction.d.ts +33 -128
- package/updatable-config.d.ts +57 -0
- package/updatable-config.js +80 -0
- package/updatable-config.js.map +1 -0
- package/updatable-config.mjs +80 -0
- package/updatable-config.mjs.map +1 -0
- package/util.js +1 -1
- package/util.js.map +1 -1
- package/util.mjs +1 -1
- package/util.mjs.map +1 -1
- package/_virtual/rolldown_runtime.mjs +0 -13
- package/indexer-lookup.js.map +0 -1
- package/indexer-lookup.mjs.map +0 -1
- package/packages/algod_client/src/core/model-runtime.d.ts +0 -10
- package/packages/algod_client/src/models/application-local-reference.d.ts +0 -20
- package/packages/algod_client/src/models/application-local-reference.js +0 -23
- package/packages/algod_client/src/models/application-local-reference.js.map +0 -1
- package/packages/algod_client/src/models/application-local-reference.mjs +0 -23
- package/packages/algod_client/src/models/application-local-reference.mjs.map +0 -1
- package/packages/algod_client/src/models/asset-holding-reference.d.ts +0 -20
- package/packages/algod_client/src/models/asset-holding-reference.js +0 -23
- package/packages/algod_client/src/models/asset-holding-reference.js.map +0 -1
- package/packages/algod_client/src/models/asset-holding-reference.mjs +0 -23
- package/packages/algod_client/src/models/asset-holding-reference.mjs.map +0 -1
- package/packages/algod_client/src/models/box-reference.d.ts +0 -17
- package/packages/algod_client/src/models/box-reference.js +0 -23
- package/packages/algod_client/src/models/box-reference.js.map +0 -1
- package/packages/algod_client/src/models/box-reference.mjs +0 -23
- package/packages/algod_client/src/models/box-reference.mjs.map +0 -1
- package/packages/indexer_client/src/core/model-runtime.d.ts +0 -10
- package/packages/kmd_client/src/core/model-runtime.d.ts +0 -10
- package/packages/sdk/src/convert.d.ts +0 -17
- package/packages/sdk/src/convert.js +0 -28
- package/packages/sdk/src/convert.js.map +0 -1
- package/packages/sdk/src/convert.mjs +0 -25
- package/packages/sdk/src/convert.mjs.map +0 -1
- package/packages/sdk/src/encoding/binarydata.d.ts +0 -34
- package/packages/sdk/src/encoding/binarydata.js +0 -65
- package/packages/sdk/src/encoding/binarydata.js.map +0 -1
- package/packages/sdk/src/encoding/binarydata.mjs +0 -60
- package/packages/sdk/src/encoding/binarydata.mjs.map +0 -1
- package/packages/sdk/src/encoding/encoding.d.ts +0 -237
- package/packages/sdk/src/encoding/encoding.js +0 -302
- package/packages/sdk/src/encoding/encoding.js.map +0 -1
- package/packages/sdk/src/encoding/encoding.mjs +0 -287
- package/packages/sdk/src/encoding/encoding.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/array.js +0 -35
- package/packages/sdk/src/encoding/schema/array.js.map +0 -1
- package/packages/sdk/src/encoding/schema/array.mjs +0 -35
- package/packages/sdk/src/encoding/schema/array.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/bytearray.js +0 -49
- package/packages/sdk/src/encoding/schema/bytearray.js.map +0 -1
- package/packages/sdk/src/encoding/schema/bytearray.mjs +0 -49
- package/packages/sdk/src/encoding/schema/bytearray.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/map.d.ts +0 -58
- package/packages/sdk/src/encoding/schema/map.js +0 -110
- package/packages/sdk/src/encoding/schema/map.js.map +0 -1
- package/packages/sdk/src/encoding/schema/map.mjs +0 -107
- package/packages/sdk/src/encoding/schema/map.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/optional.js +0 -46
- package/packages/sdk/src/encoding/schema/optional.js.map +0 -1
- package/packages/sdk/src/encoding/schema/optional.mjs +0 -46
- package/packages/sdk/src/encoding/schema/optional.mjs.map +0 -1
- package/packages/sdk/src/encoding/schema/uint64.js +0 -30
- package/packages/sdk/src/encoding/schema/uint64.js.map +0 -1
- package/packages/sdk/src/encoding/schema/uint64.mjs +0 -30
- package/packages/sdk/src/encoding/schema/uint64.mjs.map +0 -1
- package/packages/sdk/src/encoding/uint64.d.ts +0 -34
- package/packages/sdk/src/encoding/uint64.js +0 -34
- package/packages/sdk/src/encoding/uint64.js.map +0 -1
- package/packages/sdk/src/encoding/uint64.mjs +0 -33
- package/packages/sdk/src/encoding/uint64.mjs.map +0 -1
- package/packages/sdk/src/index.d.ts +0 -44
- package/packages/sdk/src/index.js +0 -62
- package/packages/sdk/src/index.js.map +0 -1
- package/packages/sdk/src/index.mjs +0 -58
- package/packages/sdk/src/index.mjs.map +0 -1
- package/packages/sdk/src/nacl/naclWrappers.js +0 -14
- package/packages/sdk/src/nacl/naclWrappers.js.map +0 -1
- package/packages/sdk/src/nacl/naclWrappers.mjs +0 -11
- package/packages/sdk/src/nacl/naclWrappers.mjs.map +0 -1
- package/packages/sdk/src/types/intDecoding.d.ts +0 -28
- package/packages/sdk/src/types/intDecoding.js +0 -32
- package/packages/sdk/src/types/intDecoding.js.map +0 -1
- package/packages/sdk/src/types/intDecoding.mjs +0 -31
- package/packages/sdk/src/types/intDecoding.mjs.map +0 -1
- package/packages/sdk/src/types/transactions/encoded.d.ts +0 -40
- package/packages/sdk/src/types/transactions/encoded.js +0 -64
- package/packages/sdk/src/types/transactions/encoded.js.map +0 -1
- package/packages/sdk/src/types/transactions/encoded.mjs +0 -59
- package/packages/sdk/src/types/transactions/encoded.mjs.map +0 -1
- package/packages/sdk/src/utils/utils.d.ts +0 -64
- package/packages/sdk/src/utils/utils.js +0 -140
- package/packages/sdk/src/utils/utils.js.map +0 -1
- package/packages/sdk/src/utils/utils.mjs +0 -128
- package/packages/sdk/src/utils/utils.mjs.map +0 -1
- package/packages/transact/src/transactions/common.d.ts +0 -37
- package/sdk/index.d.ts +0 -10
- package/sdk/index.js +0 -59
- package/sdk/index.mjs +0 -11
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
|
|
2
|
-
const require_intDecoding = require('../types/intDecoding.js');
|
|
3
|
-
let json_bigint = require("json-bigint");
|
|
4
|
-
json_bigint = require_rolldown_runtime.__toESM(json_bigint);
|
|
5
|
-
|
|
6
|
-
//#region packages/sdk/src/utils/utils.ts
|
|
7
|
-
const JSONbig = (0, json_bigint.default)({
|
|
8
|
-
useNativeBigInt: true,
|
|
9
|
-
strict: true
|
|
10
|
-
});
|
|
11
|
-
/**
|
|
12
|
-
* Parse JSON with additional options.
|
|
13
|
-
* @param str - The JSON string to parse.
|
|
14
|
-
* @param options - Configures how integers in this JSON string will be decoded. See the
|
|
15
|
-
* `IntDecoding` enum for more details.
|
|
16
|
-
*/
|
|
17
|
-
function parseJSON(str, { intDecoding }) {
|
|
18
|
-
if (intDecoding !== require_intDecoding.default.SAFE && intDecoding !== require_intDecoding.default.UNSAFE && intDecoding !== require_intDecoding.default.BIGINT && intDecoding !== require_intDecoding.default.MIXED) throw new Error(`Invalid intDecoding option: ${intDecoding}`);
|
|
19
|
-
return JSONbig.parse(str, (_, value) => {
|
|
20
|
-
if (value != null && typeof value === "object" && Object.getPrototypeOf(value) == null) Object.setPrototypeOf(value, Object.prototype);
|
|
21
|
-
if (typeof value === "bigint") {
|
|
22
|
-
if (intDecoding === require_intDecoding.default.SAFE && value > Number.MAX_SAFE_INTEGER) throw new Error(`Integer exceeds maximum safe integer: ${value.toString()}. Try parsing with a different intDecoding option.`);
|
|
23
|
-
if (intDecoding === require_intDecoding.default.BIGINT || intDecoding === require_intDecoding.default.MIXED && value > Number.MAX_SAFE_INTEGER) return value;
|
|
24
|
-
return Number(value);
|
|
25
|
-
}
|
|
26
|
-
if (typeof value === "number") {
|
|
27
|
-
if (intDecoding === require_intDecoding.default.BIGINT && Number.isInteger(value)) return BigInt(value);
|
|
28
|
-
}
|
|
29
|
-
return value;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
|
34
|
-
*
|
|
35
|
-
* This functions differs from the built-in JSON.stringify in that it supports serializing BigInts.
|
|
36
|
-
*
|
|
37
|
-
* This function takes the same arguments as the built-in JSON.stringify function.
|
|
38
|
-
*
|
|
39
|
-
* @param value - A JavaScript value, usually an object or array, to be converted.
|
|
40
|
-
* @param replacer - A function that transforms the results.
|
|
41
|
-
* @param space - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
42
|
-
*/
|
|
43
|
-
function stringifyJSON(value, replacer, space) {
|
|
44
|
-
return JSONbig.stringify(value, replacer, space);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* ArrayEqual takes two arrays and return true if equal, false otherwise
|
|
48
|
-
*/
|
|
49
|
-
function arrayEqual(a, b) {
|
|
50
|
-
if (a.length !== b.length) return false;
|
|
51
|
-
return Array.from(a).every((val, i) => val === b[i]);
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* ConcatArrays takes n number arrays and returns a joint Uint8Array
|
|
55
|
-
* @param arrs - An arbitrary number of n array-like number list arguments
|
|
56
|
-
* @returns [a,b]
|
|
57
|
-
*/
|
|
58
|
-
function concatArrays(...arrs) {
|
|
59
|
-
const size = arrs.reduce((sum, arr) => sum + arr.length, 0);
|
|
60
|
-
const c = new Uint8Array(size);
|
|
61
|
-
let offset = 0;
|
|
62
|
-
for (let i = 0; i < arrs.length; i++) {
|
|
63
|
-
c.set(arrs[i], offset);
|
|
64
|
-
offset += arrs[i].length;
|
|
65
|
-
}
|
|
66
|
-
return c;
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Remove undefined properties from an object
|
|
70
|
-
* @param obj - An object, preferably one with some undefined properties
|
|
71
|
-
* @returns A copy of the object with undefined properties removed
|
|
72
|
-
*/
|
|
73
|
-
function removeUndefinedProperties(obj) {
|
|
74
|
-
const mutableCopy = { ...obj };
|
|
75
|
-
Object.keys(mutableCopy).forEach((key) => {
|
|
76
|
-
if (typeof mutableCopy[key] === "undefined") delete mutableCopy[key];
|
|
77
|
-
});
|
|
78
|
-
return mutableCopy;
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Check whether the environment is Node.js (as opposed to the browser)
|
|
82
|
-
* @returns True if Node.js environment, false otherwise
|
|
83
|
-
*/
|
|
84
|
-
function isNode() {
|
|
85
|
-
return typeof process === "object" && typeof process.versions === "object" && typeof process.versions.node !== "undefined";
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Check whether the environment is ReactNative
|
|
89
|
-
* @returns True if ReactNative, false otherwise
|
|
90
|
-
*/
|
|
91
|
-
function isReactNative() {
|
|
92
|
-
const { navigator } = globalThis;
|
|
93
|
-
if (typeof navigator === "object" && navigator.product === "ReactNative") return true;
|
|
94
|
-
return false;
|
|
95
|
-
}
|
|
96
|
-
function ensureSafeInteger(value) {
|
|
97
|
-
if (typeof value === "undefined") throw new Error("Value is undefined");
|
|
98
|
-
if (typeof value === "bigint") {
|
|
99
|
-
if (value > BigInt(Number.MAX_SAFE_INTEGER) || value < BigInt(Number.MIN_SAFE_INTEGER)) throw new Error(`BigInt value ${value} is not a safe integer`);
|
|
100
|
-
return Number(value);
|
|
101
|
-
}
|
|
102
|
-
if (typeof value === "number") {
|
|
103
|
-
if (Number.isSafeInteger(value)) return value;
|
|
104
|
-
throw new Error(`Value ${value} is not a safe integer`);
|
|
105
|
-
}
|
|
106
|
-
throw new Error(`Unexpected type ${typeof value}, ${value}`);
|
|
107
|
-
}
|
|
108
|
-
function ensureSafeUnsignedInteger(value) {
|
|
109
|
-
const intValue = ensureSafeInteger(value);
|
|
110
|
-
if (intValue < 0) throw new Error(`Value ${intValue} is negative`);
|
|
111
|
-
return intValue;
|
|
112
|
-
}
|
|
113
|
-
function ensureBigInt(value) {
|
|
114
|
-
if (typeof value === "undefined") throw new Error("Value is undefined");
|
|
115
|
-
if (typeof value === "bigint") return value;
|
|
116
|
-
if (typeof value === "number") {
|
|
117
|
-
if (!Number.isSafeInteger(value)) throw new Error(`Value ${value} is not a safe integer`);
|
|
118
|
-
return BigInt(value);
|
|
119
|
-
}
|
|
120
|
-
throw new Error(`Unexpected type ${typeof value}, ${value}`);
|
|
121
|
-
}
|
|
122
|
-
function ensureUint64(value) {
|
|
123
|
-
const bigIntValue = ensureBigInt(value);
|
|
124
|
-
if (bigIntValue < 0 || bigIntValue > BigInt("0xffffffffffffffff")) throw new Error(`Value ${bigIntValue} is not a uint64`);
|
|
125
|
-
return bigIntValue;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
//#endregion
|
|
129
|
-
exports.arrayEqual = arrayEqual;
|
|
130
|
-
exports.concatArrays = concatArrays;
|
|
131
|
-
exports.ensureBigInt = ensureBigInt;
|
|
132
|
-
exports.ensureSafeInteger = ensureSafeInteger;
|
|
133
|
-
exports.ensureSafeUnsignedInteger = ensureSafeUnsignedInteger;
|
|
134
|
-
exports.ensureUint64 = ensureUint64;
|
|
135
|
-
exports.isNode = isNode;
|
|
136
|
-
exports.isReactNative = isReactNative;
|
|
137
|
-
exports.parseJSON = parseJSON;
|
|
138
|
-
exports.removeUndefinedProperties = removeUndefinedProperties;
|
|
139
|
-
exports.stringifyJSON = stringifyJSON;
|
|
140
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":["IntDecoding"],"sources":["../../../../../packages/sdk/src/utils/utils.ts"],"sourcesContent":["import JSONbigWithoutConfig from 'json-bigint'\nimport IntDecoding from '../types/intDecoding.js'\n\nconst JSONbig = JSONbigWithoutConfig({\n useNativeBigInt: true,\n strict: true,\n})\n\nexport interface ParseJSONOptions {\n intDecoding: IntDecoding\n}\n\n/**\n * Parse JSON with additional options.\n * @param str - The JSON string to parse.\n * @param options - Configures how integers in this JSON string will be decoded. See the\n * `IntDecoding` enum for more details.\n */\nexport function parseJSON(str: string, { intDecoding }: ParseJSONOptions) {\n if (\n intDecoding !== IntDecoding.SAFE &&\n intDecoding !== IntDecoding.UNSAFE &&\n intDecoding !== IntDecoding.BIGINT &&\n intDecoding !== IntDecoding.MIXED\n ) {\n throw new Error(`Invalid intDecoding option: ${intDecoding}`)\n }\n return JSONbig.parse(str, (_: string, value: any): any => {\n if (value != null && typeof value === 'object' && Object.getPrototypeOf(value) == null) {\n // JSONbig.parse objects are created with Object.create(null) and thus have a null prototype\n // let us remedy that\n Object.setPrototypeOf(value, Object.prototype)\n }\n\n if (typeof value === 'bigint') {\n if (intDecoding === IntDecoding.SAFE && value > Number.MAX_SAFE_INTEGER) {\n throw new Error(`Integer exceeds maximum safe integer: ${value.toString()}. Try parsing with a different intDecoding option.`)\n }\n if (intDecoding === IntDecoding.BIGINT || (intDecoding === IntDecoding.MIXED && value > Number.MAX_SAFE_INTEGER)) {\n return value\n }\n // JSONbig.parse converts number to BigInts if they are >= 10**15. This is smaller than\n // Number.MAX_SAFE_INTEGER, so we can convert some BigInts back to normal numbers.\n return Number(value)\n }\n\n if (typeof value === 'number') {\n if (intDecoding === IntDecoding.BIGINT && Number.isInteger(value)) {\n return BigInt(value)\n }\n }\n\n return value\n })\n}\n\n/**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n *\n * This functions differs from the built-in JSON.stringify in that it supports serializing BigInts.\n *\n * This function takes the same arguments as the built-in JSON.stringify function.\n *\n * @param value - A JavaScript value, usually an object or array, to be converted.\n * @param replacer - A function that transforms the results.\n * @param space - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\nexport function stringifyJSON(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string {\n return JSONbig.stringify(value, replacer, space)\n}\n\n/**\n * ArrayEqual takes two arrays and return true if equal, false otherwise\n */\nexport function arrayEqual<T>(a: ArrayLike<T>, b: ArrayLike<T>): boolean {\n if (a.length !== b.length) {\n return false\n }\n return Array.from(a).every((val, i) => val === b[i])\n}\n\n/**\n * ConcatArrays takes n number arrays and returns a joint Uint8Array\n * @param arrs - An arbitrary number of n array-like number list arguments\n * @returns [a,b]\n */\nexport function concatArrays(...arrs: ArrayLike<number>[]) {\n const size = arrs.reduce((sum, arr) => sum + arr.length, 0)\n const c = new Uint8Array(size)\n\n let offset = 0\n for (let i = 0; i < arrs.length; i++) {\n c.set(arrs[i], offset)\n offset += arrs[i].length\n }\n\n return c\n}\n\n/**\n * Remove undefined properties from an object\n * @param obj - An object, preferably one with some undefined properties\n * @returns A copy of the object with undefined properties removed\n */\nexport function removeUndefinedProperties(obj: Record<string | number | symbol, any>) {\n const mutableCopy = { ...obj }\n Object.keys(mutableCopy).forEach((key) => {\n if (typeof mutableCopy[key] === 'undefined') delete mutableCopy[key]\n })\n return mutableCopy\n}\n\n/**\n * Check whether the environment is Node.js (as opposed to the browser)\n * @returns True if Node.js environment, false otherwise\n */\nexport function isNode() {\n return (\n // @ts-ignore\n typeof process === 'object' &&\n // @ts-ignore\n typeof process.versions === 'object' &&\n // @ts-ignore\n typeof process.versions.node !== 'undefined'\n )\n}\n\n/**\n * Check whether the environment is ReactNative\n * @returns True if ReactNative, false otherwise\n */\nexport function isReactNative() {\n const { navigator } = globalThis as { navigator?: { product?: string } }\n if (typeof navigator === 'object' && navigator.product === 'ReactNative') {\n return true\n }\n return false\n}\n\nexport function ensureSafeInteger(value: unknown): number {\n if (typeof value === 'undefined') {\n throw new Error('Value is undefined')\n }\n if (typeof value === 'bigint') {\n if (value > BigInt(Number.MAX_SAFE_INTEGER) || value < BigInt(Number.MIN_SAFE_INTEGER)) {\n throw new Error(`BigInt value ${value} is not a safe integer`)\n }\n return Number(value)\n }\n if (typeof value === 'number') {\n if (Number.isSafeInteger(value)) {\n return value\n }\n throw new Error(`Value ${value} is not a safe integer`)\n }\n throw new Error(`Unexpected type ${typeof value}, ${value}`)\n}\n\nexport function ensureSafeUnsignedInteger(value: unknown): number {\n const intValue = ensureSafeInteger(value)\n if (intValue < 0) {\n throw new Error(`Value ${intValue} is negative`)\n }\n return intValue\n}\n\nexport function ensureBigInt(value: unknown): bigint {\n if (typeof value === 'undefined') {\n throw new Error('Value is undefined')\n }\n if (typeof value === 'bigint') {\n return value\n }\n if (typeof value === 'number') {\n if (!Number.isSafeInteger(value)) {\n throw new Error(`Value ${value} is not a safe integer`)\n }\n return BigInt(value)\n }\n throw new Error(`Unexpected type ${typeof value}, ${value}`)\n}\n\nexport function ensureUint64(value: unknown): bigint {\n const bigIntValue = ensureBigInt(value)\n if (bigIntValue < 0 || bigIntValue > BigInt('0xffffffffffffffff')) {\n throw new Error(`Value ${bigIntValue} is not a uint64`)\n }\n return bigIntValue\n}\n"],"mappings":"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"}
|
|
@@ -1,128 +0,0 @@
|
|
|
1
|
-
import intDecoding_default from "../types/intDecoding.mjs";
|
|
2
|
-
import JSONbigWithoutConfig from "json-bigint";
|
|
3
|
-
|
|
4
|
-
//#region packages/sdk/src/utils/utils.ts
|
|
5
|
-
const JSONbig = JSONbigWithoutConfig({
|
|
6
|
-
useNativeBigInt: true,
|
|
7
|
-
strict: true
|
|
8
|
-
});
|
|
9
|
-
/**
|
|
10
|
-
* Parse JSON with additional options.
|
|
11
|
-
* @param str - The JSON string to parse.
|
|
12
|
-
* @param options - Configures how integers in this JSON string will be decoded. See the
|
|
13
|
-
* `IntDecoding` enum for more details.
|
|
14
|
-
*/
|
|
15
|
-
function parseJSON(str, { intDecoding }) {
|
|
16
|
-
if (intDecoding !== intDecoding_default.SAFE && intDecoding !== intDecoding_default.UNSAFE && intDecoding !== intDecoding_default.BIGINT && intDecoding !== intDecoding_default.MIXED) throw new Error(`Invalid intDecoding option: ${intDecoding}`);
|
|
17
|
-
return JSONbig.parse(str, (_, value) => {
|
|
18
|
-
if (value != null && typeof value === "object" && Object.getPrototypeOf(value) == null) Object.setPrototypeOf(value, Object.prototype);
|
|
19
|
-
if (typeof value === "bigint") {
|
|
20
|
-
if (intDecoding === intDecoding_default.SAFE && value > Number.MAX_SAFE_INTEGER) throw new Error(`Integer exceeds maximum safe integer: ${value.toString()}. Try parsing with a different intDecoding option.`);
|
|
21
|
-
if (intDecoding === intDecoding_default.BIGINT || intDecoding === intDecoding_default.MIXED && value > Number.MAX_SAFE_INTEGER) return value;
|
|
22
|
-
return Number(value);
|
|
23
|
-
}
|
|
24
|
-
if (typeof value === "number") {
|
|
25
|
-
if (intDecoding === intDecoding_default.BIGINT && Number.isInteger(value)) return BigInt(value);
|
|
26
|
-
}
|
|
27
|
-
return value;
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
|
|
32
|
-
*
|
|
33
|
-
* This functions differs from the built-in JSON.stringify in that it supports serializing BigInts.
|
|
34
|
-
*
|
|
35
|
-
* This function takes the same arguments as the built-in JSON.stringify function.
|
|
36
|
-
*
|
|
37
|
-
* @param value - A JavaScript value, usually an object or array, to be converted.
|
|
38
|
-
* @param replacer - A function that transforms the results.
|
|
39
|
-
* @param space - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
|
|
40
|
-
*/
|
|
41
|
-
function stringifyJSON(value, replacer, space) {
|
|
42
|
-
return JSONbig.stringify(value, replacer, space);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* ArrayEqual takes two arrays and return true if equal, false otherwise
|
|
46
|
-
*/
|
|
47
|
-
function arrayEqual(a, b) {
|
|
48
|
-
if (a.length !== b.length) return false;
|
|
49
|
-
return Array.from(a).every((val, i) => val === b[i]);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* ConcatArrays takes n number arrays and returns a joint Uint8Array
|
|
53
|
-
* @param arrs - An arbitrary number of n array-like number list arguments
|
|
54
|
-
* @returns [a,b]
|
|
55
|
-
*/
|
|
56
|
-
function concatArrays(...arrs) {
|
|
57
|
-
const size = arrs.reduce((sum, arr) => sum + arr.length, 0);
|
|
58
|
-
const c = new Uint8Array(size);
|
|
59
|
-
let offset = 0;
|
|
60
|
-
for (let i = 0; i < arrs.length; i++) {
|
|
61
|
-
c.set(arrs[i], offset);
|
|
62
|
-
offset += arrs[i].length;
|
|
63
|
-
}
|
|
64
|
-
return c;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Remove undefined properties from an object
|
|
68
|
-
* @param obj - An object, preferably one with some undefined properties
|
|
69
|
-
* @returns A copy of the object with undefined properties removed
|
|
70
|
-
*/
|
|
71
|
-
function removeUndefinedProperties(obj) {
|
|
72
|
-
const mutableCopy = { ...obj };
|
|
73
|
-
Object.keys(mutableCopy).forEach((key) => {
|
|
74
|
-
if (typeof mutableCopy[key] === "undefined") delete mutableCopy[key];
|
|
75
|
-
});
|
|
76
|
-
return mutableCopy;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Check whether the environment is Node.js (as opposed to the browser)
|
|
80
|
-
* @returns True if Node.js environment, false otherwise
|
|
81
|
-
*/
|
|
82
|
-
function isNode() {
|
|
83
|
-
return typeof process === "object" && typeof process.versions === "object" && typeof process.versions.node !== "undefined";
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Check whether the environment is ReactNative
|
|
87
|
-
* @returns True if ReactNative, false otherwise
|
|
88
|
-
*/
|
|
89
|
-
function isReactNative() {
|
|
90
|
-
const { navigator } = globalThis;
|
|
91
|
-
if (typeof navigator === "object" && navigator.product === "ReactNative") return true;
|
|
92
|
-
return false;
|
|
93
|
-
}
|
|
94
|
-
function ensureSafeInteger(value) {
|
|
95
|
-
if (typeof value === "undefined") throw new Error("Value is undefined");
|
|
96
|
-
if (typeof value === "bigint") {
|
|
97
|
-
if (value > BigInt(Number.MAX_SAFE_INTEGER) || value < BigInt(Number.MIN_SAFE_INTEGER)) throw new Error(`BigInt value ${value} is not a safe integer`);
|
|
98
|
-
return Number(value);
|
|
99
|
-
}
|
|
100
|
-
if (typeof value === "number") {
|
|
101
|
-
if (Number.isSafeInteger(value)) return value;
|
|
102
|
-
throw new Error(`Value ${value} is not a safe integer`);
|
|
103
|
-
}
|
|
104
|
-
throw new Error(`Unexpected type ${typeof value}, ${value}`);
|
|
105
|
-
}
|
|
106
|
-
function ensureSafeUnsignedInteger(value) {
|
|
107
|
-
const intValue = ensureSafeInteger(value);
|
|
108
|
-
if (intValue < 0) throw new Error(`Value ${intValue} is negative`);
|
|
109
|
-
return intValue;
|
|
110
|
-
}
|
|
111
|
-
function ensureBigInt(value) {
|
|
112
|
-
if (typeof value === "undefined") throw new Error("Value is undefined");
|
|
113
|
-
if (typeof value === "bigint") return value;
|
|
114
|
-
if (typeof value === "number") {
|
|
115
|
-
if (!Number.isSafeInteger(value)) throw new Error(`Value ${value} is not a safe integer`);
|
|
116
|
-
return BigInt(value);
|
|
117
|
-
}
|
|
118
|
-
throw new Error(`Unexpected type ${typeof value}, ${value}`);
|
|
119
|
-
}
|
|
120
|
-
function ensureUint64(value) {
|
|
121
|
-
const bigIntValue = ensureBigInt(value);
|
|
122
|
-
if (bigIntValue < 0 || bigIntValue > BigInt("0xffffffffffffffff")) throw new Error(`Value ${bigIntValue} is not a uint64`);
|
|
123
|
-
return bigIntValue;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
//#endregion
|
|
127
|
-
export { arrayEqual, concatArrays, ensureBigInt, ensureSafeInteger, ensureSafeUnsignedInteger, ensureUint64, isNode, isReactNative, parseJSON, removeUndefinedProperties, stringifyJSON };
|
|
128
|
-
//# sourceMappingURL=utils.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.mjs","names":["IntDecoding"],"sources":["../../../../../packages/sdk/src/utils/utils.ts"],"sourcesContent":["import JSONbigWithoutConfig from 'json-bigint'\nimport IntDecoding from '../types/intDecoding.js'\n\nconst JSONbig = JSONbigWithoutConfig({\n useNativeBigInt: true,\n strict: true,\n})\n\nexport interface ParseJSONOptions {\n intDecoding: IntDecoding\n}\n\n/**\n * Parse JSON with additional options.\n * @param str - The JSON string to parse.\n * @param options - Configures how integers in this JSON string will be decoded. See the\n * `IntDecoding` enum for more details.\n */\nexport function parseJSON(str: string, { intDecoding }: ParseJSONOptions) {\n if (\n intDecoding !== IntDecoding.SAFE &&\n intDecoding !== IntDecoding.UNSAFE &&\n intDecoding !== IntDecoding.BIGINT &&\n intDecoding !== IntDecoding.MIXED\n ) {\n throw new Error(`Invalid intDecoding option: ${intDecoding}`)\n }\n return JSONbig.parse(str, (_: string, value: any): any => {\n if (value != null && typeof value === 'object' && Object.getPrototypeOf(value) == null) {\n // JSONbig.parse objects are created with Object.create(null) and thus have a null prototype\n // let us remedy that\n Object.setPrototypeOf(value, Object.prototype)\n }\n\n if (typeof value === 'bigint') {\n if (intDecoding === IntDecoding.SAFE && value > Number.MAX_SAFE_INTEGER) {\n throw new Error(`Integer exceeds maximum safe integer: ${value.toString()}. Try parsing with a different intDecoding option.`)\n }\n if (intDecoding === IntDecoding.BIGINT || (intDecoding === IntDecoding.MIXED && value > Number.MAX_SAFE_INTEGER)) {\n return value\n }\n // JSONbig.parse converts number to BigInts if they are >= 10**15. This is smaller than\n // Number.MAX_SAFE_INTEGER, so we can convert some BigInts back to normal numbers.\n return Number(value)\n }\n\n if (typeof value === 'number') {\n if (intDecoding === IntDecoding.BIGINT && Number.isInteger(value)) {\n return BigInt(value)\n }\n }\n\n return value\n })\n}\n\n/**\n * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.\n *\n * This functions differs from the built-in JSON.stringify in that it supports serializing BigInts.\n *\n * This function takes the same arguments as the built-in JSON.stringify function.\n *\n * @param value - A JavaScript value, usually an object or array, to be converted.\n * @param replacer - A function that transforms the results.\n * @param space - Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.\n */\nexport function stringifyJSON(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string {\n return JSONbig.stringify(value, replacer, space)\n}\n\n/**\n * ArrayEqual takes two arrays and return true if equal, false otherwise\n */\nexport function arrayEqual<T>(a: ArrayLike<T>, b: ArrayLike<T>): boolean {\n if (a.length !== b.length) {\n return false\n }\n return Array.from(a).every((val, i) => val === b[i])\n}\n\n/**\n * ConcatArrays takes n number arrays and returns a joint Uint8Array\n * @param arrs - An arbitrary number of n array-like number list arguments\n * @returns [a,b]\n */\nexport function concatArrays(...arrs: ArrayLike<number>[]) {\n const size = arrs.reduce((sum, arr) => sum + arr.length, 0)\n const c = new Uint8Array(size)\n\n let offset = 0\n for (let i = 0; i < arrs.length; i++) {\n c.set(arrs[i], offset)\n offset += arrs[i].length\n }\n\n return c\n}\n\n/**\n * Remove undefined properties from an object\n * @param obj - An object, preferably one with some undefined properties\n * @returns A copy of the object with undefined properties removed\n */\nexport function removeUndefinedProperties(obj: Record<string | number | symbol, any>) {\n const mutableCopy = { ...obj }\n Object.keys(mutableCopy).forEach((key) => {\n if (typeof mutableCopy[key] === 'undefined') delete mutableCopy[key]\n })\n return mutableCopy\n}\n\n/**\n * Check whether the environment is Node.js (as opposed to the browser)\n * @returns True if Node.js environment, false otherwise\n */\nexport function isNode() {\n return (\n // @ts-ignore\n typeof process === 'object' &&\n // @ts-ignore\n typeof process.versions === 'object' &&\n // @ts-ignore\n typeof process.versions.node !== 'undefined'\n )\n}\n\n/**\n * Check whether the environment is ReactNative\n * @returns True if ReactNative, false otherwise\n */\nexport function isReactNative() {\n const { navigator } = globalThis as { navigator?: { product?: string } }\n if (typeof navigator === 'object' && navigator.product === 'ReactNative') {\n return true\n }\n return false\n}\n\nexport function ensureSafeInteger(value: unknown): number {\n if (typeof value === 'undefined') {\n throw new Error('Value is undefined')\n }\n if (typeof value === 'bigint') {\n if (value > BigInt(Number.MAX_SAFE_INTEGER) || value < BigInt(Number.MIN_SAFE_INTEGER)) {\n throw new Error(`BigInt value ${value} is not a safe integer`)\n }\n return Number(value)\n }\n if (typeof value === 'number') {\n if (Number.isSafeInteger(value)) {\n return value\n }\n throw new Error(`Value ${value} is not a safe integer`)\n }\n throw new Error(`Unexpected type ${typeof value}, ${value}`)\n}\n\nexport function ensureSafeUnsignedInteger(value: unknown): number {\n const intValue = ensureSafeInteger(value)\n if (intValue < 0) {\n throw new Error(`Value ${intValue} is negative`)\n }\n return intValue\n}\n\nexport function ensureBigInt(value: unknown): bigint {\n if (typeof value === 'undefined') {\n throw new Error('Value is undefined')\n }\n if (typeof value === 'bigint') {\n return value\n }\n if (typeof value === 'number') {\n if (!Number.isSafeInteger(value)) {\n throw new Error(`Value ${value} is not a safe integer`)\n }\n return BigInt(value)\n }\n throw new Error(`Unexpected type ${typeof value}, ${value}`)\n}\n\nexport function ensureUint64(value: unknown): bigint {\n const bigIntValue = ensureBigInt(value)\n if (bigIntValue < 0 || bigIntValue > BigInt('0xffffffffffffffff')) {\n throw new Error(`Value ${bigIntValue} is not a uint64`)\n }\n return bigIntValue\n}\n"],"mappings":"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"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
//#region packages/transact/src/transactions/common.d.ts
|
|
2
|
-
declare enum TransactionValidationErrorType {
|
|
3
|
-
RequiredField = 0,
|
|
4
|
-
FieldTooLong = 1,
|
|
5
|
-
ImmutableField = 2,
|
|
6
|
-
ZeroValueField = 3,
|
|
7
|
-
ArbitraryConstraint = 4,
|
|
8
|
-
}
|
|
9
|
-
type TransactionValidationError = RequiredFieldValidationError | FieldTooLongValidationError | ImmutableFieldValidationError | ZeroValueFieldValidationError | ArbitraryConstraintValidationError;
|
|
10
|
-
type RequiredFieldValidationError = {
|
|
11
|
-
type: TransactionValidationErrorType.RequiredField;
|
|
12
|
-
data: string;
|
|
13
|
-
};
|
|
14
|
-
type FieldTooLongValidationError = {
|
|
15
|
-
type: TransactionValidationErrorType.FieldTooLong;
|
|
16
|
-
data: {
|
|
17
|
-
field: string;
|
|
18
|
-
actual: number;
|
|
19
|
-
max: number;
|
|
20
|
-
unit: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
type ImmutableFieldValidationError = {
|
|
24
|
-
type: TransactionValidationErrorType.ImmutableField;
|
|
25
|
-
data: string;
|
|
26
|
-
};
|
|
27
|
-
type ZeroValueFieldValidationError = {
|
|
28
|
-
type: TransactionValidationErrorType.ZeroValueField;
|
|
29
|
-
data: string;
|
|
30
|
-
};
|
|
31
|
-
type ArbitraryConstraintValidationError = {
|
|
32
|
-
type: TransactionValidationErrorType.ArbitraryConstraint;
|
|
33
|
-
data: string;
|
|
34
|
-
};
|
|
35
|
-
//#endregion
|
|
36
|
-
export { TransactionValidationError };
|
|
37
|
-
//# sourceMappingURL=common.d.ts.map
|
package/sdk/index.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { INVALID_MICROALGOS_ERROR_MSG, algosToMicroalgos, microalgosToAlgos } from "../packages/sdk/src/convert.js";
|
|
2
|
-
import { base64ToBytes, bytesToBase64, bytesToHex, bytesToString, coerceToBytes, hexToBytes } from "../packages/sdk/src/encoding/binarydata.js";
|
|
3
|
-
import { IntDecoding } from "../packages/sdk/src/types/intDecoding.js";
|
|
4
|
-
import { ERROR_CONTAINS_EMPTY_STRING, Encodable, EncodableClass, EncodeJSONOptions, JSONEncodingData, MsgpackEncodingData, MsgpackRawStringProvider, PrepareJSONOptions, Schema, decodeJSON, decodeMsgpack, decodeObj, encodeJSON, encodeMsgpack, encodeObj, jsonEncodingDataToMsgpackEncodingData, msgpackEncodingDataToJSONEncodingData, msgpackRawDecode, msgpackRawDecodeAsMap, msgpackRawEncode } from "../packages/sdk/src/encoding/encoding.js";
|
|
5
|
-
import { decodeUint64, encodeUint64 } from "../packages/sdk/src/encoding/uint64.js";
|
|
6
|
-
import { PcLineLocation, ProgramSourceMap, SourceLocation } from "../packages/sdk/src/logic/sourcemap.js";
|
|
7
|
-
import { ENCODED_MULTISIG_SCHEMA, ENCODED_SUBSIG_SCHEMA, EncodedMultisig, EncodedSubsig, encodedMultiSigFromEncodingData, encodedMultiSigToEncodingData, encodedSubsigFromEncodingData, encodedSubsigToEncodingData } from "../packages/sdk/src/types/transactions/encoded.js";
|
|
8
|
-
import { ParseJSONOptions, arrayEqual, concatArrays, ensureBigInt, ensureSafeInteger, ensureSafeUnsignedInteger, ensureUint64, isNode, isReactNative, parseJSON, removeUndefinedProperties, stringifyJSON } from "../packages/sdk/src/utils/utils.js";
|
|
9
|
-
import { ERROR_INVALID_MICROALGOS, ERROR_MULTISIG_BAD_SENDER, MULTISIG_BAD_SENDER_ERROR_MSG, signBytes, signTransaction } from "../packages/sdk/src/index.js";
|
|
10
|
-
export { ENCODED_MULTISIG_SCHEMA, ENCODED_SUBSIG_SCHEMA, ERROR_CONTAINS_EMPTY_STRING, ERROR_INVALID_MICROALGOS, ERROR_MULTISIG_BAD_SENDER, Encodable, EncodableClass, EncodeJSONOptions, EncodedMultisig, EncodedSubsig, INVALID_MICROALGOS_ERROR_MSG, IntDecoding, JSONEncodingData, MULTISIG_BAD_SENDER_ERROR_MSG, MsgpackEncodingData, MsgpackRawStringProvider, ParseJSONOptions, PcLineLocation, PrepareJSONOptions, ProgramSourceMap, Schema, SourceLocation, algosToMicroalgos, arrayEqual, base64ToBytes, bytesToBase64, bytesToHex, bytesToString, coerceToBytes, concatArrays, decodeJSON, decodeMsgpack, decodeObj, decodeUint64, encodeJSON, encodeMsgpack, encodeObj, encodeUint64, encodedMultiSigFromEncodingData, encodedMultiSigToEncodingData, encodedSubsigFromEncodingData, encodedSubsigToEncodingData, ensureBigInt, ensureSafeInteger, ensureSafeUnsignedInteger, ensureUint64, hexToBytes, isNode, isReactNative, jsonEncodingDataToMsgpackEncodingData, microalgosToAlgos, msgpackEncodingDataToJSONEncodingData, msgpackRawDecode, msgpackRawDecodeAsMap, msgpackRawEncode, parseJSON, removeUndefinedProperties, signBytes, signTransaction, stringifyJSON };
|
package/sdk/index.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
const require_convert = require('../packages/sdk/src/convert.js');
|
|
2
|
-
const require_intDecoding = require('../packages/sdk/src/types/intDecoding.js');
|
|
3
|
-
const require_utils = require('../packages/sdk/src/utils/utils.js');
|
|
4
|
-
const require_binarydata = require('../packages/sdk/src/encoding/binarydata.js');
|
|
5
|
-
const require_encoding = require('../packages/sdk/src/encoding/encoding.js');
|
|
6
|
-
const require_uint64 = require('../packages/sdk/src/encoding/uint64.js');
|
|
7
|
-
const require_sourcemap = require('../packages/sdk/src/logic/sourcemap.js');
|
|
8
|
-
const require_encoded = require('../packages/sdk/src/types/transactions/encoded.js');
|
|
9
|
-
const require_index = require('../packages/sdk/src/index.js');
|
|
10
|
-
|
|
11
|
-
exports.ENCODED_MULTISIG_SCHEMA = require_encoded.ENCODED_MULTISIG_SCHEMA;
|
|
12
|
-
exports.ENCODED_SUBSIG_SCHEMA = require_encoded.ENCODED_SUBSIG_SCHEMA;
|
|
13
|
-
exports.ERROR_CONTAINS_EMPTY_STRING = require_encoding.ERROR_CONTAINS_EMPTY_STRING;
|
|
14
|
-
exports.ERROR_INVALID_MICROALGOS = require_index.ERROR_INVALID_MICROALGOS;
|
|
15
|
-
exports.ERROR_MULTISIG_BAD_SENDER = require_index.ERROR_MULTISIG_BAD_SENDER;
|
|
16
|
-
exports.INVALID_MICROALGOS_ERROR_MSG = require_convert.INVALID_MICROALGOS_ERROR_MSG;
|
|
17
|
-
exports.IntDecoding = require_intDecoding.default;
|
|
18
|
-
exports.MULTISIG_BAD_SENDER_ERROR_MSG = require_index.MULTISIG_BAD_SENDER_ERROR_MSG;
|
|
19
|
-
exports.MsgpackRawStringProvider = require_encoding.MsgpackRawStringProvider;
|
|
20
|
-
exports.ProgramSourceMap = require_sourcemap.ProgramSourceMap;
|
|
21
|
-
exports.Schema = require_encoding.Schema;
|
|
22
|
-
exports.algosToMicroalgos = require_convert.algosToMicroalgos;
|
|
23
|
-
exports.arrayEqual = require_utils.arrayEqual;
|
|
24
|
-
exports.base64ToBytes = require_binarydata.base64ToBytes;
|
|
25
|
-
exports.bytesToBase64 = require_binarydata.bytesToBase64;
|
|
26
|
-
exports.bytesToHex = require_binarydata.bytesToHex;
|
|
27
|
-
exports.bytesToString = require_binarydata.bytesToString;
|
|
28
|
-
exports.coerceToBytes = require_binarydata.coerceToBytes;
|
|
29
|
-
exports.concatArrays = require_utils.concatArrays;
|
|
30
|
-
exports.decodeJSON = require_encoding.decodeJSON;
|
|
31
|
-
exports.decodeMsgpack = require_encoding.decodeMsgpack;
|
|
32
|
-
exports.decodeObj = require_encoding.decodeObj;
|
|
33
|
-
exports.decodeUint64 = require_uint64.decodeUint64;
|
|
34
|
-
exports.encodeJSON = require_encoding.encodeJSON;
|
|
35
|
-
exports.encodeMsgpack = require_encoding.encodeMsgpack;
|
|
36
|
-
exports.encodeObj = require_encoding.encodeObj;
|
|
37
|
-
exports.encodeUint64 = require_uint64.encodeUint64;
|
|
38
|
-
exports.encodedMultiSigFromEncodingData = require_encoded.encodedMultiSigFromEncodingData;
|
|
39
|
-
exports.encodedMultiSigToEncodingData = require_encoded.encodedMultiSigToEncodingData;
|
|
40
|
-
exports.encodedSubsigFromEncodingData = require_encoded.encodedSubsigFromEncodingData;
|
|
41
|
-
exports.encodedSubsigToEncodingData = require_encoded.encodedSubsigToEncodingData;
|
|
42
|
-
exports.ensureBigInt = require_utils.ensureBigInt;
|
|
43
|
-
exports.ensureSafeInteger = require_utils.ensureSafeInteger;
|
|
44
|
-
exports.ensureSafeUnsignedInteger = require_utils.ensureSafeUnsignedInteger;
|
|
45
|
-
exports.ensureUint64 = require_utils.ensureUint64;
|
|
46
|
-
exports.hexToBytes = require_binarydata.hexToBytes;
|
|
47
|
-
exports.isNode = require_utils.isNode;
|
|
48
|
-
exports.isReactNative = require_utils.isReactNative;
|
|
49
|
-
exports.jsonEncodingDataToMsgpackEncodingData = require_encoding.jsonEncodingDataToMsgpackEncodingData;
|
|
50
|
-
exports.microalgosToAlgos = require_convert.microalgosToAlgos;
|
|
51
|
-
exports.msgpackEncodingDataToJSONEncodingData = require_encoding.msgpackEncodingDataToJSONEncodingData;
|
|
52
|
-
exports.msgpackRawDecode = require_encoding.msgpackRawDecode;
|
|
53
|
-
exports.msgpackRawDecodeAsMap = require_encoding.msgpackRawDecodeAsMap;
|
|
54
|
-
exports.msgpackRawEncode = require_encoding.msgpackRawEncode;
|
|
55
|
-
exports.parseJSON = require_utils.parseJSON;
|
|
56
|
-
exports.removeUndefinedProperties = require_utils.removeUndefinedProperties;
|
|
57
|
-
exports.signBytes = require_index.signBytes;
|
|
58
|
-
exports.signTransaction = require_index.signTransaction;
|
|
59
|
-
exports.stringifyJSON = require_utils.stringifyJSON;
|
package/sdk/index.mjs
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { INVALID_MICROALGOS_ERROR_MSG, algosToMicroalgos, microalgosToAlgos } from "../packages/sdk/src/convert.mjs";
|
|
2
|
-
import intDecoding_default from "../packages/sdk/src/types/intDecoding.mjs";
|
|
3
|
-
import { arrayEqual, concatArrays, ensureBigInt, ensureSafeInteger, ensureSafeUnsignedInteger, ensureUint64, isNode, isReactNative, parseJSON, removeUndefinedProperties, stringifyJSON } from "../packages/sdk/src/utils/utils.mjs";
|
|
4
|
-
import { base64ToBytes, bytesToBase64, bytesToHex, bytesToString, coerceToBytes, hexToBytes } from "../packages/sdk/src/encoding/binarydata.mjs";
|
|
5
|
-
import { ERROR_CONTAINS_EMPTY_STRING, MsgpackRawStringProvider, Schema, decodeJSON, decodeMsgpack, decodeObj, encodeJSON, encodeMsgpack, encodeObj, jsonEncodingDataToMsgpackEncodingData, msgpackEncodingDataToJSONEncodingData, msgpackRawDecode, msgpackRawDecodeAsMap, msgpackRawEncode } from "../packages/sdk/src/encoding/encoding.mjs";
|
|
6
|
-
import { decodeUint64, encodeUint64 } from "../packages/sdk/src/encoding/uint64.mjs";
|
|
7
|
-
import { ProgramSourceMap } from "../packages/sdk/src/logic/sourcemap.mjs";
|
|
8
|
-
import { ENCODED_MULTISIG_SCHEMA, ENCODED_SUBSIG_SCHEMA, encodedMultiSigFromEncodingData, encodedMultiSigToEncodingData, encodedSubsigFromEncodingData, encodedSubsigToEncodingData } from "../packages/sdk/src/types/transactions/encoded.mjs";
|
|
9
|
-
import { ERROR_INVALID_MICROALGOS, ERROR_MULTISIG_BAD_SENDER, MULTISIG_BAD_SENDER_ERROR_MSG, signBytes, signTransaction } from "../packages/sdk/src/index.mjs";
|
|
10
|
-
|
|
11
|
-
export { ENCODED_MULTISIG_SCHEMA, ENCODED_SUBSIG_SCHEMA, ERROR_CONTAINS_EMPTY_STRING, ERROR_INVALID_MICROALGOS, ERROR_MULTISIG_BAD_SENDER, INVALID_MICROALGOS_ERROR_MSG, intDecoding_default as IntDecoding, MULTISIG_BAD_SENDER_ERROR_MSG, MsgpackRawStringProvider, ProgramSourceMap, Schema, algosToMicroalgos, arrayEqual, base64ToBytes, bytesToBase64, bytesToHex, bytesToString, coerceToBytes, concatArrays, decodeJSON, decodeMsgpack, decodeObj, decodeUint64, encodeJSON, encodeMsgpack, encodeObj, encodeUint64, encodedMultiSigFromEncodingData, encodedMultiSigToEncodingData, encodedSubsigFromEncodingData, encodedSubsigToEncodingData, ensureBigInt, ensureSafeInteger, ensureSafeUnsignedInteger, ensureUint64, hexToBytes, isNode, isReactNative, jsonEncodingDataToMsgpackEncodingData, microalgosToAlgos, msgpackEncodingDataToJSONEncodingData, msgpackRawDecode, msgpackRawDecodeAsMap, msgpackRawEncode, parseJSON, removeUndefinedProperties, signBytes, signTransaction, stringifyJSON };
|