@algorandfoundation/algokit-utils 6.3.0-beta.1 → 7.0.0-alpha.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/LICENSE +21 -0
- package/README.md +22 -26
- package/account/account.d.ts +12 -10
- package/account/get-account-config-from-environment.d.ts +0 -1
- package/account/get-account.d.ts +2 -3
- package/account/get-dispenser-account.d.ts +2 -3
- package/account/index.d.ts +0 -1
- package/account/mnemonic-account.d.ts +1 -2
- package/amount.d.ts +15 -5
- package/app-client.d.ts +19 -5
- package/app-deploy.d.ts +18 -2
- package/app.d.ts +39 -3
- package/asset.d.ts +5 -6
- package/config.d.ts +0 -1
- package/debugging/debugging.d.ts +3 -5
- package/debugging/index.d.ts +0 -2
- package/dispenser-client.d.ts +0 -1
- package/index.d.ts +5 -4
- package/index.js +56 -46
- package/index.js.map +1 -1
- package/index.mjs +26 -25
- package/index.mjs.map +1 -1
- package/indexer-lookup.d.ts +10 -9
- package/localnet/get-kmd-wallet-account.d.ts +1 -2
- package/localnet/get-localnet-dispenser-account.d.ts +1 -2
- package/localnet/get-or-create-kmd-wallet-account.d.ts +1 -2
- package/localnet/index.d.ts +0 -1
- package/localnet/is-localnet.d.ts +1 -2
- package/network-client.d.ts +3 -10
- package/package.json +3 -4
- package/{account → src/account}/account.js +21 -18
- package/src/account/account.js.map +1 -0
- package/{account → src/account}/account.mjs +22 -19
- package/src/account/account.mjs.map +1 -0
- package/src/account/get-account-config-from-environment.js.map +1 -0
- package/src/account/get-account-config-from-environment.mjs.map +1 -0
- package/{account → src/account}/get-account.js +3 -3
- package/src/account/get-account.js.map +1 -0
- package/{account → src/account}/get-account.mjs +3 -3
- package/src/account/get-account.mjs.map +1 -0
- package/{account → src/account}/get-dispenser-account.js +3 -3
- package/src/account/get-dispenser-account.js.map +1 -0
- package/{account → src/account}/get-dispenser-account.mjs +3 -3
- package/src/account/get-dispenser-account.mjs.map +1 -0
- package/{account → src/account}/mnemonic-account.js +1 -1
- package/src/account/mnemonic-account.js.map +1 -0
- package/{account → src/account}/mnemonic-account.mjs +1 -1
- package/src/account/mnemonic-account.mjs.map +1 -0
- package/{amount.js → src/amount.js} +10 -3
- package/src/amount.js.map +1 -0
- package/{amount.mjs → src/amount.mjs} +10 -4
- package/src/amount.mjs.map +1 -0
- package/{app-client.js → src/app-client.js} +20 -5
- package/src/app-client.js.map +1 -0
- package/{app-client.mjs → src/app-client.mjs} +20 -5
- package/src/app-client.mjs.map +1 -0
- package/src/app-deploy.js +285 -0
- package/src/app-deploy.js.map +1 -0
- package/src/app-deploy.mjs +276 -0
- package/src/app-deploy.mjs.map +1 -0
- package/src/app.js +349 -0
- package/src/app.js.map +1 -0
- package/src/app.mjs +329 -0
- package/src/app.mjs.map +1 -0
- package/{asset.js → src/asset.js} +6 -9
- package/src/asset.js.map +1 -0
- package/{asset.mjs → src/asset.mjs} +6 -9
- package/src/asset.mjs.map +1 -0
- package/{config.js → src/config.js} +1 -1
- package/src/config.js.map +1 -0
- package/{config.mjs → src/config.mjs} +1 -1
- package/src/config.mjs.map +1 -0
- package/src/debugging/debugging.js +15 -0
- package/src/debugging/debugging.js.map +1 -0
- package/src/debugging/debugging.mjs +13 -0
- package/src/debugging/debugging.mjs.map +1 -0
- package/{dispenser-client.js → src/dispenser-client.js} +1 -1
- package/src/dispenser-client.js.map +1 -0
- package/{dispenser-client.mjs → src/dispenser-client.mjs} +1 -1
- package/src/dispenser-client.mjs.map +1 -0
- package/{indexer-lookup.js → src/indexer-lookup.js} +14 -10
- package/src/indexer-lookup.js.map +1 -0
- package/{indexer-lookup.mjs → src/indexer-lookup.mjs} +14 -10
- package/src/indexer-lookup.mjs.map +1 -0
- package/{localnet → src/localnet}/get-kmd-wallet-account.js +3 -3
- package/src/localnet/get-kmd-wallet-account.js.map +1 -0
- package/{localnet → src/localnet}/get-kmd-wallet-account.mjs +3 -3
- package/src/localnet/get-kmd-wallet-account.mjs.map +1 -0
- package/{localnet → src/localnet}/get-localnet-dispenser-account.js +3 -3
- package/src/localnet/get-localnet-dispenser-account.js.map +1 -0
- package/{localnet → src/localnet}/get-localnet-dispenser-account.mjs +3 -3
- package/src/localnet/get-localnet-dispenser-account.mjs.map +1 -0
- package/{localnet → src/localnet}/get-or-create-kmd-wallet-account.js +3 -3
- package/src/localnet/get-or-create-kmd-wallet-account.js.map +1 -0
- package/{localnet → src/localnet}/get-or-create-kmd-wallet-account.mjs +3 -3
- package/src/localnet/get-or-create-kmd-wallet-account.mjs.map +1 -0
- package/{localnet → src/localnet}/is-localnet.js +2 -2
- package/src/localnet/is-localnet.js.map +1 -0
- package/{localnet → src/localnet}/is-localnet.mjs +2 -2
- package/src/localnet/is-localnet.mjs.map +1 -0
- package/{network-client.js → src/network-client.js} +5 -12
- package/src/network-client.js.map +1 -0
- package/{network-client.mjs → src/network-client.mjs} +5 -12
- package/src/network-client.mjs.map +1 -0
- package/{testing → src/testing}/account.js +9 -3
- package/src/testing/account.js.map +1 -0
- package/{testing → src/testing}/account.mjs +10 -4
- package/src/testing/account.mjs.map +1 -0
- package/src/testing/fixtures/algokit-log-capture-fixture.js.map +1 -0
- package/src/testing/fixtures/algokit-log-capture-fixture.mjs.map +1 -0
- package/{testing → src/testing}/fixtures/algorand-fixture.js +15 -16
- package/src/testing/fixtures/algorand-fixture.js.map +1 -0
- package/{testing → src/testing}/fixtures/algorand-fixture.mjs +15 -16
- package/src/testing/fixtures/algorand-fixture.mjs.map +1 -0
- package/src/testing/indexer.js.map +1 -0
- package/src/testing/indexer.mjs.map +1 -0
- package/{testing → src/testing}/test-logger.js +7 -3
- package/src/testing/test-logger.js.map +1 -0
- package/{testing → src/testing}/test-logger.mjs +7 -3
- package/src/testing/test-logger.mjs.map +1 -0
- package/src/testing/transaction-logger.js.map +1 -0
- package/src/testing/transaction-logger.mjs.map +1 -0
- package/src/transaction/legacy-bridge.js +129 -0
- package/src/transaction/legacy-bridge.js.map +1 -0
- package/src/transaction/legacy-bridge.mjs +124 -0
- package/src/transaction/legacy-bridge.mjs.map +1 -0
- package/{transaction → src/transaction}/perform-atomic-transaction-composer-simulate.js +14 -9
- package/src/transaction/perform-atomic-transaction-composer-simulate.js.map +1 -0
- package/{transaction → src/transaction}/perform-atomic-transaction-composer-simulate.mjs +15 -10
- package/src/transaction/perform-atomic-transaction-composer-simulate.mjs.map +1 -0
- package/{transaction → src/transaction}/transaction.js +217 -137
- package/src/transaction/transaction.js.map +1 -0
- package/{transaction → src/transaction}/transaction.mjs +218 -138
- package/src/transaction/transaction.mjs.map +1 -0
- package/{transfer → src/transfer}/transfer-algos.js +1 -1
- package/src/transfer/transfer-algos.js.map +1 -0
- package/{transfer → src/transfer}/transfer-algos.mjs +1 -1
- package/src/transfer/transfer-algos.mjs.map +1 -0
- package/{transfer → src/transfer}/transfer.js +8 -6
- package/src/transfer/transfer.js.map +1 -0
- package/{transfer → src/transfer}/transfer.mjs +8 -6
- package/src/transfer/transfer.mjs.map +1 -0
- package/{util.js → src/util.js} +11 -10
- package/src/util.js.map +1 -0
- package/{util.mjs → src/util.mjs} +11 -10
- package/src/util.mjs.map +1 -0
- package/testing/_asset.d.ts +2 -2
- package/testing/account.d.ts +4 -4
- package/testing/fixtures/algokit-log-capture-fixture.d.ts +0 -1
- package/testing/fixtures/algorand-fixture.d.ts +0 -1
- package/testing/fixtures/index.d.ts +0 -1
- package/testing/index.d.ts +0 -1
- package/testing/index.js +6 -6
- package/testing/index.mjs +6 -6
- package/testing/indexer.d.ts +0 -1
- package/testing/test-logger.d.ts +0 -1
- package/testing/transaction-logger.d.ts +0 -1
- package/transaction/index.d.ts +0 -1
- package/transaction/legacy-bridge.d.ts +31 -6
- package/transaction/perform-atomic-transaction-composer-simulate.d.ts +4 -2
- package/transaction/transaction.d.ts +38 -19
- package/transfer/index.d.ts +0 -1
- package/transfer/transfer-algos.d.ts +1 -2
- package/transfer/transfer.d.ts +1 -2
- package/types/account-manager.d.ts +33 -25
- package/types/account-manager.js +56 -33
- package/types/account-manager.js.map +1 -1
- package/types/account-manager.mjs +58 -35
- package/types/account-manager.mjs.map +1 -1
- package/types/account.d.ts +17 -9
- package/types/account.js +2 -2
- package/types/account.js.map +1 -1
- package/types/account.mjs +3 -3
- package/types/account.mjs.map +1 -1
- package/types/algo-http-client-with-retry.d.ts +1 -3
- package/types/algo-http-client-with-retry.js +34 -4
- package/types/algo-http-client-with-retry.js.map +1 -1
- package/types/algo-http-client-with-retry.mjs +33 -3
- package/types/algo-http-client-with-retry.mjs.map +1 -1
- package/types/algorand-client-interface.d.ts +28 -0
- package/types/algorand-client-interface.js +3 -0
- package/types/algorand-client-interface.js.map +1 -0
- package/types/algorand-client-interface.mjs +2 -0
- package/types/algorand-client-interface.mjs.map +1 -0
- package/types/algorand-client-transaction-creator.d.ts +452 -23
- package/types/algorand-client-transaction-creator.js +407 -23
- package/types/algorand-client-transaction-creator.js.map +1 -1
- package/types/algorand-client-transaction-creator.mjs +407 -23
- package/types/algorand-client-transaction-creator.mjs.map +1 -1
- package/types/algorand-client-transaction-sender.d.ts +772 -47
- package/types/algorand-client-transaction-sender.js +446 -16
- package/types/algorand-client-transaction-sender.js.map +1 -1
- package/types/algorand-client-transaction-sender.mjs +446 -16
- package/types/algorand-client-transaction-sender.mjs.map +1 -1
- package/types/algorand-client.d.ts +24 -17
- package/types/algorand-client.js +26 -16
- package/types/algorand-client.js.map +1 -1
- package/types/algorand-client.mjs +28 -15
- package/types/algorand-client.mjs.map +1 -1
- package/types/amount.d.ts +10 -11
- package/types/amount.js +7 -7
- package/types/amount.js.map +1 -1
- package/types/amount.mjs +7 -7
- package/types/amount.mjs.map +1 -1
- package/types/app-arc56.d.ts +359 -0
- package/types/app-arc56.js +184 -0
- package/types/app-arc56.js.map +1 -0
- package/types/app-arc56.mjs +175 -0
- package/types/app-arc56.mjs.map +1 -0
- package/types/app-client.d.ts +1508 -12
- package/types/app-client.js +1023 -34
- package/types/app-client.js.map +1 -1
- package/types/app-client.mjs +1024 -36
- package/types/app-client.mjs.map +1 -1
- package/types/app-deployer.d.ts +126 -0
- package/types/app-deployer.js +353 -0
- package/types/app-deployer.js.map +1 -0
- package/types/app-deployer.mjs +351 -0
- package/types/app-deployer.mjs.map +1 -0
- package/types/app-factory.d.ts +846 -0
- package/types/app-factory.js +410 -0
- package/types/app-factory.js.map +1 -0
- package/types/app-factory.mjs +408 -0
- package/types/app-factory.mjs.map +1 -0
- package/types/app-manager.d.ts +244 -0
- package/types/app-manager.js +423 -0
- package/types/app-manager.js.map +1 -0
- package/types/app-manager.mjs +421 -0
- package/types/app-manager.mjs.map +1 -0
- package/types/app-spec.d.ts +2 -1
- package/types/app-spec.js +127 -0
- package/types/app-spec.js.map +1 -1
- package/types/app-spec.mjs +126 -0
- package/types/app-spec.mjs.map +1 -1
- package/types/app.d.ts +57 -18
- package/types/app.js +1 -1
- package/types/app.js.map +1 -1
- package/types/app.mjs +1 -1
- package/types/app.mjs.map +1 -1
- package/types/asset-manager.d.ts +10 -10
- package/types/asset-manager.js +15 -19
- package/types/asset-manager.js.map +1 -1
- package/types/asset-manager.mjs +15 -19
- package/types/asset-manager.mjs.map +1 -1
- package/types/asset.d.ts +0 -1
- package/types/async-event-emitter.d.ts +14 -0
- package/types/async-event-emitter.js +50 -0
- package/types/async-event-emitter.js.map +1 -0
- package/types/async-event-emitter.mjs +48 -0
- package/types/async-event-emitter.mjs.map +1 -0
- package/types/client-manager.d.ts +135 -60
- package/types/client-manager.js +158 -44
- package/types/client-manager.js.map +1 -1
- package/types/client-manager.mjs +159 -45
- package/types/client-manager.mjs.map +1 -1
- package/types/composer.d.ts +271 -87
- package/types/composer.js +406 -126
- package/types/composer.js.map +1 -1
- package/types/composer.mjs +407 -125
- package/types/composer.mjs.map +1 -1
- package/types/config.d.ts +3 -6
- package/types/config.js +5 -44
- package/types/config.js.map +1 -1
- package/types/config.mjs +5 -27
- package/types/config.mjs.map +1 -1
- package/types/debugging.d.ts +29 -101
- package/types/debugging.js +16 -109
- package/types/debugging.js.map +1 -1
- package/types/debugging.mjs +12 -107
- package/types/debugging.mjs.map +1 -1
- package/types/dispenser-client.d.ts +2 -2
- package/types/dispenser-client.js +10 -5
- package/types/dispenser-client.js.map +1 -1
- package/types/dispenser-client.mjs +10 -5
- package/types/dispenser-client.mjs.map +1 -1
- package/types/expand.d.ts +7 -0
- package/types/expand.js +3 -0
- package/types/expand.js.map +1 -0
- package/types/expand.mjs +2 -0
- package/types/expand.mjs.map +1 -0
- package/types/indexer.d.ts +74 -756
- package/types/indexer.js.map +1 -1
- package/types/indexer.mjs.map +1 -1
- package/types/kmd-account-manager.d.ts +2 -3
- package/types/kmd-account-manager.js +4 -4
- package/types/kmd-account-manager.js.map +1 -1
- package/types/kmd-account-manager.mjs +5 -5
- package/types/kmd-account-manager.mjs.map +1 -1
- package/types/lifecycle-events.d.ts +10 -0
- package/types/lifecycle-events.js +8 -0
- package/types/lifecycle-events.js.map +1 -0
- package/types/lifecycle-events.mjs +8 -0
- package/types/lifecycle-events.mjs.map +1 -0
- package/types/logging.d.ts +0 -1
- package/types/logging.js.map +1 -1
- package/types/logging.mjs.map +1 -1
- package/types/logic-error.d.ts +2 -4
- package/types/logic-error.js +3 -3
- package/types/logic-error.js.map +1 -1
- package/types/logic-error.mjs +3 -3
- package/types/logic-error.mjs.map +1 -1
- package/types/network-client.d.ts +14 -2
- package/types/network-client.js.map +1 -1
- package/types/network-client.mjs.map +1 -1
- package/types/testing.d.ts +8 -10
- package/types/transaction.d.ts +17 -4
- package/types/transfer.d.ts +0 -1
- package/util.d.ts +2 -2
- package/account/account.d.ts.map +0 -1
- package/account/account.js.map +0 -1
- package/account/account.mjs.map +0 -1
- package/account/get-account-config-from-environment.d.ts.map +0 -1
- package/account/get-account-config-from-environment.js.map +0 -1
- package/account/get-account-config-from-environment.mjs.map +0 -1
- package/account/get-account.d.ts.map +0 -1
- package/account/get-account.js.map +0 -1
- package/account/get-account.mjs.map +0 -1
- package/account/get-dispenser-account.d.ts.map +0 -1
- package/account/get-dispenser-account.js.map +0 -1
- package/account/get-dispenser-account.mjs.map +0 -1
- package/account/index.d.ts.map +0 -1
- package/account/mnemonic-account.d.ts.map +0 -1
- package/account/mnemonic-account.js.map +0 -1
- package/account/mnemonic-account.mjs.map +0 -1
- package/amount.d.ts.map +0 -1
- package/amount.js.map +0 -1
- package/amount.mjs.map +0 -1
- package/app-client.d.ts.map +0 -1
- package/app-client.js.map +0 -1
- package/app-client.mjs.map +0 -1
- package/app-deploy.d.ts.map +0 -1
- package/app-deploy.js +0 -468
- package/app-deploy.js.map +0 -1
- package/app-deploy.mjs +0 -459
- package/app-deploy.mjs.map +0 -1
- package/app.d.ts.map +0 -1
- package/app.js +0 -599
- package/app.js.map +0 -1
- package/app.mjs +0 -579
- package/app.mjs.map +0 -1
- package/asset.d.ts.map +0 -1
- package/asset.js.map +0 -1
- package/asset.mjs.map +0 -1
- package/config.d.ts.map +0 -1
- package/config.js.map +0 -1
- package/config.mjs.map +0 -1
- package/debugging/debugging.d.ts.map +0 -1
- package/debugging/debugging.js +0 -139
- package/debugging/debugging.js.map +0 -1
- package/debugging/debugging.mjs +0 -118
- package/debugging/debugging.mjs.map +0 -1
- package/debugging/index.d.ts.map +0 -1
- package/debugging/simulate-and-persist-response.d.ts +0 -20
- package/debugging/simulate-and-persist-response.d.ts.map +0 -1
- package/debugging/simulate-and-persist-response.js +0 -108
- package/debugging/simulate-and-persist-response.js.map +0 -1
- package/debugging/simulate-and-persist-response.mjs +0 -89
- package/debugging/simulate-and-persist-response.mjs.map +0 -1
- package/dispenser-client.d.ts.map +0 -1
- package/dispenser-client.js.map +0 -1
- package/dispenser-client.mjs.map +0 -1
- package/index.d.ts.map +0 -1
- package/indexer-lookup.d.ts.map +0 -1
- package/indexer-lookup.js.map +0 -1
- package/indexer-lookup.mjs.map +0 -1
- package/localnet/get-kmd-wallet-account.d.ts.map +0 -1
- package/localnet/get-kmd-wallet-account.js.map +0 -1
- package/localnet/get-kmd-wallet-account.mjs.map +0 -1
- package/localnet/get-localnet-dispenser-account.d.ts.map +0 -1
- package/localnet/get-localnet-dispenser-account.js.map +0 -1
- package/localnet/get-localnet-dispenser-account.mjs.map +0 -1
- package/localnet/get-or-create-kmd-wallet-account.d.ts.map +0 -1
- package/localnet/get-or-create-kmd-wallet-account.js.map +0 -1
- package/localnet/get-or-create-kmd-wallet-account.mjs.map +0 -1
- package/localnet/index.d.ts.map +0 -1
- package/localnet/is-localnet.d.ts.map +0 -1
- package/localnet/is-localnet.js.map +0 -1
- package/localnet/is-localnet.mjs.map +0 -1
- package/network-client.d.ts.map +0 -1
- package/network-client.js.map +0 -1
- package/network-client.mjs.map +0 -1
- package/testing/_asset.d.ts.map +0 -1
- package/testing/account.d.ts.map +0 -1
- package/testing/account.js.map +0 -1
- package/testing/account.mjs.map +0 -1
- package/testing/fixtures/algokit-log-capture-fixture.d.ts.map +0 -1
- package/testing/fixtures/algokit-log-capture-fixture.js.map +0 -1
- package/testing/fixtures/algokit-log-capture-fixture.mjs.map +0 -1
- package/testing/fixtures/algorand-fixture.d.ts.map +0 -1
- package/testing/fixtures/algorand-fixture.js.map +0 -1
- package/testing/fixtures/algorand-fixture.mjs.map +0 -1
- package/testing/fixtures/index.d.ts.map +0 -1
- package/testing/index.d.ts.map +0 -1
- package/testing/indexer.d.ts.map +0 -1
- package/testing/indexer.js.map +0 -1
- package/testing/indexer.mjs.map +0 -1
- package/testing/test-logger.d.ts.map +0 -1
- package/testing/test-logger.js.map +0 -1
- package/testing/test-logger.mjs.map +0 -1
- package/testing/transaction-logger.d.ts.map +0 -1
- package/testing/transaction-logger.js.map +0 -1
- package/testing/transaction-logger.mjs.map +0 -1
- package/transaction/index.d.ts.map +0 -1
- package/transaction/legacy-bridge.d.ts.map +0 -1
- package/transaction/legacy-bridge.js +0 -35
- package/transaction/legacy-bridge.js.map +0 -1
- package/transaction/legacy-bridge.mjs +0 -33
- package/transaction/legacy-bridge.mjs.map +0 -1
- package/transaction/perform-atomic-transaction-composer-simulate.d.ts.map +0 -1
- package/transaction/perform-atomic-transaction-composer-simulate.js.map +0 -1
- package/transaction/perform-atomic-transaction-composer-simulate.mjs.map +0 -1
- package/transaction/transaction.d.ts.map +0 -1
- package/transaction/transaction.js.map +0 -1
- package/transaction/transaction.mjs.map +0 -1
- package/transfer/index.d.ts.map +0 -1
- package/transfer/transfer-algos.d.ts.map +0 -1
- package/transfer/transfer-algos.js.map +0 -1
- package/transfer/transfer-algos.mjs.map +0 -1
- package/transfer/transfer.d.ts.map +0 -1
- package/transfer/transfer.js.map +0 -1
- package/transfer/transfer.mjs.map +0 -1
- package/types/account-manager.d.ts.map +0 -1
- package/types/account.d.ts.map +0 -1
- package/types/algo-http-client-with-retry.d.ts.map +0 -1
- package/types/algorand-client-transaction-creator.d.ts.map +0 -1
- package/types/algorand-client-transaction-sender.d.ts.map +0 -1
- package/types/algorand-client.d.ts.map +0 -1
- package/types/amount.d.ts.map +0 -1
- package/types/app-client.d.ts.map +0 -1
- package/types/app-spec.d.ts.map +0 -1
- package/types/app.d.ts.map +0 -1
- package/types/asset-manager.d.ts.map +0 -1
- package/types/asset.d.ts.map +0 -1
- package/types/client-manager.d.ts.map +0 -1
- package/types/composer.d.ts.map +0 -1
- package/types/config.d.ts.map +0 -1
- package/types/debugging.d.ts.map +0 -1
- package/types/dispenser-client.d.ts.map +0 -1
- package/types/indexer.d.ts.map +0 -1
- package/types/kmd-account-manager.d.ts.map +0 -1
- package/types/logging.d.ts.map +0 -1
- package/types/logic-error.d.ts.map +0 -1
- package/types/network-client.d.ts.map +0 -1
- package/types/testing.d.ts.map +0 -1
- package/types/transaction.d.ts.map +0 -1
- package/types/transfer.d.ts.map +0 -1
- package/types/urlTokenBaseHTTPClient.d.ts +0 -41
- package/types/urlTokenBaseHTTPClient.d.ts.map +0 -1
- package/types/urlTokenBaseHTTPClient.js +0 -153
- package/types/urlTokenBaseHTTPClient.js.map +0 -1
- package/types/urlTokenBaseHTTPClient.mjs +0 -151
- package/types/urlTokenBaseHTTPClient.mjs.map +0 -1
- package/util.d.ts.map +0 -1
- package/util.js.map +0 -1
- package/util.mjs.map +0 -1
- /package/{account → src/account}/get-account-config-from-environment.js +0 -0
- /package/{account → src/account}/get-account-config-from-environment.mjs +0 -0
- /package/{testing → src/testing}/fixtures/algokit-log-capture-fixture.js +0 -0
- /package/{testing → src/testing}/fixtures/algokit-log-capture-fixture.mjs +0 -0
- /package/{testing → src/testing}/indexer.js +0 -0
- /package/{testing → src/testing}/indexer.mjs +0 -0
- /package/{testing → src/testing}/transaction-logger.js +0 -0
- /package/{testing → src/testing}/transaction-logger.mjs +0 -0
|
@@ -1,26 +1,31 @@
|
|
|
1
|
-
import algosdk from 'algosdk';
|
|
1
|
+
import algosdk, { Address } from 'algosdk';
|
|
2
|
+
import { SendAppCreateTransactionResult, SendAppTransactionResult, SendAppUpdateTransactionResult } from './app';
|
|
3
|
+
import { AppManager } from './app-manager';
|
|
2
4
|
import { AssetManager } from './asset-manager';
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
/** Result from sending a single transaction. */
|
|
6
|
-
export type SendSingleTransactionResult = SendAtomicTransactionComposerResults & ConfirmedTransactionResult;
|
|
5
|
+
import { AssetCreateParams, AssetOptOutParams, TransactionComposer } from './composer';
|
|
6
|
+
import { SendParams, SendSingleTransactionResult } from './transaction';
|
|
7
7
|
/** Orchestrates sending transactions for `AlgorandClient`. */
|
|
8
8
|
export declare class AlgorandClientTransactionSender {
|
|
9
9
|
private _newGroup;
|
|
10
10
|
private _assetManager;
|
|
11
|
+
private _appManager;
|
|
11
12
|
/**
|
|
12
13
|
* Creates a new `AlgorandClientSender`
|
|
13
|
-
* @param newGroup A lambda that starts a new `
|
|
14
|
+
* @param newGroup A lambda that starts a new `TransactionComposer` transaction group
|
|
14
15
|
* @param assetManager An `AssetManager` instance
|
|
15
16
|
*/
|
|
16
|
-
constructor(newGroup: () =>
|
|
17
|
+
constructor(newGroup: () => TransactionComposer, assetManager: AssetManager, appManager: AppManager);
|
|
18
|
+
newGroup(): TransactionComposer;
|
|
17
19
|
private _send;
|
|
20
|
+
private _sendAppCall;
|
|
21
|
+
private _sendAppUpdateCall;
|
|
22
|
+
private _sendAppCreateCall;
|
|
18
23
|
/**
|
|
19
24
|
* Send a payment transaction to transfer Algo between accounts.
|
|
20
25
|
* @param params The parameters for the payment transaction
|
|
21
26
|
* @example Basic example
|
|
22
27
|
* ```typescript
|
|
23
|
-
* const result = await
|
|
28
|
+
* const result = await algorand.send.payment({
|
|
24
29
|
* sender: 'SENDERADDRESS',
|
|
25
30
|
* receiver: 'RECEIVERADDRESS',
|
|
26
31
|
* amount: (4).algo(),
|
|
@@ -28,7 +33,7 @@ export declare class AlgorandClientTransactionSender {
|
|
|
28
33
|
* ```
|
|
29
34
|
* @example Advanced example
|
|
30
35
|
* ```typescript
|
|
31
|
-
* const result = await
|
|
36
|
+
* const result = await algorand.send.payment({
|
|
32
37
|
* amount: (4).algo(),
|
|
33
38
|
* receiver: 'RECEIVERADDRESS',
|
|
34
39
|
* sender: 'SENDERADDRESS',
|
|
@@ -57,10 +62,10 @@ export declare class AlgorandClientTransactionSender {
|
|
|
57
62
|
* @returns The result of the transaction and the transaction that was sent
|
|
58
63
|
*/
|
|
59
64
|
payment: (params: import("./composer").CommonTransactionParams & {
|
|
60
|
-
receiver: string;
|
|
65
|
+
receiver: string | algosdk.Address;
|
|
61
66
|
amount: import("./amount").AlgoAmount;
|
|
62
|
-
closeRemainderTo?: string | undefined;
|
|
63
|
-
} &
|
|
67
|
+
closeRemainderTo?: string | algosdk.Address | undefined;
|
|
68
|
+
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
64
69
|
/**
|
|
65
70
|
* Create a new Algorand Standard Asset.
|
|
66
71
|
*
|
|
@@ -108,7 +113,7 @@ export declare class AlgorandClientTransactionSender {
|
|
|
108
113
|
* ```
|
|
109
114
|
* @returns The result of the transaction and the transaction that was sent
|
|
110
115
|
*/
|
|
111
|
-
assetCreate: (params: AssetCreateParams &
|
|
116
|
+
assetCreate: (params: AssetCreateParams & SendParams) => Promise<{
|
|
112
117
|
assetId: bigint;
|
|
113
118
|
groupId: string;
|
|
114
119
|
txIds: string[];
|
|
@@ -162,11 +167,11 @@ export declare class AlgorandClientTransactionSender {
|
|
|
162
167
|
*/
|
|
163
168
|
assetConfig: (params: import("./composer").CommonTransactionParams & {
|
|
164
169
|
assetId: bigint;
|
|
165
|
-
manager: string | undefined;
|
|
166
|
-
reserve?: string | undefined;
|
|
167
|
-
freeze?: string | undefined;
|
|
168
|
-
clawback?: string | undefined;
|
|
169
|
-
} &
|
|
170
|
+
manager: string | algosdk.Address | undefined;
|
|
171
|
+
reserve?: string | algosdk.Address | undefined;
|
|
172
|
+
freeze?: string | algosdk.Address | undefined;
|
|
173
|
+
clawback?: string | algosdk.Address | undefined;
|
|
174
|
+
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
170
175
|
/**
|
|
171
176
|
* Freeze or unfreeze an Algorand Standard Asset for an account.
|
|
172
177
|
*
|
|
@@ -205,9 +210,9 @@ export declare class AlgorandClientTransactionSender {
|
|
|
205
210
|
*/
|
|
206
211
|
assetFreeze: (params: import("./composer").CommonTransactionParams & {
|
|
207
212
|
assetId: bigint;
|
|
208
|
-
account: string;
|
|
213
|
+
account: string | algosdk.Address;
|
|
209
214
|
frozen: boolean;
|
|
210
|
-
} &
|
|
215
|
+
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
211
216
|
/**
|
|
212
217
|
* Destroys an Algorand Standard Asset.
|
|
213
218
|
*
|
|
@@ -248,7 +253,7 @@ export declare class AlgorandClientTransactionSender {
|
|
|
248
253
|
*/
|
|
249
254
|
assetDestroy: (params: import("./composer").CommonTransactionParams & {
|
|
250
255
|
assetId: bigint;
|
|
251
|
-
} &
|
|
256
|
+
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
252
257
|
/**
|
|
253
258
|
* Transfer an Algorand Standard Asset.
|
|
254
259
|
*
|
|
@@ -291,10 +296,10 @@ export declare class AlgorandClientTransactionSender {
|
|
|
291
296
|
assetTransfer: (params: import("./composer").CommonTransactionParams & {
|
|
292
297
|
assetId: bigint;
|
|
293
298
|
amount: bigint;
|
|
294
|
-
receiver: string;
|
|
295
|
-
clawbackTarget?: string | undefined;
|
|
296
|
-
closeAssetTo?: string | undefined;
|
|
297
|
-
} &
|
|
299
|
+
receiver: string | algosdk.Address;
|
|
300
|
+
clawbackTarget?: string | algosdk.Address | undefined;
|
|
301
|
+
closeAssetTo?: string | algosdk.Address | undefined;
|
|
302
|
+
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
298
303
|
/**
|
|
299
304
|
* Opt an account into an Algorand Standard Asset.
|
|
300
305
|
*
|
|
@@ -331,7 +336,7 @@ export declare class AlgorandClientTransactionSender {
|
|
|
331
336
|
*/
|
|
332
337
|
assetOptIn: (params: import("./composer").CommonTransactionParams & {
|
|
333
338
|
assetId: bigint;
|
|
334
|
-
} &
|
|
339
|
+
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
335
340
|
/**
|
|
336
341
|
* Opt an account out of an Algorand Standard Asset.
|
|
337
342
|
*
|
|
@@ -341,7 +346,7 @@ export declare class AlgorandClientTransactionSender {
|
|
|
341
346
|
*
|
|
342
347
|
* @param params The parameters for the asset opt-out transaction
|
|
343
348
|
*
|
|
344
|
-
* @example Basic example (without creator)
|
|
349
|
+
* @example Basic example (without creator, will be retrieved from algod)
|
|
345
350
|
* ```typescript
|
|
346
351
|
* await algorand.send.assetOptOut({sender: "SENDERADDRESS", assetId: 123456n, ensureZeroBalance: true })
|
|
347
352
|
* ```
|
|
@@ -378,7 +383,7 @@ export declare class AlgorandClientTransactionSender {
|
|
|
378
383
|
*/
|
|
379
384
|
assetOptOut: (params: Omit<AssetOptOutParams, 'creator'> & {
|
|
380
385
|
/** Optional asset creator account address; if not specified it will be retrieved from algod */
|
|
381
|
-
creator?: string;
|
|
386
|
+
creator?: string | Address;
|
|
382
387
|
/** Whether or not to check if the account has a zero balance first or not.
|
|
383
388
|
*
|
|
384
389
|
* If this is set to `true` and the account has an asset balance it will throw an error.
|
|
@@ -386,40 +391,761 @@ export declare class AlgorandClientTransactionSender {
|
|
|
386
391
|
* If this is set to `false` and the account has an asset balance it will lose those assets to the asset creator.
|
|
387
392
|
*/
|
|
388
393
|
ensureZeroBalance: boolean;
|
|
389
|
-
} &
|
|
394
|
+
} & SendParams) => Promise<{
|
|
395
|
+
groupId: string;
|
|
396
|
+
txIds: string[];
|
|
397
|
+
returns?: import("./app").ABIReturn[] | undefined;
|
|
398
|
+
confirmations: algosdk.modelsv2.PendingTransactionResponse[];
|
|
399
|
+
transactions: algosdk.Transaction[];
|
|
400
|
+
confirmation: algosdk.modelsv2.PendingTransactionResponse;
|
|
401
|
+
transaction: algosdk.Transaction;
|
|
402
|
+
}>;
|
|
403
|
+
/**
|
|
404
|
+
* Create a smart contract.
|
|
405
|
+
*
|
|
406
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
407
|
+
*
|
|
408
|
+
* @param params The parameters for the app creation transaction
|
|
409
|
+
* @example Basic example
|
|
410
|
+
* ```typescript
|
|
411
|
+
* const result = await algorand.send.appCreate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })
|
|
412
|
+
* const createdAppId = result.appId
|
|
413
|
+
* ```
|
|
414
|
+
* @example Advanced example
|
|
415
|
+
* ```typescript
|
|
416
|
+
* await algorand.send.appCreate({
|
|
417
|
+
* sender: 'CREATORADDRESS',
|
|
418
|
+
* approvalProgram: "TEALCODE",
|
|
419
|
+
* clearStateProgram: "TEALCODE",
|
|
420
|
+
* schema: {
|
|
421
|
+
* globalInts: 1,
|
|
422
|
+
* globalByteSlices: 2,
|
|
423
|
+
* localInts: 3,
|
|
424
|
+
* localByteSlices: 4
|
|
425
|
+
* },
|
|
426
|
+
* extraProgramPages: 1,
|
|
427
|
+
* onComplete: algosdk.OnApplicationComplete.OptInOC,
|
|
428
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
429
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
430
|
+
* appReferences: [123n, 1234n]
|
|
431
|
+
* assetReferences: [12345n]
|
|
432
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
433
|
+
* lease: 'lease',
|
|
434
|
+
* note: 'note',
|
|
435
|
+
* // You wouldn't normally set this field
|
|
436
|
+
* firstValidRound: 1000n,
|
|
437
|
+
* validityWindow: 10,
|
|
438
|
+
* extraFee: (1000).microAlgo(),
|
|
439
|
+
* staticFee: (1000).microAlgo(),
|
|
440
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
441
|
+
* // already specified, but here for completeness
|
|
442
|
+
* maxFee: (3000).microAlgo(),
|
|
443
|
+
* // Signer only needed if you want to provide one,
|
|
444
|
+
* // generally you'd register it with AlgorandClient
|
|
445
|
+
* // against the sender and not need to pass it in
|
|
446
|
+
* signer: transactionSigner,
|
|
447
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
448
|
+
* suppressLog: true,
|
|
449
|
+
*})
|
|
450
|
+
* ```
|
|
451
|
+
*/
|
|
452
|
+
appCreate: (params: {
|
|
453
|
+
sender: string | algosdk.Address;
|
|
454
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
455
|
+
note?: string | Uint8Array | undefined;
|
|
456
|
+
args?: Uint8Array[] | undefined;
|
|
457
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
458
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
459
|
+
lease?: string | Uint8Array | undefined;
|
|
460
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
461
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
462
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
463
|
+
validityWindow?: number | bigint | undefined;
|
|
464
|
+
firstValidRound?: bigint | undefined;
|
|
465
|
+
lastValidRound?: bigint | undefined;
|
|
466
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
467
|
+
appReferences?: bigint[] | undefined;
|
|
468
|
+
assetReferences?: bigint[] | undefined;
|
|
469
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
470
|
+
approvalProgram: string | Uint8Array;
|
|
471
|
+
clearStateProgram: string | Uint8Array;
|
|
472
|
+
schema?: {
|
|
473
|
+
globalInts: number;
|
|
474
|
+
globalByteSlices: number;
|
|
475
|
+
localInts: number;
|
|
476
|
+
localByteSlices: number;
|
|
477
|
+
} | undefined;
|
|
478
|
+
extraProgramPages?: number | undefined;
|
|
479
|
+
} & SendParams) => Promise<SendAppCreateTransactionResult>;
|
|
480
|
+
/**
|
|
481
|
+
* Update a smart contract.
|
|
482
|
+
*
|
|
483
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
484
|
+
*
|
|
485
|
+
* @param params The parameters for the app update transaction
|
|
486
|
+
* @example Basic example
|
|
487
|
+
* ```typescript
|
|
488
|
+
* await algorand.send.appUpdate({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE' })
|
|
489
|
+
* ```
|
|
490
|
+
* @example Advanced example
|
|
491
|
+
* ```typescript
|
|
492
|
+
* await algorand.send.appUpdate({
|
|
493
|
+
* sender: 'CREATORADDRESS',
|
|
494
|
+
* approvalProgram: "TEALCODE",
|
|
495
|
+
* clearStateProgram: "TEALCODE",
|
|
496
|
+
* onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC,
|
|
497
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
498
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
499
|
+
* appReferences: [123n, 1234n]
|
|
500
|
+
* assetReferences: [12345n]
|
|
501
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
502
|
+
* lease: 'lease',
|
|
503
|
+
* note: 'note',
|
|
504
|
+
* // You wouldn't normally set this field
|
|
505
|
+
* firstValidRound: 1000n,
|
|
506
|
+
* validityWindow: 10,
|
|
507
|
+
* extraFee: (1000).microAlgo(),
|
|
508
|
+
* staticFee: (1000).microAlgo(),
|
|
509
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
510
|
+
* // already specified, but here for completeness
|
|
511
|
+
* maxFee: (3000).microAlgo(),
|
|
512
|
+
* // Signer only needed if you want to provide one,
|
|
513
|
+
* // generally you'd register it with AlgorandClient
|
|
514
|
+
* // against the sender and not need to pass it in
|
|
515
|
+
* signer: transactionSigner,
|
|
516
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
517
|
+
* suppressLog: true,
|
|
518
|
+
*})
|
|
519
|
+
* ```
|
|
520
|
+
*/
|
|
521
|
+
appUpdate: (params: {
|
|
522
|
+
sender: string | algosdk.Address;
|
|
523
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
524
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
525
|
+
note?: string | Uint8Array | undefined;
|
|
526
|
+
lease?: string | Uint8Array | undefined;
|
|
527
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
528
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
529
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
530
|
+
validityWindow?: number | bigint | undefined;
|
|
531
|
+
firstValidRound?: bigint | undefined;
|
|
532
|
+
lastValidRound?: bigint | undefined;
|
|
533
|
+
appId: bigint;
|
|
534
|
+
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
535
|
+
args?: Uint8Array[] | undefined;
|
|
536
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
537
|
+
appReferences?: bigint[] | undefined;
|
|
538
|
+
assetReferences?: bigint[] | undefined;
|
|
539
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
540
|
+
approvalProgram: string | Uint8Array;
|
|
541
|
+
clearStateProgram: string | Uint8Array;
|
|
542
|
+
} & SendParams) => Promise<SendAppUpdateTransactionResult>;
|
|
543
|
+
/**
|
|
544
|
+
* Delete a smart contract.
|
|
545
|
+
*
|
|
546
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
547
|
+
*
|
|
548
|
+
* @param params The parameters for the app deletion transaction
|
|
549
|
+
* @example Basic example
|
|
550
|
+
* ```typescript
|
|
551
|
+
* await algorand.send.appDelete({ sender: 'CREATORADDRESS' })
|
|
552
|
+
* ```
|
|
553
|
+
* @example Advanced example
|
|
554
|
+
* ```typescript
|
|
555
|
+
* await algorand.send.appDelete({
|
|
556
|
+
* sender: 'CREATORADDRESS',
|
|
557
|
+
* onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC,
|
|
558
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
559
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
560
|
+
* appReferences: [123n, 1234n]
|
|
561
|
+
* assetReferences: [12345n]
|
|
562
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
563
|
+
* lease: 'lease',
|
|
564
|
+
* note: 'note',
|
|
565
|
+
* // You wouldn't normally set this field
|
|
566
|
+
* firstValidRound: 1000n,
|
|
567
|
+
* validityWindow: 10,
|
|
568
|
+
* extraFee: (1000).microAlgo(),
|
|
569
|
+
* staticFee: (1000).microAlgo(),
|
|
570
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
571
|
+
* // already specified, but here for completeness
|
|
572
|
+
* maxFee: (3000).microAlgo(),
|
|
573
|
+
* // Signer only needed if you want to provide one,
|
|
574
|
+
* // generally you'd register it with AlgorandClient
|
|
575
|
+
* // against the sender and not need to pass it in
|
|
576
|
+
* signer: transactionSigner,
|
|
577
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
578
|
+
* suppressLog: true,
|
|
579
|
+
*})
|
|
580
|
+
* ```
|
|
581
|
+
*/
|
|
582
|
+
appDelete: (params: import("./composer").CommonTransactionParams & {
|
|
583
|
+
appId: bigint;
|
|
584
|
+
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
585
|
+
args?: Uint8Array[] | undefined;
|
|
586
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
587
|
+
appReferences?: bigint[] | undefined;
|
|
588
|
+
assetReferences?: bigint[] | undefined;
|
|
589
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
590
|
+
} & {
|
|
591
|
+
onComplete?: algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
592
|
+
} & SendParams) => Promise<SendAppTransactionResult>;
|
|
390
593
|
/**
|
|
391
594
|
* Call a smart contract.
|
|
392
595
|
*
|
|
393
|
-
* Note: you may prefer to use `
|
|
596
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
597
|
+
*
|
|
598
|
+
* @param params The parameters for the app call transaction
|
|
599
|
+
* @example Basic example
|
|
600
|
+
* ```typescript
|
|
601
|
+
* await algorand.send.appCall({ sender: 'CREATORADDRESS' })
|
|
602
|
+
* ```
|
|
603
|
+
* @example Advanced example
|
|
604
|
+
* ```typescript
|
|
605
|
+
* await algorand.send.appCall({
|
|
606
|
+
* sender: 'CREATORADDRESS',
|
|
607
|
+
* onComplete: algosdk.OnApplicationComplete.OptInOC,
|
|
608
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
609
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
610
|
+
* appReferences: [123n, 1234n]
|
|
611
|
+
* assetReferences: [12345n]
|
|
612
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
613
|
+
* lease: 'lease',
|
|
614
|
+
* note: 'note',
|
|
615
|
+
* // You wouldn't normally set this field
|
|
616
|
+
* firstValidRound: 1000n,
|
|
617
|
+
* validityWindow: 10,
|
|
618
|
+
* extraFee: (1000).microAlgo(),
|
|
619
|
+
* staticFee: (1000).microAlgo(),
|
|
620
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
621
|
+
* // already specified, but here for completeness
|
|
622
|
+
* maxFee: (3000).microAlgo(),
|
|
623
|
+
* // Signer only needed if you want to provide one,
|
|
624
|
+
* // generally you'd register it with AlgorandClient
|
|
625
|
+
* // against the sender and not need to pass it in
|
|
626
|
+
* signer: transactionSigner,
|
|
627
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
628
|
+
* suppressLog: true,
|
|
629
|
+
*})
|
|
630
|
+
* ```
|
|
394
631
|
*/
|
|
395
632
|
appCall: (params: import("./composer").CommonTransactionParams & {
|
|
633
|
+
appId: bigint;
|
|
396
634
|
onComplete?: algosdk.OnApplicationComplete | undefined;
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
635
|
+
args?: Uint8Array[] | undefined;
|
|
636
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
637
|
+
appReferences?: bigint[] | undefined;
|
|
638
|
+
assetReferences?: bigint[] | undefined;
|
|
639
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
640
|
+
} & {
|
|
641
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.ClearStateOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
642
|
+
} & SendParams) => Promise<SendAppTransactionResult>;
|
|
643
|
+
/**
|
|
644
|
+
* Create a smart contract via an ABI method.
|
|
645
|
+
*
|
|
646
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
647
|
+
*
|
|
648
|
+
* @param params The parameters for the app creation transaction
|
|
649
|
+
* @example Basic example
|
|
650
|
+
* ```typescript
|
|
651
|
+
* const method = new ABIMethod({
|
|
652
|
+
* name: 'method',
|
|
653
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
654
|
+
* returns: { type: 'string' },
|
|
655
|
+
* })
|
|
656
|
+
* const result = await algorand.send.appCreateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: ["arg1_value"] })
|
|
657
|
+
* const createdAppId = result.appId
|
|
658
|
+
* ```
|
|
659
|
+
* @example Advanced example
|
|
660
|
+
* ```typescript
|
|
661
|
+
* const method = new ABIMethod({
|
|
662
|
+
* name: 'method',
|
|
663
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
664
|
+
* returns: { type: 'string' },
|
|
665
|
+
* })
|
|
666
|
+
* await algorand.send.appCreate({
|
|
667
|
+
* sender: 'CREATORADDRESS',
|
|
668
|
+
* method: method,
|
|
669
|
+
* args: ["arg1_value"],
|
|
670
|
+
* approvalProgram: "TEALCODE",
|
|
671
|
+
* clearStateProgram: "TEALCODE",
|
|
672
|
+
* schema: {
|
|
673
|
+
* globalInts: 1,
|
|
674
|
+
* globalByteSlices: 2,
|
|
675
|
+
* localInts: 3,
|
|
676
|
+
* localByteSlices: 4
|
|
677
|
+
* },
|
|
678
|
+
* extraProgramPages: 1,
|
|
679
|
+
* onComplete: algosdk.OnApplicationComplete.OptInOC,
|
|
680
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
681
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
682
|
+
* appReferences: [123n, 1234n]
|
|
683
|
+
* assetReferences: [12345n]
|
|
684
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
685
|
+
* lease: 'lease',
|
|
686
|
+
* note: 'note',
|
|
687
|
+
* // You wouldn't normally set this field
|
|
688
|
+
* firstValidRound: 1000n,
|
|
689
|
+
* validityWindow: 10,
|
|
690
|
+
* extraFee: (1000).microAlgo(),
|
|
691
|
+
* staticFee: (1000).microAlgo(),
|
|
692
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
693
|
+
* // already specified, but here for completeness
|
|
694
|
+
* maxFee: (3000).microAlgo(),
|
|
695
|
+
* // Signer only needed if you want to provide one,
|
|
696
|
+
* // generally you'd register it with AlgorandClient
|
|
697
|
+
* // against the sender and not need to pass it in
|
|
698
|
+
* signer: transactionSigner,
|
|
699
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
700
|
+
* suppressLog: true,
|
|
701
|
+
*})
|
|
702
|
+
* ```
|
|
703
|
+
*/
|
|
704
|
+
appCreateMethodCall: (params: {
|
|
705
|
+
sender: string | algosdk.Address;
|
|
706
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
707
|
+
approvalProgram: string | Uint8Array;
|
|
708
|
+
clearStateProgram: string | Uint8Array;
|
|
709
|
+
note?: string | Uint8Array | undefined;
|
|
400
710
|
schema?: {
|
|
401
|
-
|
|
711
|
+
globalInts: number;
|
|
402
712
|
globalByteSlices: number;
|
|
403
|
-
|
|
713
|
+
localInts: number;
|
|
404
714
|
localByteSlices: number;
|
|
405
715
|
} | undefined;
|
|
406
|
-
|
|
407
|
-
|
|
716
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
717
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
718
|
+
lease?: string | Uint8Array | undefined;
|
|
719
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
720
|
+
extraProgramPages?: number | undefined;
|
|
721
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
722
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
723
|
+
validityWindow?: number | bigint | undefined;
|
|
724
|
+
firstValidRound?: bigint | undefined;
|
|
725
|
+
lastValidRound?: bigint | undefined;
|
|
726
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
408
727
|
appReferences?: bigint[] | undefined;
|
|
409
728
|
assetReferences?: bigint[] | undefined;
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
729
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
730
|
+
} & {
|
|
731
|
+
method: algosdk.ABIMethod;
|
|
732
|
+
args?: (algosdk.Address | algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
|
|
733
|
+
sender: string | algosdk.Address;
|
|
734
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
735
|
+
note?: string | Uint8Array | undefined;
|
|
736
|
+
args?: Uint8Array[] | undefined;
|
|
737
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
738
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
739
|
+
lease?: string | Uint8Array | undefined;
|
|
740
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
741
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
742
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
743
|
+
validityWindow?: number | bigint | undefined;
|
|
744
|
+
firstValidRound?: bigint | undefined;
|
|
745
|
+
lastValidRound?: bigint | undefined;
|
|
746
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
747
|
+
appReferences?: bigint[] | undefined;
|
|
748
|
+
assetReferences?: bigint[] | undefined;
|
|
749
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
750
|
+
approvalProgram: string | Uint8Array;
|
|
751
|
+
clearStateProgram: string | Uint8Array;
|
|
752
|
+
schema?: {
|
|
753
|
+
globalInts: number;
|
|
754
|
+
globalByteSlices: number;
|
|
755
|
+
localInts: number;
|
|
756
|
+
localByteSlices: number;
|
|
757
|
+
} | undefined;
|
|
758
|
+
extraProgramPages?: number | undefined;
|
|
759
|
+
}> | import("./composer").AppMethodCall<{
|
|
760
|
+
sender: string | algosdk.Address;
|
|
761
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
762
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
763
|
+
note?: string | Uint8Array | undefined;
|
|
764
|
+
lease?: string | Uint8Array | undefined;
|
|
765
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
766
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
767
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
768
|
+
validityWindow?: number | bigint | undefined;
|
|
769
|
+
firstValidRound?: bigint | undefined;
|
|
770
|
+
lastValidRound?: bigint | undefined;
|
|
771
|
+
appId: bigint;
|
|
772
|
+
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
773
|
+
args?: Uint8Array[] | undefined;
|
|
774
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
775
|
+
appReferences?: bigint[] | undefined;
|
|
776
|
+
assetReferences?: bigint[] | undefined;
|
|
777
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
778
|
+
approvalProgram: string | Uint8Array;
|
|
779
|
+
clearStateProgram: string | Uint8Array;
|
|
780
|
+
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
|
|
781
|
+
} & SendParams) => Promise<SendAppCreateTransactionResult>;
|
|
413
782
|
/**
|
|
414
|
-
*
|
|
783
|
+
* Update a smart contract via an ABI method.
|
|
415
784
|
*
|
|
416
|
-
* Note: you may prefer to use `
|
|
785
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
786
|
+
*
|
|
787
|
+
* @param params The parameters for the app update transaction
|
|
788
|
+
* @example Basic example
|
|
789
|
+
* ```typescript
|
|
790
|
+
* const method = new ABIMethod({
|
|
791
|
+
* name: 'method',
|
|
792
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
793
|
+
* returns: { type: 'string' },
|
|
794
|
+
* })
|
|
795
|
+
* await algorand.send.appUpdateMethodCall({ sender: 'CREATORADDRESS', approvalProgram: 'TEALCODE', clearStateProgram: 'TEALCODE', method: method, args: ["arg1_value"] })
|
|
796
|
+
* ```
|
|
797
|
+
* @example Advanced example
|
|
798
|
+
* ```typescript
|
|
799
|
+
* const method = new ABIMethod({
|
|
800
|
+
* name: 'method',
|
|
801
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
802
|
+
* returns: { type: 'string' },
|
|
803
|
+
* })
|
|
804
|
+
* await algorand.send.appUpdateMethodCall({
|
|
805
|
+
* sender: 'CREATORADDRESS',
|
|
806
|
+
* method: method,
|
|
807
|
+
* args: ["arg1_value"],
|
|
808
|
+
* approvalProgram: "TEALCODE",
|
|
809
|
+
* clearStateProgram: "TEALCODE",
|
|
810
|
+
* onComplete: algosdk.OnApplicationComplete.UpdateApplicationOC,
|
|
811
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
812
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
813
|
+
* appReferences: [123n, 1234n]
|
|
814
|
+
* assetReferences: [12345n]
|
|
815
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
816
|
+
* lease: 'lease',
|
|
817
|
+
* note: 'note',
|
|
818
|
+
* // You wouldn't normally set this field
|
|
819
|
+
* firstValidRound: 1000n,
|
|
820
|
+
* validityWindow: 10,
|
|
821
|
+
* extraFee: (1000).microAlgo(),
|
|
822
|
+
* staticFee: (1000).microAlgo(),
|
|
823
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
824
|
+
* // already specified, but here for completeness
|
|
825
|
+
* maxFee: (3000).microAlgo(),
|
|
826
|
+
* // Signer only needed if you want to provide one,
|
|
827
|
+
* // generally you'd register it with AlgorandClient
|
|
828
|
+
* // against the sender and not need to pass it in
|
|
829
|
+
* signer: transactionSigner,
|
|
830
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
831
|
+
* suppressLog: true,
|
|
832
|
+
*})
|
|
833
|
+
* ```
|
|
417
834
|
*/
|
|
418
|
-
|
|
835
|
+
appUpdateMethodCall: (params: {
|
|
836
|
+
sender: string | algosdk.Address;
|
|
837
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
838
|
+
approvalProgram: string | Uint8Array;
|
|
839
|
+
clearStateProgram: string | Uint8Array;
|
|
840
|
+
note?: string | Uint8Array | undefined;
|
|
419
841
|
appId: bigint;
|
|
842
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
843
|
+
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
844
|
+
lease?: string | Uint8Array | undefined;
|
|
845
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
846
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
847
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
848
|
+
validityWindow?: number | bigint | undefined;
|
|
849
|
+
firstValidRound?: bigint | undefined;
|
|
850
|
+
lastValidRound?: bigint | undefined;
|
|
851
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
852
|
+
appReferences?: bigint[] | undefined;
|
|
853
|
+
assetReferences?: bigint[] | undefined;
|
|
854
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
855
|
+
} & {
|
|
856
|
+
method: algosdk.ABIMethod;
|
|
857
|
+
args?: (algosdk.Address | algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
|
|
858
|
+
sender: string | algosdk.Address;
|
|
859
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
860
|
+
note?: string | Uint8Array | undefined;
|
|
861
|
+
args?: Uint8Array[] | undefined;
|
|
862
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
863
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
864
|
+
lease?: string | Uint8Array | undefined;
|
|
865
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
866
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
867
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
868
|
+
validityWindow?: number | bigint | undefined;
|
|
869
|
+
firstValidRound?: bigint | undefined;
|
|
870
|
+
lastValidRound?: bigint | undefined;
|
|
871
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
872
|
+
appReferences?: bigint[] | undefined;
|
|
873
|
+
assetReferences?: bigint[] | undefined;
|
|
874
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
875
|
+
approvalProgram: string | Uint8Array;
|
|
876
|
+
clearStateProgram: string | Uint8Array;
|
|
877
|
+
schema?: {
|
|
878
|
+
globalInts: number;
|
|
879
|
+
globalByteSlices: number;
|
|
880
|
+
localInts: number;
|
|
881
|
+
localByteSlices: number;
|
|
882
|
+
} | undefined;
|
|
883
|
+
extraProgramPages?: number | undefined;
|
|
884
|
+
}> | import("./composer").AppMethodCall<{
|
|
885
|
+
sender: string | algosdk.Address;
|
|
886
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
887
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
888
|
+
note?: string | Uint8Array | undefined;
|
|
889
|
+
lease?: string | Uint8Array | undefined;
|
|
890
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
891
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
892
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
893
|
+
validityWindow?: number | bigint | undefined;
|
|
894
|
+
firstValidRound?: bigint | undefined;
|
|
895
|
+
lastValidRound?: bigint | undefined;
|
|
896
|
+
appId: bigint;
|
|
897
|
+
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
898
|
+
args?: Uint8Array[] | undefined;
|
|
899
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
900
|
+
appReferences?: bigint[] | undefined;
|
|
901
|
+
assetReferences?: bigint[] | undefined;
|
|
902
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
903
|
+
approvalProgram: string | Uint8Array;
|
|
904
|
+
clearStateProgram: string | Uint8Array;
|
|
905
|
+
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
|
|
906
|
+
} & SendParams) => Promise<SendAppUpdateTransactionResult>;
|
|
907
|
+
/**
|
|
908
|
+
* Delete a smart contract via an ABI method.
|
|
909
|
+
*
|
|
910
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
911
|
+
*
|
|
912
|
+
* @param params The parameters for the app deletion transaction
|
|
913
|
+
* @example Basic example
|
|
914
|
+
* ```typescript
|
|
915
|
+
* const method = new ABIMethod({
|
|
916
|
+
* name: 'method',
|
|
917
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
918
|
+
* returns: { type: 'string' },
|
|
919
|
+
* })
|
|
920
|
+
* await algorand.send.appDeleteMethodCall({ sender: 'CREATORADDRESS', method: method, args: ["arg1_value"] })
|
|
921
|
+
* ```
|
|
922
|
+
* @example Advanced example
|
|
923
|
+
* ```typescript
|
|
924
|
+
* const method = new ABIMethod({
|
|
925
|
+
* name: 'method',
|
|
926
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
927
|
+
* returns: { type: 'string' },
|
|
928
|
+
* })
|
|
929
|
+
* await algorand.send.appDeleteMethodCall({
|
|
930
|
+
* sender: 'CREATORADDRESS',
|
|
931
|
+
* method: method,
|
|
932
|
+
* args: ["arg1_value"],
|
|
933
|
+
* onComplete: algosdk.OnApplicationComplete.DeleteApplicationOC,
|
|
934
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
935
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
936
|
+
* appReferences: [123n, 1234n]
|
|
937
|
+
* assetReferences: [12345n]
|
|
938
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
939
|
+
* lease: 'lease',
|
|
940
|
+
* note: 'note',
|
|
941
|
+
* // You wouldn't normally set this field
|
|
942
|
+
* firstValidRound: 1000n,
|
|
943
|
+
* validityWindow: 10,
|
|
944
|
+
* extraFee: (1000).microAlgo(),
|
|
945
|
+
* staticFee: (1000).microAlgo(),
|
|
946
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
947
|
+
* // already specified, but here for completeness
|
|
948
|
+
* maxFee: (3000).microAlgo(),
|
|
949
|
+
* // Signer only needed if you want to provide one,
|
|
950
|
+
* // generally you'd register it with AlgorandClient
|
|
951
|
+
* // against the sender and not need to pass it in
|
|
952
|
+
* signer: transactionSigner,
|
|
953
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
954
|
+
* suppressLog: true,
|
|
955
|
+
*})
|
|
956
|
+
* ```
|
|
957
|
+
*/
|
|
958
|
+
appDeleteMethodCall: (params: {
|
|
959
|
+
sender: string | algosdk.Address;
|
|
960
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
961
|
+
note?: string | Uint8Array | undefined;
|
|
962
|
+
appId: bigint;
|
|
963
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
964
|
+
onComplete?: algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
965
|
+
lease?: string | Uint8Array | undefined;
|
|
966
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
967
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
968
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
969
|
+
validityWindow?: number | bigint | undefined;
|
|
970
|
+
firstValidRound?: bigint | undefined;
|
|
971
|
+
lastValidRound?: bigint | undefined;
|
|
972
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
973
|
+
appReferences?: bigint[] | undefined;
|
|
974
|
+
assetReferences?: bigint[] | undefined;
|
|
975
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
976
|
+
} & {
|
|
977
|
+
method: algosdk.ABIMethod;
|
|
978
|
+
args?: (algosdk.Address | algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
|
|
979
|
+
sender: string | algosdk.Address;
|
|
980
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
981
|
+
note?: string | Uint8Array | undefined;
|
|
982
|
+
args?: Uint8Array[] | undefined;
|
|
983
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
984
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
985
|
+
lease?: string | Uint8Array | undefined;
|
|
986
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
987
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
988
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
989
|
+
validityWindow?: number | bigint | undefined;
|
|
990
|
+
firstValidRound?: bigint | undefined;
|
|
991
|
+
lastValidRound?: bigint | undefined;
|
|
992
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
993
|
+
appReferences?: bigint[] | undefined;
|
|
994
|
+
assetReferences?: bigint[] | undefined;
|
|
995
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
996
|
+
approvalProgram: string | Uint8Array;
|
|
997
|
+
clearStateProgram: string | Uint8Array;
|
|
998
|
+
schema?: {
|
|
999
|
+
globalInts: number;
|
|
1000
|
+
globalByteSlices: number;
|
|
1001
|
+
localInts: number;
|
|
1002
|
+
localByteSlices: number;
|
|
1003
|
+
} | undefined;
|
|
1004
|
+
extraProgramPages?: number | undefined;
|
|
1005
|
+
}> | import("./composer").AppMethodCall<{
|
|
1006
|
+
sender: string | algosdk.Address;
|
|
1007
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
1008
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1009
|
+
note?: string | Uint8Array | undefined;
|
|
1010
|
+
lease?: string | Uint8Array | undefined;
|
|
1011
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
1012
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
1013
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
1014
|
+
validityWindow?: number | bigint | undefined;
|
|
1015
|
+
firstValidRound?: bigint | undefined;
|
|
1016
|
+
lastValidRound?: bigint | undefined;
|
|
1017
|
+
appId: bigint;
|
|
1018
|
+
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
1019
|
+
args?: Uint8Array[] | undefined;
|
|
1020
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1021
|
+
appReferences?: bigint[] | undefined;
|
|
1022
|
+
assetReferences?: bigint[] | undefined;
|
|
1023
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1024
|
+
approvalProgram: string | Uint8Array;
|
|
1025
|
+
clearStateProgram: string | Uint8Array;
|
|
1026
|
+
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
|
|
1027
|
+
} & SendParams) => Promise<SendAppTransactionResult>;
|
|
1028
|
+
/**
|
|
1029
|
+
* Call a smart contract via an ABI method.
|
|
1030
|
+
*
|
|
1031
|
+
* Note: you may prefer to use `algorand.client` to get an app client for more advanced functionality.
|
|
1032
|
+
*
|
|
1033
|
+
* @param params The parameters for the app call transaction
|
|
1034
|
+
* @example Basic example
|
|
1035
|
+
* ```typescript
|
|
1036
|
+
* const method = new ABIMethod({
|
|
1037
|
+
* name: 'method',
|
|
1038
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
1039
|
+
* returns: { type: 'string' },
|
|
1040
|
+
* })
|
|
1041
|
+
* await algorand.send.appCallMethodCall({ sender: 'CREATORADDRESS', method: method, args: ["arg1_value"] })
|
|
1042
|
+
* ```
|
|
1043
|
+
* @example Advanced example
|
|
1044
|
+
* ```typescript
|
|
1045
|
+
* const method = new ABIMethod({
|
|
1046
|
+
* name: 'method',
|
|
1047
|
+
* args: [{ name: 'arg1', type: 'string' }],
|
|
1048
|
+
* returns: { type: 'string' },
|
|
1049
|
+
* })
|
|
1050
|
+
* await algorand.send.appCallMethodCall({
|
|
1051
|
+
* sender: 'CREATORADDRESS',
|
|
1052
|
+
* method: method,
|
|
1053
|
+
* args: ["arg1_value"],
|
|
1054
|
+
* onComplete: algosdk.OnApplicationComplete.OptInOC,
|
|
1055
|
+
* args: [new Uint8Array(1, 2, 3, 4)]
|
|
1056
|
+
* accountReferences: ["ACCOUNT_1"]
|
|
1057
|
+
* appReferences: [123n, 1234n]
|
|
1058
|
+
* assetReferences: [12345n]
|
|
1059
|
+
* boxReferences: ["box1", {appId: 1234n, name: "box2"}]
|
|
1060
|
+
* lease: 'lease',
|
|
1061
|
+
* note: 'note',
|
|
1062
|
+
* // You wouldn't normally set this field
|
|
1063
|
+
* firstValidRound: 1000n,
|
|
1064
|
+
* validityWindow: 10,
|
|
1065
|
+
* extraFee: (1000).microAlgo(),
|
|
1066
|
+
* staticFee: (1000).microAlgo(),
|
|
1067
|
+
* // Max fee doesn't make sense with extraFee AND staticFee
|
|
1068
|
+
* // already specified, but here for completeness
|
|
1069
|
+
* maxFee: (3000).microAlgo(),
|
|
1070
|
+
* // Signer only needed if you want to provide one,
|
|
1071
|
+
* // generally you'd register it with AlgorandClient
|
|
1072
|
+
* // against the sender and not need to pass it in
|
|
1073
|
+
* signer: transactionSigner,
|
|
1074
|
+
* maxRoundsToWaitForConfirmation: 5,
|
|
1075
|
+
* suppressLog: true,
|
|
1076
|
+
*})
|
|
1077
|
+
* ```
|
|
1078
|
+
*/
|
|
1079
|
+
appCallMethodCall: (params: {
|
|
1080
|
+
sender: string | algosdk.Address;
|
|
1081
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
1082
|
+
note?: string | Uint8Array | undefined;
|
|
1083
|
+
appId: bigint;
|
|
1084
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
1085
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
1086
|
+
lease?: string | Uint8Array | undefined;
|
|
1087
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1088
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
1089
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
1090
|
+
validityWindow?: number | bigint | undefined;
|
|
1091
|
+
firstValidRound?: bigint | undefined;
|
|
1092
|
+
lastValidRound?: bigint | undefined;
|
|
1093
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1094
|
+
appReferences?: bigint[] | undefined;
|
|
1095
|
+
assetReferences?: bigint[] | undefined;
|
|
1096
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1097
|
+
} & {
|
|
420
1098
|
method: algosdk.ABIMethod;
|
|
421
|
-
args?: (algosdk.
|
|
422
|
-
|
|
1099
|
+
args?: (algosdk.Address | algosdk.Transaction | algosdk.ABIValue | algosdk.TransactionWithSigner | Promise<algosdk.Transaction> | import("./composer").AppMethodCall<{
|
|
1100
|
+
sender: string | algosdk.Address;
|
|
1101
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
1102
|
+
note?: string | Uint8Array | undefined;
|
|
1103
|
+
args?: Uint8Array[] | undefined;
|
|
1104
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
1105
|
+
onComplete?: algosdk.OnApplicationComplete.NoOpOC | algosdk.OnApplicationComplete.OptInOC | algosdk.OnApplicationComplete.CloseOutOC | algosdk.OnApplicationComplete.UpdateApplicationOC | algosdk.OnApplicationComplete.DeleteApplicationOC | undefined;
|
|
1106
|
+
lease?: string | Uint8Array | undefined;
|
|
1107
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1108
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
1109
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
1110
|
+
validityWindow?: number | bigint | undefined;
|
|
1111
|
+
firstValidRound?: bigint | undefined;
|
|
1112
|
+
lastValidRound?: bigint | undefined;
|
|
1113
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1114
|
+
appReferences?: bigint[] | undefined;
|
|
1115
|
+
assetReferences?: bigint[] | undefined;
|
|
1116
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1117
|
+
approvalProgram: string | Uint8Array;
|
|
1118
|
+
clearStateProgram: string | Uint8Array;
|
|
1119
|
+
schema?: {
|
|
1120
|
+
globalInts: number;
|
|
1121
|
+
globalByteSlices: number;
|
|
1122
|
+
localInts: number;
|
|
1123
|
+
localByteSlices: number;
|
|
1124
|
+
} | undefined;
|
|
1125
|
+
extraProgramPages?: number | undefined;
|
|
1126
|
+
}> | import("./composer").AppMethodCall<{
|
|
1127
|
+
sender: string | algosdk.Address;
|
|
1128
|
+
signer?: algosdk.TransactionSigner | import("./account").TransactionSignerAccount | undefined;
|
|
1129
|
+
rekeyTo?: string | algosdk.Address | undefined;
|
|
1130
|
+
note?: string | Uint8Array | undefined;
|
|
1131
|
+
lease?: string | Uint8Array | undefined;
|
|
1132
|
+
staticFee?: import("./amount").AlgoAmount | undefined;
|
|
1133
|
+
extraFee?: import("./amount").AlgoAmount | undefined;
|
|
1134
|
+
maxFee?: import("./amount").AlgoAmount | undefined;
|
|
1135
|
+
validityWindow?: number | bigint | undefined;
|
|
1136
|
+
firstValidRound?: bigint | undefined;
|
|
1137
|
+
lastValidRound?: bigint | undefined;
|
|
1138
|
+
appId: bigint;
|
|
1139
|
+
onComplete?: algosdk.OnApplicationComplete.UpdateApplicationOC | undefined;
|
|
1140
|
+
args?: Uint8Array[] | undefined;
|
|
1141
|
+
accountReferences?: (string | algosdk.Address)[] | undefined;
|
|
1142
|
+
appReferences?: bigint[] | undefined;
|
|
1143
|
+
assetReferences?: bigint[] | undefined;
|
|
1144
|
+
boxReferences?: (import("./app-manager").BoxIdentifier | import("./app-manager").BoxReference)[] | undefined;
|
|
1145
|
+
approvalProgram: string | Uint8Array;
|
|
1146
|
+
clearStateProgram: string | Uint8Array;
|
|
1147
|
+
}> | import("./composer").AppMethodCall<import("./composer").AppMethodCallParams> | undefined)[] | undefined;
|
|
1148
|
+
} & SendParams) => Promise<SendAppTransactionResult>;
|
|
423
1149
|
/** Register an online key. */
|
|
424
1150
|
onlineKeyRegistration: (params: import("./composer").CommonTransactionParams & {
|
|
425
1151
|
voteKey: Uint8Array;
|
|
@@ -428,6 +1154,5 @@ export declare class AlgorandClientTransactionSender {
|
|
|
428
1154
|
voteLast: bigint;
|
|
429
1155
|
voteKeyDilution: bigint;
|
|
430
1156
|
stateProofKey?: Uint8Array | undefined;
|
|
431
|
-
} &
|
|
1157
|
+
} & SendParams) => Promise<SendSingleTransactionResult>;
|
|
432
1158
|
}
|
|
433
|
-
//# sourceMappingURL=algorand-client-transaction-sender.d.ts.map
|