@aptos-labs/ts-sdk 1.34.0 → 1.35.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/README.md +8 -9
- package/dist/common/{accountAddress-CDtCLtJA.d.ts → accountAddress-CuHovHdK.d.ts} +19 -0
- package/dist/common/chunk-RX5UBAME.js +4 -0
- package/dist/common/chunk-RX5UBAME.js.map +1 -0
- package/dist/common/cli/index.d.ts +1 -1
- package/dist/common/cli/index.js +1 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +489 -241
- package/dist/common/index.js +32 -32
- package/dist/common/index.js.map +1 -1
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/AbstractedAccount.mjs +1 -1
- package/dist/esm/account/Account.d.mts +1 -1
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.mjs +1 -1
- package/dist/esm/account/Ed25519Account.d.mts +2 -2
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiEd25519Account.d.mts +108 -0
- package/dist/esm/account/MultiEd25519Account.mjs +2 -0
- package/dist/esm/account/MultiKeyAccount.d.mts +1 -2
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.d.mts +1 -0
- package/dist/esm/account/index.mjs +1 -1
- package/dist/esm/account/utils.mjs +1 -1
- package/dist/esm/api/account/abstraction.mjs +1 -1
- package/dist/esm/api/account.d.mts +1 -1
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.d.mts +3 -1
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.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.mjs +1 -1
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/experimental.d.mts +83 -0
- package/dist/esm/api/experimental.mjs +2 -0
- package/dist/esm/api/experimental.mjs.map +1 -0
- 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 -0
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/object.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.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/deserializer.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/bcs/serializer.mjs +1 -1
- package/dist/esm/{chunk-P7SE5LQE.mjs → chunk-27ESCVVC.mjs} +2 -2
- package/dist/esm/chunk-2SAYQUUX.mjs +2 -0
- package/dist/esm/chunk-2SAYQUUX.mjs.map +1 -0
- package/dist/esm/{chunk-UTXEW2FT.mjs → chunk-2TRQERBL.mjs} +2 -2
- package/dist/esm/chunk-2V636AYW.mjs +2 -0
- package/dist/esm/{chunk-L6FONDPA.mjs → chunk-2YKERRHD.mjs} +2 -2
- package/dist/esm/chunk-2ZLFQBT2.mjs +2 -0
- package/dist/esm/chunk-2ZLFQBT2.mjs.map +1 -0
- package/dist/esm/{chunk-XDIX7NIP.mjs → chunk-3LDVJ2YK.mjs} +2 -2
- package/dist/esm/{chunk-J7HRQ2IH.mjs → chunk-44EHAKKW.mjs} +2 -2
- package/dist/esm/{chunk-2FNFUTFJ.mjs → chunk-53IBOHXB.mjs} +2 -2
- package/dist/esm/{chunk-X6IHNXWY.mjs → chunk-5H5D6QVX.mjs} +2 -2
- package/dist/esm/{chunk-G4O6FXCF.mjs → chunk-5W2ERBGY.mjs} +2 -2
- package/dist/esm/{chunk-VOCI2675.mjs → chunk-67A5U2X6.mjs} +2 -2
- package/dist/esm/{chunk-XXHZQFYW.mjs → chunk-6IJZRG3U.mjs} +2 -2
- package/dist/esm/{chunk-N4DM5FYH.mjs → chunk-6KZT3KFZ.mjs} +2 -2
- package/dist/esm/chunk-752TOOCA.mjs +2 -0
- package/dist/esm/chunk-752TOOCA.mjs.map +1 -0
- package/dist/esm/{chunk-ZP5EBIBE.mjs → chunk-7A2KHJ3D.mjs} +2 -2
- package/dist/esm/{chunk-ROT6S6BM.mjs → chunk-7CRQNXR5.mjs} +2 -2
- package/dist/esm/{chunk-TM6IKHMX.mjs → chunk-7OUPEQRN.mjs} +2 -2
- package/dist/esm/chunk-A3VO773Q.mjs +2 -0
- package/dist/esm/{chunk-DWJ3PGWE.mjs → chunk-AEGA5N2W.mjs} +2 -2
- package/dist/esm/{chunk-BI3BTSUB.mjs → chunk-AIPHJFJL.mjs} +2 -2
- package/dist/esm/{chunk-HLJE5XGE.mjs → chunk-AQWKKSRN.mjs} +2 -2
- package/dist/esm/{chunk-D6T3NYOA.mjs → chunk-B23VO5TB.mjs} +2 -2
- package/dist/esm/{chunk-42T3UGSW.mjs → chunk-BHVSIRNF.mjs} +2 -2
- package/dist/esm/chunk-BMPHQ3E7.mjs +2 -0
- package/dist/esm/{chunk-EGZI6EJ2.mjs → chunk-BPHCRTHD.mjs} +2 -2
- package/dist/esm/{chunk-XH3BEKII.mjs → chunk-BQYKFATL.mjs} +2 -2
- package/dist/esm/chunk-BY3XFRUM.mjs +2 -0
- package/dist/esm/{chunk-EY2JUXEC.mjs.map → chunk-BY3XFRUM.mjs.map} +1 -1
- package/dist/esm/{chunk-DBIZE7G6.mjs → chunk-CGTMSLVZ.mjs} +2 -2
- package/dist/esm/{chunk-4T75XRI2.mjs → chunk-CPAAEEF4.mjs} +2 -2
- package/dist/esm/{chunk-DMS7K76O.mjs → chunk-CPFQUFVD.mjs} +2 -2
- package/dist/esm/chunk-CXLNTATW.mjs +2 -0
- package/dist/esm/chunk-CXLNTATW.mjs.map +1 -0
- package/dist/esm/{chunk-Q7RG7KQS.mjs → chunk-DAJFOJ3L.mjs} +2 -2
- package/dist/esm/chunk-DOVH6HPL.mjs +2 -0
- package/dist/esm/{chunk-U2SJIG2T.mjs → chunk-E5PAUR4N.mjs} +2 -2
- package/dist/esm/{chunk-6LGXFXXR.mjs → chunk-EGCL6KA6.mjs} +2 -2
- package/dist/esm/{chunk-TOBQ5UE6.mjs → chunk-ERLDXTIY.mjs} +2 -2
- package/dist/esm/{chunk-CSG67JHZ.mjs → chunk-FJ5J7CVW.mjs} +2 -2
- package/dist/esm/{chunk-DLLDRANJ.mjs → chunk-FOEPRHAC.mjs} +2 -2
- package/dist/esm/{chunk-6JTNS5O6.mjs → chunk-G5F5ZOH5.mjs} +2 -2
- package/dist/esm/chunk-GFPEB22G.mjs +1 -0
- package/dist/esm/chunk-GFPEB22G.mjs.map +1 -0
- package/dist/esm/{chunk-AZWVCBK2.mjs → chunk-GI4AR6DQ.mjs} +2 -2
- package/dist/esm/{chunk-Y3Y4DVCK.mjs → chunk-GRRBXHVG.mjs} +2 -2
- package/dist/esm/{chunk-HT2WC3QV.mjs → chunk-GTVMJJQQ.mjs} +2 -2
- package/dist/esm/{chunk-HL2O3T57.mjs → chunk-GU4MD5ST.mjs} +2 -2
- package/dist/esm/chunk-H4YAL2IL.mjs +2 -0
- package/dist/esm/{chunk-X24PSWCX.mjs → chunk-HBTJN4RJ.mjs} +2 -2
- package/dist/esm/{chunk-IDTLNF4M.mjs → chunk-HHWJHOFZ.mjs} +2 -2
- package/dist/esm/{chunk-OURSLL3I.mjs → chunk-HKL4MFNL.mjs} +2 -2
- package/dist/esm/{chunk-G6RLN6ET.mjs → chunk-HVIF6DW6.mjs} +2 -2
- package/dist/esm/{chunk-VKDTI6NX.mjs → chunk-HYJQHVDZ.mjs} +2 -2
- package/dist/esm/chunk-HYJQHVDZ.mjs.map +1 -0
- package/dist/esm/{chunk-XAPQNCTN.mjs → chunk-ILUFGYLO.mjs} +2 -2
- package/dist/esm/{chunk-ABXES4FS.mjs → chunk-IMYNN4TW.mjs} +2 -2
- package/dist/esm/{chunk-2GIPNLDO.mjs → chunk-IOHESHLR.mjs} +2 -2
- package/dist/esm/{chunk-GQX5KMF7.mjs → chunk-JNNFNYDO.mjs} +2 -2
- package/dist/esm/{chunk-3HFZN7L5.mjs → chunk-K233I26C.mjs} +2 -2
- package/dist/esm/{chunk-AC3BISWL.mjs → chunk-KK5HUWF6.mjs} +2 -2
- package/dist/esm/chunk-KSLLV3ZC.mjs +2 -0
- package/dist/esm/chunk-KSLLV3ZC.mjs.map +1 -0
- package/dist/esm/{chunk-N7C6LQPZ.mjs → chunk-L6KVC7CJ.mjs} +2 -2
- package/dist/esm/{chunk-Q4C4U6I4.mjs → chunk-LQOSHBB7.mjs} +2 -2
- package/dist/esm/{chunk-XKUIMGKU.mjs → chunk-LS3IDL2N.mjs} +2 -2
- package/dist/esm/{chunk-HFCWJ6QL.mjs → chunk-MAWGZICD.mjs} +2 -2
- package/dist/esm/{chunk-JF66JS2R.mjs → chunk-MFLHAVIW.mjs} +2 -2
- package/dist/esm/chunk-OLGEN23M.mjs +2 -0
- package/dist/esm/{chunk-4UK4MUSD.mjs → chunk-ONGH5DXZ.mjs} +2 -2
- package/dist/esm/{chunk-4776UXL6.mjs → chunk-OPD5EKOA.mjs} +2 -2
- package/dist/esm/{chunk-V2EXS6TM.mjs → chunk-P5CM4C2G.mjs} +2 -2
- package/dist/esm/{chunk-BBUN4IO4.mjs → chunk-PC25RPDV.mjs} +2 -2
- package/dist/esm/{chunk-N6YTF76Q.mjs → chunk-PDAWVDI7.mjs} +2 -2
- package/dist/esm/chunk-PIPDQFL2.mjs +2 -0
- package/dist/esm/chunk-PIPDQFL2.mjs.map +1 -0
- package/dist/esm/{chunk-6PBMD2BQ.mjs → chunk-PWGTRRSJ.mjs} +2 -2
- package/dist/esm/{chunk-PWYJWTEM.mjs → chunk-PYY2RXFP.mjs} +2 -2
- package/dist/esm/chunk-PYY2RXFP.mjs.map +1 -0
- package/dist/esm/chunk-QUJM5W4L.mjs +2 -0
- package/dist/esm/chunk-QUJM5W4L.mjs.map +1 -0
- package/dist/esm/{chunk-H4GZWYIG.mjs → chunk-QYJKCRVA.mjs} +2 -2
- package/dist/esm/{chunk-X2CPDUOS.mjs → chunk-R6QCPXQG.mjs} +2 -2
- package/dist/esm/chunk-R6QCPXQG.mjs.map +1 -0
- package/dist/esm/{chunk-33CBJFX2.mjs → chunk-RDPWCN4B.mjs} +2 -2
- package/dist/esm/{chunk-MT2RJ7H3.mjs → chunk-RIINVEZA.mjs} +2 -2
- package/dist/esm/{chunk-EBMEXURY.mjs → chunk-RXHER6EA.mjs} +2 -2
- package/dist/esm/chunk-SJDHW55X.mjs +2 -0
- package/dist/esm/chunk-SJDHW55X.mjs.map +1 -0
- package/dist/esm/{chunk-KEJAUCQF.mjs → chunk-T7X4GZDU.mjs} +2 -2
- package/dist/esm/{chunk-BUTMGMSD.mjs → chunk-TH5JCPN2.mjs} +2 -2
- package/dist/esm/{chunk-ORMOQWWH.mjs → chunk-TKXEVD7A.mjs} +2 -2
- package/dist/esm/{chunk-FN4C3CKC.mjs → chunk-TTY5GFMN.mjs} +2 -2
- package/dist/esm/chunk-TWETGZ3W.mjs +2 -0
- package/dist/esm/chunk-TWETGZ3W.mjs.map +1 -0
- package/dist/esm/{chunk-PR3W2QEH.mjs → chunk-U4DEYWFT.mjs} +2 -2
- package/dist/esm/{chunk-7CYCKCVU.mjs → chunk-UJJGIPOA.mjs} +2 -2
- package/dist/esm/{chunk-ZCEBDPBJ.mjs → chunk-US2HZFOM.mjs} +2 -2
- package/dist/esm/{chunk-S47HA7O7.mjs → chunk-VDYUMBOT.mjs} +2 -2
- package/dist/esm/chunk-VHY6ZATX.mjs +2 -0
- package/dist/esm/chunk-VHY6ZATX.mjs.map +1 -0
- package/dist/esm/{chunk-TDGUMBON.mjs → chunk-VWZEJTGP.mjs} +2 -2
- package/dist/esm/{chunk-TDGUMBON.mjs.map → chunk-VWZEJTGP.mjs.map} +1 -1
- package/dist/esm/{chunk-3EY7MT2M.mjs → chunk-W2C5KRUQ.mjs} +2 -2
- package/dist/esm/{chunk-O37BZP2G.mjs → chunk-W4SMZ6IW.mjs} +2 -2
- package/dist/esm/chunk-WFKPVKU3.mjs +2 -0
- package/dist/esm/chunk-WFKPVKU3.mjs.map +1 -0
- package/dist/esm/{chunk-CXNF73OX.mjs → chunk-WHVCUVZP.mjs} +2 -2
- package/dist/esm/{chunk-QBFGY74I.mjs → chunk-WLDYBSOG.mjs} +2 -2
- package/dist/esm/{chunk-HEAWDTLG.mjs → chunk-XRVZAEQO.mjs} +2 -2
- package/dist/esm/chunk-XSBUL2WP.mjs +2 -0
- package/dist/esm/chunk-XSBUL2WP.mjs.map +1 -0
- package/dist/esm/{chunk-DNWFDS7F.mjs → chunk-XW3BXTCZ.mjs} +2 -2
- package/dist/esm/{chunk-L2AQG3G3.mjs → chunk-Y65PKZLK.mjs} +2 -2
- package/dist/esm/{chunk-WXDA4CCR.mjs → chunk-YAGIE4GN.mjs} +2 -2
- package/dist/esm/{chunk-CRFLR3ZY.mjs → chunk-YLUULY6G.mjs} +2 -2
- package/dist/esm/{chunk-SCBYJU6K.mjs → chunk-YWSDONJJ.mjs} +2 -2
- package/dist/esm/{chunk-BYHCW7MI.mjs → chunk-YXYYII5S.mjs} +2 -2
- package/dist/esm/{chunk-XTOIL6MB.mjs → chunk-ZD2TY5N3.mjs} +2 -2
- package/dist/esm/{chunk-5BSMF22B.mjs → chunk-ZS2IVRHT.mjs} +2 -2
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/client/core.d.mts +36 -1
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.d.mts +35 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.d.mts +3 -3
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.d.mts +34 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/account/utils/address.mjs +1 -1
- package/dist/esm/core/account/utils/index.mjs +1 -1
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/crypto/abstraction.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/index.d.mts +1 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +17 -2
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.d.mts +33 -15
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/privateKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/utils.mjs +1 -1
- package/dist/esm/core/hex.mjs +1 -1
- package/dist/esm/core/index.d.mts +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/index.d.mts +6 -4
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/abstraction.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/experimental.d.mts +52 -0
- package/dist/esm/internal/experimental.mjs +2 -0
- package/dist/esm/internal/experimental.mjs.map +1 -0
- 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.mjs +1 -1
- package/dist/esm/internal/object.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.mjs +1 -1
- package/dist/esm/transactions/instances/chainId.mjs +1 -1
- package/dist/esm/transactions/instances/identifier.mjs +1 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/scriptComposer/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
- 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/types/index.mjs +1 -1
- package/dist/esm/types/types.d.mts +19 -0
- package/dist/esm/types/types.mjs +1 -1
- package/dist/esm/utils/helpers.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +2 -7
- package/src/account/MultiEd25519Account.ts +154 -0
- package/src/account/MultiKeyAccount.ts +1 -2
- package/src/account/index.ts +1 -0
- package/src/api/account.ts +1 -1
- package/src/api/aptos.ts +6 -0
- package/src/api/aptosConfig.ts +2 -2
- package/src/api/experimental.ts +64 -0
- package/src/client/core.ts +120 -0
- package/src/client/get.ts +73 -1
- package/src/client/post.ts +70 -1
- package/src/core/crypto/multiEd25519.ts +19 -3
- package/src/core/crypto/multiKey.ts +76 -52
- package/src/core/hex.ts +3 -1
- package/src/internal/experimental.ts +55 -0
- package/src/internal/view.ts +4 -4
- package/src/transactions/transactionBuilder/transactionBuilder.ts +7 -0
- package/src/types/types.ts +20 -0
- package/src/version.ts +1 -1
- package/dist/common/chunk-ZYPBABLQ.js +0 -4
- package/dist/common/chunk-ZYPBABLQ.js.map +0 -1
- package/dist/esm/chunk-4YLUM62M.mjs +0 -2
- package/dist/esm/chunk-66HHRRIX.mjs +0 -2
- package/dist/esm/chunk-66HHRRIX.mjs.map +0 -1
- package/dist/esm/chunk-7C2RDOWS.mjs +0 -1
- package/dist/esm/chunk-7DPHPPMG.mjs +0 -2
- package/dist/esm/chunk-7DPHPPMG.mjs.map +0 -1
- package/dist/esm/chunk-DNJQWGB7.mjs +0 -2
- package/dist/esm/chunk-DPW6ELCQ.mjs +0 -2
- package/dist/esm/chunk-EMURYYVO.mjs +0 -2
- package/dist/esm/chunk-EY2JUXEC.mjs +0 -2
- package/dist/esm/chunk-F2ZTBAJJ.mjs +0 -2
- package/dist/esm/chunk-F2ZTBAJJ.mjs.map +0 -1
- package/dist/esm/chunk-I7YHK6ZF.mjs +0 -2
- package/dist/esm/chunk-I7YHK6ZF.mjs.map +0 -1
- package/dist/esm/chunk-PNSF3E67.mjs +0 -2
- package/dist/esm/chunk-PNSF3E67.mjs.map +0 -1
- package/dist/esm/chunk-PWYJWTEM.mjs.map +0 -1
- package/dist/esm/chunk-STY74NUA.mjs +0 -2
- package/dist/esm/chunk-STY74NUA.mjs.map +0 -1
- package/dist/esm/chunk-ULHOJ2BE.mjs +0 -2
- package/dist/esm/chunk-ULHOJ2BE.mjs.map +0 -1
- package/dist/esm/chunk-V7G2EDNR.mjs +0 -2
- package/dist/esm/chunk-V7G2EDNR.mjs.map +0 -1
- package/dist/esm/chunk-VKDTI6NX.mjs.map +0 -1
- package/dist/esm/chunk-WCMW2L3P.mjs +0 -2
- package/dist/esm/chunk-X2CPDUOS.mjs.map +0 -1
- package/dist/esm/chunk-XJJVJOX5.mjs +0 -2
- package/dist/esm/chunk-YIF242TF.mjs +0 -2
- package/dist/esm/chunk-YIF242TF.mjs.map +0 -1
- /package/dist/esm/{chunk-7C2RDOWS.mjs.map → account/MultiEd25519Account.mjs.map} +0 -0
- /package/dist/esm/{chunk-P7SE5LQE.mjs.map → chunk-27ESCVVC.mjs.map} +0 -0
- /package/dist/esm/{chunk-UTXEW2FT.mjs.map → chunk-2TRQERBL.mjs.map} +0 -0
- /package/dist/esm/{chunk-XJJVJOX5.mjs.map → chunk-2V636AYW.mjs.map} +0 -0
- /package/dist/esm/{chunk-L6FONDPA.mjs.map → chunk-2YKERRHD.mjs.map} +0 -0
- /package/dist/esm/{chunk-XDIX7NIP.mjs.map → chunk-3LDVJ2YK.mjs.map} +0 -0
- /package/dist/esm/{chunk-J7HRQ2IH.mjs.map → chunk-44EHAKKW.mjs.map} +0 -0
- /package/dist/esm/{chunk-2FNFUTFJ.mjs.map → chunk-53IBOHXB.mjs.map} +0 -0
- /package/dist/esm/{chunk-X6IHNXWY.mjs.map → chunk-5H5D6QVX.mjs.map} +0 -0
- /package/dist/esm/{chunk-G4O6FXCF.mjs.map → chunk-5W2ERBGY.mjs.map} +0 -0
- /package/dist/esm/{chunk-VOCI2675.mjs.map → chunk-67A5U2X6.mjs.map} +0 -0
- /package/dist/esm/{chunk-XXHZQFYW.mjs.map → chunk-6IJZRG3U.mjs.map} +0 -0
- /package/dist/esm/{chunk-N4DM5FYH.mjs.map → chunk-6KZT3KFZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZP5EBIBE.mjs.map → chunk-7A2KHJ3D.mjs.map} +0 -0
- /package/dist/esm/{chunk-ROT6S6BM.mjs.map → chunk-7CRQNXR5.mjs.map} +0 -0
- /package/dist/esm/{chunk-TM6IKHMX.mjs.map → chunk-7OUPEQRN.mjs.map} +0 -0
- /package/dist/esm/{chunk-WCMW2L3P.mjs.map → chunk-A3VO773Q.mjs.map} +0 -0
- /package/dist/esm/{chunk-DWJ3PGWE.mjs.map → chunk-AEGA5N2W.mjs.map} +0 -0
- /package/dist/esm/{chunk-BI3BTSUB.mjs.map → chunk-AIPHJFJL.mjs.map} +0 -0
- /package/dist/esm/{chunk-HLJE5XGE.mjs.map → chunk-AQWKKSRN.mjs.map} +0 -0
- /package/dist/esm/{chunk-D6T3NYOA.mjs.map → chunk-B23VO5TB.mjs.map} +0 -0
- /package/dist/esm/{chunk-42T3UGSW.mjs.map → chunk-BHVSIRNF.mjs.map} +0 -0
- /package/dist/esm/{chunk-4YLUM62M.mjs.map → chunk-BMPHQ3E7.mjs.map} +0 -0
- /package/dist/esm/{chunk-EGZI6EJ2.mjs.map → chunk-BPHCRTHD.mjs.map} +0 -0
- /package/dist/esm/{chunk-XH3BEKII.mjs.map → chunk-BQYKFATL.mjs.map} +0 -0
- /package/dist/esm/{chunk-DBIZE7G6.mjs.map → chunk-CGTMSLVZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-4T75XRI2.mjs.map → chunk-CPAAEEF4.mjs.map} +0 -0
- /package/dist/esm/{chunk-DMS7K76O.mjs.map → chunk-CPFQUFVD.mjs.map} +0 -0
- /package/dist/esm/{chunk-Q7RG7KQS.mjs.map → chunk-DAJFOJ3L.mjs.map} +0 -0
- /package/dist/esm/{chunk-DPW6ELCQ.mjs.map → chunk-DOVH6HPL.mjs.map} +0 -0
- /package/dist/esm/{chunk-U2SJIG2T.mjs.map → chunk-E5PAUR4N.mjs.map} +0 -0
- /package/dist/esm/{chunk-6LGXFXXR.mjs.map → chunk-EGCL6KA6.mjs.map} +0 -0
- /package/dist/esm/{chunk-TOBQ5UE6.mjs.map → chunk-ERLDXTIY.mjs.map} +0 -0
- /package/dist/esm/{chunk-CSG67JHZ.mjs.map → chunk-FJ5J7CVW.mjs.map} +0 -0
- /package/dist/esm/{chunk-DLLDRANJ.mjs.map → chunk-FOEPRHAC.mjs.map} +0 -0
- /package/dist/esm/{chunk-6JTNS5O6.mjs.map → chunk-G5F5ZOH5.mjs.map} +0 -0
- /package/dist/esm/{chunk-AZWVCBK2.mjs.map → chunk-GI4AR6DQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-Y3Y4DVCK.mjs.map → chunk-GRRBXHVG.mjs.map} +0 -0
- /package/dist/esm/{chunk-HT2WC3QV.mjs.map → chunk-GTVMJJQQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-HL2O3T57.mjs.map → chunk-GU4MD5ST.mjs.map} +0 -0
- /package/dist/esm/{chunk-EMURYYVO.mjs.map → chunk-H4YAL2IL.mjs.map} +0 -0
- /package/dist/esm/{chunk-X24PSWCX.mjs.map → chunk-HBTJN4RJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-IDTLNF4M.mjs.map → chunk-HHWJHOFZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-OURSLL3I.mjs.map → chunk-HKL4MFNL.mjs.map} +0 -0
- /package/dist/esm/{chunk-G6RLN6ET.mjs.map → chunk-HVIF6DW6.mjs.map} +0 -0
- /package/dist/esm/{chunk-XAPQNCTN.mjs.map → chunk-ILUFGYLO.mjs.map} +0 -0
- /package/dist/esm/{chunk-ABXES4FS.mjs.map → chunk-IMYNN4TW.mjs.map} +0 -0
- /package/dist/esm/{chunk-2GIPNLDO.mjs.map → chunk-IOHESHLR.mjs.map} +0 -0
- /package/dist/esm/{chunk-GQX5KMF7.mjs.map → chunk-JNNFNYDO.mjs.map} +0 -0
- /package/dist/esm/{chunk-3HFZN7L5.mjs.map → chunk-K233I26C.mjs.map} +0 -0
- /package/dist/esm/{chunk-AC3BISWL.mjs.map → chunk-KK5HUWF6.mjs.map} +0 -0
- /package/dist/esm/{chunk-N7C6LQPZ.mjs.map → chunk-L6KVC7CJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-Q4C4U6I4.mjs.map → chunk-LQOSHBB7.mjs.map} +0 -0
- /package/dist/esm/{chunk-XKUIMGKU.mjs.map → chunk-LS3IDL2N.mjs.map} +0 -0
- /package/dist/esm/{chunk-HFCWJ6QL.mjs.map → chunk-MAWGZICD.mjs.map} +0 -0
- /package/dist/esm/{chunk-JF66JS2R.mjs.map → chunk-MFLHAVIW.mjs.map} +0 -0
- /package/dist/esm/{chunk-DNJQWGB7.mjs.map → chunk-OLGEN23M.mjs.map} +0 -0
- /package/dist/esm/{chunk-4UK4MUSD.mjs.map → chunk-ONGH5DXZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-4776UXL6.mjs.map → chunk-OPD5EKOA.mjs.map} +0 -0
- /package/dist/esm/{chunk-V2EXS6TM.mjs.map → chunk-P5CM4C2G.mjs.map} +0 -0
- /package/dist/esm/{chunk-BBUN4IO4.mjs.map → chunk-PC25RPDV.mjs.map} +0 -0
- /package/dist/esm/{chunk-N6YTF76Q.mjs.map → chunk-PDAWVDI7.mjs.map} +0 -0
- /package/dist/esm/{chunk-6PBMD2BQ.mjs.map → chunk-PWGTRRSJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-H4GZWYIG.mjs.map → chunk-QYJKCRVA.mjs.map} +0 -0
- /package/dist/esm/{chunk-33CBJFX2.mjs.map → chunk-RDPWCN4B.mjs.map} +0 -0
- /package/dist/esm/{chunk-MT2RJ7H3.mjs.map → chunk-RIINVEZA.mjs.map} +0 -0
- /package/dist/esm/{chunk-EBMEXURY.mjs.map → chunk-RXHER6EA.mjs.map} +0 -0
- /package/dist/esm/{chunk-KEJAUCQF.mjs.map → chunk-T7X4GZDU.mjs.map} +0 -0
- /package/dist/esm/{chunk-BUTMGMSD.mjs.map → chunk-TH5JCPN2.mjs.map} +0 -0
- /package/dist/esm/{chunk-ORMOQWWH.mjs.map → chunk-TKXEVD7A.mjs.map} +0 -0
- /package/dist/esm/{chunk-FN4C3CKC.mjs.map → chunk-TTY5GFMN.mjs.map} +0 -0
- /package/dist/esm/{chunk-PR3W2QEH.mjs.map → chunk-U4DEYWFT.mjs.map} +0 -0
- /package/dist/esm/{chunk-7CYCKCVU.mjs.map → chunk-UJJGIPOA.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZCEBDPBJ.mjs.map → chunk-US2HZFOM.mjs.map} +0 -0
- /package/dist/esm/{chunk-S47HA7O7.mjs.map → chunk-VDYUMBOT.mjs.map} +0 -0
- /package/dist/esm/{chunk-3EY7MT2M.mjs.map → chunk-W2C5KRUQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-O37BZP2G.mjs.map → chunk-W4SMZ6IW.mjs.map} +0 -0
- /package/dist/esm/{chunk-CXNF73OX.mjs.map → chunk-WHVCUVZP.mjs.map} +0 -0
- /package/dist/esm/{chunk-QBFGY74I.mjs.map → chunk-WLDYBSOG.mjs.map} +0 -0
- /package/dist/esm/{chunk-HEAWDTLG.mjs.map → chunk-XRVZAEQO.mjs.map} +0 -0
- /package/dist/esm/{chunk-DNWFDS7F.mjs.map → chunk-XW3BXTCZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-L2AQG3G3.mjs.map → chunk-Y65PKZLK.mjs.map} +0 -0
- /package/dist/esm/{chunk-WXDA4CCR.mjs.map → chunk-YAGIE4GN.mjs.map} +0 -0
- /package/dist/esm/{chunk-CRFLR3ZY.mjs.map → chunk-YLUULY6G.mjs.map} +0 -0
- /package/dist/esm/{chunk-SCBYJU6K.mjs.map → chunk-YWSDONJJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-BYHCW7MI.mjs.map → chunk-YXYYII5S.mjs.map} +0 -0
- /package/dist/esm/{chunk-XTOIL6MB.mjs.map → chunk-ZD2TY5N3.mjs.map} +0 -0
- /package/dist/esm/{chunk-5BSMF22B.mjs.map → chunk-ZS2IVRHT.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-PYY2RXFP.mjs";import{a as m}from"./chunk-53IBOHXB.mjs";import{c as A}from"./chunk-KK5HUWF6.mjs";import{s as f}from"./chunk-VHNX2NUR.mjs";import{b as w}from"./chunk-LQOSHBB7.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 D(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[t,n,...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(!D(t))throw new Error(`${t} is not valid. ${T}`);if(n&&!D(n))throw new Error(`${n} is not valid. ${T}`);return{domainName:n||t,subdomainName:n?t:void 0}}var I=(n=>(n[n.Independent=0]="Independent",n[n.FollowsDomain=1]="FollowsDomain",n))(I||{});function E(e){if(!e)return!1;let t=new Date(e.domain_expiration_timestamp).getTime()<Date.now(),n=new Date(e.expiration_timestamp).getTime()<Date.now();return e.subdomain&&t?!1:e.subdomain&&e.subdomain_expiration_policy===1?!0:!n}var j="0x37368b46ce665362562c6d1d4ec01a08c8644c488690df5a17e13ba163e20221",v="0x585fc9f0f0c54183b039ffc770ca282ebd87307916c215a3e692f2f8e4305e82",O={testnet:"0x5f8fd2347449685cf41d4db97926ec3a096eaf381332be4f1318ad4d16a8497c",mainnet:"0x867ed1f6bf916171b1de3ee92849b8978b7d1b9e0a8cc982a3d19d535dfd9c0c",local:v,custom:null,devnet:null};function d(e){let t=O[e.network];if(!t)throw new Error(`The ANS contract is not deployed to ${e.network}`);return t}var b=e=>{if(e&&typeof e=="object"&&"vec"in e&&Array.isArray(e.vec))return e.vec[0]};async function F(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n),i=await g({aptosConfig:t,payload:{function:`${o}::router::get_owner_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function Y(e){let{aptosConfig:t,expiration:n,name:o,sender:r,targetAddress:s,toAddress:i,options:a,transferable:u}=e,p=d(t),{domainName:y,subdomainName:N}=c(o),x=n.policy==="subdomain:independent"||n.policy==="subdomain:follow-domain";if(N&&!x)throw new Error("Subdomains must have an expiration policy of either 'subdomain:independent' or 'subdomain:follow-domain'");if(x&&!N)throw new Error(`Policy is set to ${n.policy} but no subdomain was provided`);if(n.policy==="domain"){let h=n.years??1;if(h!==1)throw new Error("For now, names can only be registered for 1 year at a time");let G=h*31536e3;return await m({aptosConfig:t,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_domain`,functionArguments:[y,G,s,i]},options:a})}if(!N)throw new Error(`${n.policy} requires a subdomain to be provided.`);let _=await P({aptosConfig:t,name:y});if(!_)throw new Error("The domain does not exist");let S=n.policy==="subdomain:independent"?n.expirationDate:_;if(S>_)throw new Error("The subdomain expiration time cannot be greater than the domain expiration time");return await m({aptosConfig:t,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_subdomain`,functionArguments:[y,N,Math.round(S/1e3),n.policy==="subdomain:follow-domain"?1:0,!!u,s,i]},options:a})}async function P(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n);try{let i=await g({aptosConfig:t,payload:{function:`${o}::router::get_expiration`,functionArguments:[r,s]}});return Number(i[0])*1e3}catch{return}}async function K(e){let{aptosConfig:t,address:n}=e,o=d(t),r=await g({aptosConfig:t,payload:{function:`${o}::router::get_primary_name`,functionArguments:[w.from(n).toString()]}}),s=b(r[1]),i=b(r[0]);if(s)return[i,s].filter(Boolean).join(".")}async function W(e){let{aptosConfig:t,sender:n,name:o,options:r}=e,s=d(t);if(!o)return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${s}::router::clear_primary_name`,functionArguments:[]},options:r});let{domainName:i,subdomainName:a}=c(o);return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${s}::router::set_primary_name`,functionArguments:[i,a]},options:r})}async function H(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n),i=await g({aptosConfig:t,payload:{function:`${o}::router::get_target_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function J(e){let{aptosConfig:t,sender:n,name:o,address:r,options:s}=e,i=d(t),{domainName:a,subdomainName:u}=c(o);return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${i}::router::set_target_addr`,functionArguments:[a,u,r]},options:s})}async function X(e){let{aptosConfig:t,name:n}=e,{domainName:o,subdomainName:r=""}=c(n),a=(await A({aptosConfig:t,query:{query:f,variables:{where_condition:{domain:{_eq:o},subdomain:{_eq:r}},limit:1}},originMethod:"getName"})).current_aptos_names[0];return a&&(a=l(a)),E(a)?a:void 0}async function Z(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountNames",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r}}}}})).current_aptos_names.map(l)}async function ee(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountDomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_eq:""}}}}})).current_aptos_names.map(l)}async function ne(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountSubdomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_neq:""}}}}})).current_aptos_names.map(l)}async function te(e){let{aptosConfig:t,options:n,domain:o}=e;return(await A({aptosConfig:t,originMethod:"getDomainSubdomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},domain:{_eq:o},subdomain:{_neq:""}}}}})).current_aptos_names.map(l).filter(E)}async function C(e){let{aptosConfig:t}=e,n=d(t),[o]=await g({aptosConfig:t,payload:{function:`${n}::config::reregistration_grace_sec`,functionArguments:[]}}),r=o/60/60/24,s=()=>new Date;return new Date(s().setDate(s().getDate()-r)).toISOString()}async function oe(e){let{aptosConfig:t,sender:n,name:o,years:r=1,options:s}=e,i=d(t),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:t,sender:n.accountAddress.toString(),data:{function:`${i}::router::renew_domain`,functionArguments:[u,a]},options:s})}function l(e){return{...e,expiration_timestamp:new Date(e.expiration_timestamp).getTime()}}export{T as a,D as b,c,I as d,E as e,j as f,v as g,F as h,Y as i,P as j,K as k,W as l,H as m,J as n,X as o,Z as p,ee as q,ne as r,te as s,oe as t};
|
|
2
|
+
//# sourceMappingURL=chunk-YAGIE4GN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as K}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as K}from"./chunk-CPAAEEF4.mjs";import{i as m,r as u}from"./chunk-HVIF6DW6.mjs";import{a as f}from"./chunk-ZD2TY5N3.mjs";import{b as y}from"./chunk-VHY6ZATX.mjs";var h=class c extends K{constructor(e){let r=m.create(e);super({publicKey:r,...e}),this.publicKey=r}serialize(e){super.serialize(e)}static deserialize(e){let{address:r,proof:l,ephemeralKeyPair:i,jwt:o,uidKey:t,pepper:s,verificationKeyHash:n}=K.partialDeserialize(e),{iss:a,aud:p,uidVal:d}=u({jwt:o,uidKey:t});return new c({address:r,proof:l,ephemeralKeyPair:i,iss:a,uidKey:t,uidVal:d,aud:p,pepper:s,jwt:o,verificationKeyHash:n})}static fromBytes(e){return c.deserialize(new f(y.hexInputToUint8Array(e)))}static create(e){let{address:r,proof:l,jwt:i,ephemeralKeyPair:o,pepper:t,uidKey:s="sub",proofFetchCallback:n,verificationKey:a}=e,{iss:p,aud:d,uidVal:g}=u({jwt:i,uidKey:s});return new c({address:r,proof:l,ephemeralKeyPair:o,iss:p,uidKey:s,uidVal:g,aud:d,pepper:t,jwt:i,proofFetchCallback:n,verificationKeyHash:a?a.hash():void 0})}};export{h as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YLUULY6G.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-27ESCVVC.mjs";import{a as e}from"./chunk-BQYKFATL.mjs";import{a as r}from"./chunk-RXHER6EA.mjs";var n=class o extends r{constructor(t,a){super(),this.raw_txn=t,this.authenticator=a}serialize(t){this.raw_txn.serialize(t),this.authenticator.serialize(t)}static deserialize(t){let a=i.deserialize(t),s=e.deserialize(t);return new o(a,s)}};export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YWSDONJJ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as s}from"./chunk-W2C5KRUQ.mjs";import{a as e,c as n}from"./chunk-BHVSIRNF.mjs";var r=class{constructor(t,i,o,a,c){this.lastUncommintedNumber=null;this.currentNumber=null;this.lock=!1;this.aptosConfig=t,this.account=i,this.maxWaitTime=o,this.maximumInFlight=a,this.sleepTime=c}async nextSequenceNumber(){for(;this.lock;)await e(this.sleepTime);this.lock=!0;let t=BigInt(0);try{if((this.lastUncommintedNumber===null||this.currentNumber===null)&&await this.initialize(),this.currentNumber-this.lastUncommintedNumber>=this.maximumInFlight){await this.update();let i=n();for(;this.currentNumber-this.lastUncommintedNumber>=this.maximumInFlight;)await e(this.sleepTime),n()-i>this.maxWaitTime?(console.warn(`Waited over 30 seconds for a transaction to commit, re-syncing ${this.account.accountAddress.toString()}`),await this.initialize()):await this.update()}t=this.currentNumber,this.currentNumber+=BigInt(1)}catch(i){console.error("error in getting next sequence number for this account",i)}finally{this.lock=!1}return t}async initialize(){let{sequence_number:t}=await s({aptosConfig:this.aptosConfig,accountAddress:this.account.accountAddress});this.currentNumber=BigInt(t),this.lastUncommintedNumber=BigInt(t)}async update(){let{sequence_number:t}=await s({aptosConfig:this.aptosConfig,accountAddress:this.account.accountAddress});return this.lastUncommintedNumber=BigInt(t),this.lastUncommintedNumber}async synchronize(){if(this.lastUncommintedNumber!==this.currentNumber){for(;this.lock;)await e(this.sleepTime);this.lock=!0;try{await this.update();let t=n();for(;this.lastUncommintedNumber!==this.currentNumber;)n()-t>this.maxWaitTime?(console.warn(`Waited over 30 seconds for a transaction to commit, re-syncing ${this.account.accountAddress.toString()}`),await this.initialize()):(await e(this.sleepTime),await this.update())}catch(t){console.error("error in synchronizing this account sequence number with the one on chain",t)}finally{this.lock=!1}}}};export{r as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YXYYII5S.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s}from"./chunk-VHY6ZATX.mjs";import{c as r}from"./chunk-56CNRT2K.mjs";var a=class d{constructor(e){this.buffer=new ArrayBuffer(e.length),new Uint8Array(this.buffer).set(e,0),this.offset=0}static fromHex(e){let i=s.hexInputToUint8Array(e);return new d(i)}read(e){if(this.offset+e>this.buffer.byteLength)throw new Error("Reached to the end of buffer");let i=this.buffer.slice(this.offset,this.offset+e);return this.offset+=e,i}remaining(){return this.buffer.byteLength-this.offset}deserializeStr(){let e=this.deserializeBytes();return new TextDecoder().decode(e)}deserializeOptionStr(){return this.deserializeOption("string")}deserializeOption(e,i){if(this.deserializeBool()){if(e==="string")return this.deserializeStr();if(e==="bytes")return this.deserializeBytes();if(e==="fixedBytes"){if(i===void 0)throw new Error("Fixed bytes length not provided");return this.deserializeFixedBytes(i)}return this.deserialize(e)}}deserializeBytes(){let e=this.deserializeUleb128AsU32();return new Uint8Array(this.read(e))}deserializeFixedBytes(e){return new Uint8Array(this.read(e))}deserializeBool(){let e=new Uint8Array(this.read(1))[0];if(e!==1&&e!==0)throw new Error("Invalid boolean value");return e===1}deserializeU8(){return new DataView(this.read(1)).getUint8(0)}deserializeU16(){return new DataView(this.read(2)).getUint16(0,!0)}deserializeU32(){return new DataView(this.read(4)).getUint32(0,!0)}deserializeU64(){let e=this.deserializeU32(),i=this.deserializeU32();return BigInt(BigInt(i)<<BigInt(32)|BigInt(e))}deserializeU128(){let e=this.deserializeU64(),i=this.deserializeU64();return BigInt(i<<BigInt(64)|e)}deserializeU256(){let e=this.deserializeU128(),i=this.deserializeU128();return BigInt(i<<BigInt(128)|e)}deserializeUleb128AsU32(){let e=BigInt(0),i=0;for(;e<r;){let t=this.deserializeU8();if(e|=BigInt(t&127)<<BigInt(i),!(t&128))break;i+=7}if(e>r)throw new Error("Overflow while parsing uleb128-encoded uint32 value");return Number(e)}deserialize(e){return e.deserialize(this)}deserializeVector(e){let i=this.deserializeUleb128AsU32(),t=new Array;for(let n=0;n<i;n+=1)t.push(this.deserialize(e));return t}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZD2TY5N3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s}from"./chunk-W4BSN6SK.mjs";import{g as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s}from"./chunk-W4BSN6SK.mjs";import{g as r}from"./chunk-53IBOHXB.mjs";import{a as o}from"./chunk-KDMSOCZY.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-ZS2IVRHT.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-US2HZFOM.mjs";import{a as r}from"../chunk-35DKMW7Q.mjs";import"../chunk-BHVSIRNF.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.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-US2HZFOM.mjs";import"../chunk-BHVSIRNF.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{a as LocalNode};
|
|
2
2
|
//# sourceMappingURL=localNode.mjs.map
|
|
@@ -15,6 +15,7 @@ import '@aptos-labs/script-composer-pack';
|
|
|
15
15
|
* @param options.method - The HTTP method to use for the request.
|
|
16
16
|
* @param options.body - The body of the request.
|
|
17
17
|
* @param options.contentType - The content type of the request.
|
|
18
|
+
* @param options.acceptType - The accept type of the request.
|
|
18
19
|
* @param options.params - The query parameters to include in the request.
|
|
19
20
|
* @param options.overrides - Additional overrides for the request.
|
|
20
21
|
* @param options.overrides.HEADERS - Custom headers to include in the request.
|
|
@@ -28,6 +29,28 @@ import '@aptos-labs/script-composer-pack';
|
|
|
28
29
|
* @category Client
|
|
29
30
|
*/
|
|
30
31
|
declare function request<Req, Res>(options: ClientRequest<Req>, client: Client): Promise<ClientResponse<Res>>;
|
|
32
|
+
/**
|
|
33
|
+
* Sends a request using the specified options and returns the response.
|
|
34
|
+
*
|
|
35
|
+
* @param options - The options for the request.
|
|
36
|
+
* @param options.url - The URL to send the request to.
|
|
37
|
+
* @param options.method - The HTTP method to use for the request.
|
|
38
|
+
* @param options.body - The body of the request.
|
|
39
|
+
* @param options.contentType - The content type of the request.
|
|
40
|
+
* @param options.acceptType - The accept type of the request.
|
|
41
|
+
* @param options.params - The query parameters to include in the request.
|
|
42
|
+
* @param options.overrides - Additional overrides for the request.
|
|
43
|
+
* @param options.overrides.HEADERS - Custom headers to include in the request.
|
|
44
|
+
* @param options.overrides.AUTH_TOKEN - The authorization token for the request.
|
|
45
|
+
* @param options.overrides.API_KEY - The API key for the request.
|
|
46
|
+
* @param options.originMethod - The origin method for the request.
|
|
47
|
+
* @param client - The client used to make the request.
|
|
48
|
+
*
|
|
49
|
+
* @returns The response from the request.
|
|
50
|
+
* @group Implementation
|
|
51
|
+
* @category Client
|
|
52
|
+
*/
|
|
53
|
+
declare function binaryRequest<Req>(options: ClientRequest<Req>, client: Client): Promise<ClientResponse<Buffer>>;
|
|
31
54
|
/**
|
|
32
55
|
* The main function to use when making an API request, returning the response or throwing an AptosApiError on failure.
|
|
33
56
|
*
|
|
@@ -39,5 +62,17 @@ declare function request<Req, Res>(options: ClientRequest<Req>, client: Client):
|
|
|
39
62
|
* @category Client
|
|
40
63
|
*/
|
|
41
64
|
declare function aptosRequest<Req extends {}, Res extends {}>(aptosRequestOpts: AptosRequest, aptosConfig: AptosConfig, apiType: AptosApiType): Promise<AptosResponse<Req, Res>>;
|
|
65
|
+
/**
|
|
66
|
+
* The main function to use when making an API request, returning the response or throwing an AptosApiError on failure.
|
|
67
|
+
*
|
|
68
|
+
* @param aptosRequestOpts - Options for the Aptos request, including the URL and path.
|
|
69
|
+
* @param aptosConfig - The configuration information for the SDK client instance.
|
|
70
|
+
* @param apiType - The type of API being accessed, which determines how the response is handled.
|
|
71
|
+
* @returns The response from the API request or throws an AptosApiError if the request fails.
|
|
72
|
+
* @group Implementation
|
|
73
|
+
* @category Client
|
|
74
|
+
* @experimental
|
|
75
|
+
*/
|
|
76
|
+
declare function aptosBinaryRequest<Req extends {}>(aptosRequestOpts: AptosRequest, aptosConfig: AptosConfig, apiType: AptosApiType): Promise<AptosResponse<Req, Buffer>>;
|
|
42
77
|
|
|
43
|
-
export { aptosRequest, request };
|
|
78
|
+
export { aptosBinaryRequest, aptosRequest, binaryRequest, request };
|
package/dist/esm/client/core.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-TWETGZ3W.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BMPHQ3E7.mjs";import"../chunk-TH5JCPN2.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-ERLDXTIY.mjs";import"../chunk-RIINVEZA.mjs";import"../chunk-HHWJHOFZ.mjs";import"../chunk-TKXEVD7A.mjs";import"../chunk-ZD2TY5N3.mjs";import"../chunk-BHVSIRNF.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-BY3XFRUM.mjs";import"../chunk-KDMSOCZY.mjs";export{d as aptosBinaryRequest,c as aptosRequest,b as binaryRequest,a as request};
|
|
2
2
|
//# sourceMappingURL=core.mjs.map
|
|
@@ -85,6 +85,24 @@ type GetAptosRequestOptions = Omit<GetRequestOptions, "type">;
|
|
|
85
85
|
* @category Client
|
|
86
86
|
*/
|
|
87
87
|
declare function get<Req extends {}, Res extends {}>(options: GetRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
88
|
+
/**
|
|
89
|
+
* Executes a GET request to retrieve data based on the provided options.
|
|
90
|
+
*
|
|
91
|
+
* @param options - The options for the GET request.
|
|
92
|
+
* @param options.aptosConfig - The configuration object for Aptos requests.
|
|
93
|
+
* @param options.overrides - Optional overrides for the request configuration.
|
|
94
|
+
* @param options.params - Query parameters to include in the request.
|
|
95
|
+
* @param options.contentType - The content type of the request.
|
|
96
|
+
* @param options.acceptType - The accepted response type.
|
|
97
|
+
* @param options.path - The specific path for the request.
|
|
98
|
+
* @param options.originMethod - The original method of the request.
|
|
99
|
+
* @param options.type - The type of request being made.
|
|
100
|
+
* @returns The response from the GET request.
|
|
101
|
+
* @group Implementation
|
|
102
|
+
* @category Client
|
|
103
|
+
* @experimental
|
|
104
|
+
*/
|
|
105
|
+
declare function getBinary<Req extends {}>(options: GetRequestOptions): Promise<AptosResponse<Req, Buffer>>;
|
|
88
106
|
/**
|
|
89
107
|
* Retrieves data from the Aptos full node using the provided options.
|
|
90
108
|
*
|
|
@@ -100,6 +118,22 @@ declare function get<Req extends {}, Res extends {}>(options: GetRequestOptions)
|
|
|
100
118
|
* @category Client
|
|
101
119
|
*/
|
|
102
120
|
declare function getAptosFullNode<Req extends {}, Res extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
121
|
+
/**
|
|
122
|
+
* Retrieves data from the Aptos full node using the provided options.
|
|
123
|
+
*
|
|
124
|
+
* @param options - The options for the request to the Aptos full node.
|
|
125
|
+
* @param options.aptosConfig - Configuration settings specific to the Aptos client and full node.
|
|
126
|
+
* @param options.aptosConfig.clientConfig - The client configuration settings.
|
|
127
|
+
* @param options.aptosConfig.fullnodeConfig - The full node configuration settings.
|
|
128
|
+
* @param options.overrides - Additional overrides for the request.
|
|
129
|
+
* @param options.type - The type of API request being made.
|
|
130
|
+
*
|
|
131
|
+
* @returns A promise that resolves with the response from the Aptos full node.
|
|
132
|
+
* @group Implementation
|
|
133
|
+
* @category Client
|
|
134
|
+
* @experimental
|
|
135
|
+
*/
|
|
136
|
+
declare function getBinaryAptosFullNode<Req extends {}>(options: GetAptosRequestOptions): Promise<AptosResponse<Req, Buffer>>;
|
|
103
137
|
/**
|
|
104
138
|
* Makes a GET request to the Aptos Pepper service to retrieve data.
|
|
105
139
|
*
|
|
@@ -119,4 +153,4 @@ declare function getAptosPepperService<Req extends {}, Res extends {}>(options:
|
|
|
119
153
|
declare function paginateWithCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<Res>;
|
|
120
154
|
declare function paginateWithObfuscatedCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<Res>;
|
|
121
155
|
|
|
122
|
-
export { type GetAptosRequestOptions, type GetRequestOptions, get, getAptosFullNode, getAptosPepperService, paginateWithCursor, paginateWithObfuscatedCursor };
|
|
156
|
+
export { type GetAptosRequestOptions, type GetRequestOptions, get, getAptosFullNode, getAptosPepperService, getBinary, getBinaryAptosFullNode, paginateWithCursor, paginateWithObfuscatedCursor };
|
package/dist/esm/client/get.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g}from"../chunk-SJDHW55X.mjs";import"../chunk-TWETGZ3W.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BMPHQ3E7.mjs";import"../chunk-TH5JCPN2.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-ERLDXTIY.mjs";import"../chunk-RIINVEZA.mjs";import"../chunk-HHWJHOFZ.mjs";import"../chunk-TKXEVD7A.mjs";import"../chunk-ZD2TY5N3.mjs";import"../chunk-BHVSIRNF.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-BY3XFRUM.mjs";import"../chunk-KDMSOCZY.mjs";export{a as get,c as getAptosFullNode,e as getAptosPepperService,b as getBinary,d as getBinaryAptosFullNode,f as paginateWithCursor,g as paginateWithObfuscatedCursor};
|
|
2
2
|
//# sourceMappingURL=get.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { aptosRequest, request } from './core.mjs';
|
|
2
|
-
export { GetAptosRequestOptions, GetRequestOptions, get, getAptosFullNode, getAptosPepperService, paginateWithCursor, paginateWithObfuscatedCursor } from './get.mjs';
|
|
3
|
-
export { PostAptosRequestOptions, PostRequestOptions, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService } from './post.mjs';
|
|
1
|
+
export { aptosBinaryRequest, aptosRequest, binaryRequest, request } from './core.mjs';
|
|
2
|
+
export { GetAptosRequestOptions, GetRequestOptions, get, getAptosFullNode, getAptosPepperService, getBinary, getBinaryAptosFullNode, paginateWithCursor, paginateWithObfuscatedCursor } from './get.mjs';
|
|
3
|
+
export { PostAptosRequestOptions, PostRequestOptions, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, postBinary, postBinaryAptosFullNode } from './post.mjs';
|
|
4
4
|
import '../api/aptosConfig.mjs';
|
|
5
5
|
import '../types/types.mjs';
|
|
6
6
|
import '../types/indexer.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-7ECCT6PK.mjs";import{a as
|
|
1
|
+
import"../chunk-7ECCT6PK.mjs";import{a as e,b as f,c as g,d as h,e as i,f as j,g as k}from"../chunk-SJDHW55X.mjs";import{a as l,b as m,c as n,d as o,e as p,f as q,g as r,h as s}from"../chunk-752TOOCA.mjs";import{a,b,c,d}from"../chunk-TWETGZ3W.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BMPHQ3E7.mjs";import"../chunk-TH5JCPN2.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-ERLDXTIY.mjs";import"../chunk-RIINVEZA.mjs";import"../chunk-HHWJHOFZ.mjs";import"../chunk-TKXEVD7A.mjs";import"../chunk-ZD2TY5N3.mjs";import"../chunk-BHVSIRNF.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-BY3XFRUM.mjs";import"../chunk-KDMSOCZY.mjs";export{d as aptosBinaryRequest,c as aptosRequest,b as binaryRequest,e as get,g as getAptosFullNode,i as getAptosPepperService,f as getBinary,h as getBinaryAptosFullNode,j as paginateWithCursor,k as paginateWithObfuscatedCursor,l as post,q as postAptosFaucet,n as postAptosFullNode,p as postAptosIndexer,r as postAptosPepperService,s as postAptosProvingService,m as postBinary,o as postBinaryAptosFullNode,a as request};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -92,6 +92,25 @@ type PostAptosRequestOptions = Omit<PostRequestOptions, "type">;
|
|
|
92
92
|
* @category Client
|
|
93
93
|
*/
|
|
94
94
|
declare function post<Req extends {}, Res extends {}>(options: PostRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
95
|
+
/**
|
|
96
|
+
* Executes a POST request to the specified URL with the provided options.
|
|
97
|
+
*
|
|
98
|
+
* @param options - The options for the POST request.
|
|
99
|
+
* @param options.type - The type of the request.
|
|
100
|
+
* @param options.originMethod - The original method that initiated the request.
|
|
101
|
+
* @param options.path - The path for the request.
|
|
102
|
+
* @param options.body - The body content to be sent with the request.
|
|
103
|
+
* @param options.acceptType - The type of response expected from the server.
|
|
104
|
+
* @param options.contentType - The content type of the request body.
|
|
105
|
+
* @param options.params - Additional parameters to include in the request.
|
|
106
|
+
* @param options.aptosConfig - Configuration settings for the Aptos request.
|
|
107
|
+
* @param options.overrides - Any overrides for the default request behavior.
|
|
108
|
+
* @returns The response from the POST request.
|
|
109
|
+
* @group Implementation
|
|
110
|
+
* @category Client
|
|
111
|
+
* @experimental
|
|
112
|
+
*/
|
|
113
|
+
declare function postBinary<Req extends {}>(options: PostRequestOptions): Promise<AptosResponse<Req, Buffer>>;
|
|
95
114
|
/**
|
|
96
115
|
* Sends a request to the Aptos full node using the specified options.
|
|
97
116
|
* This function allows you to interact with the Aptos blockchain by sending requests to the full node.
|
|
@@ -105,6 +124,20 @@ declare function post<Req extends {}, Res extends {}>(options: PostRequestOption
|
|
|
105
124
|
* @category Client
|
|
106
125
|
*/
|
|
107
126
|
declare function postAptosFullNode<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
127
|
+
/**
|
|
128
|
+
* Sends a request to the Aptos full node using the specified options.
|
|
129
|
+
* This function allows you to interact with the Aptos blockchain by sending requests to the full node.
|
|
130
|
+
*
|
|
131
|
+
* @param options - The options for the request.
|
|
132
|
+
* @param options.aptosConfig - Configuration settings for the Aptos client.
|
|
133
|
+
* @param options.aptosConfig.clientConfig - Client-specific configuration settings.
|
|
134
|
+
* @param options.aptosConfig.fullnodeConfig - Full node-specific configuration settings.
|
|
135
|
+
* @param options.overrides - Additional overrides for the request.
|
|
136
|
+
* @group Implementation
|
|
137
|
+
* @category Client
|
|
138
|
+
* @experimental
|
|
139
|
+
*/
|
|
140
|
+
declare function postBinaryAptosFullNode<Req extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Buffer>>;
|
|
108
141
|
/**
|
|
109
142
|
* Sends a request to the Aptos indexer with the specified options.
|
|
110
143
|
* This function allows you to interact with the Aptos indexer and customize the request using various configurations.
|
|
@@ -159,4 +192,4 @@ declare function postAptosPepperService<Req extends {}, Res extends {}>(options:
|
|
|
159
192
|
*/
|
|
160
193
|
declare function postAptosProvingService<Req extends {}, Res extends {}>(options: PostAptosRequestOptions): Promise<AptosResponse<Req, Res>>;
|
|
161
194
|
|
|
162
|
-
export { type PostAptosRequestOptions, type PostRequestOptions, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService };
|
|
195
|
+
export { type PostAptosRequestOptions, type PostRequestOptions, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, postBinary, postBinaryAptosFullNode };
|
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,g,h}from"../chunk-752TOOCA.mjs";import"../chunk-TWETGZ3W.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BMPHQ3E7.mjs";import"../chunk-TH5JCPN2.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-ERLDXTIY.mjs";import"../chunk-RIINVEZA.mjs";import"../chunk-HHWJHOFZ.mjs";import"../chunk-TKXEVD7A.mjs";import"../chunk-ZD2TY5N3.mjs";import"../chunk-BHVSIRNF.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-BY3XFRUM.mjs";import"../chunk-KDMSOCZY.mjs";export{a as post,f as postAptosFaucet,c as postAptosFullNode,e as postAptosIndexer,g as postAptosPepperService,h as postAptosProvingService,b as postBinary,d as postBinaryAptosFullNode};
|
|
2
2
|
//# sourceMappingURL=post.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../chunk-
|
|
1
|
+
import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../chunk-AIPHJFJL.mjs";import"../../chunk-LQOSHBB7.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-R6QCPXQG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-RXHER6EA.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as createObjectAddress,b as createResourceAddress,c as createTokenAddress};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../../../chunk-
|
|
1
|
+
import{a,b,c}from"../../../chunk-AIPHJFJL.mjs";import"../../../chunk-LQOSHBB7.mjs";import"../../../chunk-3OLFJ65O.mjs";import"../../../chunk-R6QCPXQG.mjs";import"../../../chunk-4WPQQPUF.mjs";import"../../../chunk-RXHER6EA.mjs";import"../../../chunk-VHY6ZATX.mjs";import"../../../chunk-IF4UU2MT.mjs";import"../../../chunk-56CNRT2K.mjs";import"../../../chunk-KDMSOCZY.mjs";export{a as createObjectAddress,b as createResourceAddress,c as createTokenAddress};
|
|
2
2
|
//# sourceMappingURL=address.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../../chunk-
|
|
1
|
+
import"../../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../../chunk-AIPHJFJL.mjs";import"../../../chunk-LQOSHBB7.mjs";import"../../../chunk-3OLFJ65O.mjs";import"../../../chunk-R6QCPXQG.mjs";import"../../../chunk-4WPQQPUF.mjs";import"../../../chunk-RXHER6EA.mjs";import"../../../chunk-VHY6ZATX.mjs";import"../../../chunk-IF4UU2MT.mjs";import"../../../chunk-56CNRT2K.mjs";import"../../../chunk-KDMSOCZY.mjs";export{a as createObjectAddress,b as createResourceAddress,c as createTokenAddress};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{b as AccountAddress,a as AddressInvalidReason};
|
|
2
2
|
//# sourceMappingURL=accountAddress.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-TTY5GFMN.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{a as AuthenticationKey};
|
|
2
2
|
//# sourceMappingURL=authenticationKey.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-CGTMSLVZ.mjs";import"../../chunk-H4YAL2IL.mjs";import"../../chunk-A3VO773Q.mjs";import"../../chunk-TTY5GFMN.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ERLDXTIY.mjs";import"../../chunk-RIINVEZA.mjs";import"../../chunk-HHWJHOFZ.mjs";import"../../chunk-TKXEVD7A.mjs";import"../../chunk-ZD2TY5N3.mjs";import"../../chunk-LQOSHBB7.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-R6QCPXQG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-RXHER6EA.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{b as AbstractPublicKey,a as AbstractSignature};
|
|
2
2
|
//# sourceMappingURL=abstraction.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../../chunk-
|
|
1
|
+
import{a,b,c,d}from"../../chunk-7OUPEQRN.mjs";import"../../chunk-DOVH6HPL.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-7CRQNXR5.mjs";import"../../chunk-H4YAL2IL.mjs";import"../../chunk-A3VO773Q.mjs";import"../../chunk-TTY5GFMN.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ERLDXTIY.mjs";import"../../chunk-RIINVEZA.mjs";import"../../chunk-HHWJHOFZ.mjs";import"../../chunk-TKXEVD7A.mjs";import"../../chunk-ZD2TY5N3.mjs";import"../../chunk-LQOSHBB7.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-R6QCPXQG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-RXHER6EA.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{c as Ed25519PrivateKey,b as Ed25519PublicKey,d as Ed25519Signature,a as isCanonicalEd25519Signature};
|
|
2
2
|
//# sourceMappingURL=ed25519.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-PWGTRRSJ.mjs";import"../../chunk-7OUPEQRN.mjs";import"../../chunk-DOVH6HPL.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-7CRQNXR5.mjs";import"../../chunk-H4YAL2IL.mjs";import"../../chunk-A3VO773Q.mjs";import"../../chunk-TTY5GFMN.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ERLDXTIY.mjs";import"../../chunk-RIINVEZA.mjs";import"../../chunk-HHWJHOFZ.mjs";import"../../chunk-TKXEVD7A.mjs";import"../../chunk-ZD2TY5N3.mjs";import"../../chunk-LQOSHBB7.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-R6QCPXQG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-RXHER6EA.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as EphemeralPublicKey,b as EphemeralSignature};
|
|
2
2
|
//# sourceMappingURL=ephemeral.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-XW3BXTCZ.mjs";import"../../chunk-HVIF6DW6.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-2V636AYW.mjs";import"../../chunk-PWGTRRSJ.mjs";import"../../chunk-7OUPEQRN.mjs";import"../../chunk-DOVH6HPL.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-7CRQNXR5.mjs";import"../../chunk-H4YAL2IL.mjs";import"../../chunk-A3VO773Q.mjs";import"../../chunk-TTY5GFMN.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-SJDHW55X.mjs";import"../../chunk-752TOOCA.mjs";import"../../chunk-TWETGZ3W.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BMPHQ3E7.mjs";import"../../chunk-TH5JCPN2.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-RJ7F4JDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ERLDXTIY.mjs";import"../../chunk-RIINVEZA.mjs";import"../../chunk-HHWJHOFZ.mjs";import"../../chunk-TKXEVD7A.mjs";import"../../chunk-ZD2TY5N3.mjs";import"../../chunk-BHVSIRNF.mjs";import"../../chunk-LQOSHBB7.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-R6QCPXQG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-RXHER6EA.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BY3XFRUM.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as FederatedKeylessPublicKey};
|
|
2
2
|
//# sourceMappingURL=federatedKeyless.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, isCanonicalEd25519Signature } from './ed25519.mjs';
|
|
2
2
|
export { APTOS_BIP44_REGEX, APTOS_HARDENED_REGEX, CKDPriv, DerivedKeys, HARDENED_OFFSET, KeyType, deriveKey, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, splitPath } from './hdKey.mjs';
|
|
3
3
|
export { MultiEd25519PublicKey, MultiEd25519Signature } from './multiEd25519.mjs';
|
|
4
|
-
export { MultiKey, MultiKeySignature } from './multiKey.mjs';
|
|
4
|
+
export { AbstractMultiKey, MultiKey, MultiKeySignature } from './multiKey.mjs';
|
|
5
5
|
export { EphemeralPublicKey, EphemeralSignature } from './ephemeral.mjs';
|
|
6
6
|
export { FederatedKeylessPublicKey } from './federatedKeyless.mjs';
|
|
7
7
|
export { EPK_HORIZON_SECS, EphemeralCertificate, Groth16VerificationKey, 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, MoveJWK, ZeroKnowledgeSig, ZkProof, getIssAudAndUidVal, getKeylessConfig, getKeylessJWKs, parseJwtHeader } from './keyless.mjs';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-HEZ2ZYZA.mjs";import{a as
|
|
1
|
+
import"../../chunk-HEZ2ZYZA.mjs";import{a as ba,b as ca}from"../../chunk-WFKPVKU3.mjs";import{a as _,b as $,c as aa}from"../../chunk-QUJM5W4L.mjs";import{a as Y,b as Z}from"../../chunk-2TRQERBL.mjs";import{a as s,b as t,c as u}from"../../chunk-JNNFNYDO.mjs";import{a as X}from"../../chunk-XW3BXTCZ.mjs";import{a as C,b as D,c as E,d as F,e as G,f as H,g as I,h as J,i as K,j as L,k as M,l as N,m as O,n as P,o as Q,p as R,q as S,r as T,s as U,t as V,u as W}from"../../chunk-HVIF6DW6.mjs";import{a as x,b as y,c as z,d as A,e as B}from"../../chunk-GOXRBEIJ.mjs";import"../../chunk-2V636AYW.mjs";import{a as v,b as w}from"../../chunk-PWGTRRSJ.mjs";import{a as o,b as p,c as q,d as r}from"../../chunk-7OUPEQRN.mjs";import"../../chunk-DOVH6HPL.mjs";import{a,b,c,d,e,f,g,h,i,j}from"../../chunk-C3Q23D22.mjs";import{a as k}from"../../chunk-7CRQNXR5.mjs";import{a as l,b as m}from"../../chunk-H4YAL2IL.mjs";import{a as n}from"../../chunk-A3VO773Q.mjs";import"../../chunk-TTY5GFMN.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-SJDHW55X.mjs";import"../../chunk-752TOOCA.mjs";import"../../chunk-TWETGZ3W.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BMPHQ3E7.mjs";import"../../chunk-TH5JCPN2.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-RJ7F4JDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ERLDXTIY.mjs";import"../../chunk-RIINVEZA.mjs";import"../../chunk-HHWJHOFZ.mjs";import"../../chunk-TKXEVD7A.mjs";import"../../chunk-ZD2TY5N3.mjs";import"../../chunk-BHVSIRNF.mjs";import"../../chunk-LQOSHBB7.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-R6QCPXQG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-RXHER6EA.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BY3XFRUM.mjs";import"../../chunk-KDMSOCZY.mjs";export{b as APTOS_BIP44_REGEX,a as APTOS_HARDENED_REGEX,_ as AbstractMultiKey,m as AccountPublicKey,Y as AnyPublicKey,Z as AnySignature,h as CKDPriv,C as EPK_HORIZON_SECS,q as Ed25519PrivateKey,p as Ed25519PublicKey,r as Ed25519Signature,M as EphemeralCertificate,v as EphemeralPublicKey,w as EphemeralSignature,X as FederatedKeylessPublicKey,R as Groth16VerificationKey,N as Groth16Zkp,d as HARDENED_OFFSET,c as KeyType,Q as KeylessConfiguration,K as KeylessPublicKey,L as KeylessSignature,D as MAX_AUD_VAL_BYTES,J as MAX_COMMITED_EPK_BYTES,H as MAX_EXTRA_FIELD_BYTES,G as MAX_ISS_VAL_BYTES,I as MAX_JWT_HEADER_B64_BYTES,E as MAX_UID_KEY_BYTES,F as MAX_UID_VAL_BYTES,V as MoveJWK,ba as MultiEd25519PublicKey,ca as MultiEd25519Signature,$ as MultiKey,aa as MultiKeySignature,k as PrivateKey,l as PublicKey,t as Secp256k1PrivateKey,s as Secp256k1PublicKey,u as Secp256k1Signature,n as Signature,P as ZeroKnowledgeSig,O as ZkProof,A as bigIntToBytesLE,z as bytesToBigIntLE,g as deriveKey,T as getIssAudAndUidVal,S as getKeylessConfig,U as getKeylessJWKs,x as hashStrToField,o as isCanonicalEd25519Signature,e as isValidBIP44Path,f as isValidHardenedPath,j as mnemonicToSeed,y as padAndPackBytesWithLen,W as parseJwtHeader,B as poseidonHash,i as splitPath};
|
|
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,s,t,u}from"../../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"../../chunk-HVIF6DW6.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-2V636AYW.mjs";import"../../chunk-PWGTRRSJ.mjs";import"../../chunk-7OUPEQRN.mjs";import"../../chunk-DOVH6HPL.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-7CRQNXR5.mjs";import"../../chunk-H4YAL2IL.mjs";import"../../chunk-A3VO773Q.mjs";import"../../chunk-TTY5GFMN.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-SJDHW55X.mjs";import"../../chunk-752TOOCA.mjs";import"../../chunk-TWETGZ3W.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BMPHQ3E7.mjs";import"../../chunk-TH5JCPN2.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-RJ7F4JDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ERLDXTIY.mjs";import"../../chunk-RIINVEZA.mjs";import"../../chunk-HHWJHOFZ.mjs";import"../../chunk-TKXEVD7A.mjs";import"../../chunk-ZD2TY5N3.mjs";import"../../chunk-BHVSIRNF.mjs";import"../../chunk-LQOSHBB7.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-R6QCPXQG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-RXHER6EA.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BY3XFRUM.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as EPK_HORIZON_SECS,k as EphemeralCertificate,p as Groth16VerificationKey,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,t as MoveJWK,n as ZeroKnowledgeSig,m as ZkProof,r as getIssAudAndUidVal,q as getKeylessConfig,s as getKeylessJWKs,u as parseJwtHeader};
|
|
2
2
|
//# sourceMappingURL=keyless.mjs.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Deserializer } from '../../bcs/deserializer.mjs';
|
|
2
2
|
import { Serializer } from '../../bcs/serializer.mjs';
|
|
3
|
-
import {
|
|
3
|
+
import { V as VerifySignatureArgs, A as AuthenticationKey } from '../../publicKey-BMtGNNLg.mjs';
|
|
4
4
|
import { Ed25519PublicKey, Ed25519Signature } from './ed25519.mjs';
|
|
5
|
+
import { AbstractMultiKey } from './multiKey.mjs';
|
|
5
6
|
import { Signature } from './signature.mjs';
|
|
6
7
|
import '../../types/types.mjs';
|
|
7
8
|
import '../../types/indexer.mjs';
|
|
@@ -14,6 +15,8 @@ import '../common.mjs';
|
|
|
14
15
|
import '../accountAddress.mjs';
|
|
15
16
|
import '../../transactions/instances/transactionArgument.mjs';
|
|
16
17
|
import './privateKey.mjs';
|
|
18
|
+
import './singleKey.mjs';
|
|
19
|
+
import './secp256k1.mjs';
|
|
17
20
|
|
|
18
21
|
/**
|
|
19
22
|
* Represents the public key of a K-of-N Ed25519 multi-sig transaction.
|
|
@@ -26,7 +29,7 @@ import './privateKey.mjs';
|
|
|
26
29
|
* @group Implementation
|
|
27
30
|
* @category Serialization
|
|
28
31
|
*/
|
|
29
|
-
declare class MultiEd25519PublicKey extends
|
|
32
|
+
declare class MultiEd25519PublicKey extends AbstractMultiKey {
|
|
30
33
|
/**
|
|
31
34
|
* Maximum number of public keys supported
|
|
32
35
|
* @group Implementation
|
|
@@ -120,6 +123,18 @@ declare class MultiEd25519PublicKey extends AccountPublicKey {
|
|
|
120
123
|
* @category Serialization
|
|
121
124
|
*/
|
|
122
125
|
static deserialize(deserializer: Deserializer): MultiEd25519PublicKey;
|
|
126
|
+
/**
|
|
127
|
+
* Get the index of the provided public key.
|
|
128
|
+
*
|
|
129
|
+
* This function retrieves the index of a specified public key within the MultiKey.
|
|
130
|
+
* If the public key does not exist, it throws an error.
|
|
131
|
+
*
|
|
132
|
+
* @param publicKey - The public key to find the index for.
|
|
133
|
+
* @returns The corresponding index of the public key, if it exists.
|
|
134
|
+
* @throws Error - If the public key is not found in the MultiKey.
|
|
135
|
+
* @group Implementation
|
|
136
|
+
*/
|
|
137
|
+
getIndex(publicKey: Ed25519PublicKey): number;
|
|
123
138
|
}
|
|
124
139
|
/**
|
|
125
140
|
* Represents the signature of a K-of-N Ed25519 multi-sig transaction.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-WFKPVKU3.mjs";import"../../chunk-QUJM5W4L.mjs";import"../../chunk-2TRQERBL.mjs";import"../../chunk-JNNFNYDO.mjs";import"../../chunk-XW3BXTCZ.mjs";import"../../chunk-HVIF6DW6.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-2V636AYW.mjs";import"../../chunk-PWGTRRSJ.mjs";import"../../chunk-7OUPEQRN.mjs";import"../../chunk-DOVH6HPL.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-7CRQNXR5.mjs";import"../../chunk-H4YAL2IL.mjs";import"../../chunk-A3VO773Q.mjs";import"../../chunk-TTY5GFMN.mjs";import"../../chunk-YOZBVVKL.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-SJDHW55X.mjs";import"../../chunk-752TOOCA.mjs";import"../../chunk-TWETGZ3W.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BMPHQ3E7.mjs";import"../../chunk-TH5JCPN2.mjs";import"../../chunk-4RXKALLC.mjs";import"../../chunk-RJ7F4JDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ERLDXTIY.mjs";import"../../chunk-RIINVEZA.mjs";import"../../chunk-HHWJHOFZ.mjs";import"../../chunk-TKXEVD7A.mjs";import"../../chunk-ZD2TY5N3.mjs";import"../../chunk-BHVSIRNF.mjs";import"../../chunk-LQOSHBB7.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-R6QCPXQG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-RXHER6EA.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BY3XFRUM.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as MultiEd25519PublicKey,b as MultiEd25519Signature};
|
|
2
2
|
//# sourceMappingURL=multiEd25519.mjs.map
|