algosdk 1.23.2 → 1.24.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 +4 -4
- package/dist/browser/algosdk.min.js +1 -1
- package/dist/browser/algosdk.min.js.map +1 -1
- package/dist/cjs/abi/abi_type.js +693 -0
- package/dist/cjs/abi/abi_type.js.map +1 -0
- package/dist/cjs/{src/abi → abi}/contract.js +0 -0
- package/dist/cjs/abi/contract.js.map +1 -0
- package/dist/cjs/{src/abi → abi}/index.js +0 -0
- package/dist/cjs/abi/index.js.map +1 -0
- package/dist/cjs/{src/abi → abi}/interface.js +0 -0
- package/dist/cjs/abi/interface.js.map +1 -0
- package/dist/cjs/{src/abi → abi}/method.js +0 -0
- package/dist/cjs/abi/method.js.map +1 -0
- package/dist/cjs/{src/abi → abi}/reference.js +0 -0
- package/dist/cjs/abi/reference.js.map +1 -0
- package/dist/cjs/{src/abi → abi}/transaction.js +0 -0
- package/dist/cjs/abi/transaction.js.map +1 -0
- package/dist/cjs/{src/account.js → account.js} +0 -0
- package/dist/cjs/account.js.map +1 -0
- package/dist/cjs/{src/bid.js → bid.js} +0 -0
- package/dist/cjs/bid.js.map +1 -0
- package/dist/cjs/{src/boxStorage.js → boxStorage.js} +0 -0
- package/dist/cjs/boxStorage.js.map +1 -0
- package/dist/cjs/{src/client → client}/algod.js +0 -0
- package/dist/cjs/client/algod.js.map +1 -0
- package/dist/cjs/{src/client → client}/baseHTTPClient.js +0 -0
- package/dist/cjs/client/baseHTTPClient.js.map +1 -0
- package/dist/cjs/{src/client → client}/client.js +0 -0
- package/dist/cjs/client/client.js.map +1 -0
- package/dist/cjs/{src/client → client}/kmd.js +0 -0
- package/dist/cjs/client/kmd.js.map +1 -0
- package/dist/cjs/{src/client → client}/urlTokenBaseHTTPClient.js +0 -0
- package/dist/cjs/client/urlTokenBaseHTTPClient.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/accountApplicationInformation.js +0 -0
- package/dist/cjs/client/v2/algod/accountApplicationInformation.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/accountAssetInformation.js +0 -0
- package/dist/cjs/client/v2/algod/accountAssetInformation.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/accountInformation.js +0 -0
- package/dist/cjs/client/v2/algod/accountInformation.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/algod.js +0 -0
- package/dist/cjs/client/v2/algod/algod.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/block.js +0 -0
- package/dist/cjs/client/v2/algod/block.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/compile.js +0 -0
- package/dist/cjs/client/v2/algod/compile.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/dryrun.js +0 -0
- package/dist/cjs/client/v2/algod/dryrun.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/genesis.js +0 -0
- package/dist/cjs/client/v2/algod/genesis.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/getApplicationBoxByName.js +0 -0
- package/dist/cjs/client/v2/algod/getApplicationBoxByName.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/getApplicationBoxes.js +0 -0
- package/dist/cjs/client/v2/algod/getApplicationBoxes.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/getApplicationByID.js +0 -0
- package/dist/cjs/client/v2/algod/getApplicationByID.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/getAssetByID.js +0 -0
- package/dist/cjs/client/v2/algod/getAssetByID.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/getBlockHash.js +0 -0
- package/dist/cjs/client/v2/algod/getBlockHash.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/getTransactionProof.js +0 -0
- package/dist/cjs/client/v2/algod/getTransactionProof.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/healthCheck.js +0 -0
- package/dist/cjs/client/v2/algod/healthCheck.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/lightBlockHeaderProof.js +0 -0
- package/dist/cjs/client/v2/algod/lightBlockHeaderProof.js.map +1 -0
- package/dist/cjs/client/v2/algod/models/types.js +2047 -0
- package/dist/cjs/client/v2/algod/models/types.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/pendingTransactionInformation.js +0 -0
- package/dist/cjs/client/v2/algod/pendingTransactionInformation.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/pendingTransactions.js +0 -0
- package/dist/cjs/client/v2/algod/pendingTransactions.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/pendingTransactionsByAddress.js +0 -0
- package/dist/cjs/client/v2/algod/pendingTransactionsByAddress.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/sendRawTransaction.js +0 -0
- package/dist/cjs/client/v2/algod/sendRawTransaction.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/stateproof.js +0 -0
- package/dist/cjs/client/v2/algod/stateproof.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/status.js +0 -0
- package/dist/cjs/client/v2/algod/status.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/statusAfterBlock.js +0 -0
- package/dist/cjs/client/v2/algod/statusAfterBlock.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/suggestedParams.js +0 -0
- package/dist/cjs/client/v2/algod/suggestedParams.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/supply.js +0 -0
- package/dist/cjs/client/v2/algod/supply.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/algod/versions.js +0 -0
- package/dist/cjs/client/v2/algod/versions.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/basemodel.js +0 -0
- package/dist/cjs/client/v2/basemodel.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/indexer.js +0 -0
- package/dist/cjs/client/v2/indexer/indexer.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupAccountAppLocalStates.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupAccountAssets.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupAccountAssets.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupAccountByID.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupAccountByID.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupAccountCreatedApplications.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupAccountCreatedAssets.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupAccountTransactions.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupAccountTransactions.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupApplicationBoxByIDandName.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupApplicationLogs.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupApplicationLogs.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupApplications.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupApplications.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupAssetBalances.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupAssetBalances.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupAssetByID.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupAssetByID.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupAssetTransactions.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupAssetTransactions.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupBlock.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupBlock.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/lookupTransactionByID.js +0 -0
- package/dist/cjs/client/v2/indexer/lookupTransactionByID.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/makeHealthCheck.js +0 -0
- package/dist/cjs/client/v2/indexer/makeHealthCheck.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/models/types.js +0 -0
- package/dist/cjs/client/v2/indexer/models/types.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/searchAccounts.js +0 -0
- package/dist/cjs/client/v2/indexer/searchAccounts.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/searchForApplicationBoxes.js +0 -0
- package/dist/cjs/client/v2/indexer/searchForApplicationBoxes.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/searchForApplications.js +0 -0
- package/dist/cjs/client/v2/indexer/searchForApplications.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/searchForAssets.js +0 -0
- package/dist/cjs/client/v2/indexer/searchForAssets.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/indexer/searchForTransactions.js +0 -0
- package/dist/cjs/client/v2/indexer/searchForTransactions.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/jsonrequest.js +0 -0
- package/dist/cjs/client/v2/jsonrequest.js.map +1 -0
- package/dist/cjs/{src/client → client}/v2/serviceClient.js +0 -0
- package/dist/cjs/client/v2/serviceClient.js.map +1 -0
- package/dist/cjs/{src/composer.js → composer.js} +0 -0
- package/dist/cjs/composer.js.map +1 -0
- package/dist/cjs/{src/convert.js → convert.js} +0 -0
- package/dist/cjs/convert.js.map +1 -0
- package/dist/cjs/{src/dryrun.js → dryrun.js} +0 -0
- package/dist/cjs/dryrun.js.map +1 -0
- package/dist/cjs/{src/encoding → encoding}/address.js +0 -0
- package/dist/cjs/encoding/address.js.map +1 -0
- package/dist/cjs/{src/encoding → encoding}/bigint.js +0 -0
- package/dist/cjs/encoding/bigint.js.map +1 -0
- package/dist/cjs/{src/encoding → encoding}/encoding.js +0 -0
- package/dist/cjs/encoding/encoding.js.map +1 -0
- package/dist/cjs/{src/encoding → encoding}/uint64.js +0 -0
- package/dist/cjs/encoding/uint64.js.map +1 -0
- package/dist/cjs/{src/group.js → group.js} +0 -0
- package/dist/cjs/group.js.map +1 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/{src/logic → logic}/langspec.json +0 -0
- package/dist/cjs/{src/logic → logic}/logic.js +0 -0
- package/dist/cjs/logic/logic.js.map +1 -0
- package/dist/cjs/{src/logic → logic}/sourcemap.js +0 -0
- package/dist/cjs/logic/sourcemap.js.map +1 -0
- package/dist/cjs/{src/logicTemplates → logicTemplates}/dynamicfee.js +0 -0
- package/dist/cjs/logicTemplates/dynamicfee.js.map +1 -0
- package/dist/cjs/{src/logicTemplates → logicTemplates}/htlc.js +0 -0
- package/dist/cjs/logicTemplates/htlc.js.map +1 -0
- package/dist/cjs/{src/logicTemplates → logicTemplates}/index.js +0 -0
- package/dist/cjs/logicTemplates/index.js.map +1 -0
- package/dist/cjs/{src/logicTemplates → logicTemplates}/limitorder.js +0 -0
- package/dist/cjs/logicTemplates/limitorder.js.map +1 -0
- package/dist/cjs/{src/logicTemplates → logicTemplates}/periodicpayment.js +0 -0
- package/dist/cjs/logicTemplates/periodicpayment.js.map +1 -0
- package/dist/cjs/{src/logicTemplates → logicTemplates}/split.js +0 -0
- package/dist/cjs/logicTemplates/split.js.map +1 -0
- package/dist/cjs/{src/logicTemplates → logicTemplates}/templates.js +0 -0
- package/dist/cjs/logicTemplates/templates.js.map +1 -0
- package/dist/cjs/{src/logicsig.js → logicsig.js} +0 -0
- package/dist/cjs/logicsig.js.map +1 -0
- package/dist/cjs/{src/main.js → main.js} +0 -0
- package/dist/cjs/main.js.map +1 -0
- package/dist/cjs/{src/makeTxn.js → makeTxn.js} +0 -0
- package/dist/cjs/makeTxn.js.map +1 -0
- package/dist/cjs/{src/mnemonic → mnemonic}/mnemonic.js +0 -0
- package/dist/cjs/mnemonic/mnemonic.js.map +1 -0
- package/dist/cjs/{src/mnemonic → mnemonic}/wordlists/english.js +0 -0
- package/dist/cjs/mnemonic/wordlists/english.js.map +1 -0
- package/dist/cjs/multisig.js +398 -0
- package/dist/cjs/multisig.js.map +1 -0
- package/dist/cjs/{src/nacl → nacl}/naclWrappers.js +0 -0
- package/dist/cjs/nacl/naclWrappers.js.map +1 -0
- package/dist/cjs/{src/signer.js → signer.js} +0 -0
- package/dist/cjs/signer.js.map +1 -0
- package/dist/cjs/{src/transaction.js → transaction.js} +0 -0
- package/dist/cjs/transaction.js.map +1 -0
- package/dist/cjs/{src/types → types}/account.js +0 -0
- package/dist/cjs/types/account.js.map +1 -0
- package/dist/cjs/{src/types → types}/address.js +0 -0
- package/dist/cjs/types/address.js.map +1 -0
- package/dist/cjs/{src/types → types}/blockHeader.js +0 -0
- package/dist/cjs/types/blockHeader.js.map +1 -0
- package/dist/cjs/{src/types → types}/index.js +0 -0
- package/dist/cjs/types/index.js.map +1 -0
- package/dist/cjs/{src/types → types}/intDecoding.js +0 -0
- package/dist/cjs/types/intDecoding.js.map +1 -0
- package/dist/cjs/{src/types → types}/multisig.js +0 -0
- package/dist/cjs/types/multisig.js.map +1 -0
- package/dist/cjs/{src/types → types}/transactions/application.js +0 -0
- package/dist/cjs/types/transactions/application.js.map +1 -0
- package/dist/cjs/{src/types → types}/transactions/asset.js +0 -0
- package/dist/cjs/types/transactions/asset.js.map +1 -0
- package/dist/cjs/{src/types → types}/transactions/base.js +0 -0
- package/dist/cjs/types/transactions/base.js.map +1 -0
- package/dist/cjs/{src/types → types}/transactions/builder.js +0 -0
- package/dist/cjs/types/transactions/builder.js.map +1 -0
- package/dist/cjs/{src/types → types}/transactions/encoded.js +0 -0
- package/dist/cjs/types/transactions/encoded.js.map +1 -0
- package/dist/cjs/{src/types → types}/transactions/index.js +0 -0
- package/dist/cjs/types/transactions/index.js.map +1 -0
- package/dist/cjs/{src/types → types}/transactions/keyreg.js +0 -0
- package/dist/cjs/types/transactions/keyreg.js.map +1 -0
- package/dist/cjs/{src/types → types}/transactions/payment.js +0 -0
- package/dist/cjs/types/transactions/payment.js.map +1 -0
- package/dist/cjs/{src/types → types}/transactions/stateproof.js +0 -0
- package/dist/cjs/types/transactions/stateproof.js.map +1 -0
- package/dist/cjs/{src/types → types}/utils.js +0 -0
- package/dist/cjs/types/utils.js.map +1 -0
- package/dist/cjs/{src/utils → utils}/utils.js +0 -0
- package/dist/cjs/utils/utils.js.map +1 -0
- package/dist/cjs/{src/wait.js → wait.js} +0 -0
- package/dist/cjs/wait.js.map +1 -0
- package/dist/esm/abi/abi_type.js +680 -0
- package/dist/esm/abi/abi_type.js.map +1 -0
- package/dist/esm/{src/abi → abi}/contract.js +0 -0
- package/dist/esm/abi/contract.js.map +1 -0
- package/dist/esm/{src/abi → abi}/index.js +0 -0
- package/dist/esm/abi/index.js.map +1 -0
- package/dist/esm/{src/abi → abi}/interface.js +0 -0
- package/dist/esm/abi/interface.js.map +1 -0
- package/dist/esm/{src/abi → abi}/method.js +0 -0
- package/dist/esm/abi/method.js.map +1 -0
- package/dist/esm/{src/abi → abi}/reference.js +0 -0
- package/dist/esm/abi/reference.js.map +1 -0
- package/dist/esm/{src/abi → abi}/transaction.js +0 -0
- package/dist/esm/abi/transaction.js.map +1 -0
- package/dist/esm/{src/account.js → account.js} +0 -0
- package/dist/esm/account.js.map +1 -0
- package/dist/esm/{src/bid.js → bid.js} +0 -0
- package/dist/esm/bid.js.map +1 -0
- package/dist/esm/{src/boxStorage.js → boxStorage.js} +0 -0
- package/dist/esm/boxStorage.js.map +1 -0
- package/dist/esm/{src/client → client}/algod.js +0 -0
- package/dist/esm/client/algod.js.map +1 -0
- package/dist/esm/{src/client → client}/baseHTTPClient.js +0 -0
- package/dist/esm/client/baseHTTPClient.js.map +1 -0
- package/dist/esm/{src/client → client}/client.js +0 -0
- package/dist/esm/client/client.js.map +1 -0
- package/dist/esm/{src/client → client}/kmd.js +0 -0
- package/dist/esm/client/kmd.js.map +1 -0
- package/dist/esm/{src/client → client}/urlTokenBaseHTTPClient.js +0 -0
- package/dist/esm/client/urlTokenBaseHTTPClient.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/accountApplicationInformation.js +0 -0
- package/dist/esm/client/v2/algod/accountApplicationInformation.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/accountAssetInformation.js +0 -0
- package/dist/esm/client/v2/algod/accountAssetInformation.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/accountInformation.js +0 -0
- package/dist/esm/client/v2/algod/accountInformation.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/algod.js +0 -0
- package/dist/esm/client/v2/algod/algod.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/block.js +0 -0
- package/dist/esm/client/v2/algod/block.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/compile.js +0 -0
- package/dist/esm/client/v2/algod/compile.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/dryrun.js +0 -0
- package/dist/esm/client/v2/algod/dryrun.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/genesis.js +0 -0
- package/dist/esm/client/v2/algod/genesis.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/getApplicationBoxByName.js +0 -0
- package/dist/esm/client/v2/algod/getApplicationBoxByName.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/getApplicationBoxes.js +0 -0
- package/dist/esm/client/v2/algod/getApplicationBoxes.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/getApplicationByID.js +0 -0
- package/dist/esm/client/v2/algod/getApplicationByID.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/getAssetByID.js +0 -0
- package/dist/esm/client/v2/algod/getAssetByID.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/getBlockHash.js +0 -0
- package/dist/esm/client/v2/algod/getBlockHash.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/getTransactionProof.js +0 -0
- package/dist/esm/client/v2/algod/getTransactionProof.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/healthCheck.js +0 -0
- package/dist/esm/client/v2/algod/healthCheck.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/lightBlockHeaderProof.js +0 -0
- package/dist/esm/client/v2/algod/lightBlockHeaderProof.js.map +1 -0
- package/dist/esm/client/v2/algod/models/types.js +1998 -0
- package/dist/esm/client/v2/algod/models/types.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/pendingTransactionInformation.js +0 -0
- package/dist/esm/client/v2/algod/pendingTransactionInformation.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/pendingTransactions.js +0 -0
- package/dist/esm/client/v2/algod/pendingTransactions.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/pendingTransactionsByAddress.js +0 -0
- package/dist/esm/client/v2/algod/pendingTransactionsByAddress.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/sendRawTransaction.js +0 -0
- package/dist/esm/client/v2/algod/sendRawTransaction.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/stateproof.js +0 -0
- package/dist/esm/client/v2/algod/stateproof.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/status.js +0 -0
- package/dist/esm/client/v2/algod/status.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/statusAfterBlock.js +0 -0
- package/dist/esm/client/v2/algod/statusAfterBlock.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/suggestedParams.js +0 -0
- package/dist/esm/client/v2/algod/suggestedParams.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/supply.js +0 -0
- package/dist/esm/client/v2/algod/supply.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/algod/versions.js +0 -0
- package/dist/esm/client/v2/algod/versions.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/basemodel.js +0 -0
- package/dist/esm/client/v2/basemodel.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/indexer.js +0 -0
- package/dist/esm/client/v2/indexer/indexer.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupAccountAppLocalStates.js +0 -0
- package/dist/esm/client/v2/indexer/lookupAccountAppLocalStates.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupAccountAssets.js +0 -0
- package/dist/esm/client/v2/indexer/lookupAccountAssets.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupAccountByID.js +0 -0
- package/dist/esm/client/v2/indexer/lookupAccountByID.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupAccountCreatedApplications.js +0 -0
- package/dist/esm/client/v2/indexer/lookupAccountCreatedApplications.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupAccountCreatedAssets.js +0 -0
- package/dist/esm/client/v2/indexer/lookupAccountCreatedAssets.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupAccountTransactions.js +0 -0
- package/dist/esm/client/v2/indexer/lookupAccountTransactions.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupApplicationBoxByIDandName.js +0 -0
- package/dist/esm/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupApplicationLogs.js +0 -0
- package/dist/esm/client/v2/indexer/lookupApplicationLogs.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupApplications.js +0 -0
- package/dist/esm/client/v2/indexer/lookupApplications.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupAssetBalances.js +0 -0
- package/dist/esm/client/v2/indexer/lookupAssetBalances.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupAssetByID.js +0 -0
- package/dist/esm/client/v2/indexer/lookupAssetByID.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupAssetTransactions.js +0 -0
- package/dist/esm/client/v2/indexer/lookupAssetTransactions.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupBlock.js +0 -0
- package/dist/esm/client/v2/indexer/lookupBlock.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/lookupTransactionByID.js +0 -0
- package/dist/esm/client/v2/indexer/lookupTransactionByID.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/makeHealthCheck.js +0 -0
- package/dist/esm/client/v2/indexer/makeHealthCheck.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/models/types.js +0 -0
- package/dist/esm/client/v2/indexer/models/types.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/searchAccounts.js +0 -0
- package/dist/esm/client/v2/indexer/searchAccounts.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/searchForApplicationBoxes.js +0 -0
- package/dist/esm/client/v2/indexer/searchForApplicationBoxes.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/searchForApplications.js +0 -0
- package/dist/esm/client/v2/indexer/searchForApplications.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/searchForAssets.js +0 -0
- package/dist/esm/client/v2/indexer/searchForAssets.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/indexer/searchForTransactions.js +0 -0
- package/dist/esm/client/v2/indexer/searchForTransactions.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/jsonrequest.js +0 -0
- package/dist/esm/client/v2/jsonrequest.js.map +1 -0
- package/dist/esm/{src/client → client}/v2/serviceClient.js +0 -0
- package/dist/esm/client/v2/serviceClient.js.map +1 -0
- package/dist/esm/{src/composer.js → composer.js} +0 -0
- package/dist/esm/composer.js.map +1 -0
- package/dist/esm/{src/convert.js → convert.js} +0 -0
- package/dist/esm/convert.js.map +1 -0
- package/dist/esm/{src/dryrun.js → dryrun.js} +0 -0
- package/dist/esm/dryrun.js.map +1 -0
- package/dist/esm/{src/encoding → encoding}/address.js +0 -0
- package/dist/esm/encoding/address.js.map +1 -0
- package/dist/esm/{src/encoding → encoding}/bigint.js +0 -0
- package/dist/esm/encoding/bigint.js.map +1 -0
- package/dist/esm/{src/encoding → encoding}/encoding.js +0 -0
- package/dist/esm/encoding/encoding.js.map +1 -0
- package/dist/esm/{src/encoding → encoding}/uint64.js +0 -0
- package/dist/esm/encoding/uint64.js.map +1 -0
- package/dist/esm/{src/group.js → group.js} +0 -0
- package/dist/esm/group.js.map +1 -0
- package/dist/esm/index.js +2 -2
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/{src/logic → logic}/langspec.json +0 -0
- package/dist/esm/{src/logic → logic}/logic.js +0 -0
- package/dist/esm/logic/logic.js.map +1 -0
- package/dist/esm/{src/logic → logic}/sourcemap.js +0 -0
- package/dist/esm/logic/sourcemap.js.map +1 -0
- package/dist/esm/{src/logicTemplates → logicTemplates}/dynamicfee.js +0 -0
- package/dist/esm/logicTemplates/dynamicfee.js.map +1 -0
- package/dist/esm/{src/logicTemplates → logicTemplates}/htlc.js +0 -0
- package/dist/esm/logicTemplates/htlc.js.map +1 -0
- package/dist/esm/{src/logicTemplates → logicTemplates}/index.js +0 -0
- package/dist/esm/logicTemplates/index.js.map +1 -0
- package/dist/esm/{src/logicTemplates → logicTemplates}/limitorder.js +0 -0
- package/dist/esm/logicTemplates/limitorder.js.map +1 -0
- package/dist/esm/{src/logicTemplates → logicTemplates}/periodicpayment.js +0 -0
- package/dist/esm/logicTemplates/periodicpayment.js.map +1 -0
- package/dist/esm/{src/logicTemplates → logicTemplates}/split.js +0 -0
- package/dist/esm/logicTemplates/split.js.map +1 -0
- package/dist/esm/{src/logicTemplates → logicTemplates}/templates.js +0 -0
- package/dist/esm/logicTemplates/templates.js.map +1 -0
- package/dist/esm/{src/logicsig.js → logicsig.js} +0 -0
- package/dist/esm/logicsig.js.map +1 -0
- package/dist/esm/{src/main.js → main.js} +0 -0
- package/dist/esm/main.js.map +1 -0
- package/dist/esm/{src/makeTxn.js → makeTxn.js} +0 -0
- package/dist/esm/makeTxn.js.map +1 -0
- package/dist/esm/{src/mnemonic → mnemonic}/mnemonic.js +0 -0
- package/dist/esm/mnemonic/mnemonic.js.map +1 -0
- package/dist/esm/{src/mnemonic → mnemonic}/wordlists/english.js +0 -0
- package/dist/esm/mnemonic/wordlists/english.js.map +1 -0
- package/dist/esm/multisig.js +364 -0
- package/dist/esm/multisig.js.map +1 -0
- package/dist/esm/{src/nacl → nacl}/naclWrappers.js +0 -0
- package/dist/esm/nacl/naclWrappers.js.map +1 -0
- package/dist/esm/{src/signer.js → signer.js} +0 -0
- package/dist/esm/signer.js.map +1 -0
- package/dist/esm/{src/transaction.js → transaction.js} +0 -0
- package/dist/esm/transaction.js.map +1 -0
- package/dist/esm/{src/types → types}/account.js +0 -0
- package/dist/esm/types/account.js.map +1 -0
- package/dist/esm/{src/types → types}/address.js +0 -0
- package/dist/esm/types/address.js.map +1 -0
- package/dist/esm/{src/types → types}/blockHeader.js +0 -0
- package/dist/esm/types/blockHeader.js.map +1 -0
- package/dist/esm/{src/types → types}/index.js +0 -0
- package/dist/esm/types/index.js.map +1 -0
- package/dist/esm/{src/types → types}/intDecoding.js +0 -0
- package/dist/esm/types/intDecoding.js.map +1 -0
- package/dist/esm/{src/types → types}/multisig.js +0 -0
- package/dist/esm/types/multisig.js.map +1 -0
- package/dist/esm/{src/types → types}/transactions/application.js +0 -0
- package/dist/esm/types/transactions/application.js.map +1 -0
- package/dist/esm/{src/types → types}/transactions/asset.js +0 -0
- package/dist/esm/types/transactions/asset.js.map +1 -0
- package/dist/esm/{src/types → types}/transactions/base.js +0 -0
- package/dist/esm/types/transactions/base.js.map +1 -0
- package/dist/esm/{src/types → types}/transactions/builder.js +0 -0
- package/dist/esm/types/transactions/builder.js.map +1 -0
- package/dist/esm/{src/types → types}/transactions/encoded.js +0 -0
- package/dist/esm/types/transactions/encoded.js.map +1 -0
- package/dist/esm/{src/types → types}/transactions/index.js +0 -0
- package/dist/esm/types/transactions/index.js.map +1 -0
- package/dist/esm/{src/types → types}/transactions/keyreg.js +0 -0
- package/dist/esm/types/transactions/keyreg.js.map +1 -0
- package/dist/esm/{src/types → types}/transactions/payment.js +0 -0
- package/dist/esm/types/transactions/payment.js.map +1 -0
- package/dist/esm/{src/types → types}/transactions/stateproof.js +0 -0
- package/dist/esm/types/transactions/stateproof.js.map +1 -0
- package/dist/esm/{src/types → types}/utils.js +0 -0
- package/dist/esm/types/utils.js.map +1 -0
- package/dist/esm/{src/utils → utils}/utils.js +0 -0
- package/dist/esm/utils/utils.js.map +1 -0
- package/dist/esm/{src/wait.js → wait.js} +0 -0
- package/dist/esm/wait.js.map +1 -0
- package/dist/types/{src/abi → abi}/abi_type.d.ts +0 -0
- package/dist/types/{src/abi → abi}/contract.d.ts +0 -0
- package/dist/types/{src/abi → abi}/index.d.ts +0 -0
- package/dist/types/{src/abi → abi}/interface.d.ts +0 -0
- package/dist/types/{src/abi → abi}/method.d.ts +0 -0
- package/dist/types/{src/abi → abi}/reference.d.ts +0 -0
- package/dist/types/{src/abi → abi}/transaction.d.ts +0 -0
- package/dist/types/{src/account.d.ts → account.d.ts} +0 -0
- package/dist/types/{src/bid.d.ts → bid.d.ts} +0 -0
- package/dist/types/{src/boxStorage.d.ts → boxStorage.d.ts} +0 -0
- package/dist/types/{src/client → client}/algod.d.ts +0 -0
- package/dist/types/{src/client → client}/baseHTTPClient.d.ts +0 -0
- package/dist/types/{src/client → client}/client.d.ts +0 -0
- package/dist/types/{src/client → client}/kmd.d.ts +0 -0
- package/dist/types/{src/client → client}/urlTokenBaseHTTPClient.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/accountApplicationInformation.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/accountAssetInformation.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/accountInformation.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/algod.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/block.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/compile.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/dryrun.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/genesis.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/getApplicationBoxByName.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/getApplicationBoxes.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/getApplicationByID.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/getAssetByID.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/getBlockHash.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/getTransactionProof.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/healthCheck.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/lightBlockHeaderProof.d.ts +0 -0
- package/dist/types/client/v2/algod/models/types.d.ts +1634 -0
- package/dist/types/{src/client → client}/v2/algod/pendingTransactionInformation.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/pendingTransactions.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/pendingTransactionsByAddress.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/sendRawTransaction.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/stateproof.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/status.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/statusAfterBlock.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/suggestedParams.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/supply.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/algod/versions.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/basemodel.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/indexer.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupAccountAppLocalStates.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupAccountAssets.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupAccountByID.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupAccountCreatedApplications.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupAccountCreatedAssets.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupAccountTransactions.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupApplicationBoxByIDandName.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupApplicationLogs.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupApplications.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupAssetBalances.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupAssetByID.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupAssetTransactions.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupBlock.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/lookupTransactionByID.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/makeHealthCheck.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/models/types.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/searchAccounts.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/searchForApplicationBoxes.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/searchForApplications.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/searchForAssets.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/indexer/searchForTransactions.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/jsonrequest.d.ts +0 -0
- package/dist/types/{src/client → client}/v2/serviceClient.d.ts +0 -0
- package/dist/types/{src/composer.d.ts → composer.d.ts} +0 -0
- package/dist/types/{src/convert.d.ts → convert.d.ts} +0 -0
- package/dist/types/{src/dryrun.d.ts → dryrun.d.ts} +0 -0
- package/dist/types/{src/encoding → encoding}/address.d.ts +0 -0
- package/dist/types/{src/encoding → encoding}/bigint.d.ts +0 -0
- package/dist/types/{src/encoding → encoding}/encoding.d.ts +0 -0
- package/dist/types/{src/encoding → encoding}/uint64.d.ts +0 -0
- package/dist/types/{src/group.d.ts → group.d.ts} +0 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/{src/logic → logic}/logic.d.ts +0 -0
- package/dist/types/{src/logic → logic}/sourcemap.d.ts +0 -0
- package/dist/types/{src/logicTemplates → logicTemplates}/dynamicfee.d.ts +0 -0
- package/dist/types/{src/logicTemplates → logicTemplates}/htlc.d.ts +0 -0
- package/dist/types/{src/logicTemplates → logicTemplates}/index.d.ts +0 -0
- package/dist/types/{src/logicTemplates → logicTemplates}/limitorder.d.ts +0 -0
- package/dist/types/{src/logicTemplates → logicTemplates}/periodicpayment.d.ts +0 -0
- package/dist/types/{src/logicTemplates → logicTemplates}/split.d.ts +0 -0
- package/dist/types/{src/logicTemplates → logicTemplates}/templates.d.ts +0 -0
- package/dist/types/{src/logicsig.d.ts → logicsig.d.ts} +0 -0
- package/dist/types/{src/main.d.ts → main.d.ts} +0 -0
- package/dist/types/{src/makeTxn.d.ts → makeTxn.d.ts} +0 -0
- package/dist/types/{src/mnemonic → mnemonic}/mnemonic.d.ts +0 -0
- package/dist/types/{src/mnemonic → mnemonic}/wordlists/english.d.ts +0 -0
- package/dist/types/multisig.d.ts +125 -0
- package/dist/types/{src/nacl → nacl}/naclWrappers.d.ts +0 -0
- package/dist/types/{src/signer.d.ts → signer.d.ts} +0 -0
- package/dist/types/{src/transaction.d.ts → transaction.d.ts} +0 -0
- package/dist/types/{src/types → types}/account.d.ts +0 -0
- package/dist/types/{src/types → types}/address.d.ts +0 -0
- package/dist/types/{src/types → types}/blockHeader.d.ts +0 -0
- package/dist/types/{src/types → types}/index.d.ts +0 -0
- package/dist/types/{src/types → types}/intDecoding.d.ts +0 -0
- package/dist/types/{src/types → types}/multisig.d.ts +0 -0
- package/dist/types/{src/types → types}/transactions/application.d.ts +0 -0
- package/dist/types/{src/types → types}/transactions/asset.d.ts +0 -0
- package/dist/types/{src/types → types}/transactions/base.d.ts +0 -0
- package/dist/types/{src/types → types}/transactions/builder.d.ts +0 -0
- package/dist/types/{src/types → types}/transactions/encoded.d.ts +0 -0
- package/dist/types/{src/types → types}/transactions/index.d.ts +0 -0
- package/dist/types/{src/types → types}/transactions/keyreg.d.ts +0 -0
- package/dist/types/{src/types → types}/transactions/payment.d.ts +0 -0
- package/dist/types/{src/types → types}/transactions/stateproof.d.ts +0 -0
- package/dist/types/{src/types → types}/utils.d.ts +0 -0
- package/dist/types/{src/utils → utils}/utils.d.ts +0 -0
- package/dist/types/{src/wait.d.ts → wait.d.ts} +0 -0
- package/package.json +10 -6
- package/src/abi/abi_type.ts +846 -0
- package/src/abi/contract.ts +51 -0
- package/src/abi/index.ts +6 -0
- package/src/abi/interface.ts +35 -0
- package/src/abi/method.ts +186 -0
- package/src/abi/reference.ts +24 -0
- package/src/abi/transaction.ts +61 -0
- package/src/account.ts +12 -0
- package/src/bid.ts +95 -0
- package/src/boxStorage.ts +42 -0
- package/src/client/algod.js +365 -0
- package/src/client/baseHTTPClient.ts +58 -0
- package/src/client/client.ts +306 -0
- package/src/client/kmd.ts +423 -0
- package/src/client/urlTokenBaseHTTPClient.ts +217 -0
- package/src/client/v2/algod/accountApplicationInformation.ts +20 -0
- package/src/client/v2/algod/accountAssetInformation.ts +20 -0
- package/src/client/v2/algod/accountInformation.ts +37 -0
- package/src/client/v2/algod/algod.ts +561 -0
- package/src/client/v2/algod/block.ts +30 -0
- package/src/client/v2/algod/compile.ts +50 -0
- package/src/client/v2/algod/dryrun.ts +33 -0
- package/src/client/v2/algod/genesis.ts +8 -0
- package/src/client/v2/algod/getApplicationBoxByName.ts +49 -0
- package/src/client/v2/algod/getApplicationBoxes.ts +61 -0
- package/src/client/v2/algod/getApplicationByID.ts +14 -0
- package/src/client/v2/algod/getAssetByID.ts +14 -0
- package/src/client/v2/algod/getBlockHash.ts +18 -0
- package/src/client/v2/algod/getTransactionProof.ts +43 -0
- package/src/client/v2/algod/healthCheck.ts +19 -0
- package/src/client/v2/algod/lightBlockHeaderProof.ts +15 -0
- package/src/client/v2/algod/models/types.ts +3662 -0
- package/src/client/v2/algod/pendingTransactionInformation.ts +32 -0
- package/src/client/v2/algod/pendingTransactions.ts +32 -0
- package/src/client/v2/algod/pendingTransactionsByAddress.ts +32 -0
- package/src/client/v2/algod/sendRawTransaction.ts +59 -0
- package/src/client/v2/algod/stateproof.ts +15 -0
- package/src/client/v2/algod/status.ts +8 -0
- package/src/client/v2/algod/statusAfterBlock.ts +15 -0
- package/src/client/v2/algod/suggestedParams.ts +24 -0
- package/src/client/v2/algod/supply.ts +8 -0
- package/src/client/v2/algod/versions.ts +11 -0
- package/src/client/v2/basemodel.ts +79 -0
- package/src/client/v2/indexer/indexer.ts +432 -0
- package/src/client/v2/indexer/lookupAccountAppLocalStates.ts +140 -0
- package/src/client/v2/indexer/lookupAccountAssets.ts +141 -0
- package/src/client/v2/indexer/lookupAccountByID.ts +109 -0
- package/src/client/v2/indexer/lookupAccountCreatedApplications.ts +141 -0
- package/src/client/v2/indexer/lookupAccountCreatedAssets.ts +142 -0
- package/src/client/v2/indexer/lookupAccountTransactions.ts +393 -0
- package/src/client/v2/indexer/lookupApplicationBoxByIDandName.ts +50 -0
- package/src/client/v2/indexer/lookupApplicationLogs.ts +156 -0
- package/src/client/v2/indexer/lookupApplications.ts +59 -0
- package/src/client/v2/indexer/lookupAssetBalances.ts +146 -0
- package/src/client/v2/indexer/lookupAssetByID.ts +58 -0
- package/src/client/v2/indexer/lookupAssetTransactions.ts +406 -0
- package/src/client/v2/indexer/lookupBlock.ts +39 -0
- package/src/client/v2/indexer/lookupTransactionByID.ts +30 -0
- package/src/client/v2/indexer/makeHealthCheck.ts +23 -0
- package/src/client/v2/indexer/models/types.ts +5667 -0
- package/src/client/v2/indexer/searchAccounts.ts +268 -0
- package/src/client/v2/indexer/searchForApplicationBoxes.ts +101 -0
- package/src/client/v2/indexer/searchForApplications.ts +134 -0
- package/src/client/v2/indexer/searchForAssets.ts +175 -0
- package/src/client/v2/indexer/searchForTransactions.ts +435 -0
- package/src/client/v2/jsonrequest.ts +103 -0
- package/src/client/v2/serviceClient.ts +86 -0
- package/src/composer.ts +688 -0
- package/src/convert.ts +25 -0
- package/src/dryrun.ts +468 -0
- package/src/encoding/address.ts +191 -0
- package/src/encoding/bigint.ts +33 -0
- package/src/encoding/encoding.ts +56 -0
- package/src/encoding/uint64.ts +84 -0
- package/src/group.ts +97 -0
- package/src/index.ts +4 -0
- package/src/logic/langspec.json +2014 -0
- package/src/logic/logic.ts +316 -0
- package/src/logic/sourcemap.ts +67 -0
- package/src/logicTemplates/dynamicfee.js +219 -0
- package/src/logicTemplates/htlc.js +165 -0
- package/src/logicTemplates/index.js +20 -0
- package/src/logicTemplates/limitorder.js +227 -0
- package/src/logicTemplates/periodicpayment.js +208 -0
- package/src/logicTemplates/split.js +208 -0
- package/src/logicTemplates/templates.js +78 -0
- package/src/logicsig.ts +523 -0
- package/src/main.ts +185 -0
- package/src/makeTxn.ts +1871 -0
- package/src/mnemonic/mnemonic.ts +181 -0
- package/src/mnemonic/wordlists/english.ts +2052 -0
- package/src/multisig.ts +495 -0
- package/src/nacl/naclWrappers.ts +49 -0
- package/src/signer.ts +105 -0
- package/src/transaction.ts +1363 -0
- package/src/types/account.ts +16 -0
- package/src/types/address.ts +7 -0
- package/src/types/blockHeader.ts +81 -0
- package/src/types/index.ts +3 -0
- package/src/types/intDecoding.ts +29 -0
- package/src/types/multisig.ts +22 -0
- package/src/types/transactions/application.ts +111 -0
- package/src/types/transactions/asset.ts +108 -0
- package/src/types/transactions/base.ts +428 -0
- package/src/types/transactions/builder.ts +69 -0
- package/src/types/transactions/encoded.ts +423 -0
- package/src/types/transactions/index.ts +72 -0
- package/src/types/transactions/keyreg.ts +23 -0
- package/src/types/transactions/payment.ts +14 -0
- package/src/types/transactions/stateproof.ts +17 -0
- package/src/types/utils.ts +63 -0
- package/src/utils/utils.ts +121 -0
- package/src/wait.ts +58 -0
- package/dist/cjs/src/abi/abi_type.js +0 -693
- package/dist/cjs/src/abi/abi_type.js.map +0 -1
- package/dist/cjs/src/abi/contract.js.map +0 -1
- package/dist/cjs/src/abi/index.js.map +0 -1
- package/dist/cjs/src/abi/interface.js.map +0 -1
- package/dist/cjs/src/abi/method.js.map +0 -1
- package/dist/cjs/src/abi/reference.js.map +0 -1
- package/dist/cjs/src/abi/transaction.js.map +0 -1
- package/dist/cjs/src/account.js.map +0 -1
- package/dist/cjs/src/bid.js.map +0 -1
- package/dist/cjs/src/boxStorage.js.map +0 -1
- package/dist/cjs/src/client/algod.js.map +0 -1
- package/dist/cjs/src/client/baseHTTPClient.js.map +0 -1
- package/dist/cjs/src/client/client.js.map +0 -1
- package/dist/cjs/src/client/kmd.js.map +0 -1
- package/dist/cjs/src/client/urlTokenBaseHTTPClient.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/accountApplicationInformation.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/accountAssetInformation.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/accountInformation.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/algod.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/block.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/compile.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/dryrun.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/genesis.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/getApplicationBoxByName.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/getApplicationBoxes.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/getApplicationByID.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/getAssetByID.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/getBlockHash.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/getTransactionProof.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/healthCheck.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/lightBlockHeaderProof.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/models/types.js +0 -2033
- package/dist/cjs/src/client/v2/algod/models/types.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/pendingTransactionInformation.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/pendingTransactions.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/pendingTransactionsByAddress.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/sendRawTransaction.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/stateproof.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/status.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/statusAfterBlock.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/suggestedParams.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/supply.js.map +0 -1
- package/dist/cjs/src/client/v2/algod/versions.js.map +0 -1
- package/dist/cjs/src/client/v2/basemodel.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/indexer.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupAccountAppLocalStates.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupAccountAssets.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupAccountByID.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedApplications.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupAccountCreatedAssets.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupAccountTransactions.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupApplicationLogs.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupApplications.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupAssetBalances.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupAssetByID.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupAssetTransactions.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupBlock.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/lookupTransactionByID.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/makeHealthCheck.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/models/types.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/searchAccounts.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/searchForApplicationBoxes.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/searchForApplications.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/searchForAssets.js.map +0 -1
- package/dist/cjs/src/client/v2/indexer/searchForTransactions.js.map +0 -1
- package/dist/cjs/src/client/v2/jsonrequest.js.map +0 -1
- package/dist/cjs/src/client/v2/serviceClient.js.map +0 -1
- package/dist/cjs/src/composer.js.map +0 -1
- package/dist/cjs/src/convert.js.map +0 -1
- package/dist/cjs/src/dryrun.js.map +0 -1
- package/dist/cjs/src/encoding/address.js.map +0 -1
- package/dist/cjs/src/encoding/bigint.js.map +0 -1
- package/dist/cjs/src/encoding/encoding.js.map +0 -1
- package/dist/cjs/src/encoding/uint64.js.map +0 -1
- package/dist/cjs/src/group.js.map +0 -1
- package/dist/cjs/src/logic/logic.js.map +0 -1
- package/dist/cjs/src/logic/sourcemap.js.map +0 -1
- package/dist/cjs/src/logicTemplates/dynamicfee.js.map +0 -1
- package/dist/cjs/src/logicTemplates/htlc.js.map +0 -1
- package/dist/cjs/src/logicTemplates/index.js.map +0 -1
- package/dist/cjs/src/logicTemplates/limitorder.js.map +0 -1
- package/dist/cjs/src/logicTemplates/periodicpayment.js.map +0 -1
- package/dist/cjs/src/logicTemplates/split.js.map +0 -1
- package/dist/cjs/src/logicTemplates/templates.js.map +0 -1
- package/dist/cjs/src/logicsig.js.map +0 -1
- package/dist/cjs/src/main.js.map +0 -1
- package/dist/cjs/src/makeTxn.js.map +0 -1
- package/dist/cjs/src/mnemonic/mnemonic.js.map +0 -1
- package/dist/cjs/src/mnemonic/wordlists/english.js.map +0 -1
- package/dist/cjs/src/multisig.js +0 -398
- package/dist/cjs/src/multisig.js.map +0 -1
- package/dist/cjs/src/nacl/naclWrappers.js.map +0 -1
- package/dist/cjs/src/signer.js.map +0 -1
- package/dist/cjs/src/transaction.js.map +0 -1
- package/dist/cjs/src/types/account.js.map +0 -1
- package/dist/cjs/src/types/address.js.map +0 -1
- package/dist/cjs/src/types/blockHeader.js.map +0 -1
- package/dist/cjs/src/types/index.js.map +0 -1
- package/dist/cjs/src/types/intDecoding.js.map +0 -1
- package/dist/cjs/src/types/multisig.js.map +0 -1
- package/dist/cjs/src/types/transactions/application.js.map +0 -1
- package/dist/cjs/src/types/transactions/asset.js.map +0 -1
- package/dist/cjs/src/types/transactions/base.js.map +0 -1
- package/dist/cjs/src/types/transactions/builder.js.map +0 -1
- package/dist/cjs/src/types/transactions/encoded.js.map +0 -1
- package/dist/cjs/src/types/transactions/index.js.map +0 -1
- package/dist/cjs/src/types/transactions/keyreg.js.map +0 -1
- package/dist/cjs/src/types/transactions/payment.js.map +0 -1
- package/dist/cjs/src/types/transactions/stateproof.js.map +0 -1
- package/dist/cjs/src/types/utils.js.map +0 -1
- package/dist/cjs/src/utils/utils.js.map +0 -1
- package/dist/cjs/src/wait.js.map +0 -1
- package/dist/esm/src/abi/abi_type.js +0 -680
- package/dist/esm/src/abi/abi_type.js.map +0 -1
- package/dist/esm/src/abi/contract.js.map +0 -1
- package/dist/esm/src/abi/index.js.map +0 -1
- package/dist/esm/src/abi/interface.js.map +0 -1
- package/dist/esm/src/abi/method.js.map +0 -1
- package/dist/esm/src/abi/reference.js.map +0 -1
- package/dist/esm/src/abi/transaction.js.map +0 -1
- package/dist/esm/src/account.js.map +0 -1
- package/dist/esm/src/bid.js.map +0 -1
- package/dist/esm/src/boxStorage.js.map +0 -1
- package/dist/esm/src/client/algod.js.map +0 -1
- package/dist/esm/src/client/baseHTTPClient.js.map +0 -1
- package/dist/esm/src/client/client.js.map +0 -1
- package/dist/esm/src/client/kmd.js.map +0 -1
- package/dist/esm/src/client/urlTokenBaseHTTPClient.js.map +0 -1
- package/dist/esm/src/client/v2/algod/accountApplicationInformation.js.map +0 -1
- package/dist/esm/src/client/v2/algod/accountAssetInformation.js.map +0 -1
- package/dist/esm/src/client/v2/algod/accountInformation.js.map +0 -1
- package/dist/esm/src/client/v2/algod/algod.js.map +0 -1
- package/dist/esm/src/client/v2/algod/block.js.map +0 -1
- package/dist/esm/src/client/v2/algod/compile.js.map +0 -1
- package/dist/esm/src/client/v2/algod/dryrun.js.map +0 -1
- package/dist/esm/src/client/v2/algod/genesis.js.map +0 -1
- package/dist/esm/src/client/v2/algod/getApplicationBoxByName.js.map +0 -1
- package/dist/esm/src/client/v2/algod/getApplicationBoxes.js.map +0 -1
- package/dist/esm/src/client/v2/algod/getApplicationByID.js.map +0 -1
- package/dist/esm/src/client/v2/algod/getAssetByID.js.map +0 -1
- package/dist/esm/src/client/v2/algod/getBlockHash.js.map +0 -1
- package/dist/esm/src/client/v2/algod/getTransactionProof.js.map +0 -1
- package/dist/esm/src/client/v2/algod/healthCheck.js.map +0 -1
- package/dist/esm/src/client/v2/algod/lightBlockHeaderProof.js.map +0 -1
- package/dist/esm/src/client/v2/algod/models/types.js +0 -1984
- package/dist/esm/src/client/v2/algod/models/types.js.map +0 -1
- package/dist/esm/src/client/v2/algod/pendingTransactionInformation.js.map +0 -1
- package/dist/esm/src/client/v2/algod/pendingTransactions.js.map +0 -1
- package/dist/esm/src/client/v2/algod/pendingTransactionsByAddress.js.map +0 -1
- package/dist/esm/src/client/v2/algod/sendRawTransaction.js.map +0 -1
- package/dist/esm/src/client/v2/algod/stateproof.js.map +0 -1
- package/dist/esm/src/client/v2/algod/status.js.map +0 -1
- package/dist/esm/src/client/v2/algod/statusAfterBlock.js.map +0 -1
- package/dist/esm/src/client/v2/algod/suggestedParams.js.map +0 -1
- package/dist/esm/src/client/v2/algod/supply.js.map +0 -1
- package/dist/esm/src/client/v2/algod/versions.js.map +0 -1
- package/dist/esm/src/client/v2/basemodel.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/indexer.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupAccountAppLocalStates.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupAccountAssets.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupAccountByID.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupAccountCreatedApplications.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupAccountCreatedAssets.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupAccountTransactions.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupApplicationBoxByIDandName.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupApplicationLogs.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupApplications.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupAssetBalances.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupAssetByID.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupAssetTransactions.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupBlock.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/lookupTransactionByID.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/makeHealthCheck.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/models/types.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/searchAccounts.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/searchForApplicationBoxes.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/searchForApplications.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/searchForAssets.js.map +0 -1
- package/dist/esm/src/client/v2/indexer/searchForTransactions.js.map +0 -1
- package/dist/esm/src/client/v2/jsonrequest.js.map +0 -1
- package/dist/esm/src/client/v2/serviceClient.js.map +0 -1
- package/dist/esm/src/composer.js.map +0 -1
- package/dist/esm/src/convert.js.map +0 -1
- package/dist/esm/src/dryrun.js.map +0 -1
- package/dist/esm/src/encoding/address.js.map +0 -1
- package/dist/esm/src/encoding/bigint.js.map +0 -1
- package/dist/esm/src/encoding/encoding.js.map +0 -1
- package/dist/esm/src/encoding/uint64.js.map +0 -1
- package/dist/esm/src/group.js.map +0 -1
- package/dist/esm/src/logic/logic.js.map +0 -1
- package/dist/esm/src/logic/sourcemap.js.map +0 -1
- package/dist/esm/src/logicTemplates/dynamicfee.js.map +0 -1
- package/dist/esm/src/logicTemplates/htlc.js.map +0 -1
- package/dist/esm/src/logicTemplates/index.js.map +0 -1
- package/dist/esm/src/logicTemplates/limitorder.js.map +0 -1
- package/dist/esm/src/logicTemplates/periodicpayment.js.map +0 -1
- package/dist/esm/src/logicTemplates/split.js.map +0 -1
- package/dist/esm/src/logicTemplates/templates.js.map +0 -1
- package/dist/esm/src/logicsig.js.map +0 -1
- package/dist/esm/src/main.js.map +0 -1
- package/dist/esm/src/makeTxn.js.map +0 -1
- package/dist/esm/src/mnemonic/mnemonic.js.map +0 -1
- package/dist/esm/src/mnemonic/wordlists/english.js.map +0 -1
- package/dist/esm/src/multisig.js +0 -364
- package/dist/esm/src/multisig.js.map +0 -1
- package/dist/esm/src/nacl/naclWrappers.js.map +0 -1
- package/dist/esm/src/signer.js.map +0 -1
- package/dist/esm/src/transaction.js.map +0 -1
- package/dist/esm/src/types/account.js.map +0 -1
- package/dist/esm/src/types/address.js.map +0 -1
- package/dist/esm/src/types/blockHeader.js.map +0 -1
- package/dist/esm/src/types/index.js.map +0 -1
- package/dist/esm/src/types/intDecoding.js.map +0 -1
- package/dist/esm/src/types/multisig.js.map +0 -1
- package/dist/esm/src/types/transactions/application.js.map +0 -1
- package/dist/esm/src/types/transactions/asset.js.map +0 -1
- package/dist/esm/src/types/transactions/base.js.map +0 -1
- package/dist/esm/src/types/transactions/builder.js.map +0 -1
- package/dist/esm/src/types/transactions/encoded.js.map +0 -1
- package/dist/esm/src/types/transactions/index.js.map +0 -1
- package/dist/esm/src/types/transactions/keyreg.js.map +0 -1
- package/dist/esm/src/types/transactions/payment.js.map +0 -1
- package/dist/esm/src/types/transactions/stateproof.js.map +0 -1
- package/dist/esm/src/types/utils.js.map +0 -1
- package/dist/esm/src/utils/utils.js.map +0 -1
- package/dist/esm/src/wait.js.map +0 -1
- package/dist/types/src/client/v2/algod/models/types.d.ts +0 -1612
- package/dist/types/src/multisig.d.ts +0 -125
|
@@ -0,0 +1,2047 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* NOTICE: This file was generated. Editing this file manually is not recommended.
|
|
4
|
+
*/
|
|
5
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.Version = exports.TransactionProofResponse = exports.TransactionParametersResponse = exports.TealValue = exports.TealKeyValue = exports.SupplyResponse = exports.StateProofMessage = exports.StateProof = exports.PostTransactionsResponse = exports.PendingTransactionsResponse = exports.PendingTransactionResponse = exports.NodeStatusResponse = exports.LightBlockHeaderProof = exports.EvalDeltaKeyValue = exports.EvalDelta = exports.ErrorResponse = exports.DryrunTxnResult = exports.DryrunState = exports.DryrunSource = exports.DryrunResponse = exports.DryrunRequest = exports.DisassembleResponse = exports.CompileResponse = exports.CatchpointStartResponse = exports.CatchpointAbortResponse = exports.BuildVersion = exports.BoxesResponse = exports.BoxDescriptor = exports.Box = exports.BlockResponse = exports.BlockHashResponse = exports.AssetParams = exports.AssetHolding = exports.Asset = exports.ApplicationStateSchema = exports.ApplicationParams = exports.ApplicationLocalState = exports.Application = exports.AccountStateDelta = exports.AccountParticipation = exports.AccountAssetResponse = exports.AccountApplicationResponse = exports.Account = void 0;
|
|
10
|
+
/* eslint-disable no-use-before-define */
|
|
11
|
+
const basemodel_1 = __importDefault(require("../../basemodel"));
|
|
12
|
+
/**
|
|
13
|
+
* Account information at a given round.
|
|
14
|
+
* Definition:
|
|
15
|
+
* data/basics/userBalance.go : AccountData
|
|
16
|
+
*/
|
|
17
|
+
class Account extends basemodel_1.default {
|
|
18
|
+
/**
|
|
19
|
+
* Creates a new `Account` object.
|
|
20
|
+
* @param address - the account public key
|
|
21
|
+
* @param amount - (algo) total number of MicroAlgos in the account
|
|
22
|
+
* @param amountWithoutPendingRewards - specifies the amount of MicroAlgos in the account, without the pending rewards.
|
|
23
|
+
* @param minBalance - MicroAlgo balance required by the account.
|
|
24
|
+
* The requirement grows based on asset and application usage.
|
|
25
|
+
* @param pendingRewards - amount of MicroAlgos of pending rewards in this account.
|
|
26
|
+
* @param rewards - (ern) total rewards of MicroAlgos the account has received, including pending
|
|
27
|
+
* rewards.
|
|
28
|
+
* @param round - The round for which this information is relevant.
|
|
29
|
+
* @param status - (onl) delegation status of the account's MicroAlgos
|
|
30
|
+
* * Offline - indicates that the associated account is delegated.
|
|
31
|
+
* * Online - indicates that the associated account used as part of the delegation
|
|
32
|
+
* pool.
|
|
33
|
+
* * NotParticipating - indicates that the associated account is neither a
|
|
34
|
+
* delegator nor a delegate.
|
|
35
|
+
* @param totalAppsOptedIn - The count of all applications that have been opted in, equivalent to the count
|
|
36
|
+
* of application local data (AppLocalState objects) stored in this account.
|
|
37
|
+
* @param totalAssetsOptedIn - The count of all assets that have been opted in, equivalent to the count of
|
|
38
|
+
* AssetHolding objects held by this account.
|
|
39
|
+
* @param totalCreatedApps - The count of all apps (AppParams objects) created by this account.
|
|
40
|
+
* @param totalCreatedAssets - The count of all assets (AssetParams objects) created by this account.
|
|
41
|
+
* @param appsLocalState - (appl) applications local data stored in this account.
|
|
42
|
+
* Note the raw object uses `map[int] -> AppLocalState` for this type.
|
|
43
|
+
* @param appsTotalExtraPages - (teap) the sum of all extra application program pages for this account.
|
|
44
|
+
* @param appsTotalSchema - (tsch) stores the sum of all of the local schemas and global schemas in this
|
|
45
|
+
* account.
|
|
46
|
+
* Note: the raw account uses `StateSchema` for this type.
|
|
47
|
+
* @param assets - (asset) assets held by this account.
|
|
48
|
+
* Note the raw object uses `map[int] -> AssetHolding` for this type.
|
|
49
|
+
* @param authAddr - (spend) the address against which signing should be checked. If empty, the
|
|
50
|
+
* address of the current account is used. This field can be updated in any
|
|
51
|
+
* transaction by setting the RekeyTo field.
|
|
52
|
+
* @param createdApps - (appp) parameters of applications created by this account including app global
|
|
53
|
+
* data.
|
|
54
|
+
* Note: the raw account uses `map[int] -> AppParams` for this type.
|
|
55
|
+
* @param createdAssets - (apar) parameters of assets created by this account.
|
|
56
|
+
* Note: the raw account uses `map[int] -> Asset` for this type.
|
|
57
|
+
* @param participation - AccountParticipation describes the parameters used by this account in consensus
|
|
58
|
+
* protocol.
|
|
59
|
+
* @param rewardBase - (ebase) used as part of the rewards computation. Only applicable to accounts
|
|
60
|
+
* which are participating.
|
|
61
|
+
* @param sigType - Indicates what type of signature is used by this account, must be one of:
|
|
62
|
+
* * sig
|
|
63
|
+
* * msig
|
|
64
|
+
* * lsig
|
|
65
|
+
* @param totalBoxBytes - (tbxb) The total number of bytes used by this account's app's box keys and
|
|
66
|
+
* values.
|
|
67
|
+
* @param totalBoxes - (tbx) The number of existing boxes created by this account's app.
|
|
68
|
+
*/
|
|
69
|
+
constructor({ address, amount, amountWithoutPendingRewards, minBalance, pendingRewards, rewards, round, status, totalAppsOptedIn, totalAssetsOptedIn, totalCreatedApps, totalCreatedAssets, appsLocalState, appsTotalExtraPages, appsTotalSchema, assets, authAddr, createdApps, createdAssets, participation, rewardBase, sigType, totalBoxBytes, totalBoxes, }) {
|
|
70
|
+
super();
|
|
71
|
+
this.address = address;
|
|
72
|
+
this.amount = amount;
|
|
73
|
+
this.amountWithoutPendingRewards = amountWithoutPendingRewards;
|
|
74
|
+
this.minBalance = minBalance;
|
|
75
|
+
this.pendingRewards = pendingRewards;
|
|
76
|
+
this.rewards = rewards;
|
|
77
|
+
this.round = round;
|
|
78
|
+
this.status = status;
|
|
79
|
+
this.totalAppsOptedIn = totalAppsOptedIn;
|
|
80
|
+
this.totalAssetsOptedIn = totalAssetsOptedIn;
|
|
81
|
+
this.totalCreatedApps = totalCreatedApps;
|
|
82
|
+
this.totalCreatedAssets = totalCreatedAssets;
|
|
83
|
+
this.appsLocalState = appsLocalState;
|
|
84
|
+
this.appsTotalExtraPages = appsTotalExtraPages;
|
|
85
|
+
this.appsTotalSchema = appsTotalSchema;
|
|
86
|
+
this.assets = assets;
|
|
87
|
+
this.authAddr = authAddr;
|
|
88
|
+
this.createdApps = createdApps;
|
|
89
|
+
this.createdAssets = createdAssets;
|
|
90
|
+
this.participation = participation;
|
|
91
|
+
this.rewardBase = rewardBase;
|
|
92
|
+
this.sigType = sigType;
|
|
93
|
+
this.totalBoxBytes = totalBoxBytes;
|
|
94
|
+
this.totalBoxes = totalBoxes;
|
|
95
|
+
this.attribute_map = {
|
|
96
|
+
address: 'address',
|
|
97
|
+
amount: 'amount',
|
|
98
|
+
amountWithoutPendingRewards: 'amount-without-pending-rewards',
|
|
99
|
+
minBalance: 'min-balance',
|
|
100
|
+
pendingRewards: 'pending-rewards',
|
|
101
|
+
rewards: 'rewards',
|
|
102
|
+
round: 'round',
|
|
103
|
+
status: 'status',
|
|
104
|
+
totalAppsOptedIn: 'total-apps-opted-in',
|
|
105
|
+
totalAssetsOptedIn: 'total-assets-opted-in',
|
|
106
|
+
totalCreatedApps: 'total-created-apps',
|
|
107
|
+
totalCreatedAssets: 'total-created-assets',
|
|
108
|
+
appsLocalState: 'apps-local-state',
|
|
109
|
+
appsTotalExtraPages: 'apps-total-extra-pages',
|
|
110
|
+
appsTotalSchema: 'apps-total-schema',
|
|
111
|
+
assets: 'assets',
|
|
112
|
+
authAddr: 'auth-addr',
|
|
113
|
+
createdApps: 'created-apps',
|
|
114
|
+
createdAssets: 'created-assets',
|
|
115
|
+
participation: 'participation',
|
|
116
|
+
rewardBase: 'reward-base',
|
|
117
|
+
sigType: 'sig-type',
|
|
118
|
+
totalBoxBytes: 'total-box-bytes',
|
|
119
|
+
totalBoxes: 'total-boxes',
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
// eslint-disable-next-line camelcase
|
|
123
|
+
static from_obj_for_encoding(data) {
|
|
124
|
+
/* eslint-disable dot-notation */
|
|
125
|
+
if (typeof data['address'] === 'undefined')
|
|
126
|
+
throw new Error(`Response is missing required field 'address': ${data}`);
|
|
127
|
+
if (typeof data['amount'] === 'undefined')
|
|
128
|
+
throw new Error(`Response is missing required field 'amount': ${data}`);
|
|
129
|
+
if (typeof data['amount-without-pending-rewards'] === 'undefined')
|
|
130
|
+
throw new Error(`Response is missing required field 'amount-without-pending-rewards': ${data}`);
|
|
131
|
+
if (typeof data['min-balance'] === 'undefined')
|
|
132
|
+
throw new Error(`Response is missing required field 'min-balance': ${data}`);
|
|
133
|
+
if (typeof data['pending-rewards'] === 'undefined')
|
|
134
|
+
throw new Error(`Response is missing required field 'pending-rewards': ${data}`);
|
|
135
|
+
if (typeof data['rewards'] === 'undefined')
|
|
136
|
+
throw new Error(`Response is missing required field 'rewards': ${data}`);
|
|
137
|
+
if (typeof data['round'] === 'undefined')
|
|
138
|
+
throw new Error(`Response is missing required field 'round': ${data}`);
|
|
139
|
+
if (typeof data['status'] === 'undefined')
|
|
140
|
+
throw new Error(`Response is missing required field 'status': ${data}`);
|
|
141
|
+
if (typeof data['total-apps-opted-in'] === 'undefined')
|
|
142
|
+
throw new Error(`Response is missing required field 'total-apps-opted-in': ${data}`);
|
|
143
|
+
if (typeof data['total-assets-opted-in'] === 'undefined')
|
|
144
|
+
throw new Error(`Response is missing required field 'total-assets-opted-in': ${data}`);
|
|
145
|
+
if (typeof data['total-created-apps'] === 'undefined')
|
|
146
|
+
throw new Error(`Response is missing required field 'total-created-apps': ${data}`);
|
|
147
|
+
if (typeof data['total-created-assets'] === 'undefined')
|
|
148
|
+
throw new Error(`Response is missing required field 'total-created-assets': ${data}`);
|
|
149
|
+
return new Account({
|
|
150
|
+
address: data['address'],
|
|
151
|
+
amount: data['amount'],
|
|
152
|
+
amountWithoutPendingRewards: data['amount-without-pending-rewards'],
|
|
153
|
+
minBalance: data['min-balance'],
|
|
154
|
+
pendingRewards: data['pending-rewards'],
|
|
155
|
+
rewards: data['rewards'],
|
|
156
|
+
round: data['round'],
|
|
157
|
+
status: data['status'],
|
|
158
|
+
totalAppsOptedIn: data['total-apps-opted-in'],
|
|
159
|
+
totalAssetsOptedIn: data['total-assets-opted-in'],
|
|
160
|
+
totalCreatedApps: data['total-created-apps'],
|
|
161
|
+
totalCreatedAssets: data['total-created-assets'],
|
|
162
|
+
appsLocalState: typeof data['apps-local-state'] !== 'undefined'
|
|
163
|
+
? data['apps-local-state'].map(ApplicationLocalState.from_obj_for_encoding)
|
|
164
|
+
: undefined,
|
|
165
|
+
appsTotalExtraPages: data['apps-total-extra-pages'],
|
|
166
|
+
appsTotalSchema: typeof data['apps-total-schema'] !== 'undefined'
|
|
167
|
+
? ApplicationStateSchema.from_obj_for_encoding(data['apps-total-schema'])
|
|
168
|
+
: undefined,
|
|
169
|
+
assets: typeof data['assets'] !== 'undefined'
|
|
170
|
+
? data['assets'].map(AssetHolding.from_obj_for_encoding)
|
|
171
|
+
: undefined,
|
|
172
|
+
authAddr: data['auth-addr'],
|
|
173
|
+
createdApps: typeof data['created-apps'] !== 'undefined'
|
|
174
|
+
? data['created-apps'].map(Application.from_obj_for_encoding)
|
|
175
|
+
: undefined,
|
|
176
|
+
createdAssets: typeof data['created-assets'] !== 'undefined'
|
|
177
|
+
? data['created-assets'].map(Asset.from_obj_for_encoding)
|
|
178
|
+
: undefined,
|
|
179
|
+
participation: typeof data['participation'] !== 'undefined'
|
|
180
|
+
? AccountParticipation.from_obj_for_encoding(data['participation'])
|
|
181
|
+
: undefined,
|
|
182
|
+
rewardBase: data['reward-base'],
|
|
183
|
+
sigType: data['sig-type'],
|
|
184
|
+
totalBoxBytes: data['total-box-bytes'],
|
|
185
|
+
totalBoxes: data['total-boxes'],
|
|
186
|
+
});
|
|
187
|
+
/* eslint-enable dot-notation */
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
exports.Account = Account;
|
|
191
|
+
/**
|
|
192
|
+
* AccountApplicationResponse describes the account's application local state and
|
|
193
|
+
* global state (AppLocalState and AppParams, if either exists) for a specific
|
|
194
|
+
* application ID. Global state will only be returned if the provided address is
|
|
195
|
+
* the application's creator.
|
|
196
|
+
*/
|
|
197
|
+
class AccountApplicationResponse extends basemodel_1.default {
|
|
198
|
+
/**
|
|
199
|
+
* Creates a new `AccountApplicationResponse` object.
|
|
200
|
+
* @param round - The round for which this information is relevant.
|
|
201
|
+
* @param appLocalState - (appl) the application local data stored in this account.
|
|
202
|
+
* The raw account uses `AppLocalState` for this type.
|
|
203
|
+
* @param createdApp - (appp) parameters of the application created by this account including app
|
|
204
|
+
* global data.
|
|
205
|
+
* The raw account uses `AppParams` for this type.
|
|
206
|
+
*/
|
|
207
|
+
constructor(round, appLocalState, createdApp) {
|
|
208
|
+
super();
|
|
209
|
+
this.round = round;
|
|
210
|
+
this.appLocalState = appLocalState;
|
|
211
|
+
this.createdApp = createdApp;
|
|
212
|
+
this.attribute_map = {
|
|
213
|
+
round: 'round',
|
|
214
|
+
appLocalState: 'app-local-state',
|
|
215
|
+
createdApp: 'created-app',
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
// eslint-disable-next-line camelcase
|
|
219
|
+
static from_obj_for_encoding(data) {
|
|
220
|
+
/* eslint-disable dot-notation */
|
|
221
|
+
if (typeof data['round'] === 'undefined')
|
|
222
|
+
throw new Error(`Response is missing required field 'round': ${data}`);
|
|
223
|
+
return new AccountApplicationResponse(data['round'], typeof data['app-local-state'] !== 'undefined'
|
|
224
|
+
? ApplicationLocalState.from_obj_for_encoding(data['app-local-state'])
|
|
225
|
+
: undefined, typeof data['created-app'] !== 'undefined'
|
|
226
|
+
? ApplicationParams.from_obj_for_encoding(data['created-app'])
|
|
227
|
+
: undefined);
|
|
228
|
+
/* eslint-enable dot-notation */
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
exports.AccountApplicationResponse = AccountApplicationResponse;
|
|
232
|
+
/**
|
|
233
|
+
* AccountAssetResponse describes the account's asset holding and asset parameters
|
|
234
|
+
* (if either exist) for a specific asset ID. Asset parameters will only be
|
|
235
|
+
* returned if the provided address is the asset's creator.
|
|
236
|
+
*/
|
|
237
|
+
class AccountAssetResponse extends basemodel_1.default {
|
|
238
|
+
/**
|
|
239
|
+
* Creates a new `AccountAssetResponse` object.
|
|
240
|
+
* @param round - The round for which this information is relevant.
|
|
241
|
+
* @param assetHolding - (asset) Details about the asset held by this account.
|
|
242
|
+
* The raw account uses `AssetHolding` for this type.
|
|
243
|
+
* @param createdAsset - (apar) parameters of the asset created by this account.
|
|
244
|
+
* The raw account uses `AssetParams` for this type.
|
|
245
|
+
*/
|
|
246
|
+
constructor(round, assetHolding, createdAsset) {
|
|
247
|
+
super();
|
|
248
|
+
this.round = round;
|
|
249
|
+
this.assetHolding = assetHolding;
|
|
250
|
+
this.createdAsset = createdAsset;
|
|
251
|
+
this.attribute_map = {
|
|
252
|
+
round: 'round',
|
|
253
|
+
assetHolding: 'asset-holding',
|
|
254
|
+
createdAsset: 'created-asset',
|
|
255
|
+
};
|
|
256
|
+
}
|
|
257
|
+
// eslint-disable-next-line camelcase
|
|
258
|
+
static from_obj_for_encoding(data) {
|
|
259
|
+
/* eslint-disable dot-notation */
|
|
260
|
+
if (typeof data['round'] === 'undefined')
|
|
261
|
+
throw new Error(`Response is missing required field 'round': ${data}`);
|
|
262
|
+
return new AccountAssetResponse(data['round'], typeof data['asset-holding'] !== 'undefined'
|
|
263
|
+
? AssetHolding.from_obj_for_encoding(data['asset-holding'])
|
|
264
|
+
: undefined, typeof data['created-asset'] !== 'undefined'
|
|
265
|
+
? AssetParams.from_obj_for_encoding(data['created-asset'])
|
|
266
|
+
: undefined);
|
|
267
|
+
/* eslint-enable dot-notation */
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
exports.AccountAssetResponse = AccountAssetResponse;
|
|
271
|
+
/**
|
|
272
|
+
* AccountParticipation describes the parameters used by this account in consensus
|
|
273
|
+
* protocol.
|
|
274
|
+
*/
|
|
275
|
+
class AccountParticipation extends basemodel_1.default {
|
|
276
|
+
/**
|
|
277
|
+
* Creates a new `AccountParticipation` object.
|
|
278
|
+
* @param selectionParticipationKey - (sel) Selection public key (if any) currently registered for this round.
|
|
279
|
+
* @param voteFirstValid - (voteFst) First round for which this participation is valid.
|
|
280
|
+
* @param voteKeyDilution - (voteKD) Number of subkeys in each batch of participation keys.
|
|
281
|
+
* @param voteLastValid - (voteLst) Last round for which this participation is valid.
|
|
282
|
+
* @param voteParticipationKey - (vote) root participation public key (if any) currently registered for this
|
|
283
|
+
* round.
|
|
284
|
+
* @param stateProofKey - (stprf) Root of the state proof key (if any)
|
|
285
|
+
*/
|
|
286
|
+
constructor({ selectionParticipationKey, voteFirstValid, voteKeyDilution, voteLastValid, voteParticipationKey, stateProofKey, }) {
|
|
287
|
+
super();
|
|
288
|
+
this.selectionParticipationKey =
|
|
289
|
+
typeof selectionParticipationKey === 'string'
|
|
290
|
+
? new Uint8Array(Buffer.from(selectionParticipationKey, 'base64'))
|
|
291
|
+
: selectionParticipationKey;
|
|
292
|
+
this.voteFirstValid = voteFirstValid;
|
|
293
|
+
this.voteKeyDilution = voteKeyDilution;
|
|
294
|
+
this.voteLastValid = voteLastValid;
|
|
295
|
+
this.voteParticipationKey =
|
|
296
|
+
typeof voteParticipationKey === 'string'
|
|
297
|
+
? new Uint8Array(Buffer.from(voteParticipationKey, 'base64'))
|
|
298
|
+
: voteParticipationKey;
|
|
299
|
+
this.stateProofKey =
|
|
300
|
+
typeof stateProofKey === 'string'
|
|
301
|
+
? new Uint8Array(Buffer.from(stateProofKey, 'base64'))
|
|
302
|
+
: stateProofKey;
|
|
303
|
+
this.attribute_map = {
|
|
304
|
+
selectionParticipationKey: 'selection-participation-key',
|
|
305
|
+
voteFirstValid: 'vote-first-valid',
|
|
306
|
+
voteKeyDilution: 'vote-key-dilution',
|
|
307
|
+
voteLastValid: 'vote-last-valid',
|
|
308
|
+
voteParticipationKey: 'vote-participation-key',
|
|
309
|
+
stateProofKey: 'state-proof-key',
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
// eslint-disable-next-line camelcase
|
|
313
|
+
static from_obj_for_encoding(data) {
|
|
314
|
+
/* eslint-disable dot-notation */
|
|
315
|
+
if (typeof data['selection-participation-key'] === 'undefined')
|
|
316
|
+
throw new Error(`Response is missing required field 'selection-participation-key': ${data}`);
|
|
317
|
+
if (typeof data['vote-first-valid'] === 'undefined')
|
|
318
|
+
throw new Error(`Response is missing required field 'vote-first-valid': ${data}`);
|
|
319
|
+
if (typeof data['vote-key-dilution'] === 'undefined')
|
|
320
|
+
throw new Error(`Response is missing required field 'vote-key-dilution': ${data}`);
|
|
321
|
+
if (typeof data['vote-last-valid'] === 'undefined')
|
|
322
|
+
throw new Error(`Response is missing required field 'vote-last-valid': ${data}`);
|
|
323
|
+
if (typeof data['vote-participation-key'] === 'undefined')
|
|
324
|
+
throw new Error(`Response is missing required field 'vote-participation-key': ${data}`);
|
|
325
|
+
return new AccountParticipation({
|
|
326
|
+
selectionParticipationKey: data['selection-participation-key'],
|
|
327
|
+
voteFirstValid: data['vote-first-valid'],
|
|
328
|
+
voteKeyDilution: data['vote-key-dilution'],
|
|
329
|
+
voteLastValid: data['vote-last-valid'],
|
|
330
|
+
voteParticipationKey: data['vote-participation-key'],
|
|
331
|
+
stateProofKey: data['state-proof-key'],
|
|
332
|
+
});
|
|
333
|
+
/* eslint-enable dot-notation */
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
exports.AccountParticipation = AccountParticipation;
|
|
337
|
+
/**
|
|
338
|
+
* Application state delta.
|
|
339
|
+
*/
|
|
340
|
+
class AccountStateDelta extends basemodel_1.default {
|
|
341
|
+
/**
|
|
342
|
+
* Creates a new `AccountStateDelta` object.
|
|
343
|
+
* @param address -
|
|
344
|
+
* @param delta - Application state delta.
|
|
345
|
+
*/
|
|
346
|
+
constructor(address, delta) {
|
|
347
|
+
super();
|
|
348
|
+
this.address = address;
|
|
349
|
+
this.delta = delta;
|
|
350
|
+
this.attribute_map = {
|
|
351
|
+
address: 'address',
|
|
352
|
+
delta: 'delta',
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
// eslint-disable-next-line camelcase
|
|
356
|
+
static from_obj_for_encoding(data) {
|
|
357
|
+
/* eslint-disable dot-notation */
|
|
358
|
+
if (typeof data['address'] === 'undefined')
|
|
359
|
+
throw new Error(`Response is missing required field 'address': ${data}`);
|
|
360
|
+
if (!Array.isArray(data['delta']))
|
|
361
|
+
throw new Error(`Response is missing required array field 'delta': ${data}`);
|
|
362
|
+
return new AccountStateDelta(data['address'], data['delta'].map(EvalDeltaKeyValue.from_obj_for_encoding));
|
|
363
|
+
/* eslint-enable dot-notation */
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
exports.AccountStateDelta = AccountStateDelta;
|
|
367
|
+
/**
|
|
368
|
+
* Application index and its parameters
|
|
369
|
+
*/
|
|
370
|
+
class Application extends basemodel_1.default {
|
|
371
|
+
/**
|
|
372
|
+
* Creates a new `Application` object.
|
|
373
|
+
* @param id - (appidx) application index.
|
|
374
|
+
* @param params - (appparams) application parameters.
|
|
375
|
+
*/
|
|
376
|
+
constructor(id, params) {
|
|
377
|
+
super();
|
|
378
|
+
this.id = id;
|
|
379
|
+
this.params = params;
|
|
380
|
+
this.attribute_map = {
|
|
381
|
+
id: 'id',
|
|
382
|
+
params: 'params',
|
|
383
|
+
};
|
|
384
|
+
}
|
|
385
|
+
// eslint-disable-next-line camelcase
|
|
386
|
+
static from_obj_for_encoding(data) {
|
|
387
|
+
/* eslint-disable dot-notation */
|
|
388
|
+
if (typeof data['id'] === 'undefined')
|
|
389
|
+
throw new Error(`Response is missing required field 'id': ${data}`);
|
|
390
|
+
if (typeof data['params'] === 'undefined')
|
|
391
|
+
throw new Error(`Response is missing required field 'params': ${data}`);
|
|
392
|
+
return new Application(data['id'], ApplicationParams.from_obj_for_encoding(data['params']));
|
|
393
|
+
/* eslint-enable dot-notation */
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
exports.Application = Application;
|
|
397
|
+
/**
|
|
398
|
+
* Stores local state associated with an application.
|
|
399
|
+
*/
|
|
400
|
+
class ApplicationLocalState extends basemodel_1.default {
|
|
401
|
+
/**
|
|
402
|
+
* Creates a new `ApplicationLocalState` object.
|
|
403
|
+
* @param id - The application which this local state is for.
|
|
404
|
+
* @param schema - (hsch) schema.
|
|
405
|
+
* @param keyValue - (tkv) storage.
|
|
406
|
+
*/
|
|
407
|
+
constructor(id, schema, keyValue) {
|
|
408
|
+
super();
|
|
409
|
+
this.id = id;
|
|
410
|
+
this.schema = schema;
|
|
411
|
+
this.keyValue = keyValue;
|
|
412
|
+
this.attribute_map = {
|
|
413
|
+
id: 'id',
|
|
414
|
+
schema: 'schema',
|
|
415
|
+
keyValue: 'key-value',
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
// eslint-disable-next-line camelcase
|
|
419
|
+
static from_obj_for_encoding(data) {
|
|
420
|
+
/* eslint-disable dot-notation */
|
|
421
|
+
if (typeof data['id'] === 'undefined')
|
|
422
|
+
throw new Error(`Response is missing required field 'id': ${data}`);
|
|
423
|
+
if (typeof data['schema'] === 'undefined')
|
|
424
|
+
throw new Error(`Response is missing required field 'schema': ${data}`);
|
|
425
|
+
return new ApplicationLocalState(data['id'], ApplicationStateSchema.from_obj_for_encoding(data['schema']), typeof data['key-value'] !== 'undefined'
|
|
426
|
+
? data['key-value'].map(TealKeyValue.from_obj_for_encoding)
|
|
427
|
+
: undefined);
|
|
428
|
+
/* eslint-enable dot-notation */
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
exports.ApplicationLocalState = ApplicationLocalState;
|
|
432
|
+
/**
|
|
433
|
+
* Stores the global information associated with an application.
|
|
434
|
+
*/
|
|
435
|
+
class ApplicationParams extends basemodel_1.default {
|
|
436
|
+
/**
|
|
437
|
+
* Creates a new `ApplicationParams` object.
|
|
438
|
+
* @param approvalProgram - (approv) approval program.
|
|
439
|
+
* @param clearStateProgram - (clearp) approval program.
|
|
440
|
+
* @param creator - The address that created this application. This is the address where the
|
|
441
|
+
* parameters and global state for this application can be found.
|
|
442
|
+
* @param extraProgramPages - (epp) the amount of extra program pages available to this app.
|
|
443
|
+
* @param globalState - [\gs) global schema
|
|
444
|
+
* @param globalStateSchema - [\gsch) global schema
|
|
445
|
+
* @param localStateSchema - [\lsch) local schema
|
|
446
|
+
*/
|
|
447
|
+
constructor({ approvalProgram, clearStateProgram, creator, extraProgramPages, globalState, globalStateSchema, localStateSchema, }) {
|
|
448
|
+
super();
|
|
449
|
+
this.approvalProgram =
|
|
450
|
+
typeof approvalProgram === 'string'
|
|
451
|
+
? new Uint8Array(Buffer.from(approvalProgram, 'base64'))
|
|
452
|
+
: approvalProgram;
|
|
453
|
+
this.clearStateProgram =
|
|
454
|
+
typeof clearStateProgram === 'string'
|
|
455
|
+
? new Uint8Array(Buffer.from(clearStateProgram, 'base64'))
|
|
456
|
+
: clearStateProgram;
|
|
457
|
+
this.creator = creator;
|
|
458
|
+
this.extraProgramPages = extraProgramPages;
|
|
459
|
+
this.globalState = globalState;
|
|
460
|
+
this.globalStateSchema = globalStateSchema;
|
|
461
|
+
this.localStateSchema = localStateSchema;
|
|
462
|
+
this.attribute_map = {
|
|
463
|
+
approvalProgram: 'approval-program',
|
|
464
|
+
clearStateProgram: 'clear-state-program',
|
|
465
|
+
creator: 'creator',
|
|
466
|
+
extraProgramPages: 'extra-program-pages',
|
|
467
|
+
globalState: 'global-state',
|
|
468
|
+
globalStateSchema: 'global-state-schema',
|
|
469
|
+
localStateSchema: 'local-state-schema',
|
|
470
|
+
};
|
|
471
|
+
}
|
|
472
|
+
// eslint-disable-next-line camelcase
|
|
473
|
+
static from_obj_for_encoding(data) {
|
|
474
|
+
/* eslint-disable dot-notation */
|
|
475
|
+
if (typeof data['approval-program'] === 'undefined')
|
|
476
|
+
throw new Error(`Response is missing required field 'approval-program': ${data}`);
|
|
477
|
+
if (typeof data['clear-state-program'] === 'undefined')
|
|
478
|
+
throw new Error(`Response is missing required field 'clear-state-program': ${data}`);
|
|
479
|
+
if (typeof data['creator'] === 'undefined')
|
|
480
|
+
throw new Error(`Response is missing required field 'creator': ${data}`);
|
|
481
|
+
return new ApplicationParams({
|
|
482
|
+
approvalProgram: data['approval-program'],
|
|
483
|
+
clearStateProgram: data['clear-state-program'],
|
|
484
|
+
creator: data['creator'],
|
|
485
|
+
extraProgramPages: data['extra-program-pages'],
|
|
486
|
+
globalState: typeof data['global-state'] !== 'undefined'
|
|
487
|
+
? data['global-state'].map(TealKeyValue.from_obj_for_encoding)
|
|
488
|
+
: undefined,
|
|
489
|
+
globalStateSchema: typeof data['global-state-schema'] !== 'undefined'
|
|
490
|
+
? ApplicationStateSchema.from_obj_for_encoding(data['global-state-schema'])
|
|
491
|
+
: undefined,
|
|
492
|
+
localStateSchema: typeof data['local-state-schema'] !== 'undefined'
|
|
493
|
+
? ApplicationStateSchema.from_obj_for_encoding(data['local-state-schema'])
|
|
494
|
+
: undefined,
|
|
495
|
+
});
|
|
496
|
+
/* eslint-enable dot-notation */
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
exports.ApplicationParams = ApplicationParams;
|
|
500
|
+
/**
|
|
501
|
+
* Specifies maximums on the number of each type that may be stored.
|
|
502
|
+
*/
|
|
503
|
+
class ApplicationStateSchema extends basemodel_1.default {
|
|
504
|
+
/**
|
|
505
|
+
* Creates a new `ApplicationStateSchema` object.
|
|
506
|
+
* @param numUint - (nui) num of uints.
|
|
507
|
+
* @param numByteSlice - (nbs) num of byte slices.
|
|
508
|
+
*/
|
|
509
|
+
constructor(numUint, numByteSlice) {
|
|
510
|
+
super();
|
|
511
|
+
this.numUint = numUint;
|
|
512
|
+
this.numByteSlice = numByteSlice;
|
|
513
|
+
this.attribute_map = {
|
|
514
|
+
numUint: 'num-uint',
|
|
515
|
+
numByteSlice: 'num-byte-slice',
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
// eslint-disable-next-line camelcase
|
|
519
|
+
static from_obj_for_encoding(data) {
|
|
520
|
+
/* eslint-disable dot-notation */
|
|
521
|
+
if (typeof data['num-uint'] === 'undefined')
|
|
522
|
+
throw new Error(`Response is missing required field 'num-uint': ${data}`);
|
|
523
|
+
if (typeof data['num-byte-slice'] === 'undefined')
|
|
524
|
+
throw new Error(`Response is missing required field 'num-byte-slice': ${data}`);
|
|
525
|
+
return new ApplicationStateSchema(data['num-uint'], data['num-byte-slice']);
|
|
526
|
+
/* eslint-enable dot-notation */
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
exports.ApplicationStateSchema = ApplicationStateSchema;
|
|
530
|
+
/**
|
|
531
|
+
* Specifies both the unique identifier and the parameters for an asset
|
|
532
|
+
*/
|
|
533
|
+
class Asset extends basemodel_1.default {
|
|
534
|
+
/**
|
|
535
|
+
* Creates a new `Asset` object.
|
|
536
|
+
* @param index - unique asset identifier
|
|
537
|
+
* @param params - AssetParams specifies the parameters for an asset.
|
|
538
|
+
* (apar) when part of an AssetConfig transaction.
|
|
539
|
+
* Definition:
|
|
540
|
+
* data/transactions/asset.go : AssetParams
|
|
541
|
+
*/
|
|
542
|
+
constructor(index, params) {
|
|
543
|
+
super();
|
|
544
|
+
this.index = index;
|
|
545
|
+
this.params = params;
|
|
546
|
+
this.attribute_map = {
|
|
547
|
+
index: 'index',
|
|
548
|
+
params: 'params',
|
|
549
|
+
};
|
|
550
|
+
}
|
|
551
|
+
// eslint-disable-next-line camelcase
|
|
552
|
+
static from_obj_for_encoding(data) {
|
|
553
|
+
/* eslint-disable dot-notation */
|
|
554
|
+
if (typeof data['index'] === 'undefined')
|
|
555
|
+
throw new Error(`Response is missing required field 'index': ${data}`);
|
|
556
|
+
if (typeof data['params'] === 'undefined')
|
|
557
|
+
throw new Error(`Response is missing required field 'params': ${data}`);
|
|
558
|
+
return new Asset(data['index'], AssetParams.from_obj_for_encoding(data['params']));
|
|
559
|
+
/* eslint-enable dot-notation */
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
exports.Asset = Asset;
|
|
563
|
+
/**
|
|
564
|
+
* Describes an asset held by an account.
|
|
565
|
+
* Definition:
|
|
566
|
+
* data/basics/userBalance.go : AssetHolding
|
|
567
|
+
*/
|
|
568
|
+
class AssetHolding extends basemodel_1.default {
|
|
569
|
+
/**
|
|
570
|
+
* Creates a new `AssetHolding` object.
|
|
571
|
+
* @param amount - (a) number of units held.
|
|
572
|
+
* @param assetId - Asset ID of the holding.
|
|
573
|
+
* @param isFrozen - (f) whether or not the holding is frozen.
|
|
574
|
+
*/
|
|
575
|
+
constructor(amount, assetId, isFrozen) {
|
|
576
|
+
super();
|
|
577
|
+
this.amount = amount;
|
|
578
|
+
this.assetId = assetId;
|
|
579
|
+
this.isFrozen = isFrozen;
|
|
580
|
+
this.attribute_map = {
|
|
581
|
+
amount: 'amount',
|
|
582
|
+
assetId: 'asset-id',
|
|
583
|
+
isFrozen: 'is-frozen',
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
// eslint-disable-next-line camelcase
|
|
587
|
+
static from_obj_for_encoding(data) {
|
|
588
|
+
/* eslint-disable dot-notation */
|
|
589
|
+
if (typeof data['amount'] === 'undefined')
|
|
590
|
+
throw new Error(`Response is missing required field 'amount': ${data}`);
|
|
591
|
+
if (typeof data['asset-id'] === 'undefined')
|
|
592
|
+
throw new Error(`Response is missing required field 'asset-id': ${data}`);
|
|
593
|
+
if (typeof data['is-frozen'] === 'undefined')
|
|
594
|
+
throw new Error(`Response is missing required field 'is-frozen': ${data}`);
|
|
595
|
+
return new AssetHolding(data['amount'], data['asset-id'], data['is-frozen']);
|
|
596
|
+
/* eslint-enable dot-notation */
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
exports.AssetHolding = AssetHolding;
|
|
600
|
+
/**
|
|
601
|
+
* AssetParams specifies the parameters for an asset.
|
|
602
|
+
* (apar) when part of an AssetConfig transaction.
|
|
603
|
+
* Definition:
|
|
604
|
+
* data/transactions/asset.go : AssetParams
|
|
605
|
+
*/
|
|
606
|
+
class AssetParams extends basemodel_1.default {
|
|
607
|
+
/**
|
|
608
|
+
* Creates a new `AssetParams` object.
|
|
609
|
+
* @param creator - The address that created this asset. This is the address where the parameters
|
|
610
|
+
* for this asset can be found, and also the address where unwanted asset units can
|
|
611
|
+
* be sent in the worst case.
|
|
612
|
+
* @param decimals - (dc) The number of digits to use after the decimal point when displaying this
|
|
613
|
+
* asset. If 0, the asset is not divisible. If 1, the base unit of the asset is in
|
|
614
|
+
* tenths. If 2, the base unit of the asset is in hundredths, and so on. This value
|
|
615
|
+
* must be between 0 and 19 (inclusive).
|
|
616
|
+
* @param total - (t) The total number of units of this asset.
|
|
617
|
+
* @param clawback - (c) Address of account used to clawback holdings of this asset. If empty,
|
|
618
|
+
* clawback is not permitted.
|
|
619
|
+
* @param defaultFrozen - (df) Whether holdings of this asset are frozen by default.
|
|
620
|
+
* @param freeze - (f) Address of account used to freeze holdings of this asset. If empty, freezing
|
|
621
|
+
* is not permitted.
|
|
622
|
+
* @param manager - (m) Address of account used to manage the keys of this asset and to destroy it.
|
|
623
|
+
* @param metadataHash - (am) A commitment to some unspecified asset metadata. The format of this
|
|
624
|
+
* metadata is up to the application.
|
|
625
|
+
* @param name - (an) Name of this asset, as supplied by the creator. Included only when the
|
|
626
|
+
* asset name is composed of printable utf-8 characters.
|
|
627
|
+
* @param nameB64 - Base64 encoded name of this asset, as supplied by the creator.
|
|
628
|
+
* @param reserve - (r) Address of account holding reserve (non-minted) units of this asset.
|
|
629
|
+
* @param unitName - (un) Name of a unit of this asset, as supplied by the creator. Included only
|
|
630
|
+
* when the name of a unit of this asset is composed of printable utf-8 characters.
|
|
631
|
+
* @param unitNameB64 - Base64 encoded name of a unit of this asset, as supplied by the creator.
|
|
632
|
+
* @param url - (au) URL where more information about the asset can be retrieved. Included only
|
|
633
|
+
* when the URL is composed of printable utf-8 characters.
|
|
634
|
+
* @param urlB64 - Base64 encoded URL where more information about the asset can be retrieved.
|
|
635
|
+
*/
|
|
636
|
+
constructor({ creator, decimals, total, clawback, defaultFrozen, freeze, manager, metadataHash, name, nameB64, reserve, unitName, unitNameB64, url, urlB64, }) {
|
|
637
|
+
super();
|
|
638
|
+
this.creator = creator;
|
|
639
|
+
this.decimals = decimals;
|
|
640
|
+
this.total = total;
|
|
641
|
+
this.clawback = clawback;
|
|
642
|
+
this.defaultFrozen = defaultFrozen;
|
|
643
|
+
this.freeze = freeze;
|
|
644
|
+
this.manager = manager;
|
|
645
|
+
this.metadataHash =
|
|
646
|
+
typeof metadataHash === 'string'
|
|
647
|
+
? new Uint8Array(Buffer.from(metadataHash, 'base64'))
|
|
648
|
+
: metadataHash;
|
|
649
|
+
this.name = name;
|
|
650
|
+
this.nameB64 =
|
|
651
|
+
typeof nameB64 === 'string'
|
|
652
|
+
? new Uint8Array(Buffer.from(nameB64, 'base64'))
|
|
653
|
+
: nameB64;
|
|
654
|
+
this.reserve = reserve;
|
|
655
|
+
this.unitName = unitName;
|
|
656
|
+
this.unitNameB64 =
|
|
657
|
+
typeof unitNameB64 === 'string'
|
|
658
|
+
? new Uint8Array(Buffer.from(unitNameB64, 'base64'))
|
|
659
|
+
: unitNameB64;
|
|
660
|
+
this.url = url;
|
|
661
|
+
this.urlB64 =
|
|
662
|
+
typeof urlB64 === 'string'
|
|
663
|
+
? new Uint8Array(Buffer.from(urlB64, 'base64'))
|
|
664
|
+
: urlB64;
|
|
665
|
+
this.attribute_map = {
|
|
666
|
+
creator: 'creator',
|
|
667
|
+
decimals: 'decimals',
|
|
668
|
+
total: 'total',
|
|
669
|
+
clawback: 'clawback',
|
|
670
|
+
defaultFrozen: 'default-frozen',
|
|
671
|
+
freeze: 'freeze',
|
|
672
|
+
manager: 'manager',
|
|
673
|
+
metadataHash: 'metadata-hash',
|
|
674
|
+
name: 'name',
|
|
675
|
+
nameB64: 'name-b64',
|
|
676
|
+
reserve: 'reserve',
|
|
677
|
+
unitName: 'unit-name',
|
|
678
|
+
unitNameB64: 'unit-name-b64',
|
|
679
|
+
url: 'url',
|
|
680
|
+
urlB64: 'url-b64',
|
|
681
|
+
};
|
|
682
|
+
}
|
|
683
|
+
// eslint-disable-next-line camelcase
|
|
684
|
+
static from_obj_for_encoding(data) {
|
|
685
|
+
/* eslint-disable dot-notation */
|
|
686
|
+
if (typeof data['creator'] === 'undefined')
|
|
687
|
+
throw new Error(`Response is missing required field 'creator': ${data}`);
|
|
688
|
+
if (typeof data['decimals'] === 'undefined')
|
|
689
|
+
throw new Error(`Response is missing required field 'decimals': ${data}`);
|
|
690
|
+
if (typeof data['total'] === 'undefined')
|
|
691
|
+
throw new Error(`Response is missing required field 'total': ${data}`);
|
|
692
|
+
return new AssetParams({
|
|
693
|
+
creator: data['creator'],
|
|
694
|
+
decimals: data['decimals'],
|
|
695
|
+
total: data['total'],
|
|
696
|
+
clawback: data['clawback'],
|
|
697
|
+
defaultFrozen: data['default-frozen'],
|
|
698
|
+
freeze: data['freeze'],
|
|
699
|
+
manager: data['manager'],
|
|
700
|
+
metadataHash: data['metadata-hash'],
|
|
701
|
+
name: data['name'],
|
|
702
|
+
nameB64: data['name-b64'],
|
|
703
|
+
reserve: data['reserve'],
|
|
704
|
+
unitName: data['unit-name'],
|
|
705
|
+
unitNameB64: data['unit-name-b64'],
|
|
706
|
+
url: data['url'],
|
|
707
|
+
urlB64: data['url-b64'],
|
|
708
|
+
});
|
|
709
|
+
/* eslint-enable dot-notation */
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
exports.AssetParams = AssetParams;
|
|
713
|
+
/**
|
|
714
|
+
* Hash of a block header.
|
|
715
|
+
*/
|
|
716
|
+
class BlockHashResponse extends basemodel_1.default {
|
|
717
|
+
/**
|
|
718
|
+
* Creates a new `BlockHashResponse` object.
|
|
719
|
+
* @param blockhash - Block header hash.
|
|
720
|
+
*/
|
|
721
|
+
constructor(blockhash) {
|
|
722
|
+
super();
|
|
723
|
+
this.blockhash = blockhash;
|
|
724
|
+
this.attribute_map = {
|
|
725
|
+
blockhash: 'blockHash',
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
// eslint-disable-next-line camelcase
|
|
729
|
+
static from_obj_for_encoding(data) {
|
|
730
|
+
/* eslint-disable dot-notation */
|
|
731
|
+
if (typeof data['blockHash'] === 'undefined')
|
|
732
|
+
throw new Error(`Response is missing required field 'blockHash': ${data}`);
|
|
733
|
+
return new BlockHashResponse(data['blockHash']);
|
|
734
|
+
/* eslint-enable dot-notation */
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
exports.BlockHashResponse = BlockHashResponse;
|
|
738
|
+
/**
|
|
739
|
+
* Encoded block object.
|
|
740
|
+
*/
|
|
741
|
+
class BlockResponse extends basemodel_1.default {
|
|
742
|
+
/**
|
|
743
|
+
* Creates a new `BlockResponse` object.
|
|
744
|
+
* @param block - Block header data.
|
|
745
|
+
* @param cert - Optional certificate object. This is only included when the format is set to
|
|
746
|
+
* message pack.
|
|
747
|
+
*/
|
|
748
|
+
constructor(block, cert) {
|
|
749
|
+
super();
|
|
750
|
+
this.block = block;
|
|
751
|
+
this.cert = cert;
|
|
752
|
+
this.attribute_map = {
|
|
753
|
+
block: 'block',
|
|
754
|
+
cert: 'cert',
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
// eslint-disable-next-line camelcase
|
|
758
|
+
static from_obj_for_encoding(data) {
|
|
759
|
+
/* eslint-disable dot-notation */
|
|
760
|
+
if (typeof data['block'] === 'undefined')
|
|
761
|
+
throw new Error(`Response is missing required field 'block': ${data}`);
|
|
762
|
+
return new BlockResponse(data['block'], data['cert']);
|
|
763
|
+
/* eslint-enable dot-notation */
|
|
764
|
+
}
|
|
765
|
+
}
|
|
766
|
+
exports.BlockResponse = BlockResponse;
|
|
767
|
+
/**
|
|
768
|
+
* Box name and its content.
|
|
769
|
+
*/
|
|
770
|
+
class Box extends basemodel_1.default {
|
|
771
|
+
/**
|
|
772
|
+
* Creates a new `Box` object.
|
|
773
|
+
* @param name - (name) box name, base64 encoded
|
|
774
|
+
* @param value - (value) box value, base64 encoded.
|
|
775
|
+
*/
|
|
776
|
+
constructor(name, value) {
|
|
777
|
+
super();
|
|
778
|
+
this.name =
|
|
779
|
+
typeof name === 'string'
|
|
780
|
+
? new Uint8Array(Buffer.from(name, 'base64'))
|
|
781
|
+
: name;
|
|
782
|
+
this.value =
|
|
783
|
+
typeof value === 'string'
|
|
784
|
+
? new Uint8Array(Buffer.from(value, 'base64'))
|
|
785
|
+
: value;
|
|
786
|
+
this.attribute_map = {
|
|
787
|
+
name: 'name',
|
|
788
|
+
value: 'value',
|
|
789
|
+
};
|
|
790
|
+
}
|
|
791
|
+
// eslint-disable-next-line camelcase
|
|
792
|
+
static from_obj_for_encoding(data) {
|
|
793
|
+
/* eslint-disable dot-notation */
|
|
794
|
+
if (typeof data['name'] === 'undefined')
|
|
795
|
+
throw new Error(`Response is missing required field 'name': ${data}`);
|
|
796
|
+
if (typeof data['value'] === 'undefined')
|
|
797
|
+
throw new Error(`Response is missing required field 'value': ${data}`);
|
|
798
|
+
return new Box(data['name'], data['value']);
|
|
799
|
+
/* eslint-enable dot-notation */
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
exports.Box = Box;
|
|
803
|
+
/**
|
|
804
|
+
* Box descriptor describes a Box.
|
|
805
|
+
*/
|
|
806
|
+
class BoxDescriptor extends basemodel_1.default {
|
|
807
|
+
/**
|
|
808
|
+
* Creates a new `BoxDescriptor` object.
|
|
809
|
+
* @param name - Base64 encoded box name
|
|
810
|
+
*/
|
|
811
|
+
constructor(name) {
|
|
812
|
+
super();
|
|
813
|
+
this.name =
|
|
814
|
+
typeof name === 'string'
|
|
815
|
+
? new Uint8Array(Buffer.from(name, 'base64'))
|
|
816
|
+
: name;
|
|
817
|
+
this.attribute_map = {
|
|
818
|
+
name: 'name',
|
|
819
|
+
};
|
|
820
|
+
}
|
|
821
|
+
// eslint-disable-next-line camelcase
|
|
822
|
+
static from_obj_for_encoding(data) {
|
|
823
|
+
/* eslint-disable dot-notation */
|
|
824
|
+
if (typeof data['name'] === 'undefined')
|
|
825
|
+
throw new Error(`Response is missing required field 'name': ${data}`);
|
|
826
|
+
return new BoxDescriptor(data['name']);
|
|
827
|
+
/* eslint-enable dot-notation */
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
exports.BoxDescriptor = BoxDescriptor;
|
|
831
|
+
/**
|
|
832
|
+
* Box names of an application
|
|
833
|
+
*/
|
|
834
|
+
class BoxesResponse extends basemodel_1.default {
|
|
835
|
+
/**
|
|
836
|
+
* Creates a new `BoxesResponse` object.
|
|
837
|
+
* @param boxes -
|
|
838
|
+
*/
|
|
839
|
+
constructor(boxes) {
|
|
840
|
+
super();
|
|
841
|
+
this.boxes = boxes;
|
|
842
|
+
this.attribute_map = {
|
|
843
|
+
boxes: 'boxes',
|
|
844
|
+
};
|
|
845
|
+
}
|
|
846
|
+
// eslint-disable-next-line camelcase
|
|
847
|
+
static from_obj_for_encoding(data) {
|
|
848
|
+
/* eslint-disable dot-notation */
|
|
849
|
+
if (!Array.isArray(data['boxes']))
|
|
850
|
+
throw new Error(`Response is missing required array field 'boxes': ${data}`);
|
|
851
|
+
return new BoxesResponse(data['boxes'].map(BoxDescriptor.from_obj_for_encoding));
|
|
852
|
+
/* eslint-enable dot-notation */
|
|
853
|
+
}
|
|
854
|
+
}
|
|
855
|
+
exports.BoxesResponse = BoxesResponse;
|
|
856
|
+
class BuildVersion extends basemodel_1.default {
|
|
857
|
+
/**
|
|
858
|
+
* Creates a new `BuildVersion` object.
|
|
859
|
+
* @param branch -
|
|
860
|
+
* @param buildNumber -
|
|
861
|
+
* @param channel -
|
|
862
|
+
* @param commitHash -
|
|
863
|
+
* @param major -
|
|
864
|
+
* @param minor -
|
|
865
|
+
*/
|
|
866
|
+
constructor({ branch, buildNumber, channel, commitHash, major, minor, }) {
|
|
867
|
+
super();
|
|
868
|
+
this.branch = branch;
|
|
869
|
+
this.buildNumber = buildNumber;
|
|
870
|
+
this.channel = channel;
|
|
871
|
+
this.commitHash = commitHash;
|
|
872
|
+
this.major = major;
|
|
873
|
+
this.minor = minor;
|
|
874
|
+
this.attribute_map = {
|
|
875
|
+
branch: 'branch',
|
|
876
|
+
buildNumber: 'build_number',
|
|
877
|
+
channel: 'channel',
|
|
878
|
+
commitHash: 'commit_hash',
|
|
879
|
+
major: 'major',
|
|
880
|
+
minor: 'minor',
|
|
881
|
+
};
|
|
882
|
+
}
|
|
883
|
+
// eslint-disable-next-line camelcase
|
|
884
|
+
static from_obj_for_encoding(data) {
|
|
885
|
+
/* eslint-disable dot-notation */
|
|
886
|
+
if (typeof data['branch'] === 'undefined')
|
|
887
|
+
throw new Error(`Response is missing required field 'branch': ${data}`);
|
|
888
|
+
if (typeof data['build_number'] === 'undefined')
|
|
889
|
+
throw new Error(`Response is missing required field 'build_number': ${data}`);
|
|
890
|
+
if (typeof data['channel'] === 'undefined')
|
|
891
|
+
throw new Error(`Response is missing required field 'channel': ${data}`);
|
|
892
|
+
if (typeof data['commit_hash'] === 'undefined')
|
|
893
|
+
throw new Error(`Response is missing required field 'commit_hash': ${data}`);
|
|
894
|
+
if (typeof data['major'] === 'undefined')
|
|
895
|
+
throw new Error(`Response is missing required field 'major': ${data}`);
|
|
896
|
+
if (typeof data['minor'] === 'undefined')
|
|
897
|
+
throw new Error(`Response is missing required field 'minor': ${data}`);
|
|
898
|
+
return new BuildVersion({
|
|
899
|
+
branch: data['branch'],
|
|
900
|
+
buildNumber: data['build_number'],
|
|
901
|
+
channel: data['channel'],
|
|
902
|
+
commitHash: data['commit_hash'],
|
|
903
|
+
major: data['major'],
|
|
904
|
+
minor: data['minor'],
|
|
905
|
+
});
|
|
906
|
+
/* eslint-enable dot-notation */
|
|
907
|
+
}
|
|
908
|
+
}
|
|
909
|
+
exports.BuildVersion = BuildVersion;
|
|
910
|
+
/**
|
|
911
|
+
*
|
|
912
|
+
*/
|
|
913
|
+
class CatchpointAbortResponse extends basemodel_1.default {
|
|
914
|
+
/**
|
|
915
|
+
* Creates a new `CatchpointAbortResponse` object.
|
|
916
|
+
* @param catchupMessage - Catchup abort response string
|
|
917
|
+
*/
|
|
918
|
+
constructor(catchupMessage) {
|
|
919
|
+
super();
|
|
920
|
+
this.catchupMessage = catchupMessage;
|
|
921
|
+
this.attribute_map = {
|
|
922
|
+
catchupMessage: 'catchup-message',
|
|
923
|
+
};
|
|
924
|
+
}
|
|
925
|
+
// eslint-disable-next-line camelcase
|
|
926
|
+
static from_obj_for_encoding(data) {
|
|
927
|
+
/* eslint-disable dot-notation */
|
|
928
|
+
if (typeof data['catchup-message'] === 'undefined')
|
|
929
|
+
throw new Error(`Response is missing required field 'catchup-message': ${data}`);
|
|
930
|
+
return new CatchpointAbortResponse(data['catchup-message']);
|
|
931
|
+
/* eslint-enable dot-notation */
|
|
932
|
+
}
|
|
933
|
+
}
|
|
934
|
+
exports.CatchpointAbortResponse = CatchpointAbortResponse;
|
|
935
|
+
/**
|
|
936
|
+
*
|
|
937
|
+
*/
|
|
938
|
+
class CatchpointStartResponse extends basemodel_1.default {
|
|
939
|
+
/**
|
|
940
|
+
* Creates a new `CatchpointStartResponse` object.
|
|
941
|
+
* @param catchupMessage - Catchup start response string
|
|
942
|
+
*/
|
|
943
|
+
constructor(catchupMessage) {
|
|
944
|
+
super();
|
|
945
|
+
this.catchupMessage = catchupMessage;
|
|
946
|
+
this.attribute_map = {
|
|
947
|
+
catchupMessage: 'catchup-message',
|
|
948
|
+
};
|
|
949
|
+
}
|
|
950
|
+
// eslint-disable-next-line camelcase
|
|
951
|
+
static from_obj_for_encoding(data) {
|
|
952
|
+
/* eslint-disable dot-notation */
|
|
953
|
+
if (typeof data['catchup-message'] === 'undefined')
|
|
954
|
+
throw new Error(`Response is missing required field 'catchup-message': ${data}`);
|
|
955
|
+
return new CatchpointStartResponse(data['catchup-message']);
|
|
956
|
+
/* eslint-enable dot-notation */
|
|
957
|
+
}
|
|
958
|
+
}
|
|
959
|
+
exports.CatchpointStartResponse = CatchpointStartResponse;
|
|
960
|
+
/**
|
|
961
|
+
* Teal compile Result
|
|
962
|
+
*/
|
|
963
|
+
class CompileResponse extends basemodel_1.default {
|
|
964
|
+
/**
|
|
965
|
+
* Creates a new `CompileResponse` object.
|
|
966
|
+
* @param hash - base32 SHA512_256 of program bytes (Address style)
|
|
967
|
+
* @param result - base64 encoded program bytes
|
|
968
|
+
* @param sourcemap - JSON of the source map
|
|
969
|
+
*/
|
|
970
|
+
constructor(hash, result, sourcemap) {
|
|
971
|
+
super();
|
|
972
|
+
this.hash = hash;
|
|
973
|
+
this.result = result;
|
|
974
|
+
this.sourcemap = sourcemap;
|
|
975
|
+
this.attribute_map = {
|
|
976
|
+
hash: 'hash',
|
|
977
|
+
result: 'result',
|
|
978
|
+
sourcemap: 'sourcemap',
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
// eslint-disable-next-line camelcase
|
|
982
|
+
static from_obj_for_encoding(data) {
|
|
983
|
+
/* eslint-disable dot-notation */
|
|
984
|
+
if (typeof data['hash'] === 'undefined')
|
|
985
|
+
throw new Error(`Response is missing required field 'hash': ${data}`);
|
|
986
|
+
if (typeof data['result'] === 'undefined')
|
|
987
|
+
throw new Error(`Response is missing required field 'result': ${data}`);
|
|
988
|
+
return new CompileResponse(data['hash'], data['result'], data['sourcemap']);
|
|
989
|
+
/* eslint-enable dot-notation */
|
|
990
|
+
}
|
|
991
|
+
}
|
|
992
|
+
exports.CompileResponse = CompileResponse;
|
|
993
|
+
/**
|
|
994
|
+
* Teal disassembly Result
|
|
995
|
+
*/
|
|
996
|
+
class DisassembleResponse extends basemodel_1.default {
|
|
997
|
+
/**
|
|
998
|
+
* Creates a new `DisassembleResponse` object.
|
|
999
|
+
* @param result - disassembled Teal code
|
|
1000
|
+
*/
|
|
1001
|
+
constructor(result) {
|
|
1002
|
+
super();
|
|
1003
|
+
this.result = result;
|
|
1004
|
+
this.attribute_map = {
|
|
1005
|
+
result: 'result',
|
|
1006
|
+
};
|
|
1007
|
+
}
|
|
1008
|
+
// eslint-disable-next-line camelcase
|
|
1009
|
+
static from_obj_for_encoding(data) {
|
|
1010
|
+
/* eslint-disable dot-notation */
|
|
1011
|
+
if (typeof data['result'] === 'undefined')
|
|
1012
|
+
throw new Error(`Response is missing required field 'result': ${data}`);
|
|
1013
|
+
return new DisassembleResponse(data['result']);
|
|
1014
|
+
/* eslint-enable dot-notation */
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
exports.DisassembleResponse = DisassembleResponse;
|
|
1018
|
+
/**
|
|
1019
|
+
* Request data type for dryrun endpoint. Given the Transactions and simulated
|
|
1020
|
+
* ledger state upload, run TEAL scripts and return debugging information.
|
|
1021
|
+
*/
|
|
1022
|
+
class DryrunRequest extends basemodel_1.default {
|
|
1023
|
+
/**
|
|
1024
|
+
* Creates a new `DryrunRequest` object.
|
|
1025
|
+
* @param accounts -
|
|
1026
|
+
* @param apps -
|
|
1027
|
+
* @param latestTimestamp - LatestTimestamp is available to some TEAL scripts. Defaults to the latest
|
|
1028
|
+
* confirmed timestamp this algod is attached to.
|
|
1029
|
+
* @param protocolVersion - ProtocolVersion specifies a specific version string to operate under, otherwise
|
|
1030
|
+
* whatever the current protocol of the network this algod is running in.
|
|
1031
|
+
* @param round - Round is available to some TEAL scripts. Defaults to the current round on the
|
|
1032
|
+
* network this algod is attached to.
|
|
1033
|
+
* @param sources -
|
|
1034
|
+
* @param txns -
|
|
1035
|
+
*/
|
|
1036
|
+
constructor({ accounts, apps, latestTimestamp, protocolVersion, round, sources, txns, }) {
|
|
1037
|
+
super();
|
|
1038
|
+
this.accounts = accounts;
|
|
1039
|
+
this.apps = apps;
|
|
1040
|
+
this.latestTimestamp = latestTimestamp;
|
|
1041
|
+
this.protocolVersion = protocolVersion;
|
|
1042
|
+
this.round = round;
|
|
1043
|
+
this.sources = sources;
|
|
1044
|
+
this.txns = txns;
|
|
1045
|
+
this.attribute_map = {
|
|
1046
|
+
accounts: 'accounts',
|
|
1047
|
+
apps: 'apps',
|
|
1048
|
+
latestTimestamp: 'latest-timestamp',
|
|
1049
|
+
protocolVersion: 'protocol-version',
|
|
1050
|
+
round: 'round',
|
|
1051
|
+
sources: 'sources',
|
|
1052
|
+
txns: 'txns',
|
|
1053
|
+
};
|
|
1054
|
+
}
|
|
1055
|
+
// eslint-disable-next-line camelcase
|
|
1056
|
+
static from_obj_for_encoding(data) {
|
|
1057
|
+
/* eslint-disable dot-notation */
|
|
1058
|
+
if (!Array.isArray(data['accounts']))
|
|
1059
|
+
throw new Error(`Response is missing required array field 'accounts': ${data}`);
|
|
1060
|
+
if (!Array.isArray(data['apps']))
|
|
1061
|
+
throw new Error(`Response is missing required array field 'apps': ${data}`);
|
|
1062
|
+
if (typeof data['latest-timestamp'] === 'undefined')
|
|
1063
|
+
throw new Error(`Response is missing required field 'latest-timestamp': ${data}`);
|
|
1064
|
+
if (typeof data['protocol-version'] === 'undefined')
|
|
1065
|
+
throw new Error(`Response is missing required field 'protocol-version': ${data}`);
|
|
1066
|
+
if (typeof data['round'] === 'undefined')
|
|
1067
|
+
throw new Error(`Response is missing required field 'round': ${data}`);
|
|
1068
|
+
if (!Array.isArray(data['sources']))
|
|
1069
|
+
throw new Error(`Response is missing required array field 'sources': ${data}`);
|
|
1070
|
+
if (!Array.isArray(data['txns']))
|
|
1071
|
+
throw new Error(`Response is missing required array field 'txns': ${data}`);
|
|
1072
|
+
return new DryrunRequest({
|
|
1073
|
+
accounts: data['accounts'].map(Account.from_obj_for_encoding),
|
|
1074
|
+
apps: data['apps'].map(Application.from_obj_for_encoding),
|
|
1075
|
+
latestTimestamp: data['latest-timestamp'],
|
|
1076
|
+
protocolVersion: data['protocol-version'],
|
|
1077
|
+
round: data['round'],
|
|
1078
|
+
sources: data['sources'].map(DryrunSource.from_obj_for_encoding),
|
|
1079
|
+
txns: data['txns'],
|
|
1080
|
+
});
|
|
1081
|
+
/* eslint-enable dot-notation */
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
exports.DryrunRequest = DryrunRequest;
|
|
1085
|
+
/**
|
|
1086
|
+
* DryrunResponse contains per-txn debug information from a dryrun.
|
|
1087
|
+
*/
|
|
1088
|
+
class DryrunResponse extends basemodel_1.default {
|
|
1089
|
+
/**
|
|
1090
|
+
* Creates a new `DryrunResponse` object.
|
|
1091
|
+
* @param error -
|
|
1092
|
+
* @param protocolVersion - Protocol version is the protocol version Dryrun was operated under.
|
|
1093
|
+
* @param txns -
|
|
1094
|
+
*/
|
|
1095
|
+
constructor(error, protocolVersion, txns) {
|
|
1096
|
+
super();
|
|
1097
|
+
this.error = error;
|
|
1098
|
+
this.protocolVersion = protocolVersion;
|
|
1099
|
+
this.txns = txns;
|
|
1100
|
+
this.attribute_map = {
|
|
1101
|
+
error: 'error',
|
|
1102
|
+
protocolVersion: 'protocol-version',
|
|
1103
|
+
txns: 'txns',
|
|
1104
|
+
};
|
|
1105
|
+
}
|
|
1106
|
+
// eslint-disable-next-line camelcase
|
|
1107
|
+
static from_obj_for_encoding(data) {
|
|
1108
|
+
/* eslint-disable dot-notation */
|
|
1109
|
+
if (typeof data['error'] === 'undefined')
|
|
1110
|
+
throw new Error(`Response is missing required field 'error': ${data}`);
|
|
1111
|
+
if (typeof data['protocol-version'] === 'undefined')
|
|
1112
|
+
throw new Error(`Response is missing required field 'protocol-version': ${data}`);
|
|
1113
|
+
if (!Array.isArray(data['txns']))
|
|
1114
|
+
throw new Error(`Response is missing required array field 'txns': ${data}`);
|
|
1115
|
+
return new DryrunResponse(data['error'], data['protocol-version'], data['txns'].map(DryrunTxnResult.from_obj_for_encoding));
|
|
1116
|
+
/* eslint-enable dot-notation */
|
|
1117
|
+
}
|
|
1118
|
+
}
|
|
1119
|
+
exports.DryrunResponse = DryrunResponse;
|
|
1120
|
+
/**
|
|
1121
|
+
* DryrunSource is TEAL source text that gets uploaded, compiled, and inserted into
|
|
1122
|
+
* transactions or application state.
|
|
1123
|
+
*/
|
|
1124
|
+
class DryrunSource extends basemodel_1.default {
|
|
1125
|
+
/**
|
|
1126
|
+
* Creates a new `DryrunSource` object.
|
|
1127
|
+
* @param fieldName - FieldName is what kind of sources this is. If lsig then it goes into the
|
|
1128
|
+
* transactions[this.TxnIndex].LogicSig. If approv or clearp it goes into the
|
|
1129
|
+
* Approval Program or Clear State Program of application[this.AppIndex].
|
|
1130
|
+
* @param source -
|
|
1131
|
+
* @param txnIndex -
|
|
1132
|
+
* @param appIndex -
|
|
1133
|
+
*/
|
|
1134
|
+
constructor(fieldName, source, txnIndex, appIndex) {
|
|
1135
|
+
super();
|
|
1136
|
+
this.fieldName = fieldName;
|
|
1137
|
+
this.source = source;
|
|
1138
|
+
this.txnIndex = txnIndex;
|
|
1139
|
+
this.appIndex = appIndex;
|
|
1140
|
+
this.attribute_map = {
|
|
1141
|
+
fieldName: 'field-name',
|
|
1142
|
+
source: 'source',
|
|
1143
|
+
txnIndex: 'txn-index',
|
|
1144
|
+
appIndex: 'app-index',
|
|
1145
|
+
};
|
|
1146
|
+
}
|
|
1147
|
+
// eslint-disable-next-line camelcase
|
|
1148
|
+
static from_obj_for_encoding(data) {
|
|
1149
|
+
/* eslint-disable dot-notation */
|
|
1150
|
+
if (typeof data['field-name'] === 'undefined')
|
|
1151
|
+
throw new Error(`Response is missing required field 'field-name': ${data}`);
|
|
1152
|
+
if (typeof data['source'] === 'undefined')
|
|
1153
|
+
throw new Error(`Response is missing required field 'source': ${data}`);
|
|
1154
|
+
if (typeof data['txn-index'] === 'undefined')
|
|
1155
|
+
throw new Error(`Response is missing required field 'txn-index': ${data}`);
|
|
1156
|
+
if (typeof data['app-index'] === 'undefined')
|
|
1157
|
+
throw new Error(`Response is missing required field 'app-index': ${data}`);
|
|
1158
|
+
return new DryrunSource(data['field-name'], data['source'], data['txn-index'], data['app-index']);
|
|
1159
|
+
/* eslint-enable dot-notation */
|
|
1160
|
+
}
|
|
1161
|
+
}
|
|
1162
|
+
exports.DryrunSource = DryrunSource;
|
|
1163
|
+
/**
|
|
1164
|
+
* Stores the TEAL eval step data
|
|
1165
|
+
*/
|
|
1166
|
+
class DryrunState extends basemodel_1.default {
|
|
1167
|
+
/**
|
|
1168
|
+
* Creates a new `DryrunState` object.
|
|
1169
|
+
* @param line - Line number
|
|
1170
|
+
* @param pc - Program counter
|
|
1171
|
+
* @param stack -
|
|
1172
|
+
* @param error - Evaluation error if any
|
|
1173
|
+
* @param scratch -
|
|
1174
|
+
*/
|
|
1175
|
+
constructor({ line, pc, stack, error, scratch, }) {
|
|
1176
|
+
super();
|
|
1177
|
+
this.line = line;
|
|
1178
|
+
this.pc = pc;
|
|
1179
|
+
this.stack = stack;
|
|
1180
|
+
this.error = error;
|
|
1181
|
+
this.scratch = scratch;
|
|
1182
|
+
this.attribute_map = {
|
|
1183
|
+
line: 'line',
|
|
1184
|
+
pc: 'pc',
|
|
1185
|
+
stack: 'stack',
|
|
1186
|
+
error: 'error',
|
|
1187
|
+
scratch: 'scratch',
|
|
1188
|
+
};
|
|
1189
|
+
}
|
|
1190
|
+
// eslint-disable-next-line camelcase
|
|
1191
|
+
static from_obj_for_encoding(data) {
|
|
1192
|
+
/* eslint-disable dot-notation */
|
|
1193
|
+
if (typeof data['line'] === 'undefined')
|
|
1194
|
+
throw new Error(`Response is missing required field 'line': ${data}`);
|
|
1195
|
+
if (typeof data['pc'] === 'undefined')
|
|
1196
|
+
throw new Error(`Response is missing required field 'pc': ${data}`);
|
|
1197
|
+
if (!Array.isArray(data['stack']))
|
|
1198
|
+
throw new Error(`Response is missing required array field 'stack': ${data}`);
|
|
1199
|
+
return new DryrunState({
|
|
1200
|
+
line: data['line'],
|
|
1201
|
+
pc: data['pc'],
|
|
1202
|
+
stack: data['stack'].map(TealValue.from_obj_for_encoding),
|
|
1203
|
+
error: data['error'],
|
|
1204
|
+
scratch: typeof data['scratch'] !== 'undefined'
|
|
1205
|
+
? data['scratch'].map(TealValue.from_obj_for_encoding)
|
|
1206
|
+
: undefined,
|
|
1207
|
+
});
|
|
1208
|
+
/* eslint-enable dot-notation */
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
exports.DryrunState = DryrunState;
|
|
1212
|
+
/**
|
|
1213
|
+
* DryrunTxnResult contains any LogicSig or ApplicationCall program debug
|
|
1214
|
+
* information and state updates from a dryrun.
|
|
1215
|
+
*/
|
|
1216
|
+
class DryrunTxnResult extends basemodel_1.default {
|
|
1217
|
+
/**
|
|
1218
|
+
* Creates a new `DryrunTxnResult` object.
|
|
1219
|
+
* @param disassembly - Disassembled program line by line.
|
|
1220
|
+
* @param appCallMessages -
|
|
1221
|
+
* @param appCallTrace -
|
|
1222
|
+
* @param budgetAdded - Budget added during execution of app call transaction.
|
|
1223
|
+
* @param budgetConsumed - Budget consumed during execution of app call transaction.
|
|
1224
|
+
* @param cost - Net cost of app execution. Field is DEPRECATED and is subject for removal.
|
|
1225
|
+
* Instead, use `budget-added` and `budget-consumed.
|
|
1226
|
+
* @param globalDelta - Application state delta.
|
|
1227
|
+
* @param localDeltas -
|
|
1228
|
+
* @param logicSigDisassembly - Disassembled lsig program line by line.
|
|
1229
|
+
* @param logicSigMessages -
|
|
1230
|
+
* @param logicSigTrace -
|
|
1231
|
+
* @param logs -
|
|
1232
|
+
*/
|
|
1233
|
+
constructor({ disassembly, appCallMessages, appCallTrace, budgetAdded, budgetConsumed, cost, globalDelta, localDeltas, logicSigDisassembly, logicSigMessages, logicSigTrace, logs, }) {
|
|
1234
|
+
super();
|
|
1235
|
+
this.disassembly = disassembly;
|
|
1236
|
+
this.appCallMessages = appCallMessages;
|
|
1237
|
+
this.appCallTrace = appCallTrace;
|
|
1238
|
+
this.budgetAdded = budgetAdded;
|
|
1239
|
+
this.budgetConsumed = budgetConsumed;
|
|
1240
|
+
this.cost = cost;
|
|
1241
|
+
this.globalDelta = globalDelta;
|
|
1242
|
+
this.localDeltas = localDeltas;
|
|
1243
|
+
this.logicSigDisassembly = logicSigDisassembly;
|
|
1244
|
+
this.logicSigMessages = logicSigMessages;
|
|
1245
|
+
this.logicSigTrace = logicSigTrace;
|
|
1246
|
+
this.logs = logs;
|
|
1247
|
+
this.attribute_map = {
|
|
1248
|
+
disassembly: 'disassembly',
|
|
1249
|
+
appCallMessages: 'app-call-messages',
|
|
1250
|
+
appCallTrace: 'app-call-trace',
|
|
1251
|
+
budgetAdded: 'budget-added',
|
|
1252
|
+
budgetConsumed: 'budget-consumed',
|
|
1253
|
+
cost: 'cost',
|
|
1254
|
+
globalDelta: 'global-delta',
|
|
1255
|
+
localDeltas: 'local-deltas',
|
|
1256
|
+
logicSigDisassembly: 'logic-sig-disassembly',
|
|
1257
|
+
logicSigMessages: 'logic-sig-messages',
|
|
1258
|
+
logicSigTrace: 'logic-sig-trace',
|
|
1259
|
+
logs: 'logs',
|
|
1260
|
+
};
|
|
1261
|
+
}
|
|
1262
|
+
// eslint-disable-next-line camelcase
|
|
1263
|
+
static from_obj_for_encoding(data) {
|
|
1264
|
+
/* eslint-disable dot-notation */
|
|
1265
|
+
if (!Array.isArray(data['disassembly']))
|
|
1266
|
+
throw new Error(`Response is missing required array field 'disassembly': ${data}`);
|
|
1267
|
+
return new DryrunTxnResult({
|
|
1268
|
+
disassembly: data['disassembly'],
|
|
1269
|
+
appCallMessages: data['app-call-messages'],
|
|
1270
|
+
appCallTrace: typeof data['app-call-trace'] !== 'undefined'
|
|
1271
|
+
? data['app-call-trace'].map(DryrunState.from_obj_for_encoding)
|
|
1272
|
+
: undefined,
|
|
1273
|
+
budgetAdded: data['budget-added'],
|
|
1274
|
+
budgetConsumed: data['budget-consumed'],
|
|
1275
|
+
cost: data['cost'],
|
|
1276
|
+
globalDelta: typeof data['global-delta'] !== 'undefined'
|
|
1277
|
+
? data['global-delta'].map(EvalDeltaKeyValue.from_obj_for_encoding)
|
|
1278
|
+
: undefined,
|
|
1279
|
+
localDeltas: typeof data['local-deltas'] !== 'undefined'
|
|
1280
|
+
? data['local-deltas'].map(AccountStateDelta.from_obj_for_encoding)
|
|
1281
|
+
: undefined,
|
|
1282
|
+
logicSigDisassembly: data['logic-sig-disassembly'],
|
|
1283
|
+
logicSigMessages: data['logic-sig-messages'],
|
|
1284
|
+
logicSigTrace: typeof data['logic-sig-trace'] !== 'undefined'
|
|
1285
|
+
? data['logic-sig-trace'].map(DryrunState.from_obj_for_encoding)
|
|
1286
|
+
: undefined,
|
|
1287
|
+
logs: data['logs'],
|
|
1288
|
+
});
|
|
1289
|
+
/* eslint-enable dot-notation */
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
exports.DryrunTxnResult = DryrunTxnResult;
|
|
1293
|
+
/**
|
|
1294
|
+
* An error response with optional data field.
|
|
1295
|
+
*/
|
|
1296
|
+
class ErrorResponse extends basemodel_1.default {
|
|
1297
|
+
/**
|
|
1298
|
+
* Creates a new `ErrorResponse` object.
|
|
1299
|
+
* @param message -
|
|
1300
|
+
* @param data -
|
|
1301
|
+
*/
|
|
1302
|
+
constructor(message, data) {
|
|
1303
|
+
super();
|
|
1304
|
+
this.message = message;
|
|
1305
|
+
this.data = data;
|
|
1306
|
+
this.attribute_map = {
|
|
1307
|
+
message: 'message',
|
|
1308
|
+
data: 'data',
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
// eslint-disable-next-line camelcase
|
|
1312
|
+
static from_obj_for_encoding(data) {
|
|
1313
|
+
/* eslint-disable dot-notation */
|
|
1314
|
+
if (typeof data['message'] === 'undefined')
|
|
1315
|
+
throw new Error(`Response is missing required field 'message': ${data}`);
|
|
1316
|
+
return new ErrorResponse(data['message'], data['data']);
|
|
1317
|
+
/* eslint-enable dot-notation */
|
|
1318
|
+
}
|
|
1319
|
+
}
|
|
1320
|
+
exports.ErrorResponse = ErrorResponse;
|
|
1321
|
+
/**
|
|
1322
|
+
* Represents a TEAL value delta.
|
|
1323
|
+
*/
|
|
1324
|
+
class EvalDelta extends basemodel_1.default {
|
|
1325
|
+
/**
|
|
1326
|
+
* Creates a new `EvalDelta` object.
|
|
1327
|
+
* @param action - (at) delta action.
|
|
1328
|
+
* @param bytes - (bs) bytes value.
|
|
1329
|
+
* @param uint - (ui) uint value.
|
|
1330
|
+
*/
|
|
1331
|
+
constructor(action, bytes, uint) {
|
|
1332
|
+
super();
|
|
1333
|
+
this.action = action;
|
|
1334
|
+
this.bytes = bytes;
|
|
1335
|
+
this.uint = uint;
|
|
1336
|
+
this.attribute_map = {
|
|
1337
|
+
action: 'action',
|
|
1338
|
+
bytes: 'bytes',
|
|
1339
|
+
uint: 'uint',
|
|
1340
|
+
};
|
|
1341
|
+
}
|
|
1342
|
+
// eslint-disable-next-line camelcase
|
|
1343
|
+
static from_obj_for_encoding(data) {
|
|
1344
|
+
/* eslint-disable dot-notation */
|
|
1345
|
+
if (typeof data['action'] === 'undefined')
|
|
1346
|
+
throw new Error(`Response is missing required field 'action': ${data}`);
|
|
1347
|
+
return new EvalDelta(data['action'], data['bytes'], data['uint']);
|
|
1348
|
+
/* eslint-enable dot-notation */
|
|
1349
|
+
}
|
|
1350
|
+
}
|
|
1351
|
+
exports.EvalDelta = EvalDelta;
|
|
1352
|
+
/**
|
|
1353
|
+
* Key-value pairs for StateDelta.
|
|
1354
|
+
*/
|
|
1355
|
+
class EvalDeltaKeyValue extends basemodel_1.default {
|
|
1356
|
+
/**
|
|
1357
|
+
* Creates a new `EvalDeltaKeyValue` object.
|
|
1358
|
+
* @param key -
|
|
1359
|
+
* @param value - Represents a TEAL value delta.
|
|
1360
|
+
*/
|
|
1361
|
+
constructor(key, value) {
|
|
1362
|
+
super();
|
|
1363
|
+
this.key = key;
|
|
1364
|
+
this.value = value;
|
|
1365
|
+
this.attribute_map = {
|
|
1366
|
+
key: 'key',
|
|
1367
|
+
value: 'value',
|
|
1368
|
+
};
|
|
1369
|
+
}
|
|
1370
|
+
// eslint-disable-next-line camelcase
|
|
1371
|
+
static from_obj_for_encoding(data) {
|
|
1372
|
+
/* eslint-disable dot-notation */
|
|
1373
|
+
if (typeof data['key'] === 'undefined')
|
|
1374
|
+
throw new Error(`Response is missing required field 'key': ${data}`);
|
|
1375
|
+
if (typeof data['value'] === 'undefined')
|
|
1376
|
+
throw new Error(`Response is missing required field 'value': ${data}`);
|
|
1377
|
+
return new EvalDeltaKeyValue(data['key'], EvalDelta.from_obj_for_encoding(data['value']));
|
|
1378
|
+
/* eslint-enable dot-notation */
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
exports.EvalDeltaKeyValue = EvalDeltaKeyValue;
|
|
1382
|
+
/**
|
|
1383
|
+
* Proof of membership and position of a light block header.
|
|
1384
|
+
*/
|
|
1385
|
+
class LightBlockHeaderProof extends basemodel_1.default {
|
|
1386
|
+
/**
|
|
1387
|
+
* Creates a new `LightBlockHeaderProof` object.
|
|
1388
|
+
* @param index - The index of the light block header in the vector commitment tree
|
|
1389
|
+
* @param proof - The encoded proof.
|
|
1390
|
+
* @param treedepth - Represents the depth of the tree that is being proven, i.e. the number of edges
|
|
1391
|
+
* from a leaf to the root.
|
|
1392
|
+
*/
|
|
1393
|
+
constructor(index, proof, treedepth) {
|
|
1394
|
+
super();
|
|
1395
|
+
this.index = index;
|
|
1396
|
+
this.proof =
|
|
1397
|
+
typeof proof === 'string'
|
|
1398
|
+
? new Uint8Array(Buffer.from(proof, 'base64'))
|
|
1399
|
+
: proof;
|
|
1400
|
+
this.treedepth = treedepth;
|
|
1401
|
+
this.attribute_map = {
|
|
1402
|
+
index: 'index',
|
|
1403
|
+
proof: 'proof',
|
|
1404
|
+
treedepth: 'treedepth',
|
|
1405
|
+
};
|
|
1406
|
+
}
|
|
1407
|
+
// eslint-disable-next-line camelcase
|
|
1408
|
+
static from_obj_for_encoding(data) {
|
|
1409
|
+
/* eslint-disable dot-notation */
|
|
1410
|
+
if (typeof data['index'] === 'undefined')
|
|
1411
|
+
throw new Error(`Response is missing required field 'index': ${data}`);
|
|
1412
|
+
if (typeof data['proof'] === 'undefined')
|
|
1413
|
+
throw new Error(`Response is missing required field 'proof': ${data}`);
|
|
1414
|
+
if (typeof data['treedepth'] === 'undefined')
|
|
1415
|
+
throw new Error(`Response is missing required field 'treedepth': ${data}`);
|
|
1416
|
+
return new LightBlockHeaderProof(data['index'], data['proof'], data['treedepth']);
|
|
1417
|
+
/* eslint-enable dot-notation */
|
|
1418
|
+
}
|
|
1419
|
+
}
|
|
1420
|
+
exports.LightBlockHeaderProof = LightBlockHeaderProof;
|
|
1421
|
+
/**
|
|
1422
|
+
*
|
|
1423
|
+
*/
|
|
1424
|
+
class NodeStatusResponse extends basemodel_1.default {
|
|
1425
|
+
/**
|
|
1426
|
+
* Creates a new `NodeStatusResponse` object.
|
|
1427
|
+
* @param catchupTime - CatchupTime in nanoseconds
|
|
1428
|
+
* @param lastRound - LastRound indicates the last round seen
|
|
1429
|
+
* @param lastVersion - LastVersion indicates the last consensus version supported
|
|
1430
|
+
* @param nextVersion - NextVersion of consensus protocol to use
|
|
1431
|
+
* @param nextVersionRound - NextVersionRound is the round at which the next consensus version will apply
|
|
1432
|
+
* @param nextVersionSupported - NextVersionSupported indicates whether the next consensus version is supported
|
|
1433
|
+
* by this node
|
|
1434
|
+
* @param stoppedAtUnsupportedRound - StoppedAtUnsupportedRound indicates that the node does not support the new
|
|
1435
|
+
* rounds and has stopped making progress
|
|
1436
|
+
* @param timeSinceLastRound - TimeSinceLastRound in nanoseconds
|
|
1437
|
+
* @param catchpoint - The current catchpoint that is being caught up to
|
|
1438
|
+
* @param catchpointAcquiredBlocks - The number of blocks that have already been obtained by the node as part of the
|
|
1439
|
+
* catchup
|
|
1440
|
+
* @param catchpointProcessedAccounts - The number of accounts from the current catchpoint that have been processed so
|
|
1441
|
+
* far as part of the catchup
|
|
1442
|
+
* @param catchpointProcessedKvs - The number of key-values (KVs) from the current catchpoint that have been
|
|
1443
|
+
* processed so far as part of the catchup
|
|
1444
|
+
* @param catchpointTotalAccounts - The total number of accounts included in the current catchpoint
|
|
1445
|
+
* @param catchpointTotalBlocks - The total number of blocks that are required to complete the current catchpoint
|
|
1446
|
+
* catchup
|
|
1447
|
+
* @param catchpointTotalKvs - The total number of key-values (KVs) included in the current catchpoint
|
|
1448
|
+
* @param catchpointVerifiedAccounts - The number of accounts from the current catchpoint that have been verified so
|
|
1449
|
+
* far as part of the catchup
|
|
1450
|
+
* @param catchpointVerifiedKvs - The number of key-values (KVs) from the current catchpoint that have been
|
|
1451
|
+
* verified so far as part of the catchup
|
|
1452
|
+
* @param lastCatchpoint - The last catchpoint seen by the node
|
|
1453
|
+
*/
|
|
1454
|
+
constructor({ catchupTime, lastRound, lastVersion, nextVersion, nextVersionRound, nextVersionSupported, stoppedAtUnsupportedRound, timeSinceLastRound, catchpoint, catchpointAcquiredBlocks, catchpointProcessedAccounts, catchpointProcessedKvs, catchpointTotalAccounts, catchpointTotalBlocks, catchpointTotalKvs, catchpointVerifiedAccounts, catchpointVerifiedKvs, lastCatchpoint, }) {
|
|
1455
|
+
super();
|
|
1456
|
+
this.catchupTime = catchupTime;
|
|
1457
|
+
this.lastRound = lastRound;
|
|
1458
|
+
this.lastVersion = lastVersion;
|
|
1459
|
+
this.nextVersion = nextVersion;
|
|
1460
|
+
this.nextVersionRound = nextVersionRound;
|
|
1461
|
+
this.nextVersionSupported = nextVersionSupported;
|
|
1462
|
+
this.stoppedAtUnsupportedRound = stoppedAtUnsupportedRound;
|
|
1463
|
+
this.timeSinceLastRound = timeSinceLastRound;
|
|
1464
|
+
this.catchpoint = catchpoint;
|
|
1465
|
+
this.catchpointAcquiredBlocks = catchpointAcquiredBlocks;
|
|
1466
|
+
this.catchpointProcessedAccounts = catchpointProcessedAccounts;
|
|
1467
|
+
this.catchpointProcessedKvs = catchpointProcessedKvs;
|
|
1468
|
+
this.catchpointTotalAccounts = catchpointTotalAccounts;
|
|
1469
|
+
this.catchpointTotalBlocks = catchpointTotalBlocks;
|
|
1470
|
+
this.catchpointTotalKvs = catchpointTotalKvs;
|
|
1471
|
+
this.catchpointVerifiedAccounts = catchpointVerifiedAccounts;
|
|
1472
|
+
this.catchpointVerifiedKvs = catchpointVerifiedKvs;
|
|
1473
|
+
this.lastCatchpoint = lastCatchpoint;
|
|
1474
|
+
this.attribute_map = {
|
|
1475
|
+
catchupTime: 'catchup-time',
|
|
1476
|
+
lastRound: 'last-round',
|
|
1477
|
+
lastVersion: 'last-version',
|
|
1478
|
+
nextVersion: 'next-version',
|
|
1479
|
+
nextVersionRound: 'next-version-round',
|
|
1480
|
+
nextVersionSupported: 'next-version-supported',
|
|
1481
|
+
stoppedAtUnsupportedRound: 'stopped-at-unsupported-round',
|
|
1482
|
+
timeSinceLastRound: 'time-since-last-round',
|
|
1483
|
+
catchpoint: 'catchpoint',
|
|
1484
|
+
catchpointAcquiredBlocks: 'catchpoint-acquired-blocks',
|
|
1485
|
+
catchpointProcessedAccounts: 'catchpoint-processed-accounts',
|
|
1486
|
+
catchpointProcessedKvs: 'catchpoint-processed-kvs',
|
|
1487
|
+
catchpointTotalAccounts: 'catchpoint-total-accounts',
|
|
1488
|
+
catchpointTotalBlocks: 'catchpoint-total-blocks',
|
|
1489
|
+
catchpointTotalKvs: 'catchpoint-total-kvs',
|
|
1490
|
+
catchpointVerifiedAccounts: 'catchpoint-verified-accounts',
|
|
1491
|
+
catchpointVerifiedKvs: 'catchpoint-verified-kvs',
|
|
1492
|
+
lastCatchpoint: 'last-catchpoint',
|
|
1493
|
+
};
|
|
1494
|
+
}
|
|
1495
|
+
// eslint-disable-next-line camelcase
|
|
1496
|
+
static from_obj_for_encoding(data) {
|
|
1497
|
+
/* eslint-disable dot-notation */
|
|
1498
|
+
if (typeof data['catchup-time'] === 'undefined')
|
|
1499
|
+
throw new Error(`Response is missing required field 'catchup-time': ${data}`);
|
|
1500
|
+
if (typeof data['last-round'] === 'undefined')
|
|
1501
|
+
throw new Error(`Response is missing required field 'last-round': ${data}`);
|
|
1502
|
+
if (typeof data['last-version'] === 'undefined')
|
|
1503
|
+
throw new Error(`Response is missing required field 'last-version': ${data}`);
|
|
1504
|
+
if (typeof data['next-version'] === 'undefined')
|
|
1505
|
+
throw new Error(`Response is missing required field 'next-version': ${data}`);
|
|
1506
|
+
if (typeof data['next-version-round'] === 'undefined')
|
|
1507
|
+
throw new Error(`Response is missing required field 'next-version-round': ${data}`);
|
|
1508
|
+
if (typeof data['next-version-supported'] === 'undefined')
|
|
1509
|
+
throw new Error(`Response is missing required field 'next-version-supported': ${data}`);
|
|
1510
|
+
if (typeof data['stopped-at-unsupported-round'] === 'undefined')
|
|
1511
|
+
throw new Error(`Response is missing required field 'stopped-at-unsupported-round': ${data}`);
|
|
1512
|
+
if (typeof data['time-since-last-round'] === 'undefined')
|
|
1513
|
+
throw new Error(`Response is missing required field 'time-since-last-round': ${data}`);
|
|
1514
|
+
return new NodeStatusResponse({
|
|
1515
|
+
catchupTime: data['catchup-time'],
|
|
1516
|
+
lastRound: data['last-round'],
|
|
1517
|
+
lastVersion: data['last-version'],
|
|
1518
|
+
nextVersion: data['next-version'],
|
|
1519
|
+
nextVersionRound: data['next-version-round'],
|
|
1520
|
+
nextVersionSupported: data['next-version-supported'],
|
|
1521
|
+
stoppedAtUnsupportedRound: data['stopped-at-unsupported-round'],
|
|
1522
|
+
timeSinceLastRound: data['time-since-last-round'],
|
|
1523
|
+
catchpoint: data['catchpoint'],
|
|
1524
|
+
catchpointAcquiredBlocks: data['catchpoint-acquired-blocks'],
|
|
1525
|
+
catchpointProcessedAccounts: data['catchpoint-processed-accounts'],
|
|
1526
|
+
catchpointProcessedKvs: data['catchpoint-processed-kvs'],
|
|
1527
|
+
catchpointTotalAccounts: data['catchpoint-total-accounts'],
|
|
1528
|
+
catchpointTotalBlocks: data['catchpoint-total-blocks'],
|
|
1529
|
+
catchpointTotalKvs: data['catchpoint-total-kvs'],
|
|
1530
|
+
catchpointVerifiedAccounts: data['catchpoint-verified-accounts'],
|
|
1531
|
+
catchpointVerifiedKvs: data['catchpoint-verified-kvs'],
|
|
1532
|
+
lastCatchpoint: data['last-catchpoint'],
|
|
1533
|
+
});
|
|
1534
|
+
/* eslint-enable dot-notation */
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
exports.NodeStatusResponse = NodeStatusResponse;
|
|
1538
|
+
/**
|
|
1539
|
+
* Details about a pending transaction. If the transaction was recently confirmed,
|
|
1540
|
+
* includes confirmation details like the round and reward details.
|
|
1541
|
+
*/
|
|
1542
|
+
class PendingTransactionResponse extends basemodel_1.default {
|
|
1543
|
+
/**
|
|
1544
|
+
* Creates a new `PendingTransactionResponse` object.
|
|
1545
|
+
* @param poolError - Indicates that the transaction was kicked out of this node's transaction pool
|
|
1546
|
+
* (and specifies why that happened). An empty string indicates the transaction
|
|
1547
|
+
* wasn't kicked out of this node's txpool due to an error.
|
|
1548
|
+
* @param txn - The raw signed transaction.
|
|
1549
|
+
* @param applicationIndex - The application index if the transaction was found and it created an
|
|
1550
|
+
* application.
|
|
1551
|
+
* @param assetClosingAmount - The number of the asset's unit that were transferred to the close-to address.
|
|
1552
|
+
* @param assetIndex - The asset index if the transaction was found and it created an asset.
|
|
1553
|
+
* @param closeRewards - Rewards in microalgos applied to the close remainder to account.
|
|
1554
|
+
* @param closingAmount - Closing amount for the transaction.
|
|
1555
|
+
* @param confirmedRound - The round where this transaction was confirmed, if present.
|
|
1556
|
+
* @param globalStateDelta - (gd) Global state key/value changes for the application being executed by this
|
|
1557
|
+
* transaction.
|
|
1558
|
+
* @param innerTxns - Inner transactions produced by application execution.
|
|
1559
|
+
* @param localStateDelta - (ld) Local state key/value changes for the application being executed by this
|
|
1560
|
+
* transaction.
|
|
1561
|
+
* @param logs - (lg) Logs for the application being executed by this transaction.
|
|
1562
|
+
* @param receiverRewards - Rewards in microalgos applied to the receiver account.
|
|
1563
|
+
* @param senderRewards - Rewards in microalgos applied to the sender account.
|
|
1564
|
+
*/
|
|
1565
|
+
constructor({ poolError, txn, applicationIndex, assetClosingAmount, assetIndex, closeRewards, closingAmount, confirmedRound, globalStateDelta, innerTxns, localStateDelta, logs, receiverRewards, senderRewards, }) {
|
|
1566
|
+
super();
|
|
1567
|
+
this.poolError = poolError;
|
|
1568
|
+
this.txn = txn;
|
|
1569
|
+
this.applicationIndex = applicationIndex;
|
|
1570
|
+
this.assetClosingAmount = assetClosingAmount;
|
|
1571
|
+
this.assetIndex = assetIndex;
|
|
1572
|
+
this.closeRewards = closeRewards;
|
|
1573
|
+
this.closingAmount = closingAmount;
|
|
1574
|
+
this.confirmedRound = confirmedRound;
|
|
1575
|
+
this.globalStateDelta = globalStateDelta;
|
|
1576
|
+
this.innerTxns = innerTxns;
|
|
1577
|
+
this.localStateDelta = localStateDelta;
|
|
1578
|
+
this.logs = logs;
|
|
1579
|
+
this.receiverRewards = receiverRewards;
|
|
1580
|
+
this.senderRewards = senderRewards;
|
|
1581
|
+
this.attribute_map = {
|
|
1582
|
+
poolError: 'pool-error',
|
|
1583
|
+
txn: 'txn',
|
|
1584
|
+
applicationIndex: 'application-index',
|
|
1585
|
+
assetClosingAmount: 'asset-closing-amount',
|
|
1586
|
+
assetIndex: 'asset-index',
|
|
1587
|
+
closeRewards: 'close-rewards',
|
|
1588
|
+
closingAmount: 'closing-amount',
|
|
1589
|
+
confirmedRound: 'confirmed-round',
|
|
1590
|
+
globalStateDelta: 'global-state-delta',
|
|
1591
|
+
innerTxns: 'inner-txns',
|
|
1592
|
+
localStateDelta: 'local-state-delta',
|
|
1593
|
+
logs: 'logs',
|
|
1594
|
+
receiverRewards: 'receiver-rewards',
|
|
1595
|
+
senderRewards: 'sender-rewards',
|
|
1596
|
+
};
|
|
1597
|
+
}
|
|
1598
|
+
// eslint-disable-next-line camelcase
|
|
1599
|
+
static from_obj_for_encoding(data) {
|
|
1600
|
+
/* eslint-disable dot-notation */
|
|
1601
|
+
if (typeof data['pool-error'] === 'undefined')
|
|
1602
|
+
throw new Error(`Response is missing required field 'pool-error': ${data}`);
|
|
1603
|
+
if (typeof data['txn'] === 'undefined')
|
|
1604
|
+
throw new Error(`Response is missing required field 'txn': ${data}`);
|
|
1605
|
+
return new PendingTransactionResponse({
|
|
1606
|
+
poolError: data['pool-error'],
|
|
1607
|
+
txn: data['txn'],
|
|
1608
|
+
applicationIndex: data['application-index'],
|
|
1609
|
+
assetClosingAmount: data['asset-closing-amount'],
|
|
1610
|
+
assetIndex: data['asset-index'],
|
|
1611
|
+
closeRewards: data['close-rewards'],
|
|
1612
|
+
closingAmount: data['closing-amount'],
|
|
1613
|
+
confirmedRound: data['confirmed-round'],
|
|
1614
|
+
globalStateDelta: typeof data['global-state-delta'] !== 'undefined'
|
|
1615
|
+
? data['global-state-delta'].map(EvalDeltaKeyValue.from_obj_for_encoding)
|
|
1616
|
+
: undefined,
|
|
1617
|
+
innerTxns: typeof data['inner-txns'] !== 'undefined'
|
|
1618
|
+
? data['inner-txns'].map(PendingTransactionResponse.from_obj_for_encoding)
|
|
1619
|
+
: undefined,
|
|
1620
|
+
localStateDelta: typeof data['local-state-delta'] !== 'undefined'
|
|
1621
|
+
? data['local-state-delta'].map(AccountStateDelta.from_obj_for_encoding)
|
|
1622
|
+
: undefined,
|
|
1623
|
+
logs: data['logs'],
|
|
1624
|
+
receiverRewards: data['receiver-rewards'],
|
|
1625
|
+
senderRewards: data['sender-rewards'],
|
|
1626
|
+
});
|
|
1627
|
+
/* eslint-enable dot-notation */
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
exports.PendingTransactionResponse = PendingTransactionResponse;
|
|
1631
|
+
/**
|
|
1632
|
+
* A potentially truncated list of transactions currently in the node's transaction
|
|
1633
|
+
* pool. You can compute whether or not the list is truncated if the number of
|
|
1634
|
+
* elements in the **top-transactions** array is fewer than **total-transactions**.
|
|
1635
|
+
*/
|
|
1636
|
+
class PendingTransactionsResponse extends basemodel_1.default {
|
|
1637
|
+
/**
|
|
1638
|
+
* Creates a new `PendingTransactionsResponse` object.
|
|
1639
|
+
* @param topTransactions - An array of signed transaction objects.
|
|
1640
|
+
* @param totalTransactions - Total number of transactions in the pool.
|
|
1641
|
+
*/
|
|
1642
|
+
constructor(topTransactions, totalTransactions) {
|
|
1643
|
+
super();
|
|
1644
|
+
this.topTransactions = topTransactions;
|
|
1645
|
+
this.totalTransactions = totalTransactions;
|
|
1646
|
+
this.attribute_map = {
|
|
1647
|
+
topTransactions: 'top-transactions',
|
|
1648
|
+
totalTransactions: 'total-transactions',
|
|
1649
|
+
};
|
|
1650
|
+
}
|
|
1651
|
+
// eslint-disable-next-line camelcase
|
|
1652
|
+
static from_obj_for_encoding(data) {
|
|
1653
|
+
/* eslint-disable dot-notation */
|
|
1654
|
+
if (!Array.isArray(data['top-transactions']))
|
|
1655
|
+
throw new Error(`Response is missing required array field 'top-transactions': ${data}`);
|
|
1656
|
+
if (typeof data['total-transactions'] === 'undefined')
|
|
1657
|
+
throw new Error(`Response is missing required field 'total-transactions': ${data}`);
|
|
1658
|
+
return new PendingTransactionsResponse(data['top-transactions'], data['total-transactions']);
|
|
1659
|
+
/* eslint-enable dot-notation */
|
|
1660
|
+
}
|
|
1661
|
+
}
|
|
1662
|
+
exports.PendingTransactionsResponse = PendingTransactionsResponse;
|
|
1663
|
+
/**
|
|
1664
|
+
* Transaction ID of the submission.
|
|
1665
|
+
*/
|
|
1666
|
+
class PostTransactionsResponse extends basemodel_1.default {
|
|
1667
|
+
/**
|
|
1668
|
+
* Creates a new `PostTransactionsResponse` object.
|
|
1669
|
+
* @param txid - encoding of the transaction hash.
|
|
1670
|
+
*/
|
|
1671
|
+
constructor(txid) {
|
|
1672
|
+
super();
|
|
1673
|
+
this.txid = txid;
|
|
1674
|
+
this.attribute_map = {
|
|
1675
|
+
txid: 'txId',
|
|
1676
|
+
};
|
|
1677
|
+
}
|
|
1678
|
+
// eslint-disable-next-line camelcase
|
|
1679
|
+
static from_obj_for_encoding(data) {
|
|
1680
|
+
/* eslint-disable dot-notation */
|
|
1681
|
+
if (typeof data['txId'] === 'undefined')
|
|
1682
|
+
throw new Error(`Response is missing required field 'txId': ${data}`);
|
|
1683
|
+
return new PostTransactionsResponse(data['txId']);
|
|
1684
|
+
/* eslint-enable dot-notation */
|
|
1685
|
+
}
|
|
1686
|
+
}
|
|
1687
|
+
exports.PostTransactionsResponse = PostTransactionsResponse;
|
|
1688
|
+
/**
|
|
1689
|
+
* Represents a state proof and its corresponding message
|
|
1690
|
+
*/
|
|
1691
|
+
class StateProof extends basemodel_1.default {
|
|
1692
|
+
/**
|
|
1693
|
+
* Creates a new `StateProof` object.
|
|
1694
|
+
* @param message - Represents the message that the state proofs are attesting to.
|
|
1695
|
+
* @param stateproof - The encoded StateProof for the message.
|
|
1696
|
+
*/
|
|
1697
|
+
constructor(message, stateproof) {
|
|
1698
|
+
super();
|
|
1699
|
+
this.message = message;
|
|
1700
|
+
this.stateproof =
|
|
1701
|
+
typeof stateproof === 'string'
|
|
1702
|
+
? new Uint8Array(Buffer.from(stateproof, 'base64'))
|
|
1703
|
+
: stateproof;
|
|
1704
|
+
this.attribute_map = {
|
|
1705
|
+
message: 'Message',
|
|
1706
|
+
stateproof: 'StateProof',
|
|
1707
|
+
};
|
|
1708
|
+
}
|
|
1709
|
+
// eslint-disable-next-line camelcase
|
|
1710
|
+
static from_obj_for_encoding(data) {
|
|
1711
|
+
/* eslint-disable dot-notation */
|
|
1712
|
+
if (typeof data['Message'] === 'undefined')
|
|
1713
|
+
throw new Error(`Response is missing required field 'Message': ${data}`);
|
|
1714
|
+
if (typeof data['StateProof'] === 'undefined')
|
|
1715
|
+
throw new Error(`Response is missing required field 'StateProof': ${data}`);
|
|
1716
|
+
return new StateProof(StateProofMessage.from_obj_for_encoding(data['Message']), data['StateProof']);
|
|
1717
|
+
/* eslint-enable dot-notation */
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
exports.StateProof = StateProof;
|
|
1721
|
+
/**
|
|
1722
|
+
* Represents the message that the state proofs are attesting to.
|
|
1723
|
+
*/
|
|
1724
|
+
class StateProofMessage extends basemodel_1.default {
|
|
1725
|
+
/**
|
|
1726
|
+
* Creates a new `StateProofMessage` object.
|
|
1727
|
+
* @param blockheaderscommitment - The vector commitment root on all light block headers within a state proof
|
|
1728
|
+
* interval.
|
|
1729
|
+
* @param firstattestedround - The first round the message attests to.
|
|
1730
|
+
* @param lastattestedround - The last round the message attests to.
|
|
1731
|
+
* @param lnprovenweight - An integer value representing the natural log of the proven weight with 16 bits
|
|
1732
|
+
* of precision. This value would be used to verify the next state proof.
|
|
1733
|
+
* @param voterscommitment - The vector commitment root of the top N accounts to sign the next StateProof.
|
|
1734
|
+
*/
|
|
1735
|
+
constructor({ blockheaderscommitment, firstattestedround, lastattestedround, lnprovenweight, voterscommitment, }) {
|
|
1736
|
+
super();
|
|
1737
|
+
this.blockheaderscommitment =
|
|
1738
|
+
typeof blockheaderscommitment === 'string'
|
|
1739
|
+
? new Uint8Array(Buffer.from(blockheaderscommitment, 'base64'))
|
|
1740
|
+
: blockheaderscommitment;
|
|
1741
|
+
this.firstattestedround = firstattestedround;
|
|
1742
|
+
this.lastattestedround = lastattestedround;
|
|
1743
|
+
this.lnprovenweight = lnprovenweight;
|
|
1744
|
+
this.voterscommitment =
|
|
1745
|
+
typeof voterscommitment === 'string'
|
|
1746
|
+
? new Uint8Array(Buffer.from(voterscommitment, 'base64'))
|
|
1747
|
+
: voterscommitment;
|
|
1748
|
+
this.attribute_map = {
|
|
1749
|
+
blockheaderscommitment: 'BlockHeadersCommitment',
|
|
1750
|
+
firstattestedround: 'FirstAttestedRound',
|
|
1751
|
+
lastattestedround: 'LastAttestedRound',
|
|
1752
|
+
lnprovenweight: 'LnProvenWeight',
|
|
1753
|
+
voterscommitment: 'VotersCommitment',
|
|
1754
|
+
};
|
|
1755
|
+
}
|
|
1756
|
+
// eslint-disable-next-line camelcase
|
|
1757
|
+
static from_obj_for_encoding(data) {
|
|
1758
|
+
/* eslint-disable dot-notation */
|
|
1759
|
+
if (typeof data['BlockHeadersCommitment'] === 'undefined')
|
|
1760
|
+
throw new Error(`Response is missing required field 'BlockHeadersCommitment': ${data}`);
|
|
1761
|
+
if (typeof data['FirstAttestedRound'] === 'undefined')
|
|
1762
|
+
throw new Error(`Response is missing required field 'FirstAttestedRound': ${data}`);
|
|
1763
|
+
if (typeof data['LastAttestedRound'] === 'undefined')
|
|
1764
|
+
throw new Error(`Response is missing required field 'LastAttestedRound': ${data}`);
|
|
1765
|
+
if (typeof data['LnProvenWeight'] === 'undefined')
|
|
1766
|
+
throw new Error(`Response is missing required field 'LnProvenWeight': ${data}`);
|
|
1767
|
+
if (typeof data['VotersCommitment'] === 'undefined')
|
|
1768
|
+
throw new Error(`Response is missing required field 'VotersCommitment': ${data}`);
|
|
1769
|
+
return new StateProofMessage({
|
|
1770
|
+
blockheaderscommitment: data['BlockHeadersCommitment'],
|
|
1771
|
+
firstattestedround: data['FirstAttestedRound'],
|
|
1772
|
+
lastattestedround: data['LastAttestedRound'],
|
|
1773
|
+
lnprovenweight: data['LnProvenWeight'],
|
|
1774
|
+
voterscommitment: data['VotersCommitment'],
|
|
1775
|
+
});
|
|
1776
|
+
/* eslint-enable dot-notation */
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
exports.StateProofMessage = StateProofMessage;
|
|
1780
|
+
/**
|
|
1781
|
+
* Supply represents the current supply of MicroAlgos in the system.
|
|
1782
|
+
*/
|
|
1783
|
+
class SupplyResponse extends basemodel_1.default {
|
|
1784
|
+
/**
|
|
1785
|
+
* Creates a new `SupplyResponse` object.
|
|
1786
|
+
* @param currentRound - Round
|
|
1787
|
+
* @param onlineMoney - OnlineMoney
|
|
1788
|
+
* @param totalMoney - TotalMoney
|
|
1789
|
+
*/
|
|
1790
|
+
constructor(currentRound, onlineMoney, totalMoney) {
|
|
1791
|
+
super();
|
|
1792
|
+
this.currentRound = currentRound;
|
|
1793
|
+
this.onlineMoney = onlineMoney;
|
|
1794
|
+
this.totalMoney = totalMoney;
|
|
1795
|
+
this.attribute_map = {
|
|
1796
|
+
currentRound: 'current_round',
|
|
1797
|
+
onlineMoney: 'online-money',
|
|
1798
|
+
totalMoney: 'total-money',
|
|
1799
|
+
};
|
|
1800
|
+
}
|
|
1801
|
+
// eslint-disable-next-line camelcase
|
|
1802
|
+
static from_obj_for_encoding(data) {
|
|
1803
|
+
/* eslint-disable dot-notation */
|
|
1804
|
+
if (typeof data['current_round'] === 'undefined')
|
|
1805
|
+
throw new Error(`Response is missing required field 'current_round': ${data}`);
|
|
1806
|
+
if (typeof data['online-money'] === 'undefined')
|
|
1807
|
+
throw new Error(`Response is missing required field 'online-money': ${data}`);
|
|
1808
|
+
if (typeof data['total-money'] === 'undefined')
|
|
1809
|
+
throw new Error(`Response is missing required field 'total-money': ${data}`);
|
|
1810
|
+
return new SupplyResponse(data['current_round'], data['online-money'], data['total-money']);
|
|
1811
|
+
/* eslint-enable dot-notation */
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
exports.SupplyResponse = SupplyResponse;
|
|
1815
|
+
/**
|
|
1816
|
+
* Represents a key-value pair in an application store.
|
|
1817
|
+
*/
|
|
1818
|
+
class TealKeyValue extends basemodel_1.default {
|
|
1819
|
+
/**
|
|
1820
|
+
* Creates a new `TealKeyValue` object.
|
|
1821
|
+
* @param key -
|
|
1822
|
+
* @param value - Represents a TEAL value.
|
|
1823
|
+
*/
|
|
1824
|
+
constructor(key, value) {
|
|
1825
|
+
super();
|
|
1826
|
+
this.key = key;
|
|
1827
|
+
this.value = value;
|
|
1828
|
+
this.attribute_map = {
|
|
1829
|
+
key: 'key',
|
|
1830
|
+
value: 'value',
|
|
1831
|
+
};
|
|
1832
|
+
}
|
|
1833
|
+
// eslint-disable-next-line camelcase
|
|
1834
|
+
static from_obj_for_encoding(data) {
|
|
1835
|
+
/* eslint-disable dot-notation */
|
|
1836
|
+
if (typeof data['key'] === 'undefined')
|
|
1837
|
+
throw new Error(`Response is missing required field 'key': ${data}`);
|
|
1838
|
+
if (typeof data['value'] === 'undefined')
|
|
1839
|
+
throw new Error(`Response is missing required field 'value': ${data}`);
|
|
1840
|
+
return new TealKeyValue(data['key'], TealValue.from_obj_for_encoding(data['value']));
|
|
1841
|
+
/* eslint-enable dot-notation */
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
exports.TealKeyValue = TealKeyValue;
|
|
1845
|
+
/**
|
|
1846
|
+
* Represents a TEAL value.
|
|
1847
|
+
*/
|
|
1848
|
+
class TealValue extends basemodel_1.default {
|
|
1849
|
+
/**
|
|
1850
|
+
* Creates a new `TealValue` object.
|
|
1851
|
+
* @param type - (tt) value type. Value `1` refers to **bytes**, value `2` refers to **uint**
|
|
1852
|
+
* @param bytes - (tb) bytes value.
|
|
1853
|
+
* @param uint - (ui) uint value.
|
|
1854
|
+
*/
|
|
1855
|
+
constructor(type, bytes, uint) {
|
|
1856
|
+
super();
|
|
1857
|
+
this.type = type;
|
|
1858
|
+
this.bytes = bytes;
|
|
1859
|
+
this.uint = uint;
|
|
1860
|
+
this.attribute_map = {
|
|
1861
|
+
type: 'type',
|
|
1862
|
+
bytes: 'bytes',
|
|
1863
|
+
uint: 'uint',
|
|
1864
|
+
};
|
|
1865
|
+
}
|
|
1866
|
+
// eslint-disable-next-line camelcase
|
|
1867
|
+
static from_obj_for_encoding(data) {
|
|
1868
|
+
/* eslint-disable dot-notation */
|
|
1869
|
+
if (typeof data['type'] === 'undefined')
|
|
1870
|
+
throw new Error(`Response is missing required field 'type': ${data}`);
|
|
1871
|
+
if (typeof data['bytes'] === 'undefined')
|
|
1872
|
+
throw new Error(`Response is missing required field 'bytes': ${data}`);
|
|
1873
|
+
if (typeof data['uint'] === 'undefined')
|
|
1874
|
+
throw new Error(`Response is missing required field 'uint': ${data}`);
|
|
1875
|
+
return new TealValue(data['type'], data['bytes'], data['uint']);
|
|
1876
|
+
/* eslint-enable dot-notation */
|
|
1877
|
+
}
|
|
1878
|
+
}
|
|
1879
|
+
exports.TealValue = TealValue;
|
|
1880
|
+
/**
|
|
1881
|
+
* TransactionParams contains the parameters that help a client construct a new
|
|
1882
|
+
* transaction.
|
|
1883
|
+
*/
|
|
1884
|
+
class TransactionParametersResponse extends basemodel_1.default {
|
|
1885
|
+
/**
|
|
1886
|
+
* Creates a new `TransactionParametersResponse` object.
|
|
1887
|
+
* @param consensusVersion - ConsensusVersion indicates the consensus protocol version
|
|
1888
|
+
* as of LastRound.
|
|
1889
|
+
* @param fee - Fee is the suggested transaction fee
|
|
1890
|
+
* Fee is in units of micro-Algos per byte.
|
|
1891
|
+
* Fee may fall to zero but transactions must still have a fee of
|
|
1892
|
+
* at least MinTxnFee for the current network protocol.
|
|
1893
|
+
* @param genesisHash - GenesisHash is the hash of the genesis block.
|
|
1894
|
+
* @param genesisId - GenesisID is an ID listed in the genesis block.
|
|
1895
|
+
* @param lastRound - LastRound indicates the last round seen
|
|
1896
|
+
* @param minFee - The minimum transaction fee (not per byte) required for the
|
|
1897
|
+
* txn to validate for the current network protocol.
|
|
1898
|
+
*/
|
|
1899
|
+
constructor({ consensusVersion, fee, genesisHash, genesisId, lastRound, minFee, }) {
|
|
1900
|
+
super();
|
|
1901
|
+
this.consensusVersion = consensusVersion;
|
|
1902
|
+
this.fee = fee;
|
|
1903
|
+
this.genesisHash =
|
|
1904
|
+
typeof genesisHash === 'string'
|
|
1905
|
+
? new Uint8Array(Buffer.from(genesisHash, 'base64'))
|
|
1906
|
+
: genesisHash;
|
|
1907
|
+
this.genesisId = genesisId;
|
|
1908
|
+
this.lastRound = lastRound;
|
|
1909
|
+
this.minFee = minFee;
|
|
1910
|
+
this.attribute_map = {
|
|
1911
|
+
consensusVersion: 'consensus-version',
|
|
1912
|
+
fee: 'fee',
|
|
1913
|
+
genesisHash: 'genesis-hash',
|
|
1914
|
+
genesisId: 'genesis-id',
|
|
1915
|
+
lastRound: 'last-round',
|
|
1916
|
+
minFee: 'min-fee',
|
|
1917
|
+
};
|
|
1918
|
+
}
|
|
1919
|
+
// eslint-disable-next-line camelcase
|
|
1920
|
+
static from_obj_for_encoding(data) {
|
|
1921
|
+
/* eslint-disable dot-notation */
|
|
1922
|
+
if (typeof data['consensus-version'] === 'undefined')
|
|
1923
|
+
throw new Error(`Response is missing required field 'consensus-version': ${data}`);
|
|
1924
|
+
if (typeof data['fee'] === 'undefined')
|
|
1925
|
+
throw new Error(`Response is missing required field 'fee': ${data}`);
|
|
1926
|
+
if (typeof data['genesis-hash'] === 'undefined')
|
|
1927
|
+
throw new Error(`Response is missing required field 'genesis-hash': ${data}`);
|
|
1928
|
+
if (typeof data['genesis-id'] === 'undefined')
|
|
1929
|
+
throw new Error(`Response is missing required field 'genesis-id': ${data}`);
|
|
1930
|
+
if (typeof data['last-round'] === 'undefined')
|
|
1931
|
+
throw new Error(`Response is missing required field 'last-round': ${data}`);
|
|
1932
|
+
if (typeof data['min-fee'] === 'undefined')
|
|
1933
|
+
throw new Error(`Response is missing required field 'min-fee': ${data}`);
|
|
1934
|
+
return new TransactionParametersResponse({
|
|
1935
|
+
consensusVersion: data['consensus-version'],
|
|
1936
|
+
fee: data['fee'],
|
|
1937
|
+
genesisHash: data['genesis-hash'],
|
|
1938
|
+
genesisId: data['genesis-id'],
|
|
1939
|
+
lastRound: data['last-round'],
|
|
1940
|
+
minFee: data['min-fee'],
|
|
1941
|
+
});
|
|
1942
|
+
/* eslint-enable dot-notation */
|
|
1943
|
+
}
|
|
1944
|
+
}
|
|
1945
|
+
exports.TransactionParametersResponse = TransactionParametersResponse;
|
|
1946
|
+
/**
|
|
1947
|
+
* Proof of transaction in a block.
|
|
1948
|
+
*/
|
|
1949
|
+
class TransactionProofResponse extends basemodel_1.default {
|
|
1950
|
+
/**
|
|
1951
|
+
* Creates a new `TransactionProofResponse` object.
|
|
1952
|
+
* @param idx - Index of the transaction in the block's payset.
|
|
1953
|
+
* @param proof - Proof of transaction membership.
|
|
1954
|
+
* @param stibhash - Hash of SignedTxnInBlock for verifying proof.
|
|
1955
|
+
* @param treedepth - Represents the depth of the tree that is being proven, i.e. the number of edges
|
|
1956
|
+
* from a leaf to the root.
|
|
1957
|
+
* @param hashtype - The type of hash function used to create the proof, must be one of:
|
|
1958
|
+
* * sha512_256
|
|
1959
|
+
* * sha256
|
|
1960
|
+
*/
|
|
1961
|
+
constructor({ idx, proof, stibhash, treedepth, hashtype, }) {
|
|
1962
|
+
super();
|
|
1963
|
+
this.idx = idx;
|
|
1964
|
+
this.proof =
|
|
1965
|
+
typeof proof === 'string'
|
|
1966
|
+
? new Uint8Array(Buffer.from(proof, 'base64'))
|
|
1967
|
+
: proof;
|
|
1968
|
+
this.stibhash =
|
|
1969
|
+
typeof stibhash === 'string'
|
|
1970
|
+
? new Uint8Array(Buffer.from(stibhash, 'base64'))
|
|
1971
|
+
: stibhash;
|
|
1972
|
+
this.treedepth = treedepth;
|
|
1973
|
+
this.hashtype = hashtype;
|
|
1974
|
+
this.attribute_map = {
|
|
1975
|
+
idx: 'idx',
|
|
1976
|
+
proof: 'proof',
|
|
1977
|
+
stibhash: 'stibhash',
|
|
1978
|
+
treedepth: 'treedepth',
|
|
1979
|
+
hashtype: 'hashtype',
|
|
1980
|
+
};
|
|
1981
|
+
}
|
|
1982
|
+
// eslint-disable-next-line camelcase
|
|
1983
|
+
static from_obj_for_encoding(data) {
|
|
1984
|
+
/* eslint-disable dot-notation */
|
|
1985
|
+
if (typeof data['idx'] === 'undefined')
|
|
1986
|
+
throw new Error(`Response is missing required field 'idx': ${data}`);
|
|
1987
|
+
if (typeof data['proof'] === 'undefined')
|
|
1988
|
+
throw new Error(`Response is missing required field 'proof': ${data}`);
|
|
1989
|
+
if (typeof data['stibhash'] === 'undefined')
|
|
1990
|
+
throw new Error(`Response is missing required field 'stibhash': ${data}`);
|
|
1991
|
+
if (typeof data['treedepth'] === 'undefined')
|
|
1992
|
+
throw new Error(`Response is missing required field 'treedepth': ${data}`);
|
|
1993
|
+
return new TransactionProofResponse({
|
|
1994
|
+
idx: data['idx'],
|
|
1995
|
+
proof: data['proof'],
|
|
1996
|
+
stibhash: data['stibhash'],
|
|
1997
|
+
treedepth: data['treedepth'],
|
|
1998
|
+
hashtype: data['hashtype'],
|
|
1999
|
+
});
|
|
2000
|
+
/* eslint-enable dot-notation */
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
exports.TransactionProofResponse = TransactionProofResponse;
|
|
2004
|
+
/**
|
|
2005
|
+
* algod version information.
|
|
2006
|
+
*/
|
|
2007
|
+
class Version extends basemodel_1.default {
|
|
2008
|
+
/**
|
|
2009
|
+
* Creates a new `Version` object.
|
|
2010
|
+
* @param build -
|
|
2011
|
+
* @param genesisHashB64 -
|
|
2012
|
+
* @param genesisId -
|
|
2013
|
+
* @param versions -
|
|
2014
|
+
*/
|
|
2015
|
+
constructor(build, genesisHashB64, genesisId, versions) {
|
|
2016
|
+
super();
|
|
2017
|
+
this.build = build;
|
|
2018
|
+
this.genesisHashB64 =
|
|
2019
|
+
typeof genesisHashB64 === 'string'
|
|
2020
|
+
? new Uint8Array(Buffer.from(genesisHashB64, 'base64'))
|
|
2021
|
+
: genesisHashB64;
|
|
2022
|
+
this.genesisId = genesisId;
|
|
2023
|
+
this.versions = versions;
|
|
2024
|
+
this.attribute_map = {
|
|
2025
|
+
build: 'build',
|
|
2026
|
+
genesisHashB64: 'genesis_hash_b64',
|
|
2027
|
+
genesisId: 'genesis_id',
|
|
2028
|
+
versions: 'versions',
|
|
2029
|
+
};
|
|
2030
|
+
}
|
|
2031
|
+
// eslint-disable-next-line camelcase
|
|
2032
|
+
static from_obj_for_encoding(data) {
|
|
2033
|
+
/* eslint-disable dot-notation */
|
|
2034
|
+
if (typeof data['build'] === 'undefined')
|
|
2035
|
+
throw new Error(`Response is missing required field 'build': ${data}`);
|
|
2036
|
+
if (typeof data['genesis_hash_b64'] === 'undefined')
|
|
2037
|
+
throw new Error(`Response is missing required field 'genesis_hash_b64': ${data}`);
|
|
2038
|
+
if (typeof data['genesis_id'] === 'undefined')
|
|
2039
|
+
throw new Error(`Response is missing required field 'genesis_id': ${data}`);
|
|
2040
|
+
if (!Array.isArray(data['versions']))
|
|
2041
|
+
throw new Error(`Response is missing required array field 'versions': ${data}`);
|
|
2042
|
+
return new Version(BuildVersion.from_obj_for_encoding(data['build']), data['genesis_hash_b64'], data['genesis_id'], data['versions']);
|
|
2043
|
+
/* eslint-enable dot-notation */
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
exports.Version = Version;
|
|
2047
|
+
//# sourceMappingURL=types.js.map
|