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
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTICE: This file was generated. Editing this file manually is not recommended.
|
|
3
3
|
*/
|
|
4
|
-
import
|
|
4
|
+
import { Encodable, Schema } from '../../../../encoding/encoding.js';
|
|
5
|
+
import { Address } from '../../../../encoding/address.js';
|
|
6
|
+
import { UntypedValue } from '../../untypedmodel.js';
|
|
5
7
|
/**
|
|
6
8
|
* Account information at a given round.
|
|
7
9
|
* Definition:
|
|
8
10
|
* data/basics/userBalance.go : AccountData
|
|
9
11
|
*/
|
|
10
|
-
export declare class Account
|
|
12
|
+
export declare class Account implements Encodable {
|
|
13
|
+
private static encodingSchemaValue;
|
|
14
|
+
static get encodingSchema(): Schema;
|
|
11
15
|
/**
|
|
12
16
|
* the account public key
|
|
13
17
|
*/
|
|
@@ -15,28 +19,28 @@ export declare class Account extends BaseModel {
|
|
|
15
19
|
/**
|
|
16
20
|
* total number of MicroAlgos in the account
|
|
17
21
|
*/
|
|
18
|
-
amount:
|
|
22
|
+
amount: bigint;
|
|
19
23
|
/**
|
|
20
24
|
* specifies the amount of MicroAlgos in the account, without the pending rewards.
|
|
21
25
|
*/
|
|
22
|
-
amountWithoutPendingRewards:
|
|
26
|
+
amountWithoutPendingRewards: bigint;
|
|
23
27
|
/**
|
|
24
28
|
* MicroAlgo balance required by the account.
|
|
25
29
|
* The requirement grows based on asset and application usage.
|
|
26
30
|
*/
|
|
27
|
-
minBalance: number
|
|
31
|
+
minBalance: number;
|
|
28
32
|
/**
|
|
29
33
|
* amount of MicroAlgos of pending rewards in this account.
|
|
30
34
|
*/
|
|
31
|
-
pendingRewards:
|
|
35
|
+
pendingRewards: bigint;
|
|
32
36
|
/**
|
|
33
37
|
* total rewards of MicroAlgos the account has received, including pending rewards.
|
|
34
38
|
*/
|
|
35
|
-
rewards:
|
|
39
|
+
rewards: bigint;
|
|
36
40
|
/**
|
|
37
41
|
* The round for which this information is relevant.
|
|
38
42
|
*/
|
|
39
|
-
round:
|
|
43
|
+
round: bigint;
|
|
40
44
|
/**
|
|
41
45
|
* voting status of the account's MicroAlgos
|
|
42
46
|
* * Offline - indicates that the associated account is delegated.
|
|
@@ -50,30 +54,30 @@ export declare class Account extends BaseModel {
|
|
|
50
54
|
* The count of all applications that have been opted in, equivalent to the count
|
|
51
55
|
* of application local data (AppLocalState objects) stored in this account.
|
|
52
56
|
*/
|
|
53
|
-
totalAppsOptedIn: number
|
|
57
|
+
totalAppsOptedIn: number;
|
|
54
58
|
/**
|
|
55
59
|
* The count of all assets that have been opted in, equivalent to the count of
|
|
56
60
|
* AssetHolding objects held by this account.
|
|
57
61
|
*/
|
|
58
|
-
totalAssetsOptedIn: number
|
|
62
|
+
totalAssetsOptedIn: number;
|
|
59
63
|
/**
|
|
60
64
|
* For app-accounts only. The total number of bytes allocated for the keys and
|
|
61
65
|
* values of boxes which belong to the associated application.
|
|
62
66
|
*/
|
|
63
|
-
totalBoxBytes: number
|
|
67
|
+
totalBoxBytes: number;
|
|
64
68
|
/**
|
|
65
69
|
* For app-accounts only. The total number of boxes which belong to the associated
|
|
66
70
|
* application.
|
|
67
71
|
*/
|
|
68
|
-
totalBoxes: number
|
|
72
|
+
totalBoxes: number;
|
|
69
73
|
/**
|
|
70
74
|
* The count of all apps (AppParams objects) created by this account.
|
|
71
75
|
*/
|
|
72
|
-
totalCreatedApps: number
|
|
76
|
+
totalCreatedApps: number;
|
|
73
77
|
/**
|
|
74
78
|
* The count of all assets (AssetParams objects) created by this account.
|
|
75
79
|
*/
|
|
76
|
-
totalCreatedAssets: number
|
|
80
|
+
totalCreatedAssets: number;
|
|
77
81
|
/**
|
|
78
82
|
* application local data stored in this account.
|
|
79
83
|
* Note the raw object uses `map[int] -> AppLocalState` for this type.
|
|
@@ -82,7 +86,7 @@ export declare class Account extends BaseModel {
|
|
|
82
86
|
/**
|
|
83
87
|
* the sum of all extra application program pages for this account.
|
|
84
88
|
*/
|
|
85
|
-
appsTotalExtraPages?: number
|
|
89
|
+
appsTotalExtraPages?: number;
|
|
86
90
|
/**
|
|
87
91
|
* the sum of all of the local schemas and global schemas in this account.
|
|
88
92
|
* Note: the raw account uses `StateSchema` for this type.
|
|
@@ -98,11 +102,11 @@ export declare class Account extends BaseModel {
|
|
|
98
102
|
* the current account is used. This field can be updated in any transaction by
|
|
99
103
|
* setting the RekeyTo field.
|
|
100
104
|
*/
|
|
101
|
-
authAddr?:
|
|
105
|
+
authAddr?: Address;
|
|
102
106
|
/**
|
|
103
107
|
* Round during which this account was most recently closed.
|
|
104
108
|
*/
|
|
105
|
-
closedAtRound?:
|
|
109
|
+
closedAtRound?: bigint;
|
|
106
110
|
/**
|
|
107
111
|
* parameters of applications created by this account including app global data.
|
|
108
112
|
* Note: the raw account uses `map[int] -> AppParams` for this type.
|
|
@@ -116,7 +120,7 @@ export declare class Account extends BaseModel {
|
|
|
116
120
|
/**
|
|
117
121
|
* Round during which this account first appeared in a transaction.
|
|
118
122
|
*/
|
|
119
|
-
createdAtRound?:
|
|
123
|
+
createdAtRound?: bigint;
|
|
120
124
|
/**
|
|
121
125
|
* Whether or not this account is currently closed.
|
|
122
126
|
*/
|
|
@@ -130,11 +134,11 @@ export declare class Account extends BaseModel {
|
|
|
130
134
|
* The round in which this account last went online, or explicitly renewed their
|
|
131
135
|
* online status.
|
|
132
136
|
*/
|
|
133
|
-
lastHeartbeat?: number
|
|
137
|
+
lastHeartbeat?: number;
|
|
134
138
|
/**
|
|
135
139
|
* The round in which this account last proposed the block.
|
|
136
140
|
*/
|
|
137
|
-
lastProposed?: number
|
|
141
|
+
lastProposed?: number;
|
|
138
142
|
/**
|
|
139
143
|
* AccountParticipation describes the parameters used by this account in consensus
|
|
140
144
|
* protocol.
|
|
@@ -144,7 +148,7 @@ export declare class Account extends BaseModel {
|
|
|
144
148
|
* used as part of the rewards computation. Only applicable to accounts which are
|
|
145
149
|
* participating.
|
|
146
150
|
*/
|
|
147
|
-
rewardBase?:
|
|
151
|
+
rewardBase?: bigint;
|
|
148
152
|
/**
|
|
149
153
|
* the type of signature used by this account, must be one of:
|
|
150
154
|
* * sig
|
|
@@ -230,7 +234,7 @@ export declare class Account extends BaseModel {
|
|
|
230
234
|
appsTotalExtraPages?: number | bigint;
|
|
231
235
|
appsTotalSchema?: ApplicationStateSchema;
|
|
232
236
|
assets?: AssetHolding[];
|
|
233
|
-
authAddr?: string;
|
|
237
|
+
authAddr?: Address | string;
|
|
234
238
|
closedAtRound?: number | bigint;
|
|
235
239
|
createdApps?: Application[];
|
|
236
240
|
createdAssets?: Asset[];
|
|
@@ -243,13 +247,17 @@ export declare class Account extends BaseModel {
|
|
|
243
247
|
rewardBase?: number | bigint;
|
|
244
248
|
sigType?: string;
|
|
245
249
|
});
|
|
246
|
-
|
|
250
|
+
getEncodingSchema(): Schema;
|
|
251
|
+
toEncodingData(): Map<string, unknown>;
|
|
252
|
+
static fromEncodingData(data: unknown): Account;
|
|
247
253
|
}
|
|
248
254
|
/**
|
|
249
255
|
* AccountParticipation describes the parameters used by this account in consensus
|
|
250
256
|
* protocol.
|
|
251
257
|
*/
|
|
252
|
-
export declare class AccountParticipation
|
|
258
|
+
export declare class AccountParticipation implements Encodable {
|
|
259
|
+
private static encodingSchemaValue;
|
|
260
|
+
static get encodingSchema(): Schema;
|
|
253
261
|
/**
|
|
254
262
|
* Selection public key (if any) currently registered for this round.
|
|
255
263
|
*/
|
|
@@ -257,15 +265,15 @@ export declare class AccountParticipation extends BaseModel {
|
|
|
257
265
|
/**
|
|
258
266
|
* First round for which this participation is valid.
|
|
259
267
|
*/
|
|
260
|
-
voteFirstValid:
|
|
268
|
+
voteFirstValid: bigint;
|
|
261
269
|
/**
|
|
262
270
|
* Number of subkeys in each batch of participation keys.
|
|
263
271
|
*/
|
|
264
|
-
voteKeyDilution:
|
|
272
|
+
voteKeyDilution: bigint;
|
|
265
273
|
/**
|
|
266
274
|
* Last round for which this participation is valid.
|
|
267
275
|
*/
|
|
268
|
-
voteLastValid:
|
|
276
|
+
voteLastValid: bigint;
|
|
269
277
|
/**
|
|
270
278
|
* root participation public key (if any) currently registered for this round.
|
|
271
279
|
*/
|
|
@@ -291,12 +299,16 @@ export declare class AccountParticipation extends BaseModel {
|
|
|
291
299
|
voteParticipationKey: string | Uint8Array;
|
|
292
300
|
stateProofKey?: string | Uint8Array;
|
|
293
301
|
});
|
|
294
|
-
|
|
302
|
+
getEncodingSchema(): Schema;
|
|
303
|
+
toEncodingData(): Map<string, unknown>;
|
|
304
|
+
static fromEncodingData(data: unknown): AccountParticipation;
|
|
295
305
|
}
|
|
296
306
|
/**
|
|
297
307
|
*
|
|
298
308
|
*/
|
|
299
|
-
export declare class AccountResponse
|
|
309
|
+
export declare class AccountResponse implements Encodable {
|
|
310
|
+
private static encodingSchemaValue;
|
|
311
|
+
static get encodingSchema(): Schema;
|
|
300
312
|
/**
|
|
301
313
|
* Account information at a given round.
|
|
302
314
|
* Definition:
|
|
@@ -306,7 +318,7 @@ export declare class AccountResponse extends BaseModel {
|
|
|
306
318
|
/**
|
|
307
319
|
* Round at which the results were computed.
|
|
308
320
|
*/
|
|
309
|
-
currentRound:
|
|
321
|
+
currentRound: bigint;
|
|
310
322
|
/**
|
|
311
323
|
* Creates a new `AccountResponse` object.
|
|
312
324
|
* @param account - Account information at a given round.
|
|
@@ -318,12 +330,16 @@ export declare class AccountResponse extends BaseModel {
|
|
|
318
330
|
account: Account;
|
|
319
331
|
currentRound: number | bigint;
|
|
320
332
|
});
|
|
321
|
-
|
|
333
|
+
getEncodingSchema(): Schema;
|
|
334
|
+
toEncodingData(): Map<string, unknown>;
|
|
335
|
+
static fromEncodingData(data: unknown): AccountResponse;
|
|
322
336
|
}
|
|
323
337
|
/**
|
|
324
338
|
* Application state delta.
|
|
325
339
|
*/
|
|
326
|
-
export declare class AccountStateDelta
|
|
340
|
+
export declare class AccountStateDelta implements Encodable {
|
|
341
|
+
private static encodingSchemaValue;
|
|
342
|
+
static get encodingSchema(): Schema;
|
|
327
343
|
address: string;
|
|
328
344
|
/**
|
|
329
345
|
* Application state delta.
|
|
@@ -338,17 +354,21 @@ export declare class AccountStateDelta extends BaseModel {
|
|
|
338
354
|
address: string;
|
|
339
355
|
delta: EvalDeltaKeyValue[];
|
|
340
356
|
});
|
|
341
|
-
|
|
357
|
+
getEncodingSchema(): Schema;
|
|
358
|
+
toEncodingData(): Map<string, unknown>;
|
|
359
|
+
static fromEncodingData(data: unknown): AccountStateDelta;
|
|
342
360
|
}
|
|
343
361
|
/**
|
|
344
362
|
*
|
|
345
363
|
*/
|
|
346
|
-
export declare class AccountsResponse
|
|
364
|
+
export declare class AccountsResponse implements Encodable {
|
|
365
|
+
private static encodingSchemaValue;
|
|
366
|
+
static get encodingSchema(): Schema;
|
|
347
367
|
accounts: Account[];
|
|
348
368
|
/**
|
|
349
369
|
* Round at which the results were computed.
|
|
350
370
|
*/
|
|
351
|
-
currentRound:
|
|
371
|
+
currentRound: bigint;
|
|
352
372
|
/**
|
|
353
373
|
* Used for pagination, when making another request provide this token with the
|
|
354
374
|
* next parameter.
|
|
@@ -366,16 +386,20 @@ export declare class AccountsResponse extends BaseModel {
|
|
|
366
386
|
currentRound: number | bigint;
|
|
367
387
|
nextToken?: string;
|
|
368
388
|
});
|
|
369
|
-
|
|
389
|
+
getEncodingSchema(): Schema;
|
|
390
|
+
toEncodingData(): Map<string, unknown>;
|
|
391
|
+
static fromEncodingData(data: unknown): AccountsResponse;
|
|
370
392
|
}
|
|
371
393
|
/**
|
|
372
394
|
* Application index and its parameters
|
|
373
395
|
*/
|
|
374
|
-
export declare class Application
|
|
396
|
+
export declare class Application implements Encodable {
|
|
397
|
+
private static encodingSchemaValue;
|
|
398
|
+
static get encodingSchema(): Schema;
|
|
375
399
|
/**
|
|
376
400
|
* application index.
|
|
377
401
|
*/
|
|
378
|
-
id:
|
|
402
|
+
id: bigint;
|
|
379
403
|
/**
|
|
380
404
|
* application parameters.
|
|
381
405
|
*/
|
|
@@ -383,7 +407,7 @@ export declare class Application extends BaseModel {
|
|
|
383
407
|
/**
|
|
384
408
|
* Round when this application was created.
|
|
385
409
|
*/
|
|
386
|
-
createdAtRound?:
|
|
410
|
+
createdAtRound?: bigint;
|
|
387
411
|
/**
|
|
388
412
|
* Whether or not this application is currently deleted.
|
|
389
413
|
*/
|
|
@@ -391,7 +415,7 @@ export declare class Application extends BaseModel {
|
|
|
391
415
|
/**
|
|
392
416
|
* Round when this application was deleted.
|
|
393
417
|
*/
|
|
394
|
-
deletedAtRound?:
|
|
418
|
+
deletedAtRound?: bigint;
|
|
395
419
|
/**
|
|
396
420
|
* Creates a new `Application` object.
|
|
397
421
|
* @param id - application index.
|
|
@@ -407,16 +431,20 @@ export declare class Application extends BaseModel {
|
|
|
407
431
|
deleted?: boolean;
|
|
408
432
|
deletedAtRound?: number | bigint;
|
|
409
433
|
});
|
|
410
|
-
|
|
434
|
+
getEncodingSchema(): Schema;
|
|
435
|
+
toEncodingData(): Map<string, unknown>;
|
|
436
|
+
static fromEncodingData(data: unknown): Application;
|
|
411
437
|
}
|
|
412
438
|
/**
|
|
413
439
|
* Stores local state associated with an application.
|
|
414
440
|
*/
|
|
415
|
-
export declare class ApplicationLocalState
|
|
441
|
+
export declare class ApplicationLocalState implements Encodable {
|
|
442
|
+
private static encodingSchemaValue;
|
|
443
|
+
static get encodingSchema(): Schema;
|
|
416
444
|
/**
|
|
417
445
|
* The application which this local state is for.
|
|
418
446
|
*/
|
|
419
|
-
id:
|
|
447
|
+
id: bigint;
|
|
420
448
|
/**
|
|
421
449
|
* schema.
|
|
422
450
|
*/
|
|
@@ -424,7 +452,7 @@ export declare class ApplicationLocalState extends BaseModel {
|
|
|
424
452
|
/**
|
|
425
453
|
* Round when account closed out of the application.
|
|
426
454
|
*/
|
|
427
|
-
closedOutAtRound?:
|
|
455
|
+
closedOutAtRound?: bigint;
|
|
428
456
|
/**
|
|
429
457
|
* Whether or not the application local state is currently deleted from its
|
|
430
458
|
* account.
|
|
@@ -437,7 +465,7 @@ export declare class ApplicationLocalState extends BaseModel {
|
|
|
437
465
|
/**
|
|
438
466
|
* Round when the account opted into the application.
|
|
439
467
|
*/
|
|
440
|
-
optedInAtRound?:
|
|
468
|
+
optedInAtRound?: bigint;
|
|
441
469
|
/**
|
|
442
470
|
* Creates a new `ApplicationLocalState` object.
|
|
443
471
|
* @param id - The application which this local state is for.
|
|
@@ -456,17 +484,21 @@ export declare class ApplicationLocalState extends BaseModel {
|
|
|
456
484
|
keyValue?: TealKeyValue[];
|
|
457
485
|
optedInAtRound?: number | bigint;
|
|
458
486
|
});
|
|
459
|
-
|
|
487
|
+
getEncodingSchema(): Schema;
|
|
488
|
+
toEncodingData(): Map<string, unknown>;
|
|
489
|
+
static fromEncodingData(data: unknown): ApplicationLocalState;
|
|
460
490
|
}
|
|
461
491
|
/**
|
|
462
492
|
*
|
|
463
493
|
*/
|
|
464
|
-
export declare class ApplicationLocalStatesResponse
|
|
494
|
+
export declare class ApplicationLocalStatesResponse implements Encodable {
|
|
495
|
+
private static encodingSchemaValue;
|
|
496
|
+
static get encodingSchema(): Schema;
|
|
465
497
|
appsLocalStates: ApplicationLocalState[];
|
|
466
498
|
/**
|
|
467
499
|
* Round at which the results were computed.
|
|
468
500
|
*/
|
|
469
|
-
currentRound:
|
|
501
|
+
currentRound: bigint;
|
|
470
502
|
/**
|
|
471
503
|
* Used for pagination, when making another request provide this token with the
|
|
472
504
|
* next parameter.
|
|
@@ -484,12 +516,16 @@ export declare class ApplicationLocalStatesResponse extends BaseModel {
|
|
|
484
516
|
currentRound: number | bigint;
|
|
485
517
|
nextToken?: string;
|
|
486
518
|
});
|
|
487
|
-
|
|
519
|
+
getEncodingSchema(): Schema;
|
|
520
|
+
toEncodingData(): Map<string, unknown>;
|
|
521
|
+
static fromEncodingData(data: unknown): ApplicationLocalStatesResponse;
|
|
488
522
|
}
|
|
489
523
|
/**
|
|
490
524
|
* Stores the global information associated with an application.
|
|
491
525
|
*/
|
|
492
|
-
export declare class ApplicationLogData
|
|
526
|
+
export declare class ApplicationLogData implements Encodable {
|
|
527
|
+
private static encodingSchemaValue;
|
|
528
|
+
static get encodingSchema(): Schema;
|
|
493
529
|
/**
|
|
494
530
|
* Logs for the application being executed by the transaction.
|
|
495
531
|
*/
|
|
@@ -507,20 +543,24 @@ export declare class ApplicationLogData extends BaseModel {
|
|
|
507
543
|
logs: Uint8Array[];
|
|
508
544
|
txid: string;
|
|
509
545
|
});
|
|
510
|
-
|
|
546
|
+
getEncodingSchema(): Schema;
|
|
547
|
+
toEncodingData(): Map<string, unknown>;
|
|
548
|
+
static fromEncodingData(data: unknown): ApplicationLogData;
|
|
511
549
|
}
|
|
512
550
|
/**
|
|
513
551
|
*
|
|
514
552
|
*/
|
|
515
|
-
export declare class ApplicationLogsResponse
|
|
553
|
+
export declare class ApplicationLogsResponse implements Encodable {
|
|
554
|
+
private static encodingSchemaValue;
|
|
555
|
+
static get encodingSchema(): Schema;
|
|
516
556
|
/**
|
|
517
557
|
* (appidx) application index.
|
|
518
558
|
*/
|
|
519
|
-
applicationId:
|
|
559
|
+
applicationId: bigint;
|
|
520
560
|
/**
|
|
521
561
|
* Round at which the results were computed.
|
|
522
562
|
*/
|
|
523
|
-
currentRound:
|
|
563
|
+
currentRound: bigint;
|
|
524
564
|
logData?: ApplicationLogData[];
|
|
525
565
|
/**
|
|
526
566
|
* Used for pagination, when making another request provide this token with the
|
|
@@ -541,12 +581,16 @@ export declare class ApplicationLogsResponse extends BaseModel {
|
|
|
541
581
|
logData?: ApplicationLogData[];
|
|
542
582
|
nextToken?: string;
|
|
543
583
|
});
|
|
544
|
-
|
|
584
|
+
getEncodingSchema(): Schema;
|
|
585
|
+
toEncodingData(): Map<string, unknown>;
|
|
586
|
+
static fromEncodingData(data: unknown): ApplicationLogsResponse;
|
|
545
587
|
}
|
|
546
588
|
/**
|
|
547
589
|
* Stores the global information associated with an application.
|
|
548
590
|
*/
|
|
549
|
-
export declare class ApplicationParams
|
|
591
|
+
export declare class ApplicationParams implements Encodable {
|
|
592
|
+
private static encodingSchemaValue;
|
|
593
|
+
static get encodingSchema(): Schema;
|
|
550
594
|
/**
|
|
551
595
|
* approval program.
|
|
552
596
|
*/
|
|
@@ -559,11 +603,11 @@ export declare class ApplicationParams extends BaseModel {
|
|
|
559
603
|
* The address that created this application. This is the address where the
|
|
560
604
|
* parameters and global state for this application can be found.
|
|
561
605
|
*/
|
|
562
|
-
creator?:
|
|
606
|
+
creator?: Address;
|
|
563
607
|
/**
|
|
564
608
|
* the number of extra program pages available to this app.
|
|
565
609
|
*/
|
|
566
|
-
extraProgramPages?: number
|
|
610
|
+
extraProgramPages?: number;
|
|
567
611
|
/**
|
|
568
612
|
* global state
|
|
569
613
|
*/
|
|
@@ -590,22 +634,26 @@ export declare class ApplicationParams extends BaseModel {
|
|
|
590
634
|
constructor({ approvalProgram, clearStateProgram, creator, extraProgramPages, globalState, globalStateSchema, localStateSchema, }: {
|
|
591
635
|
approvalProgram: string | Uint8Array;
|
|
592
636
|
clearStateProgram: string | Uint8Array;
|
|
593
|
-
creator?: string;
|
|
637
|
+
creator?: Address | string;
|
|
594
638
|
extraProgramPages?: number | bigint;
|
|
595
639
|
globalState?: TealKeyValue[];
|
|
596
640
|
globalStateSchema?: ApplicationStateSchema;
|
|
597
641
|
localStateSchema?: ApplicationStateSchema;
|
|
598
642
|
});
|
|
599
|
-
|
|
643
|
+
getEncodingSchema(): Schema;
|
|
644
|
+
toEncodingData(): Map<string, unknown>;
|
|
645
|
+
static fromEncodingData(data: unknown): ApplicationParams;
|
|
600
646
|
}
|
|
601
647
|
/**
|
|
602
648
|
*
|
|
603
649
|
*/
|
|
604
|
-
export declare class ApplicationResponse
|
|
650
|
+
export declare class ApplicationResponse implements Encodable {
|
|
651
|
+
private static encodingSchemaValue;
|
|
652
|
+
static get encodingSchema(): Schema;
|
|
605
653
|
/**
|
|
606
654
|
* Round at which the results were computed.
|
|
607
655
|
*/
|
|
608
|
-
currentRound:
|
|
656
|
+
currentRound: bigint;
|
|
609
657
|
/**
|
|
610
658
|
* Application index and its parameters
|
|
611
659
|
*/
|
|
@@ -619,20 +667,24 @@ export declare class ApplicationResponse extends BaseModel {
|
|
|
619
667
|
currentRound: number | bigint;
|
|
620
668
|
application?: Application;
|
|
621
669
|
});
|
|
622
|
-
|
|
670
|
+
getEncodingSchema(): Schema;
|
|
671
|
+
toEncodingData(): Map<string, unknown>;
|
|
672
|
+
static fromEncodingData(data: unknown): ApplicationResponse;
|
|
623
673
|
}
|
|
624
674
|
/**
|
|
625
675
|
* Specifies maximums on the number of each type that may be stored.
|
|
626
676
|
*/
|
|
627
|
-
export declare class ApplicationStateSchema
|
|
677
|
+
export declare class ApplicationStateSchema implements Encodable {
|
|
678
|
+
private static encodingSchemaValue;
|
|
679
|
+
static get encodingSchema(): Schema;
|
|
628
680
|
/**
|
|
629
681
|
* number of byte slices.
|
|
630
682
|
*/
|
|
631
|
-
numByteSlice: number
|
|
683
|
+
numByteSlice: number;
|
|
632
684
|
/**
|
|
633
685
|
* number of uints.
|
|
634
686
|
*/
|
|
635
|
-
numUint: number
|
|
687
|
+
numUint: number;
|
|
636
688
|
/**
|
|
637
689
|
* Creates a new `ApplicationStateSchema` object.
|
|
638
690
|
* @param numByteSlice - number of byte slices.
|
|
@@ -642,17 +694,21 @@ export declare class ApplicationStateSchema extends BaseModel {
|
|
|
642
694
|
numByteSlice: number | bigint;
|
|
643
695
|
numUint: number | bigint;
|
|
644
696
|
});
|
|
645
|
-
|
|
697
|
+
getEncodingSchema(): Schema;
|
|
698
|
+
toEncodingData(): Map<string, unknown>;
|
|
699
|
+
static fromEncodingData(data: unknown): ApplicationStateSchema;
|
|
646
700
|
}
|
|
647
701
|
/**
|
|
648
702
|
*
|
|
649
703
|
*/
|
|
650
|
-
export declare class ApplicationsResponse
|
|
704
|
+
export declare class ApplicationsResponse implements Encodable {
|
|
705
|
+
private static encodingSchemaValue;
|
|
706
|
+
static get encodingSchema(): Schema;
|
|
651
707
|
applications: Application[];
|
|
652
708
|
/**
|
|
653
709
|
* Round at which the results were computed.
|
|
654
710
|
*/
|
|
655
|
-
currentRound:
|
|
711
|
+
currentRound: bigint;
|
|
656
712
|
/**
|
|
657
713
|
* Used for pagination, when making another request provide this token with the
|
|
658
714
|
* next parameter.
|
|
@@ -670,16 +726,20 @@ export declare class ApplicationsResponse extends BaseModel {
|
|
|
670
726
|
currentRound: number | bigint;
|
|
671
727
|
nextToken?: string;
|
|
672
728
|
});
|
|
673
|
-
|
|
729
|
+
getEncodingSchema(): Schema;
|
|
730
|
+
toEncodingData(): Map<string, unknown>;
|
|
731
|
+
static fromEncodingData(data: unknown): ApplicationsResponse;
|
|
674
732
|
}
|
|
675
733
|
/**
|
|
676
734
|
* Specifies both the unique identifier and the parameters for an asset
|
|
677
735
|
*/
|
|
678
|
-
export declare class Asset
|
|
736
|
+
export declare class Asset implements Encodable {
|
|
737
|
+
private static encodingSchemaValue;
|
|
738
|
+
static get encodingSchema(): Schema;
|
|
679
739
|
/**
|
|
680
740
|
* unique asset identifier
|
|
681
741
|
*/
|
|
682
|
-
index:
|
|
742
|
+
index: bigint;
|
|
683
743
|
/**
|
|
684
744
|
* AssetParams specifies the parameters for an asset.
|
|
685
745
|
* (apar) when part of an AssetConfig transaction.
|
|
@@ -690,7 +750,7 @@ export declare class Asset extends BaseModel {
|
|
|
690
750
|
/**
|
|
691
751
|
* Round during which this asset was created.
|
|
692
752
|
*/
|
|
693
|
-
createdAtRound?:
|
|
753
|
+
createdAtRound?: bigint;
|
|
694
754
|
/**
|
|
695
755
|
* Whether or not this asset is currently deleted.
|
|
696
756
|
*/
|
|
@@ -698,7 +758,7 @@ export declare class Asset extends BaseModel {
|
|
|
698
758
|
/**
|
|
699
759
|
* Round during which this asset was destroyed.
|
|
700
760
|
*/
|
|
701
|
-
destroyedAtRound?:
|
|
761
|
+
destroyedAtRound?: bigint;
|
|
702
762
|
/**
|
|
703
763
|
* Creates a new `Asset` object.
|
|
704
764
|
* @param index - unique asset identifier
|
|
@@ -717,17 +777,21 @@ export declare class Asset extends BaseModel {
|
|
|
717
777
|
deleted?: boolean;
|
|
718
778
|
destroyedAtRound?: number | bigint;
|
|
719
779
|
});
|
|
720
|
-
|
|
780
|
+
getEncodingSchema(): Schema;
|
|
781
|
+
toEncodingData(): Map<string, unknown>;
|
|
782
|
+
static fromEncodingData(data: unknown): Asset;
|
|
721
783
|
}
|
|
722
784
|
/**
|
|
723
785
|
*
|
|
724
786
|
*/
|
|
725
|
-
export declare class AssetBalancesResponse
|
|
787
|
+
export declare class AssetBalancesResponse implements Encodable {
|
|
788
|
+
private static encodingSchemaValue;
|
|
789
|
+
static get encodingSchema(): Schema;
|
|
726
790
|
balances: MiniAssetHolding[];
|
|
727
791
|
/**
|
|
728
792
|
* Round at which the results were computed.
|
|
729
793
|
*/
|
|
730
|
-
currentRound:
|
|
794
|
+
currentRound: bigint;
|
|
731
795
|
/**
|
|
732
796
|
* Used for pagination, when making another request provide this token with the
|
|
733
797
|
* next parameter.
|
|
@@ -745,22 +809,26 @@ export declare class AssetBalancesResponse extends BaseModel {
|
|
|
745
809
|
currentRound: number | bigint;
|
|
746
810
|
nextToken?: string;
|
|
747
811
|
});
|
|
748
|
-
|
|
812
|
+
getEncodingSchema(): Schema;
|
|
813
|
+
toEncodingData(): Map<string, unknown>;
|
|
814
|
+
static fromEncodingData(data: unknown): AssetBalancesResponse;
|
|
749
815
|
}
|
|
750
816
|
/**
|
|
751
817
|
* Describes an asset held by an account.
|
|
752
818
|
* Definition:
|
|
753
819
|
* data/basics/userBalance.go : AssetHolding
|
|
754
820
|
*/
|
|
755
|
-
export declare class AssetHolding
|
|
821
|
+
export declare class AssetHolding implements Encodable {
|
|
822
|
+
private static encodingSchemaValue;
|
|
823
|
+
static get encodingSchema(): Schema;
|
|
756
824
|
/**
|
|
757
825
|
* number of units held.
|
|
758
826
|
*/
|
|
759
|
-
amount:
|
|
827
|
+
amount: bigint;
|
|
760
828
|
/**
|
|
761
829
|
* Asset ID of the holding.
|
|
762
830
|
*/
|
|
763
|
-
assetId:
|
|
831
|
+
assetId: bigint;
|
|
764
832
|
/**
|
|
765
833
|
* whether or not the holding is frozen.
|
|
766
834
|
*/
|
|
@@ -772,11 +840,11 @@ export declare class AssetHolding extends BaseModel {
|
|
|
772
840
|
/**
|
|
773
841
|
* Round during which the account opted into this asset holding.
|
|
774
842
|
*/
|
|
775
|
-
optedInAtRound?:
|
|
843
|
+
optedInAtRound?: bigint;
|
|
776
844
|
/**
|
|
777
845
|
* Round during which the account opted out of this asset holding.
|
|
778
846
|
*/
|
|
779
|
-
optedOutAtRound?:
|
|
847
|
+
optedOutAtRound?: bigint;
|
|
780
848
|
/**
|
|
781
849
|
* Creates a new `AssetHolding` object.
|
|
782
850
|
* @param amount - number of units held.
|
|
@@ -794,17 +862,21 @@ export declare class AssetHolding extends BaseModel {
|
|
|
794
862
|
optedInAtRound?: number | bigint;
|
|
795
863
|
optedOutAtRound?: number | bigint;
|
|
796
864
|
});
|
|
797
|
-
|
|
865
|
+
getEncodingSchema(): Schema;
|
|
866
|
+
toEncodingData(): Map<string, unknown>;
|
|
867
|
+
static fromEncodingData(data: unknown): AssetHolding;
|
|
798
868
|
}
|
|
799
869
|
/**
|
|
800
870
|
*
|
|
801
871
|
*/
|
|
802
|
-
export declare class AssetHoldingsResponse
|
|
872
|
+
export declare class AssetHoldingsResponse implements Encodable {
|
|
873
|
+
private static encodingSchemaValue;
|
|
874
|
+
static get encodingSchema(): Schema;
|
|
803
875
|
assets: AssetHolding[];
|
|
804
876
|
/**
|
|
805
877
|
* Round at which the results were computed.
|
|
806
878
|
*/
|
|
807
|
-
currentRound:
|
|
879
|
+
currentRound: bigint;
|
|
808
880
|
/**
|
|
809
881
|
* Used for pagination, when making another request provide this token with the
|
|
810
882
|
* next parameter.
|
|
@@ -822,7 +894,9 @@ export declare class AssetHoldingsResponse extends BaseModel {
|
|
|
822
894
|
currentRound: number | bigint;
|
|
823
895
|
nextToken?: string;
|
|
824
896
|
});
|
|
825
|
-
|
|
897
|
+
getEncodingSchema(): Schema;
|
|
898
|
+
toEncodingData(): Map<string, unknown>;
|
|
899
|
+
static fromEncodingData(data: unknown): AssetHoldingsResponse;
|
|
826
900
|
}
|
|
827
901
|
/**
|
|
828
902
|
* AssetParams specifies the parameters for an asset.
|
|
@@ -830,7 +904,9 @@ export declare class AssetHoldingsResponse extends BaseModel {
|
|
|
830
904
|
* Definition:
|
|
831
905
|
* data/transactions/asset.go : AssetParams
|
|
832
906
|
*/
|
|
833
|
-
export declare class AssetParams
|
|
907
|
+
export declare class AssetParams implements Encodable {
|
|
908
|
+
private static encodingSchemaValue;
|
|
909
|
+
static get encodingSchema(): Schema;
|
|
834
910
|
/**
|
|
835
911
|
* The address that created this asset. This is the address where the parameters
|
|
836
912
|
* for this asset can be found, and also the address where unwanted asset units can
|
|
@@ -843,11 +919,11 @@ export declare class AssetParams extends BaseModel {
|
|
|
843
919
|
* If 2, the base unit of the asset is in hundredths, and so on. This value must be
|
|
844
920
|
* between 0 and 19 (inclusive).
|
|
845
921
|
*/
|
|
846
|
-
decimals: number
|
|
922
|
+
decimals: number;
|
|
847
923
|
/**
|
|
848
924
|
* The total number of units of this asset.
|
|
849
925
|
*/
|
|
850
|
-
total:
|
|
926
|
+
total: bigint;
|
|
851
927
|
/**
|
|
852
928
|
* Address of account used to clawback holdings of this asset. If empty, clawback
|
|
853
929
|
* is not permitted.
|
|
@@ -948,12 +1024,16 @@ export declare class AssetParams extends BaseModel {
|
|
|
948
1024
|
url?: string;
|
|
949
1025
|
urlB64?: string | Uint8Array;
|
|
950
1026
|
});
|
|
951
|
-
|
|
1027
|
+
getEncodingSchema(): Schema;
|
|
1028
|
+
toEncodingData(): Map<string, unknown>;
|
|
1029
|
+
static fromEncodingData(data: unknown): AssetParams;
|
|
952
1030
|
}
|
|
953
1031
|
/**
|
|
954
1032
|
*
|
|
955
1033
|
*/
|
|
956
|
-
export declare class AssetResponse
|
|
1034
|
+
export declare class AssetResponse implements Encodable {
|
|
1035
|
+
private static encodingSchemaValue;
|
|
1036
|
+
static get encodingSchema(): Schema;
|
|
957
1037
|
/**
|
|
958
1038
|
* Specifies both the unique identifier and the parameters for an asset
|
|
959
1039
|
*/
|
|
@@ -961,7 +1041,7 @@ export declare class AssetResponse extends BaseModel {
|
|
|
961
1041
|
/**
|
|
962
1042
|
* Round at which the results were computed.
|
|
963
1043
|
*/
|
|
964
|
-
currentRound:
|
|
1044
|
+
currentRound: bigint;
|
|
965
1045
|
/**
|
|
966
1046
|
* Creates a new `AssetResponse` object.
|
|
967
1047
|
* @param asset - Specifies both the unique identifier and the parameters for an asset
|
|
@@ -971,17 +1051,21 @@ export declare class AssetResponse extends BaseModel {
|
|
|
971
1051
|
asset: Asset;
|
|
972
1052
|
currentRound: number | bigint;
|
|
973
1053
|
});
|
|
974
|
-
|
|
1054
|
+
getEncodingSchema(): Schema;
|
|
1055
|
+
toEncodingData(): Map<string, unknown>;
|
|
1056
|
+
static fromEncodingData(data: unknown): AssetResponse;
|
|
975
1057
|
}
|
|
976
1058
|
/**
|
|
977
1059
|
*
|
|
978
1060
|
*/
|
|
979
|
-
export declare class AssetsResponse
|
|
1061
|
+
export declare class AssetsResponse implements Encodable {
|
|
1062
|
+
private static encodingSchemaValue;
|
|
1063
|
+
static get encodingSchema(): Schema;
|
|
980
1064
|
assets: Asset[];
|
|
981
1065
|
/**
|
|
982
1066
|
* Round at which the results were computed.
|
|
983
1067
|
*/
|
|
984
|
-
currentRound:
|
|
1068
|
+
currentRound: bigint;
|
|
985
1069
|
/**
|
|
986
1070
|
* Used for pagination, when making another request provide this token with the
|
|
987
1071
|
* next parameter.
|
|
@@ -999,14 +1083,18 @@ export declare class AssetsResponse extends BaseModel {
|
|
|
999
1083
|
currentRound: number | bigint;
|
|
1000
1084
|
nextToken?: string;
|
|
1001
1085
|
});
|
|
1002
|
-
|
|
1086
|
+
getEncodingSchema(): Schema;
|
|
1087
|
+
toEncodingData(): Map<string, unknown>;
|
|
1088
|
+
static fromEncodingData(data: unknown): AssetsResponse;
|
|
1003
1089
|
}
|
|
1004
1090
|
/**
|
|
1005
1091
|
* Block information.
|
|
1006
1092
|
* Definition:
|
|
1007
1093
|
* data/bookkeeping/block.go : Block
|
|
1008
1094
|
*/
|
|
1009
|
-
export declare class Block
|
|
1095
|
+
export declare class Block implements Encodable {
|
|
1096
|
+
private static encodingSchemaValue;
|
|
1097
|
+
static get encodingSchema(): Schema;
|
|
1010
1098
|
/**
|
|
1011
1099
|
* (gh) hash to which this block belongs.
|
|
1012
1100
|
*/
|
|
@@ -1022,7 +1110,7 @@ export declare class Block extends BaseModel {
|
|
|
1022
1110
|
/**
|
|
1023
1111
|
* (rnd) Current round on which this block was appended to the chain.
|
|
1024
1112
|
*/
|
|
1025
|
-
round:
|
|
1113
|
+
round: bigint;
|
|
1026
1114
|
/**
|
|
1027
1115
|
* (seed) Sortition seed.
|
|
1028
1116
|
*/
|
|
@@ -1030,7 +1118,7 @@ export declare class Block extends BaseModel {
|
|
|
1030
1118
|
/**
|
|
1031
1119
|
* (ts) Block creation timestamp in seconds since eposh
|
|
1032
1120
|
*/
|
|
1033
|
-
timestamp: number
|
|
1121
|
+
timestamp: number;
|
|
1034
1122
|
/**
|
|
1035
1123
|
* (txn) TransactionsRoot authenticates the set of transactions appearing in the
|
|
1036
1124
|
* block. More specifically, it's the root of a merkle tree whose leaves are the
|
|
@@ -1050,11 +1138,11 @@ export declare class Block extends BaseModel {
|
|
|
1050
1138
|
/**
|
|
1051
1139
|
* the potential bonus payout for this block.
|
|
1052
1140
|
*/
|
|
1053
|
-
bonus?: number
|
|
1141
|
+
bonus?: number;
|
|
1054
1142
|
/**
|
|
1055
1143
|
* the sum of all fees paid by transactions in this block.
|
|
1056
1144
|
*/
|
|
1057
|
-
feesCollected?: number
|
|
1145
|
+
feesCollected?: number;
|
|
1058
1146
|
/**
|
|
1059
1147
|
* Participation account data that needs to be checked/acted on by the network.
|
|
1060
1148
|
*/
|
|
@@ -1062,11 +1150,11 @@ export declare class Block extends BaseModel {
|
|
|
1062
1150
|
/**
|
|
1063
1151
|
* the proposer of this block.
|
|
1064
1152
|
*/
|
|
1065
|
-
proposer?:
|
|
1153
|
+
proposer?: Address;
|
|
1066
1154
|
/**
|
|
1067
1155
|
* the actual amount transferred to the proposer from the fee sink.
|
|
1068
1156
|
*/
|
|
1069
|
-
proposerPayout?: number
|
|
1157
|
+
proposerPayout?: number;
|
|
1070
1158
|
/**
|
|
1071
1159
|
* Fields relating to rewards,
|
|
1072
1160
|
*/
|
|
@@ -1086,7 +1174,7 @@ export declare class Block extends BaseModel {
|
|
|
1086
1174
|
* committed after this block. It is 0 when no transactions have ever been
|
|
1087
1175
|
* committed (since TxnCounter started being supported).
|
|
1088
1176
|
*/
|
|
1089
|
-
txnCounter?: number
|
|
1177
|
+
txnCounter?: number;
|
|
1090
1178
|
/**
|
|
1091
1179
|
* Fields relating to a protocol upgrade.
|
|
1092
1180
|
*/
|
|
@@ -1141,7 +1229,7 @@ export declare class Block extends BaseModel {
|
|
|
1141
1229
|
bonus?: number | bigint;
|
|
1142
1230
|
feesCollected?: number | bigint;
|
|
1143
1231
|
participationUpdates?: ParticipationUpdates;
|
|
1144
|
-
proposer?: string;
|
|
1232
|
+
proposer?: Address | string;
|
|
1145
1233
|
proposerPayout?: number | bigint;
|
|
1146
1234
|
rewards?: BlockRewards;
|
|
1147
1235
|
stateProofTracking?: StateProofTracking[];
|
|
@@ -1150,12 +1238,16 @@ export declare class Block extends BaseModel {
|
|
|
1150
1238
|
upgradeState?: BlockUpgradeState;
|
|
1151
1239
|
upgradeVote?: BlockUpgradeVote;
|
|
1152
1240
|
});
|
|
1153
|
-
|
|
1241
|
+
getEncodingSchema(): Schema;
|
|
1242
|
+
toEncodingData(): Map<string, unknown>;
|
|
1243
|
+
static fromEncodingData(data: unknown): Block;
|
|
1154
1244
|
}
|
|
1155
1245
|
/**
|
|
1156
1246
|
* Fields relating to rewards,
|
|
1157
1247
|
*/
|
|
1158
|
-
export declare class BlockRewards
|
|
1248
|
+
export declare class BlockRewards implements Encodable {
|
|
1249
|
+
private static encodingSchemaValue;
|
|
1250
|
+
static get encodingSchema(): Schema;
|
|
1159
1251
|
/**
|
|
1160
1252
|
* (fees) accepts transaction fees, it can only spend to the incentive pool.
|
|
1161
1253
|
*/
|
|
@@ -1164,12 +1256,12 @@ export declare class BlockRewards extends BaseModel {
|
|
|
1164
1256
|
* (rwcalr) number of leftover MicroAlgos after the distribution of rewards-rate
|
|
1165
1257
|
* MicroAlgos for every reward unit in the next round.
|
|
1166
1258
|
*/
|
|
1167
|
-
rewardsCalculationRound:
|
|
1259
|
+
rewardsCalculationRound: bigint;
|
|
1168
1260
|
/**
|
|
1169
1261
|
* (earn) How many rewards, in MicroAlgos, have been distributed to each RewardUnit
|
|
1170
1262
|
* of MicroAlgos since genesis.
|
|
1171
1263
|
*/
|
|
1172
|
-
rewardsLevel:
|
|
1264
|
+
rewardsLevel: bigint;
|
|
1173
1265
|
/**
|
|
1174
1266
|
* (rwd) accepts periodic injections from the fee-sink and continually
|
|
1175
1267
|
* redistributes them as rewards.
|
|
@@ -1179,12 +1271,12 @@ export declare class BlockRewards extends BaseModel {
|
|
|
1179
1271
|
* (rate) Number of new MicroAlgos added to the participation stake from rewards at
|
|
1180
1272
|
* the next round.
|
|
1181
1273
|
*/
|
|
1182
|
-
rewardsRate:
|
|
1274
|
+
rewardsRate: bigint;
|
|
1183
1275
|
/**
|
|
1184
1276
|
* (frac) Number of leftover MicroAlgos after the distribution of
|
|
1185
1277
|
* RewardsRate/rewardUnits MicroAlgos for every reward unit in the next round.
|
|
1186
1278
|
*/
|
|
1187
|
-
rewardsResidue:
|
|
1279
|
+
rewardsResidue: bigint;
|
|
1188
1280
|
/**
|
|
1189
1281
|
* Creates a new `BlockRewards` object.
|
|
1190
1282
|
* @param feeSink - (fees) accepts transaction fees, it can only spend to the incentive pool.
|
|
@@ -1207,12 +1299,16 @@ export declare class BlockRewards extends BaseModel {
|
|
|
1207
1299
|
rewardsRate: number | bigint;
|
|
1208
1300
|
rewardsResidue: number | bigint;
|
|
1209
1301
|
});
|
|
1210
|
-
|
|
1302
|
+
getEncodingSchema(): Schema;
|
|
1303
|
+
toEncodingData(): Map<string, unknown>;
|
|
1304
|
+
static fromEncodingData(data: unknown): BlockRewards;
|
|
1211
1305
|
}
|
|
1212
1306
|
/**
|
|
1213
1307
|
* Fields relating to a protocol upgrade.
|
|
1214
1308
|
*/
|
|
1215
|
-
export declare class BlockUpgradeState
|
|
1309
|
+
export declare class BlockUpgradeState implements Encodable {
|
|
1310
|
+
private static encodingSchemaValue;
|
|
1311
|
+
static get encodingSchema(): Schema;
|
|
1216
1312
|
/**
|
|
1217
1313
|
* (proto) The current protocol version.
|
|
1218
1314
|
*/
|
|
@@ -1224,16 +1320,16 @@ export declare class BlockUpgradeState extends BaseModel {
|
|
|
1224
1320
|
/**
|
|
1225
1321
|
* (nextyes) Number of blocks which approved the protocol upgrade.
|
|
1226
1322
|
*/
|
|
1227
|
-
nextProtocolApprovals?: number
|
|
1323
|
+
nextProtocolApprovals?: number;
|
|
1228
1324
|
/**
|
|
1229
1325
|
* (nextswitch) Round on which the protocol upgrade will take effect.
|
|
1230
1326
|
*/
|
|
1231
|
-
nextProtocolSwitchOn?:
|
|
1327
|
+
nextProtocolSwitchOn?: bigint;
|
|
1232
1328
|
/**
|
|
1233
1329
|
* (nextbefore) Deadline round for this protocol upgrade (No votes will be consider
|
|
1234
1330
|
* after this round).
|
|
1235
1331
|
*/
|
|
1236
|
-
nextProtocolVoteBefore?:
|
|
1332
|
+
nextProtocolVoteBefore?: bigint;
|
|
1237
1333
|
/**
|
|
1238
1334
|
* Creates a new `BlockUpgradeState` object.
|
|
1239
1335
|
* @param currentProtocol - (proto) The current protocol version.
|
|
@@ -1250,12 +1346,16 @@ export declare class BlockUpgradeState extends BaseModel {
|
|
|
1250
1346
|
nextProtocolSwitchOn?: number | bigint;
|
|
1251
1347
|
nextProtocolVoteBefore?: number | bigint;
|
|
1252
1348
|
});
|
|
1253
|
-
|
|
1349
|
+
getEncodingSchema(): Schema;
|
|
1350
|
+
toEncodingData(): Map<string, unknown>;
|
|
1351
|
+
static fromEncodingData(data: unknown): BlockUpgradeState;
|
|
1254
1352
|
}
|
|
1255
1353
|
/**
|
|
1256
1354
|
* Fields relating to voting for a protocol upgrade.
|
|
1257
1355
|
*/
|
|
1258
|
-
export declare class BlockUpgradeVote
|
|
1356
|
+
export declare class BlockUpgradeVote implements Encodable {
|
|
1357
|
+
private static encodingSchemaValue;
|
|
1358
|
+
static get encodingSchema(): Schema;
|
|
1259
1359
|
/**
|
|
1260
1360
|
* (upgradeyes) Indicates a yes vote for the current proposal.
|
|
1261
1361
|
*/
|
|
@@ -1263,7 +1363,7 @@ export declare class BlockUpgradeVote extends BaseModel {
|
|
|
1263
1363
|
/**
|
|
1264
1364
|
* (upgradedelay) Indicates the time between acceptance and execution.
|
|
1265
1365
|
*/
|
|
1266
|
-
upgradeDelay?:
|
|
1366
|
+
upgradeDelay?: bigint;
|
|
1267
1367
|
/**
|
|
1268
1368
|
* (upgradeprop) Indicates a proposed upgrade.
|
|
1269
1369
|
*/
|
|
@@ -1279,12 +1379,16 @@ export declare class BlockUpgradeVote extends BaseModel {
|
|
|
1279
1379
|
upgradeDelay?: number | bigint;
|
|
1280
1380
|
upgradePropose?: string;
|
|
1281
1381
|
});
|
|
1282
|
-
|
|
1382
|
+
getEncodingSchema(): Schema;
|
|
1383
|
+
toEncodingData(): Map<string, unknown>;
|
|
1384
|
+
static fromEncodingData(data: unknown): BlockUpgradeVote;
|
|
1283
1385
|
}
|
|
1284
1386
|
/**
|
|
1285
1387
|
* Box name and its content.
|
|
1286
1388
|
*/
|
|
1287
|
-
export declare class Box
|
|
1389
|
+
export declare class Box implements Encodable {
|
|
1390
|
+
private static encodingSchemaValue;
|
|
1391
|
+
static get encodingSchema(): Schema;
|
|
1288
1392
|
/**
|
|
1289
1393
|
* (name) box name, base64 encoded
|
|
1290
1394
|
*/
|
|
@@ -1292,7 +1396,7 @@ export declare class Box extends BaseModel {
|
|
|
1292
1396
|
/**
|
|
1293
1397
|
* The round for which this information is relevant
|
|
1294
1398
|
*/
|
|
1295
|
-
round:
|
|
1399
|
+
round: bigint;
|
|
1296
1400
|
/**
|
|
1297
1401
|
* (value) box value, base64 encoded.
|
|
1298
1402
|
*/
|
|
@@ -1308,12 +1412,16 @@ export declare class Box extends BaseModel {
|
|
|
1308
1412
|
round: number | bigint;
|
|
1309
1413
|
value: string | Uint8Array;
|
|
1310
1414
|
});
|
|
1311
|
-
|
|
1415
|
+
getEncodingSchema(): Schema;
|
|
1416
|
+
toEncodingData(): Map<string, unknown>;
|
|
1417
|
+
static fromEncodingData(data: unknown): Box;
|
|
1312
1418
|
}
|
|
1313
1419
|
/**
|
|
1314
1420
|
* Box descriptor describes an app box without a value.
|
|
1315
1421
|
*/
|
|
1316
|
-
export declare class BoxDescriptor
|
|
1422
|
+
export declare class BoxDescriptor implements Encodable {
|
|
1423
|
+
private static encodingSchemaValue;
|
|
1424
|
+
static get encodingSchema(): Schema;
|
|
1317
1425
|
/**
|
|
1318
1426
|
* Base64 encoded box name
|
|
1319
1427
|
*/
|
|
@@ -1325,16 +1433,20 @@ export declare class BoxDescriptor extends BaseModel {
|
|
|
1325
1433
|
constructor({ name }: {
|
|
1326
1434
|
name: string | Uint8Array;
|
|
1327
1435
|
});
|
|
1328
|
-
|
|
1436
|
+
getEncodingSchema(): Schema;
|
|
1437
|
+
toEncodingData(): Map<string, unknown>;
|
|
1438
|
+
static fromEncodingData(data: unknown): BoxDescriptor;
|
|
1329
1439
|
}
|
|
1330
1440
|
/**
|
|
1331
1441
|
* Box names of an application
|
|
1332
1442
|
*/
|
|
1333
|
-
export declare class BoxesResponse
|
|
1443
|
+
export declare class BoxesResponse implements Encodable {
|
|
1444
|
+
private static encodingSchemaValue;
|
|
1445
|
+
static get encodingSchema(): Schema;
|
|
1334
1446
|
/**
|
|
1335
1447
|
* (appidx) application index.
|
|
1336
1448
|
*/
|
|
1337
|
-
applicationId:
|
|
1449
|
+
applicationId: bigint;
|
|
1338
1450
|
boxes: BoxDescriptor[];
|
|
1339
1451
|
/**
|
|
1340
1452
|
* Used for pagination, when making another request provide this token with the
|
|
@@ -1353,33 +1465,41 @@ export declare class BoxesResponse extends BaseModel {
|
|
|
1353
1465
|
boxes: BoxDescriptor[];
|
|
1354
1466
|
nextToken?: string;
|
|
1355
1467
|
});
|
|
1356
|
-
|
|
1468
|
+
getEncodingSchema(): Schema;
|
|
1469
|
+
toEncodingData(): Map<string, unknown>;
|
|
1470
|
+
static fromEncodingData(data: unknown): BoxesResponse;
|
|
1357
1471
|
}
|
|
1358
1472
|
/**
|
|
1359
1473
|
* Response for errors
|
|
1360
1474
|
*/
|
|
1361
|
-
export declare class ErrorResponse
|
|
1475
|
+
export declare class ErrorResponse implements Encodable {
|
|
1476
|
+
private static encodingSchemaValue;
|
|
1477
|
+
static get encodingSchema(): Schema;
|
|
1362
1478
|
message: string;
|
|
1363
|
-
data?:
|
|
1479
|
+
data?: UntypedValue;
|
|
1364
1480
|
/**
|
|
1365
1481
|
* Creates a new `ErrorResponse` object.
|
|
1366
1482
|
* @param message -
|
|
1367
1483
|
* @param data -
|
|
1368
1484
|
*/
|
|
1369
|
-
constructor({ message, data
|
|
1485
|
+
constructor({ message, data }: {
|
|
1370
1486
|
message: string;
|
|
1371
|
-
data?:
|
|
1487
|
+
data?: UntypedValue;
|
|
1372
1488
|
});
|
|
1373
|
-
|
|
1489
|
+
getEncodingSchema(): Schema;
|
|
1490
|
+
toEncodingData(): Map<string, unknown>;
|
|
1491
|
+
static fromEncodingData(data: unknown): ErrorResponse;
|
|
1374
1492
|
}
|
|
1375
1493
|
/**
|
|
1376
1494
|
* Represents a TEAL value delta.
|
|
1377
1495
|
*/
|
|
1378
|
-
export declare class EvalDelta
|
|
1496
|
+
export declare class EvalDelta implements Encodable {
|
|
1497
|
+
private static encodingSchemaValue;
|
|
1498
|
+
static get encodingSchema(): Schema;
|
|
1379
1499
|
/**
|
|
1380
1500
|
* (at) delta action.
|
|
1381
1501
|
*/
|
|
1382
|
-
action: number
|
|
1502
|
+
action: number;
|
|
1383
1503
|
/**
|
|
1384
1504
|
* (bs) bytes value.
|
|
1385
1505
|
*/
|
|
@@ -1387,7 +1507,7 @@ export declare class EvalDelta extends BaseModel {
|
|
|
1387
1507
|
/**
|
|
1388
1508
|
* (ui) uint value.
|
|
1389
1509
|
*/
|
|
1390
|
-
uint?:
|
|
1510
|
+
uint?: bigint;
|
|
1391
1511
|
/**
|
|
1392
1512
|
* Creates a new `EvalDelta` object.
|
|
1393
1513
|
* @param action - (at) delta action.
|
|
@@ -1399,12 +1519,16 @@ export declare class EvalDelta extends BaseModel {
|
|
|
1399
1519
|
bytes?: string;
|
|
1400
1520
|
uint?: number | bigint;
|
|
1401
1521
|
});
|
|
1402
|
-
|
|
1522
|
+
getEncodingSchema(): Schema;
|
|
1523
|
+
toEncodingData(): Map<string, unknown>;
|
|
1524
|
+
static fromEncodingData(data: unknown): EvalDelta;
|
|
1403
1525
|
}
|
|
1404
1526
|
/**
|
|
1405
1527
|
* Key-value pairs for StateDelta.
|
|
1406
1528
|
*/
|
|
1407
|
-
export declare class EvalDeltaKeyValue
|
|
1529
|
+
export declare class EvalDeltaKeyValue implements Encodable {
|
|
1530
|
+
private static encodingSchemaValue;
|
|
1531
|
+
static get encodingSchema(): Schema;
|
|
1408
1532
|
key: string;
|
|
1409
1533
|
/**
|
|
1410
1534
|
* Represents a TEAL value delta.
|
|
@@ -1419,13 +1543,17 @@ export declare class EvalDeltaKeyValue extends BaseModel {
|
|
|
1419
1543
|
key: string;
|
|
1420
1544
|
value: EvalDelta;
|
|
1421
1545
|
});
|
|
1422
|
-
|
|
1546
|
+
getEncodingSchema(): Schema;
|
|
1547
|
+
toEncodingData(): Map<string, unknown>;
|
|
1548
|
+
static fromEncodingData(data: unknown): EvalDeltaKeyValue;
|
|
1423
1549
|
}
|
|
1424
|
-
export declare class HashFactory
|
|
1550
|
+
export declare class HashFactory implements Encodable {
|
|
1551
|
+
private static encodingSchemaValue;
|
|
1552
|
+
static get encodingSchema(): Schema;
|
|
1425
1553
|
/**
|
|
1426
1554
|
* (t)
|
|
1427
1555
|
*/
|
|
1428
|
-
hashType?: number
|
|
1556
|
+
hashType?: number;
|
|
1429
1557
|
/**
|
|
1430
1558
|
* Creates a new `HashFactory` object.
|
|
1431
1559
|
* @param hashType - (t)
|
|
@@ -1433,21 +1561,25 @@ export declare class HashFactory extends BaseModel {
|
|
|
1433
1561
|
constructor({ hashType }: {
|
|
1434
1562
|
hashType?: number | bigint;
|
|
1435
1563
|
});
|
|
1436
|
-
|
|
1564
|
+
getEncodingSchema(): Schema;
|
|
1565
|
+
toEncodingData(): Map<string, unknown>;
|
|
1566
|
+
static fromEncodingData(data: unknown): HashFactory;
|
|
1437
1567
|
}
|
|
1438
1568
|
/**
|
|
1439
1569
|
* A health check response.
|
|
1440
1570
|
*/
|
|
1441
|
-
export declare class HealthCheck
|
|
1571
|
+
export declare class HealthCheck implements Encodable {
|
|
1572
|
+
private static encodingSchemaValue;
|
|
1573
|
+
static get encodingSchema(): Schema;
|
|
1442
1574
|
dbAvailable: boolean;
|
|
1443
1575
|
isMigrating: boolean;
|
|
1444
1576
|
message: string;
|
|
1445
|
-
round:
|
|
1577
|
+
round: bigint;
|
|
1446
1578
|
/**
|
|
1447
1579
|
* Current version.
|
|
1448
1580
|
*/
|
|
1449
1581
|
version: string;
|
|
1450
|
-
data?:
|
|
1582
|
+
data?: UntypedValue;
|
|
1451
1583
|
errors?: string[];
|
|
1452
1584
|
/**
|
|
1453
1585
|
* Creates a new `HealthCheck` object.
|
|
@@ -1465,12 +1597,16 @@ export declare class HealthCheck extends BaseModel {
|
|
|
1465
1597
|
message: string;
|
|
1466
1598
|
round: number | bigint;
|
|
1467
1599
|
version: string;
|
|
1468
|
-
data?:
|
|
1600
|
+
data?: UntypedValue;
|
|
1469
1601
|
errors?: string[];
|
|
1470
1602
|
});
|
|
1471
|
-
|
|
1603
|
+
getEncodingSchema(): Schema;
|
|
1604
|
+
toEncodingData(): Map<string, unknown>;
|
|
1605
|
+
static fromEncodingData(data: unknown): HealthCheck;
|
|
1472
1606
|
}
|
|
1473
|
-
export declare class IndexerStateProofMessage
|
|
1607
|
+
export declare class IndexerStateProofMessage implements Encodable {
|
|
1608
|
+
private static encodingSchemaValue;
|
|
1609
|
+
static get encodingSchema(): Schema;
|
|
1474
1610
|
/**
|
|
1475
1611
|
* (b)
|
|
1476
1612
|
*/
|
|
@@ -1478,15 +1614,15 @@ export declare class IndexerStateProofMessage extends BaseModel {
|
|
|
1478
1614
|
/**
|
|
1479
1615
|
* (f)
|
|
1480
1616
|
*/
|
|
1481
|
-
firstAttestedRound?:
|
|
1617
|
+
firstAttestedRound?: bigint;
|
|
1482
1618
|
/**
|
|
1483
1619
|
* (l)
|
|
1484
1620
|
*/
|
|
1485
|
-
latestAttestedRound?:
|
|
1621
|
+
latestAttestedRound?: bigint;
|
|
1486
1622
|
/**
|
|
1487
1623
|
* (P)
|
|
1488
1624
|
*/
|
|
1489
|
-
lnProvenWeight?:
|
|
1625
|
+
lnProvenWeight?: bigint;
|
|
1490
1626
|
/**
|
|
1491
1627
|
* (v)
|
|
1492
1628
|
*/
|
|
@@ -1506,9 +1642,13 @@ export declare class IndexerStateProofMessage extends BaseModel {
|
|
|
1506
1642
|
lnProvenWeight?: number | bigint;
|
|
1507
1643
|
votersCommitment?: string | Uint8Array;
|
|
1508
1644
|
});
|
|
1509
|
-
|
|
1645
|
+
getEncodingSchema(): Schema;
|
|
1646
|
+
toEncodingData(): Map<string, unknown>;
|
|
1647
|
+
static fromEncodingData(data: unknown): IndexerStateProofMessage;
|
|
1510
1648
|
}
|
|
1511
|
-
export declare class MerkleArrayProof
|
|
1649
|
+
export declare class MerkleArrayProof implements Encodable {
|
|
1650
|
+
private static encodingSchemaValue;
|
|
1651
|
+
static get encodingSchema(): Schema;
|
|
1512
1652
|
hashFactory?: HashFactory;
|
|
1513
1653
|
/**
|
|
1514
1654
|
* (pth)
|
|
@@ -1517,7 +1657,7 @@ export declare class MerkleArrayProof extends BaseModel {
|
|
|
1517
1657
|
/**
|
|
1518
1658
|
* (td)
|
|
1519
1659
|
*/
|
|
1520
|
-
treeDepth?: number
|
|
1660
|
+
treeDepth?: number;
|
|
1521
1661
|
/**
|
|
1522
1662
|
* Creates a new `MerkleArrayProof` object.
|
|
1523
1663
|
* @param hashFactory -
|
|
@@ -1529,14 +1669,18 @@ export declare class MerkleArrayProof extends BaseModel {
|
|
|
1529
1669
|
path?: Uint8Array[];
|
|
1530
1670
|
treeDepth?: number | bigint;
|
|
1531
1671
|
});
|
|
1532
|
-
|
|
1672
|
+
getEncodingSchema(): Schema;
|
|
1673
|
+
toEncodingData(): Map<string, unknown>;
|
|
1674
|
+
static fromEncodingData(data: unknown): MerkleArrayProof;
|
|
1533
1675
|
}
|
|
1534
1676
|
/**
|
|
1535
1677
|
* A simplified version of AssetHolding
|
|
1536
1678
|
*/
|
|
1537
|
-
export declare class MiniAssetHolding
|
|
1679
|
+
export declare class MiniAssetHolding implements Encodable {
|
|
1680
|
+
private static encodingSchemaValue;
|
|
1681
|
+
static get encodingSchema(): Schema;
|
|
1538
1682
|
address: string;
|
|
1539
|
-
amount:
|
|
1683
|
+
amount: bigint;
|
|
1540
1684
|
isFrozen: boolean;
|
|
1541
1685
|
/**
|
|
1542
1686
|
* Whether or not this asset holding is currently deleted from its account.
|
|
@@ -1545,11 +1689,11 @@ export declare class MiniAssetHolding extends BaseModel {
|
|
|
1545
1689
|
/**
|
|
1546
1690
|
* Round during which the account opted into the asset.
|
|
1547
1691
|
*/
|
|
1548
|
-
optedInAtRound?:
|
|
1692
|
+
optedInAtRound?: bigint;
|
|
1549
1693
|
/**
|
|
1550
1694
|
* Round during which the account opted out of the asset.
|
|
1551
1695
|
*/
|
|
1552
|
-
optedOutAtRound?:
|
|
1696
|
+
optedOutAtRound?: bigint;
|
|
1553
1697
|
/**
|
|
1554
1698
|
* Creates a new `MiniAssetHolding` object.
|
|
1555
1699
|
* @param address -
|
|
@@ -1567,12 +1711,16 @@ export declare class MiniAssetHolding extends BaseModel {
|
|
|
1567
1711
|
optedInAtRound?: number | bigint;
|
|
1568
1712
|
optedOutAtRound?: number | bigint;
|
|
1569
1713
|
});
|
|
1570
|
-
|
|
1714
|
+
getEncodingSchema(): Schema;
|
|
1715
|
+
toEncodingData(): Map<string, unknown>;
|
|
1716
|
+
static fromEncodingData(data: unknown): MiniAssetHolding;
|
|
1571
1717
|
}
|
|
1572
1718
|
/**
|
|
1573
1719
|
* Participation account data that needs to be checked/acted on by the network.
|
|
1574
1720
|
*/
|
|
1575
|
-
export declare class ParticipationUpdates
|
|
1721
|
+
export declare class ParticipationUpdates implements Encodable {
|
|
1722
|
+
private static encodingSchemaValue;
|
|
1723
|
+
static get encodingSchema(): Schema;
|
|
1576
1724
|
/**
|
|
1577
1725
|
* (partupabs) a list of online accounts that need to be suspended.
|
|
1578
1726
|
*/
|
|
@@ -1592,14 +1740,18 @@ export declare class ParticipationUpdates extends BaseModel {
|
|
|
1592
1740
|
absentParticipationAccounts?: string[];
|
|
1593
1741
|
expiredParticipationAccounts?: string[];
|
|
1594
1742
|
});
|
|
1595
|
-
|
|
1743
|
+
getEncodingSchema(): Schema;
|
|
1744
|
+
toEncodingData(): Map<string, unknown>;
|
|
1745
|
+
static fromEncodingData(data: unknown): ParticipationUpdates;
|
|
1596
1746
|
}
|
|
1597
1747
|
/**
|
|
1598
1748
|
* (sp) represents a state proof.
|
|
1599
1749
|
* Definition:
|
|
1600
1750
|
* crypto/stateproof/structs.go : StateProof
|
|
1601
1751
|
*/
|
|
1602
|
-
export declare class StateProofFields
|
|
1752
|
+
export declare class StateProofFields implements Encodable {
|
|
1753
|
+
private static encodingSchemaValue;
|
|
1754
|
+
static get encodingSchema(): Schema;
|
|
1603
1755
|
/**
|
|
1604
1756
|
* (P)
|
|
1605
1757
|
*/
|
|
@@ -1607,7 +1759,7 @@ export declare class StateProofFields extends BaseModel {
|
|
|
1607
1759
|
/**
|
|
1608
1760
|
* (pr) Sequence of reveal positions.
|
|
1609
1761
|
*/
|
|
1610
|
-
positionsToReveal?:
|
|
1762
|
+
positionsToReveal?: bigint[];
|
|
1611
1763
|
/**
|
|
1612
1764
|
* (r) Note that this is actually stored as a map[uint64] - Reveal in the actual
|
|
1613
1765
|
* msgp
|
|
@@ -1616,7 +1768,7 @@ export declare class StateProofFields extends BaseModel {
|
|
|
1616
1768
|
/**
|
|
1617
1769
|
* (v) Salt version of the merkle signature.
|
|
1618
1770
|
*/
|
|
1619
|
-
saltVersion?: number
|
|
1771
|
+
saltVersion?: number;
|
|
1620
1772
|
/**
|
|
1621
1773
|
* (c)
|
|
1622
1774
|
*/
|
|
@@ -1628,7 +1780,7 @@ export declare class StateProofFields extends BaseModel {
|
|
|
1628
1780
|
/**
|
|
1629
1781
|
* (w)
|
|
1630
1782
|
*/
|
|
1631
|
-
signedWeight?:
|
|
1783
|
+
signedWeight?: bigint;
|
|
1632
1784
|
/**
|
|
1633
1785
|
* Creates a new `StateProofFields` object.
|
|
1634
1786
|
* @param partProofs - (P)
|
|
@@ -1649,9 +1801,13 @@ export declare class StateProofFields extends BaseModel {
|
|
|
1649
1801
|
sigProofs?: MerkleArrayProof;
|
|
1650
1802
|
signedWeight?: number | bigint;
|
|
1651
1803
|
});
|
|
1652
|
-
|
|
1804
|
+
getEncodingSchema(): Schema;
|
|
1805
|
+
toEncodingData(): Map<string, unknown>;
|
|
1806
|
+
static fromEncodingData(data: unknown): StateProofFields;
|
|
1653
1807
|
}
|
|
1654
|
-
export declare class StateProofParticipant
|
|
1808
|
+
export declare class StateProofParticipant implements Encodable {
|
|
1809
|
+
private static encodingSchemaValue;
|
|
1810
|
+
static get encodingSchema(): Schema;
|
|
1655
1811
|
/**
|
|
1656
1812
|
* (p)
|
|
1657
1813
|
*/
|
|
@@ -1659,7 +1815,7 @@ export declare class StateProofParticipant extends BaseModel {
|
|
|
1659
1815
|
/**
|
|
1660
1816
|
* (w)
|
|
1661
1817
|
*/
|
|
1662
|
-
weight?:
|
|
1818
|
+
weight?: bigint;
|
|
1663
1819
|
/**
|
|
1664
1820
|
* Creates a new `StateProofParticipant` object.
|
|
1665
1821
|
* @param verifier - (p)
|
|
@@ -1669,9 +1825,13 @@ export declare class StateProofParticipant extends BaseModel {
|
|
|
1669
1825
|
verifier?: StateProofVerifier;
|
|
1670
1826
|
weight?: number | bigint;
|
|
1671
1827
|
});
|
|
1672
|
-
|
|
1828
|
+
getEncodingSchema(): Schema;
|
|
1829
|
+
toEncodingData(): Map<string, unknown>;
|
|
1830
|
+
static fromEncodingData(data: unknown): StateProofParticipant;
|
|
1673
1831
|
}
|
|
1674
|
-
export declare class StateProofReveal
|
|
1832
|
+
export declare class StateProofReveal implements Encodable {
|
|
1833
|
+
private static encodingSchemaValue;
|
|
1834
|
+
static get encodingSchema(): Schema;
|
|
1675
1835
|
/**
|
|
1676
1836
|
* (p)
|
|
1677
1837
|
*/
|
|
@@ -1680,7 +1840,7 @@ export declare class StateProofReveal extends BaseModel {
|
|
|
1680
1840
|
* The position in the signature and participants arrays corresponding to this
|
|
1681
1841
|
* entry.
|
|
1682
1842
|
*/
|
|
1683
|
-
position?:
|
|
1843
|
+
position?: bigint;
|
|
1684
1844
|
/**
|
|
1685
1845
|
* (s)
|
|
1686
1846
|
*/
|
|
@@ -1697,13 +1857,17 @@ export declare class StateProofReveal extends BaseModel {
|
|
|
1697
1857
|
position?: number | bigint;
|
|
1698
1858
|
sigSlot?: StateProofSigSlot;
|
|
1699
1859
|
});
|
|
1700
|
-
|
|
1860
|
+
getEncodingSchema(): Schema;
|
|
1861
|
+
toEncodingData(): Map<string, unknown>;
|
|
1862
|
+
static fromEncodingData(data: unknown): StateProofReveal;
|
|
1701
1863
|
}
|
|
1702
|
-
export declare class StateProofSigSlot
|
|
1864
|
+
export declare class StateProofSigSlot implements Encodable {
|
|
1865
|
+
private static encodingSchemaValue;
|
|
1866
|
+
static get encodingSchema(): Schema;
|
|
1703
1867
|
/**
|
|
1704
1868
|
* (l) The total weight of signatures in the lower-numbered slots.
|
|
1705
1869
|
*/
|
|
1706
|
-
lowerSigWeight?:
|
|
1870
|
+
lowerSigWeight?: bigint;
|
|
1707
1871
|
signature?: StateProofSignature;
|
|
1708
1872
|
/**
|
|
1709
1873
|
* Creates a new `StateProofSigSlot` object.
|
|
@@ -1714,11 +1878,15 @@ export declare class StateProofSigSlot extends BaseModel {
|
|
|
1714
1878
|
lowerSigWeight?: number | bigint;
|
|
1715
1879
|
signature?: StateProofSignature;
|
|
1716
1880
|
});
|
|
1717
|
-
|
|
1881
|
+
getEncodingSchema(): Schema;
|
|
1882
|
+
toEncodingData(): Map<string, unknown>;
|
|
1883
|
+
static fromEncodingData(data: unknown): StateProofSigSlot;
|
|
1718
1884
|
}
|
|
1719
|
-
export declare class StateProofSignature
|
|
1885
|
+
export declare class StateProofSignature implements Encodable {
|
|
1886
|
+
private static encodingSchemaValue;
|
|
1887
|
+
static get encodingSchema(): Schema;
|
|
1720
1888
|
falconSignature?: Uint8Array;
|
|
1721
|
-
merkleArrayIndex?: number
|
|
1889
|
+
merkleArrayIndex?: number;
|
|
1722
1890
|
proof?: MerkleArrayProof;
|
|
1723
1891
|
/**
|
|
1724
1892
|
* (vkey)
|
|
@@ -1737,22 +1905,26 @@ export declare class StateProofSignature extends BaseModel {
|
|
|
1737
1905
|
proof?: MerkleArrayProof;
|
|
1738
1906
|
verifyingKey?: string | Uint8Array;
|
|
1739
1907
|
});
|
|
1740
|
-
|
|
1908
|
+
getEncodingSchema(): Schema;
|
|
1909
|
+
toEncodingData(): Map<string, unknown>;
|
|
1910
|
+
static fromEncodingData(data: unknown): StateProofSignature;
|
|
1741
1911
|
}
|
|
1742
|
-
export declare class StateProofTracking
|
|
1912
|
+
export declare class StateProofTracking implements Encodable {
|
|
1913
|
+
private static encodingSchemaValue;
|
|
1914
|
+
static get encodingSchema(): Schema;
|
|
1743
1915
|
/**
|
|
1744
1916
|
* (n) Next round for which we will accept a state proof transaction.
|
|
1745
1917
|
*/
|
|
1746
|
-
nextRound?:
|
|
1918
|
+
nextRound?: bigint;
|
|
1747
1919
|
/**
|
|
1748
1920
|
* (t) The total number of microalgos held by the online accounts during the
|
|
1749
1921
|
* StateProof round.
|
|
1750
1922
|
*/
|
|
1751
|
-
onlineTotalWeight?:
|
|
1923
|
+
onlineTotalWeight?: bigint;
|
|
1752
1924
|
/**
|
|
1753
1925
|
* State Proof Type. Note the raw object uses map with this as key.
|
|
1754
1926
|
*/
|
|
1755
|
-
type?: number
|
|
1927
|
+
type?: number;
|
|
1756
1928
|
/**
|
|
1757
1929
|
* (v) Root of a vector commitment containing online accounts that will help sign
|
|
1758
1930
|
* the proof.
|
|
@@ -1773,9 +1945,13 @@ export declare class StateProofTracking extends BaseModel {
|
|
|
1773
1945
|
type?: number | bigint;
|
|
1774
1946
|
votersCommitment?: string | Uint8Array;
|
|
1775
1947
|
});
|
|
1776
|
-
|
|
1948
|
+
getEncodingSchema(): Schema;
|
|
1949
|
+
toEncodingData(): Map<string, unknown>;
|
|
1950
|
+
static fromEncodingData(data: unknown): StateProofTracking;
|
|
1777
1951
|
}
|
|
1778
|
-
export declare class StateProofVerifier
|
|
1952
|
+
export declare class StateProofVerifier implements Encodable {
|
|
1953
|
+
private static encodingSchemaValue;
|
|
1954
|
+
static get encodingSchema(): Schema;
|
|
1779
1955
|
/**
|
|
1780
1956
|
* (cmt) Represents the root of the vector commitment tree.
|
|
1781
1957
|
*/
|
|
@@ -1783,7 +1959,7 @@ export declare class StateProofVerifier extends BaseModel {
|
|
|
1783
1959
|
/**
|
|
1784
1960
|
* (lf) Key lifetime.
|
|
1785
1961
|
*/
|
|
1786
|
-
keyLifetime?:
|
|
1962
|
+
keyLifetime?: bigint;
|
|
1787
1963
|
/**
|
|
1788
1964
|
* Creates a new `StateProofVerifier` object.
|
|
1789
1965
|
* @param commitment - (cmt) Represents the root of the vector commitment tree.
|
|
@@ -1793,7 +1969,9 @@ export declare class StateProofVerifier extends BaseModel {
|
|
|
1793
1969
|
commitment?: string | Uint8Array;
|
|
1794
1970
|
keyLifetime?: number | bigint;
|
|
1795
1971
|
});
|
|
1796
|
-
|
|
1972
|
+
getEncodingSchema(): Schema;
|
|
1973
|
+
toEncodingData(): Map<string, unknown>;
|
|
1974
|
+
static fromEncodingData(data: unknown): StateProofVerifier;
|
|
1797
1975
|
}
|
|
1798
1976
|
/**
|
|
1799
1977
|
* Represents a (apls) local-state or (apgs) global-state schema. These schemas
|
|
@@ -1801,15 +1979,17 @@ export declare class StateProofVerifier extends BaseModel {
|
|
|
1801
1979
|
* application. The more space used, the larger minimum balance must be maintained
|
|
1802
1980
|
* in the account holding the data.
|
|
1803
1981
|
*/
|
|
1804
|
-
export declare class StateSchema
|
|
1982
|
+
export declare class StateSchema implements Encodable {
|
|
1983
|
+
private static encodingSchemaValue;
|
|
1984
|
+
static get encodingSchema(): Schema;
|
|
1805
1985
|
/**
|
|
1806
1986
|
* Maximum number of TEAL byte slices that may be stored in the key/value store.
|
|
1807
1987
|
*/
|
|
1808
|
-
numByteSlice: number
|
|
1988
|
+
numByteSlice: number;
|
|
1809
1989
|
/**
|
|
1810
1990
|
* Maximum number of TEAL uints that may be stored in the key/value store.
|
|
1811
1991
|
*/
|
|
1812
|
-
numUint: number
|
|
1992
|
+
numUint: number;
|
|
1813
1993
|
/**
|
|
1814
1994
|
* Creates a new `StateSchema` object.
|
|
1815
1995
|
* @param numByteSlice - Maximum number of TEAL byte slices that may be stored in the key/value store.
|
|
@@ -1819,13 +1999,17 @@ export declare class StateSchema extends BaseModel {
|
|
|
1819
1999
|
numByteSlice: number | bigint;
|
|
1820
2000
|
numUint: number | bigint;
|
|
1821
2001
|
});
|
|
1822
|
-
|
|
2002
|
+
getEncodingSchema(): Schema;
|
|
2003
|
+
toEncodingData(): Map<string, unknown>;
|
|
2004
|
+
static fromEncodingData(data: unknown): StateSchema;
|
|
1823
2005
|
}
|
|
1824
2006
|
/**
|
|
1825
2007
|
* Represents a key-value pair in an application store.
|
|
1826
2008
|
*/
|
|
1827
|
-
export declare class TealKeyValue
|
|
1828
|
-
|
|
2009
|
+
export declare class TealKeyValue implements Encodable {
|
|
2010
|
+
private static encodingSchemaValue;
|
|
2011
|
+
static get encodingSchema(): Schema;
|
|
2012
|
+
key: Uint8Array;
|
|
1829
2013
|
/**
|
|
1830
2014
|
* Represents a TEAL value.
|
|
1831
2015
|
*/
|
|
@@ -1836,27 +2020,31 @@ export declare class TealKeyValue extends BaseModel {
|
|
|
1836
2020
|
* @param value - Represents a TEAL value.
|
|
1837
2021
|
*/
|
|
1838
2022
|
constructor({ key, value }: {
|
|
1839
|
-
key: string;
|
|
2023
|
+
key: string | Uint8Array;
|
|
1840
2024
|
value: TealValue;
|
|
1841
2025
|
});
|
|
1842
|
-
|
|
2026
|
+
getEncodingSchema(): Schema;
|
|
2027
|
+
toEncodingData(): Map<string, unknown>;
|
|
2028
|
+
static fromEncodingData(data: unknown): TealKeyValue;
|
|
1843
2029
|
}
|
|
1844
2030
|
/**
|
|
1845
2031
|
* Represents a TEAL value.
|
|
1846
2032
|
*/
|
|
1847
|
-
export declare class TealValue
|
|
2033
|
+
export declare class TealValue implements Encodable {
|
|
2034
|
+
private static encodingSchemaValue;
|
|
2035
|
+
static get encodingSchema(): Schema;
|
|
1848
2036
|
/**
|
|
1849
2037
|
* bytes value.
|
|
1850
2038
|
*/
|
|
1851
|
-
bytes:
|
|
2039
|
+
bytes: Uint8Array;
|
|
1852
2040
|
/**
|
|
1853
2041
|
* type of the value. Value `1` refers to **bytes**, value `2` refers to **uint**
|
|
1854
2042
|
*/
|
|
1855
|
-
type: number
|
|
2043
|
+
type: number;
|
|
1856
2044
|
/**
|
|
1857
2045
|
* uint value.
|
|
1858
2046
|
*/
|
|
1859
|
-
uint:
|
|
2047
|
+
uint: bigint;
|
|
1860
2048
|
/**
|
|
1861
2049
|
* Creates a new `TealValue` object.
|
|
1862
2050
|
* @param bytes - bytes value.
|
|
@@ -1864,11 +2052,13 @@ export declare class TealValue extends BaseModel {
|
|
|
1864
2052
|
* @param uint - uint value.
|
|
1865
2053
|
*/
|
|
1866
2054
|
constructor({ bytes, type, uint, }: {
|
|
1867
|
-
bytes: string;
|
|
2055
|
+
bytes: string | Uint8Array;
|
|
1868
2056
|
type: number | bigint;
|
|
1869
2057
|
uint: number | bigint;
|
|
1870
2058
|
});
|
|
1871
|
-
|
|
2059
|
+
getEncodingSchema(): Schema;
|
|
2060
|
+
toEncodingData(): Map<string, unknown>;
|
|
2061
|
+
static fromEncodingData(data: unknown): TealValue;
|
|
1872
2062
|
}
|
|
1873
2063
|
/**
|
|
1874
2064
|
* Contains all fields common to all transactions and serves as an envelope to all
|
|
@@ -1877,19 +2067,21 @@ export declare class TealValue extends BaseModel {
|
|
|
1877
2067
|
* data/transactions/signedtxn.go : SignedTxn
|
|
1878
2068
|
* data/transactions/transaction.go : Transaction
|
|
1879
2069
|
*/
|
|
1880
|
-
export declare class Transaction
|
|
2070
|
+
export declare class Transaction implements Encodable {
|
|
2071
|
+
private static encodingSchemaValue;
|
|
2072
|
+
static get encodingSchema(): Schema;
|
|
1881
2073
|
/**
|
|
1882
2074
|
* (fee) Transaction fee.
|
|
1883
2075
|
*/
|
|
1884
|
-
fee:
|
|
2076
|
+
fee: bigint;
|
|
1885
2077
|
/**
|
|
1886
2078
|
* (fv) First valid round for this transaction.
|
|
1887
2079
|
*/
|
|
1888
|
-
firstValid:
|
|
2080
|
+
firstValid: bigint;
|
|
1889
2081
|
/**
|
|
1890
2082
|
* (lv) Last valid round for this transaction.
|
|
1891
2083
|
*/
|
|
1892
|
-
lastValid:
|
|
2084
|
+
lastValid: bigint;
|
|
1893
2085
|
/**
|
|
1894
2086
|
* (snd) Sender's address.
|
|
1895
2087
|
*/
|
|
@@ -1925,28 +2117,28 @@ export declare class Transaction extends BaseModel {
|
|
|
1925
2117
|
* not equal the sender. The backend can use this to ensure that auth addr is equal
|
|
1926
2118
|
* to the accounts auth addr.
|
|
1927
2119
|
*/
|
|
1928
|
-
authAddr?:
|
|
2120
|
+
authAddr?: Address;
|
|
1929
2121
|
/**
|
|
1930
2122
|
* (rc) rewards applied to close-remainder-to account.
|
|
1931
2123
|
*/
|
|
1932
|
-
closeRewards?:
|
|
2124
|
+
closeRewards?: bigint;
|
|
1933
2125
|
/**
|
|
1934
2126
|
* (ca) closing amount for transaction.
|
|
1935
2127
|
*/
|
|
1936
|
-
closingAmount?:
|
|
2128
|
+
closingAmount?: bigint;
|
|
1937
2129
|
/**
|
|
1938
2130
|
* Round when the transaction was confirmed.
|
|
1939
2131
|
*/
|
|
1940
|
-
confirmedRound?:
|
|
2132
|
+
confirmedRound?: bigint;
|
|
1941
2133
|
/**
|
|
1942
2134
|
* Specifies an application index (ID) if an application was created with this
|
|
1943
2135
|
* transaction.
|
|
1944
2136
|
*/
|
|
1945
|
-
createdApplicationIndex?:
|
|
2137
|
+
createdApplicationIndex?: bigint;
|
|
1946
2138
|
/**
|
|
1947
2139
|
* Specifies an asset index (ID) if an asset was created with this transaction.
|
|
1948
2140
|
*/
|
|
1949
|
-
createdAssetIndex?:
|
|
2141
|
+
createdAssetIndex?: bigint;
|
|
1950
2142
|
/**
|
|
1951
2143
|
* (gh) Hash of genesis block.
|
|
1952
2144
|
*/
|
|
@@ -1977,7 +2169,7 @@ export declare class Transaction extends BaseModel {
|
|
|
1977
2169
|
/**
|
|
1978
2170
|
* Offset into the round where this transaction was confirmed.
|
|
1979
2171
|
*/
|
|
1980
|
-
intraRoundOffset?: number
|
|
2172
|
+
intraRoundOffset?: number;
|
|
1981
2173
|
/**
|
|
1982
2174
|
* Fields for a keyreg transaction.
|
|
1983
2175
|
* Definition:
|
|
@@ -2014,21 +2206,21 @@ export declare class Transaction extends BaseModel {
|
|
|
2014
2206
|
/**
|
|
2015
2207
|
* (rr) rewards applied to receiver account.
|
|
2016
2208
|
*/
|
|
2017
|
-
receiverRewards?:
|
|
2209
|
+
receiverRewards?: bigint;
|
|
2018
2210
|
/**
|
|
2019
2211
|
* (rekey) when included in a valid transaction, the accounts auth addr will be
|
|
2020
2212
|
* updated with this value and future signatures must be signed with the key
|
|
2021
2213
|
* represented by this address.
|
|
2022
2214
|
*/
|
|
2023
|
-
rekeyTo?:
|
|
2215
|
+
rekeyTo?: Address;
|
|
2024
2216
|
/**
|
|
2025
2217
|
* Time when the block this transaction is in was confirmed.
|
|
2026
2218
|
*/
|
|
2027
|
-
roundTime?: number
|
|
2219
|
+
roundTime?: number;
|
|
2028
2220
|
/**
|
|
2029
2221
|
* (rs) rewards applied to sender account.
|
|
2030
2222
|
*/
|
|
2031
|
-
senderRewards?:
|
|
2223
|
+
senderRewards?: bigint;
|
|
2032
2224
|
/**
|
|
2033
2225
|
* Validation signature associated with some data. Only one of the signatures
|
|
2034
2226
|
* should be provided.
|
|
@@ -2138,7 +2330,7 @@ export declare class Transaction extends BaseModel {
|
|
|
2138
2330
|
assetConfigTransaction?: TransactionAssetConfig;
|
|
2139
2331
|
assetFreezeTransaction?: TransactionAssetFreeze;
|
|
2140
2332
|
assetTransferTransaction?: TransactionAssetTransfer;
|
|
2141
|
-
authAddr?: string;
|
|
2333
|
+
authAddr?: Address | string;
|
|
2142
2334
|
closeRewards?: number | bigint;
|
|
2143
2335
|
closingAmount?: number | bigint;
|
|
2144
2336
|
confirmedRound?: number | bigint;
|
|
@@ -2158,30 +2350,34 @@ export declare class Transaction extends BaseModel {
|
|
|
2158
2350
|
note?: string | Uint8Array;
|
|
2159
2351
|
paymentTransaction?: TransactionPayment;
|
|
2160
2352
|
receiverRewards?: number | bigint;
|
|
2161
|
-
rekeyTo?: string;
|
|
2353
|
+
rekeyTo?: Address | string;
|
|
2162
2354
|
roundTime?: number | bigint;
|
|
2163
2355
|
senderRewards?: number | bigint;
|
|
2164
2356
|
signature?: TransactionSignature;
|
|
2165
2357
|
stateProofTransaction?: TransactionStateProof;
|
|
2166
2358
|
txType?: string;
|
|
2167
2359
|
});
|
|
2168
|
-
|
|
2360
|
+
getEncodingSchema(): Schema;
|
|
2361
|
+
toEncodingData(): Map<string, unknown>;
|
|
2362
|
+
static fromEncodingData(data: unknown): Transaction;
|
|
2169
2363
|
}
|
|
2170
2364
|
/**
|
|
2171
2365
|
* Fields for application transactions.
|
|
2172
2366
|
* Definition:
|
|
2173
2367
|
* data/transactions/application.go : ApplicationCallTxnFields
|
|
2174
2368
|
*/
|
|
2175
|
-
export declare class TransactionApplication
|
|
2369
|
+
export declare class TransactionApplication implements Encodable {
|
|
2370
|
+
private static encodingSchemaValue;
|
|
2371
|
+
static get encodingSchema(): Schema;
|
|
2176
2372
|
/**
|
|
2177
2373
|
* (apid) ID of the application being configured or empty if creating.
|
|
2178
2374
|
*/
|
|
2179
|
-
applicationId:
|
|
2375
|
+
applicationId: bigint;
|
|
2180
2376
|
/**
|
|
2181
2377
|
* (apat) List of accounts in addition to the sender that may be accessed from the
|
|
2182
2378
|
* application's approval-program and clear-state-program.
|
|
2183
2379
|
*/
|
|
2184
|
-
accounts?:
|
|
2380
|
+
accounts?: Address[];
|
|
2185
2381
|
/**
|
|
2186
2382
|
* (apaa) transaction specific arguments accessed from the application's
|
|
2187
2383
|
* approval-program and clear-state-program.
|
|
@@ -2204,18 +2400,18 @@ export declare class TransactionApplication extends BaseModel {
|
|
|
2204
2400
|
/**
|
|
2205
2401
|
* (epp) specifies the additional app program len requested in pages.
|
|
2206
2402
|
*/
|
|
2207
|
-
extraProgramPages?: number
|
|
2403
|
+
extraProgramPages?: number;
|
|
2208
2404
|
/**
|
|
2209
2405
|
* (apfa) Lists the applications in addition to the application-id whose global
|
|
2210
2406
|
* states may be accessed by this application's approval-program and
|
|
2211
2407
|
* clear-state-program. The access is read-only.
|
|
2212
2408
|
*/
|
|
2213
|
-
foreignApps?:
|
|
2409
|
+
foreignApps?: bigint[];
|
|
2214
2410
|
/**
|
|
2215
2411
|
* (apas) lists the assets whose parameters may be accessed by this application's
|
|
2216
2412
|
* ApprovalProgram and ClearStateProgram. The access is read-only.
|
|
2217
2413
|
*/
|
|
2218
|
-
foreignAssets?:
|
|
2414
|
+
foreignAssets?: bigint[];
|
|
2219
2415
|
/**
|
|
2220
2416
|
* Represents a (apls) local-state or (apgs) global-state schema. These schemas
|
|
2221
2417
|
* determine how much storage may be used in a local-state or global-state for an
|
|
@@ -2283,7 +2479,7 @@ export declare class TransactionApplication extends BaseModel {
|
|
|
2283
2479
|
*/
|
|
2284
2480
|
constructor({ applicationId, accounts, applicationArgs, approvalProgram, clearStateProgram, extraProgramPages, foreignApps, foreignAssets, globalStateSchema, localStateSchema, onCompletion, }: {
|
|
2285
2481
|
applicationId: number | bigint;
|
|
2286
|
-
accounts?: string[];
|
|
2482
|
+
accounts?: (Address | string)[];
|
|
2287
2483
|
applicationArgs?: Uint8Array[];
|
|
2288
2484
|
approvalProgram?: string | Uint8Array;
|
|
2289
2485
|
clearStateProgram?: string | Uint8Array;
|
|
@@ -2294,7 +2490,9 @@ export declare class TransactionApplication extends BaseModel {
|
|
|
2294
2490
|
localStateSchema?: StateSchema;
|
|
2295
2491
|
onCompletion?: string;
|
|
2296
2492
|
});
|
|
2297
|
-
|
|
2493
|
+
getEncodingSchema(): Schema;
|
|
2494
|
+
toEncodingData(): Map<string, unknown>;
|
|
2495
|
+
static fromEncodingData(data: unknown): TransactionApplication;
|
|
2298
2496
|
}
|
|
2299
2497
|
/**
|
|
2300
2498
|
* Fields for asset allocation, re-configuration, and destruction.
|
|
@@ -2303,11 +2501,13 @@ export declare class TransactionApplication extends BaseModel {
|
|
|
2303
2501
|
* Definition:
|
|
2304
2502
|
* data/transactions/asset.go : AssetConfigTxnFields
|
|
2305
2503
|
*/
|
|
2306
|
-
export declare class TransactionAssetConfig
|
|
2504
|
+
export declare class TransactionAssetConfig implements Encodable {
|
|
2505
|
+
private static encodingSchemaValue;
|
|
2506
|
+
static get encodingSchema(): Schema;
|
|
2307
2507
|
/**
|
|
2308
2508
|
* (xaid) ID of the asset being configured or empty if creating.
|
|
2309
2509
|
*/
|
|
2310
|
-
assetId?:
|
|
2510
|
+
assetId?: bigint;
|
|
2311
2511
|
/**
|
|
2312
2512
|
* AssetParams specifies the parameters for an asset.
|
|
2313
2513
|
* (apar) when part of an AssetConfig transaction.
|
|
@@ -2327,14 +2527,18 @@ export declare class TransactionAssetConfig extends BaseModel {
|
|
|
2327
2527
|
assetId?: number | bigint;
|
|
2328
2528
|
params?: AssetParams;
|
|
2329
2529
|
});
|
|
2330
|
-
|
|
2530
|
+
getEncodingSchema(): Schema;
|
|
2531
|
+
toEncodingData(): Map<string, unknown>;
|
|
2532
|
+
static fromEncodingData(data: unknown): TransactionAssetConfig;
|
|
2331
2533
|
}
|
|
2332
2534
|
/**
|
|
2333
2535
|
* Fields for an asset freeze transaction.
|
|
2334
2536
|
* Definition:
|
|
2335
2537
|
* data/transactions/asset.go : AssetFreezeTxnFields
|
|
2336
2538
|
*/
|
|
2337
|
-
export declare class TransactionAssetFreeze
|
|
2539
|
+
export declare class TransactionAssetFreeze implements Encodable {
|
|
2540
|
+
private static encodingSchemaValue;
|
|
2541
|
+
static get encodingSchema(): Schema;
|
|
2338
2542
|
/**
|
|
2339
2543
|
* (fadd) Address of the account whose asset is being frozen or thawed.
|
|
2340
2544
|
*/
|
|
@@ -2342,7 +2546,7 @@ export declare class TransactionAssetFreeze extends BaseModel {
|
|
|
2342
2546
|
/**
|
|
2343
2547
|
* (faid) ID of the asset being frozen or thawed.
|
|
2344
2548
|
*/
|
|
2345
|
-
assetId:
|
|
2549
|
+
assetId: bigint;
|
|
2346
2550
|
/**
|
|
2347
2551
|
* (afrz) The new freeze status.
|
|
2348
2552
|
*/
|
|
@@ -2358,23 +2562,27 @@ export declare class TransactionAssetFreeze extends BaseModel {
|
|
|
2358
2562
|
assetId: number | bigint;
|
|
2359
2563
|
newFreezeStatus: boolean;
|
|
2360
2564
|
});
|
|
2361
|
-
|
|
2565
|
+
getEncodingSchema(): Schema;
|
|
2566
|
+
toEncodingData(): Map<string, unknown>;
|
|
2567
|
+
static fromEncodingData(data: unknown): TransactionAssetFreeze;
|
|
2362
2568
|
}
|
|
2363
2569
|
/**
|
|
2364
2570
|
* Fields for an asset transfer transaction.
|
|
2365
2571
|
* Definition:
|
|
2366
2572
|
* data/transactions/asset.go : AssetTransferTxnFields
|
|
2367
2573
|
*/
|
|
2368
|
-
export declare class TransactionAssetTransfer
|
|
2574
|
+
export declare class TransactionAssetTransfer implements Encodable {
|
|
2575
|
+
private static encodingSchemaValue;
|
|
2576
|
+
static get encodingSchema(): Schema;
|
|
2369
2577
|
/**
|
|
2370
2578
|
* (aamt) Amount of asset to transfer. A zero amount transferred to self allocates
|
|
2371
2579
|
* that asset in the account's Assets map.
|
|
2372
2580
|
*/
|
|
2373
|
-
amount:
|
|
2581
|
+
amount: bigint;
|
|
2374
2582
|
/**
|
|
2375
2583
|
* (xaid) ID of the asset being transferred.
|
|
2376
2584
|
*/
|
|
2377
|
-
assetId:
|
|
2585
|
+
assetId: bigint;
|
|
2378
2586
|
/**
|
|
2379
2587
|
* (arcv) Recipient address of the transfer.
|
|
2380
2588
|
*/
|
|
@@ -2382,7 +2590,7 @@ export declare class TransactionAssetTransfer extends BaseModel {
|
|
|
2382
2590
|
/**
|
|
2383
2591
|
* Number of assets transferred to the close-to account as part of the transaction.
|
|
2384
2592
|
*/
|
|
2385
|
-
closeAmount?:
|
|
2593
|
+
closeAmount?: bigint;
|
|
2386
2594
|
/**
|
|
2387
2595
|
* (aclose) Indicates that the asset should be removed from the account's Assets
|
|
2388
2596
|
* map, and specifies where the remaining asset holdings should be transferred.
|
|
@@ -2417,14 +2625,18 @@ export declare class TransactionAssetTransfer extends BaseModel {
|
|
|
2417
2625
|
closeTo?: string;
|
|
2418
2626
|
sender?: string;
|
|
2419
2627
|
});
|
|
2420
|
-
|
|
2628
|
+
getEncodingSchema(): Schema;
|
|
2629
|
+
toEncodingData(): Map<string, unknown>;
|
|
2630
|
+
static fromEncodingData(data: unknown): TransactionAssetTransfer;
|
|
2421
2631
|
}
|
|
2422
2632
|
/**
|
|
2423
2633
|
* Fields for a keyreg transaction.
|
|
2424
2634
|
* Definition:
|
|
2425
2635
|
* data/transactions/keyreg.go : KeyregTxnFields
|
|
2426
2636
|
*/
|
|
2427
|
-
export declare class TransactionKeyreg
|
|
2637
|
+
export declare class TransactionKeyreg implements Encodable {
|
|
2638
|
+
private static encodingSchemaValue;
|
|
2639
|
+
static get encodingSchema(): Schema;
|
|
2428
2640
|
/**
|
|
2429
2641
|
* (nonpart) Mark the account as participating or non-participating.
|
|
2430
2642
|
*/
|
|
@@ -2441,15 +2653,15 @@ export declare class TransactionKeyreg extends BaseModel {
|
|
|
2441
2653
|
/**
|
|
2442
2654
|
* (votefst) First round this participation key is valid.
|
|
2443
2655
|
*/
|
|
2444
|
-
voteFirstValid?:
|
|
2656
|
+
voteFirstValid?: bigint;
|
|
2445
2657
|
/**
|
|
2446
2658
|
* (votekd) Number of subkeys in each batch of participation keys.
|
|
2447
2659
|
*/
|
|
2448
|
-
voteKeyDilution?:
|
|
2660
|
+
voteKeyDilution?: bigint;
|
|
2449
2661
|
/**
|
|
2450
2662
|
* (votelst) Last round this participation key is valid.
|
|
2451
2663
|
*/
|
|
2452
|
-
voteLastValid?:
|
|
2664
|
+
voteLastValid?: bigint;
|
|
2453
2665
|
/**
|
|
2454
2666
|
* (votekey) Participation public key used in key registration transactions.
|
|
2455
2667
|
*/
|
|
@@ -2474,18 +2686,22 @@ export declare class TransactionKeyreg extends BaseModel {
|
|
|
2474
2686
|
voteLastValid?: number | bigint;
|
|
2475
2687
|
voteParticipationKey?: string | Uint8Array;
|
|
2476
2688
|
});
|
|
2477
|
-
|
|
2689
|
+
getEncodingSchema(): Schema;
|
|
2690
|
+
toEncodingData(): Map<string, unknown>;
|
|
2691
|
+
static fromEncodingData(data: unknown): TransactionKeyreg;
|
|
2478
2692
|
}
|
|
2479
2693
|
/**
|
|
2480
2694
|
* Fields for a payment transaction.
|
|
2481
2695
|
* Definition:
|
|
2482
2696
|
* data/transactions/payment.go : PaymentTxnFields
|
|
2483
2697
|
*/
|
|
2484
|
-
export declare class TransactionPayment
|
|
2698
|
+
export declare class TransactionPayment implements Encodable {
|
|
2699
|
+
private static encodingSchemaValue;
|
|
2700
|
+
static get encodingSchema(): Schema;
|
|
2485
2701
|
/**
|
|
2486
2702
|
* (amt) number of MicroAlgos intended to be transferred.
|
|
2487
2703
|
*/
|
|
2488
|
-
amount:
|
|
2704
|
+
amount: bigint;
|
|
2489
2705
|
/**
|
|
2490
2706
|
* (rcv) receiver's address.
|
|
2491
2707
|
*/
|
|
@@ -2494,7 +2710,7 @@ export declare class TransactionPayment extends BaseModel {
|
|
|
2494
2710
|
* Number of MicroAlgos that were sent to the close-remainder-to address when
|
|
2495
2711
|
* closing the sender account.
|
|
2496
2712
|
*/
|
|
2497
|
-
closeAmount?:
|
|
2713
|
+
closeAmount?: bigint;
|
|
2498
2714
|
/**
|
|
2499
2715
|
* (close) when set, indicates that the sending account should be closed and all
|
|
2500
2716
|
* remaining funds be transferred to this address.
|
|
@@ -2515,16 +2731,20 @@ export declare class TransactionPayment extends BaseModel {
|
|
|
2515
2731
|
closeAmount?: number | bigint;
|
|
2516
2732
|
closeRemainderTo?: string;
|
|
2517
2733
|
});
|
|
2518
|
-
|
|
2734
|
+
getEncodingSchema(): Schema;
|
|
2735
|
+
toEncodingData(): Map<string, unknown>;
|
|
2736
|
+
static fromEncodingData(data: unknown): TransactionPayment;
|
|
2519
2737
|
}
|
|
2520
2738
|
/**
|
|
2521
2739
|
*
|
|
2522
2740
|
*/
|
|
2523
|
-
export declare class TransactionResponse
|
|
2741
|
+
export declare class TransactionResponse implements Encodable {
|
|
2742
|
+
private static encodingSchemaValue;
|
|
2743
|
+
static get encodingSchema(): Schema;
|
|
2524
2744
|
/**
|
|
2525
2745
|
* Round at which the results were computed.
|
|
2526
2746
|
*/
|
|
2527
|
-
currentRound:
|
|
2747
|
+
currentRound: bigint;
|
|
2528
2748
|
/**
|
|
2529
2749
|
* Contains all fields common to all transactions and serves as an envelope to all
|
|
2530
2750
|
* transactions type. Represents both regular and inner transactions.
|
|
@@ -2546,13 +2766,17 @@ export declare class TransactionResponse extends BaseModel {
|
|
|
2546
2766
|
currentRound: number | bigint;
|
|
2547
2767
|
transaction: Transaction;
|
|
2548
2768
|
});
|
|
2549
|
-
|
|
2769
|
+
getEncodingSchema(): Schema;
|
|
2770
|
+
toEncodingData(): Map<string, unknown>;
|
|
2771
|
+
static fromEncodingData(data: unknown): TransactionResponse;
|
|
2550
2772
|
}
|
|
2551
2773
|
/**
|
|
2552
2774
|
* Validation signature associated with some data. Only one of the signatures
|
|
2553
2775
|
* should be provided.
|
|
2554
2776
|
*/
|
|
2555
|
-
export declare class TransactionSignature
|
|
2777
|
+
export declare class TransactionSignature implements Encodable {
|
|
2778
|
+
private static encodingSchemaValue;
|
|
2779
|
+
static get encodingSchema(): Schema;
|
|
2556
2780
|
/**
|
|
2557
2781
|
* (lsig) Programatic transaction signature.
|
|
2558
2782
|
* Definition:
|
|
@@ -2584,14 +2808,18 @@ export declare class TransactionSignature extends BaseModel {
|
|
|
2584
2808
|
multisig?: TransactionSignatureMultisig;
|
|
2585
2809
|
sig?: string | Uint8Array;
|
|
2586
2810
|
});
|
|
2587
|
-
|
|
2811
|
+
getEncodingSchema(): Schema;
|
|
2812
|
+
toEncodingData(): Map<string, unknown>;
|
|
2813
|
+
static fromEncodingData(data: unknown): TransactionSignature;
|
|
2588
2814
|
}
|
|
2589
2815
|
/**
|
|
2590
2816
|
* (lsig) Programatic transaction signature.
|
|
2591
2817
|
* Definition:
|
|
2592
2818
|
* data/transactions/logicsig.go
|
|
2593
2819
|
*/
|
|
2594
|
-
export declare class TransactionSignatureLogicsig
|
|
2820
|
+
export declare class TransactionSignatureLogicsig implements Encodable {
|
|
2821
|
+
private static encodingSchemaValue;
|
|
2822
|
+
static get encodingSchema(): Schema;
|
|
2595
2823
|
/**
|
|
2596
2824
|
* (l) Program signed by a signature or multi signature, or hashed to be the
|
|
2597
2825
|
* address of ana ccount. Base64 encoded TEAL program.
|
|
@@ -2627,14 +2855,18 @@ export declare class TransactionSignatureLogicsig extends BaseModel {
|
|
|
2627
2855
|
multisigSignature?: TransactionSignatureMultisig;
|
|
2628
2856
|
signature?: string | Uint8Array;
|
|
2629
2857
|
});
|
|
2630
|
-
|
|
2858
|
+
getEncodingSchema(): Schema;
|
|
2859
|
+
toEncodingData(): Map<string, unknown>;
|
|
2860
|
+
static fromEncodingData(data: unknown): TransactionSignatureLogicsig;
|
|
2631
2861
|
}
|
|
2632
2862
|
/**
|
|
2633
2863
|
* (msig) structure holding multiple subsignatures.
|
|
2634
2864
|
* Definition:
|
|
2635
2865
|
* crypto/multisig.go : MultisigSig
|
|
2636
2866
|
*/
|
|
2637
|
-
export declare class TransactionSignatureMultisig
|
|
2867
|
+
export declare class TransactionSignatureMultisig implements Encodable {
|
|
2868
|
+
private static encodingSchemaValue;
|
|
2869
|
+
static get encodingSchema(): Schema;
|
|
2638
2870
|
/**
|
|
2639
2871
|
* (subsig) holds pairs of public key and signatures.
|
|
2640
2872
|
*/
|
|
@@ -2642,11 +2874,11 @@ export declare class TransactionSignatureMultisig extends BaseModel {
|
|
|
2642
2874
|
/**
|
|
2643
2875
|
* (thr)
|
|
2644
2876
|
*/
|
|
2645
|
-
threshold?: number
|
|
2877
|
+
threshold?: number;
|
|
2646
2878
|
/**
|
|
2647
2879
|
* (v)
|
|
2648
2880
|
*/
|
|
2649
|
-
version?: number
|
|
2881
|
+
version?: number;
|
|
2650
2882
|
/**
|
|
2651
2883
|
* Creates a new `TransactionSignatureMultisig` object.
|
|
2652
2884
|
* @param subsignature - (subsig) holds pairs of public key and signatures.
|
|
@@ -2658,9 +2890,13 @@ export declare class TransactionSignatureMultisig extends BaseModel {
|
|
|
2658
2890
|
threshold?: number | bigint;
|
|
2659
2891
|
version?: number | bigint;
|
|
2660
2892
|
});
|
|
2661
|
-
|
|
2893
|
+
getEncodingSchema(): Schema;
|
|
2894
|
+
toEncodingData(): Map<string, unknown>;
|
|
2895
|
+
static fromEncodingData(data: unknown): TransactionSignatureMultisig;
|
|
2662
2896
|
}
|
|
2663
|
-
export declare class TransactionSignatureMultisigSubsignature
|
|
2897
|
+
export declare class TransactionSignatureMultisigSubsignature implements Encodable {
|
|
2898
|
+
private static encodingSchemaValue;
|
|
2899
|
+
static get encodingSchema(): Schema;
|
|
2664
2900
|
/**
|
|
2665
2901
|
* (pk)
|
|
2666
2902
|
*/
|
|
@@ -2678,14 +2914,18 @@ export declare class TransactionSignatureMultisigSubsignature extends BaseModel
|
|
|
2678
2914
|
publicKey?: string | Uint8Array;
|
|
2679
2915
|
signature?: string | Uint8Array;
|
|
2680
2916
|
});
|
|
2681
|
-
|
|
2917
|
+
getEncodingSchema(): Schema;
|
|
2918
|
+
toEncodingData(): Map<string, unknown>;
|
|
2919
|
+
static fromEncodingData(data: unknown): TransactionSignatureMultisigSubsignature;
|
|
2682
2920
|
}
|
|
2683
2921
|
/**
|
|
2684
2922
|
* Fields for a state proof transaction.
|
|
2685
2923
|
* Definition:
|
|
2686
2924
|
* data/transactions/stateproof.go : StateProofTxnFields
|
|
2687
2925
|
*/
|
|
2688
|
-
export declare class TransactionStateProof
|
|
2926
|
+
export declare class TransactionStateProof implements Encodable {
|
|
2927
|
+
private static encodingSchemaValue;
|
|
2928
|
+
static get encodingSchema(): Schema;
|
|
2689
2929
|
/**
|
|
2690
2930
|
* (spmsg)
|
|
2691
2931
|
*/
|
|
@@ -2700,7 +2940,7 @@ export declare class TransactionStateProof extends BaseModel {
|
|
|
2700
2940
|
* (sptype) Type of the state proof. Integer representing an entry defined in
|
|
2701
2941
|
* protocol/stateproof.go
|
|
2702
2942
|
*/
|
|
2703
|
-
stateProofType?: number
|
|
2943
|
+
stateProofType?: number;
|
|
2704
2944
|
/**
|
|
2705
2945
|
* Creates a new `TransactionStateProof` object.
|
|
2706
2946
|
* @param message - (spmsg)
|
|
@@ -2715,16 +2955,20 @@ export declare class TransactionStateProof extends BaseModel {
|
|
|
2715
2955
|
stateProof?: StateProofFields;
|
|
2716
2956
|
stateProofType?: number | bigint;
|
|
2717
2957
|
});
|
|
2718
|
-
|
|
2958
|
+
getEncodingSchema(): Schema;
|
|
2959
|
+
toEncodingData(): Map<string, unknown>;
|
|
2960
|
+
static fromEncodingData(data: unknown): TransactionStateProof;
|
|
2719
2961
|
}
|
|
2720
2962
|
/**
|
|
2721
2963
|
*
|
|
2722
2964
|
*/
|
|
2723
|
-
export declare class TransactionsResponse
|
|
2965
|
+
export declare class TransactionsResponse implements Encodable {
|
|
2966
|
+
private static encodingSchemaValue;
|
|
2967
|
+
static get encodingSchema(): Schema;
|
|
2724
2968
|
/**
|
|
2725
2969
|
* Round at which the results were computed.
|
|
2726
2970
|
*/
|
|
2727
|
-
currentRound:
|
|
2971
|
+
currentRound: bigint;
|
|
2728
2972
|
transactions: Transaction[];
|
|
2729
2973
|
/**
|
|
2730
2974
|
* Used for pagination, when making another request provide this token with the
|
|
@@ -2743,5 +2987,7 @@ export declare class TransactionsResponse extends BaseModel {
|
|
|
2743
2987
|
transactions: Transaction[];
|
|
2744
2988
|
nextToken?: string;
|
|
2745
2989
|
});
|
|
2746
|
-
|
|
2990
|
+
getEncodingSchema(): Schema;
|
|
2991
|
+
toEncodingData(): Map<string, unknown>;
|
|
2992
|
+
static fromEncodingData(data: unknown): TransactionsResponse;
|
|
2747
2993
|
}
|