algosdk 2.9.0 → 3.0.0-beta.2
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 +17 -12
- package/dist/cjs/client/urlTokenBaseHTTPClient.js.map +1 -1
- package/dist/cjs/client/v2/algod/accountApplicationInformation.js +12 -8
- package/dist/cjs/client/v2/algod/accountApplicationInformation.js.map +1 -1
- package/dist/cjs/client/v2/algod/accountAssetInformation.js +12 -8
- 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 +87 -85
- package/dist/cjs/client/v2/algod/algod.js.map +1 -1
- package/dist/cjs/client/v2/algod/block.js +7 -34
- 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 +11 -11
- package/dist/cjs/client/v2/algod/getApplicationBoxByName.js.map +1 -1
- package/dist/cjs/client/v2/algod/getApplicationBoxes.js +9 -9
- package/dist/cjs/client/v2/algod/getApplicationBoxes.js.map +1 -1
- package/dist/cjs/client/v2/algod/getApplicationByID.js +11 -6
- package/dist/cjs/client/v2/algod/getApplicationByID.js.map +1 -1
- package/dist/cjs/client/v2/algod/getAssetByID.js +11 -6
- package/dist/cjs/client/v2/algod/getAssetByID.js.map +1 -1
- package/dist/cjs/client/v2/algod/getBlockHash.js +11 -7
- 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 +11 -7
- package/dist/cjs/client/v2/algod/getBlockTxids.js.map +1 -1
- package/dist/cjs/client/v2/algod/getLedgerStateDelta.js +12 -7
- 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 +10 -10
- package/dist/cjs/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js.map +1 -1
- package/dist/cjs/client/v2/algod/getTransactionProof.js +11 -7
- 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 +11 -6
- 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 +14 -9
- package/dist/cjs/client/v2/algod/setBlockOffsetTimestamp.js.map +1 -1
- package/dist/cjs/client/v2/algod/setSyncRound.js +14 -9
- 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 +11 -6
- 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 +11 -8
- 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 +11 -11
- package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupApplicationLogs.js +11 -6
- package/dist/cjs/client/v2/indexer/lookupApplicationLogs.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupApplications.js +11 -6
- package/dist/cjs/client/v2/indexer/lookupApplications.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetBalances.js +11 -6
- package/dist/cjs/client/v2/indexer/lookupAssetBalances.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetByID.js +11 -6
- package/dist/cjs/client/v2/indexer/lookupAssetByID.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js +20 -13
- package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
- package/dist/cjs/client/v2/indexer/lookupBlock.js +11 -6
- 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 +9 -9
- 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 +7 -6
- 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 +17 -12
- package/dist/esm/client/urlTokenBaseHTTPClient.js.map +1 -1
- package/dist/esm/client/v2/algod/accountApplicationInformation.js +11 -7
- package/dist/esm/client/v2/algod/accountApplicationInformation.js.map +1 -1
- package/dist/esm/client/v2/algod/accountAssetInformation.js +11 -7
- 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 +73 -72
- package/dist/esm/client/v2/algod/algod.js.map +1 -1
- package/dist/esm/client/v2/algod/block.js +6 -10
- 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 +10 -10
- package/dist/esm/client/v2/algod/getApplicationBoxByName.js.map +1 -1
- package/dist/esm/client/v2/algod/getApplicationBoxes.js +8 -8
- package/dist/esm/client/v2/algod/getApplicationBoxes.js.map +1 -1
- package/dist/esm/client/v2/algod/getApplicationByID.js +10 -5
- package/dist/esm/client/v2/algod/getApplicationByID.js.map +1 -1
- package/dist/esm/client/v2/algod/getAssetByID.js +10 -5
- package/dist/esm/client/v2/algod/getAssetByID.js.map +1 -1
- package/dist/esm/client/v2/algod/getBlockHash.js +10 -6
- 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 +10 -6
- package/dist/esm/client/v2/algod/getBlockTxids.js.map +1 -1
- package/dist/esm/client/v2/algod/getLedgerStateDelta.js +11 -6
- 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 +9 -9
- package/dist/esm/client/v2/algod/getTransactionGroupLedgerStateDeltasForRound.js.map +1 -1
- package/dist/esm/client/v2/algod/getTransactionProof.js +10 -6
- 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 +10 -5
- 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 +13 -8
- package/dist/esm/client/v2/algod/setBlockOffsetTimestamp.js.map +1 -1
- package/dist/esm/client/v2/algod/setSyncRound.js +13 -8
- 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 +10 -5
- 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 +10 -7
- 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 +10 -10
- package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupApplicationLogs.js +10 -5
- package/dist/esm/client/v2/indexer/lookupApplicationLogs.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupApplications.js +10 -5
- package/dist/esm/client/v2/indexer/lookupApplications.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetBalances.js +10 -5
- package/dist/esm/client/v2/indexer/lookupAssetBalances.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetByID.js +10 -5
- package/dist/esm/client/v2/indexer/lookupAssetByID.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupAssetTransactions.js +18 -11
- package/dist/esm/client/v2/indexer/lookupAssetTransactions.js.map +1 -1
- package/dist/esm/client/v2/indexer/lookupBlock.js +10 -5
- 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 +8 -8
- 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 +7 -6
- 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 +7 -5
- package/dist/types/client/v2/algod/accountAssetInformation.d.ts +7 -5
- package/dist/types/client/v2/algod/accountInformation.d.ts +7 -5
- package/dist/types/client/v2/algod/algod.d.ts +66 -65
- package/dist/types/client/v2/algod/block.d.ts +6 -5
- 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 +7 -6
- 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 +7 -6
- 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 +39 -38
- package/dist/types/client/v2/indexer/lookupAccountAppLocalStates.d.ts +9 -7
- package/dist/types/client/v2/indexer/lookupAccountAssets.d.ts +9 -7
- package/dist/types/client/v2/indexer/lookupAccountByID.d.ts +8 -6
- package/dist/types/client/v2/indexer/lookupAccountCreatedApplications.d.ts +9 -7
- package/dist/types/client/v2/indexer/lookupAccountCreatedAssets.d.ts +9 -7
- package/dist/types/client/v2/indexer/lookupAccountTransactions.d.ts +17 -15
- package/dist/types/client/v2/indexer/lookupApplicationBoxByIDandName.d.ts +6 -7
- package/dist/types/client/v2/indexer/lookupApplicationLogs.d.ts +8 -7
- package/dist/types/client/v2/indexer/lookupApplications.d.ts +6 -5
- package/dist/types/client/v2/indexer/lookupAssetBalances.d.ts +8 -7
- package/dist/types/client/v2/indexer/lookupAssetByID.d.ts +6 -5
- package/dist/types/client/v2/indexer/lookupAssetTransactions.d.ts +17 -15
- 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 +12 -8
- package/dist/types/client/v2/indexer/searchForApplicationBoxes.d.ts +6 -7
- package/dist/types/client/v2/indexer/searchForApplications.d.ts +8 -4
- package/dist/types/client/v2/indexer/searchForAssets.d.ts +8 -4
- package/dist/types/client/v2/indexer/searchForTransactions.d.ts +18 -14
- 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 +19 -18
- 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 +26 -15
- package/src/client/v2/algod/accountApplicationInformation.ts +19 -10
- package/src/client/v2/algod/accountAssetInformation.ts +19 -10
- package/src/client/v2/algod/accountInformation.ts +16 -11
- package/src/client/v2/algod/algod.ts +99 -118
- package/src/client/v2/algod/block.ts +10 -14
- 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 +14 -20
- package/src/client/v2/algod/getApplicationBoxes.ts +12 -13
- package/src/client/v2/algod/getApplicationByID.ts +16 -8
- package/src/client/v2/algod/getAssetByID.ts +16 -8
- package/src/client/v2/algod/getBlockHash.ts +14 -10
- package/src/client/v2/algod/getBlockOffsetTimestamp.ts +7 -8
- package/src/client/v2/algod/getBlockTxids.ts +14 -10
- 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 +15 -10
- 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 +14 -7
- 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 +20 -10
- package/src/client/v2/algod/setSyncRound.ts +20 -10
- package/src/client/v2/algod/simulateTransaction.ts +22 -23
- package/src/client/v2/algod/stateproof.ts +14 -7
- package/src/client/v2/algod/status.ts +10 -2
- package/src/client/v2/algod/statusAfterBlock.ts +16 -9
- 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 +59 -67
- package/src/client/v2/indexer/lookupAccountAppLocalStates.ts +18 -13
- package/src/client/v2/indexer/lookupAccountAssets.ts +18 -13
- package/src/client/v2/indexer/lookupAccountByID.ts +17 -12
- package/src/client/v2/indexer/lookupAccountCreatedApplications.ts +18 -13
- package/src/client/v2/indexer/lookupAccountCreatedAssets.ts +18 -13
- package/src/client/v2/indexer/lookupAccountTransactions.ts +32 -25
- package/src/client/v2/indexer/lookupApplicationBoxByIDandName.ts +14 -20
- package/src/client/v2/indexer/lookupApplicationLogs.ts +17 -9
- package/src/client/v2/indexer/lookupApplications.ts +15 -7
- package/src/client/v2/indexer/lookupAssetBalances.ts +17 -9
- package/src/client/v2/indexer/lookupAssetByID.ts +15 -7
- package/src/client/v2/indexer/lookupAssetTransactions.ts +32 -21
- 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 +18 -9
- package/src/client/v2/indexer/searchForApplicationBoxes.ts +12 -13
- package/src/client/v2/indexer/searchForApplications.ts +14 -5
- package/src/client/v2/indexer/searchForAssets.ts +14 -5
- package/src/client/v2/indexer/searchForTransactions.ts +29 -18
- 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 +84 -61
- 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 +11 -9
- 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
|
@@ -1,19 +1,42 @@
|
|
|
1
|
-
import * as utils from '../utils/utils';
|
|
2
|
-
import { BaseHTTPClient, Query } from './baseHTTPClient';
|
|
3
|
-
import { TokenHeader } from './urlTokenBaseHTTPClient';
|
|
4
|
-
export
|
|
5
|
-
|
|
1
|
+
import * as utils from '../utils/utils.js';
|
|
2
|
+
import { BaseHTTPClient, Query } from './baseHTTPClient.js';
|
|
3
|
+
import { TokenHeader } from './urlTokenBaseHTTPClient.js';
|
|
4
|
+
export declare class HTTPClientResponse {
|
|
5
|
+
/**
|
|
6
|
+
* The raw response bytes
|
|
7
|
+
*/
|
|
8
|
+
body: Uint8Array;
|
|
9
|
+
/**
|
|
10
|
+
* If the expected response type is JSON, this is the response bytes converted to a string.
|
|
11
|
+
*/
|
|
6
12
|
text?: string;
|
|
13
|
+
format: 'application/msgpack' | 'application/json';
|
|
7
14
|
headers: Record<string, string>;
|
|
8
15
|
status: number;
|
|
9
16
|
ok: boolean;
|
|
17
|
+
constructor(options: {
|
|
18
|
+
body: Uint8Array;
|
|
19
|
+
text?: string;
|
|
20
|
+
format: 'application/msgpack' | 'application/json';
|
|
21
|
+
headers: Record<string, string>;
|
|
22
|
+
status: number;
|
|
23
|
+
ok: boolean;
|
|
24
|
+
});
|
|
25
|
+
/**
|
|
26
|
+
* Returns the response body as a string, ready to be parsed as JSON.
|
|
27
|
+
*/
|
|
28
|
+
getJSONText(): string;
|
|
29
|
+
/**
|
|
30
|
+
* Parses the response body as JSON with the given options.
|
|
31
|
+
*/
|
|
32
|
+
parseBodyAsJSON(jsonOptions: utils.ParseJSONOptions): any;
|
|
10
33
|
}
|
|
11
34
|
/**
|
|
12
35
|
* HTTPClient is a wrapper around a BaseHTTPClient
|
|
13
36
|
* It takes care of setting the proper "Accept" header and of
|
|
14
37
|
* decoding the JSON outputs.
|
|
15
38
|
*/
|
|
16
|
-
export
|
|
39
|
+
export declare class HTTPClient {
|
|
17
40
|
private bc;
|
|
18
41
|
/**
|
|
19
42
|
* Construct an HTTPClient from a BaseHTTPClient
|
|
@@ -25,15 +48,14 @@ export default class HTTPClient {
|
|
|
25
48
|
*/
|
|
26
49
|
constructor(tokenHeader: TokenHeader, baseServer: string, port?: string | number, defaultHeaders?: Record<string, string>);
|
|
27
50
|
/**
|
|
28
|
-
* Parse JSON using
|
|
29
|
-
* depending on whether jsonOptions are provided or not
|
|
51
|
+
* Parse JSON using utils.parseJSON
|
|
30
52
|
*
|
|
31
53
|
* @param text - JSON data
|
|
32
54
|
* @param status - Status of the response (used in case parseJSON fails)
|
|
33
55
|
* @param jsonOptions - Options object to use to decode JSON responses. See
|
|
34
56
|
* utils.parseJSON for the options available.
|
|
35
57
|
*/
|
|
36
|
-
static parseJSON(text: string, status: number, jsonOptions
|
|
58
|
+
static parseJSON(text: string, status: number, jsonOptions: utils.ParseJSONOptions): any;
|
|
37
59
|
/**
|
|
38
60
|
* Serialize the data according to the requestHeaders
|
|
39
61
|
* Assumes that requestHeaders contain a key "content-type"
|
|
@@ -58,26 +80,45 @@ export default class HTTPClient {
|
|
|
58
80
|
private static prepareResponseError;
|
|
59
81
|
/**
|
|
60
82
|
* Send a GET request.
|
|
61
|
-
*
|
|
62
|
-
* @param
|
|
63
|
-
* @param
|
|
64
|
-
* @param
|
|
65
|
-
*
|
|
66
|
-
* @param parseBody - An optional boolean indicating whether the response body should be parsed
|
|
83
|
+
*
|
|
84
|
+
* @param options - The options to use for the request.
|
|
85
|
+
* @param options.relativePath - The path of the request.
|
|
86
|
+
* @param options.query - An object containing the query parameters of the request.
|
|
87
|
+
* @param options.requestHeaders - An object containing additional request headers to use.
|
|
67
88
|
* or not.
|
|
89
|
+
* @param options.customOptions - An object containing additional options to pass to the
|
|
90
|
+
* underlying BaseHTTPClient instance.
|
|
68
91
|
* @returns Response object.
|
|
69
92
|
*/
|
|
70
|
-
get(relativePath
|
|
93
|
+
get({ relativePath, query, requestHeaders, customOptions, }: {
|
|
94
|
+
relativePath: string;
|
|
95
|
+
query?: Query<any>;
|
|
96
|
+
requestHeaders?: Record<string, string>;
|
|
97
|
+
customOptions?: Record<string, unknown>;
|
|
98
|
+
}): Promise<HTTPClientResponse>;
|
|
71
99
|
/**
|
|
72
100
|
* Send a POST request.
|
|
73
101
|
* If no content-type present, adds the header "content-type: application/json"
|
|
74
102
|
* and data is serialized in JSON (if not empty)
|
|
103
|
+
* @param options - The options to use for the request.
|
|
75
104
|
*/
|
|
76
|
-
post(relativePath
|
|
105
|
+
post({ relativePath, data, query, requestHeaders, customOptions, }: {
|
|
106
|
+
relativePath: string;
|
|
107
|
+
data: any;
|
|
108
|
+
query?: Query<any>;
|
|
109
|
+
requestHeaders?: Record<string, string>;
|
|
110
|
+
customOptions?: Record<string, unknown>;
|
|
111
|
+
}): Promise<HTTPClientResponse>;
|
|
77
112
|
/**
|
|
78
113
|
* Send a DELETE request.
|
|
79
114
|
* If no content-type present, adds the header "content-type: application/json"
|
|
80
115
|
* and data is serialized in JSON (if not empty)
|
|
116
|
+
* @param options - The options to use for the request.
|
|
81
117
|
*/
|
|
82
|
-
delete(relativePath
|
|
118
|
+
delete({ relativePath, data, requestHeaders, customOptions, }: {
|
|
119
|
+
relativePath: string;
|
|
120
|
+
data: any;
|
|
121
|
+
requestHeaders?: Record<string, string>;
|
|
122
|
+
customOptions?: Record<string, unknown>;
|
|
123
|
+
}): Promise<HTTPClientResponse>;
|
|
83
124
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export default class Kmd extends ServiceClient {
|
|
1
|
+
import { Transaction } from '../transaction.js';
|
|
2
|
+
import { CustomTokenHeader, KMDTokenHeader } from './urlTokenBaseHTTPClient.js';
|
|
3
|
+
import ServiceClient from './v2/serviceClient.js';
|
|
4
|
+
export declare class KmdClient extends ServiceClient {
|
|
6
5
|
constructor(token: string | KMDTokenHeader | CustomTokenHeader, baseServer?: string, port?: string | number, headers?: {});
|
|
6
|
+
private get;
|
|
7
|
+
private delete;
|
|
8
|
+
private post;
|
|
7
9
|
/**
|
|
8
10
|
* version returns a VersionResponse containing a list of kmd API versions supported by this running kmd instance.
|
|
9
11
|
*/
|
|
@@ -74,7 +76,7 @@ export default class Kmd extends ServiceClient {
|
|
|
74
76
|
* @param walletPassword
|
|
75
77
|
*/
|
|
76
78
|
exportMasterDerivationKey(walletHandle: string, walletPassword: string): Promise<{
|
|
77
|
-
master_derivation_key:
|
|
79
|
+
master_derivation_key: Uint8Array;
|
|
78
80
|
}>;
|
|
79
81
|
/**
|
|
80
82
|
* importKey accepts a wallet handle and an ed25519 private key, and imports
|
|
@@ -93,7 +95,7 @@ export default class Kmd extends ServiceClient {
|
|
|
93
95
|
* @param addr
|
|
94
96
|
*/
|
|
95
97
|
exportKey(walletHandle: string, walletPassword: string, addr: string): Promise<{
|
|
96
|
-
private_key:
|
|
98
|
+
private_key: Uint8Array;
|
|
97
99
|
}>;
|
|
98
100
|
/**
|
|
99
101
|
* generateKey accepts a wallet handle, and then generates the next key in the
|
|
@@ -129,7 +131,7 @@ export default class Kmd extends ServiceClient {
|
|
|
129
131
|
* @param walletPassword
|
|
130
132
|
* @param transaction
|
|
131
133
|
*/
|
|
132
|
-
signTransaction(walletHandle: string, walletPassword: string, transaction:
|
|
134
|
+
signTransaction(walletHandle: string, walletPassword: string, transaction: Transaction): Promise<Uint8Array>;
|
|
133
135
|
/**
|
|
134
136
|
* signTransactionWithSpecificPublicKey accepts a wallet handle, wallet password, a transaction, and a public key,
|
|
135
137
|
* and returns and SignTransactionResponse containing an encoded, signed
|
|
@@ -140,7 +142,7 @@ export default class Kmd extends ServiceClient {
|
|
|
140
142
|
* @param transaction
|
|
141
143
|
* @param publicKey - sign the txn with the key corresponding to publicKey (used for working with a rekeyed addr)
|
|
142
144
|
*/
|
|
143
|
-
signTransactionWithSpecificPublicKey(walletHandle: string, walletPassword: string, transaction:
|
|
145
|
+
signTransactionWithSpecificPublicKey(walletHandle: string, walletPassword: string, transaction: Transaction, publicKey: Uint8Array | string): Promise<Uint8Array>;
|
|
144
146
|
/**
|
|
145
147
|
* listMultisig accepts a wallet handle and returns a ListMultisigResponse
|
|
146
148
|
* containing the multisig addresses whose preimages are stored in this wallet.
|
|
@@ -184,7 +186,7 @@ export default class Kmd extends ServiceClient {
|
|
|
184
186
|
* @param pk
|
|
185
187
|
* @param partial
|
|
186
188
|
*/
|
|
187
|
-
signMultisigTransaction(walletHandle: string, pw: string, transaction:
|
|
189
|
+
signMultisigTransaction(walletHandle: string, pw: string, transaction: Transaction, pk: Uint8Array | string, partial: string): Promise<any>;
|
|
188
190
|
/**
|
|
189
191
|
* deleteMultisig accepts a wallet handle, wallet password, and multisig
|
|
190
192
|
* address, and deletes the information about this multisig address from the
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BaseHTTPClient, BaseHTTPClientResponse, Query } from './baseHTTPClient';
|
|
1
|
+
import { BaseHTTPClient, BaseHTTPClientResponse, Query } from './baseHTTPClient.js';
|
|
2
2
|
export interface AlgodTokenHeader {
|
|
3
3
|
'X-Algo-API-Token': string;
|
|
4
4
|
}
|
|
@@ -11,11 +11,14 @@ export interface KMDTokenHeader {
|
|
|
11
11
|
export interface CustomTokenHeader {
|
|
12
12
|
[headerName: string]: string;
|
|
13
13
|
}
|
|
14
|
-
export
|
|
14
|
+
export type TokenHeader = AlgodTokenHeader | IndexerTokenHeader | KMDTokenHeader | CustomTokenHeader;
|
|
15
15
|
/**
|
|
16
16
|
* Implementation of BaseHTTPClient that uses a URL and a token
|
|
17
17
|
* and make the REST queries using fetch.
|
|
18
18
|
* This is the default implementation of BaseHTTPClient.
|
|
19
|
+
*
|
|
20
|
+
* Additional fetch options can be configured by using the `customOptions` parameter on
|
|
21
|
+
* get/post/delete requests.
|
|
19
22
|
*/
|
|
20
23
|
export declare class URLTokenBaseHTTPClient implements BaseHTTPClient {
|
|
21
24
|
private defaultHeaders;
|
|
@@ -34,7 +37,7 @@ export declare class URLTokenBaseHTTPClient implements BaseHTTPClient {
|
|
|
34
37
|
private static formatFetchResponseHeaders;
|
|
35
38
|
private static checkHttpError;
|
|
36
39
|
private static formatFetchResponse;
|
|
37
|
-
get(relativePath: string, query?: Query<string>, requestHeaders?: Record<string, string>): Promise<BaseHTTPClientResponse>;
|
|
38
|
-
post(relativePath: string, data: Uint8Array, query?: Query<string>, requestHeaders?: Record<string, string>): Promise<BaseHTTPClientResponse>;
|
|
39
|
-
delete(relativePath: string, data
|
|
40
|
+
get(relativePath: string, query?: Query<string>, requestHeaders?: Record<string, string>, customOptions?: Record<string, unknown>): Promise<BaseHTTPClientResponse>;
|
|
41
|
+
post(relativePath: string, data: Uint8Array, query?: Query<string>, requestHeaders?: Record<string, string>, customOptions?: Record<string, unknown>): Promise<BaseHTTPClientResponse>;
|
|
42
|
+
delete(relativePath: string, data?: Uint8Array, query?: Query<string>, requestHeaders?: Record<string, string>, customOptions?: Record<string, unknown>): Promise<BaseHTTPClientResponse>;
|
|
40
43
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import JSONRequest from '../jsonrequest';
|
|
2
|
-
import HTTPClient from '../../client';
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import JSONRequest from '../jsonrequest.js';
|
|
2
|
+
import { HTTPClient, HTTPClientResponse } from '../../client.js';
|
|
3
|
+
import { AccountApplicationResponse } from './models/types.js';
|
|
4
|
+
import { Address } from '../../../encoding/address.js';
|
|
5
|
+
export default class AccountApplicationInformation extends JSONRequest<AccountApplicationResponse> {
|
|
5
6
|
private account;
|
|
6
7
|
private applicationID;
|
|
7
|
-
constructor(c: HTTPClient,
|
|
8
|
+
constructor(c: HTTPClient, account: string | Address, applicationID: number | bigint);
|
|
8
9
|
path(): string;
|
|
10
|
+
prepare(response: HTTPClientResponse): AccountApplicationResponse;
|
|
9
11
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import JSONRequest from '../jsonrequest';
|
|
2
|
-
import HTTPClient from '../../client';
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import JSONRequest from '../jsonrequest.js';
|
|
2
|
+
import { HTTPClient, HTTPClientResponse } from '../../client.js';
|
|
3
|
+
import { AccountAssetResponse } from './models/types.js';
|
|
4
|
+
import { Address } from '../../../encoding/address.js';
|
|
5
|
+
export default class AccountAssetInformation extends JSONRequest<AccountAssetResponse> {
|
|
5
6
|
private account;
|
|
6
7
|
private assetID;
|
|
7
|
-
constructor(c: HTTPClient,
|
|
8
|
+
constructor(c: HTTPClient, account: string | Address, assetID: number | bigint);
|
|
8
9
|
path(): string;
|
|
10
|
+
prepare(response: HTTPClientResponse): AccountAssetResponse;
|
|
9
11
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import JSONRequest from '../jsonrequest';
|
|
2
|
-
import HTTPClient from '../../client';
|
|
3
|
-
import
|
|
4
|
-
|
|
1
|
+
import JSONRequest from '../jsonrequest.js';
|
|
2
|
+
import { HTTPClient, HTTPClientResponse } from '../../client.js';
|
|
3
|
+
import { Account } from './models/types.js';
|
|
4
|
+
import { Address } from '../../../encoding/address.js';
|
|
5
|
+
export default class AccountInformation extends JSONRequest<Account> {
|
|
5
6
|
private account;
|
|
6
|
-
constructor(c: HTTPClient,
|
|
7
|
+
constructor(c: HTTPClient, account: string | Address);
|
|
7
8
|
path(): string;
|
|
8
9
|
/**
|
|
9
10
|
* Exclude assets and application data from results
|
|
@@ -20,4 +21,5 @@ export default class AccountInformation extends JSONRequest {
|
|
|
20
21
|
* @category query
|
|
21
22
|
*/
|
|
22
23
|
exclude(exclude: string): this;
|
|
24
|
+
prepare(response: HTTPClientResponse): Account;
|
|
23
25
|
}
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
import ServiceClient from '../serviceClient';
|
|
2
|
-
import * as modelsv2 from './models/types';
|
|
3
|
-
import AccountInformation from './accountInformation';
|
|
4
|
-
import AccountAssetInformation from './accountAssetInformation';
|
|
5
|
-
import AccountApplicationInformation from './accountApplicationInformation';
|
|
6
|
-
import Block from './block';
|
|
7
|
-
import Compile from './compile';
|
|
8
|
-
import Dryrun from './dryrun';
|
|
9
|
-
import Genesis from './genesis';
|
|
10
|
-
import GetAssetByID from './getAssetByID';
|
|
11
|
-
import GetApplicationByID from './getApplicationByID';
|
|
12
|
-
import GetBlockHash from './getBlockHash';
|
|
13
|
-
import GetBlockTxids from './getBlockTxids';
|
|
14
|
-
import GetApplicationBoxByName from './getApplicationBoxByName';
|
|
15
|
-
import GetApplicationBoxes from './getApplicationBoxes';
|
|
16
|
-
import HealthCheck from './healthCheck';
|
|
17
|
-
import PendingTransactionInformation from './pendingTransactionInformation';
|
|
18
|
-
import PendingTransactions from './pendingTransactions';
|
|
19
|
-
import PendingTransactionsByAddress from './pendingTransactionsByAddress';
|
|
20
|
-
import GetTransactionProof from './getTransactionProof';
|
|
21
|
-
import SendRawTransaction from './sendRawTransaction';
|
|
22
|
-
import Status from './status';
|
|
23
|
-
import StatusAfterBlock from './statusAfterBlock';
|
|
24
|
-
import SuggestedParams from './suggestedParams';
|
|
25
|
-
import Supply from './supply';
|
|
26
|
-
import Versions from './versions';
|
|
27
|
-
import { BaseHTTPClient } from '../../baseHTTPClient';
|
|
28
|
-
import { AlgodTokenHeader, CustomTokenHeader } from '../../urlTokenBaseHTTPClient';
|
|
29
|
-
import LightBlockHeaderProof from './lightBlockHeaderProof';
|
|
30
|
-
import StateProof from './stateproof';
|
|
31
|
-
import SetSyncRound from './setSyncRound';
|
|
32
|
-
import GetSyncRound from './getSyncRound';
|
|
33
|
-
import SetBlockOffsetTimestamp from './setBlockOffsetTimestamp';
|
|
34
|
-
import GetBlockOffsetTimestamp from './getBlockOffsetTimestamp';
|
|
35
|
-
import Disassemble from './disassemble';
|
|
36
|
-
import SimulateRawTransactions from './simulateTransaction';
|
|
37
|
-
import Ready from './ready';
|
|
38
|
-
import UnsetSyncRound from './unsetSyncRound';
|
|
39
|
-
import GetLedgerStateDeltaForTransactionGroup from './getLedgerStateDeltaForTransactionGroup';
|
|
40
|
-
import GetLedgerStateDelta from './getLedgerStateDelta';
|
|
41
|
-
import GetTransactionGroupLedgerStateDeltasForRound from './getTransactionGroupLedgerStateDeltasForRound';
|
|
1
|
+
import ServiceClient from '../serviceClient.js';
|
|
2
|
+
import * as modelsv2 from './models/types.js';
|
|
3
|
+
import AccountInformation from './accountInformation.js';
|
|
4
|
+
import AccountAssetInformation from './accountAssetInformation.js';
|
|
5
|
+
import AccountApplicationInformation from './accountApplicationInformation.js';
|
|
6
|
+
import Block from './block.js';
|
|
7
|
+
import Compile from './compile.js';
|
|
8
|
+
import Dryrun from './dryrun.js';
|
|
9
|
+
import Genesis from './genesis.js';
|
|
10
|
+
import GetAssetByID from './getAssetByID.js';
|
|
11
|
+
import GetApplicationByID from './getApplicationByID.js';
|
|
12
|
+
import GetBlockHash from './getBlockHash.js';
|
|
13
|
+
import GetBlockTxids from './getBlockTxids.js';
|
|
14
|
+
import GetApplicationBoxByName from './getApplicationBoxByName.js';
|
|
15
|
+
import GetApplicationBoxes from './getApplicationBoxes.js';
|
|
16
|
+
import HealthCheck from './healthCheck.js';
|
|
17
|
+
import PendingTransactionInformation from './pendingTransactionInformation.js';
|
|
18
|
+
import PendingTransactions from './pendingTransactions.js';
|
|
19
|
+
import PendingTransactionsByAddress from './pendingTransactionsByAddress.js';
|
|
20
|
+
import GetTransactionProof from './getTransactionProof.js';
|
|
21
|
+
import SendRawTransaction from './sendRawTransaction.js';
|
|
22
|
+
import Status from './status.js';
|
|
23
|
+
import StatusAfterBlock from './statusAfterBlock.js';
|
|
24
|
+
import SuggestedParams from './suggestedParams.js';
|
|
25
|
+
import Supply from './supply.js';
|
|
26
|
+
import Versions from './versions.js';
|
|
27
|
+
import { BaseHTTPClient } from '../../baseHTTPClient.js';
|
|
28
|
+
import { AlgodTokenHeader, CustomTokenHeader } from '../../urlTokenBaseHTTPClient.js';
|
|
29
|
+
import LightBlockHeaderProof from './lightBlockHeaderProof.js';
|
|
30
|
+
import StateProof from './stateproof.js';
|
|
31
|
+
import SetSyncRound from './setSyncRound.js';
|
|
32
|
+
import GetSyncRound from './getSyncRound.js';
|
|
33
|
+
import SetBlockOffsetTimestamp from './setBlockOffsetTimestamp.js';
|
|
34
|
+
import GetBlockOffsetTimestamp from './getBlockOffsetTimestamp.js';
|
|
35
|
+
import Disassemble from './disassemble.js';
|
|
36
|
+
import SimulateRawTransactions from './simulateTransaction.js';
|
|
37
|
+
import Ready from './ready.js';
|
|
38
|
+
import UnsetSyncRound from './unsetSyncRound.js';
|
|
39
|
+
import GetLedgerStateDeltaForTransactionGroup from './getLedgerStateDeltaForTransactionGroup.js';
|
|
40
|
+
import GetLedgerStateDelta from './getLedgerStateDelta.js';
|
|
41
|
+
import GetTransactionGroupLedgerStateDeltasForRound from './getTransactionGroupLedgerStateDeltasForRound.js';
|
|
42
|
+
import { Address } from '../../../encoding/address.js';
|
|
42
43
|
/**
|
|
43
44
|
* Algod client connects an application to the Algorand blockchain. The algod client requires a valid algod REST endpoint IP address and algod token from an Algorand node that is connected to the network you plan to interact with.
|
|
44
45
|
*
|
|
@@ -49,7 +50,7 @@ import GetTransactionGroupLedgerStateDeltasForRound from './getTransactionGroupL
|
|
|
49
50
|
*
|
|
50
51
|
* [Run Algod in Postman OAS3](https://developer.algorand.org/docs/rest-apis/restendpoints/?from_query=algod#algod-indexer-and-kmd-rest-endpoints)
|
|
51
52
|
*/
|
|
52
|
-
export
|
|
53
|
+
export declare class AlgodClient extends ServiceClient {
|
|
53
54
|
/**
|
|
54
55
|
* Create an AlgodClient from
|
|
55
56
|
* * either a token, baseServer, port, and optional headers
|
|
@@ -77,7 +78,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
77
78
|
*
|
|
78
79
|
* #### Example
|
|
79
80
|
* ```typescript
|
|
80
|
-
*
|
|
81
|
+
* await algodClient.healthCheck().do();
|
|
81
82
|
* ```
|
|
82
83
|
*
|
|
83
84
|
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/#get-health)
|
|
@@ -101,7 +102,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
101
102
|
*
|
|
102
103
|
* #### Example
|
|
103
104
|
* ```typescript
|
|
104
|
-
* const {
|
|
105
|
+
* const { txid } = await algodClient.sendRawTransaction(signedTxns).do();
|
|
105
106
|
* const result = await waitForConfirmation(algodClient, txid, 3);
|
|
106
107
|
* ```
|
|
107
108
|
*
|
|
@@ -126,7 +127,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
126
127
|
* @param account - The address of the account to look up.
|
|
127
128
|
* @category GET
|
|
128
129
|
*/
|
|
129
|
-
accountInformation(account: string): AccountInformation;
|
|
130
|
+
accountInformation(account: string | Address): AccountInformation;
|
|
130
131
|
/**
|
|
131
132
|
* Returns the given account's asset information for a specific asset.
|
|
132
133
|
*
|
|
@@ -142,7 +143,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
142
143
|
* @param index - The asset ID to look up.
|
|
143
144
|
* @category GET
|
|
144
145
|
*/
|
|
145
|
-
accountAssetInformation(account: string, index: number): AccountAssetInformation;
|
|
146
|
+
accountAssetInformation(account: string | Address, index: number | bigint): AccountAssetInformation;
|
|
146
147
|
/**
|
|
147
148
|
* Returns the given account's application information for a specific application.
|
|
148
149
|
*
|
|
@@ -158,7 +159,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
158
159
|
* @param index - The application ID to look up.
|
|
159
160
|
* @category GET
|
|
160
161
|
*/
|
|
161
|
-
accountApplicationInformation(account: string, index: number): AccountApplicationInformation;
|
|
162
|
+
accountApplicationInformation(account: string | Address, index: number | bigint): AccountApplicationInformation;
|
|
162
163
|
/**
|
|
163
164
|
* Gets the block info for the given round.
|
|
164
165
|
*
|
|
@@ -172,7 +173,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
172
173
|
* @param roundNumber - The round number of the block to get.
|
|
173
174
|
* @category GET
|
|
174
175
|
*/
|
|
175
|
-
block(roundNumber: number): Block;
|
|
176
|
+
block(roundNumber: number | bigint): Block;
|
|
176
177
|
/**
|
|
177
178
|
* Get the block hash for the block on the given round.
|
|
178
179
|
*
|
|
@@ -186,7 +187,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
186
187
|
* @param roundNumber - The round number of the block to get.
|
|
187
188
|
* @category GET
|
|
188
189
|
*/
|
|
189
|
-
getBlockHash(roundNumber: number): GetBlockHash;
|
|
190
|
+
getBlockHash(roundNumber: number | bigint): GetBlockHash;
|
|
190
191
|
/**
|
|
191
192
|
* Get the top level transaction IDs for the block on the given round.
|
|
192
193
|
*
|
|
@@ -200,7 +201,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
200
201
|
* @param roundNumber - The round number of the block to get.
|
|
201
202
|
* @category GET
|
|
202
203
|
*/
|
|
203
|
-
getBlockTxids(roundNumber: number): GetBlockTxids;
|
|
204
|
+
getBlockTxids(roundNumber: number | bigint): GetBlockTxids;
|
|
204
205
|
/**
|
|
205
206
|
* Returns the transaction information for a specific pending transaction.
|
|
206
207
|
*
|
|
@@ -271,7 +272,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
271
272
|
* @param address - The address of the sender.
|
|
272
273
|
* @category GET
|
|
273
274
|
*/
|
|
274
|
-
pendingTransactionByAddress(address: string): PendingTransactionsByAddress;
|
|
275
|
+
pendingTransactionByAddress(address: string | Address): PendingTransactionsByAddress;
|
|
275
276
|
/**
|
|
276
277
|
* Retrieves the StatusResponse from the running node.
|
|
277
278
|
*
|
|
@@ -297,7 +298,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
297
298
|
* @param round - The number of the round to wait for.
|
|
298
299
|
* @category GET
|
|
299
300
|
*/
|
|
300
|
-
statusAfterBlock(round: number): StatusAfterBlock;
|
|
301
|
+
statusAfterBlock(round: number | bigint): StatusAfterBlock;
|
|
301
302
|
/**
|
|
302
303
|
* Returns the common needed parameters for a new transaction.
|
|
303
304
|
*
|
|
@@ -306,8 +307,8 @@ export default class AlgodClient extends ServiceClient {
|
|
|
306
307
|
* const suggestedParams = await algodClient.getTransactionParams().do();
|
|
307
308
|
* const amountInMicroAlgos = algosdk.algosToMicroalgos(2); // 2 Algos
|
|
308
309
|
* const unsignedTxn = algosdk.makePaymentTxnWithSuggestedParamsFromObject({
|
|
309
|
-
*
|
|
310
|
-
*
|
|
310
|
+
* sender: senderAddress,
|
|
311
|
+
* receiver: receiverAddress,
|
|
311
312
|
* amount: amountInMicroAlgos,
|
|
312
313
|
* suggestedParams: suggestedParams,
|
|
313
314
|
* });
|
|
@@ -391,7 +392,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
391
392
|
* @param index - The asset ID to look up.
|
|
392
393
|
* @category GET
|
|
393
394
|
*/
|
|
394
|
-
getAssetByID(index: number): GetAssetByID;
|
|
395
|
+
getAssetByID(index: number | bigint): GetAssetByID;
|
|
395
396
|
/**
|
|
396
397
|
* Given an application ID, return the application information including creator, approval
|
|
397
398
|
* and clear programs, global and local schemas, and global state.
|
|
@@ -406,7 +407,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
406
407
|
* @param index - The application ID to look up.
|
|
407
408
|
* @category GET
|
|
408
409
|
*/
|
|
409
|
-
getApplicationByID(index: number): GetApplicationByID;
|
|
410
|
+
getApplicationByID(index: number | bigint): GetApplicationByID;
|
|
410
411
|
/**
|
|
411
412
|
* Given an application ID and the box name (key), return the value stored in the box.
|
|
412
413
|
*
|
|
@@ -422,7 +423,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
422
423
|
* @param index - The application ID to look up.
|
|
423
424
|
* @category GET
|
|
424
425
|
*/
|
|
425
|
-
getApplicationBoxByName(index: number, boxName: Uint8Array): GetApplicationBoxByName;
|
|
426
|
+
getApplicationBoxByName(index: number | bigint, boxName: Uint8Array): GetApplicationBoxByName;
|
|
426
427
|
/**
|
|
427
428
|
* Given an application ID, return all the box names associated with the app.
|
|
428
429
|
*
|
|
@@ -437,7 +438,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
437
438
|
* @param index - The application ID to look up.
|
|
438
439
|
* @category GET
|
|
439
440
|
*/
|
|
440
|
-
getApplicationBoxes(index: number): GetApplicationBoxes;
|
|
441
|
+
getApplicationBoxes(index: number | bigint): GetApplicationBoxes;
|
|
441
442
|
/**
|
|
442
443
|
* Returns the entire genesis file.
|
|
443
444
|
*
|
|
@@ -465,7 +466,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
465
466
|
* @param txID - The transaction ID for which to generate a proof.
|
|
466
467
|
* @category GET
|
|
467
468
|
*/
|
|
468
|
-
getTransactionProof(round: number, txID: string): GetTransactionProof;
|
|
469
|
+
getTransactionProof(round: number | bigint, txID: string): GetTransactionProof;
|
|
469
470
|
/**
|
|
470
471
|
* Gets a proof for a given light block header inside a state proof commitment.
|
|
471
472
|
*
|
|
@@ -478,7 +479,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
478
479
|
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/v2#get-v2blocksroundlightheaderproof)
|
|
479
480
|
* @param round
|
|
480
481
|
*/
|
|
481
|
-
getLightBlockHeaderProof(round: number): LightBlockHeaderProof;
|
|
482
|
+
getLightBlockHeaderProof(round: number | bigint): LightBlockHeaderProof;
|
|
482
483
|
/**
|
|
483
484
|
* Gets a state proof that covers a given round.
|
|
484
485
|
*
|
|
@@ -491,7 +492,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
491
492
|
* [Response data schema details](https://developer.algorand.org/docs/rest-apis/algod/v2#get-v2stateproofsround)
|
|
492
493
|
* @param round
|
|
493
494
|
*/
|
|
494
|
-
getStateProof(round: number): StateProof;
|
|
495
|
+
getStateProof(round: number | bigint): StateProof;
|
|
495
496
|
/**
|
|
496
497
|
* Simulate a list of a signed transaction objects being sent to the network.
|
|
497
498
|
*
|
|
@@ -557,7 +558,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
557
558
|
* @param offset
|
|
558
559
|
* @category POST
|
|
559
560
|
*/
|
|
560
|
-
setBlockOffsetTimestamp(offset: number): SetBlockOffsetTimestamp;
|
|
561
|
+
setBlockOffsetTimestamp(offset: number | bigint): SetBlockOffsetTimestamp;
|
|
561
562
|
/**
|
|
562
563
|
* Get the offset (in seconds) applied to the block timestamp when creating new blocks in devmode.
|
|
563
564
|
*
|
|
@@ -583,7 +584,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
583
584
|
* @param round
|
|
584
585
|
* @category POST
|
|
585
586
|
*/
|
|
586
|
-
setSyncRound(round: number): SetSyncRound;
|
|
587
|
+
setSyncRound(round: number | bigint): SetSyncRound;
|
|
587
588
|
/**
|
|
588
589
|
* Un-Set the sync round on the ledger (algod must have EnableFollowMode: true), removing the restriction on catchup.
|
|
589
590
|
*
|
|
@@ -647,7 +648,7 @@ export default class AlgodClient extends ServiceClient {
|
|
|
647
648
|
* @param round the round number to be searched for
|
|
648
649
|
* @category GET
|
|
649
650
|
*/
|
|
650
|
-
getLedgerStateDelta(round: bigint): GetLedgerStateDelta;
|
|
651
|
+
getLedgerStateDelta(round: number | bigint): GetLedgerStateDelta;
|
|
651
652
|
/**
|
|
652
653
|
* GetTransactionGroupLedgerStateDeltasForRound returns all ledger deltas for txn groups in the provided round
|
|
653
654
|
*
|
|
@@ -661,5 +662,5 @@ export default class AlgodClient extends ServiceClient {
|
|
|
661
662
|
* @param round the round number to be searched for
|
|
662
663
|
* @category GET
|
|
663
664
|
*/
|
|
664
|
-
getTransactionGroupLedgerStateDeltasForRound(round: bigint): GetTransactionGroupLedgerStateDeltasForRound;
|
|
665
|
+
getTransactionGroupLedgerStateDeltasForRound(round: number | bigint): GetTransactionGroupLedgerStateDeltasForRound;
|
|
665
666
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import JSONRequest from '../jsonrequest';
|
|
2
|
-
import HTTPClient from '../../client';
|
|
1
|
+
import JSONRequest from '../jsonrequest.js';
|
|
2
|
+
import { HTTPClient, HTTPClientResponse } from '../../client.js';
|
|
3
|
+
import { BlockResponse } from './models/types.js';
|
|
3
4
|
/**
|
|
4
5
|
* block gets the block info for the given round. this call may block
|
|
5
6
|
*/
|
|
6
|
-
export default class Block extends JSONRequest {
|
|
7
|
+
export default class Block extends JSONRequest<BlockResponse> {
|
|
7
8
|
private round;
|
|
8
|
-
constructor(c: HTTPClient, roundNumber: number);
|
|
9
|
+
constructor(c: HTTPClient, roundNumber: number | bigint);
|
|
9
10
|
path(): string;
|
|
10
|
-
prepare(
|
|
11
|
+
prepare(response: HTTPClientResponse): BlockResponse;
|
|
11
12
|
}
|
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { HTTPClient, HTTPClientResponse } from '../../client.js';
|
|
2
|
+
import { CompileResponse } from './models/types.js';
|
|
3
|
+
import JSONRequest from '../jsonrequest.js';
|
|
3
4
|
/**
|
|
4
5
|
* Sets the default header (if not previously set)
|
|
5
6
|
* @param headers - A headers object
|
|
6
7
|
*/
|
|
7
|
-
export declare function setHeaders(headers?:
|
|
8
|
+
export declare function setHeaders(headers?: Record<string, any>): Record<string, any>;
|
|
8
9
|
/**
|
|
9
10
|
* Executes compile
|
|
10
11
|
*/
|
|
11
|
-
export default class Compile extends JSONRequest {
|
|
12
|
+
export default class Compile extends JSONRequest<CompileResponse> {
|
|
12
13
|
private source;
|
|
13
14
|
constructor(c: HTTPClient, source: string | Uint8Array);
|
|
14
15
|
path(): string;
|
|
15
16
|
sourcemap(map?: boolean): this;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* @param headers - A headers object
|
|
19
|
-
*/
|
|
20
|
-
do(headers?: {}): Promise<any>;
|
|
17
|
+
protected executeRequest(headers?: Record<string, string>, customOptions?: Record<string, unknown>): Promise<HTTPClientResponse>;
|
|
18
|
+
prepare(response: HTTPClientResponse): CompileResponse;
|
|
21
19
|
}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { HTTPClient, HTTPClientResponse } from '../../client.js';
|
|
2
|
+
import { DisassembleResponse } from './models/types.js';
|
|
3
|
+
import JSONRequest from '../jsonrequest.js';
|
|
3
4
|
/**
|
|
4
5
|
* Sets the default header (if not previously set)
|
|
5
6
|
* @param headers - A headers object
|
|
6
7
|
*/
|
|
7
|
-
export declare function setHeaders(headers?:
|
|
8
|
+
export declare function setHeaders(headers?: Record<string, any>): Record<string, any>;
|
|
8
9
|
/**
|
|
9
10
|
* Executes disassemble
|
|
10
11
|
*/
|
|
11
|
-
export default class Disassemble extends JSONRequest {
|
|
12
|
+
export default class Disassemble extends JSONRequest<DisassembleResponse> {
|
|
12
13
|
private source;
|
|
13
14
|
constructor(c: HTTPClient, source: string | Uint8Array);
|
|
14
15
|
path(): string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
* @param headers - A headers object
|
|
18
|
-
*/
|
|
19
|
-
do(headers?: {}): Promise<any>;
|
|
16
|
+
protected executeRequest(headers?: Record<string, string>, customOptions?: Record<string, unknown>): Promise<HTTPClientResponse>;
|
|
17
|
+
prepare(response: HTTPClientResponse): DisassembleResponse;
|
|
20
18
|
}
|