algosdk 2.9.0 → 3.0.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/README.md +8 -4
- package/dist/browser/algosdk.min.js +1 -1
- package/dist/browser/algosdk.min.js.LICENSE.txt +0 -9
- package/dist/browser/algosdk.min.js.map +1 -1
- package/dist/cjs/abi/abi_type.js +34 -27
- package/dist/cjs/abi/abi_type.js.map +1 -1
- package/dist/cjs/abi/contract.js +3 -3
- package/dist/cjs/abi/contract.js.map +1 -1
- package/dist/cjs/abi/index.js +6 -6
- package/dist/cjs/abi/index.js.map +1 -1
- package/dist/cjs/abi/interface.js +3 -3
- package/dist/cjs/abi/interface.js.map +1 -1
- package/dist/cjs/abi/method.js +10 -10
- package/dist/cjs/abi/method.js.map +1 -1
- package/dist/cjs/abi/reference.js +1 -1
- package/dist/cjs/abi/reference.js.map +1 -1
- package/dist/cjs/abi/transaction.js +2 -2
- package/dist/cjs/abi/transaction.js.map +1 -1
- package/dist/cjs/account.js +4 -4
- package/dist/cjs/account.js.map +1 -1
- package/dist/cjs/boxStorage.js +17 -17
- package/dist/cjs/boxStorage.js.map +1 -1
- package/dist/cjs/client/client.js +77 -41
- package/dist/cjs/client/client.js.map +1 -1
- package/dist/cjs/client/index.js +29 -0
- package/dist/cjs/client/index.js.map +1 -0
- package/dist/cjs/client/kmd.js +69 -86
- package/dist/cjs/client/kmd.js.map +1 -1
- package/dist/cjs/client/urlTokenBaseHTTPClient.js +16 -11
- package/dist/cjs/client/urlTokenBaseHTTPClient.js.map +1 -1
- package/dist/cjs/client/v2/algod/accountApplicationInformation.js +11 -7
- package/dist/cjs/client/v2/algod/accountApplicationInformation.js.map +1 -1
- package/dist/cjs/client/v2/algod/accountAssetInformation.js +11 -7
- package/dist/cjs/client/v2/algod/accountAssetInformation.js.map +1 -1
- package/dist/cjs/client/v2/algod/accountInformation.js +11 -6
- package/dist/cjs/client/v2/algod/accountInformation.js.map +1 -1
- package/dist/cjs/client/v2/algod/algod.js +85 -83
- package/dist/cjs/client/v2/algod/algod.js.map +1 -1
- package/dist/cjs/client/v2/algod/block.js +6 -33
- package/dist/cjs/client/v2/algod/block.js.map +1 -1
- package/dist/cjs/client/v2/algod/compile.js +17 -11
- package/dist/cjs/client/v2/algod/compile.js.map +1 -1
- package/dist/cjs/client/v2/algod/disassemble.js +17 -11
- package/dist/cjs/client/v2/algod/disassemble.js.map +1 -1
- package/dist/cjs/client/v2/algod/dryrun.js +18 -37
- package/dist/cjs/client/v2/algod/dryrun.js.map +1 -1
- package/dist/cjs/client/v2/algod/genesis.js +6 -2
- package/dist/cjs/client/v2/algod/genesis.js.map +1 -1
- package/dist/cjs/client/v2/algod/getApplicationBoxByName.js +10 -10
- package/dist/cjs/client/v2/algod/getApplicationBoxByName.js.map +1 -1
- package/dist/cjs/client/v2/algod/getApplicationBoxes.js +8 -8
- package/dist/cjs/client/v2/algod/getApplicationBoxes.js.map +1 -1
- package/dist/cjs/client/v2/algod/getApplicationByID.js +10 -5
- package/dist/cjs/client/v2/algod/getApplicationByID.js.map +1 -1
- package/dist/cjs/client/v2/algod/getAssetByID.js +10 -5
- package/dist/cjs/client/v2/algod/getAssetByID.js.map +1 -1
- package/dist/cjs/client/v2/algod/getBlockHash.js +10 -6
- package/dist/cjs/client/v2/algod/getBlockHash.js.map +1 -1
- package/dist/cjs/client/v2/algod/getBlockOffsetTimestamp.js +6 -5
- package/dist/cjs/client/v2/algod/getBlockOffsetTimestamp.js.map +1 -1
- package/dist/cjs/client/v2/algod/getBlockTxids.js +10 -4
- package/dist/cjs/client/v2/algod/getBlockTxids.js.map +1 -1
- package/dist/cjs/client/v2/algod/getLedgerStateDelta.js +11 -6
- package/dist/cjs/client/v2/algod/getLedgerStateDelta.js.map +1 -1
- package/dist/cjs/client/v2/algod/getLedgerStateDeltaForTransactionGroup.js +11 -6
- package/dist/cjs/client/v2/algod/getLedgerStateDeltaForTransactionGroup.js.map +1 -1
- package/dist/cjs/client/v2/algod/getSyncRound.js +6 -5
- package/dist/cjs/client/v2/algod/getSyncRound.js.map +1 -1
- package/dist/cjs/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js +9 -9
- package/dist/cjs/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js.map +1 -1
- package/dist/cjs/client/v2/algod/getTransactionProof.js +10 -6
- package/dist/cjs/client/v2/algod/getTransactionProof.js.map +1 -1
- package/dist/cjs/client/v2/algod/healthCheck.js +4 -9
- package/dist/cjs/client/v2/algod/healthCheck.js.map +1 -1
- package/dist/cjs/{types → client/v2/algod}/index.js +5 -3
- package/dist/cjs/client/v2/algod/index.js.map +1 -0
- package/dist/cjs/client/v2/algod/lightBlockHeaderProof.js +10 -5
- package/dist/cjs/client/v2/algod/lightBlockHeaderProof.js.map +1 -1
- package/dist/cjs/client/v2/algod/models/types.js +3701 -1828
- package/dist/cjs/client/v2/algod/models/types.js.map +1 -1
- package/dist/cjs/client/v2/algod/pendingTransactionInformation.js +6 -32
- package/dist/cjs/client/v2/algod/pendingTransactionInformation.js.map +1 -1
- package/dist/cjs/client/v2/algod/pendingTransactions.js +6 -31
- package/dist/cjs/client/v2/algod/pendingTransactions.js.map +1 -1
- package/dist/cjs/client/v2/algod/pendingTransactionsByAddress.js +7 -33
- package/dist/cjs/client/v2/algod/pendingTransactionsByAddress.js.map +1 -1
- package/dist/cjs/client/v2/algod/ready.js +4 -2
- package/dist/cjs/client/v2/algod/ready.js.map +1 -1
- package/dist/cjs/client/v2/algod/sendRawTransaction.js +17 -8
- package/dist/cjs/client/v2/algod/sendRawTransaction.js.map +1 -1
- package/dist/cjs/client/v2/algod/setBlockOffsetTimestamp.js +13 -8
- package/dist/cjs/client/v2/algod/setBlockOffsetTimestamp.js.map +1 -1
- package/dist/cjs/client/v2/algod/setSyncRound.js +13 -8
- package/dist/cjs/client/v2/algod/setSyncRound.js.map +1 -1
- package/dist/cjs/client/v2/algod/simulateTransaction.js +15 -35
- package/dist/cjs/client/v2/algod/simulateTransaction.js.map +1 -1
- package/dist/cjs/client/v2/algod/stateproof.js +10 -5
- package/dist/cjs/client/v2/algod/stateproof.js.map +1 -1
- package/dist/cjs/client/v2/algod/status.js +8 -2
- package/dist/cjs/client/v2/algod/status.js.map +1 -1
- package/dist/cjs/client/v2/algod/statusAfterBlock.js +10 -5
- package/dist/cjs/client/v2/algod/statusAfterBlock.js.map +1 -1
- package/dist/cjs/client/v2/algod/suggestedParams.js +13 -9
- package/dist/cjs/client/v2/algod/suggestedParams.js.map +1 -1
- package/dist/cjs/client/v2/algod/supply.js +8 -2
- package/dist/cjs/client/v2/algod/supply.js.map +1 -1
- package/dist/cjs/client/v2/algod/unsetSyncRound.js +11 -5
- package/dist/cjs/client/v2/algod/unsetSyncRound.js.map +1 -1
- package/dist/cjs/client/v2/algod/versions.js +8 -2
- package/dist/cjs/client/v2/algod/versions.js.map +1 -1
- package/dist/cjs/client/v2/indexer/index.js +22 -0
- package/dist/cjs/client/v2/indexer/index.js.map +1 -0
- package/dist/cjs/client/v2/indexer/indexer.js +44 -43
- package/dist/cjs/client/v2/indexer/indexer.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountAppLocalStates.js +11 -6
- package/dist/cjs/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountAssets.js +11 -6
- package/dist/cjs/client/v2/indexer/lookupAccountAssets.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountByID.js +11 -6
- package/dist/cjs/client/v2/indexer/lookupAccountByID.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountCreatedApplications.js +11 -6
- package/dist/cjs/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountCreatedAssets.js +11 -6
- package/dist/cjs/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAccountTransactions.js +19 -12
- package/dist/cjs/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js +10 -10
- package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupApplicationLogs.js +10 -5
- package/dist/cjs/client/v2/indexer/lookupApplicationLogs.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupApplications.js +10 -5
- package/dist/cjs/client/v2/indexer/lookupApplications.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetBalances.js +10 -5
- package/dist/cjs/client/v2/indexer/lookupAssetBalances.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetByID.js +10 -5
- package/dist/cjs/client/v2/indexer/lookupAssetByID.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js +19 -12
- package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupBlock.js +10 -5
- package/dist/cjs/client/v2/indexer/lookupBlock.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupTransactionByID.js +10 -5
- package/dist/cjs/client/v2/indexer/lookupTransactionByID.js.map +1 -1
- package/dist/cjs/client/v2/indexer/makeHealthCheck.js +8 -2
- package/dist/cjs/client/v2/indexer/makeHealthCheck.js.map +1 -1
- package/dist/cjs/client/v2/indexer/models/types.js +3591 -1651
- package/dist/cjs/client/v2/indexer/models/types.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchAccounts.js +9 -3
- package/dist/cjs/client/v2/indexer/searchAccounts.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchForApplicationBoxes.js +8 -8
- package/dist/cjs/client/v2/indexer/searchForApplicationBoxes.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchForApplications.js +9 -3
- package/dist/cjs/client/v2/indexer/searchForApplications.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchForAssets.js +9 -3
- package/dist/cjs/client/v2/indexer/searchForAssets.js.map +1 -1
- package/dist/cjs/client/v2/indexer/searchForTransactions.js +17 -9
- package/dist/cjs/client/v2/indexer/searchForTransactions.js.map +1 -1
- package/dist/cjs/client/v2/jsonrequest.js +22 -54
- package/dist/cjs/client/v2/jsonrequest.js.map +1 -1
- package/dist/cjs/client/v2/serviceClient.js +5 -25
- package/dist/cjs/client/v2/serviceClient.js.map +1 -1
- package/dist/cjs/client/v2/untypedmodel.js +22 -0
- package/dist/cjs/client/v2/untypedmodel.js.map +1 -0
- package/dist/cjs/composer.js +64 -58
- package/dist/cjs/composer.js.map +1 -1
- package/dist/cjs/convert.js.map +1 -1
- package/dist/cjs/dryrun.js +107 -203
- package/dist/cjs/dryrun.js.map +1 -1
- package/dist/cjs/encoding/address.js +88 -104
- package/dist/cjs/encoding/address.js.map +1 -1
- package/dist/cjs/encoding/bigint.js +2 -3
- package/dist/cjs/encoding/bigint.js.map +1 -1
- package/dist/cjs/encoding/binarydata.js +82 -0
- package/dist/cjs/encoding/binarydata.js.map +1 -0
- package/dist/cjs/encoding/encoding.js +353 -38
- package/dist/cjs/encoding/encoding.js.map +1 -1
- package/dist/cjs/encoding/schema/address.js +41 -0
- package/dist/cjs/encoding/schema/address.js.map +1 -0
- package/dist/cjs/encoding/schema/array.js +43 -0
- package/dist/cjs/encoding/schema/array.js.map +1 -0
- package/dist/cjs/encoding/schema/binarystring.js +55 -0
- package/dist/cjs/encoding/schema/binarystring.js.map +1 -0
- package/dist/cjs/encoding/schema/blockhash.js +67 -0
- package/dist/cjs/encoding/schema/blockhash.js.map +1 -0
- package/dist/cjs/encoding/schema/boolean.js +42 -0
- package/dist/cjs/encoding/schema/boolean.js.map +1 -0
- package/dist/cjs/encoding/schema/bytearray.js +98 -0
- package/dist/cjs/encoding/schema/bytearray.js.map +1 -0
- package/dist/cjs/encoding/schema/index.js +34 -0
- package/dist/cjs/encoding/schema/index.js.map +1 -0
- package/dist/cjs/encoding/schema/map.js +528 -0
- package/dist/cjs/encoding/schema/map.js.map +1 -0
- package/dist/cjs/encoding/schema/optional.js +58 -0
- package/dist/cjs/encoding/schema/optional.js.map +1 -0
- package/dist/cjs/encoding/schema/string.js +43 -0
- package/dist/cjs/encoding/schema/string.js.map +1 -0
- package/dist/cjs/encoding/schema/uint64.js +36 -0
- package/dist/cjs/encoding/schema/uint64.js.map +1 -0
- package/dist/cjs/encoding/schema/untyped.js +33 -0
- package/dist/cjs/encoding/schema/untyped.js.map +1 -0
- package/dist/cjs/encoding/uint64.js +2 -2
- package/dist/cjs/encoding/uint64.js.map +1 -1
- package/dist/cjs/group.js +23 -60
- package/dist/cjs/group.js.map +1 -1
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/logic/sourcemap.js +56 -25
- package/dist/cjs/logic/sourcemap.js.map +1 -1
- package/dist/cjs/logicsig.js +113 -146
- package/dist/cjs/logicsig.js.map +1 -1
- package/dist/cjs/main.js +113 -122
- package/dist/cjs/main.js.map +1 -1
- package/dist/cjs/makeTxn.js +310 -570
- package/dist/cjs/makeTxn.js.map +1 -1
- package/dist/cjs/mnemonic/mnemonic.js +8 -8
- package/dist/cjs/mnemonic/mnemonic.js.map +1 -1
- package/dist/cjs/multisig.js +60 -312
- package/dist/cjs/multisig.js.map +1 -1
- package/dist/cjs/multisigSigning.js +285 -0
- package/dist/cjs/multisigSigning.js.map +1 -0
- package/dist/cjs/nacl/naclWrappers.js +2 -2
- package/dist/cjs/nacl/naclWrappers.js.map +1 -1
- package/dist/cjs/signedTransaction.js +106 -0
- package/dist/cjs/signedTransaction.js.map +1 -0
- package/dist/cjs/signer.js +7 -7
- package/dist/cjs/signer.js.map +1 -1
- package/dist/cjs/signing.js +105 -0
- package/dist/cjs/signing.js.map +1 -0
- package/dist/cjs/stateproof.js +421 -0
- package/dist/cjs/stateproof.js.map +1 -0
- package/dist/cjs/transaction.js +724 -1009
- package/dist/cjs/transaction.js.map +1 -1
- package/dist/cjs/types/block.js +813 -0
- package/dist/cjs/types/block.js.map +1 -0
- package/dist/cjs/types/intDecoding.js +1 -1
- package/dist/cjs/types/intDecoding.js.map +1 -1
- package/dist/cjs/types/statedelta.js +1155 -0
- package/dist/cjs/types/statedelta.js.map +1 -0
- package/dist/cjs/types/transactions/base.js +22 -5
- package/dist/cjs/types/transactions/base.js.map +1 -1
- package/dist/cjs/types/transactions/encoded.js +67 -0
- package/dist/cjs/types/transactions/encoded.js.map +1 -1
- package/dist/cjs/types/transactions/index.js +2 -5
- package/dist/cjs/types/transactions/index.js.map +1 -1
- package/dist/cjs/utils/utils.js +86 -22
- package/dist/cjs/utils/utils.js.map +1 -1
- package/dist/cjs/wait.js +4 -4
- package/dist/cjs/wait.js.map +1 -1
- package/dist/esm/abi/abi_type.js +22 -15
- package/dist/esm/abi/abi_type.js.map +1 -1
- package/dist/esm/abi/contract.js +1 -1
- package/dist/esm/abi/contract.js.map +1 -1
- package/dist/esm/abi/index.js +6 -6
- package/dist/esm/abi/index.js.map +1 -1
- package/dist/esm/abi/interface.js +1 -1
- package/dist/esm/abi/interface.js.map +1 -1
- package/dist/esm/abi/method.js +4 -4
- package/dist/esm/abi/method.js.map +1 -1
- package/dist/esm/abi/transaction.js +1 -1
- package/dist/esm/abi/transaction.js.map +1 -1
- package/dist/esm/account.js +4 -4
- package/dist/esm/account.js.map +1 -1
- package/dist/esm/boxStorage.js +15 -15
- package/dist/esm/boxStorage.js.map +1 -1
- package/dist/esm/client/client.js +74 -40
- package/dist/esm/client/client.js.map +1 -1
- package/dist/esm/client/index.js +7 -0
- package/dist/esm/client/index.js.map +1 -0
- package/dist/esm/client/kmd.js +67 -62
- package/dist/esm/client/kmd.js.map +1 -1
- package/dist/esm/client/urlTokenBaseHTTPClient.js +16 -11
- package/dist/esm/client/urlTokenBaseHTTPClient.js.map +1 -1
- package/dist/esm/client/v2/algod/accountApplicationInformation.js +10 -6
- package/dist/esm/client/v2/algod/accountApplicationInformation.js.map +1 -1
- package/dist/esm/client/v2/algod/accountAssetInformation.js +10 -6
- package/dist/esm/client/v2/algod/accountAssetInformation.js.map +1 -1
- package/dist/esm/client/v2/algod/accountInformation.js +10 -5
- package/dist/esm/client/v2/algod/accountInformation.js.map +1 -1
- package/dist/esm/client/v2/algod/algod.js +71 -70
- package/dist/esm/client/v2/algod/algod.js.map +1 -1
- package/dist/esm/client/v2/algod/block.js +5 -9
- package/dist/esm/client/v2/algod/block.js.map +1 -1
- package/dist/esm/client/v2/algod/compile.js +16 -10
- package/dist/esm/client/v2/algod/compile.js.map +1 -1
- package/dist/esm/client/v2/algod/disassemble.js +16 -10
- package/dist/esm/client/v2/algod/disassemble.js.map +1 -1
- package/dist/esm/client/v2/algod/dryrun.js +16 -12
- package/dist/esm/client/v2/algod/dryrun.js.map +1 -1
- package/dist/esm/client/v2/algod/genesis.js +5 -1
- package/dist/esm/client/v2/algod/genesis.js.map +1 -1
- package/dist/esm/client/v2/algod/getApplicationBoxByName.js +9 -9
- package/dist/esm/client/v2/algod/getApplicationBoxByName.js.map +1 -1
- package/dist/esm/client/v2/algod/getApplicationBoxes.js +7 -7
- package/dist/esm/client/v2/algod/getApplicationBoxes.js.map +1 -1
- package/dist/esm/client/v2/algod/getApplicationByID.js +9 -4
- package/dist/esm/client/v2/algod/getApplicationByID.js.map +1 -1
- package/dist/esm/client/v2/algod/getAssetByID.js +9 -4
- package/dist/esm/client/v2/algod/getAssetByID.js.map +1 -1
- package/dist/esm/client/v2/algod/getBlockHash.js +9 -5
- package/dist/esm/client/v2/algod/getBlockHash.js.map +1 -1
- package/dist/esm/client/v2/algod/getBlockOffsetTimestamp.js +5 -4
- package/dist/esm/client/v2/algod/getBlockOffsetTimestamp.js.map +1 -1
- package/dist/esm/client/v2/algod/getBlockTxids.js +9 -3
- package/dist/esm/client/v2/algod/getBlockTxids.js.map +1 -1
- package/dist/esm/client/v2/algod/getLedgerStateDelta.js +10 -5
- package/dist/esm/client/v2/algod/getLedgerStateDelta.js.map +1 -1
- package/dist/esm/client/v2/algod/getLedgerStateDeltaForTransactionGroup.js +10 -5
- package/dist/esm/client/v2/algod/getLedgerStateDeltaForTransactionGroup.js.map +1 -1
- package/dist/esm/client/v2/algod/getSyncRound.js +5 -4
- package/dist/esm/client/v2/algod/getSyncRound.js.map +1 -1
- package/dist/esm/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js +8 -8
- package/dist/esm/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js.map +1 -1
- package/dist/esm/client/v2/algod/getTransactionProof.js +9 -5
- package/dist/esm/client/v2/algod/getTransactionProof.js.map +1 -1
- package/dist/esm/client/v2/algod/healthCheck.js +3 -8
- package/dist/esm/client/v2/algod/healthCheck.js.map +1 -1
- package/dist/esm/client/v2/algod/index.js +4 -0
- package/dist/esm/client/v2/algod/index.js.map +1 -0
- package/dist/esm/client/v2/algod/lightBlockHeaderProof.js +9 -4
- package/dist/esm/client/v2/algod/lightBlockHeaderProof.js.map +1 -1
- package/dist/esm/client/v2/algod/models/types.js +3701 -1825
- package/dist/esm/client/v2/algod/models/types.js.map +1 -1
- package/dist/esm/client/v2/algod/pendingTransactionInformation.js +5 -8
- package/dist/esm/client/v2/algod/pendingTransactionInformation.js.map +1 -1
- package/dist/esm/client/v2/algod/pendingTransactions.js +5 -7
- package/dist/esm/client/v2/algod/pendingTransactions.js.map +1 -1
- package/dist/esm/client/v2/algod/pendingTransactionsByAddress.js +6 -9
- package/dist/esm/client/v2/algod/pendingTransactionsByAddress.js.map +1 -1
- package/dist/esm/client/v2/algod/ready.js +3 -1
- package/dist/esm/client/v2/algod/ready.js.map +1 -1
- package/dist/esm/client/v2/algod/sendRawTransaction.js +15 -6
- package/dist/esm/client/v2/algod/sendRawTransaction.js.map +1 -1
- package/dist/esm/client/v2/algod/setBlockOffsetTimestamp.js +12 -7
- package/dist/esm/client/v2/algod/setBlockOffsetTimestamp.js.map +1 -1
- package/dist/esm/client/v2/algod/setSyncRound.js +12 -7
- package/dist/esm/client/v2/algod/setSyncRound.js.map +1 -1
- package/dist/esm/client/v2/algod/simulateTransaction.js +14 -11
- package/dist/esm/client/v2/algod/simulateTransaction.js.map +1 -1
- package/dist/esm/client/v2/algod/stateproof.js +9 -4
- package/dist/esm/client/v2/algod/stateproof.js.map +1 -1
- package/dist/esm/client/v2/algod/status.js +7 -1
- package/dist/esm/client/v2/algod/status.js.map +1 -1
- package/dist/esm/client/v2/algod/statusAfterBlock.js +9 -4
- package/dist/esm/client/v2/algod/statusAfterBlock.js.map +1 -1
- package/dist/esm/client/v2/algod/suggestedParams.js +12 -8
- package/dist/esm/client/v2/algod/suggestedParams.js.map +1 -1
- package/dist/esm/client/v2/algod/supply.js +7 -1
- package/dist/esm/client/v2/algod/supply.js.map +1 -1
- package/dist/esm/client/v2/algod/unsetSyncRound.js +10 -4
- package/dist/esm/client/v2/algod/unsetSyncRound.js.map +1 -1
- package/dist/esm/client/v2/algod/versions.js +7 -1
- package/dist/esm/client/v2/algod/versions.js.map +1 -1
- package/dist/esm/client/v2/indexer/index.js +4 -0
- package/dist/esm/client/v2/indexer/index.js.map +1 -0
- package/dist/esm/client/v2/indexer/indexer.js +42 -42
- package/dist/esm/client/v2/indexer/indexer.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountAppLocalStates.js +10 -5
- package/dist/esm/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountAssets.js +10 -5
- package/dist/esm/client/v2/indexer/lookupAccountAssets.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountByID.js +10 -5
- package/dist/esm/client/v2/indexer/lookupAccountByID.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountCreatedApplications.js +10 -5
- package/dist/esm/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountCreatedAssets.js +10 -5
- package/dist/esm/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAccountTransactions.js +18 -11
- package/dist/esm/client/v2/indexer/lookupAccountTransactions.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js +9 -9
- package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupApplicationLogs.js +9 -4
- package/dist/esm/client/v2/indexer/lookupApplicationLogs.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupApplications.js +9 -4
- package/dist/esm/client/v2/indexer/lookupApplications.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetBalances.js +9 -4
- package/dist/esm/client/v2/indexer/lookupAssetBalances.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetByID.js +9 -4
- package/dist/esm/client/v2/indexer/lookupAssetByID.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetTransactions.js +17 -10
- package/dist/esm/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupBlock.js +9 -4
- package/dist/esm/client/v2/indexer/lookupBlock.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupTransactionByID.js +9 -4
- package/dist/esm/client/v2/indexer/lookupTransactionByID.js.map +1 -1
- package/dist/esm/client/v2/indexer/makeHealthCheck.js +7 -1
- package/dist/esm/client/v2/indexer/makeHealthCheck.js.map +1 -1
- package/dist/esm/client/v2/indexer/models/types.js +3591 -1648
- package/dist/esm/client/v2/indexer/models/types.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchAccounts.js +8 -2
- package/dist/esm/client/v2/indexer/searchAccounts.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchForApplicationBoxes.js +7 -7
- package/dist/esm/client/v2/indexer/searchForApplicationBoxes.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchForApplications.js +8 -2
- package/dist/esm/client/v2/indexer/searchForApplications.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchForAssets.js +8 -2
- package/dist/esm/client/v2/indexer/searchForAssets.js.map +1 -1
- package/dist/esm/client/v2/indexer/searchForTransactions.js +15 -7
- package/dist/esm/client/v2/indexer/searchForTransactions.js.map +1 -1
- package/dist/esm/client/v2/jsonrequest.js +22 -51
- package/dist/esm/client/v2/jsonrequest.js.map +1 -1
- package/dist/esm/client/v2/serviceClient.js +3 -20
- package/dist/esm/client/v2/serviceClient.js.map +1 -1
- package/dist/esm/client/v2/untypedmodel.js +18 -0
- package/dist/esm/client/v2/untypedmodel.js.map +1 -0
- package/dist/esm/composer.js +43 -37
- package/dist/esm/composer.js.map +1 -1
- package/dist/esm/convert.js.map +1 -1
- package/dist/esm/dryrun.js +98 -195
- package/dist/esm/dryrun.js.map +1 -1
- package/dist/esm/encoding/address.js +85 -100
- package/dist/esm/encoding/address.js.map +1 -1
- package/dist/esm/encoding/bigint.js +2 -3
- package/dist/esm/encoding/bigint.js.map +1 -1
- package/dist/esm/encoding/binarydata.js +73 -0
- package/dist/esm/encoding/binarydata.js.map +1 -0
- package/dist/esm/encoding/encoding.js +337 -12
- package/dist/esm/encoding/encoding.js.map +1 -1
- package/dist/esm/encoding/schema/address.js +37 -0
- package/dist/esm/encoding/schema/address.js.map +1 -0
- package/dist/esm/encoding/schema/array.js +39 -0
- package/dist/esm/encoding/schema/array.js.map +1 -0
- package/dist/esm/encoding/schema/binarystring.js +51 -0
- package/dist/esm/encoding/schema/binarystring.js.map +1 -0
- package/dist/esm/encoding/schema/blockhash.js +60 -0
- package/dist/esm/encoding/schema/blockhash.js.map +1 -0
- package/dist/esm/encoding/schema/boolean.js +38 -0
- package/dist/esm/encoding/schema/boolean.js.map +1 -0
- package/dist/esm/encoding/schema/bytearray.js +93 -0
- package/dist/esm/encoding/schema/bytearray.js.map +1 -0
- package/dist/esm/encoding/schema/index.js +12 -0
- package/dist/esm/encoding/schema/index.js.map +1 -0
- package/dist/esm/encoding/schema/map.js +517 -0
- package/dist/esm/encoding/schema/map.js.map +1 -0
- package/dist/esm/encoding/schema/optional.js +54 -0
- package/dist/esm/encoding/schema/optional.js.map +1 -0
- package/dist/esm/encoding/schema/string.js +39 -0
- package/dist/esm/encoding/schema/string.js.map +1 -0
- package/dist/esm/encoding/schema/uint64.js +32 -0
- package/dist/esm/encoding/schema/uint64.js.map +1 -0
- package/dist/esm/encoding/schema/untyped.js +29 -0
- package/dist/esm/encoding/schema/untyped.js.map +1 -0
- package/dist/esm/encoding/uint64.js +1 -1
- package/dist/esm/encoding/uint64.js.map +1 -1
- package/dist/esm/group.js +22 -58
- package/dist/esm/group.js.map +1 -1
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/logic/sourcemap.js +54 -23
- package/dist/esm/logic/sourcemap.js.map +1 -1
- package/dist/esm/logicsig.js +110 -141
- package/dist/esm/logicsig.js.map +1 -1
- package/dist/esm/main.js +47 -76
- package/dist/esm/main.js.map +1 -1
- package/dist/esm/makeTxn.js +304 -529
- package/dist/esm/makeTxn.js.map +1 -1
- package/dist/esm/mnemonic/mnemonic.js +5 -5
- package/dist/esm/mnemonic/mnemonic.js.map +1 -1
- package/dist/esm/multisig.js +56 -305
- package/dist/esm/multisig.js.map +1 -1
- package/dist/esm/multisigSigning.js +254 -0
- package/dist/esm/multisigSigning.js.map +1 -0
- package/dist/esm/nacl/naclWrappers.js +1 -1
- package/dist/esm/nacl/naclWrappers.js.map +1 -1
- package/dist/esm/package.json +1 -0
- package/dist/esm/signedTransaction.js +100 -0
- package/dist/esm/signedTransaction.js.map +1 -0
- package/dist/esm/signer.js +3 -3
- package/dist/esm/signer.js.map +1 -1
- package/dist/esm/signing.js +77 -0
- package/dist/esm/signing.js.map +1 -0
- package/dist/esm/stateproof.js +408 -0
- package/dist/esm/stateproof.js.map +1 -0
- package/dist/esm/transaction.js +723 -1005
- package/dist/esm/transaction.js.map +1 -1
- package/dist/esm/types/block.js +797 -0
- package/dist/esm/types/block.js.map +1 -0
- package/dist/esm/types/intDecoding.js +1 -1
- package/dist/esm/types/intDecoding.js.map +1 -1
- package/dist/esm/types/statedelta.js +1129 -0
- package/dist/esm/types/statedelta.js.map +1 -0
- package/dist/esm/types/transactions/base.js +18 -2
- package/dist/esm/types/transactions/base.js.map +1 -1
- package/dist/esm/types/transactions/encoded.js +62 -1
- package/dist/esm/types/transactions/encoded.js.map +1 -1
- package/dist/esm/types/transactions/index.js +2 -3
- package/dist/esm/types/transactions/index.js.map +1 -1
- package/dist/esm/utils/utils.js +80 -21
- package/dist/esm/utils/utils.js.map +1 -1
- package/dist/esm/wait.js +4 -4
- package/dist/esm/wait.js.map +1 -1
- package/dist/types/abi/abi_type.d.ts +1 -1
- package/dist/types/abi/contract.d.ts +2 -2
- package/dist/types/abi/index.d.ts +6 -6
- package/dist/types/abi/interface.d.ts +1 -1
- package/dist/types/abi/method.d.ts +6 -6
- package/dist/types/abi/transaction.d.ts +1 -1
- package/dist/types/account.d.ts +1 -1
- package/dist/types/boxStorage.d.ts +4 -5
- package/dist/types/client/baseHTTPClient.d.ts +9 -6
- package/dist/types/client/client.d.ts +59 -18
- package/dist/types/client/index.d.ts +5 -0
- package/dist/types/client/kmd.d.ts +12 -10
- package/dist/types/client/urlTokenBaseHTTPClient.d.ts +8 -5
- package/dist/types/client/v2/algod/accountApplicationInformation.d.ts +8 -6
- package/dist/types/client/v2/algod/accountAssetInformation.d.ts +8 -6
- package/dist/types/client/v2/algod/accountInformation.d.ts +7 -5
- package/dist/types/client/v2/algod/algod.d.ts +53 -52
- package/dist/types/client/v2/algod/block.d.ts +5 -4
- package/dist/types/client/v2/algod/compile.d.ts +7 -9
- package/dist/types/client/v2/algod/disassemble.d.ts +7 -9
- package/dist/types/client/v2/algod/dryrun.d.ts +7 -9
- package/dist/types/client/v2/algod/genesis.d.ts +4 -2
- package/dist/types/client/v2/algod/getApplicationBoxByName.d.ts +6 -7
- package/dist/types/client/v2/algod/getApplicationBoxes.d.ts +6 -7
- package/dist/types/client/v2/algod/getApplicationByID.d.ts +6 -5
- package/dist/types/client/v2/algod/getAssetByID.d.ts +6 -5
- package/dist/types/client/v2/algod/getBlockHash.d.ts +7 -6
- package/dist/types/client/v2/algod/getBlockOffsetTimestamp.d.ts +5 -4
- package/dist/types/client/v2/algod/getBlockTxids.d.ts +6 -5
- package/dist/types/client/v2/algod/getLedgerStateDelta.d.ts +6 -5
- package/dist/types/client/v2/algod/getLedgerStateDeltaForTransactionGroup.d.ts +6 -5
- package/dist/types/client/v2/algod/getSyncRound.d.ts +5 -4
- package/dist/types/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.d.ts +6 -7
- package/dist/types/client/v2/algod/getTransactionProof.d.ts +6 -5
- package/dist/types/client/v2/algod/healthCheck.d.ts +4 -3
- package/dist/types/client/v2/algod/index.d.ts +2 -0
- package/dist/types/client/v2/algod/lightBlockHeaderProof.d.ts +6 -5
- package/dist/types/client/v2/algod/models/types.d.ts +604 -317
- package/dist/types/client/v2/algod/pendingTransactionInformation.d.ts +5 -4
- package/dist/types/client/v2/algod/pendingTransactions.d.ts +5 -4
- package/dist/types/client/v2/algod/pendingTransactionsByAddress.d.ts +7 -5
- package/dist/types/client/v2/algod/ready.d.ts +4 -2
- package/dist/types/client/v2/algod/sendRawTransaction.d.ts +7 -5
- package/dist/types/client/v2/algod/setBlockOffsetTimestamp.d.ts +6 -6
- package/dist/types/client/v2/algod/setSyncRound.d.ts +6 -6
- package/dist/types/client/v2/algod/simulateTransaction.d.ts +7 -7
- package/dist/types/client/v2/algod/stateproof.d.ts +6 -5
- package/dist/types/client/v2/algod/status.d.ts +5 -2
- package/dist/types/client/v2/algod/statusAfterBlock.d.ts +6 -5
- package/dist/types/client/v2/algod/suggestedParams.d.ts +25 -4
- package/dist/types/client/v2/algod/supply.d.ts +5 -2
- package/dist/types/client/v2/algod/unsetSyncRound.d.ts +5 -3
- package/dist/types/client/v2/algod/versions.d.ts +5 -2
- package/dist/types/client/v2/indexer/index.d.ts +2 -0
- package/dist/types/client/v2/indexer/indexer.d.ts +31 -30
- package/dist/types/client/v2/indexer/lookupAccountAppLocalStates.d.ts +7 -5
- package/dist/types/client/v2/indexer/lookupAccountAssets.d.ts +7 -5
- package/dist/types/client/v2/indexer/lookupAccountByID.d.ts +7 -5
- package/dist/types/client/v2/indexer/lookupAccountCreatedApplications.d.ts +7 -5
- package/dist/types/client/v2/indexer/lookupAccountCreatedAssets.d.ts +7 -5
- package/dist/types/client/v2/indexer/lookupAccountTransactions.d.ts +11 -9
- package/dist/types/client/v2/indexer/lookupApplicationBoxByIDandName.d.ts +6 -7
- package/dist/types/client/v2/indexer/lookupApplicationLogs.d.ts +6 -5
- package/dist/types/client/v2/indexer/lookupApplications.d.ts +6 -5
- package/dist/types/client/v2/indexer/lookupAssetBalances.d.ts +6 -5
- package/dist/types/client/v2/indexer/lookupAssetByID.d.ts +6 -5
- package/dist/types/client/v2/indexer/lookupAssetTransactions.d.ts +12 -10
- package/dist/types/client/v2/indexer/lookupBlock.d.ts +6 -5
- package/dist/types/client/v2/indexer/lookupTransactionByID.d.ts +6 -5
- package/dist/types/client/v2/indexer/makeHealthCheck.d.ts +5 -2
- package/dist/types/client/v2/indexer/models/types.d.ts +513 -267
- package/dist/types/client/v2/indexer/searchAccounts.d.ts +7 -3
- package/dist/types/client/v2/indexer/searchForApplicationBoxes.d.ts +6 -7
- package/dist/types/client/v2/indexer/searchForApplications.d.ts +7 -3
- package/dist/types/client/v2/indexer/searchForAssets.d.ts +7 -3
- package/dist/types/client/v2/indexer/searchForTransactions.d.ts +11 -7
- package/dist/types/client/v2/jsonrequest.d.ts +20 -33
- package/dist/types/client/v2/serviceClient.d.ts +4 -18
- package/dist/types/client/v2/untypedmodel.d.ts +10 -0
- package/dist/types/composer.d.ts +18 -17
- package/dist/types/dryrun.d.ts +8 -80
- package/dist/types/encoding/address.d.ts +40 -31
- package/dist/types/encoding/binarydata.d.ts +30 -0
- package/dist/types/encoding/encoding.d.ts +219 -7
- package/dist/types/encoding/schema/address.d.ts +10 -0
- package/dist/types/encoding/schema/array.d.ts +11 -0
- package/dist/types/encoding/schema/binarystring.d.ts +18 -0
- package/dist/types/encoding/schema/blockhash.d.ts +16 -0
- package/dist/types/encoding/schema/boolean.d.ts +10 -0
- package/dist/types/encoding/schema/bytearray.d.ts +19 -0
- package/dist/types/encoding/schema/index.d.ts +11 -0
- package/dist/types/encoding/schema/map.d.ts +125 -0
- package/dist/types/encoding/schema/optional.d.ts +24 -0
- package/dist/types/encoding/schema/string.d.ts +9 -0
- package/dist/types/encoding/schema/uint64.d.ts +9 -0
- package/dist/types/encoding/schema/untyped.d.ts +9 -0
- package/dist/types/encoding/uint64.d.ts +1 -0
- package/dist/types/group.d.ts +6 -25
- package/dist/types/index.d.ts +2 -2
- package/dist/types/logic/sourcemap.d.ts +39 -13
- package/dist/types/logicsig.d.ts +27 -57
- package/dist/types/main.d.ts +43 -54
- package/dist/types/makeTxn.d.ts +117 -404
- package/dist/types/mnemonic/mnemonic.d.ts +1 -1
- package/dist/types/multisig.d.ts +28 -99
- package/dist/types/multisigSigning.d.ts +72 -0
- package/dist/types/signedTransaction.d.ts +55 -0
- package/dist/types/signer.d.ts +5 -5
- package/dist/types/signing.d.ts +29 -0
- package/dist/types/stateproof.d.ts +194 -0
- package/dist/types/transaction.d.ts +103 -182
- package/dist/types/types/account.d.ts +2 -1
- package/dist/types/types/block.d.ts +407 -0
- package/dist/types/types/intDecoding.d.ts +1 -1
- package/dist/types/types/statedelta.d.ts +575 -0
- package/dist/types/types/transactions/base.d.ts +206 -118
- package/dist/types/types/transactions/encoded.d.ts +7 -301
- package/dist/types/types/transactions/index.d.ts +2 -15
- package/dist/types/types/utils.d.ts +7 -7
- package/dist/types/utils/utils.d.ts +21 -16
- package/dist/types/wait.d.ts +3 -2
- package/package.json +48 -20
- package/src/abi/abi_type.ts +28 -18
- package/src/abi/contract.ts +2 -2
- package/src/abi/index.ts +6 -6
- package/src/abi/interface.ts +1 -1
- package/src/abi/method.ts +11 -9
- package/src/abi/transaction.ts +2 -2
- package/src/account.ts +5 -5
- package/src/boxStorage.ts +25 -23
- package/src/client/baseHTTPClient.ts +12 -6
- package/src/client/client.ts +147 -75
- package/src/client/index.ts +6 -0
- package/src/client/kmd.ts +79 -72
- package/src/client/urlTokenBaseHTTPClient.ts +25 -14
- package/src/client/v2/algod/accountApplicationInformation.ts +16 -9
- package/src/client/v2/algod/accountAssetInformation.ts +16 -9
- package/src/client/v2/algod/accountInformation.ts +16 -11
- package/src/client/v2/algod/algod.ts +83 -105
- package/src/client/v2/algod/block.ts +7 -11
- package/src/client/v2/algod/compile.ts +27 -19
- package/src/client/v2/algod/disassemble.ts +27 -19
- package/src/client/v2/algod/dryrun.ts +23 -19
- package/src/client/v2/algod/genesis.ts +8 -2
- package/src/client/v2/algod/getApplicationBoxByName.ts +10 -15
- package/src/client/v2/algod/getApplicationBoxes.ts +12 -13
- package/src/client/v2/algod/getApplicationByID.ts +15 -7
- package/src/client/v2/algod/getAssetByID.ts +15 -7
- package/src/client/v2/algod/getBlockHash.ts +13 -9
- package/src/client/v2/algod/getBlockOffsetTimestamp.ts +7 -8
- package/src/client/v2/algod/getBlockTxids.ts +12 -6
- package/src/client/v2/algod/getLedgerStateDelta.ts +16 -8
- package/src/client/v2/algod/getLedgerStateDeltaForTransactionGroup.ts +16 -8
- package/src/client/v2/algod/getSyncRound.ts +7 -8
- package/src/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.ts +15 -15
- package/src/client/v2/algod/getTransactionProof.ts +11 -9
- package/src/client/v2/algod/healthCheck.ts +5 -9
- package/src/client/v2/algod/index.ts +3 -0
- package/src/client/v2/algod/lightBlockHeaderProof.ts +15 -8
- package/src/client/v2/algod/models/types.ts +4699 -2263
- package/src/client/v2/algod/pendingTransactionInformation.ts +11 -11
- package/src/client/v2/algod/pendingTransactions.ts +7 -9
- package/src/client/v2/algod/pendingTransactionsByAddress.ts +12 -11
- package/src/client/v2/algod/ready.ts +6 -2
- package/src/client/v2/algod/sendRawTransaction.ts +24 -13
- package/src/client/v2/algod/setBlockOffsetTimestamp.ts +21 -11
- package/src/client/v2/algod/setSyncRound.ts +21 -11
- package/src/client/v2/algod/simulateTransaction.ts +22 -23
- package/src/client/v2/algod/stateproof.ts +15 -8
- package/src/client/v2/algod/status.ts +10 -2
- package/src/client/v2/algod/statusAfterBlock.ts +15 -7
- package/src/client/v2/algod/suggestedParams.ts +40 -10
- package/src/client/v2/algod/supply.ts +10 -2
- package/src/client/v2/algod/unsetSyncRound.ts +16 -5
- package/src/client/v2/algod/versions.ts +10 -2
- package/src/client/v2/indexer/index.ts +3 -0
- package/src/client/v2/indexer/indexer.ts +51 -59
- package/src/client/v2/indexer/lookupAccountAppLocalStates.ts +16 -11
- package/src/client/v2/indexer/lookupAccountAssets.ts +16 -11
- package/src/client/v2/indexer/lookupAccountByID.ts +16 -11
- package/src/client/v2/indexer/lookupAccountCreatedApplications.ts +16 -11
- package/src/client/v2/indexer/lookupAccountCreatedAssets.ts +16 -11
- package/src/client/v2/indexer/lookupAccountTransactions.ts +26 -19
- package/src/client/v2/indexer/lookupApplicationBoxByIDandName.ts +10 -15
- package/src/client/v2/indexer/lookupApplicationLogs.ts +15 -7
- package/src/client/v2/indexer/lookupApplications.ts +15 -7
- package/src/client/v2/indexer/lookupAssetBalances.ts +15 -7
- package/src/client/v2/indexer/lookupAssetByID.ts +15 -7
- package/src/client/v2/indexer/lookupAssetTransactions.ts +27 -16
- package/src/client/v2/indexer/lookupBlock.ts +15 -7
- package/src/client/v2/indexer/lookupTransactionByID.ts +15 -7
- package/src/client/v2/indexer/makeHealthCheck.ts +10 -2
- package/src/client/v2/indexer/models/types.ts +4454 -1988
- package/src/client/v2/indexer/searchAccounts.ts +13 -4
- package/src/client/v2/indexer/searchForApplicationBoxes.ts +12 -13
- package/src/client/v2/indexer/searchForApplications.ts +13 -4
- package/src/client/v2/indexer/searchForAssets.ts +13 -4
- package/src/client/v2/indexer/searchForTransactions.ts +22 -11
- package/src/client/v2/jsonrequest.ts +39 -57
- package/src/client/v2/serviceClient.ts +9 -31
- package/src/client/v2/untypedmodel.ts +25 -0
- package/src/composer.ts +83 -60
- package/src/dryrun.ts +129 -306
- package/src/encoding/address.ts +134 -146
- package/src/encoding/bigint.ts +2 -4
- package/src/encoding/binarydata.ts +80 -0
- package/src/encoding/encoding.ts +558 -13
- package/src/encoding/schema/address.ts +53 -0
- package/src/encoding/schema/array.ts +66 -0
- package/src/encoding/schema/binarystring.ts +73 -0
- package/src/encoding/schema/blockhash.ts +84 -0
- package/src/encoding/schema/boolean.ts +54 -0
- package/src/encoding/schema/bytearray.ts +127 -0
- package/src/encoding/schema/index.ts +26 -0
- package/src/encoding/schema/map.ts +713 -0
- package/src/encoding/schema/optional.ts +72 -0
- package/src/encoding/schema/string.ts +55 -0
- package/src/encoding/schema/uint64.ts +46 -0
- package/src/encoding/schema/untyped.ts +47 -0
- package/src/encoding/uint64.ts +2 -1
- package/src/group.ts +27 -75
- package/src/index.ts +2 -2
- package/src/logic/sourcemap.ts +94 -29
- package/src/logicsig.ts +154 -202
- package/src/main.ts +91 -94
- package/src/makeTxn.ts +660 -1338
- package/src/mnemonic/mnemonic.ts +14 -14
- package/src/multisig.ts +89 -403
- package/src/multisigSigning.ts +359 -0
- package/src/nacl/naclWrappers.ts +1 -1
- package/src/signedTransaction.ts +163 -0
- package/src/signer.ts +10 -5
- package/src/signing.ts +95 -0
- package/src/stateproof.ts +595 -0
- package/src/transaction.ts +986 -1242
- package/src/types/account.ts +3 -1
- package/src/types/block.ts +1278 -0
- package/src/types/intDecoding.ts +1 -1
- package/src/types/statedelta.ts +1717 -0
- package/src/types/transactions/base.ts +230 -122
- package/src/types/transactions/encoded.ts +81 -371
- package/src/types/transactions/index.ts +2 -72
- package/src/types/utils.ts +3 -3
- package/src/utils/utils.ts +96 -25
- package/src/wait.ts +8 -7
- package/dist/cjs/bid.js +0 -83
- package/dist/cjs/bid.js.map +0 -1
- package/dist/cjs/client/v2/basemodel.js +0 -67
- package/dist/cjs/client/v2/basemodel.js.map +0 -1
- package/dist/cjs/types/address.js +0 -3
- package/dist/cjs/types/address.js.map +0 -1
- package/dist/cjs/types/blockHeader.js +0 -3
- package/dist/cjs/types/blockHeader.js.map +0 -1
- package/dist/cjs/types/index.js.map +0 -1
- package/dist/cjs/types/multisig.js +0 -3
- package/dist/cjs/types/multisig.js.map +0 -1
- package/dist/cjs/types/transactions/application.js +0 -3
- package/dist/cjs/types/transactions/application.js.map +0 -1
- package/dist/cjs/types/transactions/asset.js +0 -3
- package/dist/cjs/types/transactions/asset.js.map +0 -1
- package/dist/cjs/types/transactions/builder.js +0 -3
- package/dist/cjs/types/transactions/builder.js.map +0 -1
- package/dist/cjs/types/transactions/keyreg.js +0 -3
- package/dist/cjs/types/transactions/keyreg.js.map +0 -1
- package/dist/cjs/types/transactions/payment.js +0 -3
- package/dist/cjs/types/transactions/payment.js.map +0 -1
- package/dist/cjs/types/transactions/stateproof.js +0 -3
- package/dist/cjs/types/transactions/stateproof.js.map +0 -1
- package/dist/esm/bid.js +0 -57
- package/dist/esm/bid.js.map +0 -1
- package/dist/esm/client/v2/basemodel.js +0 -64
- package/dist/esm/client/v2/basemodel.js.map +0 -1
- package/dist/esm/types/address.js +0 -2
- package/dist/esm/types/address.js.map +0 -1
- package/dist/esm/types/blockHeader.js +0 -2
- package/dist/esm/types/blockHeader.js.map +0 -1
- package/dist/esm/types/index.js +0 -4
- package/dist/esm/types/index.js.map +0 -1
- package/dist/esm/types/multisig.js +0 -2
- package/dist/esm/types/multisig.js.map +0 -1
- package/dist/esm/types/transactions/application.js +0 -2
- package/dist/esm/types/transactions/application.js.map +0 -1
- package/dist/esm/types/transactions/asset.js +0 -2
- package/dist/esm/types/transactions/asset.js.map +0 -1
- package/dist/esm/types/transactions/builder.js +0 -2
- package/dist/esm/types/transactions/builder.js.map +0 -1
- package/dist/esm/types/transactions/keyreg.js +0 -2
- package/dist/esm/types/transactions/keyreg.js.map +0 -1
- package/dist/esm/types/transactions/payment.js +0 -2
- package/dist/esm/types/transactions/payment.js.map +0 -1
- package/dist/esm/types/transactions/stateproof.js +0 -2
- package/dist/esm/types/transactions/stateproof.js.map +0 -1
- package/dist/types/bid.d.ts +0 -38
- package/dist/types/client/v2/basemodel.d.ts +0 -11
- package/dist/types/types/address.d.ts +0 -7
- package/dist/types/types/blockHeader.d.ts +0 -67
- package/dist/types/types/index.d.ts +0 -3
- package/dist/types/types/multisig.d.ts +0 -20
- package/dist/types/types/transactions/application.d.ts +0 -22
- package/dist/types/types/transactions/asset.d.ts +0 -28
- package/dist/types/types/transactions/builder.d.ts +0 -36
- package/dist/types/types/transactions/keyreg.d.ts +0 -8
- package/dist/types/types/transactions/payment.d.ts +0 -8
- package/dist/types/types/transactions/stateproof.d.ts +0 -8
- package/src/bid.ts +0 -96
- package/src/client/v2/basemodel.ts +0 -81
- package/src/types/address.ts +0 -7
- package/src/types/blockHeader.ts +0 -81
- package/src/types/index.ts +0 -3
- package/src/types/multisig.ts +0 -22
- package/src/types/transactions/application.ts +0 -111
- package/src/types/transactions/asset.ts +0 -108
- package/src/types/transactions/builder.ts +0 -69
- package/src/types/transactions/keyreg.ts +0 -23
- package/src/types/transactions/payment.ts +0 -14
- package/src/types/transactions/stateproof.ts +0 -17
package/dist/types/makeTxn.d.ts
CHANGED
|
@@ -1,452 +1,165 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { Transaction } from './transaction.js';
|
|
2
|
+
import { SuggestedParams, PaymentTransactionParams, KeyRegistrationTransactionParams, AssetConfigurationTransactionParams, AssetTransferTransactionParams, AssetFreezeTransactionParams, ApplicationCallTransactionParams } from './types/transactions/base.js';
|
|
3
|
+
import { Address } from './encoding/address.js';
|
|
4
|
+
/** Contains parameters common to every transaction type */
|
|
5
|
+
export interface CommonTransactionParams {
|
|
6
|
+
/** Algorand address of sender */
|
|
7
|
+
sender: string | Address;
|
|
8
|
+
/** Suggested parameters relevant to the network that will accept this transaction */
|
|
9
|
+
suggestedParams: SuggestedParams;
|
|
10
|
+
/** Optional, arbitrary data to be stored in the transaction's note field */
|
|
11
|
+
note?: Uint8Array;
|
|
12
|
+
/**
|
|
13
|
+
* Optional, 32-byte lease to associate with this transaction.
|
|
14
|
+
*
|
|
15
|
+
* The sender cannot send another transaction with the same lease until the last round of original
|
|
16
|
+
* transaction has passed.
|
|
17
|
+
*/
|
|
18
|
+
lease?: Uint8Array;
|
|
19
|
+
/** The Algorand address that will be used to authorize all future transactions from the sender, if provided. */
|
|
20
|
+
rekeyTo?: string | Address;
|
|
21
|
+
}
|
|
4
22
|
/**
|
|
5
|
-
*
|
|
6
|
-
* @param from - string representation of Algorand address of sender
|
|
7
|
-
* @param to - string representation of Algorand address of recipient
|
|
8
|
-
* @param amount - integer amount to send, in microAlgos
|
|
9
|
-
* @param closeRemainderTo - optionally close out remaining account balance to this account, represented as string rep of Algorand address
|
|
10
|
-
* @param note - uint8array of arbitrary data for sender to store
|
|
11
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
12
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
13
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
14
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
15
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
16
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
17
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
18
|
-
* genesisID - string specifies genesis ID of network in use
|
|
19
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
23
|
+
* Create a new payment transaction
|
|
20
24
|
*
|
|
21
|
-
* @
|
|
25
|
+
* @param options - Payment transaction parameters
|
|
22
26
|
*/
|
|
23
|
-
export declare function
|
|
24
|
-
export declare function makePaymentTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<PaymentTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'to' | 'amount' | 'closeRemainderTo' | 'note' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
27
|
+
export declare function makePaymentTxnWithSuggestedParamsFromObject({ sender, receiver, amount, closeRemainderTo, suggestedParams, note, lease, rekeyTo, }: PaymentTransactionParams & CommonTransactionParams): Transaction;
|
|
25
28
|
/**
|
|
26
|
-
*
|
|
27
|
-
* that key registration operation
|
|
29
|
+
* Create a new key registration transaction
|
|
28
30
|
*
|
|
29
|
-
* @param
|
|
30
|
-
* @param note - uint8array of arbitrary data for sender to store
|
|
31
|
-
* @param voteKey - voting key. for key deregistration, leave undefined
|
|
32
|
-
* @param selectionKey - selection key. for key deregistration, leave undefined
|
|
33
|
-
* @param voteFirst - first round on which voteKey is valid
|
|
34
|
-
* @param voteLast - last round on which voteKey is valid
|
|
35
|
-
* @param voteKeyDilution - integer
|
|
36
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
37
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
38
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
39
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
40
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
41
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
42
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
43
|
-
* genesisID - string specifies genesis ID of network in use
|
|
44
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
45
|
-
* @param nonParticipation - configure whether the address wants to stop participating. If true,
|
|
46
|
-
* voteKey, selectionKey, voteFirst, voteLast, and voteKeyDilution must be undefined.
|
|
47
|
-
* @param stateProofKey - state proof key. for key deregistration, leave undefined
|
|
48
|
-
*
|
|
49
|
-
* @deprecated This function will be removed in v3 in favor of {@link makeKeyRegistrationTxnWithSuggestedParamsFromObject}
|
|
31
|
+
* @param options - Key registration transaction parameters
|
|
50
32
|
*/
|
|
51
|
-
export declare function
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
nonParticipation?: false;
|
|
55
|
-
}>): txnBuilder.Transaction;
|
|
56
|
-
export declare function makeKeyRegistrationTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperty<MustHaveSuggestedParams<KeyRegistrationTxn>, 'reKeyTo', 'rekeyTo'>, 'from' | 'note' | 'suggestedParams' | 'rekeyTo' | 'nonParticipation'>>): txnBuilder.Transaction;
|
|
57
|
-
/** makeAssetCreateTxnWithSuggestedParams takes asset creation arguments and returns a Transaction object
|
|
58
|
-
* for creating that asset
|
|
33
|
+
export declare function makeKeyRegistrationTxnWithSuggestedParamsFromObject({ sender, voteKey, selectionKey, stateProofKey, voteFirst, voteLast, voteKeyDilution, nonParticipation, suggestedParams, note, lease, rekeyTo, }: KeyRegistrationTransactionParams & CommonTransactionParams): Transaction;
|
|
34
|
+
/**
|
|
35
|
+
* Base function for creating any type of asset config transaction.
|
|
59
36
|
*
|
|
60
|
-
* @param
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
*
|
|
65
|
-
* @param manager - string representation of Algorand address in charge of reserve, freeze, clawback, destruction, etc
|
|
66
|
-
* @param reserve - string representation of Algorand address representing asset reserve
|
|
67
|
-
* @param freeze - string representation of Algorand address with power to freeze/unfreeze asset holdings
|
|
68
|
-
* @param clawback - string representation of Algorand address with power to revoke asset holdings
|
|
69
|
-
* @param unitName - string units name for this asset
|
|
70
|
-
* @param assetName - string name for this asset
|
|
71
|
-
* @param assetURL - string URL relating to this asset
|
|
72
|
-
* @param assetMetadataHash - Uint8Array or UTF-8 string representation of a hash commitment with respect to the asset. Must be exactly 32 bytes long.
|
|
73
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
74
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
75
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
76
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
77
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
78
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
79
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
80
|
-
* genesisID - string specifies genesis ID of network in use
|
|
81
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
37
|
+
* @param options - Asset config transaction parameters
|
|
38
|
+
*/
|
|
39
|
+
export declare function makeBaseAssetConfigTxn({ sender, assetIndex, total, decimals, defaultFrozen, manager, reserve, freeze, clawback, unitName, assetName, assetURL, assetMetadataHash, note, lease, rekeyTo, suggestedParams, }: AssetConfigurationTransactionParams & CommonTransactionParams): Transaction;
|
|
40
|
+
/**
|
|
41
|
+
* Create a new asset creation transaction
|
|
82
42
|
*
|
|
83
|
-
* @
|
|
43
|
+
* @param options - Asset creation transaction parameters
|
|
84
44
|
*/
|
|
85
|
-
export declare function
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
45
|
+
export declare function makeAssetCreateTxnWithSuggestedParamsFromObject({ sender, total, decimals, defaultFrozen, manager, reserve, freeze, clawback, unitName, assetName, assetURL, assetMetadataHash, note, lease, rekeyTo, suggestedParams, }: Omit<AssetConfigurationTransactionParams, 'assetIndex'> & CommonTransactionParams): Transaction;
|
|
46
|
+
/** Contains asset modification transaction parameters */
|
|
47
|
+
export interface AssetModificationTransactionParams {
|
|
48
|
+
/**
|
|
49
|
+
* The unique ID of the asset to be modified
|
|
50
|
+
*/
|
|
51
|
+
assetIndex: number | bigint;
|
|
52
|
+
/**
|
|
53
|
+
* The Algorand address in charge of reserve, freeze, clawback, destruction, etc.
|
|
54
|
+
*
|
|
55
|
+
* If empty, this role will be irrevocably removed from this asset.
|
|
56
|
+
*/
|
|
57
|
+
manager?: string | Address;
|
|
58
|
+
/**
|
|
59
|
+
* The Algorand address representing asset reserve.
|
|
60
|
+
*
|
|
61
|
+
* If empty, this role will be irrevocably removed from this asset.
|
|
62
|
+
*/
|
|
63
|
+
reserve?: string | Address;
|
|
64
|
+
/**
|
|
65
|
+
* The Algorand address with power to freeze/unfreeze asset holdings.
|
|
66
|
+
*
|
|
67
|
+
* If empty, this role will be irrevocably removed from this asset.
|
|
68
|
+
*/
|
|
69
|
+
freeze?: string | Address;
|
|
70
|
+
/**
|
|
71
|
+
* The Algorand address with power to revoke asset holdings.
|
|
72
|
+
*
|
|
73
|
+
* If empty, this role will be irrevocably removed from this asset.
|
|
74
|
+
*/
|
|
75
|
+
clawback?: string | Address;
|
|
76
|
+
/**
|
|
77
|
+
* This is a safety flag to prevent unintentionally removing a role from an asset. If undefined or
|
|
78
|
+
* true, an error will be thrown if any of assetManager, assetReserve, assetFreeze, or
|
|
79
|
+
* assetClawback are empty.
|
|
80
|
+
*
|
|
81
|
+
* Set this to false to allow removing roles by leaving the corresponding address empty.
|
|
82
|
+
*/
|
|
83
|
+
strictEmptyAddressChecking?: boolean;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Create a new asset config transaction. This transaction can be issued by the asset manager to
|
|
87
|
+
* change the manager, reserve, freeze, or clawback address.
|
|
100
88
|
*
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* @param assetIndex - int asset index uniquely specifying the asset
|
|
104
|
-
* @param manager - string representation of new asset manager Algorand address
|
|
105
|
-
* @param reserve - string representation of new reserve Algorand address
|
|
106
|
-
* @param freeze - string representation of new freeze manager Algorand address
|
|
107
|
-
* @param clawback - string representation of new revocation manager Algorand address
|
|
108
|
-
* @param strictEmptyAddressChecking - boolean - throw an error if any of manager, reserve, freeze, or clawback are undefined. optional, defaults to true.
|
|
109
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
110
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
111
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
112
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
113
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
114
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
115
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
116
|
-
* genesisID - string specifies genesis ID of network in use
|
|
117
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
89
|
+
* You must respecify existing addresses to keep them the same; leaving a field blank is the same as
|
|
90
|
+
* turning that feature off for this asset.
|
|
118
91
|
*
|
|
119
|
-
* @
|
|
92
|
+
* @param options - Asset modification transaction parameters
|
|
120
93
|
*/
|
|
121
|
-
export declare function
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
assetReserve: 'reserve';
|
|
126
|
-
assetFreeze: 'freeze';
|
|
127
|
-
assetClawback: 'clawback';
|
|
128
|
-
}>, 'from' | 'note' | 'assetIndex' | 'manager' | 'reserve' | 'freeze' | 'clawback' | 'suggestedParams' | 'rekeyTo'> & {
|
|
129
|
-
strictEmptyAddressChecking: boolean;
|
|
130
|
-
}>): txnBuilder.Transaction;
|
|
131
|
-
/** makeAssetDestroyTxnWithSuggestedParams will allow the asset's manager to remove this asset from the ledger, so long
|
|
132
|
-
* as all outstanding assets are held by the creator.
|
|
94
|
+
export declare function makeAssetConfigTxnWithSuggestedParamsFromObject({ sender, assetIndex, manager, reserve, freeze, clawback, strictEmptyAddressChecking, note, lease, rekeyTo, suggestedParams, }: AssetModificationTransactionParams & CommonTransactionParams): Transaction;
|
|
95
|
+
/**
|
|
96
|
+
* Create a new asset destroy transaction. This will allow the asset's manager to remove this asset
|
|
97
|
+
* from the ledger, provided all outstanding assets are held by the creator.
|
|
133
98
|
*
|
|
134
|
-
* @param
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
141
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
142
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
143
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
144
|
-
* genesisID - string specifies genesis ID of network in use
|
|
145
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
99
|
+
* @param options - Asset destroy transaction parameters
|
|
100
|
+
*/
|
|
101
|
+
export declare function makeAssetDestroyTxnWithSuggestedParamsFromObject({ sender, assetIndex, note, lease, rekeyTo, suggestedParams, }: Required<Pick<AssetConfigurationTransactionParams, 'assetIndex'>> & CommonTransactionParams): Transaction;
|
|
102
|
+
/**
|
|
103
|
+
* Create a new asset freeze transaction. This transaction allows the asset's freeze manager to
|
|
104
|
+
* freeze or un-freeze an account, blocking or allowing asset transfers to and from the targeted
|
|
105
|
+
* account.
|
|
146
106
|
*
|
|
147
|
-
* @
|
|
107
|
+
* @param options - Asset freeze transaction parameters
|
|
148
108
|
*/
|
|
149
|
-
export declare function
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
* blocking or allowing asset transfers to and from the targeted account.
|
|
109
|
+
export declare function makeAssetFreezeTxnWithSuggestedParamsFromObject({ sender, assetIndex, freezeTarget, frozen, suggestedParams, note, lease, rekeyTo, }: AssetFreezeTransactionParams & CommonTransactionParams): Transaction;
|
|
110
|
+
/**
|
|
111
|
+
* Create a new asset transfer transaction.
|
|
153
112
|
*
|
|
154
|
-
*
|
|
155
|
-
* @param note - uint8array of arbitrary data for sender to store
|
|
156
|
-
* @param assetIndex - int asset index uniquely specifying the asset
|
|
157
|
-
* @param freezeTarget - string representation of Algorand address being frozen or unfrozen
|
|
158
|
-
* @param freezeState - true if freezeTarget should be frozen, false if freezeTarget should be allowed to transact
|
|
159
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
160
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
161
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
162
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
163
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
164
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
165
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
166
|
-
* genesisID - string specifies genesis ID of network in use
|
|
167
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
113
|
+
* Special case: to opt into an assets, set amount=0 and sender=receiver.
|
|
168
114
|
*
|
|
169
|
-
* @
|
|
115
|
+
* @param options - Asset transfer transaction parameters
|
|
170
116
|
*/
|
|
171
|
-
export declare function
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
reKeyTo: 'rekeyTo';
|
|
175
|
-
}>, 'from' | 'note' | 'assetIndex' | 'freezeTarget' | 'freezeState' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
176
|
-
/** makeAssetTransferTxnWithSuggestedParams allows for the creation of an asset transfer transaction.
|
|
177
|
-
* Special case: to begin accepting assets, set amount=0 and from=to.
|
|
178
|
-
*
|
|
179
|
-
* @param from - string representation of Algorand address of sender
|
|
180
|
-
* @param to - string representation of Algorand address of asset recipient
|
|
181
|
-
* @param closeRemainderTo - optional - string representation of Algorand address - if provided,
|
|
182
|
-
* send all remaining assets after transfer to the "closeRemainderTo" address and close "from"'s asset holdings
|
|
183
|
-
* @param revocationTarget - optional - string representation of Algorand address - if provided,
|
|
184
|
-
* and if "from" is the asset's revocation manager, then deduct from "revocationTarget" rather than "from"
|
|
185
|
-
* @param amount - integer amount of assets to send
|
|
186
|
-
* @param note - uint8array of arbitrary data for sender to store
|
|
187
|
-
* @param assetIndex - int asset index uniquely specifying the asset
|
|
188
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
189
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
190
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
191
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
192
|
-
* * flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
193
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
194
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
195
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
196
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
197
|
-
* genesisID - string specifies genesis ID of network in use
|
|
198
|
-
* @param rekeyTo - rekeyTo address, optional
|
|
117
|
+
export declare function makeAssetTransferTxnWithSuggestedParamsFromObject({ sender, receiver, amount, closeRemainderTo, assetSender, note, assetIndex, suggestedParams, rekeyTo, lease, }: AssetTransferTransactionParams & CommonTransactionParams): Transaction;
|
|
118
|
+
/**
|
|
119
|
+
* Base function for creating any application call transaction.
|
|
199
120
|
*
|
|
200
|
-
* @
|
|
121
|
+
* @param options - Application call transaction parameters
|
|
201
122
|
*/
|
|
202
|
-
export declare function
|
|
203
|
-
export declare function makeAssetTransferTxnWithSuggestedParamsFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AssetTransferTxn>, {
|
|
204
|
-
assetRevocationTarget: 'revocationTarget';
|
|
205
|
-
reKeyTo: 'rekeyTo';
|
|
206
|
-
}>, 'from' | 'to' | 'closeRemainderTo' | 'revocationTarget' | 'amount' | 'note' | 'assetIndex' | 'suggestedParams' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
123
|
+
export declare function makeApplicationCallTxnFromObject({ sender, appIndex, onComplete, appArgs, accounts, foreignApps, foreignAssets, boxes, approvalProgram, clearProgram, numLocalInts, numLocalByteSlices, numGlobalInts, numGlobalByteSlices, extraPages, note, lease, rekeyTo, suggestedParams, }: ApplicationCallTransactionParams & CommonTransactionParams): Transaction;
|
|
207
124
|
/**
|
|
208
125
|
* Make a transaction that will create an application.
|
|
209
|
-
* @param from - address of sender
|
|
210
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
211
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
212
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
213
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
214
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
215
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
216
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
217
|
-
* genesisID - string specifies genesis ID of network in use
|
|
218
|
-
* @param onComplete - algosdk.OnApplicationComplete, what application should do once the program is done being run
|
|
219
|
-
* @param approvalProgram - Uint8Array, the compiled TEAL that approves a transaction
|
|
220
|
-
* @param clearProgram - Uint8Array, the compiled TEAL that runs when clearing state
|
|
221
|
-
* @param numLocalInts - restricts number of ints in per-user local state
|
|
222
|
-
* @param numLocalByteSlices - restricts number of byte slices in per-user local state
|
|
223
|
-
* @param numGlobalInts - restricts number of ints in global state
|
|
224
|
-
* @param numGlobalByteSlices - restricts number of byte slices in global state
|
|
225
|
-
* @param appArgs - Array of Uint8Array, any additional arguments to the application
|
|
226
|
-
* @param accounts - Array of Address strings, any additional accounts to supply to the application
|
|
227
|
-
* @param foreignApps - Array of int, any other apps used by the application, identified by index
|
|
228
|
-
* @param foreignAssets - Array of int, any assets used by the application, identified by index
|
|
229
|
-
* @param note - Arbitrary data for sender to store
|
|
230
|
-
* @param lease - Lease a transaction
|
|
231
|
-
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
232
|
-
* @param extraPages - integer extra pages of memory to rent on creation of application
|
|
233
|
-
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
234
126
|
*
|
|
235
|
-
* @
|
|
127
|
+
* @param options - Application creation transaction parameters
|
|
236
128
|
*/
|
|
237
|
-
export declare function
|
|
238
|
-
export declare function makeApplicationCreateTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppCreateTxn>, {
|
|
239
|
-
appOnComplete: 'onComplete';
|
|
240
|
-
appApprovalProgram: 'approvalProgram';
|
|
241
|
-
appClearProgram: 'clearProgram';
|
|
242
|
-
appLocalInts: 'numLocalInts';
|
|
243
|
-
appLocalByteSlices: 'numLocalByteSlices';
|
|
244
|
-
appGlobalInts: 'numGlobalInts';
|
|
245
|
-
appGlobalByteSlices: 'numGlobalByteSlices';
|
|
246
|
-
appAccounts: 'accounts';
|
|
247
|
-
appForeignApps: 'foreignApps';
|
|
248
|
-
appForeignAssets: 'foreignAssets';
|
|
249
|
-
reKeyTo: 'rekeyTo';
|
|
250
|
-
}>, 'from' | 'suggestedParams' | 'onComplete' | 'approvalProgram' | 'clearProgram' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo' | 'extraPages'>>): txnBuilder.Transaction;
|
|
129
|
+
export declare function makeApplicationCreateTxnFromObject({ sender, onComplete, appArgs, accounts, foreignApps, foreignAssets, boxes, approvalProgram, clearProgram, numLocalInts, numLocalByteSlices, numGlobalInts, numGlobalByteSlices, extraPages, note, lease, rekeyTo, suggestedParams, }: Omit<ApplicationCallTransactionParams, 'appIndex' | 'approvalProgram' | 'clearProgram'> & Required<Pick<ApplicationCallTransactionParams, 'approvalProgram' | 'clearProgram'>> & CommonTransactionParams): Transaction;
|
|
251
130
|
/**
|
|
252
131
|
* Make a transaction that changes an application's approval and clear programs
|
|
253
|
-
* @param from - address of sender
|
|
254
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
255
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
256
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
257
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
258
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
259
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
260
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
261
|
-
* genesisID - string specifies genesis ID of network in use
|
|
262
|
-
* @param appIndex - the ID of the app to be updated
|
|
263
|
-
* @param approvalProgram - Uint8Array, the compiled TEAL that approves a transaction
|
|
264
|
-
* @param clearProgram - Uint8Array, the compiled TEAL that runs when clearing state
|
|
265
|
-
* @param appArgs - Array of Uint8Array, any additional arguments to the application
|
|
266
|
-
* @param accounts - Array of Address strings, any additional accounts to supply to the application
|
|
267
|
-
* @param foreignApps - Array of int, any other apps used by the application, identified by index
|
|
268
|
-
* @param foreignAssets - Array of int, any assets used by the application, identified by index
|
|
269
|
-
* @param note - Arbitrary data for sender to store
|
|
270
|
-
* @param lease - Lease a transaction
|
|
271
|
-
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
272
|
-
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
273
132
|
*
|
|
274
|
-
* @
|
|
133
|
+
* @param options - Application update transaction parameters
|
|
275
134
|
*/
|
|
276
|
-
export declare function
|
|
277
|
-
export declare function makeApplicationUpdateTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppUpdateTxn>, {
|
|
278
|
-
appApprovalProgram: 'approvalProgram';
|
|
279
|
-
appClearProgram: 'clearProgram';
|
|
280
|
-
appAccounts: 'accounts';
|
|
281
|
-
appForeignApps: 'foreignApps';
|
|
282
|
-
appForeignAssets: 'foreignAssets';
|
|
283
|
-
reKeyTo: 'rekeyTo';
|
|
284
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'approvalProgram' | 'clearProgram' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
135
|
+
export declare function makeApplicationUpdateTxnFromObject({ sender, appIndex, appArgs, accounts, foreignApps, foreignAssets, boxes, approvalProgram, clearProgram, note, lease, rekeyTo, suggestedParams, }: Omit<ApplicationCallTransactionParams, 'onComplete' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices' | 'extraPages' | 'approvalProgram' | 'clearProgram'> & Required<Pick<ApplicationCallTransactionParams, 'approvalProgram' | 'clearProgram'>> & CommonTransactionParams): Transaction;
|
|
285
136
|
/**
|
|
286
137
|
* Make a transaction that deletes an application
|
|
287
|
-
* @param from - address of sender
|
|
288
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
289
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
290
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
291
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
292
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
293
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
294
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
295
|
-
* genesisID - string specifies genesis ID of network in use
|
|
296
|
-
* @param appIndex - the ID of the app to be deleted
|
|
297
|
-
* @param appArgs - Array of Uint8Array, any additional arguments to the application
|
|
298
|
-
* @param accounts - Array of Address strings, any additional accounts to supply to the application
|
|
299
|
-
* @param foreignApps - Array of int, any other apps used by the application, identified by index
|
|
300
|
-
* @param foreignAssets - Array of int, any assets used by the application, identified by index
|
|
301
|
-
* @param note - Arbitrary data for sender to store
|
|
302
|
-
* @param lease - Lease a transaction
|
|
303
|
-
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
304
|
-
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
305
138
|
*
|
|
306
|
-
* @
|
|
139
|
+
* @param options - Application deletion transaction parameters
|
|
307
140
|
*/
|
|
308
|
-
export declare function
|
|
309
|
-
export declare function makeApplicationDeleteTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppDeleteTxn>, {
|
|
310
|
-
appAccounts: 'accounts';
|
|
311
|
-
appForeignApps: 'foreignApps';
|
|
312
|
-
appForeignAssets: 'foreignAssets';
|
|
313
|
-
reKeyTo: 'rekeyTo';
|
|
314
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
141
|
+
export declare function makeApplicationDeleteTxnFromObject({ sender, appIndex, appArgs, accounts, foreignApps, foreignAssets, boxes, note, lease, rekeyTo, suggestedParams, }: Omit<ApplicationCallTransactionParams, 'onComplete' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices' | 'extraPages' | 'approvalProgram' | 'clearProgram'> & CommonTransactionParams): Transaction;
|
|
315
142
|
/**
|
|
316
143
|
* Make a transaction that opts in to use an application
|
|
317
|
-
* @param from - address of sender
|
|
318
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
319
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
320
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
321
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
322
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
323
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
324
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
325
|
-
* genesisID - string specifies genesis ID of network in use
|
|
326
|
-
* @param appIndex - the ID of the app to join
|
|
327
|
-
* @param appArgs - Array of Uint8Array, any additional arguments to the application
|
|
328
|
-
* @param accounts - Array of Address strings, any additional accounts to supply to the application
|
|
329
|
-
* @param foreignApps - Array of int, any other apps used by the application, identified by index
|
|
330
|
-
* @param foreignAssets - Array of int, any assets used by the application, identified by index
|
|
331
|
-
* @param note - Arbitrary data for sender to store
|
|
332
|
-
* @param lease - Lease a transaction
|
|
333
|
-
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
334
|
-
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
335
144
|
*
|
|
336
|
-
* @
|
|
145
|
+
* @param options - Application opt-in transaction parameters
|
|
337
146
|
*/
|
|
338
|
-
export declare function
|
|
339
|
-
export declare function makeApplicationOptInTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
|
|
340
|
-
appAccounts: 'accounts';
|
|
341
|
-
appForeignApps: 'foreignApps';
|
|
342
|
-
appForeignAssets: 'foreignAssets';
|
|
343
|
-
reKeyTo: 'rekeyTo';
|
|
344
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
147
|
+
export declare function makeApplicationOptInTxnFromObject({ sender, appIndex, appArgs, accounts, foreignApps, foreignAssets, boxes, note, lease, rekeyTo, suggestedParams, }: Omit<ApplicationCallTransactionParams, 'onComplete' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices' | 'extraPages' | 'approvalProgram' | 'clearProgram'> & CommonTransactionParams): Transaction;
|
|
345
148
|
/**
|
|
346
149
|
* Make a transaction that closes out a user's state in an application
|
|
347
|
-
* @param from - address of sender
|
|
348
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
349
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
350
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
351
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
352
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
353
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
354
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
355
|
-
* genesisID - string specifies genesis ID of network in use
|
|
356
|
-
* @param appIndex - the ID of the app to use
|
|
357
|
-
* @param appArgs - Array of Uint8Array, any additional arguments to the application
|
|
358
|
-
* @param accounts - Array of Address strings, any additional accounts to supply to the application
|
|
359
|
-
* @param foreignApps - Array of int, any other apps used by the application, identified by index
|
|
360
|
-
* @param foreignAssets - Array of int, any assets used by the application, identified by index
|
|
361
|
-
* @param note - Arbitrary data for sender to store
|
|
362
|
-
* @param lease - Lease a transaction
|
|
363
|
-
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
364
|
-
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
365
150
|
*
|
|
366
|
-
* @
|
|
151
|
+
* @param options - Application close-out transaction parameters
|
|
367
152
|
*/
|
|
368
|
-
export declare function
|
|
369
|
-
export declare function makeApplicationCloseOutTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
|
|
370
|
-
appAccounts: 'accounts';
|
|
371
|
-
appForeignApps: 'foreignApps';
|
|
372
|
-
appForeignAssets: 'foreignAssets';
|
|
373
|
-
reKeyTo: 'rekeyTo';
|
|
374
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
153
|
+
export declare function makeApplicationCloseOutTxnFromObject({ sender, appIndex, appArgs, accounts, foreignApps, foreignAssets, boxes, note, lease, rekeyTo, suggestedParams, }: Omit<ApplicationCallTransactionParams, 'onComplete' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices' | 'extraPages' | 'approvalProgram' | 'clearProgram'> & CommonTransactionParams): Transaction;
|
|
375
154
|
/**
|
|
376
155
|
* Make a transaction that clears a user's state in an application
|
|
377
|
-
* @param from - address of sender
|
|
378
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
379
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
380
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
381
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
382
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
383
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
384
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
385
|
-
* genesisID - string specifies genesis ID of network in use
|
|
386
|
-
* @param appIndex - the ID of the app to use
|
|
387
|
-
* @param appArgs - Array of Uint8Array, any additional arguments to the application
|
|
388
|
-
* @param accounts - Array of Address strings, any additional accounts to supply to the application
|
|
389
|
-
* @param foreignApps - Array of int, any other apps used by the application, identified by index
|
|
390
|
-
* @param foreignAssets - Array of int, any assets used by the application, identified by index
|
|
391
|
-
* @param note - Arbitrary data for sender to store
|
|
392
|
-
* @param lease - Lease a transaction
|
|
393
|
-
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
394
|
-
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
395
156
|
*
|
|
396
|
-
* @
|
|
157
|
+
* @param options - Application clear state transaction parameters
|
|
397
158
|
*/
|
|
398
|
-
export declare function
|
|
399
|
-
export declare function makeApplicationClearStateTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
|
|
400
|
-
appAccounts: 'accounts';
|
|
401
|
-
appForeignApps: 'foreignApps';
|
|
402
|
-
appForeignAssets: 'foreignAssets';
|
|
403
|
-
reKeyTo: 'rekeyTo';
|
|
404
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
159
|
+
export declare function makeApplicationClearStateTxnFromObject({ sender, appIndex, appArgs, accounts, foreignApps, foreignAssets, boxes, note, lease, rekeyTo, suggestedParams, }: Omit<ApplicationCallTransactionParams, 'onComplete' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices' | 'extraPages' | 'approvalProgram' | 'clearProgram'> & CommonTransactionParams): Transaction;
|
|
405
160
|
/**
|
|
406
161
|
* Make a transaction that just calls an application, doing nothing on completion
|
|
407
|
-
* @param from - address of sender
|
|
408
|
-
* @param suggestedParams - a dict holding common-to-all-txns args:
|
|
409
|
-
* fee - integer fee per byte, in microAlgos. for a flat fee, set flatFee to true
|
|
410
|
-
* flatFee - bool optionally set this to true to specify fee as microalgos-per-txn
|
|
411
|
-
* If true, txn fee may fall below the ALGORAND_MIN_TX_FEE
|
|
412
|
-
* firstRound - integer first protocol round on which this txn is valid
|
|
413
|
-
* lastRound - integer last protocol round on which this txn is valid
|
|
414
|
-
* genesisHash - string specifies hash genesis block of network in use
|
|
415
|
-
* genesisID - string specifies genesis ID of network in use
|
|
416
|
-
* @param appIndex - the ID of the app to use
|
|
417
|
-
* @param appArgs - Array of Uint8Array, any additional arguments to the application
|
|
418
|
-
* @param accounts - Array of Address strings, any additional accounts to supply to the application
|
|
419
|
-
* @param foreignApps - Array of int, any other apps used by the application, identified by index
|
|
420
|
-
* @param foreignAssets - Array of int, any assets used by the application, identified by index
|
|
421
|
-
* @param note - Arbitrary data for sender to store
|
|
422
|
-
* @param lease - Lease a transaction
|
|
423
|
-
* @param rekeyTo - String representation of the Algorand address that will be used to authorize all future transactions
|
|
424
|
-
* @param boxes - Array of BoxReference, app ID and name of box to be accessed
|
|
425
162
|
*
|
|
426
|
-
* @
|
|
427
|
-
*/
|
|
428
|
-
export declare function makeApplicationNoOpTxn(from: AppNoOpTxn['from'], suggestedParams: MustHaveSuggestedParams<AppNoOpTxn>['suggestedParams'], appIndex: AppNoOpTxn['appIndex'], appArgs?: AppNoOpTxn['appArgs'], accounts?: AppNoOpTxn['appAccounts'], foreignApps?: AppNoOpTxn['appForeignApps'], foreignAssets?: AppNoOpTxn['appForeignAssets'], note?: AppNoOpTxn['note'], lease?: AppNoOpTxn['lease'], rekeyTo?: AppNoOpTxn['reKeyTo'], boxes?: AppNoOpTxn['boxes']): txnBuilder.Transaction;
|
|
429
|
-
export declare function makeApplicationNoOpTxnFromObject(o: Expand<Pick<RenameProperties<MustHaveSuggestedParams<AppOptInTxn>, {
|
|
430
|
-
appAccounts: 'accounts';
|
|
431
|
-
appForeignApps: 'foreignApps';
|
|
432
|
-
appForeignAssets: 'foreignAssets';
|
|
433
|
-
reKeyTo: 'rekeyTo';
|
|
434
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo'>>): txnBuilder.Transaction;
|
|
435
|
-
export { OnApplicationComplete } from './types/transactions/base';
|
|
436
|
-
/**
|
|
437
|
-
* Generic function for creating any application call transaction.
|
|
163
|
+
* @param options - Application no-op transaction parameters
|
|
438
164
|
*/
|
|
439
|
-
export declare function
|
|
440
|
-
appOnComplete: 'onComplete';
|
|
441
|
-
appAccounts: 'accounts';
|
|
442
|
-
appForeignApps: 'foreignApps';
|
|
443
|
-
appForeignAssets: 'foreignAssets';
|
|
444
|
-
reKeyTo: 'rekeyTo';
|
|
445
|
-
}>, 'from' | 'suggestedParams' | 'appIndex' | 'onComplete' | 'appArgs' | 'accounts' | 'foreignApps' | 'foreignAssets' | 'boxes' | 'note' | 'lease' | 'rekeyTo' | 'extraPages'> & Partial<Pick<RenameProperties<MustHaveSuggestedParams<AppCreateTxn>, {
|
|
446
|
-
appApprovalProgram: 'approvalProgram';
|
|
447
|
-
appClearProgram: 'clearProgram';
|
|
448
|
-
appLocalInts: 'numLocalInts';
|
|
449
|
-
appLocalByteSlices: 'numLocalByteSlices';
|
|
450
|
-
appGlobalInts: 'numGlobalInts';
|
|
451
|
-
appGlobalByteSlices: 'numGlobalByteSlices';
|
|
452
|
-
}>, 'approvalProgram' | 'clearProgram' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices'>>>): txnBuilder.Transaction;
|
|
165
|
+
export declare function makeApplicationNoOpTxnFromObject({ sender, appIndex, appArgs, accounts, foreignApps, foreignAssets, boxes, note, lease, rekeyTo, suggestedParams, }: Omit<ApplicationCallTransactionParams, 'onComplete' | 'numLocalInts' | 'numLocalByteSlices' | 'numGlobalInts' | 'numGlobalByteSlices' | 'extraPages' | 'approvalProgram' | 'clearProgram'> & CommonTransactionParams): Transaction;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Account from '../types/account';
|
|
1
|
+
import Account from '../types/account.js';
|
|
2
2
|
export declare const FAIL_TO_DECODE_MNEMONIC_ERROR_MSG = "failed to decode mnemonic";
|
|
3
3
|
export declare const NOT_IN_WORDS_LIST_ERROR_MSG = "the mnemonic contains a word that is not in the wordlist";
|
|
4
4
|
/**
|