@aptos-labs/ts-sdk 1.13.3 → 1.14.0
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/dist/common/accountAddress-csDQ8Gnp.d.ts +2103 -0
- package/dist/common/cli/index.d.ts +94 -1
- package/dist/common/cli/index.js +1 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +159 -2260
- package/dist/common/index.js +3 -3
- package/dist/common/index.js.map +1 -1
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/{chunk-3WUGR46O.mjs → chunk-2G4ZSGL4.mjs} +2 -2
- package/dist/esm/{chunk-SG4MAOCF.mjs → chunk-3YZGJLW7.mjs} +2 -2
- package/dist/esm/{chunk-IIPYR7PF.mjs → chunk-4374JPA6.mjs} +2 -2
- package/dist/esm/{chunk-CTIN3GTP.mjs → chunk-4P5EKAJB.mjs} +2 -2
- package/dist/esm/{chunk-5P2S2SZZ.mjs → chunk-5HY3DEPF.mjs} +2 -2
- package/dist/esm/chunk-62P5CJAJ.mjs +2 -0
- package/dist/esm/{chunk-FATWMUXK.mjs.map → chunk-62P5CJAJ.mjs.map} +1 -1
- package/dist/esm/{chunk-DPV25ZKR.mjs → chunk-6OV2PQS5.mjs} +2 -2
- package/dist/esm/{chunk-TLOPIURC.mjs → chunk-APDALGDD.mjs} +2 -2
- package/dist/esm/{chunk-V4SRNEV3.mjs → chunk-AT2A6UGB.mjs} +2 -2
- package/dist/esm/{chunk-KVZ4XMZS.mjs → chunk-B3BRR4WP.mjs} +2 -2
- package/dist/esm/{chunk-CU67XZNB.mjs → chunk-BAV4XY7C.mjs} +2 -2
- package/dist/esm/{chunk-YU3KB3UV.mjs → chunk-BE4FOV6X.mjs} +2 -2
- package/dist/esm/{chunk-MACC2BLE.mjs → chunk-BIAEC6FO.mjs} +2 -2
- package/dist/esm/{chunk-IKYIJYBY.mjs → chunk-CDB34C4N.mjs} +2 -2
- package/dist/esm/{chunk-G2O323HP.mjs → chunk-CF5R4HVB.mjs} +2 -2
- package/dist/esm/chunk-CPBGL37X.mjs +2 -0
- package/dist/esm/{chunk-B7TQGVGL.mjs.map → chunk-CPBGL37X.mjs.map} +1 -1
- package/dist/esm/{chunk-RIUZPGI5.mjs → chunk-FXNFWLQC.mjs} +2 -2
- package/dist/esm/{chunk-WLF5YQM4.mjs → chunk-HG4Q4EFG.mjs} +2 -2
- package/dist/esm/{chunk-6CFRW26C.mjs → chunk-HWECUBBA.mjs} +2 -2
- package/dist/esm/chunk-HYCGMFC2.mjs +2 -0
- package/dist/esm/chunk-HYCGMFC2.mjs.map +1 -0
- package/dist/esm/{chunk-W4ZW7QHA.mjs → chunk-IR46T46A.mjs} +2 -2
- package/dist/esm/{chunk-V3Q2KXJU.mjs → chunk-JCD72AW7.mjs} +2 -2
- package/dist/esm/{chunk-7QJ6YJXP.mjs → chunk-L5IL2IAB.mjs} +2 -2
- package/dist/esm/{chunk-SUAKPNKQ.mjs → chunk-LBGYH45K.mjs} +2 -2
- package/dist/esm/chunk-LDQ6JFEF.mjs +2 -0
- package/dist/esm/chunk-LDQ6JFEF.mjs.map +1 -0
- package/dist/esm/{chunk-2HISPUZZ.mjs → chunk-MFL3UCKA.mjs} +2 -2
- package/dist/esm/{chunk-GSD4OOM3.mjs → chunk-N77VJHW5.mjs} +2 -2
- package/dist/esm/chunk-NBCHJ75L.mjs +2 -0
- package/dist/esm/{chunk-EOFJFE4T.mjs.map → chunk-NBCHJ75L.mjs.map} +1 -1
- package/dist/esm/{chunk-ZZZZVONX.mjs → chunk-NWYIE7ZX.mjs} +2 -2
- package/dist/esm/{chunk-VVIG4E7Q.mjs → chunk-NZGRLKRG.mjs} +2 -2
- package/dist/esm/{chunk-PZGLV5UQ.mjs → chunk-OGHE4AQA.mjs} +2 -2
- package/dist/esm/{chunk-Z5YFM2AW.mjs → chunk-P3UFJZY5.mjs} +2 -2
- package/dist/esm/{chunk-YPTF6MLX.mjs → chunk-PJPXC22D.mjs} +2 -2
- package/dist/esm/{chunk-B3R6G6QP.mjs → chunk-PMUT3HZE.mjs} +2 -2
- package/dist/esm/{chunk-734YX27W.mjs → chunk-PXFIA4BL.mjs} +2 -2
- package/dist/esm/{chunk-Q3TZGQVC.mjs → chunk-PYXJYEAC.mjs} +2 -2
- package/dist/esm/{chunk-PFIMEXNN.mjs → chunk-QD2Y3VK4.mjs} +2 -2
- package/dist/esm/{chunk-V6OS74OS.mjs → chunk-QIAU5K5Y.mjs} +2 -2
- package/dist/esm/{chunk-AD3VLZ7I.mjs → chunk-RR7I2HLA.mjs} +2 -2
- package/dist/esm/{chunk-OVJQWQ2N.mjs → chunk-RTSWVT2Q.mjs} +2 -2
- package/dist/esm/chunk-RW2A63WK.mjs +2 -0
- package/dist/esm/chunk-RW2A63WK.mjs.map +1 -0
- package/dist/esm/{chunk-MFKMAAWA.mjs → chunk-S2LTZKM4.mjs} +2 -2
- package/dist/esm/{chunk-O2F53NKI.mjs → chunk-SPU745XV.mjs} +2 -2
- package/dist/esm/{chunk-DM44OGQH.mjs → chunk-TGXZVNR5.mjs} +2 -2
- package/dist/esm/{chunk-QMURTXFM.mjs → chunk-UDRSFVAK.mjs} +2 -2
- package/dist/esm/{chunk-YFRXBEOC.mjs → chunk-UF534PKA.mjs} +2 -2
- package/dist/esm/{chunk-MC6G725U.mjs → chunk-UMDTVVQC.mjs} +2 -2
- package/dist/esm/{chunk-NNQJBFRB.mjs → chunk-UNU3RVRJ.mjs} +2 -2
- package/dist/esm/{chunk-AU6W5OIH.mjs → chunk-UPIN5AIO.mjs} +2 -2
- package/dist/esm/{chunk-UFT7US42.mjs → chunk-WCVUDO5S.mjs} +2 -2
- package/dist/esm/{chunk-24IKVZBK.mjs → chunk-XIJHRBDL.mjs} +2 -2
- package/dist/esm/{chunk-ODRO4CSA.mjs → chunk-ZEHKHKBP.mjs} +2 -2
- package/dist/esm/cli/index.d.mts +12 -0
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/move.d.mts +105 -0
- package/dist/esm/cli/move.mjs +2 -0
- package/dist/esm/cli/move.mjs.map +1 -0
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/Account.mjs +1 -1
- package/dist/esm/core/account/Ed25519Account.mjs +1 -1
- package/dist/esm/core/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +1 -1
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +1 -1
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/utils/apiEndpoints.d.mts +0 -1
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/src/cli/index.ts +1 -0
- package/src/cli/move.ts +183 -0
- package/src/internal/ans.ts +0 -1
- package/src/internal/fungibleAsset.ts +1 -1
- package/src/transactions/transactionBuilder/transactionBuilder.ts +4 -6
- package/src/utils/apiEndpoints.ts +0 -6
- package/src/version.ts +1 -1
- package/dist/esm/chunk-B7TQGVGL.mjs +0 -2
- package/dist/esm/chunk-EOFJFE4T.mjs +0 -2
- package/dist/esm/chunk-FATWMUXK.mjs +0 -2
- package/dist/esm/chunk-HQ5I4Q3H.mjs +0 -2
- package/dist/esm/chunk-HQ5I4Q3H.mjs.map +0 -1
- package/dist/esm/chunk-XDGQTMDV.mjs +0 -2
- package/dist/esm/chunk-XDGQTMDV.mjs.map +0 -1
- /package/dist/esm/{chunk-3WUGR46O.mjs.map → chunk-2G4ZSGL4.mjs.map} +0 -0
- /package/dist/esm/{chunk-SG4MAOCF.mjs.map → chunk-3YZGJLW7.mjs.map} +0 -0
- /package/dist/esm/{chunk-IIPYR7PF.mjs.map → chunk-4374JPA6.mjs.map} +0 -0
- /package/dist/esm/{chunk-CTIN3GTP.mjs.map → chunk-4P5EKAJB.mjs.map} +0 -0
- /package/dist/esm/{chunk-5P2S2SZZ.mjs.map → chunk-5HY3DEPF.mjs.map} +0 -0
- /package/dist/esm/{chunk-DPV25ZKR.mjs.map → chunk-6OV2PQS5.mjs.map} +0 -0
- /package/dist/esm/{chunk-TLOPIURC.mjs.map → chunk-APDALGDD.mjs.map} +0 -0
- /package/dist/esm/{chunk-V4SRNEV3.mjs.map → chunk-AT2A6UGB.mjs.map} +0 -0
- /package/dist/esm/{chunk-KVZ4XMZS.mjs.map → chunk-B3BRR4WP.mjs.map} +0 -0
- /package/dist/esm/{chunk-CU67XZNB.mjs.map → chunk-BAV4XY7C.mjs.map} +0 -0
- /package/dist/esm/{chunk-YU3KB3UV.mjs.map → chunk-BE4FOV6X.mjs.map} +0 -0
- /package/dist/esm/{chunk-MACC2BLE.mjs.map → chunk-BIAEC6FO.mjs.map} +0 -0
- /package/dist/esm/{chunk-IKYIJYBY.mjs.map → chunk-CDB34C4N.mjs.map} +0 -0
- /package/dist/esm/{chunk-G2O323HP.mjs.map → chunk-CF5R4HVB.mjs.map} +0 -0
- /package/dist/esm/{chunk-RIUZPGI5.mjs.map → chunk-FXNFWLQC.mjs.map} +0 -0
- /package/dist/esm/{chunk-WLF5YQM4.mjs.map → chunk-HG4Q4EFG.mjs.map} +0 -0
- /package/dist/esm/{chunk-6CFRW26C.mjs.map → chunk-HWECUBBA.mjs.map} +0 -0
- /package/dist/esm/{chunk-W4ZW7QHA.mjs.map → chunk-IR46T46A.mjs.map} +0 -0
- /package/dist/esm/{chunk-V3Q2KXJU.mjs.map → chunk-JCD72AW7.mjs.map} +0 -0
- /package/dist/esm/{chunk-7QJ6YJXP.mjs.map → chunk-L5IL2IAB.mjs.map} +0 -0
- /package/dist/esm/{chunk-SUAKPNKQ.mjs.map → chunk-LBGYH45K.mjs.map} +0 -0
- /package/dist/esm/{chunk-2HISPUZZ.mjs.map → chunk-MFL3UCKA.mjs.map} +0 -0
- /package/dist/esm/{chunk-GSD4OOM3.mjs.map → chunk-N77VJHW5.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZZZZVONX.mjs.map → chunk-NWYIE7ZX.mjs.map} +0 -0
- /package/dist/esm/{chunk-VVIG4E7Q.mjs.map → chunk-NZGRLKRG.mjs.map} +0 -0
- /package/dist/esm/{chunk-PZGLV5UQ.mjs.map → chunk-OGHE4AQA.mjs.map} +0 -0
- /package/dist/esm/{chunk-Z5YFM2AW.mjs.map → chunk-P3UFJZY5.mjs.map} +0 -0
- /package/dist/esm/{chunk-YPTF6MLX.mjs.map → chunk-PJPXC22D.mjs.map} +0 -0
- /package/dist/esm/{chunk-B3R6G6QP.mjs.map → chunk-PMUT3HZE.mjs.map} +0 -0
- /package/dist/esm/{chunk-734YX27W.mjs.map → chunk-PXFIA4BL.mjs.map} +0 -0
- /package/dist/esm/{chunk-Q3TZGQVC.mjs.map → chunk-PYXJYEAC.mjs.map} +0 -0
- /package/dist/esm/{chunk-PFIMEXNN.mjs.map → chunk-QD2Y3VK4.mjs.map} +0 -0
- /package/dist/esm/{chunk-V6OS74OS.mjs.map → chunk-QIAU5K5Y.mjs.map} +0 -0
- /package/dist/esm/{chunk-AD3VLZ7I.mjs.map → chunk-RR7I2HLA.mjs.map} +0 -0
- /package/dist/esm/{chunk-OVJQWQ2N.mjs.map → chunk-RTSWVT2Q.mjs.map} +0 -0
- /package/dist/esm/{chunk-MFKMAAWA.mjs.map → chunk-S2LTZKM4.mjs.map} +0 -0
- /package/dist/esm/{chunk-O2F53NKI.mjs.map → chunk-SPU745XV.mjs.map} +0 -0
- /package/dist/esm/{chunk-DM44OGQH.mjs.map → chunk-TGXZVNR5.mjs.map} +0 -0
- /package/dist/esm/{chunk-QMURTXFM.mjs.map → chunk-UDRSFVAK.mjs.map} +0 -0
- /package/dist/esm/{chunk-YFRXBEOC.mjs.map → chunk-UF534PKA.mjs.map} +0 -0
- /package/dist/esm/{chunk-MC6G725U.mjs.map → chunk-UMDTVVQC.mjs.map} +0 -0
- /package/dist/esm/{chunk-NNQJBFRB.mjs.map → chunk-UNU3RVRJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-AU6W5OIH.mjs.map → chunk-UPIN5AIO.mjs.map} +0 -0
- /package/dist/esm/{chunk-UFT7US42.mjs.map → chunk-WCVUDO5S.mjs.map} +0 -0
- /package/dist/esm/{chunk-24IKVZBK.mjs.map → chunk-XIJHRBDL.mjs.map} +0 -0
- /package/dist/esm/{chunk-ODRO4CSA.mjs.map → chunk-ZEHKHKBP.mjs.map} +0 -0
package/dist/common/index.d.ts
CHANGED
|
@@ -1,19 +1,7 @@
|
|
|
1
|
+
import { S as Serializable, T as TransactionArgument, H as HexInput, a as Serializer, D as Deserializer, E as EntryFunctionArgument, U as Uint8, b as Uint16, c as Uint32, A as AnyNumber, d as Deserializable, e as Hex, f as AuthenticationKeyScheme, g as AccountAddress, h as AnyPublicKeyVariant, i as AccountAddressInput, j as SigningSchemeInput, k as SigningScheme, N as Network, C as Client, l as ClientConfig, F as FullNodeConfig, I as IndexerConfig, m as FaucetConfig, n as AptosSettings, o as AccountData, P as PaginationArgs, L as LedgerVersionArg, M as MoveModuleBytecode, p as TransactionResponse, q as MoveResource, r as MoveStructId, s as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, t as GetAccountOwnedTokensFromCollectionResponse, u as GetAccountCollectionsWithOwnedTokenResponse, v as GetAccountCoinsDataResponse, W as WhereArg, w as GetAccountOwnedObjectsResponse, x as MoveModuleId, y as ScriptFunctionArgument, z as MoveFunctionId, B as MoveFunctionGenericTypeParam, J as GetCollectionDataResponse, K as GetTokenDataResponse, Q as GetCurrentTokenOwnershipResponse, R as GetOwnedTokensResponse, V as GetTokenActivityResponse, X as GetEventsResponse, Y as WaitForTransactionOptions, Z as UserTransactionResponse, _ as MoveFunction, $ as GetFungibleAssetMetadataResponse, a0 as GetFungibleAssetActivitiesResponse, a1 as GetCurrentFungibleAssetBalancesResponse, a2 as LedgerInfo, a3 as Block, a4 as TableItemRequest, a5 as MoveValue, a6 as GetChainTopUserTransactionsResponse, a7 as GraphqlQuery, a8 as GetProcessorStatusResponse, a9 as GetANSNameResponse, aa as GetNumberOfDelegatorsResponse, ab as GetDelegatedStakingActivitiesResponse, ac as PendingTransactionResponse, ad as CommittedTransactionResponse, ae as GasEstimation, af as AptosRequest, ag as ClientRequest, ah as ClientResponse, ai as MimeType } from './accountAddress-csDQ8Gnp.js';
|
|
2
|
+
export { av as AccountAuthenticatorVariant, ba as AccountSignature, am as AddressInvalidReason, aw as AnySignatureVariant, aJ as BlockMetadataTransactionResponse, aA as ClientHeadersType, aT as DecodedTableData, aU as DeletedTableData, bx as DeriveScheme, bd as DirectWriteSet, aW as EntryFunctionPayloadResponse, bf as Event, be as EventGuid, bA as GenerateAccount, by as GenerateAccountWithEd25519, bz as GenerateAccountWithSingleSignerSecp256k1Key, aZ as GenesisPayload, aI as GenesisTransactionResponse, ap as HexInvalidReason, bs as MoveAbility, bm as MoveAddressType, br as MoveFunctionVisibility, bu as MoveModule, bn as MoveObjectType, bo as MoveOptionType, a_ as MoveScriptBytecode, bv as MoveStruct, bt as MoveStructField, bp as MoveStructType, bq as MoveType, bk as MoveUint128Type, bh as MoveUint16Type, bl as MoveUint256Type, bi as MoveUint32Type, bj as MoveUint64Type, bg as MoveUint8Type, aY as MultisigPayloadResponse, bH as NetworkToChainId, bG as NetworkToFaucetAPI, bE as NetworkToIndexerAPI, bI as NetworkToNetworkName, bF as NetworkToNodeAPI, bB as OrderBy, bC as OrderByValue, an as ParsingError, ao as ParsingResult, bw as RoleType, aX as ScriptPayloadResponse, ar as ScriptTransactionArgumentVariants, bc as ScriptWriteSet, aK as StateCheckpointTransactionResponse, bD as TokenStandard, au as TransactionAuthenticatorVariant, b5 as TransactionEd25519Signature, b9 as TransactionFeePayerSignature, b8 as TransactionMultiAgentSignature, b7 as TransactionMultiEd25519Signature, aV as TransactionPayloadResponse, as as TransactionPayloadVariants, aB as TransactionResponseType, b6 as TransactionSecp256k1Signature, a$ as TransactionSignature, at as TransactionVariants, aq as TypeTagVariants, ay as Uint128, az as Uint256, ax as Uint64, aL as ValidatorTransactionResponse, bb as WriteSet, aM as WriteSetChange, aN as WriteSetChangeDeleteModule, aO as WriteSetChangeDeleteResource, aP as WriteSetChangeDeleteTableItem, aQ as WriteSetChangeWriteModule, aR as WriteSetChangeWriteResource, aS as WriteSetChangeWriteTableItem, aj as ensureBoolean, aF as isBlockMetadataTransactionResponse, b0 as isEd25519Signature, b3 as isFeePayerSignature, aE as isGenesisTransactionResponse, b2 as isMultiAgentSignature, b4 as isMultiEd25519Signature, aC as isPendingTransactionResponse, b1 as isSecp256k1Signature, aG as isStateCheckpointTransactionResponse, aD as isUserTransactionResponse, aH as isValidatorTransactionResponse, ak as outOfRangeErrorMessage, al as validateNumberInRange } from './accountAddress-csDQ8Gnp.js';
|
|
1
3
|
import EventEmitter from 'eventemitter3';
|
|
2
4
|
|
|
3
|
-
declare const NetworkToIndexerAPI: Record<string, string>;
|
|
4
|
-
declare const NetworkToNodeAPI: Record<string, string>;
|
|
5
|
-
declare const NetworkToFaucetAPI: Record<string, string>;
|
|
6
|
-
declare enum Network {
|
|
7
|
-
MAINNET = "mainnet",
|
|
8
|
-
TESTNET = "testnet",
|
|
9
|
-
DEVNET = "devnet",
|
|
10
|
-
RANDOMNET = "randomnet",
|
|
11
|
-
LOCAL = "local",
|
|
12
|
-
CUSTOM = "custom"
|
|
13
|
-
}
|
|
14
|
-
declare const NetworkToChainId: Record<string, number>;
|
|
15
|
-
declare const NetworkToNetworkName: Record<string, Network>;
|
|
16
|
-
|
|
17
5
|
type Maybe<T> = T | null;
|
|
18
6
|
type InputMaybe<T> = Maybe<T>;
|
|
19
7
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
@@ -172,2022 +160,165 @@ type CurrentAptosNamesBoolExp = {
|
|
|
172
160
|
declare enum CurrentAptosNamesSelectColumn {
|
|
173
161
|
/** column name */
|
|
174
162
|
Domain = "domain",
|
|
175
|
-
/** column name */
|
|
176
|
-
DomainWithSuffix = "domain_with_suffix",
|
|
177
|
-
/** column name */
|
|
178
|
-
ExpirationTimestamp = "expiration_timestamp",
|
|
179
|
-
/** column name */
|
|
180
|
-
IsActive = "is_active",
|
|
181
|
-
/** column name */
|
|
182
|
-
IsPrimary = "is_primary",
|
|
183
|
-
/** column name */
|
|
184
|
-
LastTransactionVersion = "last_transaction_version",
|
|
185
|
-
/** column name */
|
|
186
|
-
OwnerAddress = "owner_address",
|
|
187
|
-
/** column name */
|
|
188
|
-
RegisteredAddress = "registered_address",
|
|
189
|
-
/** column name */
|
|
190
|
-
Subdomain = "subdomain",
|
|
191
|
-
/** column name */
|
|
192
|
-
TokenName = "token_name",
|
|
193
|
-
/** column name */
|
|
194
|
-
TokenStandard = "token_standard"
|
|
195
|
-
}
|
|
196
|
-
/** select "current_aptos_names_aggregate_bool_exp_bool_and_arguments_columns" columns of table "current_aptos_names" */
|
|
197
|
-
declare enum CurrentAptosNamesSelectColumnCurrentAptosNamesAggregateBoolExpBoolAndArgumentsColumns {
|
|
198
|
-
/** column name */
|
|
199
|
-
IsActive = "is_active",
|
|
200
|
-
/** column name */
|
|
201
|
-
IsPrimary = "is_primary"
|
|
202
|
-
}
|
|
203
|
-
/** select "current_aptos_names_aggregate_bool_exp_bool_or_arguments_columns" columns of table "current_aptos_names" */
|
|
204
|
-
declare enum CurrentAptosNamesSelectColumnCurrentAptosNamesAggregateBoolExpBoolOrArgumentsColumns {
|
|
205
|
-
/** column name */
|
|
206
|
-
IsActive = "is_active",
|
|
207
|
-
/** column name */
|
|
208
|
-
IsPrimary = "is_primary"
|
|
209
|
-
}
|
|
210
|
-
/** Boolean expression to filter rows from the table "current_fungible_asset_balances". All fields are combined with a logical 'AND'. */
|
|
211
|
-
type CurrentFungibleAssetBalancesBoolExp = {
|
|
212
|
-
_and?: InputMaybe<Array<CurrentFungibleAssetBalancesBoolExp>>;
|
|
213
|
-
_not?: InputMaybe<CurrentFungibleAssetBalancesBoolExp>;
|
|
214
|
-
_or?: InputMaybe<Array<CurrentFungibleAssetBalancesBoolExp>>;
|
|
215
|
-
amount?: InputMaybe<NumericComparisonExp>;
|
|
216
|
-
asset_type?: InputMaybe<StringComparisonExp>;
|
|
217
|
-
is_frozen?: InputMaybe<BooleanComparisonExp>;
|
|
218
|
-
is_primary?: InputMaybe<BooleanComparisonExp>;
|
|
219
|
-
last_transaction_timestamp?: InputMaybe<TimestampComparisonExp>;
|
|
220
|
-
last_transaction_version?: InputMaybe<BigintComparisonExp>;
|
|
221
|
-
metadata?: InputMaybe<FungibleAssetMetadataBoolExp>;
|
|
222
|
-
owner_address?: InputMaybe<StringComparisonExp>;
|
|
223
|
-
storage_id?: InputMaybe<StringComparisonExp>;
|
|
224
|
-
token_standard?: InputMaybe<StringComparisonExp>;
|
|
225
|
-
};
|
|
226
|
-
/** Boolean expression to filter rows from the table "events". All fields are combined with a logical 'AND'. */
|
|
227
|
-
type EventsBoolExp = {
|
|
228
|
-
_and?: InputMaybe<Array<EventsBoolExp>>;
|
|
229
|
-
_not?: InputMaybe<EventsBoolExp>;
|
|
230
|
-
_or?: InputMaybe<Array<EventsBoolExp>>;
|
|
231
|
-
account_address?: InputMaybe<StringComparisonExp>;
|
|
232
|
-
creation_number?: InputMaybe<BigintComparisonExp>;
|
|
233
|
-
data?: InputMaybe<JsonbComparisonExp>;
|
|
234
|
-
event_index?: InputMaybe<BigintComparisonExp>;
|
|
235
|
-
indexed_type?: InputMaybe<StringComparisonExp>;
|
|
236
|
-
sequence_number?: InputMaybe<BigintComparisonExp>;
|
|
237
|
-
transaction_block_height?: InputMaybe<BigintComparisonExp>;
|
|
238
|
-
transaction_version?: InputMaybe<BigintComparisonExp>;
|
|
239
|
-
type?: InputMaybe<StringComparisonExp>;
|
|
240
|
-
};
|
|
241
|
-
/** Boolean expression to filter rows from the table "fungible_asset_activities". All fields are combined with a logical 'AND'. */
|
|
242
|
-
type FungibleAssetActivitiesBoolExp = {
|
|
243
|
-
_and?: InputMaybe<Array<FungibleAssetActivitiesBoolExp>>;
|
|
244
|
-
_not?: InputMaybe<FungibleAssetActivitiesBoolExp>;
|
|
245
|
-
_or?: InputMaybe<Array<FungibleAssetActivitiesBoolExp>>;
|
|
246
|
-
amount?: InputMaybe<NumericComparisonExp>;
|
|
247
|
-
asset_type?: InputMaybe<StringComparisonExp>;
|
|
248
|
-
block_height?: InputMaybe<BigintComparisonExp>;
|
|
249
|
-
entry_function_id_str?: InputMaybe<StringComparisonExp>;
|
|
250
|
-
event_index?: InputMaybe<BigintComparisonExp>;
|
|
251
|
-
gas_fee_payer_address?: InputMaybe<StringComparisonExp>;
|
|
252
|
-
is_frozen?: InputMaybe<BooleanComparisonExp>;
|
|
253
|
-
is_gas_fee?: InputMaybe<BooleanComparisonExp>;
|
|
254
|
-
is_transaction_success?: InputMaybe<BooleanComparisonExp>;
|
|
255
|
-
metadata?: InputMaybe<FungibleAssetMetadataBoolExp>;
|
|
256
|
-
owner_address?: InputMaybe<StringComparisonExp>;
|
|
257
|
-
owner_aptos_names?: InputMaybe<CurrentAptosNamesBoolExp>;
|
|
258
|
-
owner_aptos_names_aggregate?: InputMaybe<CurrentAptosNamesAggregateBoolExp>;
|
|
259
|
-
storage_id?: InputMaybe<StringComparisonExp>;
|
|
260
|
-
storage_refund_amount?: InputMaybe<NumericComparisonExp>;
|
|
261
|
-
token_standard?: InputMaybe<StringComparisonExp>;
|
|
262
|
-
transaction_timestamp?: InputMaybe<TimestampComparisonExp>;
|
|
263
|
-
transaction_version?: InputMaybe<BigintComparisonExp>;
|
|
264
|
-
type?: InputMaybe<StringComparisonExp>;
|
|
265
|
-
};
|
|
266
|
-
/** Boolean expression to filter rows from the table "fungible_asset_metadata". All fields are combined with a logical 'AND'. */
|
|
267
|
-
type FungibleAssetMetadataBoolExp = {
|
|
268
|
-
_and?: InputMaybe<Array<FungibleAssetMetadataBoolExp>>;
|
|
269
|
-
_not?: InputMaybe<FungibleAssetMetadataBoolExp>;
|
|
270
|
-
_or?: InputMaybe<Array<FungibleAssetMetadataBoolExp>>;
|
|
271
|
-
asset_type?: InputMaybe<StringComparisonExp>;
|
|
272
|
-
creator_address?: InputMaybe<StringComparisonExp>;
|
|
273
|
-
decimals?: InputMaybe<IntComparisonExp>;
|
|
274
|
-
icon_uri?: InputMaybe<StringComparisonExp>;
|
|
275
|
-
last_transaction_timestamp?: InputMaybe<TimestampComparisonExp>;
|
|
276
|
-
last_transaction_version?: InputMaybe<BigintComparisonExp>;
|
|
277
|
-
name?: InputMaybe<StringComparisonExp>;
|
|
278
|
-
project_uri?: InputMaybe<StringComparisonExp>;
|
|
279
|
-
supply_aggregator_table_handle_v1?: InputMaybe<StringComparisonExp>;
|
|
280
|
-
supply_aggregator_table_key_v1?: InputMaybe<StringComparisonExp>;
|
|
281
|
-
symbol?: InputMaybe<StringComparisonExp>;
|
|
282
|
-
token_standard?: InputMaybe<StringComparisonExp>;
|
|
283
|
-
};
|
|
284
|
-
type JsonbCastExp = {
|
|
285
|
-
String?: InputMaybe<StringComparisonExp>;
|
|
286
|
-
};
|
|
287
|
-
/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */
|
|
288
|
-
type JsonbComparisonExp = {
|
|
289
|
-
_cast?: InputMaybe<JsonbCastExp>;
|
|
290
|
-
/** is the column contained in the given json value */
|
|
291
|
-
_contained_in?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
292
|
-
/** does the column contain the given json value at the top level */
|
|
293
|
-
_contains?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
294
|
-
_eq?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
295
|
-
_gt?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
296
|
-
_gte?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
297
|
-
/** does the string exist as a top-level key in the column */
|
|
298
|
-
_has_key?: InputMaybe<Scalars["String"]["input"]>;
|
|
299
|
-
/** do all of these strings exist as top-level keys in the column */
|
|
300
|
-
_has_keys_all?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
301
|
-
/** do any of these strings exist as top-level keys in the column */
|
|
302
|
-
_has_keys_any?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
303
|
-
_in?: InputMaybe<Array<Scalars["jsonb"]["input"]>>;
|
|
304
|
-
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
305
|
-
_lt?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
306
|
-
_lte?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
307
|
-
_neq?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
308
|
-
_nin?: InputMaybe<Array<Scalars["jsonb"]["input"]>>;
|
|
309
|
-
};
|
|
310
|
-
/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */
|
|
311
|
-
type NumericComparisonExp = {
|
|
312
|
-
_eq?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
313
|
-
_gt?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
314
|
-
_gte?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
315
|
-
_in?: InputMaybe<Array<Scalars["numeric"]["input"]>>;
|
|
316
|
-
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
317
|
-
_lt?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
318
|
-
_lte?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
319
|
-
_neq?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
320
|
-
_nin?: InputMaybe<Array<Scalars["numeric"]["input"]>>;
|
|
321
|
-
};
|
|
322
|
-
/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */
|
|
323
|
-
type TimestampComparisonExp = {
|
|
324
|
-
_eq?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
325
|
-
_gt?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
326
|
-
_gte?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
327
|
-
_in?: InputMaybe<Array<Scalars["timestamp"]["input"]>>;
|
|
328
|
-
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
329
|
-
_lt?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
330
|
-
_lte?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
331
|
-
_neq?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
332
|
-
_nin?: InputMaybe<Array<Scalars["timestamp"]["input"]>>;
|
|
333
|
-
};
|
|
334
|
-
|
|
335
|
-
type GetAccountCoinsDataQuery = {
|
|
336
|
-
current_fungible_asset_balances: Array<{
|
|
337
|
-
amount: any;
|
|
338
|
-
asset_type: string;
|
|
339
|
-
is_frozen: boolean;
|
|
340
|
-
is_primary: boolean;
|
|
341
|
-
last_transaction_timestamp: any;
|
|
342
|
-
last_transaction_version: any;
|
|
343
|
-
owner_address: string;
|
|
344
|
-
storage_id: string;
|
|
345
|
-
token_standard: string;
|
|
346
|
-
metadata?: {
|
|
347
|
-
token_standard: string;
|
|
348
|
-
symbol: string;
|
|
349
|
-
supply_aggregator_table_key_v1?: string | null;
|
|
350
|
-
supply_aggregator_table_handle_v1?: string | null;
|
|
351
|
-
project_uri?: string | null;
|
|
352
|
-
name: string;
|
|
353
|
-
last_transaction_version: any;
|
|
354
|
-
last_transaction_timestamp: any;
|
|
355
|
-
icon_uri?: string | null;
|
|
356
|
-
decimals: number;
|
|
357
|
-
creator_address: string;
|
|
358
|
-
asset_type: string;
|
|
359
|
-
} | null;
|
|
360
|
-
}>;
|
|
361
|
-
};
|
|
362
|
-
type GetAccountCollectionsWithOwnedTokensQuery = {
|
|
363
|
-
current_collection_ownership_v2_view: Array<{
|
|
364
|
-
collection_id?: string | null;
|
|
365
|
-
collection_name?: string | null;
|
|
366
|
-
collection_uri?: string | null;
|
|
367
|
-
creator_address?: string | null;
|
|
368
|
-
distinct_tokens?: any | null;
|
|
369
|
-
last_transaction_version?: any | null;
|
|
370
|
-
owner_address?: string | null;
|
|
371
|
-
single_token_uri?: string | null;
|
|
372
|
-
current_collection?: {
|
|
373
|
-
collection_id: string;
|
|
374
|
-
collection_name: string;
|
|
375
|
-
creator_address: string;
|
|
376
|
-
current_supply: any;
|
|
377
|
-
description: string;
|
|
378
|
-
last_transaction_timestamp: any;
|
|
379
|
-
last_transaction_version: any;
|
|
380
|
-
mutable_description?: boolean | null;
|
|
381
|
-
max_supply?: any | null;
|
|
382
|
-
mutable_uri?: boolean | null;
|
|
383
|
-
table_handle_v1?: string | null;
|
|
384
|
-
token_standard: string;
|
|
385
|
-
total_minted_v2?: any | null;
|
|
386
|
-
uri: string;
|
|
387
|
-
} | null;
|
|
388
|
-
}>;
|
|
389
|
-
};
|
|
390
|
-
type GetAccountOwnedObjectsQuery = {
|
|
391
|
-
current_objects: Array<{
|
|
392
|
-
allow_ungated_transfer: boolean;
|
|
393
|
-
state_key_hash: string;
|
|
394
|
-
owner_address: string;
|
|
395
|
-
object_address: string;
|
|
396
|
-
last_transaction_version: any;
|
|
397
|
-
last_guid_creation_num: any;
|
|
398
|
-
is_deleted: boolean;
|
|
399
|
-
}>;
|
|
400
|
-
};
|
|
401
|
-
type GetAccountOwnedTokensQuery = {
|
|
402
|
-
current_token_ownerships_v2: Array<{
|
|
403
|
-
token_standard: string;
|
|
404
|
-
token_properties_mutated_v1?: any | null;
|
|
405
|
-
token_data_id: string;
|
|
406
|
-
table_type_v1?: string | null;
|
|
407
|
-
storage_id: string;
|
|
408
|
-
property_version_v1: any;
|
|
409
|
-
owner_address: string;
|
|
410
|
-
last_transaction_version: any;
|
|
411
|
-
last_transaction_timestamp: any;
|
|
412
|
-
is_soulbound_v2?: boolean | null;
|
|
413
|
-
is_fungible_v2?: boolean | null;
|
|
414
|
-
amount: any;
|
|
415
|
-
current_token_data?: {
|
|
416
|
-
collection_id: string;
|
|
417
|
-
description: string;
|
|
418
|
-
is_fungible_v2?: boolean | null;
|
|
419
|
-
largest_property_version_v1?: any | null;
|
|
420
|
-
last_transaction_timestamp: any;
|
|
421
|
-
last_transaction_version: any;
|
|
422
|
-
maximum?: any | null;
|
|
423
|
-
supply: any;
|
|
424
|
-
token_data_id: string;
|
|
425
|
-
token_name: string;
|
|
426
|
-
token_properties: any;
|
|
427
|
-
token_standard: string;
|
|
428
|
-
token_uri: string;
|
|
429
|
-
decimals: any;
|
|
430
|
-
current_collection?: {
|
|
431
|
-
collection_id: string;
|
|
432
|
-
collection_name: string;
|
|
433
|
-
creator_address: string;
|
|
434
|
-
current_supply: any;
|
|
435
|
-
description: string;
|
|
436
|
-
last_transaction_timestamp: any;
|
|
437
|
-
last_transaction_version: any;
|
|
438
|
-
max_supply?: any | null;
|
|
439
|
-
mutable_description?: boolean | null;
|
|
440
|
-
mutable_uri?: boolean | null;
|
|
441
|
-
table_handle_v1?: string | null;
|
|
442
|
-
token_standard: string;
|
|
443
|
-
total_minted_v2?: any | null;
|
|
444
|
-
uri: string;
|
|
445
|
-
} | null;
|
|
446
|
-
} | null;
|
|
447
|
-
}>;
|
|
448
|
-
};
|
|
449
|
-
type GetAccountOwnedTokensFromCollectionQuery = {
|
|
450
|
-
current_token_ownerships_v2: Array<{
|
|
451
|
-
token_standard: string;
|
|
452
|
-
token_properties_mutated_v1?: any | null;
|
|
453
|
-
token_data_id: string;
|
|
454
|
-
table_type_v1?: string | null;
|
|
455
|
-
storage_id: string;
|
|
456
|
-
property_version_v1: any;
|
|
457
|
-
owner_address: string;
|
|
458
|
-
last_transaction_version: any;
|
|
459
|
-
last_transaction_timestamp: any;
|
|
460
|
-
is_soulbound_v2?: boolean | null;
|
|
461
|
-
is_fungible_v2?: boolean | null;
|
|
462
|
-
amount: any;
|
|
463
|
-
current_token_data?: {
|
|
464
|
-
collection_id: string;
|
|
465
|
-
description: string;
|
|
466
|
-
is_fungible_v2?: boolean | null;
|
|
467
|
-
largest_property_version_v1?: any | null;
|
|
468
|
-
last_transaction_timestamp: any;
|
|
469
|
-
last_transaction_version: any;
|
|
470
|
-
maximum?: any | null;
|
|
471
|
-
supply: any;
|
|
472
|
-
token_data_id: string;
|
|
473
|
-
token_name: string;
|
|
474
|
-
token_properties: any;
|
|
475
|
-
token_standard: string;
|
|
476
|
-
token_uri: string;
|
|
477
|
-
decimals: any;
|
|
478
|
-
current_collection?: {
|
|
479
|
-
collection_id: string;
|
|
480
|
-
collection_name: string;
|
|
481
|
-
creator_address: string;
|
|
482
|
-
current_supply: any;
|
|
483
|
-
description: string;
|
|
484
|
-
last_transaction_timestamp: any;
|
|
485
|
-
last_transaction_version: any;
|
|
486
|
-
max_supply?: any | null;
|
|
487
|
-
mutable_description?: boolean | null;
|
|
488
|
-
mutable_uri?: boolean | null;
|
|
489
|
-
table_handle_v1?: string | null;
|
|
490
|
-
token_standard: string;
|
|
491
|
-
total_minted_v2?: any | null;
|
|
492
|
-
uri: string;
|
|
493
|
-
} | null;
|
|
494
|
-
} | null;
|
|
495
|
-
}>;
|
|
496
|
-
};
|
|
497
|
-
type GetChainTopUserTransactionsQuery = {
|
|
498
|
-
user_transactions: Array<{
|
|
499
|
-
version: any;
|
|
500
|
-
}>;
|
|
501
|
-
};
|
|
502
|
-
type GetCollectionDataQuery = {
|
|
503
|
-
current_collections_v2: Array<{
|
|
504
|
-
collection_id: string;
|
|
505
|
-
collection_name: string;
|
|
506
|
-
creator_address: string;
|
|
507
|
-
current_supply: any;
|
|
508
|
-
description: string;
|
|
509
|
-
last_transaction_timestamp: any;
|
|
510
|
-
last_transaction_version: any;
|
|
511
|
-
max_supply?: any | null;
|
|
512
|
-
mutable_description?: boolean | null;
|
|
513
|
-
mutable_uri?: boolean | null;
|
|
514
|
-
table_handle_v1?: string | null;
|
|
515
|
-
token_standard: string;
|
|
516
|
-
total_minted_v2?: any | null;
|
|
517
|
-
uri: string;
|
|
518
|
-
}>;
|
|
519
|
-
};
|
|
520
|
-
type GetCurrentFungibleAssetBalancesQuery = {
|
|
521
|
-
current_fungible_asset_balances: Array<{
|
|
522
|
-
amount: any;
|
|
523
|
-
asset_type: string;
|
|
524
|
-
is_frozen: boolean;
|
|
525
|
-
is_primary: boolean;
|
|
526
|
-
last_transaction_timestamp: any;
|
|
527
|
-
last_transaction_version: any;
|
|
528
|
-
owner_address: string;
|
|
529
|
-
storage_id: string;
|
|
530
|
-
token_standard: string;
|
|
531
|
-
}>;
|
|
532
|
-
};
|
|
533
|
-
type GetDelegatedStakingActivitiesQuery = {
|
|
534
|
-
delegated_staking_activities: Array<{
|
|
535
|
-
amount: any;
|
|
536
|
-
delegator_address: string;
|
|
537
|
-
event_index: any;
|
|
538
|
-
event_type: string;
|
|
539
|
-
pool_address: string;
|
|
540
|
-
transaction_version: any;
|
|
541
|
-
}>;
|
|
542
|
-
};
|
|
543
|
-
type GetEventsQuery = {
|
|
544
|
-
events: Array<{
|
|
545
|
-
account_address: string;
|
|
546
|
-
creation_number: any;
|
|
547
|
-
data: any;
|
|
548
|
-
event_index: any;
|
|
549
|
-
sequence_number: any;
|
|
550
|
-
transaction_block_height: any;
|
|
551
|
-
transaction_version: any;
|
|
552
|
-
type: string;
|
|
553
|
-
indexed_type: string;
|
|
554
|
-
}>;
|
|
555
|
-
};
|
|
556
|
-
type GetFungibleAssetActivitiesQuery = {
|
|
557
|
-
fungible_asset_activities: Array<{
|
|
558
|
-
amount?: any | null;
|
|
559
|
-
asset_type: string;
|
|
560
|
-
block_height: any;
|
|
561
|
-
entry_function_id_str?: string | null;
|
|
562
|
-
event_index: any;
|
|
563
|
-
gas_fee_payer_address?: string | null;
|
|
564
|
-
is_frozen?: boolean | null;
|
|
565
|
-
is_gas_fee: boolean;
|
|
566
|
-
is_transaction_success: boolean;
|
|
567
|
-
owner_address: string;
|
|
568
|
-
storage_id: string;
|
|
569
|
-
storage_refund_amount: any;
|
|
570
|
-
token_standard: string;
|
|
571
|
-
transaction_timestamp: any;
|
|
572
|
-
transaction_version: any;
|
|
573
|
-
type: string;
|
|
574
|
-
}>;
|
|
575
|
-
};
|
|
576
|
-
type GetFungibleAssetMetadataQuery = {
|
|
577
|
-
fungible_asset_metadata: Array<{
|
|
578
|
-
icon_uri?: string | null;
|
|
579
|
-
project_uri?: string | null;
|
|
580
|
-
supply_aggregator_table_handle_v1?: string | null;
|
|
581
|
-
supply_aggregator_table_key_v1?: string | null;
|
|
582
|
-
creator_address: string;
|
|
583
|
-
asset_type: string;
|
|
584
|
-
decimals: number;
|
|
585
|
-
last_transaction_timestamp: any;
|
|
586
|
-
last_transaction_version: any;
|
|
587
|
-
name: string;
|
|
588
|
-
symbol: string;
|
|
589
|
-
token_standard: string;
|
|
590
|
-
}>;
|
|
591
|
-
};
|
|
592
|
-
type GetNamesQuery = {
|
|
593
|
-
current_aptos_names: Array<{
|
|
594
|
-
domain?: string | null;
|
|
595
|
-
expiration_timestamp?: any | null;
|
|
596
|
-
registered_address?: string | null;
|
|
597
|
-
subdomain?: string | null;
|
|
598
|
-
token_standard?: string | null;
|
|
599
|
-
is_primary?: boolean | null;
|
|
600
|
-
owner_address?: string | null;
|
|
601
|
-
}>;
|
|
602
|
-
};
|
|
603
|
-
type GetNumberOfDelegatorsQuery = {
|
|
604
|
-
num_active_delegator_per_pool: Array<{
|
|
605
|
-
num_active_delegator?: any | null;
|
|
606
|
-
pool_address?: string | null;
|
|
607
|
-
}>;
|
|
608
|
-
};
|
|
609
|
-
type GetProcessorStatusQuery = {
|
|
610
|
-
processor_status: Array<{
|
|
611
|
-
last_success_version: any;
|
|
612
|
-
processor: string;
|
|
613
|
-
last_updated: any;
|
|
614
|
-
}>;
|
|
615
|
-
};
|
|
616
|
-
type GetTokenActivityQuery = {
|
|
617
|
-
token_activities_v2: Array<{
|
|
618
|
-
after_value?: string | null;
|
|
619
|
-
before_value?: string | null;
|
|
620
|
-
entry_function_id_str?: string | null;
|
|
621
|
-
event_account_address: string;
|
|
622
|
-
event_index: any;
|
|
623
|
-
from_address?: string | null;
|
|
624
|
-
is_fungible_v2?: boolean | null;
|
|
625
|
-
property_version_v1: any;
|
|
626
|
-
to_address?: string | null;
|
|
627
|
-
token_amount: any;
|
|
628
|
-
token_data_id: string;
|
|
629
|
-
token_standard: string;
|
|
630
|
-
transaction_timestamp: any;
|
|
631
|
-
transaction_version: any;
|
|
632
|
-
type: string;
|
|
633
|
-
}>;
|
|
634
|
-
};
|
|
635
|
-
type GetCurrentTokenOwnershipQuery = {
|
|
636
|
-
current_token_ownerships_v2: Array<{
|
|
637
|
-
token_standard: string;
|
|
638
|
-
token_properties_mutated_v1?: any | null;
|
|
639
|
-
token_data_id: string;
|
|
640
|
-
table_type_v1?: string | null;
|
|
641
|
-
storage_id: string;
|
|
642
|
-
property_version_v1: any;
|
|
643
|
-
owner_address: string;
|
|
644
|
-
last_transaction_version: any;
|
|
645
|
-
last_transaction_timestamp: any;
|
|
646
|
-
is_soulbound_v2?: boolean | null;
|
|
647
|
-
is_fungible_v2?: boolean | null;
|
|
648
|
-
amount: any;
|
|
649
|
-
current_token_data?: {
|
|
650
|
-
collection_id: string;
|
|
651
|
-
description: string;
|
|
652
|
-
is_fungible_v2?: boolean | null;
|
|
653
|
-
largest_property_version_v1?: any | null;
|
|
654
|
-
last_transaction_timestamp: any;
|
|
655
|
-
last_transaction_version: any;
|
|
656
|
-
maximum?: any | null;
|
|
657
|
-
supply: any;
|
|
658
|
-
token_data_id: string;
|
|
659
|
-
token_name: string;
|
|
660
|
-
token_properties: any;
|
|
661
|
-
token_standard: string;
|
|
662
|
-
token_uri: string;
|
|
663
|
-
decimals: any;
|
|
664
|
-
current_collection?: {
|
|
665
|
-
collection_id: string;
|
|
666
|
-
collection_name: string;
|
|
667
|
-
creator_address: string;
|
|
668
|
-
current_supply: any;
|
|
669
|
-
description: string;
|
|
670
|
-
last_transaction_timestamp: any;
|
|
671
|
-
last_transaction_version: any;
|
|
672
|
-
max_supply?: any | null;
|
|
673
|
-
mutable_description?: boolean | null;
|
|
674
|
-
mutable_uri?: boolean | null;
|
|
675
|
-
table_handle_v1?: string | null;
|
|
676
|
-
token_standard: string;
|
|
677
|
-
total_minted_v2?: any | null;
|
|
678
|
-
uri: string;
|
|
679
|
-
} | null;
|
|
680
|
-
} | null;
|
|
681
|
-
}>;
|
|
682
|
-
};
|
|
683
|
-
type GetTokenDataQuery = {
|
|
684
|
-
current_token_datas_v2: Array<{
|
|
685
|
-
collection_id: string;
|
|
686
|
-
description: string;
|
|
687
|
-
is_fungible_v2?: boolean | null;
|
|
688
|
-
largest_property_version_v1?: any | null;
|
|
689
|
-
last_transaction_timestamp: any;
|
|
690
|
-
last_transaction_version: any;
|
|
691
|
-
maximum?: any | null;
|
|
692
|
-
supply: any;
|
|
693
|
-
token_data_id: string;
|
|
694
|
-
token_name: string;
|
|
695
|
-
token_properties: any;
|
|
696
|
-
token_standard: string;
|
|
697
|
-
token_uri: string;
|
|
698
|
-
decimals: any;
|
|
699
|
-
current_collection?: {
|
|
700
|
-
collection_id: string;
|
|
701
|
-
collection_name: string;
|
|
702
|
-
creator_address: string;
|
|
703
|
-
current_supply: any;
|
|
704
|
-
description: string;
|
|
705
|
-
last_transaction_timestamp: any;
|
|
706
|
-
last_transaction_version: any;
|
|
707
|
-
max_supply?: any | null;
|
|
708
|
-
mutable_description?: boolean | null;
|
|
709
|
-
mutable_uri?: boolean | null;
|
|
710
|
-
table_handle_v1?: string | null;
|
|
711
|
-
token_standard: string;
|
|
712
|
-
total_minted_v2?: any | null;
|
|
713
|
-
uri: string;
|
|
714
|
-
} | null;
|
|
715
|
-
}>;
|
|
716
|
-
};
|
|
717
|
-
|
|
718
|
-
/**
|
|
719
|
-
* GENERATED QUERY TYPES FROM GRAPHQL SCHEMA
|
|
720
|
-
*
|
|
721
|
-
* generated types we generate from graphql schema that match the structure of the
|
|
722
|
-
* response type when querying from Hasura schema.
|
|
723
|
-
*
|
|
724
|
-
* These types are used as the return type when making the actual request (usually
|
|
725
|
-
* under the /internal/ folder)
|
|
726
|
-
*/
|
|
727
|
-
|
|
728
|
-
/**
|
|
729
|
-
* CUSTOM RESPONSE TYPES FOR THE END USER
|
|
730
|
-
*
|
|
731
|
-
* To provide a good dev exp, we build custom types derived from the
|
|
732
|
-
* query types to be the response type the end developer/user will
|
|
733
|
-
* work with.
|
|
734
|
-
*
|
|
735
|
-
* These types are used as the return type when calling a sdk api function
|
|
736
|
-
* that calls the function that queries the server (usually under the /api/ folder)
|
|
737
|
-
*/
|
|
738
|
-
type GetAccountOwnedObjectsResponse = GetAccountOwnedObjectsQuery["current_objects"];
|
|
739
|
-
type GetAccountOwnedTokensQueryResponse = GetAccountOwnedTokensQuery["current_token_ownerships_v2"];
|
|
740
|
-
type GetAccountOwnedTokensFromCollectionResponse = GetAccountOwnedTokensFromCollectionQuery["current_token_ownerships_v2"];
|
|
741
|
-
type GetAccountCollectionsWithOwnedTokenResponse = GetAccountCollectionsWithOwnedTokensQuery["current_collection_ownership_v2_view"];
|
|
742
|
-
type GetAccountCoinsDataResponse = GetAccountCoinsDataQuery["current_fungible_asset_balances"];
|
|
743
|
-
type GetChainTopUserTransactionsResponse = GetChainTopUserTransactionsQuery["user_transactions"];
|
|
744
|
-
type GetEventsResponse = GetEventsQuery["events"];
|
|
745
|
-
type GetNumberOfDelegatorsResponse = GetNumberOfDelegatorsQuery["num_active_delegator_per_pool"];
|
|
746
|
-
type GetDelegatedStakingActivitiesResponse = GetDelegatedStakingActivitiesQuery["delegated_staking_activities"];
|
|
747
|
-
type GetCollectionDataResponse = GetCollectionDataQuery["current_collections_v2"][0];
|
|
748
|
-
type GetTokenDataResponse = GetTokenDataQuery["current_token_datas_v2"][0];
|
|
749
|
-
type GetProcessorStatusResponse = GetProcessorStatusQuery["processor_status"];
|
|
750
|
-
type GetFungibleAssetMetadataResponse = GetFungibleAssetMetadataQuery["fungible_asset_metadata"];
|
|
751
|
-
type GetFungibleAssetActivitiesResponse = GetFungibleAssetActivitiesQuery["fungible_asset_activities"];
|
|
752
|
-
type GetCurrentFungibleAssetBalancesResponse = GetCurrentFungibleAssetBalancesQuery["current_fungible_asset_balances"];
|
|
753
|
-
type GetTokenActivityResponse = GetTokenActivityQuery["token_activities_v2"];
|
|
754
|
-
type GetCurrentTokenOwnershipResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"][0];
|
|
755
|
-
type GetOwnedTokensResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"];
|
|
756
|
-
type GetANSNameResponse = GetNamesQuery["current_aptos_names"];
|
|
757
|
-
/**
|
|
758
|
-
* A generic type that being passed by each function and holds an
|
|
759
|
-
* array of properties we can sort the query by
|
|
760
|
-
*/
|
|
761
|
-
type OrderBy<T> = Array<{
|
|
762
|
-
[K in keyof T]?: OrderByValue;
|
|
763
|
-
}>;
|
|
764
|
-
type OrderByValue = "asc" | "asc_nulls_first" | "asc_nulls_last" | "desc" | "desc_nulls_first" | "desc_nulls_last";
|
|
765
|
-
/**
|
|
766
|
-
* Refers to the token standard we want to query for
|
|
767
|
-
*/
|
|
768
|
-
type TokenStandard = "v1" | "v2";
|
|
769
|
-
/**
|
|
770
|
-
* The graphql query type to pass into the `queryIndexer` function
|
|
771
|
-
*/
|
|
772
|
-
type GraphqlQuery = {
|
|
773
|
-
query: string;
|
|
774
|
-
variables?: {};
|
|
775
|
-
};
|
|
776
|
-
|
|
777
|
-
declare enum MimeType {
|
|
778
|
-
/**
|
|
779
|
-
* JSON representation, used for transaction submission and accept type JSON output
|
|
780
|
-
*/
|
|
781
|
-
JSON = "application/json",
|
|
782
|
-
/**
|
|
783
|
-
* BCS representation, used for accept type BCS output
|
|
784
|
-
*/
|
|
785
|
-
BCS = "application/x-bcs",
|
|
786
|
-
/**
|
|
787
|
-
* BCS representation, used for transaction submission in BCS input
|
|
788
|
-
*/
|
|
789
|
-
BCS_SIGNED_TRANSACTION = "application/x.aptos.signed_transaction+bcs",
|
|
790
|
-
BCS_VIEW_FUNCTION = "application/x.aptos.view_function+bcs"
|
|
791
|
-
}
|
|
792
|
-
/**
|
|
793
|
-
* Hex data as input to a function
|
|
794
|
-
*/
|
|
795
|
-
type HexInput = string | Uint8Array;
|
|
796
|
-
/**
|
|
797
|
-
* TypeTag enum as they are represented in Rust
|
|
798
|
-
* {@link https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/language_storage.rs#L27}
|
|
799
|
-
*/
|
|
800
|
-
declare enum TypeTagVariants {
|
|
801
|
-
Bool = 0,
|
|
802
|
-
U8 = 1,
|
|
803
|
-
U64 = 2,
|
|
804
|
-
U128 = 3,
|
|
805
|
-
Address = 4,
|
|
806
|
-
Signer = 5,
|
|
807
|
-
Vector = 6,
|
|
808
|
-
Struct = 7,
|
|
809
|
-
U16 = 8,
|
|
810
|
-
U32 = 9,
|
|
811
|
-
U256 = 10,
|
|
812
|
-
Reference = 254,// This is specifically a placeholder and does not represent a real type
|
|
813
|
-
Generic = 255
|
|
814
|
-
}
|
|
815
|
-
/**
|
|
816
|
-
* Script transaction arguments enum as they are represented in Rust
|
|
817
|
-
* {@link https://github.com/aptos-labs/aptos-core/blob/main/third_party/move/move-core/types/src/transaction_argument.rs#L11}
|
|
818
|
-
*/
|
|
819
|
-
declare enum ScriptTransactionArgumentVariants {
|
|
820
|
-
U8 = 0,
|
|
821
|
-
U64 = 1,
|
|
822
|
-
U128 = 2,
|
|
823
|
-
Address = 3,
|
|
824
|
-
U8Vector = 4,
|
|
825
|
-
Bool = 5,
|
|
826
|
-
U16 = 6,
|
|
827
|
-
U32 = 7,
|
|
828
|
-
U256 = 8
|
|
829
|
-
}
|
|
830
|
-
/**
|
|
831
|
-
* Transaction payload enum as they are represented in Rust
|
|
832
|
-
* {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/mod.rs#L478}
|
|
833
|
-
*/
|
|
834
|
-
declare enum TransactionPayloadVariants {
|
|
835
|
-
Script = 0,
|
|
836
|
-
EntryFunction = 2,
|
|
837
|
-
Multisig = 3
|
|
838
|
-
}
|
|
839
|
-
/**
|
|
840
|
-
* Transaction variants enum as they are represented in Rust
|
|
841
|
-
* {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/mod.rs#L440}
|
|
842
|
-
*/
|
|
843
|
-
declare enum TransactionVariants {
|
|
844
|
-
MultiAgentTransaction = 0,
|
|
845
|
-
FeePayerTransaction = 1
|
|
846
|
-
}
|
|
847
|
-
/**
|
|
848
|
-
* Transaction Authenticator enum as they are represented in Rust
|
|
849
|
-
* {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/authenticator.rs#L44}
|
|
850
|
-
*/
|
|
851
|
-
declare enum TransactionAuthenticatorVariant {
|
|
852
|
-
Ed25519 = 0,
|
|
853
|
-
MultiEd25519 = 1,
|
|
854
|
-
MultiAgent = 2,
|
|
855
|
-
FeePayer = 3,
|
|
856
|
-
SingleSender = 4
|
|
857
|
-
}
|
|
858
|
-
/**
|
|
859
|
-
* Transaction Authenticator enum as they are represented in Rust
|
|
860
|
-
* {@link https://github.com/aptos-labs/aptos-core/blob/main/types/src/transaction/authenticator.rs#L414}
|
|
861
|
-
*/
|
|
862
|
-
declare enum AccountAuthenticatorVariant {
|
|
863
|
-
Ed25519 = 0,
|
|
864
|
-
MultiEd25519 = 1,
|
|
865
|
-
SingleKey = 2,
|
|
866
|
-
MultiKey = 3
|
|
867
|
-
}
|
|
868
|
-
declare enum AnyPublicKeyVariant {
|
|
869
|
-
Ed25519 = 0,
|
|
870
|
-
Secp256k1 = 1
|
|
871
|
-
}
|
|
872
|
-
declare enum AnySignatureVariant {
|
|
873
|
-
Ed25519 = 0,
|
|
874
|
-
Secp256k1 = 1
|
|
875
|
-
}
|
|
876
|
-
/**
|
|
877
|
-
* BCS types
|
|
878
|
-
*/
|
|
879
|
-
type Uint8 = number;
|
|
880
|
-
type Uint16 = number;
|
|
881
|
-
type Uint32 = number;
|
|
882
|
-
type Uint64 = bigint;
|
|
883
|
-
type Uint128 = bigint;
|
|
884
|
-
type Uint256 = bigint;
|
|
885
|
-
type AnyNumber = number | bigint;
|
|
886
|
-
/**
|
|
887
|
-
* Set of configuration options that can be provided when initializing the SDK.
|
|
888
|
-
* The purpose of these options is to configure various aspects of the SDK's
|
|
889
|
-
* behavior and interaction with the Aptos network
|
|
890
|
-
*/
|
|
891
|
-
type AptosSettings = {
|
|
892
|
-
readonly network?: Network;
|
|
893
|
-
readonly fullnode?: string;
|
|
894
|
-
readonly faucet?: string;
|
|
895
|
-
readonly indexer?: string;
|
|
896
|
-
readonly clientConfig?: ClientConfig;
|
|
897
|
-
readonly client?: Client;
|
|
898
|
-
readonly fullnodeConfig?: FullNodeConfig;
|
|
899
|
-
readonly indexerConfig?: IndexerConfig;
|
|
900
|
-
readonly faucetConfig?: FaucetConfig;
|
|
901
|
-
};
|
|
902
|
-
/**
|
|
903
|
-
*
|
|
904
|
-
* Controls the number of results that are returned and the starting position of those results.
|
|
905
|
-
* @param offset parameter specifies the starting position of the query result within the set of data. Default is 0.
|
|
906
|
-
* @param limit specifies the maximum number of items or records to return in a query result. Default is 25.
|
|
907
|
-
*/
|
|
908
|
-
interface PaginationArgs {
|
|
909
|
-
offset?: AnyNumber;
|
|
910
|
-
limit?: number;
|
|
911
|
-
}
|
|
912
|
-
interface TokenStandardArg {
|
|
913
|
-
tokenStandard?: TokenStandard;
|
|
914
|
-
}
|
|
915
|
-
interface OrderByArg<T extends {}> {
|
|
916
|
-
orderBy?: OrderBy<T>;
|
|
917
|
-
}
|
|
918
|
-
interface WhereArg<T extends {}> {
|
|
919
|
-
where?: T;
|
|
920
|
-
}
|
|
921
|
-
/**
|
|
922
|
-
* QUERY TYPES
|
|
923
|
-
*/
|
|
924
|
-
/**
|
|
925
|
-
* A configuration object we can pass with the request to the server.
|
|
926
|
-
*
|
|
927
|
-
* @param API_KEY - api key generated from developer portal {@link https://developers.aptoslabs.com/manage/api-keys}}
|
|
928
|
-
* @param HEADERS - extra headers we want to send with the request
|
|
929
|
-
* @param WITH_CREDENTIALS - whether to carry cookies. By default, it is set to true and cookies will be sent
|
|
930
|
-
*/
|
|
931
|
-
type ClientConfig = ClientHeadersType & {
|
|
932
|
-
WITH_CREDENTIALS?: boolean;
|
|
933
|
-
API_KEY?: string;
|
|
934
|
-
};
|
|
935
|
-
/**
|
|
936
|
-
* A Fullnode only configuration object
|
|
937
|
-
*
|
|
938
|
-
* @param HEADERS - extra headers we want to send with the request
|
|
939
|
-
*/
|
|
940
|
-
type FullNodeConfig = ClientHeadersType;
|
|
941
|
-
/**
|
|
942
|
-
* An Indexer only configuration object
|
|
943
|
-
*
|
|
944
|
-
* @param HEADERS - extra headers we want to send with the request
|
|
945
|
-
*/
|
|
946
|
-
type IndexerConfig = ClientHeadersType;
|
|
947
|
-
/**
|
|
948
|
-
* A Faucet only configuration object
|
|
949
|
-
*
|
|
950
|
-
* @param HEADERS - extra headers we want to send with the request
|
|
951
|
-
* @param AUTH_TOKEN - an auth token to send with a faucet request
|
|
952
|
-
*/
|
|
953
|
-
type FaucetConfig = ClientHeadersType & {
|
|
954
|
-
AUTH_TOKEN?: string;
|
|
955
|
-
};
|
|
956
|
-
/**
|
|
957
|
-
* General type definition for client HEADERS
|
|
958
|
-
*/
|
|
959
|
-
type ClientHeadersType = {
|
|
960
|
-
HEADERS?: Record<string, string | number | boolean>;
|
|
961
|
-
};
|
|
962
|
-
interface ClientRequest<Req> {
|
|
963
|
-
url: string;
|
|
964
|
-
method: "GET" | "POST";
|
|
965
|
-
originMethod?: string;
|
|
966
|
-
body?: Req;
|
|
967
|
-
contentType?: string;
|
|
968
|
-
params?: any;
|
|
969
|
-
overrides?: ClientConfig & FullNodeConfig & IndexerConfig & FaucetConfig;
|
|
970
|
-
headers?: Record<string, any>;
|
|
971
|
-
}
|
|
972
|
-
interface ClientResponse<Res> {
|
|
973
|
-
status: number;
|
|
974
|
-
statusText: string;
|
|
975
|
-
data: Res;
|
|
976
|
-
config?: any;
|
|
977
|
-
request?: any;
|
|
978
|
-
response?: any;
|
|
979
|
-
headers?: any;
|
|
980
|
-
}
|
|
981
|
-
interface Client {
|
|
982
|
-
provider<Req, Res>(requestOptions: ClientRequest<Req>): Promise<ClientResponse<Res>>;
|
|
983
|
-
}
|
|
984
|
-
/**
|
|
985
|
-
* The API request type
|
|
986
|
-
*
|
|
987
|
-
* @param url - the url to make the request to, i.e https://fullnode.devnet.aptoslabs.com/v1
|
|
988
|
-
* @param method - the request method "GET" | "POST"
|
|
989
|
-
* @param endpoint (optional) - the endpoint to make the request to, i.e transactions
|
|
990
|
-
* @param body (optional) - the body of the request
|
|
991
|
-
* @param contentType (optional) - the content type to set the `content-type` header to,
|
|
992
|
-
* by default is set to `application/json`
|
|
993
|
-
* @param params (optional) - query params to add to the request
|
|
994
|
-
* @param originMethod (optional) - the local method the request came from
|
|
995
|
-
* @param overrides (optional) - a `ClientConfig` object type to override request data
|
|
996
|
-
*/
|
|
997
|
-
type AptosRequest = {
|
|
998
|
-
url: string;
|
|
999
|
-
method: "GET" | "POST";
|
|
1000
|
-
path?: string;
|
|
1001
|
-
body?: any;
|
|
1002
|
-
contentType?: string;
|
|
1003
|
-
acceptType?: string;
|
|
1004
|
-
params?: Record<string, string | AnyNumber | boolean | undefined>;
|
|
1005
|
-
originMethod?: string;
|
|
1006
|
-
overrides?: ClientConfig & FullNodeConfig & IndexerConfig & FaucetConfig;
|
|
1007
|
-
};
|
|
1008
|
-
/**
|
|
1009
|
-
* Specifies ledger version of transactions. By default latest version will be used
|
|
1010
|
-
*/
|
|
1011
|
-
type LedgerVersionArg = {
|
|
1012
|
-
ledgerVersion?: AnyNumber;
|
|
1013
|
-
};
|
|
1014
|
-
/**
|
|
1015
|
-
* RESPONSE TYPES
|
|
1016
|
-
*/
|
|
1017
|
-
/**
|
|
1018
|
-
* Type holding the outputs of the estimate gas API
|
|
1019
|
-
*/
|
|
1020
|
-
type GasEstimation = {
|
|
1021
|
-
/**
|
|
1022
|
-
* The deprioritized estimate for the gas unit price
|
|
1023
|
-
*/
|
|
1024
|
-
deprioritized_gas_estimate?: number;
|
|
1025
|
-
/**
|
|
1026
|
-
* The current estimate for the gas unit price
|
|
1027
|
-
*/
|
|
1028
|
-
gas_estimate: number;
|
|
1029
|
-
/**
|
|
1030
|
-
* The prioritized estimate for the gas unit price
|
|
1031
|
-
*/
|
|
1032
|
-
prioritized_gas_estimate?: number;
|
|
1033
|
-
};
|
|
1034
|
-
type MoveResource = {
|
|
1035
|
-
type: MoveStructId;
|
|
1036
|
-
data: {};
|
|
1037
|
-
};
|
|
1038
|
-
type AccountData = {
|
|
1039
|
-
sequence_number: string;
|
|
1040
|
-
authentication_key: string;
|
|
1041
|
-
};
|
|
1042
|
-
type MoveModuleBytecode = {
|
|
1043
|
-
bytecode: string;
|
|
1044
|
-
abi?: MoveModule;
|
|
1045
|
-
};
|
|
1046
|
-
/**
|
|
1047
|
-
* TRANSACTION TYPES
|
|
1048
|
-
*/
|
|
1049
|
-
declare enum TransactionResponseType {
|
|
1050
|
-
Pending = "pending_transaction",
|
|
1051
|
-
User = "user_transaction",
|
|
1052
|
-
Genesis = "genesis_transaction",
|
|
1053
|
-
BlockMetadata = "block_metadata_transaction",
|
|
1054
|
-
StateCheckpoint = "state_checkpoint_transaction",
|
|
1055
|
-
Validator = "validator_transaction"
|
|
1056
|
-
}
|
|
1057
|
-
type TransactionResponse = PendingTransactionResponse | CommittedTransactionResponse;
|
|
1058
|
-
type CommittedTransactionResponse = UserTransactionResponse | GenesisTransactionResponse | BlockMetadataTransactionResponse | StateCheckpointTransactionResponse | ValidatorTransactionResponse;
|
|
1059
|
-
declare function isPendingTransactionResponse(response: TransactionResponse): response is PendingTransactionResponse;
|
|
1060
|
-
declare function isUserTransactionResponse(response: TransactionResponse): response is UserTransactionResponse;
|
|
1061
|
-
declare function isGenesisTransactionResponse(response: TransactionResponse): response is GenesisTransactionResponse;
|
|
1062
|
-
declare function isBlockMetadataTransactionResponse(response: TransactionResponse): response is BlockMetadataTransactionResponse;
|
|
1063
|
-
declare function isStateCheckpointTransactionResponse(response: TransactionResponse): response is StateCheckpointTransactionResponse;
|
|
1064
|
-
declare function isValidatorTransactionResponse(response: TransactionResponse): response is ValidatorTransactionResponse;
|
|
1065
|
-
type PendingTransactionResponse = {
|
|
1066
|
-
type: TransactionResponseType.Pending;
|
|
1067
|
-
hash: string;
|
|
1068
|
-
sender: string;
|
|
1069
|
-
sequence_number: string;
|
|
1070
|
-
max_gas_amount: string;
|
|
1071
|
-
gas_unit_price: string;
|
|
1072
|
-
expiration_timestamp_secs: string;
|
|
1073
|
-
payload: TransactionPayloadResponse;
|
|
1074
|
-
signature?: TransactionSignature;
|
|
1075
|
-
};
|
|
1076
|
-
type UserTransactionResponse = {
|
|
1077
|
-
type: TransactionResponseType.User;
|
|
1078
|
-
version: string;
|
|
1079
|
-
hash: string;
|
|
1080
|
-
state_change_hash: string;
|
|
1081
|
-
event_root_hash: string;
|
|
1082
|
-
state_checkpoint_hash: string | null;
|
|
1083
|
-
gas_used: string;
|
|
1084
|
-
/**
|
|
1085
|
-
* Whether the transaction was successful
|
|
1086
|
-
*/
|
|
1087
|
-
success: boolean;
|
|
1088
|
-
/**
|
|
1089
|
-
* The VM status of the transaction, can tell useful information in a failure
|
|
1090
|
-
*/
|
|
1091
|
-
vm_status: string;
|
|
1092
|
-
accumulator_root_hash: string;
|
|
1093
|
-
/**
|
|
1094
|
-
* Final state of resources changed by the transaction
|
|
1095
|
-
*/
|
|
1096
|
-
changes: Array<WriteSetChange>;
|
|
1097
|
-
sender: string;
|
|
1098
|
-
sequence_number: string;
|
|
1099
|
-
max_gas_amount: string;
|
|
1100
|
-
gas_unit_price: string;
|
|
1101
|
-
expiration_timestamp_secs: string;
|
|
1102
|
-
payload: TransactionPayloadResponse;
|
|
1103
|
-
signature?: TransactionSignature;
|
|
1104
|
-
/**
|
|
1105
|
-
* Events generated by the transaction
|
|
1106
|
-
*/
|
|
1107
|
-
events: Array<Event$1>;
|
|
1108
|
-
timestamp: string;
|
|
1109
|
-
};
|
|
1110
|
-
type GenesisTransactionResponse = {
|
|
1111
|
-
type: TransactionResponseType.Genesis;
|
|
1112
|
-
version: string;
|
|
1113
|
-
hash: string;
|
|
1114
|
-
state_change_hash: string;
|
|
1115
|
-
event_root_hash: string;
|
|
1116
|
-
state_checkpoint_hash?: string;
|
|
1117
|
-
gas_used: string;
|
|
1118
|
-
/**
|
|
1119
|
-
* Whether the transaction was successful
|
|
1120
|
-
*/
|
|
1121
|
-
success: boolean;
|
|
1122
|
-
/**
|
|
1123
|
-
* The VM status of the transaction, can tell useful information in a failure
|
|
1124
|
-
*/
|
|
1125
|
-
vm_status: string;
|
|
1126
|
-
accumulator_root_hash: string;
|
|
1127
|
-
/**
|
|
1128
|
-
* Final state of resources changed by the transaction
|
|
1129
|
-
*/
|
|
1130
|
-
changes: Array<WriteSetChange>;
|
|
1131
|
-
payload: GenesisPayload;
|
|
1132
|
-
/**
|
|
1133
|
-
* Events emitted during genesis
|
|
1134
|
-
*/
|
|
1135
|
-
events: Array<Event$1>;
|
|
1136
|
-
};
|
|
1137
|
-
type BlockMetadataTransactionResponse = {
|
|
1138
|
-
type: TransactionResponseType.BlockMetadata;
|
|
1139
|
-
version: string;
|
|
1140
|
-
hash: string;
|
|
1141
|
-
state_change_hash: string;
|
|
1142
|
-
event_root_hash: string;
|
|
1143
|
-
state_checkpoint_hash: string | null;
|
|
1144
|
-
gas_used: string;
|
|
1145
|
-
/**
|
|
1146
|
-
* Whether the transaction was successful
|
|
1147
|
-
*/
|
|
1148
|
-
success: boolean;
|
|
1149
|
-
/**
|
|
1150
|
-
* The VM status of the transaction, can tell useful information in a failure
|
|
1151
|
-
*/
|
|
1152
|
-
vm_status: string;
|
|
1153
|
-
accumulator_root_hash: string;
|
|
1154
|
-
/**
|
|
1155
|
-
* Final state of resources changed by the transaction
|
|
1156
|
-
*/
|
|
1157
|
-
changes: Array<WriteSetChange>;
|
|
1158
|
-
id: string;
|
|
1159
|
-
epoch: string;
|
|
1160
|
-
round: string;
|
|
1161
|
-
/**
|
|
1162
|
-
* The events emitted at the block creation
|
|
1163
|
-
*/
|
|
1164
|
-
events: Array<Event$1>;
|
|
1165
|
-
/**
|
|
1166
|
-
* Previous block votes
|
|
1167
|
-
*/
|
|
1168
|
-
previous_block_votes_bitvec: Array<number>;
|
|
1169
|
-
proposer: string;
|
|
1170
|
-
/**
|
|
1171
|
-
* The indices of the proposers who failed to propose
|
|
1172
|
-
*/
|
|
1173
|
-
failed_proposer_indices: Array<number>;
|
|
1174
|
-
timestamp: string;
|
|
1175
|
-
};
|
|
1176
|
-
type StateCheckpointTransactionResponse = {
|
|
1177
|
-
type: TransactionResponseType.StateCheckpoint;
|
|
1178
|
-
version: string;
|
|
1179
|
-
hash: string;
|
|
1180
|
-
state_change_hash: string;
|
|
1181
|
-
event_root_hash: string;
|
|
1182
|
-
state_checkpoint_hash: string | null;
|
|
1183
|
-
gas_used: string;
|
|
1184
|
-
/**
|
|
1185
|
-
* Whether the transaction was successful
|
|
1186
|
-
*/
|
|
1187
|
-
success: boolean;
|
|
1188
|
-
/**
|
|
1189
|
-
* The VM status of the transaction, can tell useful information in a failure
|
|
1190
|
-
*/
|
|
1191
|
-
vm_status: string;
|
|
1192
|
-
accumulator_root_hash: string;
|
|
1193
|
-
/**
|
|
1194
|
-
* Final state of resources changed by the transaction
|
|
1195
|
-
*/
|
|
1196
|
-
changes: Array<WriteSetChange>;
|
|
1197
|
-
timestamp: string;
|
|
1198
|
-
};
|
|
1199
|
-
type ValidatorTransactionResponse = {
|
|
1200
|
-
type: TransactionResponseType.Validator;
|
|
1201
|
-
version: string;
|
|
1202
|
-
hash: string;
|
|
1203
|
-
state_change_hash: string;
|
|
1204
|
-
event_root_hash: string;
|
|
1205
|
-
state_checkpoint_hash: string | null;
|
|
1206
|
-
gas_used: string;
|
|
1207
|
-
/**
|
|
1208
|
-
* Whether the transaction was successful
|
|
1209
|
-
*/
|
|
1210
|
-
success: boolean;
|
|
1211
|
-
/**
|
|
1212
|
-
* The VM status of the transaction, can tell useful information in a failure
|
|
1213
|
-
*/
|
|
1214
|
-
vm_status: string;
|
|
1215
|
-
accumulator_root_hash: string;
|
|
1216
|
-
/**
|
|
1217
|
-
* Final state of resources changed by the transaction
|
|
1218
|
-
*/
|
|
1219
|
-
changes: Array<WriteSetChange>;
|
|
1220
|
-
/**
|
|
1221
|
-
* The events emitted by the validator transaction
|
|
1222
|
-
*/
|
|
1223
|
-
events: Array<Event$1>;
|
|
1224
|
-
timestamp: string;
|
|
1225
|
-
};
|
|
1226
|
-
/**
|
|
1227
|
-
* WRITESET CHANGE TYPES
|
|
1228
|
-
*/
|
|
1229
|
-
type WriteSetChange = WriteSetChangeDeleteModule | WriteSetChangeDeleteResource | WriteSetChangeDeleteTableItem | WriteSetChangeWriteModule | WriteSetChangeWriteResource | WriteSetChangeWriteTableItem;
|
|
1230
|
-
type WriteSetChangeDeleteModule = {
|
|
1231
|
-
type: string;
|
|
1232
|
-
address: string;
|
|
1233
|
-
/**
|
|
1234
|
-
* State key hash
|
|
1235
|
-
*/
|
|
1236
|
-
state_key_hash: string;
|
|
1237
|
-
module: MoveModuleId;
|
|
1238
|
-
};
|
|
1239
|
-
type WriteSetChangeDeleteResource = {
|
|
1240
|
-
type: string;
|
|
1241
|
-
address: string;
|
|
1242
|
-
state_key_hash: string;
|
|
1243
|
-
resource: string;
|
|
1244
|
-
};
|
|
1245
|
-
type WriteSetChangeDeleteTableItem = {
|
|
1246
|
-
type: string;
|
|
1247
|
-
state_key_hash: string;
|
|
1248
|
-
handle: string;
|
|
1249
|
-
key: string;
|
|
1250
|
-
data?: DeletedTableData;
|
|
1251
|
-
};
|
|
1252
|
-
type WriteSetChangeWriteModule = {
|
|
1253
|
-
type: string;
|
|
1254
|
-
address: string;
|
|
1255
|
-
state_key_hash: string;
|
|
1256
|
-
data: MoveModuleBytecode;
|
|
1257
|
-
};
|
|
1258
|
-
type WriteSetChangeWriteResource = {
|
|
1259
|
-
type: string;
|
|
1260
|
-
address: string;
|
|
1261
|
-
state_key_hash: string;
|
|
1262
|
-
data: MoveResource;
|
|
1263
|
-
};
|
|
1264
|
-
type WriteSetChangeWriteTableItem = {
|
|
1265
|
-
type: string;
|
|
1266
|
-
state_key_hash: string;
|
|
1267
|
-
handle: string;
|
|
1268
|
-
key: string;
|
|
1269
|
-
value: string;
|
|
1270
|
-
data?: DecodedTableData;
|
|
1271
|
-
};
|
|
1272
|
-
type DecodedTableData = {
|
|
1273
|
-
/**
|
|
1274
|
-
* Key of table in JSON
|
|
1275
|
-
*/
|
|
1276
|
-
key: any;
|
|
1277
|
-
/**
|
|
1278
|
-
* Type of key
|
|
1279
|
-
*/
|
|
1280
|
-
key_type: string;
|
|
1281
|
-
/**
|
|
1282
|
-
* Value of table in JSON
|
|
1283
|
-
*/
|
|
1284
|
-
value: any;
|
|
1285
|
-
/**
|
|
1286
|
-
* Type of value
|
|
1287
|
-
*/
|
|
1288
|
-
value_type: string;
|
|
1289
|
-
};
|
|
1290
|
-
/**
|
|
1291
|
-
* Deleted table data
|
|
1292
|
-
*/
|
|
1293
|
-
type DeletedTableData = {
|
|
1294
|
-
/**
|
|
1295
|
-
* Deleted key
|
|
1296
|
-
*/
|
|
1297
|
-
key: any;
|
|
1298
|
-
/**
|
|
1299
|
-
* Deleted key type
|
|
1300
|
-
*/
|
|
1301
|
-
key_type: string;
|
|
1302
|
-
};
|
|
1303
|
-
type TransactionPayloadResponse = EntryFunctionPayloadResponse | ScriptPayloadResponse | MultisigPayloadResponse;
|
|
1304
|
-
type EntryFunctionPayloadResponse = {
|
|
1305
|
-
type: string;
|
|
1306
|
-
function: MoveFunctionId;
|
|
1307
|
-
/**
|
|
1308
|
-
* Type arguments of the function
|
|
1309
|
-
*/
|
|
1310
|
-
type_arguments: Array<string>;
|
|
1311
|
-
/**
|
|
1312
|
-
* Arguments of the function
|
|
1313
|
-
*/
|
|
1314
|
-
arguments: Array<any>;
|
|
1315
|
-
};
|
|
1316
|
-
type ScriptPayloadResponse = {
|
|
1317
|
-
type: string;
|
|
1318
|
-
code: MoveScriptBytecode;
|
|
1319
|
-
/**
|
|
1320
|
-
* Type arguments of the function
|
|
1321
|
-
*/
|
|
1322
|
-
type_arguments: Array<string>;
|
|
1323
|
-
/**
|
|
1324
|
-
* Arguments of the function
|
|
1325
|
-
*/
|
|
1326
|
-
arguments: Array<any>;
|
|
1327
|
-
};
|
|
1328
|
-
type MultisigPayloadResponse = {
|
|
1329
|
-
type: string;
|
|
1330
|
-
multisig_address: string;
|
|
1331
|
-
transaction_payload?: EntryFunctionPayloadResponse;
|
|
1332
|
-
};
|
|
1333
|
-
type GenesisPayload = {
|
|
1334
|
-
type: string;
|
|
1335
|
-
write_set: WriteSet;
|
|
1336
|
-
};
|
|
1337
|
-
/**
|
|
1338
|
-
* Move script bytecode
|
|
1339
|
-
*/
|
|
1340
|
-
type MoveScriptBytecode = {
|
|
1341
|
-
bytecode: string;
|
|
1342
|
-
abi?: MoveFunction;
|
|
1343
|
-
};
|
|
1344
|
-
/**
|
|
1345
|
-
* These are the JSON representations of transaction signatures returned from the node API.
|
|
1346
|
-
*/
|
|
1347
|
-
type TransactionSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature | TransactionMultiAgentSignature | TransactionFeePayerSignature;
|
|
1348
|
-
declare function isEd25519Signature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
|
|
1349
|
-
declare function isSecp256k1Signature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
|
|
1350
|
-
declare function isMultiAgentSignature(signature: TransactionSignature): signature is TransactionMultiAgentSignature;
|
|
1351
|
-
declare function isFeePayerSignature(signature: TransactionSignature): signature is TransactionFeePayerSignature;
|
|
1352
|
-
declare function isMultiEd25519Signature(signature: TransactionSignature): signature is TransactionMultiEd25519Signature;
|
|
1353
|
-
type TransactionEd25519Signature = {
|
|
1354
|
-
type: string;
|
|
1355
|
-
public_key: string;
|
|
1356
|
-
signature: "ed25519_signature";
|
|
1357
|
-
};
|
|
1358
|
-
type TransactionSecp256k1Signature = {
|
|
1359
|
-
type: string;
|
|
1360
|
-
public_key: string;
|
|
1361
|
-
signature: "secp256k1_ecdsa_signature";
|
|
1362
|
-
};
|
|
1363
|
-
type TransactionMultiEd25519Signature = {
|
|
1364
|
-
type: "multi_ed25519_signature";
|
|
1365
|
-
/**
|
|
1366
|
-
* The public keys for the Ed25519 signature
|
|
1367
|
-
*/
|
|
1368
|
-
public_keys: Array<string>;
|
|
1369
|
-
/**
|
|
1370
|
-
* Signature associated with the public keys in the same order
|
|
1371
|
-
*/
|
|
1372
|
-
signatures: Array<string>;
|
|
1373
|
-
/**
|
|
1374
|
-
* The number of signatures required for a successful transaction
|
|
1375
|
-
*/
|
|
1376
|
-
threshold: number;
|
|
1377
|
-
bitmap: string;
|
|
1378
|
-
};
|
|
1379
|
-
type TransactionMultiAgentSignature = {
|
|
1380
|
-
type: "multi_agent_signature";
|
|
1381
|
-
sender: AccountSignature;
|
|
1382
|
-
/**
|
|
1383
|
-
* The other involved parties' addresses
|
|
1384
|
-
*/
|
|
1385
|
-
secondary_signer_addresses: Array<string>;
|
|
1386
|
-
/**
|
|
1387
|
-
* The associated signatures, in the same order as the secondary addresses
|
|
1388
|
-
*/
|
|
1389
|
-
secondary_signers: Array<AccountSignature>;
|
|
1390
|
-
};
|
|
1391
|
-
type TransactionFeePayerSignature = {
|
|
1392
|
-
type: "fee_payer_signature";
|
|
1393
|
-
sender: AccountSignature;
|
|
1394
|
-
/**
|
|
1395
|
-
* The other involved parties' addresses
|
|
1396
|
-
*/
|
|
1397
|
-
secondary_signer_addresses: Array<string>;
|
|
1398
|
-
/**
|
|
1399
|
-
* The associated signatures, in the same order as the secondary addresses
|
|
1400
|
-
*/
|
|
1401
|
-
secondary_signers: Array<AccountSignature>;
|
|
1402
|
-
fee_payer_address: string;
|
|
1403
|
-
fee_payer_signer: AccountSignature;
|
|
1404
|
-
};
|
|
1405
|
-
/**
|
|
1406
|
-
* The union of all single account signatures.
|
|
1407
|
-
*/
|
|
1408
|
-
type AccountSignature = TransactionEd25519Signature | TransactionSecp256k1Signature | TransactionMultiEd25519Signature;
|
|
1409
|
-
type WriteSet = ScriptWriteSet | DirectWriteSet;
|
|
1410
|
-
type ScriptWriteSet = {
|
|
1411
|
-
type: string;
|
|
1412
|
-
execute_as: string;
|
|
1413
|
-
script: ScriptPayloadResponse;
|
|
1414
|
-
};
|
|
1415
|
-
type DirectWriteSet = {
|
|
1416
|
-
type: string;
|
|
1417
|
-
changes: Array<WriteSetChange>;
|
|
1418
|
-
events: Array<Event$1>;
|
|
1419
|
-
};
|
|
1420
|
-
type EventGuid = {
|
|
1421
|
-
creation_number: string;
|
|
1422
|
-
account_address: string;
|
|
1423
|
-
};
|
|
1424
|
-
type Event$1 = {
|
|
1425
|
-
guid: EventGuid;
|
|
1426
|
-
sequence_number: string;
|
|
1427
|
-
type: string;
|
|
1428
|
-
/**
|
|
1429
|
-
* The JSON representation of the event
|
|
1430
|
-
*/
|
|
1431
|
-
data: any;
|
|
1432
|
-
};
|
|
1433
|
-
/**
|
|
1434
|
-
* Map of Move types to local TypeScript types
|
|
1435
|
-
*/
|
|
1436
|
-
type MoveUint8Type = number;
|
|
1437
|
-
type MoveUint16Type = number;
|
|
1438
|
-
type MoveUint32Type = number;
|
|
1439
|
-
type MoveUint64Type = string;
|
|
1440
|
-
type MoveUint128Type = string;
|
|
1441
|
-
type MoveUint256Type = string;
|
|
1442
|
-
type MoveAddressType = string;
|
|
1443
|
-
type MoveObjectType = string;
|
|
1444
|
-
type MoveOptionType = MoveType | null | undefined;
|
|
1445
|
-
/**
|
|
1446
|
-
* This is the format for a fully qualified struct, resource, or entry function in Move.
|
|
1447
|
-
*/
|
|
1448
|
-
type MoveStructId = `${string}::${string}::${string}`;
|
|
1449
|
-
type MoveFunctionId = MoveStructId;
|
|
1450
|
-
type MoveStructType = {};
|
|
1451
|
-
type MoveType = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructType | Array<MoveType>;
|
|
1452
|
-
/**
|
|
1453
|
-
* Possible Move values acceptable by move functions (entry, view)
|
|
1454
|
-
*
|
|
1455
|
-
* Map of a Move value to the corresponding TypeScript value
|
|
1456
|
-
*
|
|
1457
|
-
* `Bool -> boolean`
|
|
1458
|
-
*
|
|
1459
|
-
* `u8, u16, u32 -> number`
|
|
1460
|
-
*
|
|
1461
|
-
* `u64, u128, u256 -> string`
|
|
1462
|
-
*
|
|
1463
|
-
* `String -> string`
|
|
1464
|
-
*
|
|
1465
|
-
* `Address -> 0x${string}`
|
|
1466
|
-
*
|
|
1467
|
-
* `Struct - 0x${string}::${string}::${string}`
|
|
1468
|
-
*
|
|
1469
|
-
* `Object -> 0x${string}`
|
|
1470
|
-
*
|
|
1471
|
-
* `Vector -> Array<MoveValue>`
|
|
1472
|
-
*
|
|
1473
|
-
* `Option -> MoveValue | null | undefined`
|
|
1474
|
-
*/
|
|
1475
|
-
type MoveValue = boolean | string | MoveUint8Type | MoveUint16Type | MoveUint32Type | MoveUint64Type | MoveUint128Type | MoveUint256Type | MoveAddressType | MoveObjectType | MoveStructId | MoveOptionType | Array<MoveValue>;
|
|
1476
|
-
/**
|
|
1477
|
-
* Move module id is a string representation of Move module.
|
|
1478
|
-
* Module name is case-sensitive.
|
|
1479
|
-
*/
|
|
1480
|
-
type MoveModuleId = `${string}::${string}`;
|
|
1481
|
-
/**
|
|
1482
|
-
* Move function visibility
|
|
1483
|
-
*/
|
|
1484
|
-
declare enum MoveFunctionVisibility {
|
|
1485
|
-
PRIVATE = "private",
|
|
1486
|
-
PUBLIC = "public",
|
|
1487
|
-
FRIEND = "friend"
|
|
1488
|
-
}
|
|
1489
|
-
/**
|
|
1490
|
-
* Move function ability
|
|
1491
|
-
*/
|
|
1492
|
-
declare enum MoveAbility {
|
|
1493
|
-
STORE = "store",
|
|
1494
|
-
DROP = "drop",
|
|
1495
|
-
KEY = "key",
|
|
1496
|
-
COPY = "copy"
|
|
1497
|
-
}
|
|
1498
|
-
/**
|
|
1499
|
-
* Move abilities tied to the generic type param and associated with the function that uses it
|
|
1500
|
-
*/
|
|
1501
|
-
type MoveFunctionGenericTypeParam = {
|
|
1502
|
-
constraints: Array<MoveAbility>;
|
|
1503
|
-
};
|
|
1504
|
-
/**
|
|
1505
|
-
* Move struct field
|
|
1506
|
-
*/
|
|
1507
|
-
type MoveStructField = {
|
|
1508
|
-
name: string;
|
|
1509
|
-
type: string;
|
|
1510
|
-
};
|
|
1511
|
-
/**
|
|
1512
|
-
* A Move module
|
|
1513
|
-
*/
|
|
1514
|
-
type MoveModule = {
|
|
1515
|
-
address: string;
|
|
1516
|
-
name: string;
|
|
1517
|
-
/**
|
|
1518
|
-
* Friends of the module
|
|
1519
|
-
*/
|
|
1520
|
-
friends: Array<MoveModuleId>;
|
|
1521
|
-
/**
|
|
1522
|
-
* Public functions of the module
|
|
1523
|
-
*/
|
|
1524
|
-
exposed_functions: Array<MoveFunction>;
|
|
1525
|
-
/**
|
|
1526
|
-
* Structs of the module
|
|
1527
|
-
*/
|
|
1528
|
-
structs: Array<MoveStruct>;
|
|
1529
|
-
};
|
|
1530
|
-
/**
|
|
1531
|
-
* A move struct
|
|
1532
|
-
*/
|
|
1533
|
-
type MoveStruct = {
|
|
1534
|
-
name: string;
|
|
1535
|
-
/**
|
|
1536
|
-
* Whether the struct is a native struct of Move
|
|
1537
|
-
*/
|
|
1538
|
-
is_native: boolean;
|
|
1539
|
-
/**
|
|
1540
|
-
* Abilities associated with the struct
|
|
1541
|
-
*/
|
|
1542
|
-
abilities: Array<MoveAbility>;
|
|
1543
|
-
/**
|
|
1544
|
-
* Generic types associated with the struct
|
|
1545
|
-
*/
|
|
1546
|
-
generic_type_params: Array<MoveFunctionGenericTypeParam>;
|
|
1547
|
-
/**
|
|
1548
|
-
* Fields associated with the struct
|
|
1549
|
-
*/
|
|
1550
|
-
fields: Array<MoveStructField>;
|
|
1551
|
-
};
|
|
1552
|
-
/**
|
|
1553
|
-
* Move function
|
|
1554
|
-
*/
|
|
1555
|
-
type MoveFunction = {
|
|
1556
|
-
name: string;
|
|
1557
|
-
visibility: MoveFunctionVisibility;
|
|
1558
|
-
/**
|
|
1559
|
-
* Whether the function can be called as an entry function directly in a transaction
|
|
1560
|
-
*/
|
|
1561
|
-
is_entry: boolean;
|
|
1562
|
-
/**
|
|
1563
|
-
* Whether the function is a view function or not
|
|
1564
|
-
*/
|
|
1565
|
-
is_view: boolean;
|
|
1566
|
-
/**
|
|
1567
|
-
* Generic type params associated with the Move function
|
|
1568
|
-
*/
|
|
1569
|
-
generic_type_params: Array<MoveFunctionGenericTypeParam>;
|
|
1570
|
-
/**
|
|
1571
|
-
* Parameters associated with the move function
|
|
1572
|
-
*/
|
|
1573
|
-
params: Array<string>;
|
|
1574
|
-
/**
|
|
1575
|
-
* Return type of the function
|
|
1576
|
-
*/
|
|
1577
|
-
return: Array<string>;
|
|
1578
|
-
};
|
|
1579
|
-
declare enum RoleType {
|
|
1580
|
-
VALIDATOR = "validator",
|
|
1581
|
-
FULL_NODE = "full_node"
|
|
1582
|
-
}
|
|
1583
|
-
type LedgerInfo = {
|
|
1584
|
-
/**
|
|
1585
|
-
* Chain ID of the current chain
|
|
1586
|
-
*/
|
|
1587
|
-
chain_id: number;
|
|
1588
|
-
epoch: string;
|
|
1589
|
-
ledger_version: string;
|
|
1590
|
-
oldest_ledger_version: string;
|
|
1591
|
-
ledger_timestamp: string;
|
|
1592
|
-
node_role: RoleType;
|
|
1593
|
-
oldest_block_height: string;
|
|
1594
|
-
block_height: string;
|
|
1595
|
-
/**
|
|
1596
|
-
* Git hash of the build of the API endpoint. Can be used to determine the exact
|
|
1597
|
-
* software version used by the API endpoint.
|
|
1598
|
-
*/
|
|
1599
|
-
git_hash?: string;
|
|
1600
|
-
};
|
|
1601
|
-
/**
|
|
1602
|
-
* A Block type
|
|
1603
|
-
*/
|
|
1604
|
-
type Block = {
|
|
1605
|
-
block_height: string;
|
|
1606
|
-
block_hash: string;
|
|
1607
|
-
block_timestamp: string;
|
|
1608
|
-
first_version: string;
|
|
1609
|
-
last_version: string;
|
|
1610
|
-
/**
|
|
1611
|
-
* The transactions in the block in sequential order
|
|
1612
|
-
*/
|
|
1613
|
-
transactions?: Array<TransactionResponse>;
|
|
1614
|
-
};
|
|
1615
|
-
/**
|
|
1616
|
-
* Table Item request for the GetTableItem API
|
|
1617
|
-
*/
|
|
1618
|
-
type TableItemRequest = {
|
|
1619
|
-
key_type: MoveValue;
|
|
1620
|
-
value_type: MoveValue;
|
|
1621
|
-
/**
|
|
1622
|
-
* The value of the table item's key
|
|
1623
|
-
*/
|
|
1624
|
-
key: any;
|
|
1625
|
-
};
|
|
1626
|
-
/**
|
|
1627
|
-
* A list of Authentication Key schemes that are supported by Aptos.
|
|
1628
|
-
*
|
|
1629
|
-
* They are combinations of signing schemes and derive schemes.
|
|
1630
|
-
*/
|
|
1631
|
-
type AuthenticationKeyScheme = SigningScheme | DeriveScheme;
|
|
1632
|
-
declare enum SigningScheme {
|
|
1633
|
-
/**
|
|
1634
|
-
* For Ed25519PublicKey
|
|
1635
|
-
*/
|
|
1636
|
-
Ed25519 = 0,
|
|
1637
|
-
/**
|
|
1638
|
-
* For MultiEd25519PublicKey
|
|
1639
|
-
*/
|
|
1640
|
-
MultiEd25519 = 1,
|
|
1641
|
-
/**
|
|
1642
|
-
* For SingleKey ecdsa
|
|
1643
|
-
*/
|
|
1644
|
-
SingleKey = 2,
|
|
1645
|
-
MultiKey = 3
|
|
1646
|
-
}
|
|
1647
|
-
declare enum SigningSchemeInput {
|
|
1648
|
-
/**
|
|
1649
|
-
* For Ed25519PublicKey
|
|
1650
|
-
*/
|
|
1651
|
-
Ed25519 = 0,
|
|
1652
|
-
/**
|
|
1653
|
-
* For Secp256k1Ecdsa
|
|
1654
|
-
*/
|
|
1655
|
-
Secp256k1Ecdsa = 2
|
|
1656
|
-
}
|
|
1657
|
-
/**
|
|
1658
|
-
* Scheme used for deriving account addresses from other data
|
|
1659
|
-
*/
|
|
1660
|
-
declare enum DeriveScheme {
|
|
1661
|
-
/**
|
|
1662
|
-
* Derives an address using an AUID, used for objects
|
|
1663
|
-
*/
|
|
1664
|
-
DeriveAuid = 251,
|
|
1665
|
-
/**
|
|
1666
|
-
* Derives an address from another object address
|
|
1667
|
-
*/
|
|
1668
|
-
DeriveObjectAddressFromObject = 252,
|
|
1669
|
-
/**
|
|
1670
|
-
* Derives an address from a GUID, used for objects
|
|
1671
|
-
*/
|
|
1672
|
-
DeriveObjectAddressFromGuid = 253,
|
|
1673
|
-
/**
|
|
1674
|
-
* Derives an address from seed bytes, used for named objects
|
|
1675
|
-
*/
|
|
1676
|
-
DeriveObjectAddressFromSeed = 254,
|
|
1677
|
-
/**
|
|
1678
|
-
* Derives an address from seed bytes, used for resource accounts
|
|
1679
|
-
*/
|
|
1680
|
-
DeriveResourceAccountAddress = 255
|
|
1681
|
-
}
|
|
1682
|
-
/**
|
|
1683
|
-
* Option properties to pass for waitForTransaction() function
|
|
1684
|
-
*/
|
|
1685
|
-
type WaitForTransactionOptions = {
|
|
1686
|
-
timeoutSecs?: number;
|
|
1687
|
-
checkSuccess?: boolean;
|
|
1688
|
-
waitForIndexer?: boolean;
|
|
1689
|
-
};
|
|
1690
|
-
/**
|
|
1691
|
-
* Input type to generate an account using Single Signer
|
|
1692
|
-
* Ed25519 or Legacy Ed25519
|
|
1693
|
-
*/
|
|
1694
|
-
type GenerateAccountWithEd25519 = {
|
|
1695
|
-
scheme: SigningSchemeInput.Ed25519;
|
|
1696
|
-
legacy: boolean;
|
|
1697
|
-
};
|
|
1698
|
-
/**
|
|
1699
|
-
* Input type to generate an account using Single Signer
|
|
1700
|
-
* Secp256k1
|
|
1701
|
-
*/
|
|
1702
|
-
type GenerateAccountWithSingleSignerSecp256k1Key = {
|
|
1703
|
-
scheme: SigningSchemeInput.Secp256k1Ecdsa;
|
|
1704
|
-
legacy?: false;
|
|
1705
|
-
};
|
|
1706
|
-
type GenerateAccount = GenerateAccountWithEd25519 | GenerateAccountWithSingleSignerSecp256k1Key;
|
|
1707
|
-
|
|
1708
|
-
/**
|
|
1709
|
-
* This interface exists to define Deserializable<T> inputs for functions that
|
|
1710
|
-
* deserialize a byte buffer into a type T.
|
|
1711
|
-
* It is not intended to be implemented or extended, because Typescript has no support
|
|
1712
|
-
* for static methods in interfaces.
|
|
1713
|
-
*/
|
|
1714
|
-
interface Deserializable<T> {
|
|
1715
|
-
deserialize(deserializer: Deserializer): T;
|
|
1716
|
-
}
|
|
1717
|
-
declare class Deserializer {
|
|
1718
|
-
private buffer;
|
|
1719
|
-
private offset;
|
|
1720
|
-
constructor(data: Uint8Array);
|
|
1721
|
-
private read;
|
|
1722
|
-
/**
|
|
1723
|
-
* Deserializes a string. UTF8 string is supported. Reads the string's bytes length "l" first,
|
|
1724
|
-
* and then reads "l" bytes of content. Decodes the byte array into a string.
|
|
1725
|
-
*
|
|
1726
|
-
* BCS layout for "string": string_length | string_content
|
|
1727
|
-
* where string_length is a u32 integer encoded as a uleb128 integer, equal to the number of bytes in string_content.
|
|
1728
|
-
*
|
|
1729
|
-
* @example
|
|
1730
|
-
* ```ts
|
|
1731
|
-
* const deserializer = new Deserializer(new Uint8Array([8, 49, 50, 51, 52, 97, 98, 99, 100]));
|
|
1732
|
-
* assert(deserializer.deserializeStr() === "1234abcd");
|
|
1733
|
-
* ```
|
|
1734
|
-
*/
|
|
1735
|
-
deserializeStr(): string;
|
|
1736
|
-
/**
|
|
1737
|
-
* Deserializes an array of bytes.
|
|
1738
|
-
*
|
|
1739
|
-
* BCS layout for "bytes": bytes_length | bytes
|
|
1740
|
-
* where bytes_length is a u32 integer encoded as a uleb128 integer, equal to the length of the bytes array.
|
|
1741
|
-
*/
|
|
1742
|
-
deserializeBytes(): Uint8Array;
|
|
1743
|
-
/**
|
|
1744
|
-
* Deserializes an array of bytes. The number of bytes to read is already known.
|
|
1745
|
-
*
|
|
1746
|
-
*/
|
|
1747
|
-
deserializeFixedBytes(len: number): Uint8Array;
|
|
1748
|
-
/**
|
|
1749
|
-
* Deserializes a boolean value.
|
|
1750
|
-
*
|
|
1751
|
-
* BCS layout for "boolean": One byte. "0x01" for true and "0x00" for false.
|
|
1752
|
-
*/
|
|
1753
|
-
deserializeBool(): boolean;
|
|
1754
|
-
/**
|
|
1755
|
-
* Deserializes a uint8 number.
|
|
1756
|
-
*
|
|
1757
|
-
* BCS layout for "uint8": One byte. Binary format in little-endian representation.
|
|
1758
|
-
*/
|
|
1759
|
-
deserializeU8(): Uint8;
|
|
1760
|
-
/**
|
|
1761
|
-
* Deserializes a uint16 number.
|
|
1762
|
-
*
|
|
1763
|
-
* BCS layout for "uint16": Two bytes. Binary format in little-endian representation.
|
|
1764
|
-
* @example
|
|
1765
|
-
* ```ts
|
|
1766
|
-
* const deserializer = new Deserializer(new Uint8Array([0x34, 0x12]));
|
|
1767
|
-
* assert(deserializer.deserializeU16() === 4660);
|
|
1768
|
-
* ```
|
|
1769
|
-
*/
|
|
1770
|
-
deserializeU16(): Uint16;
|
|
1771
|
-
/**
|
|
1772
|
-
* Deserializes a uint32 number.
|
|
1773
|
-
*
|
|
1774
|
-
* BCS layout for "uint32": Four bytes. Binary format in little-endian representation.
|
|
1775
|
-
* @example
|
|
1776
|
-
* ```ts
|
|
1777
|
-
* const deserializer = new Deserializer(new Uint8Array([0x78, 0x56, 0x34, 0x12]));
|
|
1778
|
-
* assert(deserializer.deserializeU32() === 305419896);
|
|
1779
|
-
* ```
|
|
1780
|
-
*/
|
|
1781
|
-
deserializeU32(): Uint32;
|
|
1782
|
-
/**
|
|
1783
|
-
* Deserializes a uint64 number.
|
|
1784
|
-
*
|
|
1785
|
-
* BCS layout for "uint64": Eight bytes. Binary format in little-endian representation.
|
|
1786
|
-
* @example
|
|
1787
|
-
* ```ts
|
|
1788
|
-
* const deserializer = new Deserializer(new Uint8Array([0x00, 0xEF, 0xCD, 0xAB, 0x78, 0x56, 0x34, 0x12]));
|
|
1789
|
-
* assert(deserializer.deserializeU64() === 1311768467750121216);
|
|
1790
|
-
* ```
|
|
1791
|
-
*/
|
|
1792
|
-
deserializeU64(): Uint64;
|
|
1793
|
-
/**
|
|
1794
|
-
* Deserializes a uint128 number.
|
|
1795
|
-
*
|
|
1796
|
-
* BCS layout for "uint128": Sixteen bytes. Binary format in little-endian representation.
|
|
1797
|
-
*/
|
|
1798
|
-
deserializeU128(): Uint128;
|
|
1799
|
-
/**
|
|
1800
|
-
* Deserializes a uint256 number.
|
|
1801
|
-
*
|
|
1802
|
-
* BCS layout for "uint256": Thirty-two bytes. Binary format in little-endian representation.
|
|
1803
|
-
*/
|
|
1804
|
-
deserializeU256(): Uint256;
|
|
1805
|
-
/**
|
|
1806
|
-
* Deserializes a uleb128 encoded uint32 number.
|
|
1807
|
-
*
|
|
1808
|
-
* BCS use uleb128 encoding in two cases: (1) lengths of variable-length sequences and (2) tags of enum values
|
|
1809
|
-
*/
|
|
1810
|
-
deserializeUleb128AsU32(): Uint32;
|
|
1811
|
-
/**
|
|
1812
|
-
* Helper function that primarily exists to support alternative syntax for deserialization.
|
|
1813
|
-
* That is, if we have a `const deserializer: new Deserializer(...)`, instead of having to use
|
|
1814
|
-
* `MyClass.deserialize(deserializer)`, we can call `deserializer.deserialize(MyClass)`.
|
|
1815
|
-
*
|
|
1816
|
-
* @example const deserializer = new Deserializer(new Uint8Array([1, 2, 3]));
|
|
1817
|
-
* const value = deserializer.deserialize(MyClass); // where MyClass has a `deserialize` function
|
|
1818
|
-
* // value is now an instance of MyClass
|
|
1819
|
-
* // equivalent to `const value = MyClass.deserialize(deserializer)`
|
|
1820
|
-
* @param cls The BCS-deserializable class to deserialize the buffered bytes into.
|
|
1821
|
-
*
|
|
1822
|
-
* @returns the deserialized value of class type T
|
|
1823
|
-
*/
|
|
1824
|
-
deserialize<T>(cls: Deserializable<T>): T;
|
|
1825
|
-
/**
|
|
1826
|
-
* Deserializes an array of BCS Deserializable values given an existing Deserializer
|
|
1827
|
-
* instance with a loaded byte buffer.
|
|
1828
|
-
*
|
|
1829
|
-
* @param cls The BCS-deserializable class to deserialize the buffered bytes into.
|
|
1830
|
-
* @example
|
|
1831
|
-
* // serialize a vector of addresses
|
|
1832
|
-
* const addresses = new Array<AccountAddress>(
|
|
1833
|
-
* AccountAddress.from("0x1"),
|
|
1834
|
-
* AccountAddress.from("0x2"),
|
|
1835
|
-
* AccountAddress.from("0xa"),
|
|
1836
|
-
* AccountAddress.from("0xb"),
|
|
1837
|
-
* );
|
|
1838
|
-
* const serializer = new Serializer();
|
|
1839
|
-
* serializer.serializeVector(addresses);
|
|
1840
|
-
* const serializedBytes = serializer.toUint8Array();
|
|
1841
|
-
*
|
|
1842
|
-
* // deserialize the bytes into an array of addresses
|
|
1843
|
-
* const deserializer = new Deserializer(serializedBytes);
|
|
1844
|
-
* const deserializedAddresses = deserializer.deserializeVector(AccountAddress);
|
|
1845
|
-
* // deserializedAddresses is now an array of AccountAddress instances
|
|
1846
|
-
* @returns an array of deserialized values of type T
|
|
1847
|
-
*/
|
|
1848
|
-
deserializeVector<T>(cls: Deserializable<T>): Array<T>;
|
|
1849
|
-
}
|
|
1850
|
-
|
|
1851
|
-
/**
|
|
1852
|
-
* This error is used to explain why parsing failed.
|
|
1853
|
-
*/
|
|
1854
|
-
declare class ParsingError<T> extends Error {
|
|
1855
|
-
/**
|
|
1856
|
-
* This provides a programmatic way to access why parsing failed. Downstream devs
|
|
1857
|
-
* might want to use this to build their own error messages if the default error
|
|
1858
|
-
* messages are not suitable for their use case. This should be an enum.
|
|
1859
|
-
*/
|
|
1860
|
-
invalidReason: T;
|
|
1861
|
-
constructor(message: string, invalidReason: T);
|
|
1862
|
-
}
|
|
1863
|
-
/**
|
|
1864
|
-
* Whereas ParsingError is thrown when parsing fails, e.g. in a fromString function,
|
|
1865
|
-
* this type is returned from "defensive" functions like isValid.
|
|
1866
|
-
*/
|
|
1867
|
-
type ParsingResult<T> = {
|
|
1868
|
-
/**
|
|
1869
|
-
* True if valid, false otherwise.
|
|
1870
|
-
*/
|
|
1871
|
-
valid: boolean;
|
|
1872
|
-
/**
|
|
1873
|
-
* If valid is false, this will be a code explaining why parsing failed.
|
|
1874
|
-
*/
|
|
1875
|
-
invalidReason?: T;
|
|
1876
|
-
/**
|
|
1877
|
-
* If valid is false, this will be a string explaining why parsing failed.
|
|
1878
|
-
*/
|
|
1879
|
-
invalidReasonMessage?: string;
|
|
1880
|
-
};
|
|
1881
|
-
|
|
1882
|
-
/**
|
|
1883
|
-
* This enum is used to explain why parsing might have failed.
|
|
1884
|
-
*/
|
|
1885
|
-
declare enum HexInvalidReason {
|
|
1886
|
-
TOO_SHORT = "too_short",
|
|
1887
|
-
INVALID_LENGTH = "invalid_length",
|
|
1888
|
-
INVALID_HEX_CHARS = "invalid_hex_chars"
|
|
1889
|
-
}
|
|
1890
|
-
/**
|
|
1891
|
-
* NOTE: Do not use this class when working with account addresses, use AccountAddress.
|
|
1892
|
-
*
|
|
1893
|
-
* NOTE: When accepting hex data as input to a function, prefer to accept HexInput and
|
|
1894
|
-
* then use the static helper methods of this class to convert it into the desired
|
|
1895
|
-
* format. This enables the greatest flexibility for the developer.
|
|
1896
|
-
*
|
|
1897
|
-
* Hex is a helper class for working with hex data. Hex data, when represented as a
|
|
1898
|
-
* string, generally looks like this, for example: 0xaabbcc, 45cd32, etc.
|
|
1899
|
-
*
|
|
1900
|
-
* You might use this class like this:
|
|
1901
|
-
*
|
|
1902
|
-
* ```ts
|
|
1903
|
-
* getTransactionByHash(txnHash: HexInput): Promise<Transaction> {
|
|
1904
|
-
* const txnHashString = Hex.fromHexInput(txnHash).toString();
|
|
1905
|
-
* return await getTransactionByHashInner(txnHashString);
|
|
1906
|
-
* }
|
|
1907
|
-
* ```
|
|
1908
|
-
*
|
|
1909
|
-
* This call to `Hex.fromHexInput().toString()` converts the HexInput to a hex string
|
|
1910
|
-
* with a leading 0x prefix, regardless of what the input format was.
|
|
1911
|
-
*
|
|
1912
|
-
* These are some other ways to chain the functions together:
|
|
1913
|
-
* - `Hex.fromHexString({ hexInput: "0x1f" }).toUint8Array()`
|
|
1914
|
-
* - `new Hex([1, 3]).toStringWithoutPrefix()`
|
|
1915
|
-
*/
|
|
1916
|
-
declare class Hex {
|
|
1917
|
-
private readonly data;
|
|
1918
|
-
/**
|
|
1919
|
-
* Create a new Hex instance from a Uint8Array.
|
|
1920
|
-
*
|
|
1921
|
-
* @param data Uint8Array
|
|
1922
|
-
*/
|
|
1923
|
-
constructor(data: Uint8Array);
|
|
1924
|
-
/**
|
|
1925
|
-
* Get the inner hex data. The inner data is already a Uint8Array so no conversion
|
|
1926
|
-
* is taking place here, it just returns the inner data.
|
|
1927
|
-
*
|
|
1928
|
-
* @returns Hex data as Uint8Array
|
|
1929
|
-
*/
|
|
1930
|
-
toUint8Array(): Uint8Array;
|
|
1931
|
-
/**
|
|
1932
|
-
* Get the hex data as a string without the 0x prefix.
|
|
1933
|
-
*
|
|
1934
|
-
* @returns Hex string without 0x prefix
|
|
1935
|
-
*/
|
|
1936
|
-
toStringWithoutPrefix(): string;
|
|
1937
|
-
/**
|
|
1938
|
-
* Get the hex data as a string with the 0x prefix.
|
|
1939
|
-
*
|
|
1940
|
-
* @returns Hex string with 0x prefix
|
|
1941
|
-
*/
|
|
1942
|
-
toString(): string;
|
|
1943
|
-
/**
|
|
1944
|
-
* Static method to convert a hex string to Hex
|
|
1945
|
-
*
|
|
1946
|
-
* @param str A hex string, with or without the 0x prefix
|
|
1947
|
-
*
|
|
1948
|
-
* @returns Hex
|
|
1949
|
-
*/
|
|
1950
|
-
static fromHexString(str: string): Hex;
|
|
1951
|
-
/**
|
|
1952
|
-
* Static method to convert an instance of HexInput to Hex
|
|
1953
|
-
*
|
|
1954
|
-
* @param hexInput A HexInput (string or Uint8Array)
|
|
1955
|
-
*
|
|
1956
|
-
* @returns Hex
|
|
1957
|
-
*/
|
|
1958
|
-
static fromHexInput(hexInput: HexInput): Hex;
|
|
1959
|
-
/**
|
|
1960
|
-
* Check if the string is valid hex.
|
|
1961
|
-
*
|
|
1962
|
-
* @param str A hex string representing byte data.
|
|
1963
|
-
*
|
|
1964
|
-
* @returns valid = true if the string is valid, false if not. If the string is not
|
|
1965
|
-
* valid, invalidReason and invalidReasonMessage will be set explaining why it is
|
|
1966
|
-
* invalid.
|
|
1967
|
-
*/
|
|
1968
|
-
static isValid(str: string): ParsingResult<HexInvalidReason>;
|
|
1969
|
-
/**
|
|
1970
|
-
* Return whether Hex instances are equal. Hex instances are considered equal if
|
|
1971
|
-
* their underlying byte data is identical.
|
|
1972
|
-
*
|
|
1973
|
-
* @param other The Hex instance to compare to.
|
|
1974
|
-
* @returns true if the Hex instances are equal, false if not.
|
|
1975
|
-
*/
|
|
1976
|
-
equals(other: Hex): boolean;
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
|
-
declare abstract class Serializable {
|
|
1980
|
-
abstract serialize(serializer: Serializer): void;
|
|
1981
|
-
/**
|
|
1982
|
-
* Serializes a `Serializable` value to its BCS representation.
|
|
1983
|
-
* This function is the Typescript SDK equivalent of `bcs::to_bytes` in Move.
|
|
1984
|
-
* @returns the BCS representation of the Serializable instance as a byte buffer
|
|
1985
|
-
*/
|
|
1986
|
-
bcsToBytes(): Uint8Array;
|
|
1987
|
-
/**
|
|
1988
|
-
* Helper function to get a value's BCS-serialized bytes as a Hex instance.
|
|
1989
|
-
* @returns a Hex instance with the BCS-serialized bytes loaded into its underlying Uint8Array
|
|
1990
|
-
*/
|
|
1991
|
-
bcsToHex(): Hex;
|
|
1992
|
-
}
|
|
1993
|
-
declare class Serializer {
|
|
1994
|
-
private buffer;
|
|
1995
|
-
private offset;
|
|
1996
|
-
constructor(length?: number);
|
|
1997
|
-
private ensureBufferWillHandleSize;
|
|
1998
|
-
protected appendToBuffer(values: Uint8Array): void;
|
|
1999
|
-
private serializeWithFunction;
|
|
2000
|
-
/**
|
|
2001
|
-
* Serializes a string. UTF8 string is supported.
|
|
2002
|
-
*
|
|
2003
|
-
* The number of bytes in the string content is serialized first, as a uleb128-encoded u32 integer.
|
|
2004
|
-
* Then the string content is serialized as UTF8 encoded bytes.
|
|
2005
|
-
*
|
|
2006
|
-
* BCS layout for "string": string_length | string_content
|
|
2007
|
-
* where string_length is a u32 integer encoded as a uleb128 integer, equal to the number of bytes in string_content.
|
|
2008
|
-
*
|
|
2009
|
-
* @example
|
|
2010
|
-
* ```ts
|
|
2011
|
-
* const serializer = new Serializer();
|
|
2012
|
-
* serializer.serializeStr("1234abcd");
|
|
2013
|
-
* assert(serializer.toUint8Array() === new Uint8Array([8, 49, 50, 51, 52, 97, 98, 99, 100]));
|
|
2014
|
-
* ```
|
|
2015
|
-
*/
|
|
2016
|
-
serializeStr(value: string): void;
|
|
2017
|
-
/**
|
|
2018
|
-
* Serializes an array of bytes.
|
|
2019
|
-
*
|
|
2020
|
-
* BCS layout for "bytes": bytes_length | bytes
|
|
2021
|
-
* where bytes_length is a u32 integer encoded as a uleb128 integer, equal to the length of the bytes array.
|
|
2022
|
-
*/
|
|
2023
|
-
serializeBytes(value: Uint8Array): void;
|
|
2024
|
-
/**
|
|
2025
|
-
* Serializes an array of bytes with known length. Therefore, length doesn't need to be
|
|
2026
|
-
* serialized to help deserialization.
|
|
2027
|
-
*
|
|
2028
|
-
* When deserializing, the number of bytes to deserialize needs to be passed in.
|
|
2029
|
-
*/
|
|
2030
|
-
serializeFixedBytes(value: Uint8Array): void;
|
|
2031
|
-
/**
|
|
2032
|
-
* Serializes a boolean value.
|
|
2033
|
-
*
|
|
2034
|
-
* BCS layout for "boolean": One byte. "0x01" for true and "0x00" for false.
|
|
2035
|
-
*/
|
|
2036
|
-
serializeBool(value: boolean): void;
|
|
2037
|
-
/**
|
|
2038
|
-
* Serializes a uint8 number.
|
|
2039
|
-
*
|
|
2040
|
-
* BCS layout for "uint8": One byte. Binary format in little-endian representation.
|
|
2041
|
-
*/
|
|
2042
|
-
serializeU8(value: Uint8): void;
|
|
2043
|
-
/**
|
|
2044
|
-
* Serializes a uint16 number.
|
|
2045
|
-
*
|
|
2046
|
-
* BCS layout for "uint16": Two bytes. Binary format in little-endian representation.
|
|
2047
|
-
* @example
|
|
2048
|
-
* ```ts
|
|
2049
|
-
* const serializer = new Serializer();
|
|
2050
|
-
* serializer.serializeU16(4660);
|
|
2051
|
-
* assert(serializer.toUint8Array() === new Uint8Array([0x34, 0x12]));
|
|
2052
|
-
* ```
|
|
2053
|
-
*/
|
|
2054
|
-
serializeU16(value: Uint16): void;
|
|
2055
|
-
/**
|
|
2056
|
-
* Serializes a uint32 number.
|
|
2057
|
-
*
|
|
2058
|
-
* BCS layout for "uint32": Four bytes. Binary format in little-endian representation.
|
|
2059
|
-
* @example
|
|
2060
|
-
* ```ts
|
|
2061
|
-
* const serializer = new Serializer();
|
|
2062
|
-
* serializer.serializeU32(305419896);
|
|
2063
|
-
* assert(serializer.toUint8Array() === new Uint8Array([0x78, 0x56, 0x34, 0x12]));
|
|
2064
|
-
* ```
|
|
2065
|
-
*/
|
|
2066
|
-
serializeU32(value: Uint32): void;
|
|
2067
|
-
/**
|
|
2068
|
-
* Serializes a uint64 number.
|
|
2069
|
-
*
|
|
2070
|
-
* BCS layout for "uint64": Eight bytes. Binary format in little-endian representation.
|
|
2071
|
-
* @example
|
|
2072
|
-
* ```ts
|
|
2073
|
-
* const serializer = new Serializer();
|
|
2074
|
-
* serializer.serializeU64(1311768467750121216);
|
|
2075
|
-
* assert(serializer.toUint8Array() === new Uint8Array([0x00, 0xEF, 0xCD, 0xAB, 0x78, 0x56, 0x34, 0x12]));
|
|
2076
|
-
* ```
|
|
2077
|
-
*/
|
|
2078
|
-
serializeU64(value: AnyNumber): void;
|
|
2079
|
-
/**
|
|
2080
|
-
* Serializes a uint128 number.
|
|
2081
|
-
*
|
|
2082
|
-
* BCS layout for "uint128": Sixteen bytes. Binary format in little-endian representation.
|
|
2083
|
-
*/
|
|
2084
|
-
serializeU128(value: AnyNumber): void;
|
|
2085
|
-
/**
|
|
2086
|
-
* Serializes a uint256 number.
|
|
2087
|
-
*
|
|
2088
|
-
* BCS layout for "uint256": Sixteen bytes. Binary format in little-endian representation.
|
|
2089
|
-
*/
|
|
2090
|
-
serializeU256(value: AnyNumber): void;
|
|
2091
|
-
/**
|
|
2092
|
-
* Serializes a uint32 number with uleb128.
|
|
2093
|
-
*
|
|
2094
|
-
* BCS uses uleb128 encoding in two cases: (1) lengths of variable-length sequences and (2) tags of enum values
|
|
2095
|
-
*/
|
|
2096
|
-
serializeU32AsUleb128(val: Uint32): void;
|
|
2097
|
-
/**
|
|
2098
|
-
* Returns the buffered bytes
|
|
2099
|
-
*/
|
|
2100
|
-
toUint8Array(): Uint8Array;
|
|
2101
|
-
/**
|
|
2102
|
-
* Serializes a `Serializable` value, facilitating composable serialization.
|
|
2103
|
-
*
|
|
2104
|
-
* @param value The Serializable value to serialize
|
|
2105
|
-
*
|
|
2106
|
-
* @example
|
|
2107
|
-
* // Define the MoveStruct class that implements the Serializable interface
|
|
2108
|
-
* class MoveStruct extends Serializable {
|
|
2109
|
-
* constructor(
|
|
2110
|
-
* public creatorAddress: AccountAddress, // where AccountAddress extends Serializable
|
|
2111
|
-
* public collectionName: string,
|
|
2112
|
-
* public tokenName: string
|
|
2113
|
-
* ) {}
|
|
2114
|
-
*
|
|
2115
|
-
* serialize(serializer: Serializer): void {
|
|
2116
|
-
* serializer.serialize(this.creatorAddress); // Composable serialization of another Serializable object
|
|
2117
|
-
* serializer.serializeStr(this.collectionName);
|
|
2118
|
-
* serializer.serializeStr(this.tokenName);
|
|
2119
|
-
* }
|
|
2120
|
-
* }
|
|
2121
|
-
*
|
|
2122
|
-
* // Construct a MoveStruct
|
|
2123
|
-
* const moveStruct = new MoveStruct(new AccountAddress(...), "MyCollection", "TokenA");
|
|
2124
|
-
*
|
|
2125
|
-
* // Serialize a string, a u64 number, and a MoveStruct instance.
|
|
2126
|
-
* const serializer = new Serializer();
|
|
2127
|
-
* serializer.serializeStr("ExampleString");
|
|
2128
|
-
* serializer.serializeU64(12345678);
|
|
2129
|
-
* serializer.serialize(moveStruct);
|
|
2130
|
-
*
|
|
2131
|
-
* // Get the bytes from the Serializer instance
|
|
2132
|
-
* const serializedBytes = serializer.toUint8Array();
|
|
2133
|
-
*
|
|
2134
|
-
* @returns the serializer instance
|
|
2135
|
-
*/
|
|
2136
|
-
serialize<T extends Serializable>(value: T): void;
|
|
2137
|
-
/**
|
|
2138
|
-
* Serializes an array of BCS Serializable values to a serializer instance.
|
|
2139
|
-
* Note that this does not return anything. The bytes are added to the serializer instance's byte buffer.
|
|
2140
|
-
*
|
|
2141
|
-
* @param values The array of BCS Serializable values
|
|
2142
|
-
* @example
|
|
2143
|
-
* const addresses = new Array<AccountAddress>(
|
|
2144
|
-
* AccountAddress.from("0x1"),
|
|
2145
|
-
* AccountAddress.from("0x2"),
|
|
2146
|
-
* AccountAddress.from("0xa"),
|
|
2147
|
-
* AccountAddress.from("0xb"),
|
|
2148
|
-
* );
|
|
2149
|
-
* const serializer = new Serializer();
|
|
2150
|
-
* serializer.serializeVector(addresses);
|
|
2151
|
-
* const serializedBytes = serializer.toUint8Array();
|
|
2152
|
-
* // serializedBytes is now the BCS-serialized bytes
|
|
2153
|
-
* // The equivalent value in Move would be:
|
|
2154
|
-
* // `bcs::to_bytes(&vector<address> [@0x1, @0x2, @0xa, @0xb])`;
|
|
2155
|
-
*/
|
|
2156
|
-
serializeVector<T extends Serializable>(values: Array<T>): void;
|
|
2157
|
-
}
|
|
2158
|
-
declare function ensureBoolean(value: unknown): asserts value is boolean;
|
|
2159
|
-
declare const outOfRangeErrorMessage: (value: AnyNumber, min: AnyNumber, max: AnyNumber) => string;
|
|
2160
|
-
declare function validateNumberInRange<T extends AnyNumber>(value: T, minValue: T, maxValue: T): void;
|
|
2161
|
-
|
|
2162
|
-
interface TransactionArgument extends EntryFunctionArgument, ScriptFunctionArgument {
|
|
163
|
+
/** column name */
|
|
164
|
+
DomainWithSuffix = "domain_with_suffix",
|
|
165
|
+
/** column name */
|
|
166
|
+
ExpirationTimestamp = "expiration_timestamp",
|
|
167
|
+
/** column name */
|
|
168
|
+
IsActive = "is_active",
|
|
169
|
+
/** column name */
|
|
170
|
+
IsPrimary = "is_primary",
|
|
171
|
+
/** column name */
|
|
172
|
+
LastTransactionVersion = "last_transaction_version",
|
|
173
|
+
/** column name */
|
|
174
|
+
OwnerAddress = "owner_address",
|
|
175
|
+
/** column name */
|
|
176
|
+
RegisteredAddress = "registered_address",
|
|
177
|
+
/** column name */
|
|
178
|
+
Subdomain = "subdomain",
|
|
179
|
+
/** column name */
|
|
180
|
+
TokenName = "token_name",
|
|
181
|
+
/** column name */
|
|
182
|
+
TokenStandard = "token_standard"
|
|
2163
183
|
}
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
* Serialize an argument as a type-agnostic, fixed byte sequence. The byte sequence contains
|
|
2171
|
-
* the number of the following bytes followed by the BCS-serialized bytes for a typed argument.
|
|
2172
|
-
*/
|
|
2173
|
-
serializeForEntryFunction(serializer: Serializer): void;
|
|
2174
|
-
bcsToBytes(): Uint8Array;
|
|
2175
|
-
bcsToHex(): Hex;
|
|
184
|
+
/** select "current_aptos_names_aggregate_bool_exp_bool_and_arguments_columns" columns of table "current_aptos_names" */
|
|
185
|
+
declare enum CurrentAptosNamesSelectColumnCurrentAptosNamesAggregateBoolExpBoolAndArgumentsColumns {
|
|
186
|
+
/** column name */
|
|
187
|
+
IsActive = "is_active",
|
|
188
|
+
/** column name */
|
|
189
|
+
IsPrimary = "is_primary"
|
|
2176
190
|
}
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
* Serialize an argument to BCS-serialized bytes as a type aware byte sequence.
|
|
2184
|
-
* The byte sequence contains an enum variant index followed by the BCS-serialized
|
|
2185
|
-
* bytes for a typed argument.
|
|
2186
|
-
*/
|
|
2187
|
-
serializeForScriptFunction(serializer: Serializer): void;
|
|
2188
|
-
bcsToBytes(): Uint8Array;
|
|
2189
|
-
bcsToHex(): Hex;
|
|
191
|
+
/** select "current_aptos_names_aggregate_bool_exp_bool_or_arguments_columns" columns of table "current_aptos_names" */
|
|
192
|
+
declare enum CurrentAptosNamesSelectColumnCurrentAptosNamesAggregateBoolExpBoolOrArgumentsColumns {
|
|
193
|
+
/** column name */
|
|
194
|
+
IsActive = "is_active",
|
|
195
|
+
/** column name */
|
|
196
|
+
IsPrimary = "is_primary"
|
|
2190
197
|
}
|
|
198
|
+
/** Boolean expression to filter rows from the table "current_fungible_asset_balances". All fields are combined with a logical 'AND'. */
|
|
199
|
+
type CurrentFungibleAssetBalancesBoolExp = {
|
|
200
|
+
_and?: InputMaybe<Array<CurrentFungibleAssetBalancesBoolExp>>;
|
|
201
|
+
_not?: InputMaybe<CurrentFungibleAssetBalancesBoolExp>;
|
|
202
|
+
_or?: InputMaybe<Array<CurrentFungibleAssetBalancesBoolExp>>;
|
|
203
|
+
amount?: InputMaybe<NumericComparisonExp>;
|
|
204
|
+
asset_type?: InputMaybe<StringComparisonExp>;
|
|
205
|
+
is_frozen?: InputMaybe<BooleanComparisonExp>;
|
|
206
|
+
is_primary?: InputMaybe<BooleanComparisonExp>;
|
|
207
|
+
last_transaction_timestamp?: InputMaybe<TimestampComparisonExp>;
|
|
208
|
+
last_transaction_version?: InputMaybe<BigintComparisonExp>;
|
|
209
|
+
metadata?: InputMaybe<FungibleAssetMetadataBoolExp>;
|
|
210
|
+
owner_address?: InputMaybe<StringComparisonExp>;
|
|
211
|
+
storage_id?: InputMaybe<StringComparisonExp>;
|
|
212
|
+
token_standard?: InputMaybe<StringComparisonExp>;
|
|
213
|
+
};
|
|
214
|
+
/** Boolean expression to filter rows from the table "events". All fields are combined with a logical 'AND'. */
|
|
215
|
+
type EventsBoolExp = {
|
|
216
|
+
_and?: InputMaybe<Array<EventsBoolExp>>;
|
|
217
|
+
_not?: InputMaybe<EventsBoolExp>;
|
|
218
|
+
_or?: InputMaybe<Array<EventsBoolExp>>;
|
|
219
|
+
account_address?: InputMaybe<StringComparisonExp>;
|
|
220
|
+
creation_number?: InputMaybe<BigintComparisonExp>;
|
|
221
|
+
data?: InputMaybe<JsonbComparisonExp>;
|
|
222
|
+
event_index?: InputMaybe<BigintComparisonExp>;
|
|
223
|
+
indexed_type?: InputMaybe<StringComparisonExp>;
|
|
224
|
+
sequence_number?: InputMaybe<BigintComparisonExp>;
|
|
225
|
+
transaction_block_height?: InputMaybe<BigintComparisonExp>;
|
|
226
|
+
transaction_version?: InputMaybe<BigintComparisonExp>;
|
|
227
|
+
type?: InputMaybe<StringComparisonExp>;
|
|
228
|
+
};
|
|
229
|
+
/** Boolean expression to filter rows from the table "fungible_asset_activities". All fields are combined with a logical 'AND'. */
|
|
230
|
+
type FungibleAssetActivitiesBoolExp = {
|
|
231
|
+
_and?: InputMaybe<Array<FungibleAssetActivitiesBoolExp>>;
|
|
232
|
+
_not?: InputMaybe<FungibleAssetActivitiesBoolExp>;
|
|
233
|
+
_or?: InputMaybe<Array<FungibleAssetActivitiesBoolExp>>;
|
|
234
|
+
amount?: InputMaybe<NumericComparisonExp>;
|
|
235
|
+
asset_type?: InputMaybe<StringComparisonExp>;
|
|
236
|
+
block_height?: InputMaybe<BigintComparisonExp>;
|
|
237
|
+
entry_function_id_str?: InputMaybe<StringComparisonExp>;
|
|
238
|
+
event_index?: InputMaybe<BigintComparisonExp>;
|
|
239
|
+
gas_fee_payer_address?: InputMaybe<StringComparisonExp>;
|
|
240
|
+
is_frozen?: InputMaybe<BooleanComparisonExp>;
|
|
241
|
+
is_gas_fee?: InputMaybe<BooleanComparisonExp>;
|
|
242
|
+
is_transaction_success?: InputMaybe<BooleanComparisonExp>;
|
|
243
|
+
metadata?: InputMaybe<FungibleAssetMetadataBoolExp>;
|
|
244
|
+
owner_address?: InputMaybe<StringComparisonExp>;
|
|
245
|
+
owner_aptos_names?: InputMaybe<CurrentAptosNamesBoolExp>;
|
|
246
|
+
owner_aptos_names_aggregate?: InputMaybe<CurrentAptosNamesAggregateBoolExp>;
|
|
247
|
+
storage_id?: InputMaybe<StringComparisonExp>;
|
|
248
|
+
storage_refund_amount?: InputMaybe<NumericComparisonExp>;
|
|
249
|
+
token_standard?: InputMaybe<StringComparisonExp>;
|
|
250
|
+
transaction_timestamp?: InputMaybe<TimestampComparisonExp>;
|
|
251
|
+
transaction_version?: InputMaybe<BigintComparisonExp>;
|
|
252
|
+
type?: InputMaybe<StringComparisonExp>;
|
|
253
|
+
};
|
|
254
|
+
/** Boolean expression to filter rows from the table "fungible_asset_metadata". All fields are combined with a logical 'AND'. */
|
|
255
|
+
type FungibleAssetMetadataBoolExp = {
|
|
256
|
+
_and?: InputMaybe<Array<FungibleAssetMetadataBoolExp>>;
|
|
257
|
+
_not?: InputMaybe<FungibleAssetMetadataBoolExp>;
|
|
258
|
+
_or?: InputMaybe<Array<FungibleAssetMetadataBoolExp>>;
|
|
259
|
+
asset_type?: InputMaybe<StringComparisonExp>;
|
|
260
|
+
creator_address?: InputMaybe<StringComparisonExp>;
|
|
261
|
+
decimals?: InputMaybe<IntComparisonExp>;
|
|
262
|
+
icon_uri?: InputMaybe<StringComparisonExp>;
|
|
263
|
+
last_transaction_timestamp?: InputMaybe<TimestampComparisonExp>;
|
|
264
|
+
last_transaction_version?: InputMaybe<BigintComparisonExp>;
|
|
265
|
+
name?: InputMaybe<StringComparisonExp>;
|
|
266
|
+
project_uri?: InputMaybe<StringComparisonExp>;
|
|
267
|
+
supply_aggregator_table_handle_v1?: InputMaybe<StringComparisonExp>;
|
|
268
|
+
supply_aggregator_table_key_v1?: InputMaybe<StringComparisonExp>;
|
|
269
|
+
symbol?: InputMaybe<StringComparisonExp>;
|
|
270
|
+
token_standard?: InputMaybe<StringComparisonExp>;
|
|
271
|
+
};
|
|
272
|
+
type JsonbCastExp = {
|
|
273
|
+
String?: InputMaybe<StringComparisonExp>;
|
|
274
|
+
};
|
|
275
|
+
/** Boolean expression to compare columns of type "jsonb". All fields are combined with logical 'AND'. */
|
|
276
|
+
type JsonbComparisonExp = {
|
|
277
|
+
_cast?: InputMaybe<JsonbCastExp>;
|
|
278
|
+
/** is the column contained in the given json value */
|
|
279
|
+
_contained_in?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
280
|
+
/** does the column contain the given json value at the top level */
|
|
281
|
+
_contains?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
282
|
+
_eq?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
283
|
+
_gt?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
284
|
+
_gte?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
285
|
+
/** does the string exist as a top-level key in the column */
|
|
286
|
+
_has_key?: InputMaybe<Scalars["String"]["input"]>;
|
|
287
|
+
/** do all of these strings exist as top-level keys in the column */
|
|
288
|
+
_has_keys_all?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
289
|
+
/** do any of these strings exist as top-level keys in the column */
|
|
290
|
+
_has_keys_any?: InputMaybe<Array<Scalars["String"]["input"]>>;
|
|
291
|
+
_in?: InputMaybe<Array<Scalars["jsonb"]["input"]>>;
|
|
292
|
+
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
293
|
+
_lt?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
294
|
+
_lte?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
295
|
+
_neq?: InputMaybe<Scalars["jsonb"]["input"]>;
|
|
296
|
+
_nin?: InputMaybe<Array<Scalars["jsonb"]["input"]>>;
|
|
297
|
+
};
|
|
298
|
+
/** Boolean expression to compare columns of type "numeric". All fields are combined with logical 'AND'. */
|
|
299
|
+
type NumericComparisonExp = {
|
|
300
|
+
_eq?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
301
|
+
_gt?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
302
|
+
_gte?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
303
|
+
_in?: InputMaybe<Array<Scalars["numeric"]["input"]>>;
|
|
304
|
+
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
305
|
+
_lt?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
306
|
+
_lte?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
307
|
+
_neq?: InputMaybe<Scalars["numeric"]["input"]>;
|
|
308
|
+
_nin?: InputMaybe<Array<Scalars["numeric"]["input"]>>;
|
|
309
|
+
};
|
|
310
|
+
/** Boolean expression to compare columns of type "timestamp". All fields are combined with logical 'AND'. */
|
|
311
|
+
type TimestampComparisonExp = {
|
|
312
|
+
_eq?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
313
|
+
_gt?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
314
|
+
_gte?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
315
|
+
_in?: InputMaybe<Array<Scalars["timestamp"]["input"]>>;
|
|
316
|
+
_is_null?: InputMaybe<Scalars["Boolean"]["input"]>;
|
|
317
|
+
_lt?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
318
|
+
_lte?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
319
|
+
_neq?: InputMaybe<Scalars["timestamp"]["input"]>;
|
|
320
|
+
_nin?: InputMaybe<Array<Scalars["timestamp"]["input"]>>;
|
|
321
|
+
};
|
|
2191
322
|
|
|
2192
323
|
/**
|
|
2193
324
|
* This class exists to represent a contiguous sequence of already serialized BCS-bytes.
|
|
@@ -2584,238 +715,6 @@ declare class MoveOption<T extends Serializable & EntryFunctionArgument> extends
|
|
|
2584
715
|
static deserialize<U extends Serializable & EntryFunctionArgument>(deserializer: Deserializer, cls: Deserializable<U>): MoveOption<U>;
|
|
2585
716
|
}
|
|
2586
717
|
|
|
2587
|
-
/**
|
|
2588
|
-
* This enum is used to explain why an address was invalid.
|
|
2589
|
-
*/
|
|
2590
|
-
declare enum AddressInvalidReason {
|
|
2591
|
-
INCORRECT_NUMBER_OF_BYTES = "incorrect_number_of_bytes",
|
|
2592
|
-
INVALID_HEX_CHARS = "invalid_hex_chars",
|
|
2593
|
-
TOO_SHORT = "too_short",
|
|
2594
|
-
TOO_LONG = "too_long",
|
|
2595
|
-
LEADING_ZERO_X_REQUIRED = "leading_zero_x_required",
|
|
2596
|
-
LONG_FORM_REQUIRED_UNLESS_SPECIAL = "long_form_required_unless_special",
|
|
2597
|
-
INVALID_PADDING_ZEROES = "INVALID_PADDING_ZEROES"
|
|
2598
|
-
}
|
|
2599
|
-
type AccountAddressInput = HexInput | AccountAddress;
|
|
2600
|
-
/**
|
|
2601
|
-
* NOTE: Only use this class for account addresses. For other hex data, e.g. transaction
|
|
2602
|
-
* hashes, use the Hex class.
|
|
2603
|
-
*
|
|
2604
|
-
* AccountAddress is used for working with account addresses. Account addresses, when
|
|
2605
|
-
* represented as a string, generally look like these examples:
|
|
2606
|
-
* - 0x1
|
|
2607
|
-
* - 0xaa86fe99004361f747f91342ca13c426ca0cccb0c1217677180c9493bad6ef0c
|
|
2608
|
-
*
|
|
2609
|
-
* Proper formatting and parsing of account addresses is defined by AIP-40.
|
|
2610
|
-
* To learn more about the standard, read the AIP here:
|
|
2611
|
-
* https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
|
|
2612
|
-
*
|
|
2613
|
-
* The comments in this class make frequent reference to the LONG and SHORT formats,
|
|
2614
|
-
* as well as "special" addresses. To learn what these refer to see AIP-40.
|
|
2615
|
-
*/
|
|
2616
|
-
declare class AccountAddress extends Serializable implements TransactionArgument {
|
|
2617
|
-
/**
|
|
2618
|
-
* This is the internal representation of an account address.
|
|
2619
|
-
*/
|
|
2620
|
-
readonly data: Uint8Array;
|
|
2621
|
-
/**
|
|
2622
|
-
* The number of bytes that make up an account address.
|
|
2623
|
-
*/
|
|
2624
|
-
static readonly LENGTH: number;
|
|
2625
|
-
/**
|
|
2626
|
-
* The length of an address string in LONG form without a leading 0x.
|
|
2627
|
-
*/
|
|
2628
|
-
static readonly LONG_STRING_LENGTH: number;
|
|
2629
|
-
static ZERO: AccountAddress;
|
|
2630
|
-
static ONE: AccountAddress;
|
|
2631
|
-
static TWO: AccountAddress;
|
|
2632
|
-
static THREE: AccountAddress;
|
|
2633
|
-
static FOUR: AccountAddress;
|
|
2634
|
-
/**
|
|
2635
|
-
* Creates an instance of AccountAddress from a Uint8Array.
|
|
2636
|
-
*
|
|
2637
|
-
* @param args.data A Uint8Array representing an account address.
|
|
2638
|
-
*/
|
|
2639
|
-
constructor(input: Uint8Array);
|
|
2640
|
-
/**
|
|
2641
|
-
* Returns whether an address is special, where special is defined as 0x0 to 0xf
|
|
2642
|
-
* inclusive. In other words, the last byte of the address must be < 0b10000 (16)
|
|
2643
|
-
* and every other byte must be zero.
|
|
2644
|
-
*
|
|
2645
|
-
* For more information on how special addresses are defined see AIP-40:
|
|
2646
|
-
* https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
|
|
2647
|
-
*
|
|
2648
|
-
* @returns true if the address is special, false if not.
|
|
2649
|
-
*/
|
|
2650
|
-
isSpecial(): boolean;
|
|
2651
|
-
/**
|
|
2652
|
-
* Return the AccountAddress as a string as per AIP-40.
|
|
2653
|
-
* https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
|
|
2654
|
-
*
|
|
2655
|
-
* In short, it means that special addresses are represented in SHORT form, meaning
|
|
2656
|
-
* 0x0 through to 0xf inclusive, and every other address is represented in LONG form,
|
|
2657
|
-
* meaning 0x + 64 hex characters.
|
|
2658
|
-
*
|
|
2659
|
-
* @returns AccountAddress as a string conforming to AIP-40.
|
|
2660
|
-
*/
|
|
2661
|
-
toString(): `0x${string}`;
|
|
2662
|
-
/**
|
|
2663
|
-
* NOTE: Prefer to use `toString` where possible.
|
|
2664
|
-
*
|
|
2665
|
-
* Return the AccountAddress as a string as per AIP-40 but without the leading 0x.
|
|
2666
|
-
*
|
|
2667
|
-
* Learn more by reading the docstring of `toString`.
|
|
2668
|
-
*
|
|
2669
|
-
* @returns AccountAddress as a string conforming to AIP-40 but without the leading 0x.
|
|
2670
|
-
*/
|
|
2671
|
-
toStringWithoutPrefix(): string;
|
|
2672
|
-
/**
|
|
2673
|
-
* NOTE: Prefer to use `toString` where possible.
|
|
2674
|
-
*
|
|
2675
|
-
* Whereas toString will format special addresses (as defined by isSpecial) using the
|
|
2676
|
-
* SHORT form (no leading 0s), this format the address in the LONG format
|
|
2677
|
-
* unconditionally.
|
|
2678
|
-
*
|
|
2679
|
-
* This means it will be 0x + 64 hex characters.
|
|
2680
|
-
*
|
|
2681
|
-
* @returns AccountAddress as a string in LONG form.
|
|
2682
|
-
*/
|
|
2683
|
-
toStringLong(): `0x${string}`;
|
|
2684
|
-
/**
|
|
2685
|
-
* NOTE: Prefer to use `toString` where possible.
|
|
2686
|
-
*
|
|
2687
|
-
* Whereas toString will format special addresses (as defined by isSpecial) using the
|
|
2688
|
-
* SHORT form (no leading 0s), this function will include leading zeroes. The string
|
|
2689
|
-
* will not have a leading zero.
|
|
2690
|
-
*
|
|
2691
|
-
* This means it will be 64 hex characters without a leading 0x.
|
|
2692
|
-
*
|
|
2693
|
-
* @returns AccountAddress as a string in LONG form without a leading 0x.
|
|
2694
|
-
*/
|
|
2695
|
-
toStringLongWithoutPrefix(): string;
|
|
2696
|
-
/**
|
|
2697
|
-
* Get the inner hex data. The inner data is already a Uint8Array so no conversion
|
|
2698
|
-
* is taking place here, it just returns the inner data.
|
|
2699
|
-
*
|
|
2700
|
-
* @returns Hex data as Uint8Array
|
|
2701
|
-
*/
|
|
2702
|
-
toUint8Array(): Uint8Array;
|
|
2703
|
-
/**
|
|
2704
|
-
* Serialize the AccountAddress to a Serializer instance's data buffer.
|
|
2705
|
-
* @param serializer The serializer to serialize the AccountAddress to.
|
|
2706
|
-
* @returns void
|
|
2707
|
-
* @example
|
|
2708
|
-
* const serializer = new Serializer();
|
|
2709
|
-
* const address = AccountAddress.fromString("0x1");
|
|
2710
|
-
* address.serialize(serializer);
|
|
2711
|
-
* const bytes = serializer.toUint8Array();
|
|
2712
|
-
* // `bytes` is now the BCS-serialized address.
|
|
2713
|
-
*/
|
|
2714
|
-
serialize(serializer: Serializer): void;
|
|
2715
|
-
serializeForEntryFunction(serializer: Serializer): void;
|
|
2716
|
-
serializeForScriptFunction(serializer: Serializer): void;
|
|
2717
|
-
/**
|
|
2718
|
-
* Deserialize an AccountAddress from the byte buffer in a Deserializer instance.
|
|
2719
|
-
* @param deserializer The deserializer to deserialize the AccountAddress from.
|
|
2720
|
-
* @returns An instance of AccountAddress.
|
|
2721
|
-
* @example
|
|
2722
|
-
* const bytes = hexToBytes("0x0102030405060708091011121314151617181920212223242526272829303132");
|
|
2723
|
-
* const deserializer = new Deserializer(bytes);
|
|
2724
|
-
* const address = AccountAddress.deserialize(deserializer);
|
|
2725
|
-
* // `address` is now an instance of AccountAddress.
|
|
2726
|
-
*/
|
|
2727
|
-
static deserialize(deserializer: Deserializer): AccountAddress;
|
|
2728
|
-
/**
|
|
2729
|
-
* NOTE: This function has strict parsing behavior. For relaxed behavior, please use
|
|
2730
|
-
* the `fromString` function.
|
|
2731
|
-
*
|
|
2732
|
-
* Creates an instance of AccountAddress from a hex string.
|
|
2733
|
-
*
|
|
2734
|
-
* This function allows only the strictest formats defined by AIP-40. In short this
|
|
2735
|
-
* means only the following formats are accepted:
|
|
2736
|
-
*
|
|
2737
|
-
* - LONG
|
|
2738
|
-
* - SHORT for special addresses
|
|
2739
|
-
*
|
|
2740
|
-
* Where:
|
|
2741
|
-
* - LONG is defined as 0x + 64 hex characters.
|
|
2742
|
-
* - SHORT for special addresses is 0x0 to 0xf inclusive without padding zeroes.
|
|
2743
|
-
*
|
|
2744
|
-
* This means the following are not accepted:
|
|
2745
|
-
* - SHORT for non-special addresses.
|
|
2746
|
-
* - Any address without a leading 0x.
|
|
2747
|
-
*
|
|
2748
|
-
* Learn more about the different address formats by reading AIP-40:
|
|
2749
|
-
* https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
|
|
2750
|
-
*
|
|
2751
|
-
* @param input A hex string representing an account address.
|
|
2752
|
-
*
|
|
2753
|
-
* @returns An instance of AccountAddress.
|
|
2754
|
-
*/
|
|
2755
|
-
static fromStringStrict(input: string): AccountAddress;
|
|
2756
|
-
/**
|
|
2757
|
-
* NOTE: This function has relaxed parsing behavior. For strict behavior, please use
|
|
2758
|
-
* the `fromStringStrict` function. Where possible use `fromStringStrict` rather than this
|
|
2759
|
-
* function, `fromString` is only provided for backwards compatibility.
|
|
2760
|
-
*
|
|
2761
|
-
* Creates an instance of AccountAddress from a hex string.
|
|
2762
|
-
*
|
|
2763
|
-
* This function allows all formats defined by AIP-40. In short this means the
|
|
2764
|
-
* following formats are accepted:
|
|
2765
|
-
*
|
|
2766
|
-
* - LONG, with or without leading 0x
|
|
2767
|
-
* - SHORT, with or without leading 0x
|
|
2768
|
-
*
|
|
2769
|
-
* Where:
|
|
2770
|
-
* - LONG is 64 hex characters.
|
|
2771
|
-
* - SHORT is 1 to 63 hex characters inclusive.
|
|
2772
|
-
* - Padding zeroes are allowed, e.g. 0x0123 is valid.
|
|
2773
|
-
*
|
|
2774
|
-
* Learn more about the different address formats by reading AIP-40:
|
|
2775
|
-
* https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-40.md.
|
|
2776
|
-
*
|
|
2777
|
-
* @param input A hex string representing an account address.
|
|
2778
|
-
*
|
|
2779
|
-
* @returns An instance of AccountAddress.
|
|
2780
|
-
*/
|
|
2781
|
-
static fromString(input: string): AccountAddress;
|
|
2782
|
-
/**
|
|
2783
|
-
* Convenience method for creating an AccountAddress from all known inputs.
|
|
2784
|
-
*
|
|
2785
|
-
* This handles, Uint8array, string, and AccountAddress itself
|
|
2786
|
-
* @param input
|
|
2787
|
-
*/
|
|
2788
|
-
static from(input: AccountAddressInput): AccountAddress;
|
|
2789
|
-
/**
|
|
2790
|
-
* Convenience method for creating an AccountAddress from all known inputs.
|
|
2791
|
-
*
|
|
2792
|
-
* This handles, Uint8array, string, and AccountAddress itself
|
|
2793
|
-
* @param input
|
|
2794
|
-
*/
|
|
2795
|
-
static fromStrict(input: AccountAddressInput): AccountAddress;
|
|
2796
|
-
/**
|
|
2797
|
-
* Check if the string is a valid AccountAddress.
|
|
2798
|
-
*
|
|
2799
|
-
* @param args.input A hex string representing an account address.
|
|
2800
|
-
* @param args.strict If true, use strict parsing behavior. If false, use relaxed parsing behavior.
|
|
2801
|
-
*
|
|
2802
|
-
* @returns valid = true if the string is valid, valid = false if not. If the string
|
|
2803
|
-
* is not valid, invalidReason will be set explaining why it is invalid.
|
|
2804
|
-
*/
|
|
2805
|
-
static isValid(args: {
|
|
2806
|
-
input: AccountAddressInput;
|
|
2807
|
-
strict?: boolean;
|
|
2808
|
-
}): ParsingResult<AddressInvalidReason>;
|
|
2809
|
-
/**
|
|
2810
|
-
* Return whether AccountAddresses are equal. AccountAddresses are considered equal
|
|
2811
|
-
* if their underlying byte data is identical.
|
|
2812
|
-
*
|
|
2813
|
-
* @param other The AccountAddress to compare to.
|
|
2814
|
-
* @returns true if the AccountAddresses are equal, false if not.
|
|
2815
|
-
*/
|
|
2816
|
-
equals(other: AccountAddress): boolean;
|
|
2817
|
-
}
|
|
2818
|
-
|
|
2819
718
|
/**
|
|
2820
719
|
* Each account stores an authentication key. Authentication key enables account owners to rotate
|
|
2821
720
|
* their private key(s) associated with the account without changing the address that hosts their account.
|
|
@@ -7565,4 +5464,4 @@ declare function postAptosFullNode<Req extends {}, Res extends {}>(options: Post
|
|
|
7565
5464
|
declare function postAptosIndexer<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
7566
5465
|
declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
7567
5466
|
|
|
7568
|
-
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress,
|
|
5467
|
+
export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountData, AccountPublicKey, AccountSequenceNumber, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, type AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, type CreateAccountFromPrivateKeyArgs, type CreateEd25519AccountFromPrivateKeyArgs, type CreateEd25519SingleKeyAccountFromPrivateKeyArgs, type CreateSingleKeyAccountFromPrivateKeyArgs, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DerivedKeys, Deserializable, type DeserializableClass, Deserializer, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type ExecutionFinishEventData, type FailureEventData, FaucetConfig, FeePayerRawTransaction, FixedBytes, FullNodeConfig, type FunctionABI, GasEstimation, type GenerateAccountArgs, type GenerateEd25519AccountArgs, type GenerateEd25519SingleKeyAccountArgs, type GenerateSingleKeyAccountArgs, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, type GetRequestOptions, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, HARDENED_OFFSET, Hex, HexInput, Identifier, IndexerConfig, type InputEntryFunctionData, type InputEntryFunctionDataWithABI, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithABI, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithABI, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewFunctionData, type InputViewFunctionDataWithABI, type InputViewFunctionDataWithRemoteABI, KeyType, LedgerInfo, LedgerVersionArg, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RotationProofChallenge, Script, ScriptFunctionArgument, type ScriptFunctionArgumentTypes, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, SimpleTransaction, SingleKeyAccount, type SingleKeySignerConstructorArgs, type SingleKeySignerFromDerivationPathArgs, type SingleKeySignerGenerateArgs, StructTag, type SuccessEventData, TableItemRequest, TokenStandardArg, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint16, Uint32, Uint8, UserTransactionResponse, type VerifyEd25519SignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, WaitForTransactionOptions, WhereArg, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, createObjectAddress, createResourceAddress, createTokenAddress, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, hashValues, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEncodedEntryFunctionArgument, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, normalizeBundle, objectStructTag, optionStructTag, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, promiseFulfilledStatus, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };
|