@aptos-labs/ts-sdk 1.34.0 → 1.35.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/README.md +8 -9
- package/dist/common/{accountAddress-CDtCLtJA.d.ts → accountAddress-D3UA_cOZ.d.ts} +84 -11
- package/dist/common/chunk-CSUBLTFA.js +1297 -0
- package/dist/common/chunk-CSUBLTFA.js.map +1 -0
- package/dist/common/cli/index.d.ts +1 -1
- package/dist/common/cli/index.js +486 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.d.ts +533 -238
- package/dist/common/index.js +18279 -418
- package/dist/common/index.js.map +1 -1
- package/dist/esm/account/AbstractKeylessAccount.mjs +75 -1
- package/dist/esm/account/AbstractedAccount.mjs +74 -1
- package/dist/esm/account/Account.d.mts +1 -1
- package/dist/esm/account/Account.mjs +72 -1
- package/dist/esm/account/AccountUtils.mjs +78 -1
- package/dist/esm/account/Ed25519Account.d.mts +2 -2
- package/dist/esm/account/Ed25519Account.mjs +70 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +50 -1
- package/dist/esm/account/FederatedKeylessAccount.mjs +72 -1
- package/dist/esm/account/KeylessAccount.mjs +72 -1
- package/dist/esm/account/MultiEd25519Account.d.mts +108 -0
- package/dist/esm/account/MultiEd25519Account.mjs +71 -0
- package/dist/esm/account/MultiKeyAccount.d.mts +1 -2
- package/dist/esm/account/MultiKeyAccount.mjs +74 -1
- package/dist/esm/account/SingleKeyAccount.mjs +72 -1
- package/dist/esm/account/index.d.mts +1 -0
- package/dist/esm/account/index.mjs +119 -1
- package/dist/esm/account/utils.mjs +54 -1
- package/dist/esm/api/account/abstraction.mjs +101 -1
- package/dist/esm/api/account.d.mts +18 -2
- package/dist/esm/api/account.mjs +103 -1
- package/dist/esm/api/ans.mjs +101 -1
- package/dist/esm/api/aptos.d.mts +4 -1
- package/dist/esm/api/aptos.mjs +136 -1
- package/dist/esm/api/aptosConfig.mjs +9 -1
- package/dist/esm/api/coin.mjs +99 -1
- package/dist/esm/api/digitalAsset.mjs +101 -1
- package/dist/esm/api/event.mjs +59 -1
- package/dist/esm/api/experimental.d.mts +83 -0
- package/dist/esm/api/experimental.mjs +100 -0
- package/dist/esm/api/faucet.mjs +58 -1
- package/dist/esm/api/fungibleAsset.mjs +101 -1
- package/dist/esm/api/general.mjs +99 -1
- package/dist/esm/api/index.d.mts +2 -0
- package/dist/esm/api/index.mjs +140 -1
- package/dist/esm/api/keyless.d.mts +1 -1
- package/dist/esm/api/keyless.mjs +100 -1
- package/dist/esm/api/object.mjs +59 -1
- package/dist/esm/api/staking.mjs +59 -1
- package/dist/esm/api/table.mjs +38 -1
- package/dist/esm/api/transaction.d.mts +15 -6
- package/dist/esm/api/transaction.mjs +108 -1
- package/dist/esm/api/transactionSubmission/build.mjs +99 -1
- package/dist/esm/api/transactionSubmission/helpers.mjs +9 -1
- package/dist/esm/api/transactionSubmission/management.mjs +103 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +218 -1
- package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +100 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +100 -1
- package/dist/esm/api/utils.mjs +36 -1
- package/dist/esm/bcs/consts.mjs +17 -1
- package/dist/esm/bcs/deserializer.mjs +10 -1
- package/dist/esm/bcs/index.mjs +60 -1
- package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +12 -1
- package/dist/esm/bcs/serializable/fixedBytes.mjs +11 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +26 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +22 -1
- package/dist/esm/bcs/serializer.mjs +18 -1
- package/dist/esm/chunk-2ZOIVB2U.mjs +63 -0
- package/dist/esm/{chunk-HT2WC3QV.mjs.map → chunk-2ZOIVB2U.mjs.map} +1 -1
- package/dist/esm/chunk-32UQAST6.mjs +296 -0
- package/dist/esm/{chunk-BUTMGMSD.mjs.map → chunk-32UQAST6.mjs.map} +1 -1
- package/dist/esm/chunk-3IWV2Q3K.mjs +12 -0
- package/dist/esm/{chunk-XJJVJOX5.mjs.map → chunk-3IWV2Q3K.mjs.map} +1 -1
- package/dist/esm/chunk-3QMLVT4L.mjs +177 -0
- package/dist/esm/{chunk-PR3W2QEH.mjs.map → chunk-3QMLVT4L.mjs.map} +1 -1
- package/dist/esm/chunk-3SCNBHUA.mjs +177 -0
- package/dist/esm/{chunk-2GIPNLDO.mjs.map → chunk-3SCNBHUA.mjs.map} +1 -1
- package/dist/esm/chunk-3TUV6YMI.mjs +305 -0
- package/dist/esm/chunk-3TUV6YMI.mjs.map +1 -0
- package/dist/esm/chunk-46VPRC7E.mjs +407 -0
- package/dist/esm/{chunk-4T75XRI2.mjs.map → chunk-46VPRC7E.mjs.map} +1 -1
- package/dist/esm/chunk-4BXAKN6A.mjs +84 -0
- package/dist/esm/{chunk-4776UXL6.mjs.map → chunk-4BXAKN6A.mjs.map} +1 -1
- package/dist/esm/chunk-4WNIKKIV.mjs +45 -0
- package/dist/esm/{chunk-VOCI2675.mjs.map → chunk-4WNIKKIV.mjs.map} +1 -1
- package/dist/esm/chunk-5E2IDRDF.mjs +61 -0
- package/dist/esm/{chunk-SCBYJU6K.mjs.map → chunk-5E2IDRDF.mjs.map} +1 -1
- package/dist/esm/chunk-5QHMFYVL.mjs +42 -0
- package/dist/esm/chunk-5QHMFYVL.mjs.map +1 -0
- package/dist/esm/chunk-6ASWESA2.mjs +77 -0
- package/dist/esm/{chunk-TOBQ5UE6.mjs.map → chunk-6ASWESA2.mjs.map} +1 -1
- package/dist/esm/chunk-6I37A76G.mjs +29 -0
- package/dist/esm/{chunk-BI3BTSUB.mjs.map → chunk-6I37A76G.mjs.map} +1 -1
- package/dist/esm/chunk-6PMKDSGB.mjs +167 -0
- package/dist/esm/{chunk-CXNF73OX.mjs.map → chunk-6PMKDSGB.mjs.map} +1 -1
- package/dist/esm/chunk-6SNGKTWE.mjs +91 -0
- package/dist/esm/{chunk-DNWFDS7F.mjs.map → chunk-6SNGKTWE.mjs.map} +1 -1
- package/dist/esm/chunk-A3TQLIEM.mjs +19 -0
- package/dist/esm/{chunk-JF66JS2R.mjs.map → chunk-A3TQLIEM.mjs.map} +1 -1
- package/dist/esm/chunk-AGKEC2IM.mjs +250 -0
- package/dist/esm/{chunk-EGZI6EJ2.mjs.map → chunk-AGKEC2IM.mjs.map} +1 -1
- package/dist/esm/chunk-AKXCFBYF.mjs +49 -0
- package/dist/esm/{chunk-DBIZE7G6.mjs.map → chunk-AKXCFBYF.mjs.map} +1 -1
- package/dist/esm/chunk-APM7OSLS.mjs +122 -0
- package/dist/esm/{chunk-GOXRBEIJ.mjs.map → chunk-APM7OSLS.mjs.map} +1 -1
- package/dist/esm/chunk-BDM6FBUO.mjs +198 -0
- package/dist/esm/chunk-BDM6FBUO.mjs.map +1 -0
- package/dist/esm/chunk-BEYIOC2H.mjs +34 -0
- package/dist/esm/{chunk-YOZBVVKL.mjs.map → chunk-BEYIOC2H.mjs.map} +1 -1
- package/dist/esm/chunk-BMM72IIP.mjs +250 -0
- package/dist/esm/{chunk-AZWVCBK2.mjs.map → chunk-BMM72IIP.mjs.map} +1 -1
- package/dist/esm/chunk-BQ5JTYXK.mjs +1014 -0
- package/dist/esm/{chunk-QBFGY74I.mjs.map → chunk-BQ5JTYXK.mjs.map} +1 -1
- package/dist/esm/chunk-C7T6GW5P.mjs +376 -0
- package/dist/esm/{chunk-EBMEXURY.mjs.map → chunk-C7T6GW5P.mjs.map} +1 -1
- package/dist/esm/chunk-CXLXUSCG.mjs +417 -0
- package/dist/esm/{chunk-Q4C4U6I4.mjs.map → chunk-CXLXUSCG.mjs.map} +1 -1
- package/dist/esm/chunk-D4MW64RH.mjs +188 -0
- package/dist/esm/{chunk-XH3BEKII.mjs.map → chunk-D4MW64RH.mjs.map} +1 -1
- package/dist/esm/chunk-DDZGHA66.mjs +495 -0
- package/dist/esm/{chunk-G4O6FXCF.mjs.map → chunk-DDZGHA66.mjs.map} +1 -1
- package/dist/esm/chunk-DMFRIING.mjs +286 -0
- package/dist/esm/chunk-DMFRIING.mjs.map +1 -0
- package/dist/esm/chunk-DUOU3SNQ.mjs +51 -0
- package/dist/esm/chunk-DUOU3SNQ.mjs.map +1 -0
- package/dist/esm/chunk-EBEO4SA4.mjs +367 -0
- package/dist/esm/{chunk-J7HRQ2IH.mjs.map → chunk-EBEO4SA4.mjs.map} +1 -1
- package/dist/esm/chunk-ECTX2FGD.mjs +355 -0
- package/dist/esm/{chunk-GQX5KMF7.mjs.map → chunk-ECTX2FGD.mjs.map} +1 -1
- package/dist/esm/chunk-EFJAJFI3.mjs +53 -0
- package/dist/esm/{chunk-DLLDRANJ.mjs.map → chunk-EFJAJFI3.mjs.map} +1 -1
- package/dist/esm/chunk-EMKV5DFX.mjs +66 -0
- package/dist/esm/{chunk-33CBJFX2.mjs.map → chunk-EMKV5DFX.mjs.map} +1 -1
- package/dist/esm/chunk-EPTUAWRA.mjs +895 -0
- package/dist/esm/chunk-EPTUAWRA.mjs.map +1 -0
- package/dist/esm/chunk-ESZLRZTK.mjs +276 -0
- package/dist/esm/{chunk-H4GZWYIG.mjs.map → chunk-ESZLRZTK.mjs.map} +1 -1
- package/dist/esm/chunk-F7W7KS5C.mjs +52 -0
- package/dist/esm/{chunk-C3Q23D22.mjs.map → chunk-F7W7KS5C.mjs.map} +1 -1
- package/dist/esm/chunk-FMNMYKYH.mjs +71 -0
- package/dist/esm/{chunk-N4DM5FYH.mjs.map → chunk-FMNMYKYH.mjs.map} +1 -1
- package/dist/esm/chunk-G34CJDST.mjs +139 -0
- package/dist/esm/chunk-G34CJDST.mjs.map +1 -0
- package/dist/esm/chunk-G4NBRMZ2.mjs +7 -0
- package/dist/esm/{chunk-3OLFJ65O.mjs.map → chunk-G4NBRMZ2.mjs.map} +1 -1
- package/dist/esm/chunk-GFPEB22G.mjs +1 -0
- package/dist/esm/chunk-GFPEB22G.mjs.map +1 -0
- package/dist/esm/chunk-GUA5YTIK.mjs +362 -0
- package/dist/esm/{chunk-35DKMW7Q.mjs.map → chunk-GUA5YTIK.mjs.map} +1 -1
- package/dist/esm/chunk-HLTYSM7H.mjs +89 -0
- package/dist/esm/{chunk-AC3BISWL.mjs.map → chunk-HLTYSM7H.mjs.map} +1 -1
- package/dist/esm/chunk-HMHFKEHQ.mjs +70 -0
- package/dist/esm/{chunk-BBUN4IO4.mjs.map → chunk-HMHFKEHQ.mjs.map} +1 -1
- package/dist/esm/chunk-HQ6A6TYS.mjs +475 -0
- package/dist/esm/chunk-HQ6A6TYS.mjs.map +1 -0
- package/dist/esm/chunk-HQTQEHHZ.mjs +195 -0
- package/dist/esm/{chunk-ABXES4FS.mjs.map → chunk-HQTQEHHZ.mjs.map} +1 -1
- package/dist/esm/chunk-I25AX6PQ.mjs +7 -0
- package/dist/esm/{chunk-EY2JUXEC.mjs.map → chunk-I25AX6PQ.mjs.map} +1 -1
- package/dist/esm/chunk-I4OHHVRF.mjs +125 -0
- package/dist/esm/{chunk-CRFLR3ZY.mjs.map → chunk-I4OHHVRF.mjs.map} +1 -1
- package/dist/esm/chunk-I6QE3PKO.mjs +100 -0
- package/dist/esm/chunk-I6QE3PKO.mjs.map +1 -0
- package/dist/esm/chunk-IPUAVRGL.mjs +248 -0
- package/dist/esm/{chunk-UTXEW2FT.mjs.map → chunk-IPUAVRGL.mjs.map} +1 -1
- package/dist/esm/chunk-J7WQ42OC.mjs +195 -0
- package/dist/esm/{chunk-D6T3NYOA.mjs.map → chunk-J7WQ42OC.mjs.map} +1 -1
- package/dist/esm/chunk-JOVCSFQC.mjs +58 -0
- package/dist/esm/{chunk-V2EXS6TM.mjs.map → chunk-JOVCSFQC.mjs.map} +1 -1
- package/dist/esm/chunk-K3CXNID3.mjs +74 -0
- package/dist/esm/{chunk-Q7RG7KQS.mjs.map → chunk-K3CXNID3.mjs.map} +1 -1
- package/dist/esm/chunk-KAKSJSCR.mjs +58 -0
- package/dist/esm/{chunk-5BSMF22B.mjs.map → chunk-KAKSJSCR.mjs.map} +1 -1
- package/dist/esm/chunk-KCV4HRSJ.mjs +420 -0
- package/dist/esm/{chunk-WXDA4CCR.mjs.map → chunk-KCV4HRSJ.mjs.map} +1 -1
- package/dist/esm/chunk-KEKNIJHE.mjs +90 -0
- package/dist/esm/{chunk-L6FONDPA.mjs.map → chunk-KEKNIJHE.mjs.map} +1 -1
- package/dist/esm/chunk-KEZG4OGH.mjs +725 -0
- package/dist/esm/chunk-KEZG4OGH.mjs.map +1 -0
- package/dist/esm/chunk-KLUO6XPE.mjs +33 -0
- package/dist/esm/{chunk-WCMW2L3P.mjs.map → chunk-KLUO6XPE.mjs.map} +1 -1
- package/dist/esm/chunk-KLZCGNPI.mjs +322 -0
- package/dist/esm/{chunk-XXHZQFYW.mjs.map → chunk-KLZCGNPI.mjs.map} +1 -1
- package/dist/esm/chunk-KPAICS4T.mjs +160 -0
- package/dist/esm/{chunk-P7SE5LQE.mjs.map → chunk-KPAICS4T.mjs.map} +1 -1
- package/dist/esm/chunk-KSK3XIGF.mjs +502 -0
- package/dist/esm/{chunk-IDTLNF4M.mjs.map → chunk-KSK3XIGF.mjs.map} +1 -1
- package/dist/esm/chunk-LFMXR5C2.mjs +208 -0
- package/dist/esm/{chunk-6LGXFXXR.mjs.map → chunk-LFMXR5C2.mjs.map} +1 -1
- package/dist/esm/chunk-LHQJNJUB.mjs +829 -0
- package/dist/esm/chunk-LHQJNJUB.mjs.map +1 -0
- package/dist/esm/chunk-LJRNGZMY.mjs +10 -0
- package/dist/esm/{chunk-IMTC3J2M.mjs.map → chunk-LJRNGZMY.mjs.map} +1 -1
- package/dist/esm/chunk-LL4RQKIB.mjs +120 -0
- package/dist/esm/chunk-LL4RQKIB.mjs.map +1 -0
- package/dist/esm/chunk-LSIXUJ5T.mjs +288 -0
- package/dist/esm/{chunk-OURSLL3I.mjs.map → chunk-LSIXUJ5T.mjs.map} +1 -1
- package/dist/esm/chunk-MFFBZ43D.mjs +45 -0
- package/dist/esm/{chunk-N6YTF76Q.mjs.map → chunk-MFFBZ43D.mjs.map} +1 -1
- package/dist/esm/chunk-MG6UFOJW.mjs +207 -0
- package/dist/esm/chunk-MG6UFOJW.mjs.map +1 -0
- package/dist/esm/chunk-MHZVL3EA.mjs +192 -0
- package/dist/esm/chunk-MHZVL3EA.mjs.map +1 -0
- package/dist/esm/chunk-MIVDDJAH.mjs +50 -0
- package/dist/esm/chunk-MIVDDJAH.mjs.map +1 -0
- package/dist/esm/chunk-MUSTBCQX.mjs +71 -0
- package/dist/esm/{chunk-4UK4MUSD.mjs.map → chunk-MUSTBCQX.mjs.map} +1 -1
- package/dist/esm/chunk-MWXBQ6HR.mjs +15 -0
- package/dist/esm/{chunk-4YLUM62M.mjs.map → chunk-MWXBQ6HR.mjs.map} +1 -1
- package/dist/esm/chunk-MYEYZ7PF.mjs +46 -0
- package/dist/esm/{chunk-XKUIMGKU.mjs.map → chunk-MYEYZ7PF.mjs.map} +1 -1
- package/dist/esm/chunk-NMYFY7WN.mjs +219 -0
- package/dist/esm/{chunk-HLJE5XGE.mjs.map → chunk-NMYFY7WN.mjs.map} +1 -1
- package/dist/esm/chunk-NUT2VOX2.mjs +317 -0
- package/dist/esm/{chunk-XTOIL6MB.mjs.map → chunk-NUT2VOX2.mjs.map} +1 -1
- package/dist/esm/chunk-ODG7T6OV.mjs +43 -0
- package/dist/esm/{chunk-3HFZN7L5.mjs.map → chunk-ODG7T6OV.mjs.map} +1 -1
- package/dist/esm/chunk-OFUNBTK4.mjs +169 -0
- package/dist/esm/chunk-OFUNBTK4.mjs.map +1 -0
- package/dist/esm/chunk-OQ6XT2GF.mjs +147 -0
- package/dist/esm/{chunk-XDIX7NIP.mjs.map → chunk-OQ6XT2GF.mjs.map} +1 -1
- package/dist/esm/chunk-P64LPFEC.mjs +128 -0
- package/dist/esm/{chunk-HFCWJ6QL.mjs.map → chunk-P64LPFEC.mjs.map} +1 -1
- package/dist/esm/chunk-PGFEUN7K.mjs +129 -0
- package/dist/esm/{chunk-ZCEBDPBJ.mjs.map → chunk-PGFEUN7K.mjs.map} +1 -1
- package/dist/esm/chunk-PKUXOBIV.mjs +138 -0
- package/dist/esm/{chunk-FN4C3CKC.mjs.map → chunk-PKUXOBIV.mjs.map} +1 -1
- package/dist/esm/chunk-PT2QHUB6.mjs +96 -0
- package/dist/esm/{chunk-A5L76YP7.mjs.map → chunk-PT2QHUB6.mjs.map} +1 -1
- package/dist/esm/chunk-QJ6CGH7N.mjs +71 -0
- package/dist/esm/{chunk-DWJ3PGWE.mjs.map → chunk-QJ6CGH7N.mjs.map} +1 -1
- package/dist/esm/chunk-QN5BQMWP.mjs +21 -0
- package/dist/esm/{chunk-XAPQNCTN.mjs.map → chunk-QN5BQMWP.mjs.map} +1 -1
- package/dist/esm/chunk-QPT4BSAB.mjs +20 -0
- package/dist/esm/{chunk-IF4UU2MT.mjs.map → chunk-QPT4BSAB.mjs.map} +1 -1
- package/dist/esm/chunk-QSYWLSSN.mjs +216 -0
- package/dist/esm/{chunk-ORMOQWWH.mjs.map → chunk-QSYWLSSN.mjs.map} +1 -1
- package/dist/esm/chunk-QW7RQDZ5.mjs +224 -0
- package/dist/esm/chunk-QW7RQDZ5.mjs.map +1 -0
- package/dist/esm/chunk-R4JTQQBX.mjs +37 -0
- package/dist/esm/{chunk-EMURYYVO.mjs.map → chunk-R4JTQQBX.mjs.map} +1 -1
- package/dist/esm/chunk-RQS33JAS.mjs +77 -0
- package/dist/esm/{chunk-42T3UGSW.mjs.map → chunk-RQS33JAS.mjs.map} +1 -1
- package/dist/esm/chunk-S56SMMAK.mjs +86 -0
- package/dist/esm/{chunk-7CYCKCVU.mjs.map → chunk-S56SMMAK.mjs.map} +1 -1
- package/dist/esm/chunk-SAWN7RJP.mjs +15 -0
- package/dist/esm/chunk-SAWN7RJP.mjs.map +1 -0
- package/dist/esm/chunk-SBB4YEPT.mjs +17 -0
- package/dist/esm/{chunk-56CNRT2K.mjs.map → chunk-SBB4YEPT.mjs.map} +1 -1
- package/dist/esm/chunk-SDIZSFCQ.mjs +281 -0
- package/dist/esm/{chunk-Y3Y4DVCK.mjs.map → chunk-SDIZSFCQ.mjs.map} +1 -1
- package/dist/esm/chunk-SFLQPB72.mjs +63 -0
- package/dist/esm/{chunk-4RXKALLC.mjs.map → chunk-SFLQPB72.mjs.map} +1 -1
- package/dist/esm/chunk-SGKF62FT.mjs +70 -0
- package/dist/esm/{chunk-CSG67JHZ.mjs.map → chunk-SGKF62FT.mjs.map} +1 -1
- package/dist/esm/chunk-SN6KXHPA.mjs +162 -0
- package/dist/esm/{chunk-BYHCW7MI.mjs.map → chunk-SN6KXHPA.mjs.map} +1 -1
- package/dist/esm/chunk-T573PCIR.mjs +700 -0
- package/dist/esm/{chunk-G6RLN6ET.mjs.map → chunk-T573PCIR.mjs.map} +1 -1
- package/dist/esm/chunk-TFW6N66T.mjs +415 -0
- package/dist/esm/{chunk-TM6IKHMX.mjs.map → chunk-TFW6N66T.mjs.map} +1 -1
- package/dist/esm/chunk-THWEBWUC.mjs +20 -0
- package/dist/esm/{chunk-DPW6ELCQ.mjs.map → chunk-THWEBWUC.mjs.map} +1 -1
- package/dist/esm/chunk-TQDWZXFD.mjs +239 -0
- package/dist/esm/{chunk-O37BZP2G.mjs.map → chunk-TQDWZXFD.mjs.map} +1 -1
- package/dist/esm/chunk-UKZP2GAB.mjs +415 -0
- package/dist/esm/chunk-UKZP2GAB.mjs.map +1 -0
- package/dist/esm/chunk-UOHCJOXI.mjs +150 -0
- package/dist/esm/{chunk-6PBMD2BQ.mjs.map → chunk-UOHCJOXI.mjs.map} +1 -1
- package/dist/esm/chunk-UXAUOSSB.mjs +219 -0
- package/dist/esm/{chunk-DNJQWGB7.mjs.map → chunk-UXAUOSSB.mjs.map} +1 -1
- package/dist/esm/chunk-VGI2LPO3.mjs +604 -0
- package/dist/esm/chunk-VGI2LPO3.mjs.map +1 -0
- package/dist/esm/chunk-WEOK7WVL.mjs +66 -0
- package/dist/esm/{chunk-KEJAUCQF.mjs.map → chunk-WEOK7WVL.mjs.map} +1 -1
- package/dist/esm/chunk-WPV52HGD.mjs +40 -0
- package/dist/esm/chunk-WPV52HGD.mjs.map +1 -0
- package/dist/esm/chunk-XGB3QLVI.mjs +86 -0
- package/dist/esm/{chunk-L2AQG3G3.mjs.map → chunk-XGB3QLVI.mjs.map} +1 -1
- package/dist/esm/chunk-XGUYC57L.mjs +97 -0
- package/dist/esm/{chunk-HL2O3T57.mjs.map → chunk-XGUYC57L.mjs.map} +1 -1
- package/dist/esm/chunk-XIBOO3WF.mjs +168 -0
- package/dist/esm/{chunk-X6IHNXWY.mjs.map → chunk-XIBOO3WF.mjs.map} +1 -1
- package/dist/esm/chunk-XQFUKBY7.mjs +136 -0
- package/dist/esm/chunk-XQFUKBY7.mjs.map +1 -0
- package/dist/esm/chunk-XXLSA7W7.mjs +79 -0
- package/dist/esm/{chunk-X24PSWCX.mjs.map → chunk-XXLSA7W7.mjs.map} +1 -1
- package/dist/esm/chunk-Y3ENAKRC.mjs +73 -0
- package/dist/esm/{chunk-MT2RJ7H3.mjs.map → chunk-Y3ENAKRC.mjs.map} +1 -1
- package/dist/esm/chunk-Y4FHNC5I.mjs +513 -0
- package/dist/esm/{chunk-S47HA7O7.mjs.map → chunk-Y4FHNC5I.mjs.map} +1 -1
- package/dist/esm/chunk-Y7KAC4I4.mjs +130 -0
- package/dist/esm/{chunk-DMS7K76O.mjs.map → chunk-Y7KAC4I4.mjs.map} +1 -1
- package/dist/esm/chunk-YIHVPGHN.mjs +689 -0
- package/dist/esm/{chunk-U2SJIG2T.mjs.map → chunk-YIHVPGHN.mjs.map} +1 -1
- package/dist/esm/chunk-YU65LNIC.mjs +72 -0
- package/dist/esm/{chunk-ROT6S6BM.mjs.map → chunk-YU65LNIC.mjs.map} +1 -1
- package/dist/esm/chunk-ZNGTK5IZ.mjs +121 -0
- package/dist/esm/chunk-ZNGTK5IZ.mjs.map +1 -0
- package/dist/esm/chunk-ZWCTF3NQ.mjs +25 -0
- package/dist/esm/{chunk-W4BSN6SK.mjs.map → chunk-ZWCTF3NQ.mjs.map} +1 -1
- package/dist/esm/chunk-ZWD4BJVD.mjs +379 -0
- package/dist/esm/{chunk-HEAWDTLG.mjs.map → chunk-ZWD4BJVD.mjs.map} +1 -1
- package/dist/esm/cli/index.mjs +20 -1
- package/dist/esm/cli/localNode.mjs +16 -1
- package/dist/esm/cli/move.mjs +7 -1
- package/dist/esm/client/core.d.mts +36 -1
- package/dist/esm/client/core.mjs +34 -1
- package/dist/esm/client/get.d.mts +35 -1
- package/dist/esm/client/get.mjs +41 -1
- package/dist/esm/client/index.d.mts +3 -3
- package/dist/esm/client/index.mjs +69 -1
- package/dist/esm/client/post.d.mts +34 -1
- package/dist/esm/client/post.mjs +43 -1
- package/dist/esm/core/account/index.mjs +21 -1
- package/dist/esm/core/account/utils/address.mjs +19 -1
- package/dist/esm/core/account/utils/index.mjs +20 -1
- package/dist/esm/core/accountAddress.mjs +16 -1
- package/dist/esm/core/authenticationKey.mjs +15 -1
- package/dist/esm/core/common.mjs +7 -1
- package/dist/esm/core/crypto/abstraction.mjs +26 -1
- package/dist/esm/core/crypto/ed25519.mjs +33 -1
- package/dist/esm/core/crypto/ephemeral.mjs +30 -1
- package/dist/esm/core/crypto/federatedKeyless.mjs +44 -1
- package/dist/esm/core/crypto/hdKey.mjs +25 -1
- package/dist/esm/core/crypto/index.d.mts +1 -1
- package/dist/esm/core/crypto/index.mjs +173 -1
- package/dist/esm/core/crypto/keyless.mjs +83 -1
- package/dist/esm/core/crypto/multiEd25519.d.mts +17 -2
- package/dist/esm/core/crypto/multiEd25519.mjs +50 -1
- package/dist/esm/core/crypto/multiKey.d.mts +33 -15
- package/dist/esm/core/crypto/multiKey.mjs +51 -1
- package/dist/esm/core/crypto/poseidon.mjs +15 -1
- package/dist/esm/core/crypto/privateKey.mjs +12 -1
- package/dist/esm/core/crypto/proof.mjs +20 -1
- package/dist/esm/core/crypto/publicKey.mjs +22 -1
- package/dist/esm/core/crypto/secp256k1.mjs +29 -1
- package/dist/esm/core/crypto/signature.mjs +20 -1
- package/dist/esm/core/crypto/singleKey.mjs +48 -1
- package/dist/esm/core/crypto/utils.mjs +9 -1
- package/dist/esm/core/hex.mjs +12 -1
- package/dist/esm/core/index.d.mts +1 -1
- package/dist/esm/core/index.mjs +202 -1
- package/dist/esm/errors/index.mjs +25 -1
- package/dist/esm/index.d.mts +9 -7
- package/dist/esm/index.mjs +791 -1
- package/dist/esm/internal/abstraction.mjs +103 -1
- package/dist/esm/internal/account.d.mts +22 -5
- package/dist/esm/internal/account.mjs +128 -1
- package/dist/esm/internal/ans.mjs +138 -1
- package/dist/esm/internal/coin.mjs +98 -1
- package/dist/esm/internal/digitalAsset.mjs +145 -1
- package/dist/esm/internal/event.mjs +62 -1
- package/dist/esm/internal/experimental.d.mts +52 -0
- package/dist/esm/internal/experimental.mjs +99 -0
- package/dist/esm/internal/experimental.mjs.map +1 -0
- package/dist/esm/internal/faucet.mjs +57 -1
- package/dist/esm/internal/fungibleAsset.mjs +105 -1
- package/dist/esm/internal/general.mjs +43 -1
- package/dist/esm/internal/keyless.d.mts +12 -1
- package/dist/esm/internal/keyless.mjs +105 -1
- package/dist/esm/internal/object.mjs +58 -1
- package/dist/esm/internal/staking.mjs +60 -1
- package/dist/esm/internal/table.mjs +38 -1
- package/dist/esm/internal/transaction.mjs +57 -1
- package/dist/esm/internal/transactionSubmission.d.mts +20 -9
- package/dist/esm/internal/transactionSubmission.mjs +124 -1
- package/dist/esm/internal/view.mjs +100 -1
- package/dist/esm/transactions/authenticator/account.mjs +67 -1
- package/dist/esm/transactions/authenticator/index.mjs +82 -1
- package/dist/esm/transactions/authenticator/transaction.mjs +66 -1
- package/dist/esm/transactions/index.mjs +310 -1
- package/dist/esm/transactions/instances/chainId.mjs +11 -1
- package/dist/esm/transactions/instances/identifier.mjs +11 -1
- package/dist/esm/transactions/instances/index.mjs +114 -1
- package/dist/esm/transactions/instances/moduleId.mjs +55 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +60 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +65 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +21 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +63 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +60 -1
- package/dist/esm/transactions/instances/transactionArgument.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +73 -1
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +89 -1
- package/dist/esm/transactions/management/asyncQueue.mjs +9 -1
- package/dist/esm/transactions/management/index.mjs +109 -1
- package/dist/esm/transactions/management/transactionWorker.mjs +105 -1
- package/dist/esm/transactions/scriptComposer/index.mjs +94 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +92 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +180 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +105 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +75 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +112 -1
- package/dist/esm/transactions/typeTag/index.mjs +91 -1
- package/dist/esm/transactions/typeTag/parser.mjs +60 -1
- package/dist/esm/transactions/types.mjs +1 -1
- package/dist/esm/types/abstraction.mjs +7 -1
- package/dist/esm/types/generated/operations.d.mts +63 -10
- package/dist/esm/types/generated/queries.d.mts +10 -2
- package/dist/esm/types/generated/queries.mjs +69 -1
- package/dist/esm/types/generated/types.d.mts +821 -1051
- package/dist/esm/types/generated/types.mjs +774 -1
- package/dist/esm/types/generated/types.mjs.map +1 -1
- package/dist/esm/types/index.d.mts +2 -2
- package/dist/esm/types/index.mjs +78 -1
- package/dist/esm/types/indexer.d.mts +14 -2
- package/dist/esm/types/indexer.mjs +1 -1
- package/dist/esm/types/types.d.mts +43 -3
- package/dist/esm/types/types.mjs +73 -1
- package/dist/esm/utils/apiEndpoints.mjs +21 -1
- package/dist/esm/utils/const.d.mts +1 -1
- package/dist/esm/utils/const.mjs +25 -1
- package/dist/esm/utils/helpers.d.mts +20 -1
- package/dist/esm/utils/helpers.mjs +37 -1
- package/dist/esm/utils/index.d.mts +1 -1
- package/dist/esm/utils/index.mjs +88 -1
- package/dist/esm/utils/memoize.mjs +9 -1
- package/dist/esm/utils/normalizeBundle.mjs +20 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +7 -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 +57 -3
- package/src/api/aptos.ts +6 -0
- package/src/api/aptosConfig.ts +2 -2
- package/src/api/experimental.ts +64 -0
- package/src/api/transaction.ts +22 -2
- package/src/client/core.ts +120 -0
- package/src/client/get.ts +73 -1
- package/src/client/post.ts +71 -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/account.ts +378 -2
- package/src/internal/experimental.ts +55 -0
- package/src/internal/keyless.ts +17 -9
- package/src/internal/move/jwks/build/jwk/BuildInfo.yaml +56 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/account.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator_factory.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator_v2.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_account.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_coin.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_governance.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/block.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/chain_id.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/chain_status.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/code.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/coin.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/config_buffer.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/consensus_config.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/create_signer.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/delegation_pool.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/dispatchable_fungible_asset.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/dkg.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/event.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/execution_config.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/function_info.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/fungible_asset.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/gas_schedule.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/genesis.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/governance_proposal.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/guid.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/jwk_consensus_config.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/jwks.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/keyless_account.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/managed_coin.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/multisig_account.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/object.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/object_code_deployment.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/optional_aggregator.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/primary_fungible_store.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_api_v0_config.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_config.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_config_seqnum.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration_state.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration_with_dkg.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/resource_account.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/stake.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_config.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_contract.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_proxy.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/state_storage.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/storage_gas.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/system_addresses.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/timestamp.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_context.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_fee.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_validation.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/util.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/validator_consensus_info.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/version.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/vesting.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/voting.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/any.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/aptos_hash.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/big_vector.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bls12381.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bls12381_algebra.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bn254_algebra.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/capability.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/comparator.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/copyable_any.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/crypto_algebra.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/debug.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ed25519.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/fixed_point64.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/from_bcs.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math128.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math64.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math_fixed.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math_fixed64.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/multi_ed25519.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/pool_u64.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/pool_u64_unbound.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_bulletproofs.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_elgamal.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_pedersen.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/secp256k1.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/simple_map.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/smart_table.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/smart_vector.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/string_utils.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/table.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/table_with_length.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/type_info.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/acl.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/bcs.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/bit_vector.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/error.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/features.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/fixed_point32.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/hash.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/option.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/signer.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/string.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/vector.mv +0 -0
- package/src/internal/move/jwks/build/jwk/bytecode_scripts/main.mv +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/account.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator_factory.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator_v2.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_account.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_coin.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_governance.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/block.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/chain_id.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/chain_status.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/code.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/coin.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/config_buffer.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/consensus_config.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/create_signer.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/delegation_pool.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/dispatchable_fungible_asset.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/dkg.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/event.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/execution_config.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/function_info.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/fungible_asset.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/gas_schedule.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/genesis.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/governance_proposal.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/guid.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/jwk_consensus_config.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/jwks.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/keyless_account.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/managed_coin.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/multisig_account.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/object.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/object_code_deployment.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/optional_aggregator.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/primary_fungible_store.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_api_v0_config.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_config.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_config_seqnum.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration_state.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration_with_dkg.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/resource_account.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/stake.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_config.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_contract.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_proxy.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/state_storage.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/storage_gas.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/system_addresses.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/timestamp.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_context.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_fee.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_validation.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/util.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/validator_consensus_info.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/version.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/vesting.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/voting.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/any.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/aptos_hash.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/big_vector.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bls12381.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bls12381_algebra.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bn254_algebra.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/capability.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/comparator.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/copyable_any.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/crypto_algebra.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/debug.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ed25519.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/fixed_point64.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/from_bcs.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math128.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math64.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math_fixed.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math_fixed64.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/multi_ed25519.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/pool_u64.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/pool_u64_unbound.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_bulletproofs.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_elgamal.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_pedersen.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/secp256k1.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/simple_map.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/smart_table.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/smart_vector.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/string_utils.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/table.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/table_with_length.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/type_info.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/acl.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/bcs.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/bit_vector.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/error.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/features.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/fixed_point32.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/hash.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/option.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/signer.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/string.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/vector.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/source_maps/main.mvsm +0 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/account.move +1533 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator.move +48 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator_factory.move +66 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator_v2.move +280 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_account.move +443 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_coin.move +204 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_governance.move +1387 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/block.move +394 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/chain_id.move +41 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/chain_status.move +48 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/code.move +367 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/coin.move +2214 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/config_buffer.move +101 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/consensus_config.move +77 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/create_signer.move +21 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/delegation_pool.move +5568 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/dispatchable_fungible_asset.move +228 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/dkg.move +121 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/event.move +92 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/execution_config.move +66 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/function_info.move +100 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/fungible_asset.move +1566 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/gas_schedule.move +176 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/genesis.move +550 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/governance_proposal.move +23 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/guid.move +68 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/jwk_consensus_config.move +148 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/jwks.move +817 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/keyless_account.move +312 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/managed_coin.move +205 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/multisig_account.move +2477 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/object.move +1073 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/object_code_deployment.move +147 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/optional_aggregator.move +295 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/primary_fungible_store.move +405 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness.move +574 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_api_v0_config.move +57 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_config.move +153 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_config_seqnum.move +49 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration.move +237 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration_state.move +132 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration_with_dkg.move +69 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/resource_account.move +267 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/stake.move +3286 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_config.move +686 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_contract.move +1618 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_proxy.move +228 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/state_storage.move +90 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/storage_gas.move +622 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/system_addresses.move +82 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/timestamp.move +88 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_context.move +262 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_fee.move +457 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_validation.move +501 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/util.move +16 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/validator_consensus_info.move +42 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/version.move +115 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/vesting.move +2183 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/voting.move +1279 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/any.move +57 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/aptos_hash.move +253 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/big_vector.move +469 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bls12381.move +985 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bls12381_algebra.move +802 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bn254_algebra.move +855 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/capability.move +193 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/comparator.move +173 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/copyable_any.move +45 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/crypto_algebra.move +351 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/debug.move +278 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ed25519.move +262 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/fixed_point64.move +447 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/from_bcs.move +91 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math128.move +381 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math64.move +336 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math_fixed.move +139 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math_fixed64.move +142 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/multi_ed25519.move +482 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/pool_u64.move +571 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/pool_u64_unbound.move +270 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255.move +1310 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_bulletproofs.move +253 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_elgamal.move +234 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_pedersen.move +158 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/secp256k1.move +114 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/simple_map.move +319 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/smart_table.move +769 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/smart_vector.move +766 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/string_utils.move +148 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/table.move +152 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/table_with_length.move +141 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/type_info.move +351 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/acl.move +46 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/bcs.move +27 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/bit_vector.move +239 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/error.move +88 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/features.move +780 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/fixed_point32.move +295 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/hash.move +8 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/option.move +356 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/signer.move +21 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/string.move +93 -0
- package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/vector.move +669 -0
- package/src/internal/move/jwks/build/jwk/sources/main.move +20 -0
- package/src/internal/queries/getAccountAddressForAuthKey.graphql +8 -0
- package/src/internal/queries/getAuthKeysForPublicKey.graphql +9 -0
- package/src/internal/queries/getMultiKeyForAuthKey.graphql +9 -0
- package/src/internal/queries/getSignatures.graphql +13 -0
- package/src/internal/transactionSubmission.ts +125 -4
- package/src/internal/view.ts +4 -4
- package/src/transactions/transactionBuilder/transactionBuilder.ts +7 -0
- package/src/types/codegen.yaml +1 -1
- package/src/types/generated/operations.ts +69 -8
- package/src/types/generated/queries.ts +111 -0
- package/src/types/generated/types.ts +925 -1133
- package/src/types/indexer.ts +16 -0
- package/src/types/types.ts +45 -3
- package/src/utils/const.ts +1 -1
- package/src/utils/helpers.ts +22 -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-2FNFUTFJ.mjs +0 -2
- package/dist/esm/chunk-2FNFUTFJ.mjs.map +0 -1
- package/dist/esm/chunk-2GIPNLDO.mjs +0 -2
- package/dist/esm/chunk-33CBJFX2.mjs +0 -2
- package/dist/esm/chunk-35DKMW7Q.mjs +0 -2
- package/dist/esm/chunk-3EY7MT2M.mjs +0 -2
- package/dist/esm/chunk-3EY7MT2M.mjs.map +0 -1
- package/dist/esm/chunk-3HFZN7L5.mjs +0 -2
- package/dist/esm/chunk-3OLFJ65O.mjs +0 -2
- package/dist/esm/chunk-42T3UGSW.mjs +0 -2
- package/dist/esm/chunk-4776UXL6.mjs +0 -2
- package/dist/esm/chunk-4RXKALLC.mjs +0 -2
- package/dist/esm/chunk-4T75XRI2.mjs +0 -2
- package/dist/esm/chunk-4UK4MUSD.mjs +0 -2
- package/dist/esm/chunk-4YLUM62M.mjs +0 -2
- package/dist/esm/chunk-56CNRT2K.mjs +0 -2
- package/dist/esm/chunk-5BSMF22B.mjs +0 -2
- package/dist/esm/chunk-66HHRRIX.mjs +0 -2
- package/dist/esm/chunk-66HHRRIX.mjs.map +0 -1
- package/dist/esm/chunk-6JTNS5O6.mjs +0 -2
- package/dist/esm/chunk-6JTNS5O6.mjs.map +0 -1
- package/dist/esm/chunk-6LGXFXXR.mjs +0 -2
- package/dist/esm/chunk-6PBMD2BQ.mjs +0 -2
- package/dist/esm/chunk-7C2RDOWS.mjs +0 -1
- package/dist/esm/chunk-7CYCKCVU.mjs +0 -2
- package/dist/esm/chunk-7DPHPPMG.mjs +0 -2
- package/dist/esm/chunk-7DPHPPMG.mjs.map +0 -1
- package/dist/esm/chunk-A5L76YP7.mjs +0 -2
- package/dist/esm/chunk-ABXES4FS.mjs +0 -2
- package/dist/esm/chunk-AC3BISWL.mjs +0 -2
- package/dist/esm/chunk-AZWVCBK2.mjs +0 -2
- package/dist/esm/chunk-BBUN4IO4.mjs +0 -2
- package/dist/esm/chunk-BI3BTSUB.mjs +0 -2
- package/dist/esm/chunk-BUTMGMSD.mjs +0 -7
- package/dist/esm/chunk-BYHCW7MI.mjs +0 -2
- package/dist/esm/chunk-C3Q23D22.mjs +0 -2
- package/dist/esm/chunk-CRFLR3ZY.mjs +0 -2
- package/dist/esm/chunk-CSG67JHZ.mjs +0 -2
- package/dist/esm/chunk-CXNF73OX.mjs +0 -2
- package/dist/esm/chunk-D6T3NYOA.mjs +0 -2
- package/dist/esm/chunk-DBIZE7G6.mjs +0 -2
- package/dist/esm/chunk-DLLDRANJ.mjs +0 -2
- package/dist/esm/chunk-DMS7K76O.mjs +0 -2
- package/dist/esm/chunk-DNJQWGB7.mjs +0 -2
- package/dist/esm/chunk-DNWFDS7F.mjs +0 -2
- package/dist/esm/chunk-DPW6ELCQ.mjs +0 -2
- package/dist/esm/chunk-DWJ3PGWE.mjs +0 -2
- package/dist/esm/chunk-EBMEXURY.mjs +0 -2
- package/dist/esm/chunk-EGZI6EJ2.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-FN4C3CKC.mjs +0 -2
- package/dist/esm/chunk-G4O6FXCF.mjs +0 -2
- package/dist/esm/chunk-G6RLN6ET.mjs +0 -2
- package/dist/esm/chunk-GOXRBEIJ.mjs +0 -2
- package/dist/esm/chunk-GQX5KMF7.mjs +0 -2
- package/dist/esm/chunk-H4GZWYIG.mjs +0 -2
- package/dist/esm/chunk-HEAWDTLG.mjs +0 -2
- package/dist/esm/chunk-HFCWJ6QL.mjs +0 -2
- package/dist/esm/chunk-HL2O3T57.mjs +0 -2
- package/dist/esm/chunk-HLJE5XGE.mjs +0 -2
- package/dist/esm/chunk-HT2WC3QV.mjs +0 -2
- package/dist/esm/chunk-I7YHK6ZF.mjs +0 -2
- package/dist/esm/chunk-I7YHK6ZF.mjs.map +0 -1
- package/dist/esm/chunk-IDTLNF4M.mjs +0 -2
- package/dist/esm/chunk-IF4UU2MT.mjs +0 -2
- package/dist/esm/chunk-IMTC3J2M.mjs +0 -2
- package/dist/esm/chunk-J7HRQ2IH.mjs +0 -2
- package/dist/esm/chunk-JF66JS2R.mjs +0 -2
- package/dist/esm/chunk-KDMSOCZY.mjs +0 -2
- package/dist/esm/chunk-KEJAUCQF.mjs +0 -2
- package/dist/esm/chunk-L2AQG3G3.mjs +0 -2
- package/dist/esm/chunk-L6FONDPA.mjs +0 -2
- package/dist/esm/chunk-MT2RJ7H3.mjs +0 -2
- package/dist/esm/chunk-N4DM5FYH.mjs +0 -2
- package/dist/esm/chunk-N6YTF76Q.mjs +0 -2
- package/dist/esm/chunk-N7C6LQPZ.mjs +0 -2
- package/dist/esm/chunk-N7C6LQPZ.mjs.map +0 -1
- package/dist/esm/chunk-O37BZP2G.mjs +0 -2
- package/dist/esm/chunk-ORMOQWWH.mjs +0 -2
- package/dist/esm/chunk-OURSLL3I.mjs +0 -2
- package/dist/esm/chunk-P7SE5LQE.mjs +0 -2
- package/dist/esm/chunk-PNSF3E67.mjs +0 -2
- package/dist/esm/chunk-PNSF3E67.mjs.map +0 -1
- package/dist/esm/chunk-PR3W2QEH.mjs +0 -2
- package/dist/esm/chunk-PWYJWTEM.mjs +0 -2
- package/dist/esm/chunk-PWYJWTEM.mjs.map +0 -1
- package/dist/esm/chunk-Q4C4U6I4.mjs +0 -4
- package/dist/esm/chunk-Q7RG7KQS.mjs +0 -2
- package/dist/esm/chunk-QBFGY74I.mjs +0 -2
- package/dist/esm/chunk-RJ7F4JDV.mjs +0 -2
- package/dist/esm/chunk-RJ7F4JDV.mjs.map +0 -1
- package/dist/esm/chunk-ROT6S6BM.mjs +0 -2
- package/dist/esm/chunk-S47HA7O7.mjs +0 -2
- package/dist/esm/chunk-SCBYJU6K.mjs +0 -2
- package/dist/esm/chunk-STY74NUA.mjs +0 -2
- package/dist/esm/chunk-STY74NUA.mjs.map +0 -1
- package/dist/esm/chunk-TDGUMBON.mjs +0 -4
- package/dist/esm/chunk-TDGUMBON.mjs.map +0 -1
- package/dist/esm/chunk-TM6IKHMX.mjs +0 -2
- package/dist/esm/chunk-TOBQ5UE6.mjs +0 -2
- package/dist/esm/chunk-U2SJIG2T.mjs +0 -2
- package/dist/esm/chunk-ULHOJ2BE.mjs +0 -2
- package/dist/esm/chunk-ULHOJ2BE.mjs.map +0 -1
- package/dist/esm/chunk-UTXEW2FT.mjs +0 -2
- package/dist/esm/chunk-V2EXS6TM.mjs +0 -2
- package/dist/esm/chunk-V7G2EDNR.mjs +0 -2
- package/dist/esm/chunk-V7G2EDNR.mjs.map +0 -1
- package/dist/esm/chunk-VHNX2NUR.mjs +0 -473
- package/dist/esm/chunk-VHNX2NUR.mjs.map +0 -1
- package/dist/esm/chunk-VKDTI6NX.mjs +0 -2
- package/dist/esm/chunk-VKDTI6NX.mjs.map +0 -1
- package/dist/esm/chunk-VOCI2675.mjs +0 -2
- package/dist/esm/chunk-W4BSN6SK.mjs +0 -2
- package/dist/esm/chunk-WCMW2L3P.mjs +0 -2
- package/dist/esm/chunk-WXDA4CCR.mjs +0 -2
- package/dist/esm/chunk-X24PSWCX.mjs +0 -2
- package/dist/esm/chunk-X2CPDUOS.mjs +0 -2
- package/dist/esm/chunk-X2CPDUOS.mjs.map +0 -1
- package/dist/esm/chunk-X6IHNXWY.mjs +0 -2
- package/dist/esm/chunk-XAPQNCTN.mjs +0 -2
- package/dist/esm/chunk-XDIX7NIP.mjs +0 -2
- package/dist/esm/chunk-XH3BEKII.mjs +0 -2
- package/dist/esm/chunk-XJJVJOX5.mjs +0 -2
- package/dist/esm/chunk-XKUIMGKU.mjs +0 -2
- package/dist/esm/chunk-XTOIL6MB.mjs +0 -2
- package/dist/esm/chunk-XXHZQFYW.mjs +0 -2
- package/dist/esm/chunk-Y3Y4DVCK.mjs +0 -2
- package/dist/esm/chunk-YIF242TF.mjs +0 -2
- package/dist/esm/chunk-YIF242TF.mjs.map +0 -1
- package/dist/esm/chunk-YOZBVVKL.mjs +0 -2
- package/dist/esm/chunk-ZCEBDPBJ.mjs +0 -2
- package/dist/esm/chunk-ZP5EBIBE.mjs +0 -2
- package/dist/esm/chunk-ZP5EBIBE.mjs.map +0 -1
- /package/dist/esm/{chunk-7C2RDOWS.mjs.map → account/MultiEd25519Account.mjs.map} +0 -0
- /package/dist/esm/{chunk-KDMSOCZY.mjs.map → api/experimental.mjs.map} +0 -0
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AccountAddress
|
|
3
|
+
} from "./chunk-CXLXUSCG.mjs";
|
|
4
|
+
import {
|
|
5
|
+
FixedBytes
|
|
6
|
+
} from "./chunk-Y3ENAKRC.mjs";
|
|
7
|
+
import {
|
|
8
|
+
MoveOption,
|
|
9
|
+
MoveString,
|
|
10
|
+
MoveVector
|
|
11
|
+
} from "./chunk-KSK3XIGF.mjs";
|
|
12
|
+
import {
|
|
13
|
+
Bool,
|
|
14
|
+
U128,
|
|
15
|
+
U16,
|
|
16
|
+
U256,
|
|
17
|
+
U32,
|
|
18
|
+
U64,
|
|
19
|
+
U8
|
|
20
|
+
} from "./chunk-QSYWLSSN.mjs";
|
|
21
|
+
|
|
22
|
+
// src/transactions/transactionBuilder/helpers.ts
|
|
23
|
+
function isBool(arg) {
|
|
24
|
+
return typeof arg === "boolean";
|
|
25
|
+
}
|
|
26
|
+
function isString(arg) {
|
|
27
|
+
return typeof arg === "string";
|
|
28
|
+
}
|
|
29
|
+
function isNumber(arg) {
|
|
30
|
+
return typeof arg === "number";
|
|
31
|
+
}
|
|
32
|
+
function convertNumber(arg) {
|
|
33
|
+
if (isNumber(arg)) {
|
|
34
|
+
return arg;
|
|
35
|
+
}
|
|
36
|
+
if (isString(arg) && arg !== "") {
|
|
37
|
+
return Number.parseInt(arg, 10);
|
|
38
|
+
}
|
|
39
|
+
return void 0;
|
|
40
|
+
}
|
|
41
|
+
function isLargeNumber(arg) {
|
|
42
|
+
return typeof arg === "number" || typeof arg === "bigint" || typeof arg === "string";
|
|
43
|
+
}
|
|
44
|
+
function isEmptyOption(arg) {
|
|
45
|
+
return arg === null || arg === void 0;
|
|
46
|
+
}
|
|
47
|
+
function isEncodedEntryFunctionArgument(arg) {
|
|
48
|
+
return (
|
|
49
|
+
/**
|
|
50
|
+
* Determines if the provided argument is an instance of the Bool class.
|
|
51
|
+
*
|
|
52
|
+
* @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.
|
|
53
|
+
* @group Implementation
|
|
54
|
+
* @category Transactions
|
|
55
|
+
*/
|
|
56
|
+
isBcsBool(arg) || /**
|
|
57
|
+
* Determines if the provided argument is an instance of U8.
|
|
58
|
+
* This function helps validate the type of the argument passed to ensure it is a U8 type.
|
|
59
|
+
*
|
|
60
|
+
* @param arg - The argument to be checked, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.
|
|
61
|
+
* @group Implementation
|
|
62
|
+
* @category Transactions
|
|
63
|
+
*/
|
|
64
|
+
isBcsU8(arg) || /**
|
|
65
|
+
* Determines if the provided argument is an instance of U16.
|
|
66
|
+
*
|
|
67
|
+
* @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.
|
|
68
|
+
* @group Implementation
|
|
69
|
+
* @category Transactions
|
|
70
|
+
*/
|
|
71
|
+
isBcsU16(arg) || /**
|
|
72
|
+
* Determines if the provided argument is an instance of U32.
|
|
73
|
+
*
|
|
74
|
+
* @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.
|
|
75
|
+
* @returns A boolean indicating whether the argument is a U32 instance.
|
|
76
|
+
* @group Implementation
|
|
77
|
+
* @category Transactions
|
|
78
|
+
*/
|
|
79
|
+
isBcsU32(arg) || /**
|
|
80
|
+
* Determine if the provided argument is an instance of U64.
|
|
81
|
+
* This function helps validate that the argument conforms to the expected U64 type.
|
|
82
|
+
*
|
|
83
|
+
* @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.
|
|
84
|
+
* @group Implementation
|
|
85
|
+
* @category Transactions
|
|
86
|
+
*/
|
|
87
|
+
isBcsU64(arg) || /**
|
|
88
|
+
* Determines if the provided argument is an instance of U128.
|
|
89
|
+
* This function helps validate the type of the argument passed to ensure it is a U128 type.
|
|
90
|
+
*
|
|
91
|
+
* @param arg - The argument to be checked, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.
|
|
92
|
+
* @group Implementation
|
|
93
|
+
* @category Transactions
|
|
94
|
+
*/
|
|
95
|
+
isBcsU128(arg) || /**
|
|
96
|
+
* Determines if the provided argument is an instance of U256.
|
|
97
|
+
*
|
|
98
|
+
* @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.
|
|
99
|
+
* @returns A boolean indicating whether the argument is a U256 instance.
|
|
100
|
+
* @group Implementation
|
|
101
|
+
* @category Transactions
|
|
102
|
+
*/
|
|
103
|
+
isBcsU256(arg) || /**
|
|
104
|
+
* Determines if the provided argument is an instance of AccountAddress.
|
|
105
|
+
* This function helps validate whether a given input corresponds to a valid BCS address type.
|
|
106
|
+
*
|
|
107
|
+
* @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.
|
|
108
|
+
* @group Implementation
|
|
109
|
+
* @category Transactions
|
|
110
|
+
*/
|
|
111
|
+
isBcsAddress(arg) || /**
|
|
112
|
+
* Determine if the provided argument is an instance of MoveString.
|
|
113
|
+
*
|
|
114
|
+
* @param arg - The argument to check, which can be of types EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.
|
|
115
|
+
* @group Implementation
|
|
116
|
+
* @category Transactions
|
|
117
|
+
*/
|
|
118
|
+
isBcsString(arg) || /**
|
|
119
|
+
* Determine if the provided argument is an instance of FixedBytes.
|
|
120
|
+
* This function helps to validate the type of the argument being passed.
|
|
121
|
+
*
|
|
122
|
+
* @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.
|
|
123
|
+
* @group Implementation
|
|
124
|
+
* @category Transactions
|
|
125
|
+
*/
|
|
126
|
+
isBcsFixedBytes(arg) || arg instanceof MoveVector || arg instanceof MoveOption
|
|
127
|
+
);
|
|
128
|
+
}
|
|
129
|
+
function isBcsBool(arg) {
|
|
130
|
+
return arg instanceof Bool;
|
|
131
|
+
}
|
|
132
|
+
function isBcsAddress(arg) {
|
|
133
|
+
return arg instanceof AccountAddress;
|
|
134
|
+
}
|
|
135
|
+
function isBcsString(arg) {
|
|
136
|
+
return arg instanceof MoveString;
|
|
137
|
+
}
|
|
138
|
+
function isBcsFixedBytes(arg) {
|
|
139
|
+
return arg instanceof FixedBytes;
|
|
140
|
+
}
|
|
141
|
+
function isBcsU8(arg) {
|
|
142
|
+
return arg instanceof U8;
|
|
143
|
+
}
|
|
144
|
+
function isBcsU16(arg) {
|
|
145
|
+
return arg instanceof U16;
|
|
146
|
+
}
|
|
147
|
+
function isBcsU32(arg) {
|
|
148
|
+
return arg instanceof U32;
|
|
149
|
+
}
|
|
150
|
+
function isBcsU64(arg) {
|
|
151
|
+
return arg instanceof U64;
|
|
152
|
+
}
|
|
153
|
+
function isBcsU128(arg) {
|
|
154
|
+
return arg instanceof U128;
|
|
155
|
+
}
|
|
156
|
+
function isBcsU256(arg) {
|
|
157
|
+
return arg instanceof U256;
|
|
158
|
+
}
|
|
159
|
+
function isScriptDataInput(arg) {
|
|
160
|
+
return "bytecode" in arg;
|
|
161
|
+
}
|
|
162
|
+
function throwTypeMismatch(expectedType, position) {
|
|
163
|
+
throw new Error(`Type mismatch for argument ${position}, expected '${expectedType}'`);
|
|
164
|
+
}
|
|
165
|
+
function findFirstNonSignerArg(functionAbi) {
|
|
166
|
+
const index = functionAbi.params.findIndex((param) => param !== "signer" && param !== "&signer");
|
|
167
|
+
if (index < 0) {
|
|
168
|
+
return functionAbi.params.length;
|
|
169
|
+
}
|
|
170
|
+
return index;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export {
|
|
174
|
+
isBool,
|
|
175
|
+
isString,
|
|
176
|
+
isNumber,
|
|
177
|
+
convertNumber,
|
|
178
|
+
isLargeNumber,
|
|
179
|
+
isEmptyOption,
|
|
180
|
+
isEncodedEntryFunctionArgument,
|
|
181
|
+
isBcsBool,
|
|
182
|
+
isBcsAddress,
|
|
183
|
+
isBcsString,
|
|
184
|
+
isBcsFixedBytes,
|
|
185
|
+
isBcsU8,
|
|
186
|
+
isBcsU16,
|
|
187
|
+
isBcsU32,
|
|
188
|
+
isBcsU64,
|
|
189
|
+
isBcsU128,
|
|
190
|
+
isBcsU256,
|
|
191
|
+
isScriptDataInput,
|
|
192
|
+
throwTypeMismatch,
|
|
193
|
+
findFirstNonSignerArg
|
|
194
|
+
};
|
|
195
|
+
//# sourceMappingURL=chunk-HQTQEHHZ.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/transactions/transactionBuilder/helpers.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n EntryFunctionArgumentTypes,\n InputGenerateTransactionPayloadData,\n InputGenerateTransactionPayloadDataWithRemoteABI,\n InputScriptData,\n SimpleEntryFunctionArgumentTypes,\n} from \"../types\";\nimport { Bool, FixedBytes, MoveOption, MoveString, MoveVector, U128, U16, U256, U32, U64, U8 } from \"../../bcs\";\nimport { AccountAddress } from \"../../core\";\nimport { MoveFunction } from \"../../types\";\n\n/**\n * Determines if the provided argument is of type boolean.\n * This can help in validating input types before processing them further.\n *\n * @param arg - The argument to check, which can be of various types.\n * @returns A boolean indicating whether the argument is a boolean.\n * @group Implementation\n * @category Transactions\n */\nexport function isBool(arg: SimpleEntryFunctionArgumentTypes): arg is boolean {\n return typeof arg === \"boolean\";\n}\n\n/**\n * Checks if the provided argument is of type string.\n *\n * @param arg - The value to be checked for string type.\n * @returns A boolean indicating whether the argument is a string.\n * @group Implementation\n * @category Transactions\n */\nexport function isString(arg: any): arg is string {\n return typeof arg === \"string\";\n}\n\n/**\n * Determines if the provided argument is of type number.\n *\n * @param arg - The argument to check, which can be of various types.\n * @returns A boolean indicating whether the argument is a number.\n * @group Implementation\n * @category Transactions\n */\nexport function isNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number {\n return typeof arg === \"number\";\n}\n\n/**\n * Converts a number or a string representation of a number into a number type.\n * This function is useful for ensuring that the input is in a consistent numeric format,\n * which can help prevent type mismatches in further processing.\n *\n * @param arg - The input value to be converted. This can be a number, a string representing a number, or any other type.\n * @returns Returns the converted number if the input is valid; otherwise, it returns undefined.\n * @group Implementation\n * @category Transactions\n */\nexport function convertNumber(arg: SimpleEntryFunctionArgumentTypes): number | undefined {\n if (isNumber(arg)) {\n return arg;\n }\n if (isString(arg) && arg !== \"\") {\n return Number.parseInt(arg, 10);\n }\n\n return undefined;\n}\n\n/**\n * Determines if the provided argument is a large number, which can be a number, bigint, or string representation of a number.\n *\n * @param arg - The argument to check, which can be of type number, bigint, or string.\n * @group Implementation\n * @category Transactions\n */\nexport function isLargeNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number | bigint | string {\n return typeof arg === \"number\" || typeof arg === \"bigint\" || typeof arg === \"string\";\n}\n\n/**\n * Checks if the provided argument is empty, meaning it is either null or undefined.\n *\n * @param arg - The argument to check for emptiness.\n * @returns A boolean indicating whether the argument is empty.\n * @group Implementation\n * @category Transactions\n */\nexport function isEmptyOption(arg: SimpleEntryFunctionArgumentTypes): arg is null | undefined {\n return arg === null || arg === undefined;\n}\n\n/**\n * Determines if the provided argument is a valid encoded entry function argument type.\n * This function helps validate that the argument conforms to the expected types for entry function parameters.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\nexport function isEncodedEntryFunctionArgument(\n arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes,\n): arg is EntryFunctionArgumentTypes {\n return (\n /**\n * Determines if the provided argument is an instance of the Bool class.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsBool(arg) ||\n /**\n * Determines if the provided argument is an instance of U8.\n * This function helps validate the type of the argument passed to ensure it is a U8 type.\n *\n * @param arg - The argument to be checked, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsU8(arg) ||\n /**\n * Determines if the provided argument is an instance of U16.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsU16(arg) ||\n /**\n * Determines if the provided argument is an instance of U32.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @returns A boolean indicating whether the argument is a U32 instance.\n * @group Implementation\n * @category Transactions\n */\n isBcsU32(arg) ||\n /**\n * Determine if the provided argument is an instance of U64.\n * This function helps validate that the argument conforms to the expected U64 type.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsU64(arg) ||\n /**\n * Determines if the provided argument is an instance of U128.\n * This function helps validate the type of the argument passed to ensure it is a U128 type.\n *\n * @param arg - The argument to be checked, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsU128(arg) ||\n /**\n * Determines if the provided argument is an instance of U256.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @returns A boolean indicating whether the argument is a U256 instance.\n * @group Implementation\n * @category Transactions\n */\n isBcsU256(arg) ||\n /**\n * Determines if the provided argument is an instance of AccountAddress.\n * This function helps validate whether a given input corresponds to a valid BCS address type.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsAddress(arg) ||\n /**\n * Determine if the provided argument is an instance of MoveString.\n *\n * @param arg - The argument to check, which can be of types EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsString(arg) ||\n /**\n * Determine if the provided argument is an instance of FixedBytes.\n * This function helps to validate the type of the argument being passed.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsFixedBytes(arg) ||\n arg instanceof MoveVector ||\n arg instanceof MoveOption\n );\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsBool(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is Bool {\n return arg instanceof Bool;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsAddress(\n arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes,\n): arg is AccountAddress {\n return arg instanceof AccountAddress;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsString(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is MoveString {\n return arg instanceof MoveString;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsFixedBytes(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is FixedBytes {\n return arg instanceof FixedBytes;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsU8(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U8 {\n return arg instanceof U8;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsU16(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U16 {\n return arg instanceof U16;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsU32(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U32 {\n return arg instanceof U32;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsU64(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U64 {\n return arg instanceof U64;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsU128(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U128 {\n return arg instanceof U128;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsU256(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U256 {\n return arg instanceof U256;\n}\n\n/**\n * Determines if the provided argument contains script data input by checking for the presence of bytecode.\n *\n * @param arg - The input data to be checked, which can either be a payload with remote ABI or a standard payload.\n * @param arg.bytecode - The bytecode of the script, present if the input is script data.\n * @param arg.function - The function associated with the transaction, which is relevant for standard payloads.\n * @param arg.args - The arguments for the function, applicable in the context of standard payloads.\n * @group Implementation\n * @category Transactions\n */\nexport function isScriptDataInput(\n arg: InputGenerateTransactionPayloadDataWithRemoteABI | InputGenerateTransactionPayloadData,\n): arg is InputScriptData {\n return \"bytecode\" in arg;\n}\n\n/**\n * Throws an error indicating a type mismatch for a specified argument position.\n * This function helps in debugging by providing clear feedback on expected types.\n *\n * @param expectedType - The type that was expected for the argument.\n * @param position - The position of the argument that caused the type mismatch.\n * @group Implementation\n * @category Transactions\n */\nexport function throwTypeMismatch(expectedType: string, position: number) {\n throw new Error(`Type mismatch for argument ${position}, expected '${expectedType}'`);\n}\n\n/**\n * Finds the index of the first non-signer argument in the function ABI parameters.\n *\n * A function is often defined with a `signer` or `&signer` arguments at the start, which are filled in\n * by signatures and not by the caller. This function helps identify the position of the first argument that\n * can be provided by the caller, allowing for easier handling of function parameters.\n *\n * @param functionAbi - The ABI of the function to analyze.\n * @returns The index of the first non-signer argument, or the length of the parameters array if none are found.\n * @group Implementation\n * @category Transactions\n */\nexport function findFirstNonSignerArg(functionAbi: MoveFunction): number {\n const index = functionAbi.params.findIndex((param) => param !== \"signer\" && param !== \"&signer\");\n if (index < 0) {\n return functionAbi.params.length;\n }\n return index;\n}\n"],"mappings":"4NAuBO,SAASA,EAAOC,EAAuD,CAC5E,OAAO,OAAOA,GAAQ,SACxB,CAUO,SAASC,EAASD,EAAyB,CAChD,OAAO,OAAOA,GAAQ,QACxB,CAUO,SAASE,EAASF,EAAsD,CAC7E,OAAO,OAAOA,GAAQ,QACxB,CAYO,SAASG,EAAcH,EAA2D,CACvF,GAAIE,EAASF,CAAG,EACd,OAAOA,EAET,GAAIC,EAASD,CAAG,GAAKA,IAAQ,GAC3B,OAAO,OAAO,SAASA,EAAK,EAAE,CAIlC,CASO,SAASI,EAAcJ,EAAwE,CACpG,OAAO,OAAOA,GAAQ,UAAY,OAAOA,GAAQ,UAAY,OAAOA,GAAQ,QAC9E,CAUO,SAASK,EAAcL,EAAgE,CAC5F,OAAOA,GAAQ,IACjB,CAUO,SAASM,EACdN,EACmC,CACnC,OAQEO,EAAUP,CAAG,GASbQ,EAAQR,CAAG,GAQXS,EAAST,CAAG,GASZU,EAASV,CAAG,GASZW,EAASX,CAAG,GASZY,EAAUZ,CAAG,GASba,EAAUb,CAAG,GASbc,EAAad,CAAG,GAQhBe,EAAYf,CAAG,GASfgB,EAAgBhB,CAAG,GACnBA,aAAeiB,GACfjB,aAAekB,CAEnB,CAKO,SAASX,EAAUP,EAAiF,CACzG,OAAOA,aAAemB,CACxB,CAKO,SAASL,EACdd,EACuB,CACvB,OAAOA,aAAeoB,CACxB,CAKO,SAASL,EAAYf,EAAuF,CACjH,OAAOA,aAAeqB,CACxB,CAKO,SAASL,EAAgBhB,EAAuF,CACrH,OAAOA,aAAesB,CACxB,CAKO,SAASd,EAAQR,EAA+E,CACrG,OAAOA,aAAeuB,CACxB,CAKO,SAASd,EAAST,EAAgF,CACvG,OAAOA,aAAewB,CACxB,CAKO,SAASd,EAASV,EAAgF,CACvG,OAAOA,aAAeyB,CACxB,CAKO,SAASd,EAASX,EAAgF,CACvG,OAAOA,aAAe0B,CACxB,CAKO,SAASd,EAAUZ,EAAiF,CACzG,OAAOA,aAAe2B,CACxB,CAKO,SAASd,EAAUb,EAAiF,CACzG,OAAOA,aAAe4B,CACxB,CAYO,SAASC,EACd7B,EACwB,CACxB,MAAO,aAAcA,CACvB,CAWO,SAAS8B,EAAkBC,EAAsBC,EAAkB,CACxE,MAAM,IAAI,MAAM,8BAA8BA,CAAQ,eAAeD,CAAY,GAAG,CACtF,CAcO,SAASE,EAAsBC,EAAmC,CACvE,IAAMC,EAAQD,EAAY,OAAO,UAAWE,GAAUA,IAAU,UAAYA,IAAU,SAAS,EAC/F,OAAID,EAAQ,EACHD,EAAY,OAAO,OAErBC,CACT","names":["isBool","arg","isString","isNumber","convertNumber","isLargeNumber","isEmptyOption","isEncodedEntryFunctionArgument","isBcsBool","isBcsU8","isBcsU16","isBcsU32","isBcsU64","isBcsU128","isBcsU256","isBcsAddress","isBcsString","isBcsFixedBytes","MoveVector","MoveOption","Bool","AccountAddress","MoveString","FixedBytes","U8","U16","U32","U64","U128","U256","isScriptDataInput","throwTypeMismatch","expectedType","position","findFirstNonSignerArg","functionAbi","index","param"]}
|
|
1
|
+
{"version":3,"sources":["../../src/transactions/transactionBuilder/helpers.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport {\n EntryFunctionArgumentTypes,\n InputGenerateTransactionPayloadData,\n InputGenerateTransactionPayloadDataWithRemoteABI,\n InputScriptData,\n SimpleEntryFunctionArgumentTypes,\n} from \"../types\";\nimport { Bool, FixedBytes, MoveOption, MoveString, MoveVector, U128, U16, U256, U32, U64, U8 } from \"../../bcs\";\nimport { AccountAddress } from \"../../core\";\nimport { MoveFunction } from \"../../types\";\n\n/**\n * Determines if the provided argument is of type boolean.\n * This can help in validating input types before processing them further.\n *\n * @param arg - The argument to check, which can be of various types.\n * @returns A boolean indicating whether the argument is a boolean.\n * @group Implementation\n * @category Transactions\n */\nexport function isBool(arg: SimpleEntryFunctionArgumentTypes): arg is boolean {\n return typeof arg === \"boolean\";\n}\n\n/**\n * Checks if the provided argument is of type string.\n *\n * @param arg - The value to be checked for string type.\n * @returns A boolean indicating whether the argument is a string.\n * @group Implementation\n * @category Transactions\n */\nexport function isString(arg: any): arg is string {\n return typeof arg === \"string\";\n}\n\n/**\n * Determines if the provided argument is of type number.\n *\n * @param arg - The argument to check, which can be of various types.\n * @returns A boolean indicating whether the argument is a number.\n * @group Implementation\n * @category Transactions\n */\nexport function isNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number {\n return typeof arg === \"number\";\n}\n\n/**\n * Converts a number or a string representation of a number into a number type.\n * This function is useful for ensuring that the input is in a consistent numeric format,\n * which can help prevent type mismatches in further processing.\n *\n * @param arg - The input value to be converted. This can be a number, a string representing a number, or any other type.\n * @returns Returns the converted number if the input is valid; otherwise, it returns undefined.\n * @group Implementation\n * @category Transactions\n */\nexport function convertNumber(arg: SimpleEntryFunctionArgumentTypes): number | undefined {\n if (isNumber(arg)) {\n return arg;\n }\n if (isString(arg) && arg !== \"\") {\n return Number.parseInt(arg, 10);\n }\n\n return undefined;\n}\n\n/**\n * Determines if the provided argument is a large number, which can be a number, bigint, or string representation of a number.\n *\n * @param arg - The argument to check, which can be of type number, bigint, or string.\n * @group Implementation\n * @category Transactions\n */\nexport function isLargeNumber(arg: SimpleEntryFunctionArgumentTypes): arg is number | bigint | string {\n return typeof arg === \"number\" || typeof arg === \"bigint\" || typeof arg === \"string\";\n}\n\n/**\n * Checks if the provided argument is empty, meaning it is either null or undefined.\n *\n * @param arg - The argument to check for emptiness.\n * @returns A boolean indicating whether the argument is empty.\n * @group Implementation\n * @category Transactions\n */\nexport function isEmptyOption(arg: SimpleEntryFunctionArgumentTypes): arg is null | undefined {\n return arg === null || arg === undefined;\n}\n\n/**\n * Determines if the provided argument is a valid encoded entry function argument type.\n * This function helps validate that the argument conforms to the expected types for entry function parameters.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\nexport function isEncodedEntryFunctionArgument(\n arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes,\n): arg is EntryFunctionArgumentTypes {\n return (\n /**\n * Determines if the provided argument is an instance of the Bool class.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsBool(arg) ||\n /**\n * Determines if the provided argument is an instance of U8.\n * This function helps validate the type of the argument passed to ensure it is a U8 type.\n *\n * @param arg - The argument to be checked, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsU8(arg) ||\n /**\n * Determines if the provided argument is an instance of U16.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsU16(arg) ||\n /**\n * Determines if the provided argument is an instance of U32.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @returns A boolean indicating whether the argument is a U32 instance.\n * @group Implementation\n * @category Transactions\n */\n isBcsU32(arg) ||\n /**\n * Determine if the provided argument is an instance of U64.\n * This function helps validate that the argument conforms to the expected U64 type.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsU64(arg) ||\n /**\n * Determines if the provided argument is an instance of U128.\n * This function helps validate the type of the argument passed to ensure it is a U128 type.\n *\n * @param arg - The argument to be checked, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsU128(arg) ||\n /**\n * Determines if the provided argument is an instance of U256.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @returns A boolean indicating whether the argument is a U256 instance.\n * @group Implementation\n * @category Transactions\n */\n isBcsU256(arg) ||\n /**\n * Determines if the provided argument is an instance of AccountAddress.\n * This function helps validate whether a given input corresponds to a valid BCS address type.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsAddress(arg) ||\n /**\n * Determine if the provided argument is an instance of MoveString.\n *\n * @param arg - The argument to check, which can be of types EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsString(arg) ||\n /**\n * Determine if the provided argument is an instance of FixedBytes.\n * This function helps to validate the type of the argument being passed.\n *\n * @param arg - The argument to check, which can be of type EntryFunctionArgumentTypes or SimpleEntryFunctionArgumentTypes.\n * @group Implementation\n * @category Transactions\n */\n isBcsFixedBytes(arg) ||\n arg instanceof MoveVector ||\n arg instanceof MoveOption\n );\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsBool(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is Bool {\n return arg instanceof Bool;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsAddress(\n arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes,\n): arg is AccountAddress {\n return arg instanceof AccountAddress;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsString(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is MoveString {\n return arg instanceof MoveString;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsFixedBytes(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is FixedBytes {\n return arg instanceof FixedBytes;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsU8(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U8 {\n return arg instanceof U8;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsU16(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U16 {\n return arg instanceof U16;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsU32(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U32 {\n return arg instanceof U32;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsU64(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U64 {\n return arg instanceof U64;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsU128(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U128 {\n return arg instanceof U128;\n}\n/**\n * @group Implementation\n * @category Transactions\n */\nexport function isBcsU256(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U256 {\n return arg instanceof U256;\n}\n\n/**\n * Determines if the provided argument contains script data input by checking for the presence of bytecode.\n *\n * @param arg - The input data to be checked, which can either be a payload with remote ABI or a standard payload.\n * @param arg.bytecode - The bytecode of the script, present if the input is script data.\n * @param arg.function - The function associated with the transaction, which is relevant for standard payloads.\n * @param arg.args - The arguments for the function, applicable in the context of standard payloads.\n * @group Implementation\n * @category Transactions\n */\nexport function isScriptDataInput(\n arg: InputGenerateTransactionPayloadDataWithRemoteABI | InputGenerateTransactionPayloadData,\n): arg is InputScriptData {\n return \"bytecode\" in arg;\n}\n\n/**\n * Throws an error indicating a type mismatch for a specified argument position.\n * This function helps in debugging by providing clear feedback on expected types.\n *\n * @param expectedType - The type that was expected for the argument.\n * @param position - The position of the argument that caused the type mismatch.\n * @group Implementation\n * @category Transactions\n */\nexport function throwTypeMismatch(expectedType: string, position: number) {\n throw new Error(`Type mismatch for argument ${position}, expected '${expectedType}'`);\n}\n\n/**\n * Finds the index of the first non-signer argument in the function ABI parameters.\n *\n * A function is often defined with a `signer` or `&signer` arguments at the start, which are filled in\n * by signatures and not by the caller. This function helps identify the position of the first argument that\n * can be provided by the caller, allowing for easier handling of function parameters.\n *\n * @param functionAbi - The ABI of the function to analyze.\n * @returns The index of the first non-signer argument, or the length of the parameters array if none are found.\n * @group Implementation\n * @category Transactions\n */\nexport function findFirstNonSignerArg(functionAbi: MoveFunction): number {\n const index = functionAbi.params.findIndex((param) => param !== \"signer\" && param !== \"&signer\");\n if (index < 0) {\n return functionAbi.params.length;\n }\n return index;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAuBO,SAAS,OAAO,KAAuD;AAC5E,SAAO,OAAO,QAAQ;AACxB;AAUO,SAAS,SAAS,KAAyB;AAChD,SAAO,OAAO,QAAQ;AACxB;AAUO,SAAS,SAAS,KAAsD;AAC7E,SAAO,OAAO,QAAQ;AACxB;AAYO,SAAS,cAAc,KAA2D;AACvF,MAAI,SAAS,GAAG,GAAG;AACjB,WAAO;AAAA,EACT;AACA,MAAI,SAAS,GAAG,KAAK,QAAQ,IAAI;AAC/B,WAAO,OAAO,SAAS,KAAK,EAAE;AAAA,EAChC;AAEA,SAAO;AACT;AASO,SAAS,cAAc,KAAwE;AACpG,SAAO,OAAO,QAAQ,YAAY,OAAO,QAAQ,YAAY,OAAO,QAAQ;AAC9E;AAUO,SAAS,cAAc,KAAgE;AAC5F,SAAO,QAAQ,QAAQ,QAAQ;AACjC;AAUO,SAAS,+BACd,KACmC;AACnC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQE,UAAU,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASb,QAAQ,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQX,SAAS,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASZ,SAAS,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASZ,SAAS,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASZ,UAAU,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASb,UAAU,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASb,aAAa,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAQhB,YAAY,GAAG;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IASf,gBAAgB,GAAG,KACnB,eAAe,cACf,eAAe;AAAA;AAEnB;AAKO,SAAS,UAAU,KAAiF;AACzG,SAAO,eAAe;AACxB;AAKO,SAAS,aACd,KACuB;AACvB,SAAO,eAAe;AACxB;AAKO,SAAS,YAAY,KAAuF;AACjH,SAAO,eAAe;AACxB;AAKO,SAAS,gBAAgB,KAAuF;AACrH,SAAO,eAAe;AACxB;AAKO,SAAS,QAAQ,KAA+E;AACrG,SAAO,eAAe;AACxB;AAKO,SAAS,SAAS,KAAgF;AACvG,SAAO,eAAe;AACxB;AAKO,SAAS,SAAS,KAAgF;AACvG,SAAO,eAAe;AACxB;AAKO,SAAS,SAAS,KAAgF;AACvG,SAAO,eAAe;AACxB;AAKO,SAAS,UAAU,KAAiF;AACzG,SAAO,eAAe;AACxB;AAKO,SAAS,UAAU,KAAiF;AACzG,SAAO,eAAe;AACxB;AAYO,SAAS,kBACd,KACwB;AACxB,SAAO,cAAc;AACvB;AAWO,SAAS,kBAAkB,cAAsB,UAAkB;AACxE,QAAM,IAAI,MAAM,8BAA8B,QAAQ,eAAe,YAAY,GAAG;AACtF;AAcO,SAAS,sBAAsB,aAAmC;AACvE,QAAM,QAAQ,YAAY,OAAO,UAAU,CAAC,UAAU,UAAU,YAAY,UAAU,SAAS;AAC/F,MAAI,QAAQ,GAAG;AACb,WAAO,YAAY,OAAO;AAAA,EAC5B;AACA,SAAO;AACT;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/version.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * The current version of the SDK\n *\n * hardcoded for now, we would want to have it injected dynamically\n */\nexport const VERSION = \"1.
|
|
1
|
+
{"version":3,"sources":["../../src/version.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * The current version of the SDK\n *\n * hardcoded for now, we would want to have it injected dynamically\n */\nexport const VERSION = \"1.35.0\";\n"],"mappings":";AAQO,IAAM,UAAU;","names":[]}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AbstractKeylessAccount
|
|
3
|
+
} from "./chunk-46VPRC7E.mjs";
|
|
4
|
+
import {
|
|
5
|
+
KeylessPublicKey,
|
|
6
|
+
getIssAudAndUidVal
|
|
7
|
+
} from "./chunk-T573PCIR.mjs";
|
|
8
|
+
import {
|
|
9
|
+
Deserializer
|
|
10
|
+
} from "./chunk-NUT2VOX2.mjs";
|
|
11
|
+
import {
|
|
12
|
+
Hex
|
|
13
|
+
} from "./chunk-BDM6FBUO.mjs";
|
|
14
|
+
|
|
15
|
+
// src/account/KeylessAccount.ts
|
|
16
|
+
var KeylessAccount = class _KeylessAccount extends AbstractKeylessAccount {
|
|
17
|
+
// Use the static constructor 'create' instead.
|
|
18
|
+
/**
|
|
19
|
+
* Use the static generator `create(...)` instead.
|
|
20
|
+
* Creates an instance of the KeylessAccount with an optional proof.
|
|
21
|
+
*
|
|
22
|
+
* @param args - The parameters for creating a KeylessAccount.
|
|
23
|
+
* @param args.address - Optional account address associated with the KeylessAccount.
|
|
24
|
+
* @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
|
|
25
|
+
* @param args.iss - A JWT issuer.
|
|
26
|
+
* @param args.uidKey - The claim on the JWT to identify a user. This is typically 'sub' or 'email'.
|
|
27
|
+
* @param args.uidVal - The unique id for this user, intended to be a stable user identifier.
|
|
28
|
+
* @param args.aud - The value of the 'aud' claim on the JWT, also known as client ID. This is the identifier for the dApp's
|
|
29
|
+
* OIDC registration with the identity provider.
|
|
30
|
+
* @param args.pepper - A hexadecimal input used for additional security.
|
|
31
|
+
* @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
|
|
32
|
+
* @param args.proofFetchCallback - Optional callback function for fetching proof.
|
|
33
|
+
* @param args.jwt - A JSON Web Token used for authentication.
|
|
34
|
+
* @group Implementation
|
|
35
|
+
* @category Account (On-Chain Model)
|
|
36
|
+
*/
|
|
37
|
+
constructor(args) {
|
|
38
|
+
const publicKey = KeylessPublicKey.create(args);
|
|
39
|
+
super({ publicKey, ...args });
|
|
40
|
+
this.publicKey = publicKey;
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Serializes the transaction data into a format suitable for transmission or storage.
|
|
44
|
+
* This function ensures that both the transaction bytes and the proof are properly serialized.
|
|
45
|
+
*
|
|
46
|
+
* @param serializer - The serializer instance used to convert the transaction data into bytes.
|
|
47
|
+
* @group Implementation
|
|
48
|
+
* @category Account (On-Chain Model)
|
|
49
|
+
*/
|
|
50
|
+
serialize(serializer) {
|
|
51
|
+
super.serialize(serializer);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Deserializes the provided deserializer to create a KeylessAccount instance.
|
|
55
|
+
* This function extracts necessary components such as the JWT, UID key, pepper, ephemeral key pair, and proof from the deserializer.
|
|
56
|
+
*
|
|
57
|
+
* @param deserializer - The deserializer instance used to retrieve the serialized data.
|
|
58
|
+
* @returns A KeylessAccount instance created from the deserialized data.
|
|
59
|
+
* @group Implementation
|
|
60
|
+
* @category Account (On-Chain Model)
|
|
61
|
+
*/
|
|
62
|
+
static deserialize(deserializer) {
|
|
63
|
+
const { address, proof, ephemeralKeyPair, jwt, uidKey, pepper, verificationKeyHash } = AbstractKeylessAccount.partialDeserialize(deserializer);
|
|
64
|
+
const { iss, aud, uidVal } = getIssAudAndUidVal({ jwt, uidKey });
|
|
65
|
+
return new _KeylessAccount({
|
|
66
|
+
address,
|
|
67
|
+
proof,
|
|
68
|
+
ephemeralKeyPair,
|
|
69
|
+
iss,
|
|
70
|
+
uidKey,
|
|
71
|
+
uidVal,
|
|
72
|
+
aud,
|
|
73
|
+
pepper,
|
|
74
|
+
jwt,
|
|
75
|
+
verificationKeyHash
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Deserialize bytes using this account's information.
|
|
80
|
+
*
|
|
81
|
+
* @param bytes The bytes being interpreted.
|
|
82
|
+
* @returns
|
|
83
|
+
*/
|
|
84
|
+
static fromBytes(bytes) {
|
|
85
|
+
return _KeylessAccount.deserialize(new Deserializer(Hex.hexInputToUint8Array(bytes)));
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Creates a KeylessAccount instance using the provided parameters.
|
|
89
|
+
* This function allows you to set up a KeylessAccount with specific attributes such as address, proof, and JWT.
|
|
90
|
+
* This is used instead of the KeylessAccount constructor.
|
|
91
|
+
*
|
|
92
|
+
* @param args - The parameters for creating a KeylessAccount.
|
|
93
|
+
* @param args.address - Optional account address associated with the KeylessAccount.
|
|
94
|
+
* @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.
|
|
95
|
+
* @param args.jwt - A JSON Web Token used for authentication.
|
|
96
|
+
* @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.
|
|
97
|
+
* @param args.pepper - A hexadecimal input used for additional security.
|
|
98
|
+
* @param args.uidKey - Optional key for user identification, defaults to "sub".
|
|
99
|
+
* @param args.proofFetchCallback - Optional callback function for fetching proof.
|
|
100
|
+
* @group Implementation
|
|
101
|
+
* @category Account (On-Chain Model)
|
|
102
|
+
*/
|
|
103
|
+
static create(args) {
|
|
104
|
+
const { address, proof, jwt, ephemeralKeyPair, pepper, uidKey = "sub", proofFetchCallback, verificationKey } = args;
|
|
105
|
+
const { iss, aud, uidVal } = getIssAudAndUidVal({ jwt, uidKey });
|
|
106
|
+
return new _KeylessAccount({
|
|
107
|
+
address,
|
|
108
|
+
proof,
|
|
109
|
+
ephemeralKeyPair,
|
|
110
|
+
iss,
|
|
111
|
+
uidKey,
|
|
112
|
+
uidVal,
|
|
113
|
+
aud,
|
|
114
|
+
pepper,
|
|
115
|
+
jwt,
|
|
116
|
+
proofFetchCallback,
|
|
117
|
+
verificationKeyHash: verificationKey ? verificationKey.hash() : void 0
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export {
|
|
123
|
+
KeylessAccount
|
|
124
|
+
};
|
|
125
|
+
//# sourceMappingURL=chunk-I4OHHVRF.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/account/KeylessAccount.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { HexInput } from \"../types\";\nimport { AccountAddress } from \"../core/accountAddress\";\nimport { getIssAudAndUidVal, Groth16VerificationKey, KeylessPublicKey, ZeroKnowledgeSig } from \"../core/crypto\";\n\nimport { EphemeralKeyPair } from \"./EphemeralKeyPair\";\nimport { Deserializer, Serializer } from \"../bcs\";\nimport { AbstractKeylessAccount, ProofFetchCallback } from \"./AbstractKeylessAccount\";\nimport { Hex } from \"../core/hex\";\n\n/**\n * Account implementation for the Keyless authentication scheme.\n *\n * Used to represent a Keyless based account and sign transactions with it.\n *\n * Use `KeylessAccount.create()` to instantiate a KeylessAccount with a JWT, proof and EphemeralKeyPair.\n *\n * When the proof expires or the JWT becomes invalid, the KeylessAccount must be instantiated again with a new JWT,\n * EphemeralKeyPair, and corresponding proof.\n * @group Implementation\n * @category Account (On-Chain Model)\n */\nexport class KeylessAccount extends AbstractKeylessAccount {\n /**\n * The KeylessPublicKey associated with the account\n * @group Implementation\n * @category Account (On-Chain Model)\n */\n readonly publicKey: KeylessPublicKey;\n\n // Use the static constructor 'create' instead.\n\n /**\n * Use the static generator `create(...)` instead.\n * Creates an instance of the KeylessAccount with an optional proof.\n *\n * @param args - The parameters for creating a KeylessAccount.\n * @param args.address - Optional account address associated with the KeylessAccount.\n * @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.\n * @param args.iss - A JWT issuer.\n * @param args.uidKey - The claim on the JWT to identify a user. This is typically 'sub' or 'email'.\n * @param args.uidVal - The unique id for this user, intended to be a stable user identifier.\n * @param args.aud - The value of the 'aud' claim on the JWT, also known as client ID. This is the identifier for the dApp's\n * OIDC registration with the identity provider.\n * @param args.pepper - A hexadecimal input used for additional security.\n * @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.\n * @param args.proofFetchCallback - Optional callback function for fetching proof.\n * @param args.jwt - A JSON Web Token used for authentication.\n * @group Implementation\n * @category Account (On-Chain Model)\n */\n constructor(args: {\n address?: AccountAddress;\n ephemeralKeyPair: EphemeralKeyPair;\n iss: string;\n uidKey: string;\n uidVal: string;\n aud: string;\n pepper: HexInput;\n proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;\n proofFetchCallback?: ProofFetchCallback;\n jwt: string;\n verificationKeyHash?: HexInput;\n }) {\n const publicKey = KeylessPublicKey.create(args);\n super({ publicKey, ...args });\n this.publicKey = publicKey;\n }\n\n /**\n * Serializes the transaction data into a format suitable for transmission or storage.\n * This function ensures that both the transaction bytes and the proof are properly serialized.\n *\n * @param serializer - The serializer instance used to convert the transaction data into bytes.\n * @group Implementation\n * @category Account (On-Chain Model)\n */\n serialize(serializer: Serializer): void {\n super.serialize(serializer);\n }\n\n /**\n * Deserializes the provided deserializer to create a KeylessAccount instance.\n * This function extracts necessary components such as the JWT, UID key, pepper, ephemeral key pair, and proof from the deserializer.\n *\n * @param deserializer - The deserializer instance used to retrieve the serialized data.\n * @returns A KeylessAccount instance created from the deserialized data.\n * @group Implementation\n * @category Account (On-Chain Model)\n */\n static deserialize(deserializer: Deserializer): KeylessAccount {\n const { address, proof, ephemeralKeyPair, jwt, uidKey, pepper, verificationKeyHash } =\n AbstractKeylessAccount.partialDeserialize(deserializer);\n const { iss, aud, uidVal } = getIssAudAndUidVal({ jwt, uidKey });\n return new KeylessAccount({\n address,\n proof,\n ephemeralKeyPair,\n iss,\n uidKey,\n uidVal,\n aud,\n pepper,\n jwt,\n verificationKeyHash,\n });\n }\n\n /**\n * Deserialize bytes using this account's information.\n *\n * @param bytes The bytes being interpreted.\n * @returns\n */\n static fromBytes(bytes: HexInput): KeylessAccount {\n return KeylessAccount.deserialize(new Deserializer(Hex.hexInputToUint8Array(bytes)));\n }\n\n /**\n * Creates a KeylessAccount instance using the provided parameters.\n * This function allows you to set up a KeylessAccount with specific attributes such as address, proof, and JWT.\n * This is used instead of the KeylessAccount constructor.\n *\n * @param args - The parameters for creating a KeylessAccount.\n * @param args.address - Optional account address associated with the KeylessAccount.\n * @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.\n * @param args.jwt - A JSON Web Token used for authentication.\n * @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.\n * @param args.pepper - A hexadecimal input used for additional security.\n * @param args.uidKey - Optional key for user identification, defaults to \"sub\".\n * @param args.proofFetchCallback - Optional callback function for fetching proof.\n * @group Implementation\n * @category Account (On-Chain Model)\n */\n static create(args: {\n address?: AccountAddress;\n proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n pepper: HexInput;\n uidKey?: string;\n proofFetchCallback?: ProofFetchCallback;\n verificationKey?: Groth16VerificationKey;\n }): KeylessAccount {\n const { address, proof, jwt, ephemeralKeyPair, pepper, uidKey = \"sub\", proofFetchCallback, verificationKey } = args;\n\n const { iss, aud, uidVal } = getIssAudAndUidVal({ jwt, uidKey });\n return new KeylessAccount({\n address,\n proof,\n ephemeralKeyPair,\n iss,\n uidKey,\n uidVal,\n aud,\n pepper,\n jwt,\n proofFetchCallback,\n verificationKeyHash: verificationKey ? verificationKey.hash() : undefined,\n });\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/account/KeylessAccount.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { HexInput } from \"../types\";\nimport { AccountAddress } from \"../core/accountAddress\";\nimport { getIssAudAndUidVal, Groth16VerificationKey, KeylessPublicKey, ZeroKnowledgeSig } from \"../core/crypto\";\n\nimport { EphemeralKeyPair } from \"./EphemeralKeyPair\";\nimport { Deserializer, Serializer } from \"../bcs\";\nimport { AbstractKeylessAccount, ProofFetchCallback } from \"./AbstractKeylessAccount\";\nimport { Hex } from \"../core/hex\";\n\n/**\n * Account implementation for the Keyless authentication scheme.\n *\n * Used to represent a Keyless based account and sign transactions with it.\n *\n * Use `KeylessAccount.create()` to instantiate a KeylessAccount with a JWT, proof and EphemeralKeyPair.\n *\n * When the proof expires or the JWT becomes invalid, the KeylessAccount must be instantiated again with a new JWT,\n * EphemeralKeyPair, and corresponding proof.\n * @group Implementation\n * @category Account (On-Chain Model)\n */\nexport class KeylessAccount extends AbstractKeylessAccount {\n /**\n * The KeylessPublicKey associated with the account\n * @group Implementation\n * @category Account (On-Chain Model)\n */\n readonly publicKey: KeylessPublicKey;\n\n // Use the static constructor 'create' instead.\n\n /**\n * Use the static generator `create(...)` instead.\n * Creates an instance of the KeylessAccount with an optional proof.\n *\n * @param args - The parameters for creating a KeylessAccount.\n * @param args.address - Optional account address associated with the KeylessAccount.\n * @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.\n * @param args.iss - A JWT issuer.\n * @param args.uidKey - The claim on the JWT to identify a user. This is typically 'sub' or 'email'.\n * @param args.uidVal - The unique id for this user, intended to be a stable user identifier.\n * @param args.aud - The value of the 'aud' claim on the JWT, also known as client ID. This is the identifier for the dApp's\n * OIDC registration with the identity provider.\n * @param args.pepper - A hexadecimal input used for additional security.\n * @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.\n * @param args.proofFetchCallback - Optional callback function for fetching proof.\n * @param args.jwt - A JSON Web Token used for authentication.\n * @group Implementation\n * @category Account (On-Chain Model)\n */\n constructor(args: {\n address?: AccountAddress;\n ephemeralKeyPair: EphemeralKeyPair;\n iss: string;\n uidKey: string;\n uidVal: string;\n aud: string;\n pepper: HexInput;\n proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;\n proofFetchCallback?: ProofFetchCallback;\n jwt: string;\n verificationKeyHash?: HexInput;\n }) {\n const publicKey = KeylessPublicKey.create(args);\n super({ publicKey, ...args });\n this.publicKey = publicKey;\n }\n\n /**\n * Serializes the transaction data into a format suitable for transmission or storage.\n * This function ensures that both the transaction bytes and the proof are properly serialized.\n *\n * @param serializer - The serializer instance used to convert the transaction data into bytes.\n * @group Implementation\n * @category Account (On-Chain Model)\n */\n serialize(serializer: Serializer): void {\n super.serialize(serializer);\n }\n\n /**\n * Deserializes the provided deserializer to create a KeylessAccount instance.\n * This function extracts necessary components such as the JWT, UID key, pepper, ephemeral key pair, and proof from the deserializer.\n *\n * @param deserializer - The deserializer instance used to retrieve the serialized data.\n * @returns A KeylessAccount instance created from the deserialized data.\n * @group Implementation\n * @category Account (On-Chain Model)\n */\n static deserialize(deserializer: Deserializer): KeylessAccount {\n const { address, proof, ephemeralKeyPair, jwt, uidKey, pepper, verificationKeyHash } =\n AbstractKeylessAccount.partialDeserialize(deserializer);\n const { iss, aud, uidVal } = getIssAudAndUidVal({ jwt, uidKey });\n return new KeylessAccount({\n address,\n proof,\n ephemeralKeyPair,\n iss,\n uidKey,\n uidVal,\n aud,\n pepper,\n jwt,\n verificationKeyHash,\n });\n }\n\n /**\n * Deserialize bytes using this account's information.\n *\n * @param bytes The bytes being interpreted.\n * @returns\n */\n static fromBytes(bytes: HexInput): KeylessAccount {\n return KeylessAccount.deserialize(new Deserializer(Hex.hexInputToUint8Array(bytes)));\n }\n\n /**\n * Creates a KeylessAccount instance using the provided parameters.\n * This function allows you to set up a KeylessAccount with specific attributes such as address, proof, and JWT.\n * This is used instead of the KeylessAccount constructor.\n *\n * @param args - The parameters for creating a KeylessAccount.\n * @param args.address - Optional account address associated with the KeylessAccount.\n * @param args.proof - A Zero Knowledge Signature or a promise that resolves to one.\n * @param args.jwt - A JSON Web Token used for authentication.\n * @param args.ephemeralKeyPair - The ephemeral key pair used in the account creation.\n * @param args.pepper - A hexadecimal input used for additional security.\n * @param args.uidKey - Optional key for user identification, defaults to \"sub\".\n * @param args.proofFetchCallback - Optional callback function for fetching proof.\n * @group Implementation\n * @category Account (On-Chain Model)\n */\n static create(args: {\n address?: AccountAddress;\n proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n pepper: HexInput;\n uidKey?: string;\n proofFetchCallback?: ProofFetchCallback;\n verificationKey?: Groth16VerificationKey;\n }): KeylessAccount {\n const { address, proof, jwt, ephemeralKeyPair, pepper, uidKey = \"sub\", proofFetchCallback, verificationKey } = args;\n\n const { iss, aud, uidVal } = getIssAudAndUidVal({ jwt, uidKey });\n return new KeylessAccount({\n address,\n proof,\n ephemeralKeyPair,\n iss,\n uidKey,\n uidVal,\n aud,\n pepper,\n jwt,\n proofFetchCallback,\n verificationKeyHash: verificationKey ? verificationKey.hash() : undefined,\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAwBO,IAAM,iBAAN,MAAM,wBAAuB,uBAAuB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA6BzD,YAAY,MAYT;AACD,UAAM,YAAY,iBAAiB,OAAO,IAAI;AAC9C,UAAM,EAAE,WAAW,GAAG,KAAK,CAAC;AAC5B,SAAK,YAAY;AAAA,EACnB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAUA,UAAU,YAA8B;AACtC,UAAM,UAAU,UAAU;AAAA,EAC5B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAWA,OAAO,YAAY,cAA4C;AAC7D,UAAM,EAAE,SAAS,OAAO,kBAAkB,KAAK,QAAQ,QAAQ,oBAAoB,IACjF,uBAAuB,mBAAmB,YAAY;AACxD,UAAM,EAAE,KAAK,KAAK,OAAO,IAAI,mBAAmB,EAAE,KAAK,OAAO,CAAC;AAC/D,WAAO,IAAI,gBAAe;AAAA,MACxB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAQA,OAAO,UAAU,OAAiC;AAChD,WAAO,gBAAe,YAAY,IAAI,aAAa,IAAI,qBAAqB,KAAK,CAAC,CAAC;AAAA,EACrF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAkBA,OAAO,OAAO,MASK;AACjB,UAAM,EAAE,SAAS,OAAO,KAAK,kBAAkB,QAAQ,SAAS,OAAO,oBAAoB,gBAAgB,IAAI;AAE/G,UAAM,EAAE,KAAK,KAAK,OAAO,IAAI,mBAAmB,EAAE,KAAK,OAAO,CAAC;AAC/D,WAAO,IAAI,gBAAe;AAAA,MACxB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,qBAAqB,kBAAkB,gBAAgB,KAAK,IAAI;AAAA,IAClE,CAAC;AAAA,EACH;AACF;","names":[]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import {
|
|
2
|
+
generateSigningMessageForTransaction
|
|
3
|
+
} from "./chunk-JOVCSFQC.mjs";
|
|
4
|
+
import {
|
|
5
|
+
AccountAuthenticatorMultiEd25519
|
|
6
|
+
} from "./chunk-AGKEC2IM.mjs";
|
|
7
|
+
import {
|
|
8
|
+
MultiEd25519Signature
|
|
9
|
+
} from "./chunk-3TUV6YMI.mjs";
|
|
10
|
+
import {
|
|
11
|
+
AccountAddress
|
|
12
|
+
} from "./chunk-CXLXUSCG.mjs";
|
|
13
|
+
|
|
14
|
+
// src/account/MultiEd25519Account.ts
|
|
15
|
+
var MultiEd25519Account = class {
|
|
16
|
+
// region Constructors
|
|
17
|
+
constructor(args) {
|
|
18
|
+
this.signingScheme = 1 /* MultiEd25519 */;
|
|
19
|
+
const { signers, publicKey, address } = args;
|
|
20
|
+
this.publicKey = publicKey;
|
|
21
|
+
this.accountAddress = address ? AccountAddress.from(address) : this.publicKey.authKey().derivedAddress();
|
|
22
|
+
if (publicKey.threshold > signers.length) {
|
|
23
|
+
throw new Error(
|
|
24
|
+
// eslint-disable-next-line max-len
|
|
25
|
+
`Not enough signers provided to satisfy the required signatures. Need ${publicKey.threshold} signers, but only ${signers.length} provided`
|
|
26
|
+
);
|
|
27
|
+
} else if (publicKey.threshold < signers.length) {
|
|
28
|
+
throw new Error(
|
|
29
|
+
// eslint-disable-next-line max-len
|
|
30
|
+
`More signers provided than required. Need ${publicKey.threshold} signers, but ${signers.length} provided`
|
|
31
|
+
);
|
|
32
|
+
}
|
|
33
|
+
const bitPositions = [];
|
|
34
|
+
for (const signer of signers) {
|
|
35
|
+
bitPositions.push(this.publicKey.getIndex(signer.publicKey()));
|
|
36
|
+
}
|
|
37
|
+
const signersAndBitPosition = signers.map((signer, index) => [
|
|
38
|
+
signer,
|
|
39
|
+
bitPositions[index]
|
|
40
|
+
]);
|
|
41
|
+
signersAndBitPosition.sort((a, b) => a[1] - b[1]);
|
|
42
|
+
this.signers = signersAndBitPosition.map((value) => value[0]);
|
|
43
|
+
this.signerIndices = signersAndBitPosition.map((value) => value[1]);
|
|
44
|
+
this.signaturesBitmap = this.publicKey.createBitmap({ bits: bitPositions });
|
|
45
|
+
}
|
|
46
|
+
// endregion
|
|
47
|
+
// region Account
|
|
48
|
+
/**
|
|
49
|
+
* Verify the given message and signature with the public key.
|
|
50
|
+
*
|
|
51
|
+
* @param args.message raw message data in HexInput format
|
|
52
|
+
* @param args.signature signed message Signature
|
|
53
|
+
* @returns
|
|
54
|
+
*/
|
|
55
|
+
verifySignature(args) {
|
|
56
|
+
return this.publicKey.verifySignature(args);
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Sign a message using the account's Ed25519 private key.
|
|
60
|
+
* @param message the signing message, as binary input
|
|
61
|
+
* @return the AccountAuthenticator containing the signature, together with the account's public key
|
|
62
|
+
*/
|
|
63
|
+
signWithAuthenticator(message) {
|
|
64
|
+
return new AccountAuthenticatorMultiEd25519(this.publicKey, this.sign(message));
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Sign a transaction using the account's Ed25519 private keys.
|
|
68
|
+
* @param transaction the raw transaction
|
|
69
|
+
* @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key
|
|
70
|
+
*/
|
|
71
|
+
signTransactionWithAuthenticator(transaction) {
|
|
72
|
+
return new AccountAuthenticatorMultiEd25519(this.publicKey, this.signTransaction(transaction));
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Sign the given message using the account's Ed25519 private keys.
|
|
76
|
+
* @param message in HexInput format
|
|
77
|
+
* @returns MultiEd25519Signature
|
|
78
|
+
*/
|
|
79
|
+
sign(message) {
|
|
80
|
+
const signatures = [];
|
|
81
|
+
for (const signer of this.signers) {
|
|
82
|
+
signatures.push(signer.sign(message));
|
|
83
|
+
}
|
|
84
|
+
return new MultiEd25519Signature({ signatures, bitmap: this.signaturesBitmap });
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Sign the given transaction using the available signing capabilities.
|
|
88
|
+
* @param transaction the transaction to be signed
|
|
89
|
+
* @returns Signature
|
|
90
|
+
*/
|
|
91
|
+
signTransaction(transaction) {
|
|
92
|
+
return this.sign(generateSigningMessageForTransaction(transaction));
|
|
93
|
+
}
|
|
94
|
+
// endregion
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
export {
|
|
98
|
+
MultiEd25519Account
|
|
99
|
+
};
|
|
100
|
+
//# sourceMappingURL=chunk-I6QE3PKO.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/account/MultiEd25519Account.ts"],"sourcesContent":["import { AccountAddress, AccountAddressInput } from \"../core/accountAddress\";\nimport { Ed25519PrivateKey } from \"../core/crypto\";\nimport { MultiEd25519PublicKey, MultiEd25519Signature } from \"../core/crypto/multiEd25519\";\nimport { AccountAuthenticatorMultiEd25519 } from \"../transactions/authenticator/account\";\nimport { generateSigningMessageForTransaction } from \"../transactions/transactionBuilder/signingMessage\";\nimport { AnyRawTransaction } from \"../transactions/types\";\nimport { HexInput, SigningScheme } from \"../types\";\nimport type { Account } from \"./Account\";\n\nexport interface MultiEd25519SignerConstructorArgs {\n publicKey: MultiEd25519PublicKey;\n signers: Ed25519PrivateKey[];\n address?: AccountAddressInput;\n}\n\nexport interface VerifyMultiEd25519SignatureArgs {\n message: HexInput;\n signature: MultiEd25519Signature;\n}\n\n/**\n * Signer implementation for the Multi-Ed25519 authentication scheme.\n *\n * Note: This authentication scheme is a legacy authentication scheme. Prefer using MultiKeyAccounts as a\n * MultiKeyAccount can support any type of signer, not just Ed25519. Generating a signer instance does not\n * create the account on-chain.\n */\nexport class MultiEd25519Account implements Account {\n readonly publicKey: MultiEd25519PublicKey;\n\n readonly accountAddress: AccountAddress;\n\n readonly signingScheme = SigningScheme.MultiEd25519;\n\n /**\n * The signers used to sign messages. These signers should correspond to public keys in the\n * MultiEd25519Account. The number of signers should be equal to this.publicKey.threshold.\n * @group Implementation\n * @category Account (On-Chain Model)\n */\n readonly signers: Ed25519PrivateKey[];\n\n /**\n * An array of indices where for signer[i], signerIndicies[i] is the index of the corresponding public key in\n * publicKey.publicKeys. Used to derive the right public key to use for verification.\n * @group Implementation\n * @category Account (On-Chain Model)\n */\n readonly signerIndices: number[];\n\n readonly signaturesBitmap: Uint8Array;\n\n // region Constructors\n\n constructor(args: MultiEd25519SignerConstructorArgs) {\n const { signers, publicKey, address } = args;\n this.publicKey = publicKey;\n this.accountAddress = address ? AccountAddress.from(address) : this.publicKey.authKey().derivedAddress();\n\n if (publicKey.threshold > signers.length) {\n throw new Error(\n // eslint-disable-next-line max-len\n `Not enough signers provided to satisfy the required signatures. Need ${publicKey.threshold} signers, but only ${signers.length} provided`,\n );\n } else if (publicKey.threshold < signers.length) {\n throw new Error(\n // eslint-disable-next-line max-len\n `More signers provided than required. Need ${publicKey.threshold} signers, but ${signers.length} provided`,\n );\n }\n\n // For each signer, find its corresponding position in the public keys array\n const bitPositions: number[] = [];\n for (const signer of signers) {\n bitPositions.push(this.publicKey.getIndex(signer.publicKey()));\n }\n\n // Create pairs of [signer, position] and sort them by position\n // This sorting is critical because:\n // 1. The on-chain verification expects signatures to be in ascending order by bit position\n // 2. The bitmap must match the order of signatures when verifying\n const signersAndBitPosition: [Ed25519PrivateKey, number][] = signers.map((signer, index) => [\n signer,\n bitPositions[index],\n ]);\n signersAndBitPosition.sort((a, b) => a[1] - b[1]);\n\n // Extract the sorted signers and their positions into separate arrays\n this.signers = signersAndBitPosition.map((value) => value[0]);\n this.signerIndices = signersAndBitPosition.map((value) => value[1]);\n\n // Create a bitmap representing which public keys from the MultiEd25519PublicKey are being used\n // This bitmap is used during signature verification to identify which public keys\n // should be used to verify each signature\n this.signaturesBitmap = this.publicKey.createBitmap({ bits: bitPositions });\n }\n\n // endregion\n\n // region Account\n\n /**\n * Verify the given message and signature with the public key.\n *\n * @param args.message raw message data in HexInput format\n * @param args.signature signed message Signature\n * @returns\n */\n verifySignature(args: VerifyMultiEd25519SignatureArgs): boolean {\n return this.publicKey.verifySignature(args);\n }\n\n /**\n * Sign a message using the account's Ed25519 private key.\n * @param message the signing message, as binary input\n * @return the AccountAuthenticator containing the signature, together with the account's public key\n */\n signWithAuthenticator(message: HexInput): AccountAuthenticatorMultiEd25519 {\n return new AccountAuthenticatorMultiEd25519(this.publicKey, this.sign(message));\n }\n\n /**\n * Sign a transaction using the account's Ed25519 private keys.\n * @param transaction the raw transaction\n * @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key\n */\n signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorMultiEd25519 {\n return new AccountAuthenticatorMultiEd25519(this.publicKey, this.signTransaction(transaction));\n }\n\n /**\n * Sign the given message using the account's Ed25519 private keys.\n * @param message in HexInput format\n * @returns MultiEd25519Signature\n */\n sign(message: HexInput): MultiEd25519Signature {\n const signatures = [];\n for (const signer of this.signers) {\n signatures.push(signer.sign(message));\n }\n return new MultiEd25519Signature({ signatures, bitmap: this.signaturesBitmap });\n }\n\n /**\n * Sign the given transaction using the available signing capabilities.\n * @param transaction the transaction to be signed\n * @returns Signature\n */\n signTransaction(transaction: AnyRawTransaction): MultiEd25519Signature {\n return this.sign(generateSigningMessageForTransaction(transaction));\n }\n\n // endregion\n}\n"],"mappings":";;;;;;;;;;;;;;AA2BO,IAAM,sBAAN,MAA6C;AAAA;AAAA,EA2BlD,YAAY,MAAyC;AAtBrD,SAAS;AAuBP,UAAM,EAAE,SAAS,WAAW,QAAQ,IAAI;AACxC,SAAK,YAAY;AACjB,SAAK,iBAAiB,UAAU,eAAe,KAAK,OAAO,IAAI,KAAK,UAAU,QAAQ,EAAE,eAAe;AAEvG,QAAI,UAAU,YAAY,QAAQ,QAAQ;AACxC,YAAM,IAAI;AAAA;AAAA,QAER,wEAAwE,UAAU,SAAS,sBAAsB,QAAQ,MAAM;AAAA,MACjI;AAAA,IACF,WAAW,UAAU,YAAY,QAAQ,QAAQ;AAC/C,YAAM,IAAI;AAAA;AAAA,QAER,6CAA6C,UAAU,SAAS,iBAAiB,QAAQ,MAAM;AAAA,MACjG;AAAA,IACF;AAGA,UAAM,eAAyB,CAAC;AAChC,eAAW,UAAU,SAAS;AAC5B,mBAAa,KAAK,KAAK,UAAU,SAAS,OAAO,UAAU,CAAC,CAAC;AAAA,IAC/D;AAMA,UAAM,wBAAuD,QAAQ,IAAI,CAAC,QAAQ,UAAU;AAAA,MAC1F;AAAA,MACA,aAAa,KAAK;AAAA,IACpB,CAAC;AACD,0BAAsB,KAAK,CAAC,GAAG,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;AAGhD,SAAK,UAAU,sBAAsB,IAAI,CAAC,UAAU,MAAM,CAAC,CAAC;AAC5D,SAAK,gBAAgB,sBAAsB,IAAI,CAAC,UAAU,MAAM,CAAC,CAAC;AAKlE,SAAK,mBAAmB,KAAK,UAAU,aAAa,EAAE,MAAM,aAAa,CAAC;AAAA,EAC5E;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAaA,gBAAgB,MAAgD;AAC9D,WAAO,KAAK,UAAU,gBAAgB,IAAI;AAAA,EAC5C;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,sBAAsB,SAAqD;AACzE,WAAO,IAAI,iCAAiC,KAAK,WAAW,KAAK,KAAK,OAAO,CAAC;AAAA,EAChF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,iCAAiC,aAAkE;AACjG,WAAO,IAAI,iCAAiC,KAAK,WAAW,KAAK,gBAAgB,WAAW,CAAC;AAAA,EAC/F;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,KAAK,SAA0C;AAC7C,UAAM,aAAa,CAAC;AACpB,eAAW,UAAU,KAAK,SAAS;AACjC,iBAAW,KAAK,OAAO,KAAK,OAAO,CAAC;AAAA,IACtC;AACA,WAAO,IAAI,sBAAsB,EAAE,YAAY,QAAQ,KAAK,iBAAiB,CAAC;AAAA,EAChF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,gBAAgB,aAAuD;AACrE,WAAO,KAAK,KAAK,qCAAqC,WAAW,CAAC;AAAA,EACpE;AAAA;AAGF;","names":[]}
|