@algorandfoundation/algokit-utils 5.3.3-beta.2 → 5.4.0-beta.1
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/account/account.d.ts +81 -0
- package/account/account.d.ts.map +1 -0
- package/account/account.js +120 -0
- package/account/account.js.map +1 -0
- package/account/account.mjs +112 -0
- package/account/account.mjs.map +1 -0
- package/account/get-account-config-from-environment.d.ts +13 -0
- package/account/get-account-config-from-environment.d.ts.map +1 -0
- package/account/get-account-config-from-environment.js +25 -0
- package/account/get-account-config-from-environment.js.map +1 -0
- package/account/get-account-config-from-environment.mjs +23 -0
- package/account/get-account-config-from-environment.mjs.map +1 -0
- package/account/get-account.d.ts +66 -0
- package/account/get-account.d.ts.map +1 -0
- package/account/get-account.js +83 -0
- package/account/get-account.js.map +1 -0
- package/account/get-account.mjs +81 -0
- package/account/get-account.mjs.map +1 -0
- package/account/get-dispenser-account.d.ts +13 -0
- package/account/get-dispenser-account.d.ts.map +1 -0
- package/account/get-dispenser-account.js +23 -0
- package/account/get-dispenser-account.js.map +1 -0
- package/account/get-dispenser-account.mjs +21 -0
- package/account/get-dispenser-account.mjs.map +1 -0
- package/account/index.d.ts +6 -0
- package/account/index.d.ts.map +1 -0
- package/account/mnemonic-account.d.ts +11 -0
- package/account/mnemonic-account.d.ts.map +1 -0
- package/account/mnemonic-account.js +18 -0
- package/account/mnemonic-account.js.map +1 -0
- package/account/mnemonic-account.mjs +16 -0
- package/account/mnemonic-account.mjs.map +1 -0
- package/amount.d.ts.map +1 -0
- package/amount.js +34 -0
- package/amount.js.map +1 -0
- package/{esm/amount.js → amount.mjs} +8 -5
- package/amount.mjs.map +1 -0
- package/app-client.d.ts.map +1 -0
- package/{cjs/app-client.js → app-client.js} +11 -10
- package/app-client.js.map +1 -0
- package/{esm/app-client.js → app-client.mjs} +8 -5
- package/app-client.mjs.map +1 -0
- package/app-deploy.d.ts.map +1 -0
- package/{cjs/app-deploy.js → app-deploy.js} +67 -69
- package/app-deploy.js.map +1 -0
- package/{esm/app-deploy.js → app-deploy.mjs} +17 -14
- package/app-deploy.mjs.map +1 -0
- package/{cjs/app.d.ts → app.d.ts} +1 -1
- package/app.d.ts.map +1 -0
- package/{cjs/app.js → app.js} +102 -104
- package/app.js.map +1 -0
- package/{esm/app.js → app.mjs} +27 -24
- package/app.mjs.map +1 -0
- package/asset.d.ts.map +1 -0
- package/{cjs/asset.js → asset.js} +41 -42
- package/asset.js.map +1 -0
- package/{esm/asset.js → asset.mjs} +10 -6
- package/asset.mjs.map +1 -0
- package/config.d.ts +4 -0
- package/config.d.ts.map +1 -0
- package/config.js +9 -0
- package/config.js.map +1 -0
- package/config.mjs +7 -0
- package/config.mjs.map +1 -0
- package/debugging/debugging.d.ts +10 -0
- package/debugging/debugging.d.ts.map +1 -0
- package/debugging/debugging.js +139 -0
- package/debugging/debugging.js.map +1 -0
- package/debugging/debugging.mjs +118 -0
- package/debugging/debugging.mjs.map +1 -0
- package/debugging/index.d.ts +3 -0
- package/debugging/index.d.ts.map +1 -0
- package/{cjs/debugging.d.ts → debugging/simulate-and-persist-response.d.ts} +3 -12
- package/debugging/simulate-and-persist-response.d.ts.map +1 -0
- package/debugging/simulate-and-persist-response.js +108 -0
- package/debugging/simulate-and-persist-response.js.map +1 -0
- package/debugging/simulate-and-persist-response.mjs +89 -0
- package/debugging/simulate-and-persist-response.mjs.map +1 -0
- package/dispenser-client.d.ts.map +1 -0
- package/{cjs/dispenser-client.js → dispenser-client.js} +7 -6
- package/dispenser-client.js.map +1 -0
- package/{esm/dispenser-client.js → dispenser-client.mjs} +6 -3
- package/dispenser-client.mjs.map +1 -0
- package/{cjs/index.d.ts → index.d.ts} +1 -3
- package/index.d.ts.map +1 -0
- package/index.js +125 -0
- package/index.js.map +1 -0
- package/index.mjs +25 -0
- package/index.mjs.map +1 -0
- package/indexer-lookup.d.ts.map +1 -0
- package/{cjs/indexer-lookup.js → indexer-lookup.js} +8 -8
- package/indexer-lookup.js.map +1 -0
- package/{esm/indexer-lookup.js → indexer-lookup.mjs} +8 -6
- package/indexer-lookup.mjs.map +1 -0
- package/localnet/get-kmd-wallet-account.d.ts +26 -0
- package/localnet/get-kmd-wallet-account.d.ts.map +1 -0
- package/localnet/get-kmd-wallet-account.js +55 -0
- package/localnet/get-kmd-wallet-account.js.map +1 -0
- package/localnet/get-kmd-wallet-account.mjs +53 -0
- package/localnet/get-kmd-wallet-account.mjs.map +1 -0
- package/localnet/get-localnet-dispenser-account.d.ts +12 -0
- package/localnet/get-localnet-dispenser-account.d.ts.map +1 -0
- package/localnet/get-localnet-dispenser-account.js +21 -0
- package/localnet/get-localnet-dispenser-account.js.map +1 -0
- package/localnet/get-localnet-dispenser-account.mjs +19 -0
- package/localnet/get-localnet-dispenser-account.mjs.map +1 -0
- package/localnet/get-or-create-kmd-wallet-account.d.ts +27 -0
- package/localnet/get-or-create-kmd-wallet-account.d.ts.map +1 -0
- package/localnet/get-or-create-kmd-wallet-account.js +52 -0
- package/localnet/get-or-create-kmd-wallet-account.js.map +1 -0
- package/localnet/get-or-create-kmd-wallet-account.mjs +50 -0
- package/localnet/get-or-create-kmd-wallet-account.mjs.map +1 -0
- package/localnet/index.d.ts +5 -0
- package/localnet/index.d.ts.map +1 -0
- package/localnet/is-localnet.d.ts +5 -0
- package/localnet/is-localnet.d.ts.map +1 -0
- package/localnet/is-localnet.js +10 -0
- package/localnet/is-localnet.js.map +1 -0
- package/localnet/is-localnet.mjs +8 -0
- package/localnet/is-localnet.mjs.map +1 -0
- package/{cjs/network-client.d.ts → network-client.d.ts} +0 -1
- package/network-client.d.ts.map +1 -0
- package/{cjs/network-client.js → network-client.js} +21 -25
- package/network-client.js.map +1 -0
- package/{esm/network-client.js → network-client.mjs} +15 -13
- package/network-client.mjs.map +1 -0
- package/package.json +15 -36
- package/testing/_asset.d.ts.map +1 -0
- package/testing/account.d.ts.map +1 -0
- package/testing/account.js +29 -0
- package/testing/account.js.map +1 -0
- package/{esm/testing/account.js → testing/account.mjs} +8 -5
- package/testing/account.mjs.map +1 -0
- package/testing/fixtures/algokit-log-capture-fixture.d.ts.map +1 -0
- package/{cjs/testing → testing}/fixtures/algokit-log-capture-fixture.js +11 -10
- package/testing/fixtures/algokit-log-capture-fixture.js.map +1 -0
- package/{esm/testing/fixtures/algokit-log-capture-fixture.js → testing/fixtures/algokit-log-capture-fixture.mjs} +7 -4
- package/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -0
- package/testing/fixtures/algorand-fixture.d.ts.map +1 -0
- package/testing/fixtures/algorand-fixture.js +64 -0
- package/testing/fixtures/algorand-fixture.js.map +1 -0
- package/{esm/testing/fixtures/algorand-fixture.js → testing/fixtures/algorand-fixture.mjs} +12 -4
- package/testing/fixtures/algorand-fixture.mjs.map +1 -0
- package/testing/fixtures/index.d.ts.map +1 -0
- package/testing/index.d.ts.map +1 -0
- package/testing/index.js +18 -0
- package/testing/index.js.map +1 -0
- package/testing/index.mjs +7 -0
- package/testing/index.mjs.map +1 -0
- package/testing/indexer.d.ts.map +1 -0
- package/{cjs/testing → testing}/indexer.js +4 -4
- package/testing/indexer.js.map +1 -0
- package/{esm/testing/indexer.js → testing/indexer.mjs} +4 -2
- package/testing/indexer.mjs.map +1 -0
- package/testing/test-logger.d.ts.map +1 -0
- package/{cjs/testing → testing}/test-logger.js +7 -8
- package/testing/test-logger.js.map +1 -0
- package/{esm/testing/test-logger.js → testing/test-logger.mjs} +6 -5
- package/testing/test-logger.mjs.map +1 -0
- package/testing/transaction-logger.d.ts.map +1 -0
- package/{cjs/testing → testing}/transaction-logger.js +14 -15
- package/testing/transaction-logger.js.map +1 -0
- package/{esm/testing/transaction-logger.js → testing/transaction-logger.mjs} +9 -5
- package/testing/transaction-logger.mjs.map +1 -0
- package/transaction/index.d.ts +3 -0
- package/transaction/index.d.ts.map +1 -0
- package/transaction/perform-atomic-transaction-composer-simulate.d.ts +11 -0
- package/transaction/perform-atomic-transaction-composer-simulate.d.ts.map +1 -0
- package/transaction/perform-atomic-transaction-composer-simulate.js +35 -0
- package/transaction/perform-atomic-transaction-composer-simulate.js.map +1 -0
- package/transaction/perform-atomic-transaction-composer-simulate.mjs +33 -0
- package/transaction/perform-atomic-transaction-composer-simulate.mjs.map +1 -0
- package/{cjs → transaction}/transaction.d.ts +2 -9
- package/transaction/transaction.d.ts.map +1 -0
- package/{cjs → transaction}/transaction.js +88 -113
- package/transaction/transaction.js.map +1 -0
- package/{esm/transaction.js → transaction/transaction.mjs} +27 -50
- package/transaction/transaction.mjs.map +1 -0
- package/transfer/index.d.ts +3 -0
- package/transfer/index.d.ts.map +1 -0
- package/transfer/transfer-algos.d.ts +17 -0
- package/transfer/transfer-algos.d.ts.map +1 -0
- package/transfer/transfer-algos.js +40 -0
- package/transfer/transfer-algos.js.map +1 -0
- package/transfer/transfer-algos.mjs +38 -0
- package/transfer/transfer-algos.mjs.map +1 -0
- package/{cjs → transfer}/transfer.d.ts +2 -14
- package/transfer/transfer.d.ts.map +1 -0
- package/transfer/transfer.js +147 -0
- package/transfer/transfer.js.map +1 -0
- package/{esm/transfer.js → transfer/transfer.mjs} +15 -40
- package/transfer/transfer.mjs.map +1 -0
- package/types/account.d.ts +63 -161
- package/types/account.d.ts.map +1 -1
- package/{cjs/types → types}/account.js +14 -22
- package/types/account.js.map +1 -0
- package/{esm/types/account.js → types/account.mjs} +7 -11
- package/types/account.mjs.map +1 -0
- package/types/algo-http-client-with-retry.d.ts.map +1 -0
- package/{cjs/types → types}/algo-http-client-with-retry.js +25 -24
- package/types/algo-http-client-with-retry.js.map +1 -0
- package/{esm/types/algo-http-client-with-retry.js → types/algo-http-client-with-retry.mjs} +23 -20
- package/types/algo-http-client-with-retry.mjs.map +1 -0
- package/types/amount.d.ts +22 -18
- package/types/amount.d.ts.map +1 -1
- package/{cjs/types → types}/amount.js +8 -11
- package/types/amount.js.map +1 -0
- package/{esm/types/amount.js → types/amount.mjs} +5 -3
- package/types/amount.mjs.map +1 -0
- package/types/app-client.d.ts +413 -69
- package/types/app-client.d.ts.map +1 -1
- package/{cjs/types → types}/app-client.js +58 -73
- package/types/app-client.js.map +1 -0
- package/{esm/types/app-client.js → types/app-client.mjs} +14 -24
- package/types/app-client.mjs.map +1 -0
- package/types/app-spec.d.ts.map +1 -0
- package/types/app.d.ts +300 -146
- package/types/app.d.ts.map +1 -1
- package/{cjs/types → types}/app.js +16 -14
- package/types/app.js.map +1 -0
- package/{esm/types/app.js → types/app.mjs} +9 -9
- package/types/app.mjs.map +1 -0
- package/types/asset.d.ts +40 -47
- package/types/asset.d.ts.map +1 -1
- package/types/config.d.ts.map +1 -0
- package/{cjs/types → types}/config.js +30 -41
- package/types/config.js.map +1 -0
- package/{esm/types/config.js → types/config.mjs} +8 -11
- package/types/config.mjs.map +1 -0
- package/types/debugging.d.ts +105 -22
- package/types/debugging.d.ts.map +1 -1
- package/{cjs/types → types}/debugging.js +6 -13
- package/types/debugging.js.map +1 -0
- package/{esm/types/debugging.js → types/debugging.mjs} +6 -11
- package/types/debugging.mjs.map +1 -0
- package/types/dispenser-client.d.ts +71 -13
- package/types/dispenser-client.d.ts.map +1 -1
- package/{cjs/types → types}/dispenser-client.js +4 -6
- package/types/dispenser-client.js.map +1 -0
- package/{esm/types/dispenser-client.js → types/dispenser-client.mjs} +4 -4
- package/types/dispenser-client.mjs.map +1 -0
- package/types/indexer.d.ts.map +1 -0
- package/types/logging.d.ts.map +1 -0
- package/{cjs/types → types}/logging.js +8 -6
- package/types/logging.js.map +1 -0
- package/{esm/types/logging.js → types/logging.mjs} +5 -3
- package/types/logging.mjs.map +1 -0
- package/types/logic-error.d.ts.map +1 -0
- package/{cjs/types → types}/logic-error.js +6 -9
- package/types/logic-error.js.map +1 -0
- package/{esm/types/logic-error.js → types/logic-error.mjs} +6 -7
- package/types/logic-error.mjs.map +1 -0
- package/types/network-client.d.ts +19 -99
- package/types/network-client.d.ts.map +1 -1
- package/types/testing.d.ts.map +1 -0
- package/types/transaction.d.ts +112 -175
- package/types/transaction.d.ts.map +1 -1
- package/types/transfer.d.ts +74 -56
- package/types/transfer.d.ts.map +1 -1
- package/types/urlTokenBaseHTTPClient.d.ts.map +1 -0
- package/{cjs/types → types}/urlTokenBaseHTTPClient.js +7 -10
- package/types/urlTokenBaseHTTPClient.js.map +1 -0
- package/{esm/types/urlTokenBaseHTTPClient.js → types/urlTokenBaseHTTPClient.mjs} +5 -6
- package/types/urlTokenBaseHTTPClient.mjs.map +1 -0
- package/util.d.ts.map +1 -0
- package/{cjs/util.js → util.js} +7 -7
- package/util.js.map +1 -0
- package/{esm/util.js → util.mjs} +7 -5
- package/util.mjs.map +1 -0
- package/cjs/account.d.ts +0 -168
- package/cjs/account.d.ts.map +0 -1
- package/cjs/account.js +0 -238
- package/cjs/account.js.map +0 -1
- package/cjs/amount.d.ts.map +0 -1
- package/cjs/amount.js +0 -36
- package/cjs/amount.js.map +0 -1
- package/cjs/app-client.d.ts.map +0 -1
- package/cjs/app-client.js.map +0 -1
- package/cjs/app-deploy.d.ts.map +0 -1
- package/cjs/app-deploy.js.map +0 -1
- package/cjs/app.d.ts.map +0 -1
- package/cjs/app.js.map +0 -1
- package/cjs/asset.d.ts.map +0 -1
- package/cjs/asset.js.map +0 -1
- package/cjs/debugging.d.ts.map +0 -1
- package/cjs/debugging.js +0 -225
- package/cjs/debugging.js.map +0 -1
- package/cjs/dispenser-client.d.ts.map +0 -1
- package/cjs/dispenser-client.js.map +0 -1
- package/cjs/index.d.ts.map +0 -1
- package/cjs/index.js +0 -34
- package/cjs/index.js.map +0 -1
- package/cjs/indexer-lookup.d.ts.map +0 -1
- package/cjs/indexer-lookup.js.map +0 -1
- package/cjs/localnet.d.ts +0 -57
- package/cjs/localnet.d.ts.map +0 -1
- package/cjs/localnet.js +0 -121
- package/cjs/localnet.js.map +0 -1
- package/cjs/network-client.d.ts.map +0 -1
- package/cjs/network-client.js.map +0 -1
- package/cjs/testing/_asset.d.ts.map +0 -1
- package/cjs/testing/_asset.js +0 -36
- package/cjs/testing/_asset.js.map +0 -1
- package/cjs/testing/account.d.ts.map +0 -1
- package/cjs/testing/account.js +0 -31
- package/cjs/testing/account.js.map +0 -1
- package/cjs/testing/fixtures/algokit-log-capture-fixture.d.ts.map +0 -1
- package/cjs/testing/fixtures/algokit-log-capture-fixture.js.map +0 -1
- package/cjs/testing/fixtures/algorand-fixture.d.ts.map +0 -1
- package/cjs/testing/fixtures/algorand-fixture.js +0 -58
- package/cjs/testing/fixtures/algorand-fixture.js.map +0 -1
- package/cjs/testing/fixtures/index.d.ts.map +0 -1
- package/cjs/testing/fixtures/index.js +0 -19
- package/cjs/testing/fixtures/index.js.map +0 -1
- package/cjs/testing/index.d.ts.map +0 -1
- package/cjs/testing/index.js +0 -22
- package/cjs/testing/index.js.map +0 -1
- package/cjs/testing/indexer.d.ts.map +0 -1
- package/cjs/testing/indexer.js.map +0 -1
- package/cjs/testing/test-logger.d.ts.map +0 -1
- package/cjs/testing/test-logger.js.map +0 -1
- package/cjs/testing/transaction-logger.d.ts.map +0 -1
- package/cjs/testing/transaction-logger.js.map +0 -1
- package/cjs/transaction.d.ts.map +0 -1
- package/cjs/transaction.js.map +0 -1
- package/cjs/transfer.d.ts.map +0 -1
- package/cjs/transfer.js +0 -178
- package/cjs/transfer.js.map +0 -1
- package/cjs/types/account.d.ts +0 -70
- package/cjs/types/account.d.ts.map +0 -1
- package/cjs/types/account.js.map +0 -1
- package/cjs/types/algo-http-client-with-retry.d.ts.map +0 -1
- package/cjs/types/algo-http-client-with-retry.js.map +0 -1
- package/cjs/types/amount.d.ts +0 -24
- package/cjs/types/amount.d.ts.map +0 -1
- package/cjs/types/amount.js.map +0 -1
- package/cjs/types/app-client.d.ts +0 -416
- package/cjs/types/app-client.d.ts.map +0 -1
- package/cjs/types/app-client.js.map +0 -1
- package/cjs/types/app-spec.d.ts.map +0 -1
- package/cjs/types/app-spec.js +0 -3
- package/cjs/types/app-spec.js.map +0 -1
- package/cjs/types/app.d.ts +0 -323
- package/cjs/types/app.d.ts.map +0 -1
- package/cjs/types/app.js.map +0 -1
- package/cjs/types/asset.d.ts +0 -42
- package/cjs/types/asset.d.ts.map +0 -1
- package/cjs/types/asset.js +0 -3
- package/cjs/types/asset.js.map +0 -1
- package/cjs/types/config.d.ts.map +0 -1
- package/cjs/types/config.js.map +0 -1
- package/cjs/types/debugging.d.ts +0 -112
- package/cjs/types/debugging.d.ts.map +0 -1
- package/cjs/types/debugging.js.map +0 -1
- package/cjs/types/dispenser-client.d.ts +0 -77
- package/cjs/types/dispenser-client.d.ts.map +0 -1
- package/cjs/types/dispenser-client.js.map +0 -1
- package/cjs/types/indexer.d.ts.map +0 -1
- package/cjs/types/indexer.js +0 -34
- package/cjs/types/indexer.js.map +0 -1
- package/cjs/types/logging.d.ts.map +0 -1
- package/cjs/types/logging.js.map +0 -1
- package/cjs/types/logic-error.d.ts.map +0 -1
- package/cjs/types/logic-error.js.map +0 -1
- package/cjs/types/network-client.d.ts +0 -20
- package/cjs/types/network-client.d.ts.map +0 -1
- package/cjs/types/network-client.js +0 -3
- package/cjs/types/network-client.js.map +0 -1
- package/cjs/types/testing.d.ts.map +0 -1
- package/cjs/types/testing.js +0 -3
- package/cjs/types/testing.js.map +0 -1
- package/cjs/types/transaction.d.ts +0 -118
- package/cjs/types/transaction.d.ts.map +0 -1
- package/cjs/types/transaction.js +0 -3
- package/cjs/types/transaction.js.map +0 -1
- package/cjs/types/transfer.d.ts +0 -76
- package/cjs/types/transfer.d.ts.map +0 -1
- package/cjs/types/transfer.js +0 -3
- package/cjs/types/transfer.js.map +0 -1
- package/cjs/types/urlTokenBaseHTTPClient.d.ts.map +0 -1
- package/cjs/types/urlTokenBaseHTTPClient.js.map +0 -1
- package/cjs/util.d.ts.map +0 -1
- package/cjs/util.js.map +0 -1
- package/esm/account.js +0 -221
- package/esm/account.js.map +0 -1
- package/esm/amount.js.map +0 -1
- package/esm/app-client.js.map +0 -1
- package/esm/app-deploy.js.map +0 -1
- package/esm/app.js.map +0 -1
- package/esm/asset.js.map +0 -1
- package/esm/debugging.js +0 -197
- package/esm/debugging.js.map +0 -1
- package/esm/dispenser-client.js.map +0 -1
- package/esm/index.js +0 -17
- package/esm/index.js.map +0 -1
- package/esm/indexer-lookup.js.map +0 -1
- package/esm/localnet.js +0 -111
- package/esm/localnet.js.map +0 -1
- package/esm/network-client.js.map +0 -1
- package/esm/package.json +0 -3
- package/esm/testing/_asset.js +0 -29
- package/esm/testing/_asset.js.map +0 -1
- package/esm/testing/account.js.map +0 -1
- package/esm/testing/fixtures/algokit-log-capture-fixture.js.map +0 -1
- package/esm/testing/fixtures/algorand-fixture.js.map +0 -1
- package/esm/testing/fixtures/index.js +0 -3
- package/esm/testing/fixtures/index.js.map +0 -1
- package/esm/testing/index.js +0 -6
- package/esm/testing/index.js.map +0 -1
- package/esm/testing/indexer.js.map +0 -1
- package/esm/testing/test-logger.js.map +0 -1
- package/esm/testing/transaction-logger.js.map +0 -1
- package/esm/transaction.js.map +0 -1
- package/esm/transfer.js.map +0 -1
- package/esm/types/account.js.map +0 -1
- package/esm/types/algo-http-client-with-retry.js.map +0 -1
- package/esm/types/amount.js.map +0 -1
- package/esm/types/app-client.js.map +0 -1
- package/esm/types/app-spec.js +0 -2
- package/esm/types/app-spec.js.map +0 -1
- package/esm/types/app.js.map +0 -1
- package/esm/types/asset.js +0 -2
- package/esm/types/asset.js.map +0 -1
- package/esm/types/config.js.map +0 -1
- package/esm/types/debugging.js.map +0 -1
- package/esm/types/dispenser-client.js.map +0 -1
- package/esm/types/indexer.js +0 -31
- package/esm/types/indexer.js.map +0 -1
- package/esm/types/logging.js.map +0 -1
- package/esm/types/logic-error.js.map +0 -1
- package/esm/types/network-client.js +0 -2
- package/esm/types/network-client.js.map +0 -1
- package/esm/types/testing.js +0 -2
- package/esm/types/testing.js.map +0 -1
- package/esm/types/transaction.js +0 -2
- package/esm/types/transaction.js.map +0 -1
- package/esm/types/transfer.js +0 -2
- package/esm/types/transfer.js.map +0 -1
- package/esm/types/urlTokenBaseHTTPClient.js.map +0 -1
- package/esm/util.js.map +0 -1
- package/types/app-deploy.d.ts +0 -104
- package/types/app-deploy.d.ts.map +0 -1
- package/types/index.d.ts +0 -17
- package/types/index.d.ts.map +0 -1
- package/types/indexer-lookup.d.ts +0 -39
- package/types/indexer-lookup.d.ts.map +0 -1
- package/types/localnet.d.ts +0 -57
- package/types/localnet.d.ts.map +0 -1
- package/types/testing/_asset.d.ts +0 -5
- package/types/testing/_asset.d.ts.map +0 -1
- package/types/testing/account.d.ts +0 -17
- package/types/testing/account.d.ts.map +0 -1
- package/types/testing/fixtures/algokit-log-capture-fixture.d.ts +0 -20
- package/types/testing/fixtures/algokit-log-capture-fixture.d.ts.map +0 -1
- package/types/testing/fixtures/algorand-fixture.d.ts +0 -50
- package/types/testing/fixtures/algorand-fixture.d.ts.map +0 -1
- package/types/testing/fixtures/index.d.ts +0 -3
- package/types/testing/fixtures/index.d.ts.map +0 -1
- package/types/testing/index.d.ts +0 -6
- package/types/testing/index.d.ts.map +0 -1
- package/types/testing/indexer.d.ts +0 -13
- package/types/testing/indexer.d.ts.map +0 -1
- package/types/testing/test-logger.d.ts +0 -41
- package/types/testing/test-logger.d.ts.map +0 -1
- package/types/testing/transaction-logger.d.ts +0 -31
- package/types/testing/transaction-logger.d.ts.map +0 -1
- package/types/types/account.d.ts +0 -70
- package/types/types/account.d.ts.map +0 -1
- package/types/types/algo-http-client-with-retry.d.ts +0 -14
- package/types/types/algo-http-client-with-retry.d.ts.map +0 -1
- package/types/types/amount.d.ts +0 -24
- package/types/types/amount.d.ts.map +0 -1
- package/types/types/app-client.d.ts +0 -416
- package/types/types/app-client.d.ts.map +0 -1
- package/types/types/app-spec.d.ts +0 -156
- package/types/types/app-spec.d.ts.map +0 -1
- package/types/types/app.d.ts +0 -323
- package/types/types/app.d.ts.map +0 -1
- package/types/types/asset.d.ts +0 -42
- package/types/types/asset.d.ts.map +0 -1
- package/types/types/config.d.ts +0 -49
- package/types/types/config.d.ts.map +0 -1
- package/types/types/debugging.d.ts +0 -112
- package/types/types/debugging.d.ts.map +0 -1
- package/types/types/dispenser-client.d.ts +0 -77
- package/types/types/dispenser-client.d.ts.map +0 -1
- package/types/types/indexer.d.ts +0 -625
- package/types/types/indexer.d.ts.map +0 -1
- package/types/types/logging.d.ts +0 -13
- package/types/types/logging.d.ts.map +0 -1
- package/types/types/logic-error.d.ts +0 -37
- package/types/types/logic-error.d.ts.map +0 -1
- package/types/types/network-client.d.ts +0 -20
- package/types/types/network-client.d.ts.map +0 -1
- package/types/types/testing.d.ts +0 -95
- package/types/types/testing.d.ts.map +0 -1
- package/types/types/transaction.d.ts +0 -118
- package/types/types/transaction.d.ts.map +0 -1
- package/types/types/transfer.d.ts +0 -76
- package/types/types/transfer.d.ts.map +0 -1
- package/types/types/urlTokenBaseHTTPClient.d.ts +0 -41
- package/types/types/urlTokenBaseHTTPClient.d.ts.map +0 -1
- package/types/util.d.ts +0 -24
- package/types/util.d.ts.map +0 -1
- /package/{cjs/amount.d.ts → amount.d.ts} +0 -0
- /package/{cjs/app-client.d.ts → app-client.d.ts} +0 -0
- /package/{cjs/app-deploy.d.ts → app-deploy.d.ts} +0 -0
- /package/{cjs/asset.d.ts → asset.d.ts} +0 -0
- /package/{cjs/dispenser-client.d.ts → dispenser-client.d.ts} +0 -0
- /package/{cjs/indexer-lookup.d.ts → indexer-lookup.d.ts} +0 -0
- /package/{cjs/testing → testing}/_asset.d.ts +0 -0
- /package/{cjs/testing → testing}/account.d.ts +0 -0
- /package/{cjs/testing → testing}/fixtures/algokit-log-capture-fixture.d.ts +0 -0
- /package/{cjs/testing → testing}/fixtures/algorand-fixture.d.ts +0 -0
- /package/{cjs/testing → testing}/fixtures/index.d.ts +0 -0
- /package/{cjs/testing → testing}/index.d.ts +0 -0
- /package/{cjs/testing → testing}/indexer.d.ts +0 -0
- /package/{cjs/testing → testing}/test-logger.d.ts +0 -0
- /package/{cjs/testing → testing}/transaction-logger.d.ts +0 -0
- /package/{cjs/types → types}/algo-http-client-with-retry.d.ts +0 -0
- /package/{cjs/types → types}/app-spec.d.ts +0 -0
- /package/{cjs/types → types}/config.d.ts +0 -0
- /package/{cjs/types → types}/indexer.d.ts +0 -0
- /package/{cjs/types → types}/logging.d.ts +0 -0
- /package/{cjs/types → types}/logic-error.d.ts +0 -0
- /package/{cjs/types → types}/testing.d.ts +0 -0
- /package/{cjs/types → types}/urlTokenBaseHTTPClient.d.ts +0 -0
- /package/{cjs/util.d.ts → util.d.ts} +0 -0
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type algosdk from 'algosdk';
|
|
2
|
-
/**
|
|
3
|
-
* Details about a smart contract logic error
|
|
4
|
-
*/
|
|
5
|
-
export interface LogicErrorDetails {
|
|
6
|
-
/** The ID of the transaction with the logic error */
|
|
7
|
-
txId: string;
|
|
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
|
-
export 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 map The source map of the TEAL source code
|
|
34
|
-
*/
|
|
35
|
-
constructor(errorDetails: LogicErrorDetails, program: string[], map: algosdk.SourceMap);
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=logic-error.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"logic-error.d.ts","sourceRoot":"","sources":["../../../src/types/logic-error.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAIlC;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAA;IACZ,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAA;IACV,wBAAwB;IACxB,GAAG,EAAE,MAAM,CAAA;IACX,iCAAiC;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,kDAAkD;IAClD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,CAAA;CAClC;AAED,6DAA6D;AAC7D,qBAAa,UAAW,SAAQ,KAAK;IACnC;;;OAGG;IAEH,MAAM,CAAC,eAAe,CAAC,KAAK,EAAE,GAAG,GAAG,iBAAiB,GAAG,SAAS;IAc1D,GAAG,EAAE,iBAAiB,CAAA;IACtB,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,KAAK,SAAI;IACT,SAAS,SAAI;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IAEvB;;;;;OAKG;gBACS,YAAY,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,OAAO,CAAC,SAAS;CAqBvF"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { TokenHeader } from 'algosdk/dist/types/client/urlTokenBaseHTTPClient';
|
|
2
|
-
/** Config for an Algorand SDK client */
|
|
3
|
-
export interface AlgoClientConfig {
|
|
4
|
-
/** Base URL of the server e.g. http://localhost, https://testnet-api.algonode.cloud/, etc. */
|
|
5
|
-
server: string;
|
|
6
|
-
/** The port to use e.g. 4001, 443, etc. */
|
|
7
|
-
port?: string | number;
|
|
8
|
-
/** The token to use for API authentication (or undefined if none needed) - can be a string, or an object with the header key => value */
|
|
9
|
-
token?: string | TokenHeader;
|
|
10
|
-
}
|
|
11
|
-
/** Config for an algo config */
|
|
12
|
-
export interface AlgoConfig {
|
|
13
|
-
/** Algo client configuration */
|
|
14
|
-
algodConfig: AlgoClientConfig;
|
|
15
|
-
/** Indexer client configuration */
|
|
16
|
-
indexerConfig: AlgoClientConfig;
|
|
17
|
-
/** Kmd configuration */
|
|
18
|
-
kmdConfig: AlgoClientConfig;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=network-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network-client.d.ts","sourceRoot":"","sources":["../../../src/types/network-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAA;AAEnF,wCAAwC;AACxC,MAAM,WAAW,gBAAgB;IAC/B,8FAA8F;IAC9F,MAAM,EAAE,MAAM,CAAA;IACd,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,yIAAyI;IACzI,KAAK,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;CAC7B;AAED,gCAAgC;AAChC,MAAM,WAAW,UAAU;IACzB,gCAAgC;IAChC,WAAW,EAAE,gBAAgB,CAAA;IAC7B,mCAAmC;IACnC,aAAa,EAAE,gBAAgB,CAAA;IAC/B,wBAAwB;IACxB,SAAS,EAAE,gBAAgB,CAAA;CAC5B"}
|
package/types/types/testing.d.ts
DELETED
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import algosdk from 'algosdk';
|
|
2
|
-
import { TransactionLogger } from '../testing';
|
|
3
|
-
import { TestLogger } from '../testing/test-logger';
|
|
4
|
-
import { AlgoAmount } from '../types/amount';
|
|
5
|
-
import { SendTransactionFrom } from '../types/transaction';
|
|
6
|
-
import { TransactionLookupResult } from './indexer';
|
|
7
|
-
import Account = algosdk.Account;
|
|
8
|
-
import Algodv2 = algosdk.Algodv2;
|
|
9
|
-
import Indexer = algosdk.Indexer;
|
|
10
|
-
import Kmd = algosdk.Kmd;
|
|
11
|
-
import Transaction = algosdk.Transaction;
|
|
12
|
-
/**
|
|
13
|
-
* Test automation context.
|
|
14
|
-
*/
|
|
15
|
-
export interface AlgorandTestAutomationContext {
|
|
16
|
-
/** Algod client instance that will log transactions in `transactionLogger` */
|
|
17
|
-
algod: Algodv2;
|
|
18
|
-
/** Indexer client instance */
|
|
19
|
-
indexer: Indexer;
|
|
20
|
-
/** KMD client instance */
|
|
21
|
-
kmd: Kmd;
|
|
22
|
-
/** Transaction logger that will log transaction IDs for all transactions issued by `algod` */
|
|
23
|
-
transactionLogger: TransactionLogger;
|
|
24
|
-
/** Default, funded test account that is ephemerally created */
|
|
25
|
-
testAccount: Account;
|
|
26
|
-
/** Generate and fund an additional ephemerally created account */
|
|
27
|
-
generateAccount: (params: GetTestAccountParams) => Promise<Account>;
|
|
28
|
-
/** Wait for the indexer to catch up with all transactions logged by `transactionLogger` */
|
|
29
|
-
waitForIndexer: () => Promise<void>;
|
|
30
|
-
/** Wait for the indexer to catch up with the given transaction ID */
|
|
31
|
-
waitForIndexerTransaction: (transactionId: string) => Promise<TransactionLookupResult>;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Parameters for the `getTestAccount` function.
|
|
35
|
-
*/
|
|
36
|
-
export interface GetTestAccountParams {
|
|
37
|
-
/** Initial funds to ensure the account has */
|
|
38
|
-
initialFunds: AlgoAmount;
|
|
39
|
-
/** Whether to suppress the log (which includes a mnemonic) or not (default: do not suppress the log) */
|
|
40
|
-
suppressLog?: boolean;
|
|
41
|
-
}
|
|
42
|
-
/** Configuration for creating an Algorand testing fixture. */
|
|
43
|
-
export interface AlgorandFixtureConfig {
|
|
44
|
-
/** An optional algod client, if not specified then it will create one against environment variables defined network (if present) or default LocalNet. */
|
|
45
|
-
algod?: Algodv2;
|
|
46
|
-
/** An optional indexer client, if not specified then it will create one against environment variables defined network (if present) or default LocalNet. */
|
|
47
|
-
indexer?: Indexer;
|
|
48
|
-
/** An optional kmd client, if not specified then it will create one against environment variables defined network (if present) or default LocalNet. */
|
|
49
|
-
kmd?: Kmd;
|
|
50
|
-
/** The amount of funds to allocate to the default testing account, if not specified then it will get 10 ALGOs. */
|
|
51
|
-
testAccountFunding?: AlgoAmount;
|
|
52
|
-
}
|
|
53
|
-
/** An Algorand automated testing fixture */
|
|
54
|
-
export interface AlgorandFixture {
|
|
55
|
-
/**
|
|
56
|
-
* Retrieve the current context.
|
|
57
|
-
* Useful with destructuring.
|
|
58
|
-
* @example
|
|
59
|
-
* ```typescript
|
|
60
|
-
* test('My test', () => {
|
|
61
|
-
* const {algod, indexer, testAccount, ...} = algorand.context
|
|
62
|
-
* })
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
get context(): AlgorandTestAutomationContext;
|
|
66
|
-
/**
|
|
67
|
-
* Testing framework agnostic handler method to run before each test to prepare the `context` for that test.
|
|
68
|
-
*/
|
|
69
|
-
beforeEach: () => Promise<void>;
|
|
70
|
-
}
|
|
71
|
-
/** Configuration for preparing a captured log snapshot.
|
|
72
|
-
* This helps ensure that the provided configuration items won't appear
|
|
73
|
-
* with random values in the log snapshot, but rather will get substituted with predictable ids.
|
|
74
|
-
*/
|
|
75
|
-
export interface LogSnapshotConfig {
|
|
76
|
-
/** Any transaction IDs or transactions to replace the ID for predictably */
|
|
77
|
-
transactions?: (string | Transaction)[];
|
|
78
|
-
/** Any accounts/addresses to replace the address for predictably */
|
|
79
|
-
accounts?: (string | SendTransactionFrom)[];
|
|
80
|
-
/** Any app IDs to replace predictably */
|
|
81
|
-
apps?: (string | number | bigint)[];
|
|
82
|
-
}
|
|
83
|
-
export interface AlgoKitLogCaptureFixture {
|
|
84
|
-
/** The test logger instance for the current test */
|
|
85
|
-
get testLogger(): TestLogger;
|
|
86
|
-
/**
|
|
87
|
-
* Testing framework agnostic handler method to run before each test to prepare the `testLogger` for that test.
|
|
88
|
-
*/
|
|
89
|
-
beforeEach: () => void;
|
|
90
|
-
/**
|
|
91
|
-
* Testing framework agnostic handler method to run after each test to reset the logger.
|
|
92
|
-
*/
|
|
93
|
-
afterEach: () => void;
|
|
94
|
-
}
|
|
95
|
-
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../src/types/testing.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAA;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,WAAW,CAAA;AACnD,OAAO,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;AAChC,OAAO,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;AAChC,OAAO,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;AAChC,OAAO,GAAG,GAAG,OAAO,CAAC,GAAG,CAAA;AACxB,OAAO,WAAW,GAAG,OAAO,CAAC,WAAW,CAAA;AAExC;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,8EAA8E;IAC9E,KAAK,EAAE,OAAO,CAAA;IACd,8BAA8B;IAC9B,OAAO,EAAE,OAAO,CAAA;IAChB,0BAA0B;IAC1B,GAAG,EAAE,GAAG,CAAA;IACR,8FAA8F;IAC9F,iBAAiB,EAAE,iBAAiB,CAAA;IACpC,+DAA+D;IAC/D,WAAW,EAAE,OAAO,CAAA;IACpB,kEAAkE;IAClE,eAAe,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAA;IACnE,2FAA2F;IAC3F,cAAc,EAAE,MAAM,OAAO,C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
|
|
2
|
-
import { MultisigAccount, SigningAccount, TransactionSignerAccount } from './account';
|
|
3
|
-
import { AlgoAmount } from './amount';
|
|
4
|
-
import { ABIReturn } from './app';
|
|
5
|
-
import Account = algosdk.Account;
|
|
6
|
-
import AtomicTransactionComposer = algosdk.AtomicTransactionComposer;
|
|
7
|
-
import LogicSigAccount = algosdk.LogicSigAccount;
|
|
8
|
-
import Transaction = algosdk.Transaction;
|
|
9
|
-
import modelsv2 = algosdk.modelsv2;
|
|
10
|
-
export type TransactionNote = Uint8Array | TransactionNoteData | Arc2TransactionNote;
|
|
11
|
-
export type TransactionNoteData = string | null | undefined | number | any[] | Record<string, any>;
|
|
12
|
-
/** ARC-0002 compatible transaction note components https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0002.md */
|
|
13
|
-
export type Arc2TransactionNote = {
|
|
14
|
-
dAppName: string;
|
|
15
|
-
format: 'm' | 'b' | 'u';
|
|
16
|
-
data: string;
|
|
17
|
-
} | {
|
|
18
|
-
dAppName: string;
|
|
19
|
-
format: 'j';
|
|
20
|
-
data: TransactionNoteData;
|
|
21
|
-
};
|
|
22
|
-
/** The sending configuration for a transaction */
|
|
23
|
-
export interface SendTransactionParams {
|
|
24
|
-
/** Whether to skip signing and sending the transaction to the chain (default: transaction signed and sent to chain, unless `atc` specified)
|
|
25
|
-
* and instead just return the raw transaction, e.g. so you can add it to a group of transactions */
|
|
26
|
-
skipSending?: boolean;
|
|
27
|
-
/** Whether to skip waiting for the submitted transaction (only relevant if `skipSending` is `false` or unset) */
|
|
28
|
-
skipWaiting?: boolean;
|
|
29
|
-
/** An optional `AtomicTransactionComposer` to add the transaction to, if specified then `skipSending: undefined` has the same effect as `skipSending: true` */
|
|
30
|
-
atc?: AtomicTransactionComposer;
|
|
31
|
-
/** Whether to suppress log messages from transaction send, default: do not suppress */
|
|
32
|
-
suppressLog?: boolean;
|
|
33
|
-
/** The flat fee you want to pay, useful for covering extra fees in a transaction group or app call */
|
|
34
|
-
fee?: AlgoAmount;
|
|
35
|
-
/** The maximum fee that you are happy to pay (default: unbounded) - if this is set it's possible the transaction could get rejected during network congestion */
|
|
36
|
-
maxFee?: AlgoAmount;
|
|
37
|
-
/** The maximum number of rounds to wait for confirmation, only applies if `skipWaiting` is `undefined` or `false`, default: wait up to 5 rounds */
|
|
38
|
-
maxRoundsToWaitForConfirmation?: number;
|
|
39
|
-
/** **WARNING**: Not recommended for production use due to https://github.com/algorand/go-algorand/issues/5914. Whether to use simulate to automatically populate app call resources in the txn objects. Defaults to true when there are app calls in the group. */
|
|
40
|
-
populateAppCallResources?: boolean;
|
|
41
|
-
}
|
|
42
|
-
/** The result of sending a transaction */
|
|
43
|
-
export interface SendTransactionResult {
|
|
44
|
-
/** The transaction */
|
|
45
|
-
transaction: Transaction;
|
|
46
|
-
/** The response if the transaction was sent and waited for */
|
|
47
|
-
confirmation?: modelsv2.PendingTransactionResponse;
|
|
48
|
-
}
|
|
49
|
-
/** The result of preparing and/or sending multiple transactions */
|
|
50
|
-
export interface SendTransactionResults {
|
|
51
|
-
/** The transactions that have been prepared and/or sent */
|
|
52
|
-
transactions: Transaction[];
|
|
53
|
-
/** The responses if the transactions were sent and waited for,
|
|
54
|
-
* the index of the confirmation will match the index of the underlying transaction
|
|
55
|
-
*/
|
|
56
|
-
confirmations?: modelsv2.PendingTransactionResponse[];
|
|
57
|
-
}
|
|
58
|
-
/** The result of preparing and/or sending multiple transactions using an `AtomicTransactionComposer` */
|
|
59
|
-
export interface SendAtomicTransactionComposerResults extends SendTransactionResults {
|
|
60
|
-
/** base64 encoded representation of the group ID of the atomic group */
|
|
61
|
-
groupId: string;
|
|
62
|
-
/** The transaction IDs that have been prepared and/or sent */
|
|
63
|
-
txIds: string[];
|
|
64
|
-
/** If ABI method(s) were called the processed return values */
|
|
65
|
-
returns?: ABIReturn[];
|
|
66
|
-
}
|
|
67
|
-
/** The result of sending and confirming a transaction */
|
|
68
|
-
export interface ConfirmedTransactionResult extends SendTransactionResult {
|
|
69
|
-
/** The response from sending and waiting for the transaction */
|
|
70
|
-
confirmation: modelsv2.PendingTransactionResponse;
|
|
71
|
-
}
|
|
72
|
-
/** The result of sending and confirming one or more transactions, but where there is a primary transaction of interest */
|
|
73
|
-
export interface ConfirmedTransactionResults extends SendTransactionResult, SendTransactionResults {
|
|
74
|
-
/** The response from sending and waiting for the primary transaction */
|
|
75
|
-
confirmation: modelsv2.PendingTransactionResponse;
|
|
76
|
-
/** The response from sending and waiting for the transactions */
|
|
77
|
-
confirmations: modelsv2.PendingTransactionResponse[];
|
|
78
|
-
}
|
|
79
|
-
/** Core account abstraction when signing/sending transactions
|
|
80
|
-
*
|
|
81
|
-
* This type is used across the entire AlgoKit Utils library and allows you to pass through
|
|
82
|
-
* many types of accounts, including:
|
|
83
|
-
* * `Account` - The in-built `algosdk.Account` type for mnemonic accounts
|
|
84
|
-
* * `SigningAccount` - An AlgoKit Utils class that wraps Account to provide support for rekeyed accounts
|
|
85
|
-
* * `LogicSigAccount` - The in-built `algosdk.LogicSigAccount` type for logic signatures
|
|
86
|
-
* * `MultisigAccount` - An AlgoKit Utils class that wraps a multisig account and provides mechanisms to get a multisig account
|
|
87
|
-
* * `TransactionSignerAccount` - An AlgoKitUtils class that wraps the in-built `algosdk.TransactionSigner` along with the sender address
|
|
88
|
-
*/
|
|
89
|
-
export type SendTransactionFrom = Account | SigningAccount | LogicSigAccount | MultisigAccount | TransactionSignerAccount;
|
|
90
|
-
/** Defines an unsigned transaction that will appear in a group of transactions along with its signing information */
|
|
91
|
-
export interface TransactionToSign {
|
|
92
|
-
/** The unsigned transaction to sign and send */
|
|
93
|
-
transaction: Transaction;
|
|
94
|
-
/** The account to use to sign the transaction, either an account (with private key loaded) or a logic signature account */
|
|
95
|
-
signer: SendTransactionFrom;
|
|
96
|
-
}
|
|
97
|
-
/** A group of transactions to send together as an atomic group
|
|
98
|
-
* https://developer.algorand.org/docs/get-details/atomic_transfers/
|
|
99
|
-
*/
|
|
100
|
-
export interface TransactionGroupToSend {
|
|
101
|
-
/** Any parameters to control the semantics of the send to the network */
|
|
102
|
-
sendParams?: Omit<SendTransactionParams, 'fee' | 'maxFee' | 'skipSending' | 'atc'>;
|
|
103
|
-
/** The list of transactions to send, which can either be a raw transaction (in which case `signer` is required),
|
|
104
|
-
* the async result of an AlgoKit utils method that returns a `SendTransactionResult` (saves unwrapping the promise, be sure to pass `skipSending: true`, `signer` is also required)
|
|
105
|
-
* or the transaction with its signer (`signer` is ignored)
|
|
106
|
-
**/
|
|
107
|
-
transactions: (TransactionToSign | Transaction | Promise<SendTransactionResult>)[];
|
|
108
|
-
/** Optional signer to pass in, required if at least one transaction provided is just the transaction, ignored otherwise */
|
|
109
|
-
signer?: SendTransactionFrom;
|
|
110
|
-
}
|
|
111
|
-
/** An `AtomicTransactionComposer` with transactions to send. */
|
|
112
|
-
export interface AtomicTransactionComposerToSend {
|
|
113
|
-
/** The `AtomicTransactionComposer` with transactions loaded to send */
|
|
114
|
-
atc: AtomicTransactionComposer;
|
|
115
|
-
/** Any parameters to control the semantics of the send to the network */
|
|
116
|
-
sendParams?: Omit<SendTransactionParams, 'fee' | 'maxFee' | 'skipSending' | 'atc'>;
|
|
117
|
-
}
|
|
118
|
-
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/types/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,WAAW,CAAA;AACrF,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AACjC,OAAO,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;AAChC,OAAO,yBAAyB,GAAG,OAAO,CAAC,yBAAyB,CAAA;AACpE,OAAO,eAAe,GAAG,OAAO,CAAC,eA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;IAC3H,MAAM,CAAC,EAAE,mBAAmB,CAAA;CAC7B;AAED,gEAAgE;AAChE,MAAM,WAAW,+BAA+B;IAC9C,uEAAuE;IACvE,GAAG,EAAE,yBAAyB,CAAA;IAC9B,yEAAyE;IACzE,UAAU,CAAC,EAAE,IAAI,CAAC,qBAAqB,EAAE,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,KAAK,CAAC,CAAA;CACnF"}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import algosdk from 'algosdk';
|
|
2
|
-
import { AlgoAmount } from './amount';
|
|
3
|
-
import { TestNetDispenserApiClient } from './dispenser-client';
|
|
4
|
-
import { SendTransactionFrom, SendTransactionParams, TransactionNote } from './transaction';
|
|
5
|
-
import SuggestedParams = algosdk.SuggestedParams;
|
|
6
|
-
/** Parameters for `transferAlgos` call. */
|
|
7
|
-
export interface AlgoTransferParams extends SendTransactionParams {
|
|
8
|
-
/** The account that will send the ALGOs */
|
|
9
|
-
from: SendTransactionFrom;
|
|
10
|
-
/** The account / account address that will receive the ALGOs */
|
|
11
|
-
to: SendTransactionFrom | string;
|
|
12
|
-
/** The amount to send */
|
|
13
|
-
amount: AlgoAmount;
|
|
14
|
-
/** Optional transaction parameters */
|
|
15
|
-
transactionParams?: SuggestedParams;
|
|
16
|
-
/** The (optional) transaction note */
|
|
17
|
-
note?: TransactionNote;
|
|
18
|
-
/** An (optional) [transaction lease](https://developer.algorand.org/articles/leased-transactions-securing-advanced-smart-contract-design/) to apply */
|
|
19
|
-
lease?: string | Uint8Array;
|
|
20
|
-
}
|
|
21
|
-
/** Parameters for `rekeyAccount` call. */
|
|
22
|
-
export interface AlgoRekeyParams extends SendTransactionParams {
|
|
23
|
-
/** The account that will be rekeyed */
|
|
24
|
-
from: SendTransactionFrom;
|
|
25
|
-
/** The account / account address that will have the private key that is authorised to transact on behalf of the from account from now on */
|
|
26
|
-
rekeyTo: SendTransactionFrom | string;
|
|
27
|
-
/** Optional transaction parameters */
|
|
28
|
-
transactionParams?: SuggestedParams;
|
|
29
|
-
/** The (optional) transaction note */
|
|
30
|
-
note?: TransactionNote;
|
|
31
|
-
/** An (optional) [transaction lease](https://developer.algorand.org/articles/leased-transactions-securing-advanced-smart-contract-design/) to apply */
|
|
32
|
-
lease?: string | Uint8Array;
|
|
33
|
-
}
|
|
34
|
-
/** Parameters for `ensureFunded` call. */
|
|
35
|
-
export interface EnsureFundedParams extends SendTransactionParams {
|
|
36
|
-
/** The account to fund */
|
|
37
|
-
accountToFund: SendTransactionFrom | string;
|
|
38
|
-
/** The account to use as a funding source, will default to using the dispenser account returned by `algokit.getDispenserAccount` */
|
|
39
|
-
fundingSource?: SendTransactionFrom | TestNetDispenserApiClient;
|
|
40
|
-
/** The minimum balance of ALGOs that the account should have available to spend (i.e. on top of minimum balance requirement) */
|
|
41
|
-
minSpendingBalance: AlgoAmount;
|
|
42
|
-
/** When issuing a funding amount, the minimum amount to transfer (avoids many small transfers if this gets called often on an active account) */
|
|
43
|
-
minFundingIncrement?: AlgoAmount;
|
|
44
|
-
/** Optional transaction parameters */
|
|
45
|
-
transactionParams?: SuggestedParams;
|
|
46
|
-
/** The (optional) transaction note, default: "Funding account to meet minimum requirement" */
|
|
47
|
-
note?: TransactionNote;
|
|
48
|
-
/** An (optional) [transaction lease](https://developer.algorand.org/articles/leased-transactions-securing-advanced-smart-contract-design/) to apply */
|
|
49
|
-
lease?: string | Uint8Array;
|
|
50
|
-
}
|
|
51
|
-
/** Parameters for `transferAsset` call. */
|
|
52
|
-
export interface TransferAssetParams extends SendTransactionParams {
|
|
53
|
-
/** The account that will send the asset */
|
|
54
|
-
from: SendTransactionFrom;
|
|
55
|
-
/** The account / account address that will receive the asset */
|
|
56
|
-
to: SendTransactionFrom | string;
|
|
57
|
-
/** The asset id that will be transfered */
|
|
58
|
-
assetId: number;
|
|
59
|
-
/** The amount to send as the smallest divisible unit value */
|
|
60
|
-
amount: number | bigint;
|
|
61
|
-
/** Optional transaction parameters */
|
|
62
|
-
transactionParams?: SuggestedParams;
|
|
63
|
-
/** An address of a target account from which to perform a clawback operation. Please note, in such cases senderAccount must be equal to clawback field on ASA metadata. */
|
|
64
|
-
clawbackFrom?: SendTransactionFrom | string;
|
|
65
|
-
/** The (optional) transaction note */
|
|
66
|
-
note?: TransactionNote;
|
|
67
|
-
/** An (optional) [transaction lease](https://developer.algorand.org/articles/leased-transactions-securing-advanced-smart-contract-design/) to apply */
|
|
68
|
-
lease?: string | Uint8Array;
|
|
69
|
-
}
|
|
70
|
-
export interface EnsureFundedReturnType {
|
|
71
|
-
/** The transaction */
|
|
72
|
-
transactionId: string;
|
|
73
|
-
/** The response if the transaction was sent and waited for */
|
|
74
|
-
amount: number;
|
|
75
|
-
}
|
|
76
|
-
//# sourceMappingURL=transfer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transfer.d.ts","sourceRoot":"","sources":["../../../src/types/transfer.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAA;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC3F,OAAO,eAAe,GAAG,OAAO,CAAC,eAAe,CAAA;AAEhD,2CAA2C;AAC3C,MAAM,WAAW,kBAAmB,SAAQ,qBAAqB;IAC/D,2CAA2C;IAC3C,IAAI,EAAE,mBAAmB,CAAA;IACzB,gEAAgE;IAChE,EAAE,EAAE,mBAAmB,GAAG,MAAM,CAAA;IAChC,yBAAyB;IACzB,MAAM,EAAE,UAAU,CAAA;IAClB,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,eAAe,CAAA;IACnC,sCAAsC;IACtC,IAAI,CAAC,EAAE,eAAe,CAAA;IACtB,uJAAuJ;IACvJ,KAAK,CAAC,EAAE,MAAM,GAAG,UAA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AI,CAAC,EAAE,eAAe,CAAA;IACtB,uJAAuJ;IACvJ,KAAK,CAAC,EAAE,MAAM,GAAG,UAAU,CAAA;CAC5B;AAED,MAAM,WAAW,sBAAsB;IACrC,sBAAsB;IACtB,aAAa,EAAE,MAAM,CAAA;IACrB,8DAA8D;IAC9D,MAAM,EAAE,MAAM,CAAA;CACf"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { BaseHTTPClient, BaseHTTPClientResponse, Query } from 'algosdk/dist/types/client/baseHTTPClient';
|
|
2
|
-
export interface AlgodTokenHeader {
|
|
3
|
-
'X-Algo-API-Token': string;
|
|
4
|
-
}
|
|
5
|
-
export interface IndexerTokenHeader {
|
|
6
|
-
'X-Indexer-API-Token': string;
|
|
7
|
-
}
|
|
8
|
-
export interface KMDTokenHeader {
|
|
9
|
-
'X-KMD-API-Token': string;
|
|
10
|
-
}
|
|
11
|
-
export interface CustomTokenHeader {
|
|
12
|
-
[headerName: string]: string;
|
|
13
|
-
}
|
|
14
|
-
export type TokenHeader = AlgodTokenHeader | IndexerTokenHeader | KMDTokenHeader | CustomTokenHeader;
|
|
15
|
-
/**
|
|
16
|
-
* Implementation of BaseHTTPClient that uses a URL and a token
|
|
17
|
-
* and make the REST queries using fetch.
|
|
18
|
-
* This is the default implementation of BaseHTTPClient.
|
|
19
|
-
*/
|
|
20
|
-
export declare class URLTokenBaseHTTPClient implements BaseHTTPClient {
|
|
21
|
-
private defaultHeaders;
|
|
22
|
-
private readonly baseURL;
|
|
23
|
-
private readonly tokenHeader;
|
|
24
|
-
constructor(tokenHeader: TokenHeader, baseServer: string, port?: string | number, defaultHeaders?: Record<string, any>);
|
|
25
|
-
/**
|
|
26
|
-
* Compute the URL for a path relative to the instance's address
|
|
27
|
-
* @param relativePath - A path string
|
|
28
|
-
* @param query - An optional key-value object of query parameters to add to the URL. If the
|
|
29
|
-
* relativePath already has query parameters on it, the additional parameters defined here will
|
|
30
|
-
* be added to the URL without modifying those (unless a key collision occurs).
|
|
31
|
-
* @returns A URL string
|
|
32
|
-
*/
|
|
33
|
-
private getURL;
|
|
34
|
-
private static formatFetchResponseHeaders;
|
|
35
|
-
private static checkHttpError;
|
|
36
|
-
private static formatFetchResponse;
|
|
37
|
-
get(relativePath: string, query?: Query<string>, requestHeaders?: Record<string, string>): Promise<BaseHTTPClientResponse>;
|
|
38
|
-
post(relativePath: string, data: Uint8Array, query?: Query<string>, requestHeaders?: Record<string, string>): Promise<BaseHTTPClientResponse>;
|
|
39
|
-
delete(relativePath: string, data: Uint8Array, query?: Query<string>, requestHeaders?: Record<string, string>): Promise<BaseHTTPClientResponse>;
|
|
40
|
-
}
|
|
41
|
-
//# sourceMappingURL=urlTokenBaseHTTPClient.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"urlTokenBaseHTTPClient.d.ts","sourceRoot":"","sources":["../../../src/types/urlTokenBaseHTTPClient.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAuB,sBAAsB,EAAE,KAAK,EAAE,MAAM,0CAA0C,CAAA;AAGlI,MAAM,WAAW,gBAAgB;IAC/B,kBAAkB,EAAE,MAAM,CAAA;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,qBAAqB,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,iBAAiB,EAAE,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,iBAAiB;IAChC,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAA;CAC7B;AAaD,MAAM,MAAM,WAAW,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,cAAc,GAAG,iBAAiB,CAAA;AAEpG;;;;GAIG;AACH,qBAAa,sBAAuB,YAAW,cAAc;IAUzD,OAAO,CAAC,cAAc;IATxB,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAK;IAC7B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAa;gBAIvC,WAAW,EAAE,WAAW,EACxB,UAAU,EAAE,MAAM,EAClB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAEd,cAAc,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM;IAmBlD;;;;;;;OAOG;IACH,OAAO,CAAC,MAAM;IAkBd,OAAO,CAAC,MAAM,CAAC,0BAA0B;mBAQpB,cAAc;mBA+Bd,mBAAmB;IASlC,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,cAAc,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAgB9H,IAAI,CACR,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,UAAU,EAChB,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EACrB,cAAc,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAC1C,OAAO,CAAC,sBAAsB,CAAC;IAkB5B,MAAM,CACV,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,UAAU,EAChB,KAAK,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EACrB,cAAc,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,GAC1C,OAAO,CAAC,sBAAsB,CAAC;CAiBnC"}
|
package/types/util.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Converts a value which might be a number or a bigint into a number to be used with apis that don't support bigint.
|
|
3
|
-
*
|
|
4
|
-
* Throws an UnsafeConversionError if the conversion would result in an unsafe integer for the Number type
|
|
5
|
-
* @param value
|
|
6
|
-
*/
|
|
7
|
-
export declare const toNumber: (value: number | bigint) => number;
|
|
8
|
-
export declare class UnsafeConversionError extends Error {
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Calculates the amount of funds to add to a wallet to bring it up to the minimum spending balance.
|
|
12
|
-
* @param minSpendingBalance The minimum spending balance for the wallet
|
|
13
|
-
* @param currentSpendingBalance The current spending balance for the wallet
|
|
14
|
-
* @param minFundingIncrement The minimum amount of funds that can be added to the wallet
|
|
15
|
-
* @returns The amount of funds to add to the wallet or null if the wallet is already above the minimum spending balance
|
|
16
|
-
*/
|
|
17
|
-
export declare const calculateFundAmount: (minSpendingBalance: number, currentSpendingBalance: number, minFundingIncrement: number) => number | null;
|
|
18
|
-
/**
|
|
19
|
-
* Checks if the current environment is Node.js
|
|
20
|
-
*
|
|
21
|
-
* @returns A boolean indicating whether the current environment is Node.js
|
|
22
|
-
*/
|
|
23
|
-
export declare const isNode: () => boolean;
|
|
24
|
-
//# sourceMappingURL=util.d.ts.map
|
package/types/util.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.d.ts","sourceRoot":"","sources":["../../src/util.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,UAAW,MAAM,GAAG,MAAM,WAa9C,CAAA;AAED,qBAAa,qBAAsB,SAAQ,KAAK;CAAG;AAEnD;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,uBACV,MAAM,0BACF,MAAM,uBACT,MAAM,KAC1B,MAAM,GAAG,IAOX,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,MAAM,eAElB,CAAA"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|