@aptos-labs/ts-sdk 1.16.0-zeta.3 → 1.17.0-zeta.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-YfW6h4Ja.d.ts → accountAddress-jP2Ua0t9.d.ts} +1 -1
- package/dist/common/chunk-BHKSQXUZ.js +2 -0
- package/dist/common/chunk-BHKSQXUZ.js.map +1 -0
- package/dist/common/cli/index.d.ts +1 -1
- package/dist/common/cli/index.js +1 -1
- package/dist/common/index.d.ts +176 -144
- package/dist/common/index.js +27 -27
- package/dist/common/index.js.map +1 -1
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.d.mts +6 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/KeylessAccount.d.mts +4 -5
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +2 -2
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/api/account.d.mts +2 -2
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.d.mts +2 -2
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +1 -1
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/coin.d.mts +2 -2
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.d.mts +2 -2
- 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.d.mts +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.d.mts +8 -3
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.d.mts +2 -2
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.d.mts +2 -2
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/simulate.d.mts +2 -2
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.d.mts +2 -2
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/{chunk-2SJENNM4.mjs → chunk-2G4IGSGM.mjs} +2 -2
- package/dist/esm/{chunk-TEGJAM44.mjs → chunk-3SACE4I2.mjs} +2 -2
- package/dist/esm/chunk-4BJA3QUQ.mjs +2 -0
- package/dist/esm/{chunk-F7XWXQHU.mjs.map → chunk-4BJA3QUQ.mjs.map} +1 -1
- package/dist/esm/{chunk-O3BRX56F.mjs → chunk-4CUDBBTC.mjs} +2 -2
- package/dist/esm/chunk-54LCK6EN.mjs +2 -0
- package/dist/esm/chunk-54LCK6EN.mjs.map +1 -0
- package/dist/esm/{chunk-JBX3JBIW.mjs → chunk-5WFKJO5L.mjs} +2 -2
- package/dist/esm/{chunk-AXR47GFL.mjs → chunk-64CUEMFI.mjs} +2 -2
- package/dist/esm/{chunk-B74ZAMWR.mjs → chunk-64VPA7CM.mjs} +2 -2
- package/dist/esm/{chunk-MPTKOK27.mjs → chunk-7G3RSOWE.mjs} +2 -2
- package/dist/esm/{chunk-ARHEUGVT.mjs → chunk-7M4C4OZN.mjs} +2 -2
- package/dist/esm/{chunk-AEWSL7BS.mjs → chunk-7UKBRLGM.mjs} +2 -2
- package/dist/esm/{chunk-ERPUZQVK.mjs → chunk-B2RYTKNN.mjs} +2 -2
- package/dist/esm/chunk-BCZGONNO.mjs +2 -0
- package/dist/esm/chunk-BCZGONNO.mjs.map +1 -0
- package/dist/esm/{chunk-JEE2OXOZ.mjs → chunk-BLWJZXAD.mjs} +2 -2
- package/dist/esm/{chunk-Z6FMMNAL.mjs → chunk-BT6IM25V.mjs} +2 -2
- package/dist/esm/{chunk-X2VUS374.mjs → chunk-CPDSBH23.mjs} +2 -2
- package/dist/esm/{chunk-LA67NWMV.mjs → chunk-DJPYZIJY.mjs} +2 -2
- package/dist/esm/chunk-EHL3WIK3.mjs +2 -0
- package/dist/esm/chunk-EHL3WIK3.mjs.map +1 -0
- package/dist/esm/{chunk-UBON2G6Y.mjs → chunk-FNFQA7NS.mjs} +2 -2
- package/dist/esm/chunk-FR6UGCOX.mjs +2 -0
- package/dist/esm/chunk-FR6UGCOX.mjs.map +1 -0
- package/dist/esm/{chunk-E62NBNHE.mjs → chunk-FSO54CI4.mjs} +2 -2
- package/dist/esm/{chunk-EJQ2EYJ7.mjs → chunk-GBQU2OCK.mjs} +2 -2
- package/dist/esm/{chunk-ZNPEUH4I.mjs → chunk-GPWSPT44.mjs} +2 -2
- package/dist/esm/{chunk-TV7RXL3V.mjs → chunk-GQC73XWZ.mjs} +2 -2
- package/dist/esm/{chunk-QMYYNCC2.mjs → chunk-HGJMVOBH.mjs} +2 -2
- package/dist/esm/{chunk-J63BIFB7.mjs → chunk-HP6YVTTT.mjs} +2 -2
- package/dist/esm/{chunk-2DESIV2P.mjs → chunk-HXYZECGS.mjs} +2 -2
- package/dist/esm/{chunk-PAJXNH6J.mjs → chunk-IBDBKQMF.mjs} +2 -2
- package/dist/esm/{chunk-OR27VDOE.mjs → chunk-IPFITPKC.mjs} +2 -2
- package/dist/esm/{chunk-2BDKITTE.mjs → chunk-IT7YNITU.mjs} +2 -2
- package/dist/esm/chunk-J3DCBYOY.mjs +2 -0
- package/dist/esm/chunk-J3DCBYOY.mjs.map +1 -0
- package/dist/esm/{chunk-CCIY5VLR.mjs → chunk-JZOTXY77.mjs} +2 -2
- package/dist/esm/{chunk-YDSBZMZB.mjs → chunk-L5ZHZWHI.mjs} +2 -2
- package/dist/esm/{chunk-NTQLNAKS.mjs → chunk-LDQJ5S77.mjs} +2 -2
- package/dist/esm/{chunk-MMM5NTKW.mjs → chunk-LIT6V2A6.mjs} +2 -2
- package/dist/esm/{chunk-QNDR3S5U.mjs → chunk-MNTLX37G.mjs} +2 -2
- package/dist/esm/{chunk-3TIXNBXM.mjs → chunk-O7VXANBW.mjs} +2 -2
- package/dist/esm/{chunk-4AWM7GGV.mjs → chunk-QFVQSFBZ.mjs} +2 -2
- package/dist/esm/chunk-QSMVCD52.mjs +2 -0
- package/dist/esm/chunk-QSMVCD52.mjs.map +1 -0
- package/dist/esm/{chunk-VRO3J43Z.mjs → chunk-R2TZZVTU.mjs} +2 -2
- package/dist/esm/chunk-R2TZZVTU.mjs.map +1 -0
- package/dist/esm/{chunk-NZBZV7RP.mjs → chunk-S5ABQH5R.mjs} +2 -2
- package/dist/esm/{chunk-JV6JCXCH.mjs → chunk-SYRND55P.mjs} +2 -2
- package/dist/esm/{chunk-2Y7GVUQQ.mjs → chunk-U3S4AX6K.mjs} +2 -2
- package/dist/esm/{chunk-7SOLAI6Q.mjs → chunk-U5F4NL24.mjs} +2 -2
- package/dist/esm/{chunk-6OQBDCDK.mjs → chunk-UHZWZWJ7.mjs} +2 -2
- package/dist/esm/{chunk-GTXZNAYI.mjs → chunk-UVTJEMV4.mjs} +2 -2
- package/dist/esm/{chunk-OAX7LYUZ.mjs → chunk-VIX4BX35.mjs} +2 -2
- package/dist/esm/{chunk-5SGAX4VT.mjs → chunk-W63KIXLK.mjs} +2 -2
- package/dist/esm/{chunk-OJ6AF4YT.mjs → chunk-WIYDJE6F.mjs} +2 -2
- package/dist/esm/{chunk-TDDJZLWB.mjs → chunk-X3HGM2KT.mjs} +2 -2
- package/dist/esm/{chunk-EJA532W4.mjs → chunk-X4X5H6NC.mjs} +2 -2
- package/dist/esm/{chunk-CI64RKDE.mjs → chunk-YA4XTZNZ.mjs} +2 -2
- package/dist/esm/{chunk-LYOUEPDG.mjs → chunk-YD5IB4TH.mjs} +2 -2
- package/dist/esm/chunk-YD5IB4TH.mjs.map +1 -0
- package/dist/esm/chunk-YTQVMLFD.mjs +2 -0
- package/dist/esm/chunk-YTQVMLFD.mjs.map +1 -0
- package/dist/esm/{chunk-IPI3VB62.mjs → chunk-ZIDLP5MI.mjs} +2 -2
- package/dist/esm/{chunk-66G6MKI6.mjs → chunk-ZV5MKFV7.mjs} +2 -2
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.mjs +1 -1
- 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/crypto/cryptoHashable.mjs +2 -0
- package/dist/esm/core/crypto/index.d.mts +3 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.d.mts +17 -4
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/index.d.mts +3 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +4 -4
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.mjs +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/keyless.d.mts +1 -1
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.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.d.mts +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/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.d.mts +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/signingMessage.d.mts +15 -3
- package/dist/esm/transactions/transactionBuilder/signingMessage.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/helpers.d.mts +2 -2
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -2
- package/src/account/EphemeralKeyPair.ts +12 -11
- package/src/account/KeylessAccount.ts +1 -5
- package/src/api/keyless.ts +7 -2
- package/src/core/crypto/keyless.ts +83 -26
- package/src/internal/keyless.ts +13 -86
- package/src/transactions/management/accountSequenceNumber.ts +5 -8
- package/src/transactions/transactionBuilder/signingMessage.ts +16 -0
- package/src/utils/helpers.ts +1 -9
- package/src/version.ts +1 -1
- package/dist/common/chunk-HPZUSDYP.js +0 -2
- package/dist/common/chunk-HPZUSDYP.js.map +0 -1
- package/dist/esm/chunk-572AE4D7.mjs +0 -2
- package/dist/esm/chunk-572AE4D7.mjs.map +0 -1
- package/dist/esm/chunk-7FUZE7F4.mjs +0 -2
- package/dist/esm/chunk-7FUZE7F4.mjs.map +0 -1
- package/dist/esm/chunk-7GU3E2FJ.mjs +0 -2
- package/dist/esm/chunk-7GU3E2FJ.mjs.map +0 -1
- package/dist/esm/chunk-F7XWXQHU.mjs +0 -2
- package/dist/esm/chunk-KGHBTSDR.mjs +0 -2
- package/dist/esm/chunk-KGHBTSDR.mjs.map +0 -1
- package/dist/esm/chunk-LYOUEPDG.mjs.map +0 -1
- package/dist/esm/chunk-QHB5A5YP.mjs +0 -2
- package/dist/esm/chunk-QHB5A5YP.mjs.map +0 -1
- package/dist/esm/chunk-UKKHWC4Y.mjs +0 -2
- package/dist/esm/chunk-UKKHWC4Y.mjs.map +0 -1
- package/dist/esm/chunk-VRO3J43Z.mjs.map +0 -1
- package/dist/esm/chunk-WT5HOIK6.mjs +0 -2
- package/dist/esm/chunk-WT5HOIK6.mjs.map +0 -1
- package/dist/esm/core/crypto/cryptoHasher.mjs +0 -2
- /package/dist/esm/{chunk-2SJENNM4.mjs.map → chunk-2G4IGSGM.mjs.map} +0 -0
- /package/dist/esm/{chunk-TEGJAM44.mjs.map → chunk-3SACE4I2.mjs.map} +0 -0
- /package/dist/esm/{chunk-O3BRX56F.mjs.map → chunk-4CUDBBTC.mjs.map} +0 -0
- /package/dist/esm/{chunk-JBX3JBIW.mjs.map → chunk-5WFKJO5L.mjs.map} +0 -0
- /package/dist/esm/{chunk-AXR47GFL.mjs.map → chunk-64CUEMFI.mjs.map} +0 -0
- /package/dist/esm/{chunk-B74ZAMWR.mjs.map → chunk-64VPA7CM.mjs.map} +0 -0
- /package/dist/esm/{chunk-MPTKOK27.mjs.map → chunk-7G3RSOWE.mjs.map} +0 -0
- /package/dist/esm/{chunk-ARHEUGVT.mjs.map → chunk-7M4C4OZN.mjs.map} +0 -0
- /package/dist/esm/{chunk-AEWSL7BS.mjs.map → chunk-7UKBRLGM.mjs.map} +0 -0
- /package/dist/esm/{chunk-ERPUZQVK.mjs.map → chunk-B2RYTKNN.mjs.map} +0 -0
- /package/dist/esm/{chunk-JEE2OXOZ.mjs.map → chunk-BLWJZXAD.mjs.map} +0 -0
- /package/dist/esm/{chunk-Z6FMMNAL.mjs.map → chunk-BT6IM25V.mjs.map} +0 -0
- /package/dist/esm/{chunk-X2VUS374.mjs.map → chunk-CPDSBH23.mjs.map} +0 -0
- /package/dist/esm/{chunk-LA67NWMV.mjs.map → chunk-DJPYZIJY.mjs.map} +0 -0
- /package/dist/esm/{chunk-UBON2G6Y.mjs.map → chunk-FNFQA7NS.mjs.map} +0 -0
- /package/dist/esm/{chunk-E62NBNHE.mjs.map → chunk-FSO54CI4.mjs.map} +0 -0
- /package/dist/esm/{chunk-EJQ2EYJ7.mjs.map → chunk-GBQU2OCK.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZNPEUH4I.mjs.map → chunk-GPWSPT44.mjs.map} +0 -0
- /package/dist/esm/{chunk-TV7RXL3V.mjs.map → chunk-GQC73XWZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-QMYYNCC2.mjs.map → chunk-HGJMVOBH.mjs.map} +0 -0
- /package/dist/esm/{chunk-J63BIFB7.mjs.map → chunk-HP6YVTTT.mjs.map} +0 -0
- /package/dist/esm/{chunk-2DESIV2P.mjs.map → chunk-HXYZECGS.mjs.map} +0 -0
- /package/dist/esm/{chunk-PAJXNH6J.mjs.map → chunk-IBDBKQMF.mjs.map} +0 -0
- /package/dist/esm/{chunk-OR27VDOE.mjs.map → chunk-IPFITPKC.mjs.map} +0 -0
- /package/dist/esm/{chunk-2BDKITTE.mjs.map → chunk-IT7YNITU.mjs.map} +0 -0
- /package/dist/esm/{chunk-CCIY5VLR.mjs.map → chunk-JZOTXY77.mjs.map} +0 -0
- /package/dist/esm/{chunk-YDSBZMZB.mjs.map → chunk-L5ZHZWHI.mjs.map} +0 -0
- /package/dist/esm/{chunk-NTQLNAKS.mjs.map → chunk-LDQJ5S77.mjs.map} +0 -0
- /package/dist/esm/{chunk-MMM5NTKW.mjs.map → chunk-LIT6V2A6.mjs.map} +0 -0
- /package/dist/esm/{chunk-QNDR3S5U.mjs.map → chunk-MNTLX37G.mjs.map} +0 -0
- /package/dist/esm/{chunk-3TIXNBXM.mjs.map → chunk-O7VXANBW.mjs.map} +0 -0
- /package/dist/esm/{chunk-4AWM7GGV.mjs.map → chunk-QFVQSFBZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-NZBZV7RP.mjs.map → chunk-S5ABQH5R.mjs.map} +0 -0
- /package/dist/esm/{chunk-JV6JCXCH.mjs.map → chunk-SYRND55P.mjs.map} +0 -0
- /package/dist/esm/{chunk-2Y7GVUQQ.mjs.map → chunk-U3S4AX6K.mjs.map} +0 -0
- /package/dist/esm/{chunk-7SOLAI6Q.mjs.map → chunk-U5F4NL24.mjs.map} +0 -0
- /package/dist/esm/{chunk-6OQBDCDK.mjs.map → chunk-UHZWZWJ7.mjs.map} +0 -0
- /package/dist/esm/{chunk-GTXZNAYI.mjs.map → chunk-UVTJEMV4.mjs.map} +0 -0
- /package/dist/esm/{chunk-OAX7LYUZ.mjs.map → chunk-VIX4BX35.mjs.map} +0 -0
- /package/dist/esm/{chunk-5SGAX4VT.mjs.map → chunk-W63KIXLK.mjs.map} +0 -0
- /package/dist/esm/{chunk-OJ6AF4YT.mjs.map → chunk-WIYDJE6F.mjs.map} +0 -0
- /package/dist/esm/{chunk-TDDJZLWB.mjs.map → chunk-X3HGM2KT.mjs.map} +0 -0
- /package/dist/esm/{chunk-EJA532W4.mjs.map → chunk-X4X5H6NC.mjs.map} +0 -0
- /package/dist/esm/{chunk-CI64RKDE.mjs.map → chunk-YA4XTZNZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-IPI3VB62.mjs.map → chunk-ZIDLP5MI.mjs.map} +0 -0
- /package/dist/esm/{chunk-66G6MKI6.mjs.map → chunk-ZV5MKFV7.mjs.map} +0 -0
- /package/dist/esm/core/crypto/{cryptoHasher.d.mts → cryptoHashable.d.mts} +0 -0
- /package/dist/esm/core/crypto/{cryptoHasher.mjs.map → cryptoHashable.mjs.map} +0 -0
- /package/src/core/crypto/{cryptoHasher.ts → cryptoHashable.ts} +0 -0
|
@@ -2211,4 +2211,4 @@ declare class AccountAddress extends Serializable implements TransactionArgument
|
|
|
2211
2211
|
equals(other: AccountAddress): boolean;
|
|
2212
2212
|
}
|
|
2213
2213
|
|
|
2214
|
-
export { type WaitForTransactionOptions as $, type AnyNumber as A, type GetAccountCollectionsWithOwnedTokenResponse as B, type Client as C, Deserializer as D, type EntryFunctionArgument as E, type FullNodeConfig as F, type GetAccountOwnedTokensQueryResponse as G, type HexInput as H, type IndexerConfig as I, type GetAccountCoinsDataResponse as J, type GetAccountOwnedObjectsResponse as K, type LedgerVersionArg as L, type MoveModuleId as M, Network as N, type OrderByArg as O, type PaginationArgs as P, type GetCollectionDataResponse as Q, type GetTokenDataResponse as R, Serializable as S, type TransactionArgument as T, type Uint8 as U, type GetCurrentTokenOwnershipResponse as V, type WhereArg as W, type GetOwnedTokensResponse as X, type GetTokenActivityResponse as Y, ZkpVariant as Z, type GetEventsResponse as _, Serializer as a, type TransactionPayloadResponse as a$, type UserTransactionResponse as a0, type MoveFunction as a1, type GetFungibleAssetMetadataResponse as a2, type GetFungibleAssetActivitiesResponse as a3, type GetCurrentFungibleAssetBalancesResponse as a4, type LedgerInfo as a5, type Block as a6, type MoveValue as a7, type GetChainTopUserTransactionsResponse as a8, type GraphqlQuery as a9, AccountAuthenticatorVariant as aA, AnySignatureVariant as aB, EphemeralSignatureVariant as aC, type Uint64 as aD, type Uint128 as aE, type Uint256 as aF, type ClientHeadersType as aG, TransactionResponseType as aH, isPendingTransactionResponse as aI, isUserTransactionResponse as aJ, isGenesisTransactionResponse as aK, isBlockMetadataTransactionResponse as aL, isStateCheckpointTransactionResponse as aM, isValidatorTransactionResponse as aN, type GenesisTransactionResponse as aO, type BlockMetadataTransactionResponse as aP, type StateCheckpointTransactionResponse as aQ, type ValidatorTransactionResponse as aR, type WriteSetChange as aS, type WriteSetChangeDeleteModule as aT, type WriteSetChangeDeleteResource as aU, type WriteSetChangeDeleteTableItem as aV, type WriteSetChangeWriteModule as aW, type WriteSetChangeWriteResource as aX, type WriteSetChangeWriteTableItem as aY, type DecodedTableData as aZ, type DeletedTableData as a_, type GetProcessorStatusResponse as aa, type GetANSNameResponse as ab, type GetNumberOfDelegatorsResponse as ac, type GetDelegatedStakingActivitiesResponse as ad, type PendingTransactionResponse as ae, type CommittedTransactionResponse as af, type GasEstimation as ag, type TableItemRequest as ah, type GetTableItemsDataResponse as ai, type GetTableItemsMetadataResponse as aj, type AptosRequest as ak, type ClientRequest as al, type ClientResponse as am, MimeType as an, ensureBoolean as ao, outOfRangeErrorMessage as ap, validateNumberInRange as aq, AddressInvalidReason as ar, ParsingError as as, type ParsingResult as at, HexInvalidReason as au, TypeTagVariants as av, ScriptTransactionArgumentVariants as aw, TransactionPayloadVariants as ax, TransactionVariants as ay, TransactionAuthenticatorVariant as az, type Uint16 as b, type EntryFunctionPayloadResponse as b0, type ScriptPayloadResponse as b1, type MultisigPayloadResponse as b2, type GenesisPayload as b3, type MoveScriptBytecode as b4, type TransactionSignature as b5, isEd25519Signature as b6, isSecp256k1Signature as b7, isMultiAgentSignature as b8, isFeePayerSignature as b9, type MoveModule as bA, type MoveStruct as bB, RoleType as bC, DeriveScheme as bD, type GenerateAccountWithEd25519 as bE, type GenerateAccountWithSingleSignerSecp256k1Key as bF, type GenerateAccount as bG, type OrderBy as bH, type OrderByValue as bI, type TokenStandard as bJ, NetworkToIndexerAPI as bK, NetworkToNodeAPI as bL, NetworkToFaucetAPI as bM, NetworkToPepperAPI as bN, NetworkToProverAPI as bO, NetworkToChainId as bP, NetworkToNetworkName as bQ, isMultiEd25519Signature as ba, type TransactionEd25519Signature as bb, type TransactionSecp256k1Signature as bc, type TransactionMultiEd25519Signature as bd, type TransactionMultiAgentSignature as be, type TransactionFeePayerSignature as bf, type AccountSignature as bg, type WriteSet as bh, type ScriptWriteSet as bi, type DirectWriteSet as bj, type EventGuid as bk, type Event as bl, type MoveUint8Type as bm, type MoveUint16Type as bn, type MoveUint32Type as bo, type MoveUint64Type as bp, type MoveUint128Type as bq, type MoveUint256Type as br, type MoveAddressType as bs, type MoveObjectType as bt, type MoveOptionType as bu, type MoveStructType as bv, type MoveType as bw, MoveFunctionVisibility as bx, MoveAbility as by, type MoveStructField as bz, type Uint32 as c, type Deserializable as d, Hex as e, type AuthenticationKeyScheme as f, AccountAddress as g, AnyPublicKeyVariant as h, EphemeralPublicKeyVariant as i,
|
|
2214
|
+
export { type WaitForTransactionOptions as $, type AnyNumber as A, type GetAccountCollectionsWithOwnedTokenResponse as B, type Client as C, Deserializer as D, type EntryFunctionArgument as E, type FullNodeConfig as F, type GetAccountOwnedTokensQueryResponse as G, type HexInput as H, type IndexerConfig as I, type GetAccountCoinsDataResponse as J, type GetAccountOwnedObjectsResponse as K, type LedgerVersionArg as L, type MoveModuleId as M, Network as N, type OrderByArg as O, type PaginationArgs as P, type GetCollectionDataResponse as Q, type GetTokenDataResponse as R, Serializable as S, type TransactionArgument as T, type Uint8 as U, type GetCurrentTokenOwnershipResponse as V, type WhereArg as W, type GetOwnedTokensResponse as X, type GetTokenActivityResponse as Y, ZkpVariant as Z, type GetEventsResponse as _, Serializer as a, type TransactionPayloadResponse as a$, type UserTransactionResponse as a0, type MoveFunction as a1, type GetFungibleAssetMetadataResponse as a2, type GetFungibleAssetActivitiesResponse as a3, type GetCurrentFungibleAssetBalancesResponse as a4, type LedgerInfo as a5, type Block as a6, type MoveValue as a7, type GetChainTopUserTransactionsResponse as a8, type GraphqlQuery as a9, AccountAuthenticatorVariant as aA, AnySignatureVariant as aB, EphemeralSignatureVariant as aC, type Uint64 as aD, type Uint128 as aE, type Uint256 as aF, type ClientHeadersType as aG, TransactionResponseType as aH, isPendingTransactionResponse as aI, isUserTransactionResponse as aJ, isGenesisTransactionResponse as aK, isBlockMetadataTransactionResponse as aL, isStateCheckpointTransactionResponse as aM, isValidatorTransactionResponse as aN, type GenesisTransactionResponse as aO, type BlockMetadataTransactionResponse as aP, type StateCheckpointTransactionResponse as aQ, type ValidatorTransactionResponse as aR, type WriteSetChange as aS, type WriteSetChangeDeleteModule as aT, type WriteSetChangeDeleteResource as aU, type WriteSetChangeDeleteTableItem as aV, type WriteSetChangeWriteModule as aW, type WriteSetChangeWriteResource as aX, type WriteSetChangeWriteTableItem as aY, type DecodedTableData as aZ, type DeletedTableData as a_, type GetProcessorStatusResponse as aa, type GetANSNameResponse as ab, type GetNumberOfDelegatorsResponse as ac, type GetDelegatedStakingActivitiesResponse as ad, type PendingTransactionResponse as ae, type CommittedTransactionResponse as af, type GasEstimation as ag, type TableItemRequest as ah, type GetTableItemsDataResponse as ai, type GetTableItemsMetadataResponse as aj, type AptosRequest as ak, type ClientRequest as al, type ClientResponse as am, MimeType as an, ensureBoolean as ao, outOfRangeErrorMessage as ap, validateNumberInRange as aq, AddressInvalidReason as ar, ParsingError as as, type ParsingResult as at, HexInvalidReason as au, TypeTagVariants as av, ScriptTransactionArgumentVariants as aw, TransactionPayloadVariants as ax, TransactionVariants as ay, TransactionAuthenticatorVariant as az, type Uint16 as b, type EntryFunctionPayloadResponse as b0, type ScriptPayloadResponse as b1, type MultisigPayloadResponse as b2, type GenesisPayload as b3, type MoveScriptBytecode as b4, type TransactionSignature as b5, isEd25519Signature as b6, isSecp256k1Signature as b7, isMultiAgentSignature as b8, isFeePayerSignature as b9, type MoveModule as bA, type MoveStruct as bB, RoleType as bC, DeriveScheme as bD, type GenerateAccountWithEd25519 as bE, type GenerateAccountWithSingleSignerSecp256k1Key as bF, type GenerateAccount as bG, type OrderBy as bH, type OrderByValue as bI, type TokenStandard as bJ, NetworkToIndexerAPI as bK, NetworkToNodeAPI as bL, NetworkToFaucetAPI as bM, NetworkToPepperAPI as bN, NetworkToProverAPI as bO, NetworkToChainId as bP, NetworkToNetworkName as bQ, isMultiEd25519Signature as ba, type TransactionEd25519Signature as bb, type TransactionSecp256k1Signature as bc, type TransactionMultiEd25519Signature as bd, type TransactionMultiAgentSignature as be, type TransactionFeePayerSignature as bf, type AccountSignature as bg, type WriteSet as bh, type ScriptWriteSet as bi, type DirectWriteSet as bj, type EventGuid as bk, type Event as bl, type MoveUint8Type as bm, type MoveUint16Type as bn, type MoveUint32Type as bo, type MoveUint64Type as bp, type MoveUint128Type as bq, type MoveUint256Type as br, type MoveAddressType as bs, type MoveObjectType as bt, type MoveOptionType as bu, type MoveStructType as bv, type MoveType as bw, MoveFunctionVisibility as bx, MoveAbility as by, type MoveStructField as bz, type Uint32 as c, type Deserializable as d, Hex as e, type AuthenticationKeyScheme as f, AccountAddress as g, AnyPublicKeyVariant as h, EphemeralPublicKeyVariant as i, type ClientConfig as j, type FaucetConfig as k, type AptosSettings as l, EphemeralCertificateVariant as m, type ScriptFunctionArgument as n, type MoveFunctionId as o, type AccountAddressInput as p, type MoveFunctionGenericTypeParam as q, SigningSchemeInput as r, SigningScheme as s, type AccountData as t, type MoveModuleBytecode as u, type TransactionResponse as v, type MoveResource as w, type MoveStructId as x, type TokenStandardArg as y, type GetAccountOwnedTokensFromCollectionResponse as z };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var d=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var l=(o,e,t,r)=>{for(var n=r>1?void 0:r?i(e,t):e,s=o.length-1,c;s>=0;s--)(c=o[s])&&(n=(r?c(e,t,n):c(n))||n);return r&&n&&d(e,t,n),n};var _jsbase64 = require('js-base64');async function m(o){return new Promise(e=>{setTimeout(e,o)})}var p=()=>Math.floor(Date.now()/1e3);function f(o){let e=new Date(o*1e3);return e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),Math.floor(e.getTime()/1e3)}function b(o){let e=o.replace(/-/g,"+").replace(/_/g,"/"),t=e+"==".substring(0,(3-e.length%3)%3);return _jsbase64.decode.call(void 0, t)}exports.a = l; exports.b = m; exports.c = p; exports.d = f; exports.e = b;
|
|
2
|
+
//# sourceMappingURL=chunk-BHKSQXUZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/helpers.ts"],"names":["decode","sleep","timeMs","resolve","nowInSeconds","floorToWholeHour","timestampInSeconds","date","base64UrlDecode","base64Url","base64","paddedBase64"],"mappings":"wMAGA,OAAS,UAAAA,MAAc,YAMvB,eAAsBC,EAAMC,EAA+B,CACzD,OAAO,IAAI,QAASC,GAAY,CAC9B,WAAWA,EAASD,CAAM,CAC5B,CAAC,CACH,CAEO,IAAME,EAAe,IAAM,KAAK,MAAM,KAAK,IAAI,EAAI,GAAI,EAEvD,SAASC,EAAiBC,EAAoC,CACnE,IAAMC,EAAO,IAAI,KAAKD,EAAqB,GAAI,EAE/C,OAAAC,EAAK,WAAW,CAAC,EACjBA,EAAK,WAAW,CAAC,EACjBA,EAAK,gBAAgB,CAAC,EACf,KAAK,MAAMA,EAAK,QAAQ,EAAI,GAAI,CACzC,CAEO,SAASC,EAAgBC,EAA2B,CAEzD,IAAMC,EAASD,EAAU,QAAQ,KAAM,GAAG,EAAE,QAAQ,KAAM,GAAG,EAEvDE,EAAeD,EAAS,KAAK,UAAU,GAAI,EAAKA,EAAO,OAAS,GAAM,CAAC,EAE7E,OADsBV,EAAOW,CAAY,CAE3C","sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { decode } from \"js-base64\";\n\n/**\n * Sleep the current thread for the given amount of time\n * @param timeMs time in milliseconds to sleep\n */\nexport async function sleep(timeMs: number): Promise<null> {\n return new Promise((resolve) => {\n setTimeout(resolve, timeMs);\n });\n}\n\nexport const nowInSeconds = () => Math.floor(Date.now() / 1000);\n\nexport function floorToWholeHour(timestampInSeconds: number): number {\n const date = new Date(timestampInSeconds * 1000);\n // Reset minutes and seconds to zero\n date.setMinutes(0);\n date.setSeconds(0);\n date.setMilliseconds(0);\n return Math.floor(date.getTime() / 1000);\n}\n\nexport function base64UrlDecode(base64Url: string): string {\n // Replace base64url-specific characters\n const base64 = base64Url.replace(/-/g, \"+\").replace(/_/g, \"/\");\n // Pad the string with '=' characters if needed\n const paddedBase64 = base64 + \"==\".substring(0, (3 - (base64.length % 3)) % 3);\n const decodedString = decode(paddedBase64);\n return decodedString;\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ChildProcessWithoutNullStreams } from 'child_process';
|
|
2
|
-
import { N as Network, g as AccountAddress } from '../accountAddress-
|
|
2
|
+
import { N as Network, g as AccountAddress } from '../accountAddress-jP2Ua0t9.js';
|
|
3
3
|
|
|
4
4
|
declare class LocalNode {
|
|
5
5
|
readonly MAXIMUM_WAIT_TIME_SEC = 75;
|
package/dist/common/cli/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkBHKSQXUZjs = require('../chunk-BHKSQXUZ.js');var _child_process = require('child_process');var _treekill = require('tree-kill'); var _treekill2 = _interopRequireDefault(_treekill);var _os = require('os');var d=class{constructor(){this.MAXIMUM_WAIT_TIME_SEC=75;this.READINESS_ENDPOINT="http://127.0.0.1:8070/";this.process=null}stop(){_optionalChain([this, 'access', _ => _.process, 'optionalAccess', _2 => _2.pid])&&_treekill2.default.call(void 0, this.process.pid)}async run(){await this.checkIfProcessIsUp()||(this.start(),await this.waitUntilProcessIsUp())}start(){let s="npx",t=["aptos","node","run-local-testnet","--force-restart","--assume-yes","--with-indexer-api"],e=_os.platform.call(void 0, ),r;e==="win32"?r=_child_process.spawn.call(void 0, s,t,{shell:!0}):r=_child_process.spawn.call(void 0, s,t),this.process=r,_optionalChain([r, 'access', _3 => _3.stderr, 'optionalAccess', _4 => _4.on, 'call', _5 => _5("data",o=>{let a=o.toString();console.log(a)})]),_optionalChain([r, 'access', _6 => _6.stdout, 'optionalAccess', _7 => _7.on, 'call', _8 => _8("data",o=>{let a=o.toString();console.log(a)})])}async waitUntilProcessIsUp(){let s=await this.checkIfProcessIsUp(),t=Date.now()/1e3,e=t;for(;!s&&t+this.MAXIMUM_WAIT_TIME_SEC>e;)await _chunkBHKSQXUZjs.b.call(void 0, 1e3),s=await this.checkIfProcessIsUp(),e=Date.now()/1e3;if(!s)throw new Error("Process failed to start");return!0}async checkIfProcessIsUp(){try{return(await fetch(this.READINESS_ENDPOINT)).status===200}catch (e2){return!1}}};var l=class{async init(s){let{network:t,profile:e}=s,r=["aptos","init",`--network=${_nullishCoalesce(t, () => ("local"))}`,`--profile=${_nullishCoalesce(e, () => ("default"))}`];return this.runCommand(r)}async compile(s){let{packageDirectoryPath:t,namedAddresses:e}=s,r=["aptos","move","compile","--package-dir",t,"--skip-fetch-latest-git-deps"],o=this.parseNamedAddresses(e);return r.push(...this.prepareNamedAddresses(o)),this.runCommand(r)}async test(s){let{packageDirectoryPath:t,namedAddresses:e}=s,r=["aptos","move","test","--package-dir",t,"--skip-fetch-latest-git-deps"],o=this.parseNamedAddresses(e);return r.push(...this.prepareNamedAddresses(o)),this.runCommand(r)}async publish(s){let{packageDirectoryPath:t,namedAddresses:e,profile:r}=s,o=["aptos","move","publish","--package-dir",t,"--skip-fetch-latest-git-deps",`--profile=${_nullishCoalesce(r, () => ("default"))}`],a=this.parseNamedAddresses(e);return o.push(...this.prepareNamedAddresses(a)),this.runCommand(o)}async runCommand(s){return new Promise((t,e)=>{let r=_os.platform.call(void 0, ),o;r==="win32"?o=_child_process.spawn.call(void 0, "npx",s,{shell:!0}):o=_child_process.spawn.call(void 0, "npx",s),o.stdout.pipe(process.stdout),o.stderr.pipe(process.stderr),process.stdin.pipe(o.stdin),o.on("close",a=>{a===0?t(!0):e(new Error(`Child process exited with code ${a}`))})})}prepareNamedAddresses(s){let t=s.size,e=[];if(t===0)return e;e.push("--named-addresses");let r=0;return s.forEach((o,a)=>{r+=1;let n=`${a}=${o.toString()}`;r<t-1&&(n+=","),e.push(n)}),e}parseNamedAddresses(s){let t=new Map;return Object.keys(s).forEach(e=>{let r=s[e];t.set(e,r)}),t}};exports.LocalNode = d; exports.Move = l;
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/common/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
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 EphemeralPublicKeyVariant,
|
|
2
|
-
export { aA as AccountAuthenticatorVariant, bg as AccountSignature, ar as AddressInvalidReason, aB as AnySignatureVariant, aP as BlockMetadataTransactionResponse, aG as ClientHeadersType, aZ as DecodedTableData, a_ as DeletedTableData, bD as DeriveScheme, bj as DirectWriteSet, b0 as EntryFunctionPayloadResponse, aC as EphemeralSignatureVariant, bl as Event, bk as EventGuid, bG as GenerateAccount, bE as GenerateAccountWithEd25519, bF as GenerateAccountWithSingleSignerSecp256k1Key, b3 as GenesisPayload, aO as GenesisTransactionResponse, au as HexInvalidReason, by as MoveAbility, bs as MoveAddressType, bx as MoveFunctionVisibility, bA as MoveModule, bt as MoveObjectType, bu as MoveOptionType, b4 as MoveScriptBytecode, bB as MoveStruct, bz as MoveStructField, bv as MoveStructType, bw as MoveType, bq as MoveUint128Type, bn as MoveUint16Type, br as MoveUint256Type, bo as MoveUint32Type, bp as MoveUint64Type, bm as MoveUint8Type, b2 as MultisigPayloadResponse, bP as NetworkToChainId, bM as NetworkToFaucetAPI, bK as NetworkToIndexerAPI, bQ as NetworkToNetworkName, bL as NetworkToNodeAPI, bN as NetworkToPepperAPI, bO as NetworkToProverAPI, bH as OrderBy, bI as OrderByValue, as as ParsingError, at as ParsingResult, bC as RoleType, b1 as ScriptPayloadResponse, aw as ScriptTransactionArgumentVariants, bi as ScriptWriteSet, aQ as StateCheckpointTransactionResponse, bJ as TokenStandard, az as TransactionAuthenticatorVariant, bb as TransactionEd25519Signature, bf as TransactionFeePayerSignature, be as TransactionMultiAgentSignature, bd as TransactionMultiEd25519Signature, a$ as TransactionPayloadResponse, ax as TransactionPayloadVariants, aH as TransactionResponseType, bc as TransactionSecp256k1Signature, b5 as TransactionSignature, ay as TransactionVariants, av as TypeTagVariants, aE as Uint128, aF as Uint256, aD as Uint64, aR as ValidatorTransactionResponse, bh as WriteSet, aS as WriteSetChange, aT as WriteSetChangeDeleteModule, aU as WriteSetChangeDeleteResource, aV as WriteSetChangeDeleteTableItem, aW as WriteSetChangeWriteModule, aX as WriteSetChangeWriteResource, aY as WriteSetChangeWriteTableItem, ao as ensureBoolean, aL as isBlockMetadataTransactionResponse, b6 as isEd25519Signature, b9 as isFeePayerSignature, aK as isGenesisTransactionResponse, b8 as isMultiAgentSignature, ba as isMultiEd25519Signature, aI as isPendingTransactionResponse, b7 as isSecp256k1Signature, aM as isStateCheckpointTransactionResponse, aJ as isUserTransactionResponse, aN as isValidatorTransactionResponse, ap as outOfRangeErrorMessage, aq as validateNumberInRange } from './accountAddress-
|
|
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 EphemeralPublicKeyVariant, N as Network, C as Client, j as ClientConfig, F as FullNodeConfig, I as IndexerConfig, k as FaucetConfig, l as AptosSettings, m as EphemeralCertificateVariant, Z as ZkpVariant, L as LedgerVersionArg, M as MoveModuleId, n as ScriptFunctionArgument, o as MoveFunctionId, p as AccountAddressInput, q as MoveFunctionGenericTypeParam, r as SigningSchemeInput, s as SigningScheme, t as AccountData, P as PaginationArgs, u as MoveModuleBytecode, v as TransactionResponse, w as MoveResource, x as MoveStructId, y as TokenStandardArg, O as OrderByArg, G as GetAccountOwnedTokensQueryResponse, z as GetAccountOwnedTokensFromCollectionResponse, B as GetAccountCollectionsWithOwnedTokenResponse, J as GetAccountCoinsDataResponse, W as WhereArg, K as GetAccountOwnedObjectsResponse, Q as GetCollectionDataResponse, R as GetTokenDataResponse, V as GetCurrentTokenOwnershipResponse, X as GetOwnedTokensResponse, Y as GetTokenActivityResponse, _ as GetEventsResponse, $ as WaitForTransactionOptions, a0 as UserTransactionResponse, a1 as MoveFunction, a2 as GetFungibleAssetMetadataResponse, a3 as GetFungibleAssetActivitiesResponse, a4 as GetCurrentFungibleAssetBalancesResponse, a5 as LedgerInfo, a6 as Block, a7 as MoveValue, a8 as GetChainTopUserTransactionsResponse, a9 as GraphqlQuery, aa as GetProcessorStatusResponse, ab as GetANSNameResponse, ac as GetNumberOfDelegatorsResponse, ad as GetDelegatedStakingActivitiesResponse, ae as PendingTransactionResponse, af as CommittedTransactionResponse, ag as GasEstimation, ah as TableItemRequest, ai as GetTableItemsDataResponse, aj as GetTableItemsMetadataResponse, ak as AptosRequest, al as ClientRequest, am as ClientResponse, an as MimeType } from './accountAddress-jP2Ua0t9.js';
|
|
2
|
+
export { aA as AccountAuthenticatorVariant, bg as AccountSignature, ar as AddressInvalidReason, aB as AnySignatureVariant, aP as BlockMetadataTransactionResponse, aG as ClientHeadersType, aZ as DecodedTableData, a_ as DeletedTableData, bD as DeriveScheme, bj as DirectWriteSet, b0 as EntryFunctionPayloadResponse, aC as EphemeralSignatureVariant, bl as Event, bk as EventGuid, bG as GenerateAccount, bE as GenerateAccountWithEd25519, bF as GenerateAccountWithSingleSignerSecp256k1Key, b3 as GenesisPayload, aO as GenesisTransactionResponse, au as HexInvalidReason, by as MoveAbility, bs as MoveAddressType, bx as MoveFunctionVisibility, bA as MoveModule, bt as MoveObjectType, bu as MoveOptionType, b4 as MoveScriptBytecode, bB as MoveStruct, bz as MoveStructField, bv as MoveStructType, bw as MoveType, bq as MoveUint128Type, bn as MoveUint16Type, br as MoveUint256Type, bo as MoveUint32Type, bp as MoveUint64Type, bm as MoveUint8Type, b2 as MultisigPayloadResponse, bP as NetworkToChainId, bM as NetworkToFaucetAPI, bK as NetworkToIndexerAPI, bQ as NetworkToNetworkName, bL as NetworkToNodeAPI, bN as NetworkToPepperAPI, bO as NetworkToProverAPI, bH as OrderBy, bI as OrderByValue, as as ParsingError, at as ParsingResult, bC as RoleType, b1 as ScriptPayloadResponse, aw as ScriptTransactionArgumentVariants, bi as ScriptWriteSet, aQ as StateCheckpointTransactionResponse, bJ as TokenStandard, az as TransactionAuthenticatorVariant, bb as TransactionEd25519Signature, bf as TransactionFeePayerSignature, be as TransactionMultiAgentSignature, bd as TransactionMultiEd25519Signature, a$ as TransactionPayloadResponse, ax as TransactionPayloadVariants, aH as TransactionResponseType, bc as TransactionSecp256k1Signature, b5 as TransactionSignature, ay as TransactionVariants, av as TypeTagVariants, aE as Uint128, aF as Uint256, aD as Uint64, aR as ValidatorTransactionResponse, bh as WriteSet, aS as WriteSetChange, aT as WriteSetChangeDeleteModule, aU as WriteSetChangeDeleteResource, aV as WriteSetChangeDeleteTableItem, aW as WriteSetChangeWriteModule, aX as WriteSetChangeWriteResource, aY as WriteSetChangeWriteTableItem, ao as ensureBoolean, aL as isBlockMetadataTransactionResponse, b6 as isEd25519Signature, b9 as isFeePayerSignature, aK as isGenesisTransactionResponse, b8 as isMultiAgentSignature, ba as isMultiEd25519Signature, aI as isPendingTransactionResponse, b7 as isSecp256k1Signature, aM as isStateCheckpointTransactionResponse, aJ as isUserTransactionResponse, aN as isValidatorTransactionResponse, ap as outOfRangeErrorMessage, aq as validateNumberInRange } from './accountAddress-jP2Ua0t9.js';
|
|
3
3
|
import EventEmitter from 'eventemitter3';
|
|
4
4
|
|
|
5
5
|
type Maybe<T> = T | null;
|
|
@@ -1444,6 +1444,141 @@ type Groth16VerificationKeyResponse = {
|
|
|
1444
1444
|
gamma_g2: string;
|
|
1445
1445
|
};
|
|
1446
1446
|
|
|
1447
|
+
/**
|
|
1448
|
+
* Type of API endpoint for request routing
|
|
1449
|
+
*/
|
|
1450
|
+
declare enum AptosApiType {
|
|
1451
|
+
FULLNODE = "Fullnode",
|
|
1452
|
+
INDEXER = "Indexer",
|
|
1453
|
+
FAUCET = "Faucet",
|
|
1454
|
+
PEPPER = "Pepper",
|
|
1455
|
+
PROVER = "Prover"
|
|
1456
|
+
}
|
|
1457
|
+
/**
|
|
1458
|
+
* The default max gas amount when none is given.
|
|
1459
|
+
*
|
|
1460
|
+
* This is the maximum number of gas units that will be used by a transaction before being rejected.
|
|
1461
|
+
*
|
|
1462
|
+
* Note that max gas amount varies based on the transaction. A larger transaction will go over this
|
|
1463
|
+
* default gas amount, and the value will need to be changed for the specific transaction.
|
|
1464
|
+
*/
|
|
1465
|
+
declare const DEFAULT_MAX_GAS_AMOUNT = 200000;
|
|
1466
|
+
/**
|
|
1467
|
+
* The default transaction expiration seconds from now.
|
|
1468
|
+
*
|
|
1469
|
+
* This time is how long until the blockchain nodes will reject the transaction.
|
|
1470
|
+
*
|
|
1471
|
+
* Note that the transaction expiration time varies based on network connection and network load. It may need to be
|
|
1472
|
+
* increased for the transaction to be processed.
|
|
1473
|
+
*/
|
|
1474
|
+
declare const DEFAULT_TXN_EXP_SEC_FROM_NOW = 20;
|
|
1475
|
+
/**
|
|
1476
|
+
* The default number of seconds to wait for a transaction to be processed.
|
|
1477
|
+
*
|
|
1478
|
+
* This time is the amount of time that the SDK will wait for a transaction to be processed when waiting for
|
|
1479
|
+
* the results of the transaction. It may take longer based on network connection and network load.
|
|
1480
|
+
*/
|
|
1481
|
+
declare const DEFAULT_TXN_TIMEOUT_SEC = 20;
|
|
1482
|
+
/**
|
|
1483
|
+
* The default gas currency for the network.
|
|
1484
|
+
*/
|
|
1485
|
+
declare const APTOS_COIN = "0x1::aptos_coin::AptosCoin";
|
|
1486
|
+
declare const RAW_TRANSACTION_SALT = "APTOS::RawTransaction";
|
|
1487
|
+
declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
|
|
1488
|
+
/**
|
|
1489
|
+
* The list of supported Processor types for our indexer api.
|
|
1490
|
+
*
|
|
1491
|
+
* These can be found from the processor_status table in the indexer database.
|
|
1492
|
+
* {@link https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql}
|
|
1493
|
+
*/
|
|
1494
|
+
declare enum ProcessorType {
|
|
1495
|
+
ACCOUNT_TRANSACTION_PROCESSOR = "account_transactions_processor",
|
|
1496
|
+
DEFAULT = "default_processor",
|
|
1497
|
+
EVENTS_PROCESSOR = "events_processor",
|
|
1498
|
+
FUNGIBLE_ASSET_PROCESSOR = "fungible_asset_processor",
|
|
1499
|
+
STAKE_PROCESSOR = "stake_processor",
|
|
1500
|
+
TOKEN_V2_PROCESSOR = "token_v2_processor",
|
|
1501
|
+
USER_TRANSACTION_PROCESSOR = "user_transaction_processor"
|
|
1502
|
+
}
|
|
1503
|
+
|
|
1504
|
+
/**
|
|
1505
|
+
* This class holds the config information for the SDK client instance.
|
|
1506
|
+
*
|
|
1507
|
+
* @example
|
|
1508
|
+
*
|
|
1509
|
+
* const aptosConfig = new AptosConfig({network:Network.TESTNET})
|
|
1510
|
+
*/
|
|
1511
|
+
declare class AptosConfig {
|
|
1512
|
+
/**
|
|
1513
|
+
* The Network that this SDK is associated with. Defaults to DEVNET
|
|
1514
|
+
*/
|
|
1515
|
+
readonly network: Network;
|
|
1516
|
+
/**
|
|
1517
|
+
* The client instance the SDK uses. Defaults to `@aptos-labs/aptos-client
|
|
1518
|
+
*/
|
|
1519
|
+
readonly client: Client;
|
|
1520
|
+
/**
|
|
1521
|
+
* The optional hardcoded fullnode URL to send requests to instead of using the network
|
|
1522
|
+
*/
|
|
1523
|
+
readonly fullnode?: string;
|
|
1524
|
+
/**
|
|
1525
|
+
* The optional hardcoded faucet URL to send requests to instead of using the network
|
|
1526
|
+
*/
|
|
1527
|
+
readonly faucet?: string;
|
|
1528
|
+
/**
|
|
1529
|
+
* The optional hardcoded pepper service URL to send requests to instead of using the network
|
|
1530
|
+
*/
|
|
1531
|
+
readonly pepper?: string;
|
|
1532
|
+
/**
|
|
1533
|
+
* The optional hardcoded prover service URL to send requests to instead of using the network
|
|
1534
|
+
*/
|
|
1535
|
+
readonly prover?: string;
|
|
1536
|
+
/**
|
|
1537
|
+
* The optional hardcoded indexer URL to send requests to instead of using the network
|
|
1538
|
+
*/
|
|
1539
|
+
readonly indexer?: string;
|
|
1540
|
+
/**
|
|
1541
|
+
* Optional client configurations
|
|
1542
|
+
*/
|
|
1543
|
+
readonly clientConfig?: ClientConfig;
|
|
1544
|
+
/**
|
|
1545
|
+
* Optional specific Fullnode configurations
|
|
1546
|
+
*/
|
|
1547
|
+
readonly fullnodeConfig?: FullNodeConfig;
|
|
1548
|
+
/**
|
|
1549
|
+
* Optional specific Indexer configurations
|
|
1550
|
+
*/
|
|
1551
|
+
readonly indexerConfig?: IndexerConfig;
|
|
1552
|
+
/**
|
|
1553
|
+
* Optional specific Faucet configurations
|
|
1554
|
+
*/
|
|
1555
|
+
readonly faucetConfig?: FaucetConfig;
|
|
1556
|
+
constructor(settings?: AptosSettings);
|
|
1557
|
+
/**
|
|
1558
|
+
* Returns the URL endpoint to send the request to.
|
|
1559
|
+
* If a custom URL was provided in the config, that URL is returned.
|
|
1560
|
+
* If a custom URL was provided but not URL endpoints, an error is thrown.
|
|
1561
|
+
* Otherwise, the URL endpoint is derived from the network.
|
|
1562
|
+
*
|
|
1563
|
+
* @param apiType - The type of Aptos API to get the URL for.
|
|
1564
|
+
*
|
|
1565
|
+
* @internal
|
|
1566
|
+
*/
|
|
1567
|
+
getRequestUrl(apiType: AptosApiType): string;
|
|
1568
|
+
/**
|
|
1569
|
+
* Checks if the URL is a known pepper service endpoint
|
|
1570
|
+
*
|
|
1571
|
+
* @internal
|
|
1572
|
+
* */
|
|
1573
|
+
isPepperServiceRequest(url: string): boolean;
|
|
1574
|
+
/**
|
|
1575
|
+
* Checks if the URL is a known prover service endpoint
|
|
1576
|
+
*
|
|
1577
|
+
* @internal
|
|
1578
|
+
* */
|
|
1579
|
+
isProverServiceRequest(url: string): boolean;
|
|
1580
|
+
}
|
|
1581
|
+
|
|
1447
1582
|
declare const EPK_HORIZON_SECS = 10000000;
|
|
1448
1583
|
declare const MAX_AUD_VAL_BYTES = 120;
|
|
1449
1584
|
declare const MAX_UID_KEY_BYTES = 30;
|
|
@@ -1458,6 +1593,9 @@ declare const MAX_COMMITED_EPK_BYTES = 93;
|
|
|
1458
1593
|
* KeylessPublicKey authentication key is represented in the SDK as `AnyPublicKey`.
|
|
1459
1594
|
*/
|
|
1460
1595
|
declare class KeylessPublicKey extends AccountPublicKey {
|
|
1596
|
+
/**
|
|
1597
|
+
* The number of bytes that `idCommitment` should be
|
|
1598
|
+
*/
|
|
1461
1599
|
static readonly ID_COMMITMENT_LENGTH: number;
|
|
1462
1600
|
/**
|
|
1463
1601
|
* The value of the 'iss' claim on the JWT which identifies the OIDC provider.
|
|
@@ -1565,7 +1703,6 @@ declare class KeylessSignature extends Signature {
|
|
|
1565
1703
|
toUint8Array(): Uint8Array;
|
|
1566
1704
|
serialize(serializer: Serializer): void;
|
|
1567
1705
|
static deserialize(deserializer: Deserializer): KeylessSignature;
|
|
1568
|
-
static load(deserializer: Deserializer): KeylessSignature;
|
|
1569
1706
|
static getSimulationSignature(): KeylessSignature;
|
|
1570
1707
|
static isSignature(signature: Signature): signature is KeylessSignature;
|
|
1571
1708
|
}
|
|
@@ -1683,7 +1820,6 @@ declare class ZeroKnowledgeSig extends Signature {
|
|
|
1683
1820
|
static fromBytes(bytes: Uint8Array): ZeroKnowledgeSig;
|
|
1684
1821
|
serialize(serializer: Serializer): void;
|
|
1685
1822
|
static deserialize(deserializer: Deserializer): ZeroKnowledgeSig;
|
|
1686
|
-
static load(deserializer: Deserializer): ZeroKnowledgeSig;
|
|
1687
1823
|
}
|
|
1688
1824
|
/**
|
|
1689
1825
|
* A class which represents the on-chain configuration for how Keyless accounts work
|
|
@@ -1733,6 +1869,16 @@ declare class Groth16VerificationKey {
|
|
|
1733
1869
|
});
|
|
1734
1870
|
static fromGroth16VerificationKeyResponse(res: Groth16VerificationKeyResponse): Groth16VerificationKey;
|
|
1735
1871
|
}
|
|
1872
|
+
/**
|
|
1873
|
+
* Gets the parameters of how Keyless Accounts are configured on chain including the verifying key and the max expiry horizon
|
|
1874
|
+
*
|
|
1875
|
+
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
1876
|
+
* @returns KeylessConfiguration
|
|
1877
|
+
*/
|
|
1878
|
+
declare function getKeylessConfig(args: {
|
|
1879
|
+
aptosConfig: AptosConfig;
|
|
1880
|
+
options?: LedgerVersionArg;
|
|
1881
|
+
}): Promise<KeylessConfiguration>;
|
|
1736
1882
|
|
|
1737
1883
|
/**
|
|
1738
1884
|
* Represents the Secp256k1 ecdsa public key
|
|
@@ -1930,141 +2076,6 @@ declare class AccountAuthenticatorMultiKey extends AccountAuthenticator {
|
|
|
1930
2076
|
static load(deserializer: Deserializer): AccountAuthenticatorMultiKey;
|
|
1931
2077
|
}
|
|
1932
2078
|
|
|
1933
|
-
/**
|
|
1934
|
-
* Type of API endpoint for request routing
|
|
1935
|
-
*/
|
|
1936
|
-
declare enum AptosApiType {
|
|
1937
|
-
FULLNODE = "Fullnode",
|
|
1938
|
-
INDEXER = "Indexer",
|
|
1939
|
-
FAUCET = "Faucet",
|
|
1940
|
-
PEPPER = "Pepper",
|
|
1941
|
-
PROVER = "Prover"
|
|
1942
|
-
}
|
|
1943
|
-
/**
|
|
1944
|
-
* The default max gas amount when none is given.
|
|
1945
|
-
*
|
|
1946
|
-
* This is the maximum number of gas units that will be used by a transaction before being rejected.
|
|
1947
|
-
*
|
|
1948
|
-
* Note that max gas amount varies based on the transaction. A larger transaction will go over this
|
|
1949
|
-
* default gas amount, and the value will need to be changed for the specific transaction.
|
|
1950
|
-
*/
|
|
1951
|
-
declare const DEFAULT_MAX_GAS_AMOUNT = 200000;
|
|
1952
|
-
/**
|
|
1953
|
-
* The default transaction expiration seconds from now.
|
|
1954
|
-
*
|
|
1955
|
-
* This time is how long until the blockchain nodes will reject the transaction.
|
|
1956
|
-
*
|
|
1957
|
-
* Note that the transaction expiration time varies based on network connection and network load. It may need to be
|
|
1958
|
-
* increased for the transaction to be processed.
|
|
1959
|
-
*/
|
|
1960
|
-
declare const DEFAULT_TXN_EXP_SEC_FROM_NOW = 20;
|
|
1961
|
-
/**
|
|
1962
|
-
* The default number of seconds to wait for a transaction to be processed.
|
|
1963
|
-
*
|
|
1964
|
-
* This time is the amount of time that the SDK will wait for a transaction to be processed when waiting for
|
|
1965
|
-
* the results of the transaction. It may take longer based on network connection and network load.
|
|
1966
|
-
*/
|
|
1967
|
-
declare const DEFAULT_TXN_TIMEOUT_SEC = 20;
|
|
1968
|
-
/**
|
|
1969
|
-
* The default gas currency for the network.
|
|
1970
|
-
*/
|
|
1971
|
-
declare const APTOS_COIN = "0x1::aptos_coin::AptosCoin";
|
|
1972
|
-
declare const RAW_TRANSACTION_SALT = "APTOS::RawTransaction";
|
|
1973
|
-
declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
|
|
1974
|
-
/**
|
|
1975
|
-
* The list of supported Processor types for our indexer api.
|
|
1976
|
-
*
|
|
1977
|
-
* These can be found from the processor_status table in the indexer database.
|
|
1978
|
-
* {@link https://cloud.hasura.io/public/graphiql?endpoint=https://api.mainnet.aptoslabs.com/v1/graphql}
|
|
1979
|
-
*/
|
|
1980
|
-
declare enum ProcessorType {
|
|
1981
|
-
ACCOUNT_TRANSACTION_PROCESSOR = "account_transactions_processor",
|
|
1982
|
-
DEFAULT = "default_processor",
|
|
1983
|
-
EVENTS_PROCESSOR = "events_processor",
|
|
1984
|
-
FUNGIBLE_ASSET_PROCESSOR = "fungible_asset_processor",
|
|
1985
|
-
STAKE_PROCESSOR = "stake_processor",
|
|
1986
|
-
TOKEN_V2_PROCESSOR = "token_v2_processor",
|
|
1987
|
-
USER_TRANSACTION_PROCESSOR = "user_transaction_processor"
|
|
1988
|
-
}
|
|
1989
|
-
|
|
1990
|
-
/**
|
|
1991
|
-
* This class holds the config information for the SDK client instance.
|
|
1992
|
-
*
|
|
1993
|
-
* @example
|
|
1994
|
-
*
|
|
1995
|
-
* const aptosConfig = new AptosConfig({network:Network.TESTNET})
|
|
1996
|
-
*/
|
|
1997
|
-
declare class AptosConfig {
|
|
1998
|
-
/**
|
|
1999
|
-
* The Network that this SDK is associated with. Defaults to DEVNET
|
|
2000
|
-
*/
|
|
2001
|
-
readonly network: Network;
|
|
2002
|
-
/**
|
|
2003
|
-
* The client instance the SDK uses. Defaults to `@aptos-labs/aptos-client
|
|
2004
|
-
*/
|
|
2005
|
-
readonly client: Client;
|
|
2006
|
-
/**
|
|
2007
|
-
* The optional hardcoded fullnode URL to send requests to instead of using the network
|
|
2008
|
-
*/
|
|
2009
|
-
readonly fullnode?: string;
|
|
2010
|
-
/**
|
|
2011
|
-
* The optional hardcoded faucet URL to send requests to instead of using the network
|
|
2012
|
-
*/
|
|
2013
|
-
readonly faucet?: string;
|
|
2014
|
-
/**
|
|
2015
|
-
* The optional hardcoded pepper service URL to send requests to instead of using the network
|
|
2016
|
-
*/
|
|
2017
|
-
readonly pepper?: string;
|
|
2018
|
-
/**
|
|
2019
|
-
* The optional hardcoded prover service URL to send requests to instead of using the network
|
|
2020
|
-
*/
|
|
2021
|
-
readonly prover?: string;
|
|
2022
|
-
/**
|
|
2023
|
-
* The optional hardcoded indexer URL to send requests to instead of using the network
|
|
2024
|
-
*/
|
|
2025
|
-
readonly indexer?: string;
|
|
2026
|
-
/**
|
|
2027
|
-
* Optional client configurations
|
|
2028
|
-
*/
|
|
2029
|
-
readonly clientConfig?: ClientConfig;
|
|
2030
|
-
/**
|
|
2031
|
-
* Optional specific Fullnode configurations
|
|
2032
|
-
*/
|
|
2033
|
-
readonly fullnodeConfig?: FullNodeConfig;
|
|
2034
|
-
/**
|
|
2035
|
-
* Optional specific Indexer configurations
|
|
2036
|
-
*/
|
|
2037
|
-
readonly indexerConfig?: IndexerConfig;
|
|
2038
|
-
/**
|
|
2039
|
-
* Optional specific Faucet configurations
|
|
2040
|
-
*/
|
|
2041
|
-
readonly faucetConfig?: FaucetConfig;
|
|
2042
|
-
constructor(settings?: AptosSettings);
|
|
2043
|
-
/**
|
|
2044
|
-
* Returns the URL endpoint to send the request to.
|
|
2045
|
-
* If a custom URL was provided in the config, that URL is returned.
|
|
2046
|
-
* If a custom URL was provided but not URL endpoints, an error is thrown.
|
|
2047
|
-
* Otherwise, the URL endpoint is derived from the network.
|
|
2048
|
-
*
|
|
2049
|
-
* @param apiType - The type of Aptos API to get the URL for.
|
|
2050
|
-
*
|
|
2051
|
-
* @internal
|
|
2052
|
-
*/
|
|
2053
|
-
getRequestUrl(apiType: AptosApiType): string;
|
|
2054
|
-
/**
|
|
2055
|
-
* Checks if the URL is a known pepper service endpoint
|
|
2056
|
-
*
|
|
2057
|
-
* @internal
|
|
2058
|
-
* */
|
|
2059
|
-
isPepperServiceRequest(url: string): boolean;
|
|
2060
|
-
/**
|
|
2061
|
-
* Checks if the URL is a known prover service endpoint
|
|
2062
|
-
*
|
|
2063
|
-
* @internal
|
|
2064
|
-
* */
|
|
2065
|
-
isProverServiceRequest(url: string): boolean;
|
|
2066
|
-
}
|
|
2067
|
-
|
|
2068
2079
|
/**
|
|
2069
2080
|
* Representation of a ChainId that can serialized and deserialized
|
|
2070
2081
|
*/
|
|
@@ -3243,6 +3254,11 @@ declare class Ed25519Account implements Account$1 {
|
|
|
3243
3254
|
signTransaction(transaction: AnyRawTransaction): Ed25519Signature;
|
|
3244
3255
|
}
|
|
3245
3256
|
|
|
3257
|
+
/**
|
|
3258
|
+
* A class which contains a key pair that is used in signing transactions via the Keyless authentication scheme. This key pair
|
|
3259
|
+
* is ephemeral and has an expiration time. For more details on how this class is used -
|
|
3260
|
+
* https://aptos.dev/guides/keyless-accounts/#1-present-the-user-with-a-sign-in-with-idp-button-on-the-ui
|
|
3261
|
+
*/
|
|
3246
3262
|
declare class EphemeralKeyPair extends Serializable {
|
|
3247
3263
|
static readonly BLINDER_LENGTH: number;
|
|
3248
3264
|
/**
|
|
@@ -3295,7 +3311,7 @@ declare class EphemeralKeyPair extends Serializable {
|
|
|
3295
3311
|
* @return boolean
|
|
3296
3312
|
*/
|
|
3297
3313
|
static generate(args?: {
|
|
3298
|
-
scheme
|
|
3314
|
+
scheme?: EphemeralPublicKeyVariant;
|
|
3299
3315
|
expiryDateSecs?: number;
|
|
3300
3316
|
}): EphemeralKeyPair;
|
|
3301
3317
|
/**
|
|
@@ -3322,7 +3338,6 @@ declare abstract class CryptoHashable extends Serializable {
|
|
|
3322
3338
|
hash(): Uint8Array;
|
|
3323
3339
|
}
|
|
3324
3340
|
|
|
3325
|
-
declare const IssuerToJwkEndpoint: Record<string, string>;
|
|
3326
3341
|
/**
|
|
3327
3342
|
* Account implementation for the Keyless authentication scheme.
|
|
3328
3343
|
*
|
|
@@ -4798,6 +4813,18 @@ declare function deriveTransactionType(transaction: AnyRawTransaction): AnyRawTr
|
|
|
4798
4813
|
* @returns The Uint8Array of the signing message
|
|
4799
4814
|
*/
|
|
4800
4815
|
declare function generateSigningMessage(bytes: Uint8Array, domainSeparator: string): Uint8Array;
|
|
4816
|
+
/**
|
|
4817
|
+
* @deprected
|
|
4818
|
+
* Use CryptoHashable instead by having your class implement it and call hash() to get the signing message.
|
|
4819
|
+
*
|
|
4820
|
+
* Generates the 'signing message' form of a serilizable value. It bcs serializes the value and uses the name of
|
|
4821
|
+
* its constructor as the domain separator.
|
|
4822
|
+
*
|
|
4823
|
+
* @param serializable An object that has a bcs serialized form
|
|
4824
|
+
*
|
|
4825
|
+
* @returns The Uint8Array of the signing message
|
|
4826
|
+
*/
|
|
4827
|
+
declare function generateSigningMessageForSerializable(serializable: Serializable): Uint8Array;
|
|
4801
4828
|
/**
|
|
4802
4829
|
* Generates the 'signing message' form of a transaction. It derives the type of transaction and
|
|
4803
4830
|
* applies the appropriate domain separator based on if there is extra data such as a fee payer or
|
|
@@ -6166,6 +6193,9 @@ declare class Table {
|
|
|
6166
6193
|
|
|
6167
6194
|
/**
|
|
6168
6195
|
* A class to query all `Keyless` related queries on Aptos.
|
|
6196
|
+
*
|
|
6197
|
+
* More documentation on how to integrate Keyless Accounts see the below
|
|
6198
|
+
* https://aptos.dev/guides/keyless-accounts/#aptos-keyless-integration-guide
|
|
6169
6199
|
*/
|
|
6170
6200
|
declare class Keyless {
|
|
6171
6201
|
readonly config: AptosConfig;
|
|
@@ -6188,8 +6218,10 @@ declare class Keyless {
|
|
|
6188
6218
|
* @param args.ephemeralKeyPair the EphemeralKeyPair used to generate the nonce in the JWT token
|
|
6189
6219
|
* @param args.uidKey a key in the JWT token to use to set the uidVal in the IdCommitment
|
|
6190
6220
|
* @param args.pepper the pepper
|
|
6191
|
-
* @param args.proofFetchCallback a callback function that if set, the fetch of the proof will be done
|
|
6192
|
-
*
|
|
6221
|
+
* @param args.proofFetchCallback a callback function that if set, the fetch of the proof will be done in the background. Once
|
|
6222
|
+
* fetching finishes the callback function will be called. This should be used to provide a more responsive user experience as now
|
|
6223
|
+
* they are not blocked on fetching the proof. Thus the function will return much more quickly.
|
|
6224
|
+
*
|
|
6193
6225
|
* @returns A KeylessAccount that can be used to sign transactions
|
|
6194
6226
|
*/
|
|
6195
6227
|
deriveKeylessAccount(args: {
|
|
@@ -6406,4 +6438,4 @@ declare function postAptosFaucet<Req extends {}, Res extends {}>(options: PostAp
|
|
|
6406
6438
|
declare function postAptosPepperService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6407
6439
|
declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
6408
6440
|
|
|
6409
|
-
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, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, 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, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16Zkp, 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,
|
|
6441
|
+
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, EPK_HORIZON_SECS, Ed25519Account, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, type Ed25519SignerConstructorArgs, type Ed25519SignerFromDerivationPathArgs, EntryFunction, type EntryFunctionABI, EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, EphemeralCertificate, EphemeralCertificateVariant, EphemeralKeyPair, EphemeralPublicKey, EphemeralPublicKeyVariant, EphemeralSignature, 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, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, Groth16Zkp, 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, KeylessAccount, KeylessConfiguration, KeylessPublicKey, KeylessSignature, LedgerInfo, LedgerVersionArg, MAX_AUD_VAL_BYTES, MAX_COMMITED_EPK_BYTES, MAX_EXTRA_FIELD_BYTES, MAX_ISS_VAL_BYTES, MAX_JWT_HEADER_B64_BYTES, MAX_UID_KEY_BYTES, MAX_UID_VAL_BYTES, MimeType, ModuleId, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveModuleBytecode, MoveModuleId, MoveOption, MoveResource, MoveString, MoveStructId, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiKeyAccount, MultiKeySignature, MultiSig, MultiSigTransactionPayload, Network, OrderByArg, PaginationArgs, PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, type PrivateKey, type PrivateKeyFromDerivationPathArgs, ProcessorType, type ProofFetchCallback, type ProofFetchEvents, type ProofFetchFailure, type ProofFetchStatus, type ProofFetchSuccess, 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, TransactionAndProof, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultiSig, TransactionPayloadScript, TransactionResponse, TransactionWorker, type TransactionWorkerEvents, TransactionWorkerEventsEnum, type TypeArgument, 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 VerifyMultiKeySignatureArgs, type VerifySignatureArgs, type VerifySingleKeySignatureArgs, type ViewFunctionABI, WaitForTransactionOptions, WhereArg, ZeroKnowledgeSig, ZkProof, ZkpVariant, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, findFirstNonSignerArg, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, get, getAptosFullNode, getAptosPepperService, getAuthenticatorForSimulation, getFunctionParts, getKeylessConfig, 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, postAptosPepperService, postAptosProvingService, promiseFulfilledStatus, request, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch };
|