@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
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-HGJMVOBH.mjs";import{a as m}from"./chunk-VIX4BX35.mjs";import{c as A}from"./chunk-DJPYZIJY.mjs";import{t as f}from"./chunk-S3EDNXZE.mjs";import{b as w}from"./chunk-F3ZVWLDH.mjs";var T=["A name must be between 3 and 63 characters long,","and can only contain lowercase a-z, 0-9, and hyphens.","A name may not start or end with a hyphen."].join(" ");function E(e){return!(!e||e.length<3||e.length>63||!/^[a-z\d][a-z\d-]{1,61}[a-z\d]$/.test(e))}function c(e){let[n,t,...o]=e.replace(/\.apt$/,"").split(".");if(o.length>0)throw new Error(`${e} is invalid. A name can only have two parts, a domain and a subdomain separated by a "."`);if(!E(n))throw new Error(`${n} is not valid. ${T}`);if(t&&!E(t))throw new Error(`${t} is not valid. ${T}`);return{domainName:t||n,subdomainName:t?n:void 0}}var z="0x37368b46ce665362562c6d1d4ec01a08c8644c488690df5a17e13ba163e20221",G="0x585fc9f0f0c54183b039ffc770ca282ebd87307916c215a3e692f2f8e4305e82",P={testnet:"0x5f8fd2347449685cf41d4db97926ec3a096eaf381332be4f1318ad4d16a8497c",mainnet:"0x867ed1f6bf916171b1de3ee92849b8978b7d1b9e0a8cc982a3d19d535dfd9c0c",local:G,custom:null,devnet:null};function d(e){let n=P[e.network];if(!n)throw new Error(`The ANS contract is not deployed to ${e.network}`);return n}var b=e=>{if(e&&typeof e=="object"&&"vec"in e&&Array.isArray(e.vec))return e.vec[0]};async function V(e){let{aptosConfig:n,name:t}=e,o=d(n),{domainName:r,subdomainName:s}=c(t),i=await g({aptosConfig:n,payload:{function:`${o}::router::get_owner_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function j(e){let{aptosConfig:n,expiration:t,name:o,sender:r,targetAddress:s,toAddress:i,options:a,transferable:u}=e,p=d(n),{domainName:N,subdomainName:l}=c(o),S=t.policy==="subdomain:independent"||t.policy==="subdomain:follow-domain";if(l&&!S)throw new Error("Subdomains must have an expiration policy of either 'subdomain:independent' or 'subdomain:follow-domain'");if(S&&!l)throw new Error(`Policy is set to ${t.policy} but no subdomain was provided`);if(t.policy==="domain"){let h=t.years??1;if(h!==1)throw new Error("For now, names can only be registered for 1 year at a time");let D=h*31536e3;return await m({aptosConfig:n,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_domain`,functionArguments:[N,D,s,i]},options:a})}if(!l)throw new Error(`${t.policy} requires a subdomain to be provided.`);let _=await I({aptosConfig:n,name:N});if(!_)throw new Error("The domain does not exist");let x=t.policy==="subdomain:independent"?t.expirationDate:_;if(x>_)throw new Error("The subdomain expiration time cannot be greater than the domain expiration time");return await m({aptosConfig:n,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_subdomain`,functionArguments:[N,l,Math.round(x/1e3),t.policy==="subdomain:follow-domain"?1:0,!!u,s,i]},options:a})}async function I(e){let{aptosConfig:n,name:t}=e,o=d(n),{domainName:r,subdomainName:s}=c(t);try{let i=await g({aptosConfig:n,payload:{function:`${o}::router::get_expiration`,functionArguments:[r,s]}});return Number(i[0])*1e3}catch{return}}async function Y(e){let{aptosConfig:n,address:t}=e,o=d(n),r=await g({aptosConfig:n,payload:{function:`${o}::router::get_primary_name`,functionArguments:[w.from(t).toString()]}}),s=b(r[1]),i=b(r[0]);if(s)return[i,s].filter(Boolean).join(".")}async function K(e){let{aptosConfig:n,sender:t,name:o,options:r}=e,s=d(n);if(!o)return await m({aptosConfig:n,sender:t.accountAddress.toString(),data:{function:`${s}::router::clear_primary_name`,functionArguments:[]},options:r});let{domainName:i,subdomainName:a}=c(o);return await m({aptosConfig:n,sender:t.accountAddress.toString(),data:{function:`${s}::router::set_primary_name`,functionArguments:[i,a]},options:r})}async function W(e){let{aptosConfig:n,name:t}=e,o=d(n),{domainName:r,subdomainName:s}=c(t),i=await g({aptosConfig:n,payload:{function:`${o}::router::get_target_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function F(e){let{aptosConfig:n,sender:t,name:o,address:r,options:s}=e,i=d(n),{domainName:a,subdomainName:u}=c(o);return await m({aptosConfig:n,sender:t.accountAddress.toString(),data:{function:`${i}::router::set_target_addr`,functionArguments:[a,u,r]},options:s})}async function H(e){let{aptosConfig:n,name:t}=e,{domainName:o,subdomainName:r=""}=c(t),a=(await A({aptosConfig:n,query:{query:f,variables:{where_condition:{domain:{_eq:o},subdomain:{_eq:r},is_active:{_eq:!0}},limit:1}},originMethod:"getName"})).current_aptos_names[0];return a&&(a=y(a)),a}async function J(e){let{aptosConfig:n,options:t,accountAddress:o}=e,r=await C({aptosConfig:n});return(await A({aptosConfig:n,originMethod:"getAccountNames",query:{query:f,variables:{limit:t?.limit,offset:t?.offset,order_by:t?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r}}}}})).current_aptos_names.map(y)}async function X(e){let{aptosConfig:n,options:t,accountAddress:o}=e,r=await C({aptosConfig:n});return(await A({aptosConfig:n,originMethod:"getAccountDomains",query:{query:f,variables:{limit:t?.limit,offset:t?.offset,order_by:t?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_eq:""}}}}})).current_aptos_names.map(y)}async function Z(e){let{aptosConfig:n,options:t,accountAddress:o}=e,r=await C({aptosConfig:n});return(await A({aptosConfig:n,originMethod:"getAccountSubdomains",query:{query:f,variables:{limit:t?.limit,offset:t?.offset,order_by:t?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_neq:""}}}}})).current_aptos_names.map(y)}async function ee(e){let{aptosConfig:n,options:t,domain:o}=e;return(await A({aptosConfig:n,originMethod:"getDomainSubdomains",query:{query:f,variables:{limit:t?.limit,offset:t?.offset,order_by:t?.orderBy,where_condition:{...e.options?.where??{},domain:{_eq:o},subdomain:{_neq:""},is_active:{_eq:!0}}}}})).current_aptos_names.map(y)}async function C(e){let{aptosConfig:n}=e,t=d(n),[o]=await g({aptosConfig:n,payload:{function:`${t}::config::reregistration_grace_sec`,functionArguments:[]}}),r=o/60/60/24,s=()=>new Date;return new Date(s().setDate(s().getDate()-r)).toISOString()}async function ne(e){let{aptosConfig:n,sender:t,name:o,years:r=1,options:s}=e,i=d(n),a=r*31536e3,{domainName:u,subdomainName:p}=c(o);if(p)throw new Error("Subdomains cannot be renewed");if(r!==1)throw new Error("Currently, only 1 year renewals are supported");return await m({aptosConfig:n,sender:t.accountAddress.toString(),data:{function:`${i}::router::renew_domain`,functionArguments:[u,a]},options:s})}function y(e){return{...e,expiration_timestamp:new Date(e.expiration_timestamp).getTime()}}export{T as a,E as b,c,z as d,G as e,V as f,j as g,I as h,Y as i,K as j,W as k,F as l,H as m,J as n,X as o,Z as p,ee as q,ne as r};
|
|
2
|
+
//# sourceMappingURL=chunk-UHZWZWJ7.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s}from"./chunk-6EMN3BOV.mjs";import{f as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s}from"./chunk-6EMN3BOV.mjs";import{f as r}from"./chunk-VIX4BX35.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var i=class{constructor(n){this.config=n}async simple(n){return r({aptosConfig:this.config,...n})}async multiAgent(n){return r({aptosConfig:this.config,...n})}};o([s],i.prototype,"simple",1),o([s],i.prototype,"multiAgent",1);export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UVTJEMV4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g,f as d,g as b,i as S}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g,f as d,g as b,i as S}from"./chunk-U3S4AX6K.mjs";import{a as C}from"./chunk-HXYZECGS.mjs";import{a as P}from"./chunk-QFVQSFBZ.mjs";import{a as w}from"./chunk-BLWJZXAD.mjs";import{a as I}from"./chunk-J3DCBYOY.mjs";import{d as l}from"./chunk-FR6UGCOX.mjs";import{a as T}from"./chunk-IXFYYWAC.mjs";import{c as f,m as s}from"./chunk-MLX6DFMR.mjs";import{b as p}from"./chunk-F3ZVWLDH.mjs";import{b as A}from"./chunk-2G4IGSGM.mjs";import{a as r}from"./chunk-FGGRPEQ3.mjs";import{b as y}from"./chunk-IBN7ETCB.mjs";async function h(t){let a=await D(t);return G(t,a)}async function D(t){let{aptosConfig:a,data:n}=t,e,o;return"bytecode"in n?o=await g(n):"multisigAddress"in n?(e={aptosConfig:a,multisigAddress:n.multisigAddress,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},o=await g(e)):(e={aptosConfig:a,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},o=await g(e)),o}async function G(t,a){let{aptosConfig:n,sender:e,options:o}=t,i;if(K(t)&&(i=p.ZERO.toString()),U(t)){let{secondarySignerAddresses:c}=t;return d({aptosConfig:n,sender:e,payload:a,options:o,secondarySignerAddresses:c,feePayerAddress:i})}return d({aptosConfig:n,sender:e,payload:a,options:o,feePayerAddress:i})}function K(t){return t.withFeePayer===!0}function U(t){return"secondarySignerAddresses"in t}function Y(t){let{transaction:a}=t;return l(a)}function _(t){let{signer:a,transaction:n}=t;return a.signTransactionWithAuthenticator(n)}async function $(t){let{aptosConfig:a,transaction:n,signerPublicKey:e,secondarySignersPublicKeys:o,feePayerPublicKey:i,options:c}=t,u=b({transaction:n,signerPublicKey:e,secondarySignersPublicKeys:o,feePayerPublicKey:i,options:c}),{data:m}=await A({aptosConfig:a,body:u,path:"transactions/simulate",params:{estimate_gas_unit_price:t.options?.estimateGasUnitPrice??!1,estimate_max_gas_amount:t.options?.estimateMaxGasAmount??!1,estimate_prioritized_gas_unit_price:t.options?.estimatePrioritizedGasUnitPrice??!1},originMethod:"simulateTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return m}async function B(t){let{aptosConfig:a}=t,n=S({...t}),{data:e}=await A({aptosConfig:a,body:n,path:"transactions",originMethod:"submitTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return e}async function M(t){let{aptosConfig:a,signer:n,transaction:e}=t;(n instanceof I||n instanceof w)&&await n.waitForProofFetch();let o=_({signer:n,transaction:e});return B({aptosConfig:a,transaction:e,senderAuthenticator:o})}var N={typeParameters:[],parameters:[s.u8(),new s(s.u8())]};async function nn(t){let{aptosConfig:a,account:n,metadataBytes:e,moduleBytecode:o,options:i}=t,c=o.map(u=>r.U8(u));return h({aptosConfig:a,sender:p.from(n),data:{function:"0x1::code::publish_package_txn",functionArguments:[r.U8(e),new r(c)],abi:N},options:i})}var F={typeParameters:[],parameters:[new f,s.u8(),new f,s.u8(),s.u8(),s.u8()]};async function tn(t){let{aptosConfig:a,fromAccount:n,toNewPrivateKey:e}=t,o=await C({aptosConfig:a,accountAddress:n.accountAddress}),i=P.fromPrivateKey({privateKey:e,legacy:!0}),u=new T({sequenceNumber:BigInt(o.sequence_number),originator:n.accountAddress,currentAuthKey:p.from(o.authentication_key),newPublicKey:i.publicKey}).bcsToBytes(),m=n.sign(u),R=i.sign(u),x=await h({aptosConfig:a,sender:n.accountAddress,data:{function:"0x1::account::rotate_authentication_key",functionArguments:[new y(n.signingScheme),r.U8(n.publicKey.toUint8Array()),new y(i.signingScheme),r.U8(i.publicKey.toUint8Array()),r.U8(m.toUint8Array()),r.U8(R.toUint8Array())],abi:F}});return M({aptosConfig:a,signer:n,transaction:x})}export{h as a,D as b,G as c,Y as d,_ as e,$ as f,B as g,M as h,nn as i,tn as j};
|
|
2
|
+
//# sourceMappingURL=chunk-VIX4BX35.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-VIX4BX35.mjs";import{f as M}from"./chunk-IPFITPKC.mjs";import{c as V}from"./chunk-XH33BXEY.mjs";import{c as b}from"./chunk-DJPYZIJY.mjs";import{A as q,n as x,y as E,z as G}from"./chunk-S3EDNXZE.mjs";import{b as w,f as v,i as h,l as A,m as f,n as s,q as p,s as g}from"./chunk-MLX6DFMR.mjs";import{b as u}from"./chunk-F3ZVWLDH.mjs";import{a as I,b as c}from"./chunk-FGGRPEQ3.mjs";import{a as T,e as S}from"./chunk-IBN7ETCB.mjs";import{d as O}from"./chunk-56CNRT2K.mjs";var C={BOOLEAN:"bool",U8:"u8",U16:"u16",U32:"u32",U64:"u64",U128:"u128",U256:"u256",ADDRESS:"address",STRING:"0x1::string::String",ARRAY:"vector<u8>"},m="0x4::token::Token";async function It(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:u.from(n).toStringLong()}};return(await b({aptosConfig:o,query:{query:q,variables:{where_condition:e}},originMethod:"getDigitalAssetData"})).current_token_datas_v2[0]}async function _t(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:u.from(n).toStringLong()},amount:{_gt:0}};return(await b({aptosConfig:o,query:{query:G,variables:{where_condition:e}},originMethod:"getCurrentDigitalAssetOwnership"})).current_token_ownerships_v2[0]}async function Pt(t){let{aptosConfig:o,ownerAddress:n,options:e}=t,r={owner_address:{_eq:u.from(n).toStringLong()},amount:{_gt:0}},i={query:G,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await b({aptosConfig:o,query:i,originMethod:"getOwnedDigitalAssets"})).current_token_ownerships_v2}async function kt(t){let{aptosConfig:o,digitalAssetAddress:n,options:e}=t,r={token_data_id:{_eq:u.from(n).toStringLong()}},i={query:E,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await b({aptosConfig:o,query:i,originMethod:"getDigitalAssetActivity"})).token_activities_v2}var Q={typeParameters:[],parameters:[new s(p()),new v,new s(p()),new s(p()),new w,new w,new w,new w,new w,new w,new w,new w,new w,new v,new v]};async function Dt(t){let{aptosConfig:o,options:n,creator:e}=t;return d({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::create_collection",functionArguments:[new c(t.description),new S(t.maxSupply??O),new c(t.name),new c(t.uri),new T(t.mutableDescription??!0),new T(t.mutableRoyalty??!0),new T(t.mutableURI??!0),new T(t.mutableTokenDescription??!0),new T(t.mutableTokenName??!0),new T(t.mutableTokenProperties??!0),new T(t.mutableTokenURI??!0),new T(t.tokensBurnableByCreator??!0),new T(t.tokensFreezableByCreator??!0),new S(t.royaltyNumerator??0),new S(t.royaltyDenominator??1)],abi:Q},options:n})}async function U(t){let{aptosConfig:o,creatorAddress:n,collectionName:e,options:r}=t,i=u.from(n),a={collection_name:{_eq:e},creator_address:{_eq:i.toStringLong()}};return r?.tokenStandard&&(a.token_standard={_eq:r?.tokenStandard??"v2"}),(await b({aptosConfig:o,query:{query:x,variables:{where_condition:a}},originMethod:"getCollectionData"})).current_collections_v2[0]}async function St(t){let{aptosConfig:o,collectionId:n}=t,r={collection_id:{_eq:u.from(n).toStringLong()}};return(await b({aptosConfig:o,query:{query:x,variables:{where_condition:r}},originMethod:"getCollectionData"})).current_collections_v2[0]}async function vt(t){return(await U(t)).collection_id}var F={typeParameters:[],parameters:[new s(p()),new s(p()),new s(p()),new s(p()),new f(new s(p())),new f(new s(p())),new f(f.u8())]};async function ht(t){let{aptosConfig:o,options:n,creator:e,collection:r,description:i,name:a,uri:l,propertyKeys:y,propertyTypes:P,propertyValues:_}=t,k=P?.map(D=>C[D]);return d({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::mint",functionArguments:[new c(r),new c(i),new c(a),new c(l),I.MoveString(y??[]),I.MoveString(k??[]),R(_??[],k??[])],abi:F},options:n})}var N={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new h]};async function xt(t){let{aptosConfig:o,sender:n,digitalAssetAddress:e,recipient:r,digitalAssetType:i,options:a}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x1::object::transfer",typeArguments:[i??m],functionArguments:[u.from(e),u.from(r)],abi:N},options:a})}var Y={typeParameters:[],parameters:[new s(p()),new s(p()),new s(p()),new s(p()),new f(new s(p())),new f(new s(p())),new f(f.u8()),new h]};async function Gt(t){let{aptosConfig:o,account:n,collection:e,description:r,name:i,uri:a,recipient:l,propertyKeys:y,propertyTypes:P,propertyValues:_,options:k}=t;if(y?.length!==_?.length)throw new Error("Property keys and property values counts do not match");if(P?.length!==_?.length)throw new Error("Property types and property values counts do not match");let D=P?.map(K=>C[K]);return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::mint_soul_bound",functionArguments:[e,r,i,a,I.MoveString(y??[]),I.MoveString(D??[]),R(_??[],D??[]),l],abi:Y},options:k})}var z={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0)))]};async function Bt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:i}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::burn",typeArguments:[r??m],functionArguments:[u.from(e)],abi:z},options:i})}var L={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0)))]};async function Ot(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:i}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::freeze_transfer",typeArguments:[r??m],functionArguments:[e],abi:L},options:i})}var j={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0)))]};async function Et(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:i}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::unfreeze_transfer",typeArguments:[r??m],functionArguments:[e],abi:j},options:i})}var X={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new s(p())]};async function qt(t){let{aptosConfig:o,creator:n,description:e,digitalAssetAddress:r,digitalAssetType:i,options:a}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_description",typeArguments:[i??m],functionArguments:[u.from(r),new c(e)],abi:X},options:a})}var H={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new s(p())]};async function Vt(t){let{aptosConfig:o,creator:n,name:e,digitalAssetAddress:r,digitalAssetType:i,options:a}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_name",typeArguments:[i??m],functionArguments:[u.from(r),new c(e)],abi:H},options:a})}var J={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new s(p())]};async function Mt(t){let{aptosConfig:o,creator:n,uri:e,digitalAssetAddress:r,digitalAssetType:i,options:a}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_uri",typeArguments:[i??m],functionArguments:[u.from(r),new c(e)],abi:J},options:a})}var W={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new s(p()),new s(p()),f.u8()]};async function Rt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:i,digitalAssetAddress:a,digitalAssetType:l,options:y}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_property",typeArguments:[l??m],functionArguments:[u.from(a),new c(e),new c(C[r]),I.U8(B(i,C[r]))],abi:W},options:y})}var Z={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new s(p())]};async function Kt(t){let{aptosConfig:o,creator:n,propertyKey:e,digitalAssetAddress:r,digitalAssetType:i,options:a}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::remove_property",typeArguments:[i??m],functionArguments:[u.from(r),new c(e)],abi:Z},options:a})}var $={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new s(p()),new s(p()),f.u8()]};async function Qt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:i,digitalAssetAddress:a,digitalAssetType:l,options:y}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_property",typeArguments:[l??m],functionArguments:[u.from(a),new c(e),new c(C[r]),B(i,C[r])],abi:$},options:y})}var tt={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new s(g(new A(0))),new s(p()),new A(1)]};async function Ut(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:i,digitalAssetAddress:a,digitalAssetType:l,options:y}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_typed_property",typeArguments:[l??m,C[r]],functionArguments:[u.from(a),new c(e),i],abi:tt},options:y})}var et={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new s(g(new A(0))),new s(p()),new A(1)]};async function Ft(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:i,digitalAssetAddress:a,digitalAssetType:l,options:y}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_typed_property",typeArguments:[l??m,C[r]],functionArguments:[u.from(a),new c(e),i],abi:et},options:y})}function R(t,o){let n=new Array;return o.forEach((e,r)=>{n.push(B(t[r],e))}),n}function B(t,o){let n=V(o);return M(t,n,0,[]).bcsToBytes()}export{It as a,_t as b,Pt as c,kt as d,Dt as e,U as f,St as g,vt as h,ht as i,xt as j,Gt as k,Bt as l,Ot as m,Et as n,qt as o,Vt as p,Mt as q,Rt as r,Kt as s,Qt as t,Ut as u,Ft as v};
|
|
2
|
+
//# sourceMappingURL=chunk-W63KIXLK.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{d as o}from"./chunk-FR6UGCOX.mjs";import{b as i}from"./chunk-HP6YVTTT.mjs";import{b as n}from"./chunk-XVZBWW46.mjs";import{b as s}from"./chunk-F3ZVWLDH.mjs";var c=class a{constructor(t){this.signingScheme=0;let{privateKey:e,address:r}=t;this.privateKey=e,this.publicKey=e.publicKey(),this.accountAddress=r?s.from(r):this.publicKey.authKey().derivedAddress()}static generate(){let t=n.generate();return new a({privateKey:t})}static fromDerivationPath(t){let{path:e,mnemonic:r}=t,u=n.fromDerivationPath(e,r);return new a({privateKey:u})}verifySignature(t){return this.publicKey.verifySignature(t)}signWithAuthenticator(t){return new i(this.publicKey,this.privateKey.sign(t))}signTransactionWithAuthenticator(t){return new i(this.publicKey,this.signTransaction(t))}sign(t){return this.privateKey.sign(t)}signTransaction(t){return this.sign(o(t))}};export{c as a};
|
|
2
|
+
//# sourceMappingURL=chunk-WIYDJE6F.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-VIX4BX35.mjs";import{f as t,i as o}from"./chunk-MLX6DFMR.mjs";import{e as n}from"./chunk-YE5B2S5L.mjs";var u={typeParameters:[{constraints:[]}],parameters:[new o,new t]};async function y(e){let{aptosConfig:i,sender:s,recipient:c,amount:p,coinType:a,options:m}=e;return r({aptosConfig:i,sender:s,data:{function:"0x1::aptos_account::transfer_coins",typeArguments:[a??n],functionArguments:[c,p],abi:u},options:m})}export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-X3HGM2KT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-6EMN3BOV.mjs";import{g as a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-6EMN3BOV.mjs";import{g as a}from"./chunk-VIX4BX35.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var n=class{constructor(t){this.config=t}async simple(t){return a({aptosConfig:this.config,...t})}async multiAgent(t){return a({aptosConfig:this.config,...t})}};o([i],n.prototype,"simple",1),o([i],n.prototype,"multiAgent",1);export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-X4X5H6NC.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as s}from"./chunk-DJPYZIJY.mjs";import{w as i,x as m}from"./chunk-S3EDNXZE.mjs";import{b as n}from"./chunk-2G4IGSGM.mjs";async function b(t){let{aptosConfig:a,handle:e,data:o,options:r}=t;return(await n({aptosConfig:a,originMethod:"getTableItem",path:`tables/${e}/item`,params:{ledger_version:r?.ledgerVersion},body:o})).data}async function f(t){let{aptosConfig:a,options:e}=t,o={query:i,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await s({aptosConfig:a,query:o,originMethod:"getTableItemsData"})).table_items}async function T(t){let{aptosConfig:a,options:e}=t,o={query:m,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await s({aptosConfig:a,query:o,originMethod:"getTableItemsMetadata"})).table_metadatas}export{b as a,f as b,T as c};
|
|
2
|
+
//# sourceMappingURL=chunk-YA4XTZNZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as a}from"./chunk-FR6UGCOX.mjs";import{a as r}from"./chunk-UMLUOYFK.mjs";var t=class extends r{hash(){return a(this.bcsToBytes(),this.domainSeparator)}};export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YD5IB4TH.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/core/crypto/cryptoHashable.ts"],"sourcesContent":["import { generateSigningMessage } from \"../../transactions/transactionBuilder/signingMessage\";\nimport { Serializable } from \"../../bcs/serializer\";\n\nexport type AptsoDomainSeparator = `APTOS::${string}`;\nexport abstract class CryptoHashable extends Serializable {\n abstract readonly domainSeparator: AptsoDomainSeparator;\n\n /**\n * Hashes the bcs serialized from of the class. This is the typescript corollary to the BCSCryptoHash macro in aptos-core.\n *\n * @returns Uint8Array\n */\n hash(): Uint8Array {\n return generateSigningMessage(this.bcsToBytes(), this.domainSeparator);\n }\n}\n"],"mappings":"kFAIO,IAAeA,EAAf,cAAsCC,CAAa,CAQxD,MAAmB,CACjB,OAAOC,EAAuB,KAAK,WAAW,EAAG,KAAK,eAAe,CACvE,CACF","names":["CryptoHashable","Serializable","generateSigningMessage"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{decode as t}from"js-base64";async function c(o){return new Promise(e=>{setTimeout(e,o)})}var d=()=>Math.floor(Date.now()/1e3);function i(o){let e=new Date(o*1e3);return e.setMinutes(0),e.setSeconds(0),e.setMilliseconds(0),Math.floor(e.getTime()/1e3)}function u(o){let e=o.replace(/-/g,"+").replace(/_/g,"/"),n=e+"==".substring(0,(3-e.length%3)%3);return t(n)}export{c as a,d as b,i as c,u as d};
|
|
2
|
+
//# sourceMappingURL=chunk-YTQVMLFD.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/helpers.ts"],"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"],"mappings":"AAGA,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","names":["decode","sleep","timeMs","resolve","nowInSeconds","floorToWholeHour","timestampInSeconds","date","base64UrlDecode","base64Url","base64","paddedBase64"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{h as e}from"./chunk-MNTLX37G.mjs";async function i(o){o.minimumLedgerVersion!==void 0&&await e({aptosConfig:o.config,minimumLedgerVersion:o.minimumLedgerVersion,processorType:o.processorType})}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZIDLP5MI.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u,b as l}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u,b as l}from"./chunk-4CUDBBTC.mjs";import{b as g}from"./chunk-WA2NTBYY.mjs";import{a as f}from"./chunk-4VPCPASN.mjs";import{a as m}from"./chunk-EFMAZTIM.mjs";function A(y){let o=y;return o-=o>>1&1431655765,o=(o&858993459)+(o>>2&858993459),(o+(o>>4)&252645135)*16843009>>24}var p=class y extends g{constructor(e){super();let{publicKeys:r,signaturesRequired:t}=e;if(t<1)throw new Error("The number of required signatures needs to be greater than 0");if(r.length<t)throw new Error(`Provided ${r.length} public keys is smaller than the ${t} required signatures`);this.publicKeys=r.map(i=>i instanceof u?i:new u(i)),this.signaturesRequired=t}verifySignature(e){throw new Error("not implemented")}authKey(){return m.fromSchemeAndBytes({scheme:3,input:this.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.publicKeys),e.serializeU8(this.signaturesRequired)}static deserialize(e){let r=e.deserializeVector(u),t=e.deserializeU8();return new y({publicKeys:r,signaturesRequired:t})}createBitmap(e){let{bits:r}=e,t=128,i=new Uint8Array([0,0,0,0]),a=new Set;return r.forEach((n,c)=>{if(c+1>this.publicKeys.length)throw new Error(`Signature index ${c+1} is out of public keys range, ${this.publicKeys.length}.`);if(a.has(n))throw new Error(`Duplicate bit ${n} detected.`);a.add(n);let h=Math.floor(n/8),b=i[h];b|=t>>n%8,i[h]=b}),i}getIndex(e){let r=e instanceof u?e:new u(e),t=this.publicKeys.findIndex(i=>i.toString()===r.toString());if(t!==-1)return t;throw new Error("Public key not found in MultiKey")}},s=class s extends f{constructor(e){super();let{signatures:r,bitmap:t}=e;if(r.length>s.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${s.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=r.map(a=>a instanceof l?a:new l(a)),!(t instanceof Uint8Array))this.bitmap=s.createBitmap({bits:t});else{if(t.length!==s.BITMAP_LEN)throw new Error(`"bitmap" length should be ${s.BITMAP_LEN}`);this.bitmap=t}let i=this.bitmap.reduce((a,n)=>a+A(n),0);if(i!==this.signatures.length)throw new Error(`Expecting ${i} signatures from the bitmap, but got ${this.signatures.length}`)}static createBitmap(e){let{bits:r}=e,t=128,i=new Uint8Array([0,0,0,0]),a=new Set;return r.forEach(n=>{if(n>=s.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${s.MAX_SIGNATURES_SUPPORTED-1}.`);if(a.has(n))throw new Error("Duplicate bits detected.");a.add(n);let c=Math.floor(n/8),h=i[c];h|=t>>n%8,i[c]=h}),i}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.signatures),e.serializeBytes(this.bitmap)}static deserialize(e){let r=e.deserializeVector(l),t=e.deserializeBytes();return new s({signatures:r,bitmap:t})}};s.BITMAP_LEN=4,s.MAX_SIGNATURES_SUPPORTED=s.BITMAP_LEN*8;var d=s;export{p as a,d as b};
|
|
2
|
+
//# sourceMappingURL=chunk-ZV5MKFV7.mjs.map
|
package/dist/esm/cli/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"../chunk-
|
|
1
|
+
import{a as o}from"../chunk-FNFQA7NS.mjs";import{a as r}from"../chunk-7UBKXR37.mjs";import"../chunk-YTQVMLFD.mjs";import"../chunk-FVA2OPG4.mjs";export{o as LocalNode,r as Move};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-FNFQA7NS.mjs";import"../chunk-YTQVMLFD.mjs";import"../chunk-FVA2OPG4.mjs";export{a as LocalNode};
|
|
2
2
|
//# sourceMappingURL=localNode.mjs.map
|
package/dist/esm/client/core.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-3SACE4I2.mjs";import"../chunk-GED6IT3S.mjs";import"../chunk-3RJZNUCQ.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-GRHLQDHF.mjs";import"../chunk-7BW2N4IE.mjs";import"../chunk-FGGRPEQ3.mjs";import"../chunk-IBN7ETCB.mjs";import"../chunk-Q6LFIZ3L.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-3IFR6T3V.mjs";import"../chunk-UMLUOYFK.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-SCHZ67F3.mjs";import"../chunk-YE5B2S5L.mjs";import"../chunk-4BJA3QUQ.mjs";import"../chunk-FVA2OPG4.mjs";export{b as aptosRequest,a as request};
|
|
2
2
|
//# sourceMappingURL=core.mjs.map
|
package/dist/esm/client/get.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-IBDBKQMF.mjs";import"../chunk-3SACE4I2.mjs";import"../chunk-GED6IT3S.mjs";import"../chunk-3RJZNUCQ.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-GRHLQDHF.mjs";import"../chunk-7BW2N4IE.mjs";import"../chunk-FGGRPEQ3.mjs";import"../chunk-IBN7ETCB.mjs";import"../chunk-Q6LFIZ3L.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-3IFR6T3V.mjs";import"../chunk-UMLUOYFK.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-SCHZ67F3.mjs";import"../chunk-YE5B2S5L.mjs";import"../chunk-4BJA3QUQ.mjs";import"../chunk-FVA2OPG4.mjs";export{a as get,b as getAptosFullNode,c as getAptosPepperService,d as paginateWithCursor};
|
|
2
2
|
//# sourceMappingURL=get.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-N2FKVZ4D.mjs";import{a as d,b as e,c as f,d as g}from"../chunk-
|
|
1
|
+
import"../chunk-N2FKVZ4D.mjs";import{a as d,b as e,c as f,d as g}from"../chunk-IBDBKQMF.mjs";import{a as h,b as i,c as j,d as k,e as l,f as m}from"../chunk-2G4IGSGM.mjs";import{a as b,b as c}from"../chunk-3SACE4I2.mjs";import"../chunk-GED6IT3S.mjs";import"../chunk-3RJZNUCQ.mjs";import{a}from"../chunk-6FBKUTGF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-GRHLQDHF.mjs";import"../chunk-7BW2N4IE.mjs";import"../chunk-FGGRPEQ3.mjs";import"../chunk-IBN7ETCB.mjs";import"../chunk-Q6LFIZ3L.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-3IFR6T3V.mjs";import"../chunk-UMLUOYFK.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-SCHZ67F3.mjs";import"../chunk-YE5B2S5L.mjs";import"../chunk-4BJA3QUQ.mjs";import"../chunk-FVA2OPG4.mjs";export{a as AptosApiError,c as aptosRequest,d as get,e as getAptosFullNode,f as getAptosPepperService,g as paginateWithCursor,h as post,k as postAptosFaucet,i as postAptosFullNode,j as postAptosIndexer,l as postAptosPepperService,m as postAptosProvingService,b as request};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/client/post.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"../chunk-2G4IGSGM.mjs";import"../chunk-3SACE4I2.mjs";import"../chunk-GED6IT3S.mjs";import"../chunk-3RJZNUCQ.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-GRHLQDHF.mjs";import"../chunk-7BW2N4IE.mjs";import"../chunk-FGGRPEQ3.mjs";import"../chunk-IBN7ETCB.mjs";import"../chunk-Q6LFIZ3L.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-3IFR6T3V.mjs";import"../chunk-UMLUOYFK.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-SCHZ67F3.mjs";import"../chunk-YE5B2S5L.mjs";import"../chunk-4BJA3QUQ.mjs";import"../chunk-FVA2OPG4.mjs";export{a as post,d as postAptosFaucet,b as postAptosFullNode,c as postAptosIndexer,e as postAptosPepperService,f as postAptosProvingService};
|
|
2
2
|
//# sourceMappingURL=post.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a}from"../../chunk-YD5IB4TH.mjs";import"../../chunk-FR6UGCOX.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-YRUF6N3U.mjs";import"../../chunk-IXFYYWAC.mjs";import"../../chunk-IT7YNITU.mjs";import"../../chunk-YDNOKWV3.mjs";import"../../chunk-472OGHMG.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-FIG65OJD.mjs";import"../../chunk-MLX6DFMR.mjs";import"../../chunk-TUCCV62K.mjs";import"../../chunk-NW3WUTTD.mjs";import"../../chunk-GSCM444Z.mjs";import"../../chunk-U5F4NL24.mjs";import"../../chunk-HP6YVTTT.mjs";import"../../chunk-RFSO3JRG.mjs";import"../../chunk-AQ4I7VVB.mjs";import"../../chunk-SNDFJWYM.mjs";import"../../chunk-ZV5MKFV7.mjs";import"../../chunk-4CUDBBTC.mjs";import"../../chunk-BO44HPGU.mjs";import"../../chunk-54LCK6EN.mjs";import"../../chunk-37FFZSIM.mjs";import"../../chunk-L5CPAOUM.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-XVZBWW46.mjs";import"../../chunk-WA2NTBYY.mjs";import"../../chunk-4VPCPASN.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-EFMAZTIM.mjs";import"../../chunk-F3ZVWLDH.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-IBDBKQMF.mjs";import"../../chunk-2G4IGSGM.mjs";import"../../chunk-3SACE4I2.mjs";import"../../chunk-GED6IT3S.mjs";import"../../chunk-3RJZNUCQ.mjs";import"../../chunk-6FBKUTGF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-GRHLQDHF.mjs";import"../../chunk-7BW2N4IE.mjs";import"../../chunk-FGGRPEQ3.mjs";import"../../chunk-IBN7ETCB.mjs";import"../../chunk-Q6LFIZ3L.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-3IFR6T3V.mjs";import"../../chunk-UMLUOYFK.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-YE5B2S5L.mjs";import"../../chunk-4BJA3QUQ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as CryptoHashable};
|
|
2
|
+
//# sourceMappingURL=cryptoHashable.mjs.map
|
|
@@ -3,7 +3,7 @@ export { APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, CKDPriv, DerivedKeys, HARDENED
|
|
|
3
3
|
export { MultiEd25519PublicKey, MultiEd25519Signature } from './multiEd25519.mjs';
|
|
4
4
|
export { MultiKey, MultiKeySignature } from './multiKey.mjs';
|
|
5
5
|
export { EphemeralPublicKey, EphemeralSignature } from './ephemeral.mjs';
|
|
6
|
-
export { EPK_HORIZON_SECS, EphemeralCertificate, Groth16Zkp, KeylessConfiguration, KeylessPublicKey, KeylessSignature, 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, ZeroKnowledgeSig, ZkProof } from './keyless.mjs';
|
|
6
|
+
export { EPK_HORIZON_SECS, EphemeralCertificate, Groth16Zkp, KeylessConfiguration, KeylessPublicKey, KeylessSignature, 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, ZeroKnowledgeSig, ZkProof, getKeylessConfig } from './keyless.mjs';
|
|
7
7
|
export { PrivateKey } from './privateKey.mjs';
|
|
8
8
|
export { a as AccountPublicKey, P as PublicKey, V as VerifySignatureArgs } from '../../publicKey-lq5djCIY.mjs';
|
|
9
9
|
export { Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature } from './secp256k1.mjs';
|
|
@@ -21,4 +21,6 @@ import '../../types/generated/types.mjs';
|
|
|
21
21
|
import '../../bcs/serializer.mjs';
|
|
22
22
|
import './proof.mjs';
|
|
23
23
|
import '../../types/keyless.mjs';
|
|
24
|
+
import '../../api/aptosConfig.mjs';
|
|
25
|
+
import '../../utils/const.mjs';
|
|
24
26
|
import '../../transactions/instances/transactionArgument.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-AQ4I7VVB.mjs";import{a as q,b as r}from"../../chunk-SNDFJWYM.mjs";import{a as
|
|
1
|
+
import"../../chunk-AQ4I7VVB.mjs";import{a as q,b as r}from"../../chunk-SNDFJWYM.mjs";import{a as P,b as Q}from"../../chunk-ZV5MKFV7.mjs";import{a as N,b as O}from"../../chunk-4CUDBBTC.mjs";import{a as s,b as t,c as u}from"../../chunk-BO44HPGU.mjs";import{a as x,b as y,c as z,d as A,e as B,f as C,g as D,h as E,i as F,j as G,k as H,l as I,m as J,n as K,o as L,p as M}from"../../chunk-54LCK6EN.mjs";import"../../chunk-37FFZSIM.mjs";import{a as v,b as w}from"../../chunk-L5CPAOUM.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-KUX6GQ2E.mjs";import{a as n,b as o,c as p}from"../../chunk-XVZBWW46.mjs";import{a as k,b as l}from"../../chunk-WA2NTBYY.mjs";import{a as m}from"../../chunk-4VPCPASN.mjs";import"../../chunk-TJDC5PWD.mjs";import{a,b,c,d,e,f,g,h,i,j}from"../../chunk-LR65XHSF.mjs";import"../../chunk-EFMAZTIM.mjs";import"../../chunk-F3ZVWLDH.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-IBDBKQMF.mjs";import"../../chunk-2G4IGSGM.mjs";import"../../chunk-3SACE4I2.mjs";import"../../chunk-GED6IT3S.mjs";import"../../chunk-3RJZNUCQ.mjs";import"../../chunk-6FBKUTGF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-GRHLQDHF.mjs";import"../../chunk-7BW2N4IE.mjs";import"../../chunk-FGGRPEQ3.mjs";import"../../chunk-IBN7ETCB.mjs";import"../../chunk-Q6LFIZ3L.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-3IFR6T3V.mjs";import"../../chunk-UMLUOYFK.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-YE5B2S5L.mjs";import"../../chunk-4BJA3QUQ.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as APTOS_BIP44_REGEX,a as APTOS_HARDENED_REGEX,l as AccountPublicKey,N as AnyPublicKey,O as AnySignature,h as CKDPriv,x as EPK_HORIZON_SECS,o as Ed25519PrivateKey,n as Ed25519PublicKey,p as Ed25519Signature,H as EphemeralCertificate,v as EphemeralPublicKey,w as EphemeralSignature,I as Groth16Zkp,d as HARDENED_OFFSET,c as KeyType,L as KeylessConfiguration,F as KeylessPublicKey,G as KeylessSignature,y as MAX_AUD_VAL_BYTES,E as MAX_COMMITED_EPK_BYTES,C as MAX_EXTRA_FIELD_BYTES,B as MAX_ISS_VAL_BYTES,D as MAX_JWT_HEADER_B64_BYTES,z as MAX_UID_KEY_BYTES,A as MAX_UID_VAL_BYTES,q as MultiEd25519PublicKey,r as MultiEd25519Signature,P as MultiKey,Q as MultiKeySignature,k as PublicKey,t as Secp256k1PrivateKey,s as Secp256k1PublicKey,u as Secp256k1Signature,m as Signature,K as ZeroKnowledgeSig,J as ZkProof,g as deriveKey,M as getKeylessConfig,e as isValidBIP44Path,f as isValidHardenedPath,j as mnemonicToSeed,i as splitPath};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -2,10 +2,11 @@ import { a as AccountPublicKey, A as AuthenticationKey, P as PublicKey } from '.
|
|
|
2
2
|
import { Signature } from './signature.mjs';
|
|
3
3
|
import { Deserializer } from '../../bcs/deserializer.mjs';
|
|
4
4
|
import { Serializer, Serializable } from '../../bcs/serializer.mjs';
|
|
5
|
-
import { HexInput, EphemeralCertificateVariant, ZkpVariant } from '../../types/index.mjs';
|
|
5
|
+
import { HexInput, EphemeralCertificateVariant, ZkpVariant, LedgerVersionArg } from '../../types/index.mjs';
|
|
6
6
|
import { EphemeralPublicKey, EphemeralSignature } from './ephemeral.mjs';
|
|
7
7
|
import { Proof } from './proof.mjs';
|
|
8
8
|
import { Groth16VerificationKeyResponse } from '../../types/keyless.mjs';
|
|
9
|
+
import { AptosConfig } from '../../api/aptosConfig.mjs';
|
|
9
10
|
import '../accountAddress.mjs';
|
|
10
11
|
import '../common.mjs';
|
|
11
12
|
import '../../transactions/instances/transactionArgument.mjs';
|
|
@@ -14,6 +15,7 @@ import '../../utils/apiEndpoints.mjs';
|
|
|
14
15
|
import '../../types/indexer.mjs';
|
|
15
16
|
import '../../types/generated/operations.mjs';
|
|
16
17
|
import '../../types/generated/types.mjs';
|
|
18
|
+
import '../../utils/const.mjs';
|
|
17
19
|
|
|
18
20
|
declare const EPK_HORIZON_SECS = 10000000;
|
|
19
21
|
declare const MAX_AUD_VAL_BYTES = 120;
|
|
@@ -29,6 +31,9 @@ declare const MAX_COMMITED_EPK_BYTES = 93;
|
|
|
29
31
|
* KeylessPublicKey authentication key is represented in the SDK as `AnyPublicKey`.
|
|
30
32
|
*/
|
|
31
33
|
declare class KeylessPublicKey extends AccountPublicKey {
|
|
34
|
+
/**
|
|
35
|
+
* The number of bytes that `idCommitment` should be
|
|
36
|
+
*/
|
|
32
37
|
static readonly ID_COMMITMENT_LENGTH: number;
|
|
33
38
|
/**
|
|
34
39
|
* The value of the 'iss' claim on the JWT which identifies the OIDC provider.
|
|
@@ -136,7 +141,6 @@ declare class KeylessSignature extends Signature {
|
|
|
136
141
|
toUint8Array(): Uint8Array;
|
|
137
142
|
serialize(serializer: Serializer): void;
|
|
138
143
|
static deserialize(deserializer: Deserializer): KeylessSignature;
|
|
139
|
-
static load(deserializer: Deserializer): KeylessSignature;
|
|
140
144
|
static getSimulationSignature(): KeylessSignature;
|
|
141
145
|
static isSignature(signature: Signature): signature is KeylessSignature;
|
|
142
146
|
}
|
|
@@ -254,7 +258,6 @@ declare class ZeroKnowledgeSig extends Signature {
|
|
|
254
258
|
static fromBytes(bytes: Uint8Array): ZeroKnowledgeSig;
|
|
255
259
|
serialize(serializer: Serializer): void;
|
|
256
260
|
static deserialize(deserializer: Deserializer): ZeroKnowledgeSig;
|
|
257
|
-
static load(deserializer: Deserializer): ZeroKnowledgeSig;
|
|
258
261
|
}
|
|
259
262
|
/**
|
|
260
263
|
* A class which represents the on-chain configuration for how Keyless accounts work
|
|
@@ -304,5 +307,15 @@ declare class Groth16VerificationKey {
|
|
|
304
307
|
});
|
|
305
308
|
static fromGroth16VerificationKeyResponse(res: Groth16VerificationKeyResponse): Groth16VerificationKey;
|
|
306
309
|
}
|
|
310
|
+
/**
|
|
311
|
+
* Gets the parameters of how Keyless Accounts are configured on chain including the verifying key and the max expiry horizon
|
|
312
|
+
*
|
|
313
|
+
* @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
|
|
314
|
+
* @returns KeylessConfiguration
|
|
315
|
+
*/
|
|
316
|
+
declare function getKeylessConfig(args: {
|
|
317
|
+
aptosConfig: AptosConfig;
|
|
318
|
+
options?: LedgerVersionArg;
|
|
319
|
+
}): Promise<KeylessConfiguration>;
|
|
307
320
|
|
|
308
|
-
export { EPK_HORIZON_SECS, EphemeralCertificate, Groth16Zkp, KeylessConfiguration, KeylessPublicKey, KeylessSignature, 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, ZeroKnowledgeSig, ZkProof };
|
|
321
|
+
export { EPK_HORIZON_SECS, EphemeralCertificate, Groth16Zkp, KeylessConfiguration, KeylessPublicKey, KeylessSignature, 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, ZeroKnowledgeSig, ZkProof, getKeylessConfig };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"../../chunk-54LCK6EN.mjs";import"../../chunk-37FFZSIM.mjs";import"../../chunk-L5CPAOUM.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-XVZBWW46.mjs";import"../../chunk-WA2NTBYY.mjs";import"../../chunk-4VPCPASN.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-EFMAZTIM.mjs";import"../../chunk-F3ZVWLDH.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-IBDBKQMF.mjs";import"../../chunk-2G4IGSGM.mjs";import"../../chunk-3SACE4I2.mjs";import"../../chunk-GED6IT3S.mjs";import"../../chunk-3RJZNUCQ.mjs";import"../../chunk-6FBKUTGF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-GRHLQDHF.mjs";import"../../chunk-7BW2N4IE.mjs";import"../../chunk-FGGRPEQ3.mjs";import"../../chunk-IBN7ETCB.mjs";import"../../chunk-Q6LFIZ3L.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-3IFR6T3V.mjs";import"../../chunk-UMLUOYFK.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-YE5B2S5L.mjs";import"../../chunk-4BJA3QUQ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as EPK_HORIZON_SECS,k as EphemeralCertificate,l as Groth16Zkp,o as KeylessConfiguration,i as KeylessPublicKey,j as KeylessSignature,b as MAX_AUD_VAL_BYTES,h as MAX_COMMITED_EPK_BYTES,f as MAX_EXTRA_FIELD_BYTES,e as MAX_ISS_VAL_BYTES,g as MAX_JWT_HEADER_B64_BYTES,c as MAX_UID_KEY_BYTES,d as MAX_UID_VAL_BYTES,n as ZeroKnowledgeSig,m as ZkProof,p as getKeylessConfig};
|
|
2
2
|
//# sourceMappingURL=keyless.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-ZV5MKFV7.mjs";import"../../chunk-4CUDBBTC.mjs";import"../../chunk-BO44HPGU.mjs";import"../../chunk-54LCK6EN.mjs";import"../../chunk-37FFZSIM.mjs";import"../../chunk-L5CPAOUM.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-XVZBWW46.mjs";import"../../chunk-WA2NTBYY.mjs";import"../../chunk-4VPCPASN.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-EFMAZTIM.mjs";import"../../chunk-F3ZVWLDH.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-IBDBKQMF.mjs";import"../../chunk-2G4IGSGM.mjs";import"../../chunk-3SACE4I2.mjs";import"../../chunk-GED6IT3S.mjs";import"../../chunk-3RJZNUCQ.mjs";import"../../chunk-6FBKUTGF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-GRHLQDHF.mjs";import"../../chunk-7BW2N4IE.mjs";import"../../chunk-FGGRPEQ3.mjs";import"../../chunk-IBN7ETCB.mjs";import"../../chunk-Q6LFIZ3L.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-3IFR6T3V.mjs";import"../../chunk-UMLUOYFK.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-YE5B2S5L.mjs";import"../../chunk-4BJA3QUQ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as MultiKey,b as MultiKeySignature};
|
|
2
2
|
//# sourceMappingURL=multiKey.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-4CUDBBTC.mjs";import"../../chunk-BO44HPGU.mjs";import"../../chunk-54LCK6EN.mjs";import"../../chunk-37FFZSIM.mjs";import"../../chunk-L5CPAOUM.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-XVZBWW46.mjs";import"../../chunk-WA2NTBYY.mjs";import"../../chunk-4VPCPASN.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-EFMAZTIM.mjs";import"../../chunk-F3ZVWLDH.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-IBDBKQMF.mjs";import"../../chunk-2G4IGSGM.mjs";import"../../chunk-3SACE4I2.mjs";import"../../chunk-GED6IT3S.mjs";import"../../chunk-3RJZNUCQ.mjs";import"../../chunk-6FBKUTGF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-GRHLQDHF.mjs";import"../../chunk-7BW2N4IE.mjs";import"../../chunk-FGGRPEQ3.mjs";import"../../chunk-IBN7ETCB.mjs";import"../../chunk-Q6LFIZ3L.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-3IFR6T3V.mjs";import"../../chunk-UMLUOYFK.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-YE5B2S5L.mjs";import"../../chunk-4BJA3QUQ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as AnyPublicKey,b as AnySignature};
|
|
2
2
|
//# sourceMappingURL=singleKey.mjs.map
|
|
@@ -6,7 +6,7 @@ export { APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, CKDPriv, DerivedKeys, HARDENED
|
|
|
6
6
|
export { MultiEd25519PublicKey, MultiEd25519Signature } from './crypto/multiEd25519.mjs';
|
|
7
7
|
export { MultiKey, MultiKeySignature } from './crypto/multiKey.mjs';
|
|
8
8
|
export { EphemeralPublicKey, EphemeralSignature } from './crypto/ephemeral.mjs';
|
|
9
|
-
export { EPK_HORIZON_SECS, EphemeralCertificate, Groth16Zkp, KeylessConfiguration, KeylessPublicKey, KeylessSignature, 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, ZeroKnowledgeSig, ZkProof } from './crypto/keyless.mjs';
|
|
9
|
+
export { EPK_HORIZON_SECS, EphemeralCertificate, Groth16Zkp, KeylessConfiguration, KeylessPublicKey, KeylessSignature, 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, ZeroKnowledgeSig, ZkProof, getKeylessConfig } from './crypto/keyless.mjs';
|
|
10
10
|
export { PrivateKey } from './crypto/privateKey.mjs';
|
|
11
11
|
export { Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature } from './crypto/secp256k1.mjs';
|
|
12
12
|
export { Signature } from './crypto/signature.mjs';
|
|
@@ -22,3 +22,5 @@ import '../bcs/deserializer.mjs';
|
|
|
22
22
|
import '../transactions/instances/transactionArgument.mjs';
|
|
23
23
|
import './crypto/proof.mjs';
|
|
24
24
|
import '../types/keyless.mjs';
|
|
25
|
+
import '../api/aptosConfig.mjs';
|
|
26
|
+
import '../utils/const.mjs';
|
package/dist/esm/core/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-RFSO3JRG.mjs";import"../chunk-AQ4I7VVB.mjs";import{a as w,b as x}from"../chunk-SNDFJWYM.mjs";import{a as
|
|
1
|
+
import"../chunk-RFSO3JRG.mjs";import"../chunk-AQ4I7VVB.mjs";import{a as w,b as x}from"../chunk-SNDFJWYM.mjs";import{a as V,b as W}from"../chunk-ZV5MKFV7.mjs";import{a as T,b as U}from"../chunk-4CUDBBTC.mjs";import{a as y,b as z,c as A}from"../chunk-BO44HPGU.mjs";import{a as D,b as E,c as F,d as G,e as H,f as I,g as J,h as K,i as L,j as M,k as N,l as O,m as P,n as Q,o as R,p as S}from"../chunk-54LCK6EN.mjs";import"../chunk-37FFZSIM.mjs";import{a as B,b as C}from"../chunk-L5CPAOUM.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-KUX6GQ2E.mjs";import{a as t,b as u,c as v}from"../chunk-XVZBWW46.mjs";import{a as q,b as r}from"../chunk-WA2NTBYY.mjs";import{a as s}from"../chunk-4VPCPASN.mjs";import"../chunk-TJDC5PWD.mjs";import{a as g,b as h,c as i,d as j,e as k,f as l,g as m,h as n,i as o,j as p}from"../chunk-LR65XHSF.mjs";import{a as f}from"../chunk-EFMAZTIM.mjs";import{a as d,b as e}from"../chunk-F3ZVWLDH.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-IBDBKQMF.mjs";import"../chunk-2G4IGSGM.mjs";import"../chunk-3SACE4I2.mjs";import"../chunk-GED6IT3S.mjs";import"../chunk-3RJZNUCQ.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-GRHLQDHF.mjs";import"../chunk-7BW2N4IE.mjs";import"../chunk-FGGRPEQ3.mjs";import"../chunk-IBN7ETCB.mjs";import"../chunk-Q6LFIZ3L.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-3IFR6T3V.mjs";import"../chunk-UMLUOYFK.mjs";import{a as b,b as c}from"../chunk-AOCNYMMX.mjs";import{a}from"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-SCHZ67F3.mjs";import"../chunk-YE5B2S5L.mjs";import"../chunk-4BJA3QUQ.mjs";import"../chunk-FVA2OPG4.mjs";export{h as APTOS_BIP44_REGEX,g as APTOS_HARDENED_REGEX,e as AccountAddress,r as AccountPublicKey,d as AddressInvalidReason,T as AnyPublicKey,U as AnySignature,f as AuthenticationKey,n as CKDPriv,D as EPK_HORIZON_SECS,u as Ed25519PrivateKey,t as Ed25519PublicKey,v as Ed25519Signature,N as EphemeralCertificate,B as EphemeralPublicKey,C as EphemeralSignature,O as Groth16Zkp,j as HARDENED_OFFSET,c as Hex,b as HexInvalidReason,i as KeyType,R as KeylessConfiguration,L as KeylessPublicKey,M as KeylessSignature,E as MAX_AUD_VAL_BYTES,K as MAX_COMMITED_EPK_BYTES,I as MAX_EXTRA_FIELD_BYTES,H as MAX_ISS_VAL_BYTES,J as MAX_JWT_HEADER_B64_BYTES,F as MAX_UID_KEY_BYTES,G as MAX_UID_VAL_BYTES,w as MultiEd25519PublicKey,x as MultiEd25519Signature,V as MultiKey,W as MultiKeySignature,a as ParsingError,q as PublicKey,z as Secp256k1PrivateKey,y as Secp256k1PublicKey,A as Secp256k1Signature,s as Signature,Q as ZeroKnowledgeSig,P as ZkProof,m as deriveKey,S as getKeylessConfig,k as isValidBIP44Path,l as isValidHardenedPath,p as mnemonicToSeed,o as splitPath};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { A as Account, e as CreateAccountFromPrivateKeyArgs, C as CreateEd25519AccountFromPrivateKeyArgs, c as CreateEd25519SingleKeyAccountFromPrivateKeyArgs, d as CreateSingleKeyAccountFromPrivateKeyArgs, b as Ed25519Account, E as Ed25519SignerConstructorArgs, a as Ed25519SignerFromDerivationPathArgs, h as GenerateAccountArgs, G as GenerateEd25519AccountArgs, f as GenerateEd25519SingleKeyAccountArgs, g as GenerateSingleKeyAccountArgs, P as PrivateKeyFromDerivationPathArgs, l as SingleKeyAccount, S as SingleKeySignerConstructorArgs, j as SingleKeySignerFromDerivationPathArgs, i as SingleKeySignerGenerateArgs, V as VerifyEd25519SignatureArgs, k as VerifySingleKeySignatureArgs } from './Ed25519Account-9zBaZEnp.mjs';
|
|
2
2
|
export { EphemeralKeyPair } from './account/EphemeralKeyPair.mjs';
|
|
3
|
-
export {
|
|
3
|
+
export { KeylessAccount, ProofFetchCallback, ProofFetchEvents, ProofFetchFailure, ProofFetchStatus, ProofFetchSuccess, TransactionAndProof } from './account/KeylessAccount.mjs';
|
|
4
4
|
export { MultiKeyAccount, VerifyMultiKeySignatureArgs } from './account/MultiKeyAccount.mjs';
|
|
5
5
|
export { Aptos } from './api/aptos.mjs';
|
|
6
6
|
export { AptosConfig } from './api/aptosConfig.mjs';
|
|
@@ -22,7 +22,7 @@ export { APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, CKDPriv, DerivedKeys, HARDENED
|
|
|
22
22
|
export { MultiEd25519PublicKey, MultiEd25519Signature } from './core/crypto/multiEd25519.mjs';
|
|
23
23
|
export { MultiKey, MultiKeySignature } from './core/crypto/multiKey.mjs';
|
|
24
24
|
export { EphemeralPublicKey, EphemeralSignature } from './core/crypto/ephemeral.mjs';
|
|
25
|
-
export { EPK_HORIZON_SECS, EphemeralCertificate, Groth16Zkp, KeylessConfiguration, KeylessPublicKey, KeylessSignature, 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, ZeroKnowledgeSig, ZkProof } from './core/crypto/keyless.mjs';
|
|
25
|
+
export { EPK_HORIZON_SECS, EphemeralCertificate, Groth16Zkp, KeylessConfiguration, KeylessPublicKey, KeylessSignature, 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, ZeroKnowledgeSig, ZkProof, getKeylessConfig } from './core/crypto/keyless.mjs';
|
|
26
26
|
export { PrivateKey } from './core/crypto/privateKey.mjs';
|
|
27
27
|
export { Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature } from './core/crypto/secp256k1.mjs';
|
|
28
28
|
export { Signature } from './core/crypto/signature.mjs';
|
|
@@ -43,7 +43,7 @@ export { MultiAgentTransaction } from './transactions/instances/multiAgentTransa
|
|
|
43
43
|
export { findFirstNonSignerArg, getFunctionParts, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBool, isEncodedEntryFunctionArgument, isLargeNumber, isNull, isNumber, isScriptDataInput, isString, throwTypeMismatch } from './transactions/transactionBuilder/helpers.mjs';
|
|
44
44
|
export { buildTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateTransactionPayload, generateTransactionPayloadWithABI, generateUserTransactionHash, generateViewFunctionPayload, generateViewFunctionPayloadWithABI, getAuthenticatorForSimulation, hashValues } from './transactions/transactionBuilder/transactionBuilder.mjs';
|
|
45
45
|
export { checkOrConvertArgument, convertArgument, fetchEntryFunctionAbi, fetchFunctionAbi, fetchViewFunctionAbi, standardizeTypeTags } from './transactions/transactionBuilder/remoteAbi.mjs';
|
|
46
|
-
export { deriveTransactionType, generateSigningMessage, generateSigningMessageForTransaction } from './transactions/transactionBuilder/signingMessage.mjs';
|
|
46
|
+
export { deriveTransactionType, generateSigningMessage, generateSigningMessageForSerializable, generateSigningMessageForTransaction } from './transactions/transactionBuilder/signingMessage.mjs';
|
|
47
47
|
export { StructTag, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVector, aptosCoinStructTag, objectStructTag, optionStructTag, stringStructTag } from './transactions/typeTag/index.mjs';
|
|
48
48
|
export { TypeTagParserError, TypeTagParserErrorType, parseTypeTag } from './transactions/typeTag/parser.mjs';
|
|
49
49
|
export { AnyRawTransaction, AnyRawTransactionInstance, AnyTransactionPayloadInstance, EntryFunctionABI, EntryFunctionArgumentTypes, FunctionABI, InputEntryFunctionData, InputEntryFunctionDataWithABI, InputEntryFunctionDataWithRemoteABI, InputGenerateMultiAgentRawTransactionArgs, InputGenerateMultiAgentRawTransactionData, InputGenerateRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateSingleSignerRawTransactionData, InputGenerateTransactionData, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithABI, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiSigData, InputMultiSigDataWithABI, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSubmitTransactionData, InputViewFunctionData, InputViewFunctionDataWithABI, InputViewFunctionDataWithRemoteABI, ScriptFunctionArgumentTypes, SimpleEntryFunctionArgumentTypes, TypeArgument, ViewFunctionABI } from './transactions/types.mjs';
|
|
@@ -54,7 +54,7 @@ export { Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, Net
|
|
|
54
54
|
export { APTOS_COIN, AptosApiType, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, ProcessorType, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT } from './utils/const.mjs';
|
|
55
55
|
export { DeserializableClass, normalizeBundle } from './utils/normalizeBundle.mjs';
|
|
56
56
|
export { GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard } from './types/indexer.mjs';
|
|
57
|
-
import './core/crypto/
|
|
57
|
+
import './core/crypto/cryptoHashable.mjs';
|
|
58
58
|
import './api/account.mjs';
|
|
59
59
|
import './types/generated/types.mjs';
|
|
60
60
|
import './api/coin.mjs';
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./chunk-RMMOF53Q.mjs";import{a as qf}from"./chunk-X2VUS374.mjs";import"./chunk-VRO3J43Z.mjs";import"./chunk-7GU3E2FJ.mjs";import"./chunk-JBX3JBIW.mjs";import"./chunk-TV7RXL3V.mjs";import"./chunk-AEWSL7BS.mjs";import"./chunk-EJQ2EYJ7.mjs";import"./chunk-AXR47GFL.mjs";import"./chunk-IHYTP2EW.mjs";import{a as kf,b as lf,c as nf}from"./chunk-JV6JCXCH.mjs";import{a as jf}from"./chunk-WT5HOIK6.mjs";import"./chunk-U6Z4FNB7.mjs";import"./chunk-GTXZNAYI.mjs";import"./chunk-EJA532W4.mjs";import"./chunk-6EMN3BOV.mjs";import"./chunk-ERPUZQVK.mjs";import{a as Be}from"./chunk-NMD45OTM.mjs";import"./chunk-ZNPEUH4I.mjs";import"./chunk-TDDJZLWB.mjs";import"./chunk-E62NBNHE.mjs";import"./chunk-5SGAX4VT.mjs";import"./chunk-MMM5NTKW.mjs";import"./chunk-CCIY5VLR.mjs";import"./chunk-ARHEUGVT.mjs";import"./chunk-NZBZV7RP.mjs";import"./chunk-3TIXNBXM.mjs";import"./chunk-Z6FMMNAL.mjs";import"./chunk-NTQLNAKS.mjs";import"./chunk-MPTKOK27.mjs";import"./chunk-IPI3VB62.mjs";import"./chunk-B74ZAMWR.mjs";import"./chunk-6OQBDCDK.mjs";import"./chunk-OAX7LYUZ.mjs";import"./chunk-QMYYNCC2.mjs";import"./chunk-I5OYNCZS.mjs";import"./chunk-JXCZTOYC.mjs";import{a as ff,b as mf,c as pf,d as tf,e as xf,f as af,g as bf,h as cf,i as df,j as gf,k as hf}from"./chunk-2Y7GVUQQ.mjs";import{a as Ze,b as _e,c as $e,d as of,e as rf,f as ef}from"./chunk-OR27VDOE.mjs";import{a as Fe,b as Ge,c as He,d as Ie,e as Je,f as Ke,g as Le,h as Me,i as Ne,j as Oe,k as Pe,l as Qe,m as Re,n as Se,o as Te,p as Ue,q as Ve,r as We,s as Xe,t as Ye}from"./chunk-T5YEMU53.mjs";import{a as Ce,b as De,c as Ee}from"./chunk-XH33BXEY.mjs";import"./chunk-BSCOVLWS.mjs";import"./chunk-V3MBJJTL.mjs";import"./chunk-2DESIV2P.mjs";import"./chunk-CI64RKDE.mjs";import"./chunk-QNDR3S5U.mjs";import"./chunk-LA67NWMV.mjs";import"./chunk-S3EDNXZE.mjs";import"./chunk-AH44UPM4.mjs";import"./chunk-N2FKVZ4D.mjs";import{a as le,b as ne,c as qe,d as se}from"./chunk-PAJXNH6J.mjs";import{a as ue,b as ve,c as we,d as ye,e as ze,f as Ae}from"./chunk-2SJENNM4.mjs";import{a as je,b as ke}from"./chunk-TEGJAM44.mjs";import"./chunk-GED6IT3S.mjs";import{a as ie}from"./chunk-3RJZNUCQ.mjs";import{a as pe}from"./chunk-6FBKUTGF.mjs";import{a as te,b as xe,c as ae,d as be,e as ce,f as de,g as ge,h as he}from"./chunk-SCHZ67F3.mjs";import"./chunk-7Z6DYLCA.mjs";import"./chunk-F7XWXQHU.mjs";import{a as $r}from"./chunk-4AWM7GGV.mjs";import{a as Zr}from"./chunk-OJ6AF4YT.mjs";import{a as me}from"./chunk-JEE2OXOZ.mjs";import{a as re,b as ee,c as fe}from"./chunk-7FUZE7F4.mjs";import"./chunk-LYOUEPDG.mjs";import{a as oe}from"./chunk-572AE4D7.mjs";import"./chunk-QHB5A5YP.mjs";import{a as _r}from"./chunk-YDSBZMZB.mjs";import{a as Wr,b as Xr,c as Yr}from"./chunk-KGHBTSDR.mjs";import"./chunk-4NMDYPUD.mjs";import{a as Tr}from"./chunk-2BDKITTE.mjs";import{a as Ur}from"./chunk-YDNOKWV3.mjs";import"./chunk-UYVPNUH3.mjs";import{a as Vr}from"./chunk-YRUF6N3U.mjs";import{a as Ir,b as Jr,c as Kr,d as Lr}from"./chunk-472OGHMG.mjs";import{a as zr,b as Ar,c as Br,d as Cr,e as Dr,f as Er,g as Fr,h as Gr,i as Hr}from"./chunk-FIG65OJD.mjs";import{a as tr,b as xr,c as ar,d as br,e as cr,f as dr,g as gr,h as hr,i as ir,j as jr,k as kr,l as lr,m as nr,n as qr,o as sr,p as ur,q as vr,r as wr,s as yr}from"./chunk-MLX6DFMR.mjs";import{a as fr}from"./chunk-NW3WUTTD.mjs";import{a as pr}from"./chunk-TUCCV62K.mjs";import{a as mr}from"./chunk-GSCM444Z.mjs";import{a as Mr}from"./chunk-IXFYYWAC.mjs";import{a as Nr,b as Or,c as Pr,d as Qr,e as Rr,f as Sr}from"./chunk-7SOLAI6Q.mjs";import{a as So,b as To,c as Uo,d as Vo,e as Wo}from"./chunk-J63BIFB7.mjs";import"./chunk-RFSO3JRG.mjs";import{a as Xo,b as Yo,c as Zo,d as _o,e as $o,f as or,g as rr,h as er}from"./chunk-YE5B2S5L.mjs";import"./chunk-AQ4I7VVB.mjs";import{a as no,b as qo}from"./chunk-SNDFJWYM.mjs";import{a as Qo,b as Ro}from"./chunk-66G6MKI6.mjs";import{a as Oo,b as Po}from"./chunk-O3BRX56F.mjs";import{a as so,b as uo,c as vo}from"./chunk-BO44HPGU.mjs";import{a as zo,b as Ao,c as Bo,d as Co,e as Do,f as Eo,g as Fo,h as Go,i as Ho,j as Io,k as Jo,l as Ko,m as Lo,n as Mo,o as No}from"./chunk-UKKHWC4Y.mjs";import"./chunk-37FFZSIM.mjs";import{a as wo,b as yo}from"./chunk-L5CPAOUM.mjs";import"./chunk-IVVWQKCF.mjs";import"./chunk-KUX6GQ2E.mjs";import{a as jo,b as ko,c as lo}from"./chunk-XVZBWW46.mjs";import{a as go,b as ho}from"./chunk-WA2NTBYY.mjs";import{a as io}from"./chunk-4VPCPASN.mjs";import"./chunk-TJDC5PWD.mjs";import{a as ro,b as eo,c as fo,d as mo,e as po,f as to,g as xo,h as ao,i as bo,j as co}from"./chunk-LR65XHSF.mjs";import{a as oo}from"./chunk-EFMAZTIM.mjs";import{a as _,b as $}from"./chunk-F3ZVWLDH.mjs";import"./chunk-FZY4PMEE.mjs";import{a as c}from"./chunk-GRHLQDHF.mjs";import{a as b}from"./chunk-7BW2N4IE.mjs";import{a as X,b as Y,c as Z}from"./chunk-FGGRPEQ3.mjs";import{a as Q,b as R,c as S,d as T,e as U,f as V,g as W}from"./chunk-IBN7ETCB.mjs";import{A as L,B as M,C as N,D as O,E as P,a as d,b as g,c as h,d as i,e as j,f as k,g as l,h as n,i as q,j as s,k as u,l as v,m as w,n as y,o as z,p as A,q as B,r as C,s as D,t as E,u as F,v as G,w as H,x as I,y as J,z as K}from"./chunk-Q6LFIZ3L.mjs";import"./chunk-4WPQQPUF.mjs";import{a as o}from"./chunk-3IFR6T3V.mjs";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-UMLUOYFK.mjs";import{a as e,b as f}from"./chunk-AOCNYMMX.mjs";import{a as r}from"./chunk-FBPNHF54.mjs";import"./chunk-56CNRT2K.mjs";import"./chunk-FVA2OPG4.mjs";export{eo as APTOS_BIP44_REGEX,$o as APTOS_COIN,ro as APTOS_HARDENED_REGEX,$r as Account,$ as AccountAddress,So as AccountAuthenticator,To as AccountAuthenticatorEd25519,Uo as AccountAuthenticatorMultiEd25519,Wo as AccountAuthenticatorMultiKey,Vo as AccountAuthenticatorSingleKey,l as AccountAuthenticatorVariant,ho as AccountPublicKey,jf as AccountSequenceNumber,_ as AddressInvalidReason,Oo as AnyPublicKey,n as AnyPublicKeyVariant,Po as AnySignature,q as AnySignatureVariant,qf as Aptos,pe as AptosApiError,Xo as AptosApiType,Be as AptosConfig,oo as AuthenticationKey,Q as Bool,ao as CKDPriv,fr as ChainId,Yo as DEFAULT_MAX_GAS_AMOUNT,Zo as DEFAULT_TXN_EXP_SEC_FROM_NOW,_o as DEFAULT_TXN_TIMEOUT_SEC,P as DeriveScheme,o as Deserializer,zo as EPK_HORIZON_SECS,Zr as Ed25519Account,ko as Ed25519PrivateKey,jo as Ed25519PublicKey,lo as Ed25519Signature,Er as EntryFunction,c as EntryFunctionBytes,Jo as EphemeralCertificate,v as EphemeralCertificateVariant,oe as EphemeralKeyPair,wo as EphemeralPublicKey,s as EphemeralPublicKeyVariant,yo as EphemeralSignature,u as EphemeralSignatureVariant,Lr as FeePayerRawTransaction,b as FixedBytes,Ko as Groth16Zkp,mo as HARDENED_OFFSET,f as Hex,e as HexInvalidReason,mr as Identifier,re as IssuerToJwkEndpoint,fo as KeyType,ee as KeylessAccount,No as KeylessConfiguration,Ho as KeylessPublicKey,Io as KeylessSignature,Ao as MAX_AUD_VAL_BYTES,Go as MAX_COMMITED_EPK_BYTES,Eo as MAX_EXTRA_FIELD_BYTES,Do as MAX_ISS_VAL_BYTES,Fo as MAX_JWT_HEADER_B64_BYTES,Bo as MAX_UID_KEY_BYTES,Co as MAX_UID_VAL_BYTES,d as MimeType,pr as ModuleId,L as MoveAbility,K as MoveFunctionVisibility,Z as MoveOption,Y as MoveString,X as MoveVector,Kr as MultiAgentRawTransaction,Vr as MultiAgentTransaction,no as MultiEd25519PublicKey,qo as MultiEd25519Signature,Qo as MultiKey,me as MultiKeyAccount,Ro as MultiKeySignature,Gr as MultiSig,Hr as MultiSigTransactionPayload,de as Network,ge as NetworkToChainId,ae as NetworkToFaucetAPI,te as NetworkToIndexerAPI,he as NetworkToNetworkName,xe as NetworkToNodeAPI,be as NetworkToPepperAPI,ce as NetworkToProverAPI,r as ParsingError,er as ProcessorType,go as PublicKey,or as RAW_TRANSACTION_SALT,rr as RAW_TRANSACTION_WITH_DATA_SALT,Ir as RawTransaction,Jr as RawTransactionWithData,M as RoleType,Mr as RotationProofChallenge,Fr as Script,h as ScriptTransactionArgumentVariants,uo as Secp256k1PrivateKey,so as Secp256k1PublicKey,vo as Secp256k1Signature,m as Serializable,p as Serializer,io as Signature,Tr as SignedTransaction,N as SigningScheme,O as SigningSchemeInput,Ur as SimpleTransaction,_r as SingleKeyAccount,sr as StructTag,fe as TransactionAndProof,Nr as TransactionAuthenticator,Or as TransactionAuthenticatorEd25519,Rr as TransactionAuthenticatorFeePayer,Qr as TransactionAuthenticatorMultiAgent,Pr as TransactionAuthenticatorMultiEd25519,Sr as TransactionAuthenticatorSingleSender,k as TransactionAuthenticatorVariant,Ar as TransactionPayload,Cr as TransactionPayloadEntryFunction,Dr as TransactionPayloadMultiSig,Br as TransactionPayloadScript,i as TransactionPayloadVariants,y as TransactionResponseType,j as TransactionVariants,nf as TransactionWorker,lf as TransactionWorkerEventsEnum,tr as TypeTag,ir as TypeTagAddress,xr as TypeTagBool,lr as TypeTagGeneric,De as TypeTagParserError,Ce as TypeTagParserErrorType,kr as TypeTagReference,jr as TypeTagSigner,qr as TypeTagStruct,gr as TypeTagU128,br as TypeTagU16,hr as TypeTagU256,cr as TypeTagU32,dr as TypeTagU64,ar as TypeTagU8,g as TypeTagVariants,nr as TypeTagVector,V as U128,S as U16,W as U256,T as U32,U as U64,R as U8,Mo as ZeroKnowledgeSig,Lo as ZkProof,w as ZkpVariant,ur as aptosCoinStructTag,ke as aptosRequest,af as buildTransaction,ef as checkOrConvertArgument,rf as convertArgument,xo as deriveKey,Wr as deriveTransactionType,zr as deserializeFromScriptArgument,t as ensureBoolean,$e as fetchEntryFunctionAbi,_e as fetchFunctionAbi,of as fetchViewFunctionAbi,Xe as findFirstNonSignerArg,xf as generateRawTransaction,df as generateSignedTransaction,bf as generateSignedTransactionForSimulation,Xr as generateSigningMessage,Yr as generateSigningMessageForTransaction,ff as generateTransactionPayload,mf as generateTransactionPayloadWithABI,hf as generateUserTransactionHash,pf as generateViewFunctionPayload,tf as generateViewFunctionPayloadWithABI,le as get,ne as getAptosFullNode,qe as getAptosPepperService,cf as getAuthenticatorForSimulation,Ye as getFunctionParts,gf as hashValues,Me as isBcsAddress,Le as isBcsBool,Oe as isBcsFixedBytes,Ne as isBcsString,Te as isBcsU128,Qe as isBcsU16,Ue as isBcsU256,Re as isBcsU32,Se as isBcsU64,Pe as isBcsU8,C as isBlockMetadataTransactionResponse,Fe as isBool,F as isEd25519Signature,Ke as isEncodedEntryFunctionArgument,I as isFeePayerSignature,B as isGenesisTransactionResponse,Ie as isLargeNumber,H as isMultiAgentSignature,J as isMultiEd25519Signature,Je as isNull,He as isNumber,z as isPendingTransactionResponse,Ve as isScriptDataInput,G as isSecp256k1Signature,D as isStateCheckpointTransactionResponse,Ge as isString,A as isUserTransactionResponse,po as isValidBIP44Path,to as isValidHardenedPath,E as isValidatorTransactionResponse,co as mnemonicToSeed,ie as normalizeBundle,yr as objectStructTag,wr as optionStructTag,x as outOfRangeErrorMessage,se as paginateWithCursor,Ee as parseTypeTag,ue as post,ye as postAptosFaucet,ve as postAptosFullNode,we as postAptosIndexer,ze as postAptosPepperService,Ae as postAptosProvingService,kf as promiseFulfilledStatus,je as request,bo as splitPath,Ze as standardizeTypeTags,vr as stringStructTag,We as throwTypeMismatch,a as validateNumberInRange};
|
|
1
|
+
import"./chunk-RMMOF53Q.mjs";import{a as sf}from"./chunk-CPDSBH23.mjs";import"./chunk-7M4C4OZN.mjs";import"./chunk-S5ABQH5R.mjs";import"./chunk-O7VXANBW.mjs";import"./chunk-BT6IM25V.mjs";import"./chunk-LDQJ5S77.mjs";import"./chunk-R2TZZVTU.mjs";import"./chunk-EHL3WIK3.mjs";import"./chunk-5WFKJO5L.mjs";import"./chunk-GQC73XWZ.mjs";import"./chunk-7UKBRLGM.mjs";import"./chunk-GBQU2OCK.mjs";import"./chunk-X4X5H6NC.mjs";import"./chunk-B2RYTKNN.mjs";import"./chunk-64CUEMFI.mjs";import"./chunk-IHYTP2EW.mjs";import{a as lf,b as nf,c as qf}from"./chunk-SYRND55P.mjs";import{a as kf}from"./chunk-BCZGONNO.mjs";import"./chunk-U6Z4FNB7.mjs";import"./chunk-UVTJEMV4.mjs";import"./chunk-6EMN3BOV.mjs";import"./chunk-7G3RSOWE.mjs";import"./chunk-64VPA7CM.mjs";import"./chunk-UHZWZWJ7.mjs";import"./chunk-HGJMVOBH.mjs";import{a as Ce}from"./chunk-NMD45OTM.mjs";import"./chunk-GPWSPT44.mjs";import"./chunk-X3HGM2KT.mjs";import"./chunk-FSO54CI4.mjs";import"./chunk-W63KIXLK.mjs";import"./chunk-VIX4BX35.mjs";import"./chunk-I5OYNCZS.mjs";import"./chunk-JXCZTOYC.mjs";import{a as mf,b as pf,c as tf,d as xf,e as af,f as bf,g as cf,h as df,i as gf,j as hf,k as jf}from"./chunk-U3S4AX6K.mjs";import{a as _e,b as $e,c as of,d as rf,e as ef,f as ff}from"./chunk-IPFITPKC.mjs";import{a as Ge,b as He,c as Ie,d as Je,e as Ke,f as Le,g as Me,h as Ne,i as Oe,j as Pe,k as Qe,l as Re,m as Se,n as Te,o as Ue,p as Ve,q as We,r as Xe,s as Ye,t as Ze}from"./chunk-T5YEMU53.mjs";import{a as De,b as Ee,c as Fe}from"./chunk-XH33BXEY.mjs";import"./chunk-BSCOVLWS.mjs";import"./chunk-V3MBJJTL.mjs";import"./chunk-HXYZECGS.mjs";import"./chunk-YA4XTZNZ.mjs";import"./chunk-7Z6DYLCA.mjs";import"./chunk-LIT6V2A6.mjs";import"./chunk-JZOTXY77.mjs";import"./chunk-ZIDLP5MI.mjs";import"./chunk-MNTLX37G.mjs";import"./chunk-DJPYZIJY.mjs";import"./chunk-S3EDNXZE.mjs";import{a as we}from"./chunk-QFVQSFBZ.mjs";import{a as ue}from"./chunk-WIYDJE6F.mjs";import{a as Be}from"./chunk-BLWJZXAD.mjs";import{a as ze,b as Ae}from"./chunk-J3DCBYOY.mjs";import"./chunk-YD5IB4TH.mjs";import{a as ye}from"./chunk-QSMVCD52.mjs";import"./chunk-YTQVMLFD.mjs";import{a as ve}from"./chunk-L5ZHZWHI.mjs";import{a as le,b as ne,c as qe,d as se}from"./chunk-FR6UGCOX.mjs";import"./chunk-4NMDYPUD.mjs";import{a as ke}from"./chunk-YRUF6N3U.mjs";import{a as xe}from"./chunk-IXFYYWAC.mjs";import{a as ie}from"./chunk-IT7YNITU.mjs";import{a as je}from"./chunk-YDNOKWV3.mjs";import{a as fe,b as me,c as pe,d as te}from"./chunk-472OGHMG.mjs";import"./chunk-UYVPNUH3.mjs";import{a as Wr,b as Xr,c as Yr,d as Zr,e as _r,f as $r,g as oe,h as re,i as ee}from"./chunk-FIG65OJD.mjs";import{a as Dr,b as Er,c as Fr,d as Gr,e as Hr,f as Ir,g as Jr,h as Kr,i as Lr,j as Mr,k as Nr,l as Or,m as Pr,n as Qr,o as Rr,p as Sr,q as Tr,r as Ur,s as Vr}from"./chunk-MLX6DFMR.mjs";import{a as Cr}from"./chunk-TUCCV62K.mjs";import{a as Ar}from"./chunk-NW3WUTTD.mjs";import{a as Br}from"./chunk-GSCM444Z.mjs";import{a as ae,b as be,c as ce,d as de,e as ge,f as he}from"./chunk-U5F4NL24.mjs";import{a as ur,b as vr,c as wr,d as yr,e as zr}from"./chunk-HP6YVTTT.mjs";import"./chunk-RFSO3JRG.mjs";import"./chunk-AQ4I7VVB.mjs";import{a as no,b as qo}from"./chunk-SNDFJWYM.mjs";import{a as qr,b as sr}from"./chunk-ZV5MKFV7.mjs";import{a as lr,b as nr}from"./chunk-4CUDBBTC.mjs";import{a as so,b as uo,c as vo}from"./chunk-BO44HPGU.mjs";import{a as rr,b as er,c as fr,d as mr,e as pr,f as tr,g as xr,h as ar,i as br,j as cr,k as dr,l as gr,m as hr,n as ir,o as jr,p as kr}from"./chunk-54LCK6EN.mjs";import"./chunk-37FFZSIM.mjs";import{a as wo,b as yo}from"./chunk-L5CPAOUM.mjs";import"./chunk-IVVWQKCF.mjs";import"./chunk-KUX6GQ2E.mjs";import{a as jo,b as ko,c as lo}from"./chunk-XVZBWW46.mjs";import{a as go,b as ho}from"./chunk-WA2NTBYY.mjs";import{a as io}from"./chunk-4VPCPASN.mjs";import"./chunk-TJDC5PWD.mjs";import{a as ro,b as eo,c as fo,d as mo,e as po,f as to,g as xo,h as ao,i as bo,j as co}from"./chunk-LR65XHSF.mjs";import{a as oo}from"./chunk-EFMAZTIM.mjs";import{a as _,b as $}from"./chunk-F3ZVWLDH.mjs";import"./chunk-AH44UPM4.mjs";import"./chunk-N2FKVZ4D.mjs";import{a as To,b as Uo,c as Vo,d as Wo}from"./chunk-IBDBKQMF.mjs";import{a as Xo,b as Yo,c as Zo,d as _o,e as $o,f as or}from"./chunk-2G4IGSGM.mjs";import{a as Ro,b as So}from"./chunk-3SACE4I2.mjs";import"./chunk-GED6IT3S.mjs";import{a as Qo}from"./chunk-3RJZNUCQ.mjs";import{a as zo}from"./chunk-6FBKUTGF.mjs";import"./chunk-FZY4PMEE.mjs";import{a as c}from"./chunk-GRHLQDHF.mjs";import{a as b}from"./chunk-7BW2N4IE.mjs";import{a as X,b as Y,c as Z}from"./chunk-FGGRPEQ3.mjs";import{a as Q,b as R,c as S,d as T,e as U,f as V,g as W}from"./chunk-IBN7ETCB.mjs";import{A as L,B as M,C as N,D as O,E as P,a as d,b as g,c as h,d as i,e as j,f as k,g as l,h as n,i as q,j as s,k as u,l as v,m as w,n as y,o as z,p as A,q as B,r as C,s as D,t as E,u as F,v as G,w as H,x as I,y as J,z as K}from"./chunk-Q6LFIZ3L.mjs";import"./chunk-4WPQQPUF.mjs";import{a as o}from"./chunk-3IFR6T3V.mjs";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-UMLUOYFK.mjs";import{a as e,b as f}from"./chunk-AOCNYMMX.mjs";import{a as r}from"./chunk-FBPNHF54.mjs";import"./chunk-56CNRT2K.mjs";import{a as Ao,b as Bo,c as Co,d as Do,e as Eo,f as Fo,g as Go,h as Ho}from"./chunk-SCHZ67F3.mjs";import{a as Io,b as Jo,c as Ko,d as Lo,e as Mo,f as No,g as Oo,h as Po}from"./chunk-YE5B2S5L.mjs";import"./chunk-4BJA3QUQ.mjs";import"./chunk-FVA2OPG4.mjs";export{eo as APTOS_BIP44_REGEX,Mo as APTOS_COIN,ro as APTOS_HARDENED_REGEX,we as Account,$ as AccountAddress,ur as AccountAuthenticator,vr as AccountAuthenticatorEd25519,wr as AccountAuthenticatorMultiEd25519,zr as AccountAuthenticatorMultiKey,yr as AccountAuthenticatorSingleKey,l as AccountAuthenticatorVariant,ho as AccountPublicKey,kf as AccountSequenceNumber,_ as AddressInvalidReason,lr as AnyPublicKey,n as AnyPublicKeyVariant,nr as AnySignature,q as AnySignatureVariant,sf as Aptos,zo as AptosApiError,Io as AptosApiType,Ce as AptosConfig,oo as AuthenticationKey,Q as Bool,ao as CKDPriv,Ar as ChainId,Jo as DEFAULT_MAX_GAS_AMOUNT,Ko as DEFAULT_TXN_EXP_SEC_FROM_NOW,Lo as DEFAULT_TXN_TIMEOUT_SEC,P as DeriveScheme,o as Deserializer,rr as EPK_HORIZON_SECS,ue as Ed25519Account,ko as Ed25519PrivateKey,jo as Ed25519PublicKey,lo as Ed25519Signature,$r as EntryFunction,c as EntryFunctionBytes,dr as EphemeralCertificate,v as EphemeralCertificateVariant,ye as EphemeralKeyPair,wo as EphemeralPublicKey,s as EphemeralPublicKeyVariant,yo as EphemeralSignature,u as EphemeralSignatureVariant,te as FeePayerRawTransaction,b as FixedBytes,gr as Groth16Zkp,mo as HARDENED_OFFSET,f as Hex,e as HexInvalidReason,Br as Identifier,fo as KeyType,ze as KeylessAccount,jr as KeylessConfiguration,br as KeylessPublicKey,cr as KeylessSignature,er as MAX_AUD_VAL_BYTES,ar as MAX_COMMITED_EPK_BYTES,tr as MAX_EXTRA_FIELD_BYTES,pr as MAX_ISS_VAL_BYTES,xr as MAX_JWT_HEADER_B64_BYTES,fr as MAX_UID_KEY_BYTES,mr as MAX_UID_VAL_BYTES,d as MimeType,Cr as ModuleId,L as MoveAbility,K as MoveFunctionVisibility,Z as MoveOption,Y as MoveString,X as MoveVector,pe as MultiAgentRawTransaction,ke as MultiAgentTransaction,no as MultiEd25519PublicKey,qo as MultiEd25519Signature,qr as MultiKey,Be as MultiKeyAccount,sr as MultiKeySignature,re as MultiSig,ee as MultiSigTransactionPayload,Fo as Network,Go as NetworkToChainId,Co as NetworkToFaucetAPI,Ao as NetworkToIndexerAPI,Ho as NetworkToNetworkName,Bo as NetworkToNodeAPI,Do as NetworkToPepperAPI,Eo as NetworkToProverAPI,r as ParsingError,Po as ProcessorType,go as PublicKey,No as RAW_TRANSACTION_SALT,Oo as RAW_TRANSACTION_WITH_DATA_SALT,fe as RawTransaction,me as RawTransactionWithData,M as RoleType,xe as RotationProofChallenge,oe as Script,h as ScriptTransactionArgumentVariants,uo as Secp256k1PrivateKey,so as Secp256k1PublicKey,vo as Secp256k1Signature,m as Serializable,p as Serializer,io as Signature,ie as SignedTransaction,N as SigningScheme,O as SigningSchemeInput,je as SimpleTransaction,ve as SingleKeyAccount,Rr as StructTag,Ae as TransactionAndProof,ae as TransactionAuthenticator,be as TransactionAuthenticatorEd25519,ge as TransactionAuthenticatorFeePayer,de as TransactionAuthenticatorMultiAgent,ce as TransactionAuthenticatorMultiEd25519,he as TransactionAuthenticatorSingleSender,k as TransactionAuthenticatorVariant,Xr as TransactionPayload,Zr as TransactionPayloadEntryFunction,_r as TransactionPayloadMultiSig,Yr as TransactionPayloadScript,i as TransactionPayloadVariants,y as TransactionResponseType,j as TransactionVariants,qf as TransactionWorker,nf as TransactionWorkerEventsEnum,Dr as TypeTag,Lr as TypeTagAddress,Er as TypeTagBool,Or as TypeTagGeneric,Ee as TypeTagParserError,De as TypeTagParserErrorType,Nr as TypeTagReference,Mr as TypeTagSigner,Qr as TypeTagStruct,Jr as TypeTagU128,Gr as TypeTagU16,Kr as TypeTagU256,Hr as TypeTagU32,Ir as TypeTagU64,Fr as TypeTagU8,g as TypeTagVariants,Pr as TypeTagVector,V as U128,S as U16,W as U256,T as U32,U as U64,R as U8,ir as ZeroKnowledgeSig,hr as ZkProof,w as ZkpVariant,Sr as aptosCoinStructTag,So as aptosRequest,bf as buildTransaction,ff as checkOrConvertArgument,ef as convertArgument,xo as deriveKey,le as deriveTransactionType,Wr as deserializeFromScriptArgument,t as ensureBoolean,of as fetchEntryFunctionAbi,$e as fetchFunctionAbi,rf as fetchViewFunctionAbi,Ye as findFirstNonSignerArg,af as generateRawTransaction,gf as generateSignedTransaction,cf as generateSignedTransactionForSimulation,ne as generateSigningMessage,qe as generateSigningMessageForSerializable,se as generateSigningMessageForTransaction,mf as generateTransactionPayload,pf as generateTransactionPayloadWithABI,jf as generateUserTransactionHash,tf as generateViewFunctionPayload,xf as generateViewFunctionPayloadWithABI,To as get,Uo as getAptosFullNode,Vo as getAptosPepperService,df as getAuthenticatorForSimulation,Ze as getFunctionParts,kr as getKeylessConfig,hf as hashValues,Ne as isBcsAddress,Me as isBcsBool,Pe as isBcsFixedBytes,Oe as isBcsString,Ue as isBcsU128,Re as isBcsU16,Ve as isBcsU256,Se as isBcsU32,Te as isBcsU64,Qe as isBcsU8,C as isBlockMetadataTransactionResponse,Ge as isBool,F as isEd25519Signature,Le as isEncodedEntryFunctionArgument,I as isFeePayerSignature,B as isGenesisTransactionResponse,Je as isLargeNumber,H as isMultiAgentSignature,J as isMultiEd25519Signature,Ke as isNull,Ie as isNumber,z as isPendingTransactionResponse,We as isScriptDataInput,G as isSecp256k1Signature,D as isStateCheckpointTransactionResponse,He as isString,A as isUserTransactionResponse,po as isValidBIP44Path,to as isValidHardenedPath,E as isValidatorTransactionResponse,co as mnemonicToSeed,Qo as normalizeBundle,Vr as objectStructTag,Ur as optionStructTag,x as outOfRangeErrorMessage,Wo as paginateWithCursor,Fe as parseTypeTag,Xo as post,_o as postAptosFaucet,Yo as postAptosFullNode,Zo as postAptosIndexer,$o as postAptosPepperService,or as postAptosProvingService,lf as promiseFulfilledStatus,Ro as request,bo as splitPath,_e as standardizeTypeTags,Tr as stringStructTag,Xe as throwTypeMismatch,a as validateNumberInRange};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"../chunk-HXYZECGS.mjs";import"../chunk-YA4XTZNZ.mjs";import"../chunk-7Z6DYLCA.mjs";import"../chunk-DJPYZIJY.mjs";import"../chunk-S3EDNXZE.mjs";import"../chunk-QFVQSFBZ.mjs";import"../chunk-WIYDJE6F.mjs";import"../chunk-BLWJZXAD.mjs";import"../chunk-J3DCBYOY.mjs";import"../chunk-YD5IB4TH.mjs";import"../chunk-QSMVCD52.mjs";import"../chunk-YTQVMLFD.mjs";import"../chunk-L5ZHZWHI.mjs";import"../chunk-FR6UGCOX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-YRUF6N3U.mjs";import"../chunk-IXFYYWAC.mjs";import"../chunk-IT7YNITU.mjs";import"../chunk-YDNOKWV3.mjs";import"../chunk-472OGHMG.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-FIG65OJD.mjs";import"../chunk-MLX6DFMR.mjs";import"../chunk-TUCCV62K.mjs";import"../chunk-NW3WUTTD.mjs";import"../chunk-GSCM444Z.mjs";import"../chunk-U5F4NL24.mjs";import"../chunk-HP6YVTTT.mjs";import"../chunk-RFSO3JRG.mjs";import"../chunk-AQ4I7VVB.mjs";import"../chunk-SNDFJWYM.mjs";import"../chunk-ZV5MKFV7.mjs";import"../chunk-4CUDBBTC.mjs";import"../chunk-BO44HPGU.mjs";import"../chunk-54LCK6EN.mjs";import"../chunk-37FFZSIM.mjs";import"../chunk-L5CPAOUM.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-XVZBWW46.mjs";import"../chunk-WA2NTBYY.mjs";import"../chunk-4VPCPASN.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-EFMAZTIM.mjs";import"../chunk-F3ZVWLDH.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-IBDBKQMF.mjs";import"../chunk-2G4IGSGM.mjs";import"../chunk-3SACE4I2.mjs";import"../chunk-GED6IT3S.mjs";import"../chunk-3RJZNUCQ.mjs";import"../chunk-6FBKUTGF.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-GRHLQDHF.mjs";import"../chunk-7BW2N4IE.mjs";import"../chunk-FGGRPEQ3.mjs";import"../chunk-IBN7ETCB.mjs";import"../chunk-Q6LFIZ3L.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-3IFR6T3V.mjs";import"../chunk-UMLUOYFK.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-SCHZ67F3.mjs";import"../chunk-YE5B2S5L.mjs";import"../chunk-4BJA3QUQ.mjs";import"../chunk-FVA2OPG4.mjs";export{q as deriveAccountFromPrivateKey,m as getAccountCoinAmount,o as getAccountCoinsCount,n as getAccountCoinsData,k as getAccountCollectionsWithOwnedTokens,p as getAccountOwnedObjects,i as getAccountOwnedTokens,j as getAccountOwnedTokensFromCollectionAddress,h as getAccountTokensCount,l as getAccountTransactionsCount,a as getInfo,c as getModule,b as getModules,f as getResource,e as getResources,d as getTransactions,r as isAccountExist,g as lookupOriginalAccountAddress};
|
|
2
2
|
//# sourceMappingURL=account.mjs.map
|