@aptos-labs/ts-sdk 1.9.1-plugin.7 → 1.9.1-plugin.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/index.d.ts +6 -5
- package/dist/common/index.js +1 -1
- package/dist/common/index.js.map +1 -1
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/ans.mjs +1 -1
- package/dist/esm/api/aptos.mjs +1 -1
- package/dist/esm/api/aptosConfig.mjs +1 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/event.mjs +1 -1
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.d.mts +1 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/transaction.d.mts +1 -1
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/{chunk-7WNQNTZ5.mjs → chunk-27644ALO.mjs} +2 -2
- package/dist/esm/{chunk-5NUX2OGU.mjs → chunk-2MWFPMJU.mjs} +2 -2
- package/dist/esm/{chunk-GTWCLFSO.mjs → chunk-53UNV6UP.mjs} +2 -2
- package/dist/esm/{chunk-P4JLMPCP.mjs → chunk-5BPCJWJ3.mjs} +2 -2
- package/dist/esm/{chunk-RI5FYQIT.mjs → chunk-5JCZRKJG.mjs} +2 -2
- package/dist/esm/{chunk-2RRFFRBV.mjs → chunk-77CVU2W7.mjs} +2 -2
- package/dist/esm/{chunk-TC4AF4TT.mjs → chunk-7N6YF6JO.mjs} +2 -2
- package/dist/esm/{chunk-KVWSL76Z.mjs → chunk-BTO7WDIW.mjs} +2 -2
- package/dist/esm/{chunk-ITKRS54D.mjs → chunk-BUU7JCLF.mjs} +2 -2
- package/dist/esm/{chunk-5FWN3ASG.mjs → chunk-DLGGNSKF.mjs} +2 -2
- package/dist/esm/{chunk-P3CMSOX6.mjs → chunk-E36XGHUE.mjs} +2 -2
- package/dist/esm/{chunk-OP4VV2UO.mjs → chunk-ETGZG4G7.mjs} +2 -2
- package/dist/esm/{chunk-T3434WYA.mjs → chunk-FYVPCKSW.mjs} +2 -2
- package/dist/esm/{chunk-JJS3Y3WT.mjs → chunk-GSCUF6XW.mjs} +2 -2
- package/dist/esm/{chunk-SPKBGDFY.mjs → chunk-ICK2XO6A.mjs} +2 -2
- package/dist/esm/{chunk-JVDLBAAL.mjs → chunk-IQJJRNHK.mjs} +2 -2
- package/dist/esm/{chunk-PATJMQAG.mjs → chunk-IUZCNQ7D.mjs} +2 -2
- package/dist/esm/{chunk-2FQW5ZSM.mjs → chunk-J22AZHQT.mjs} +2 -2
- package/dist/esm/{chunk-4OELG2AL.mjs → chunk-JOIUR5QW.mjs} +2 -2
- package/dist/esm/{chunk-LKKOIIBF.mjs → chunk-JPNK6EKM.mjs} +2 -2
- package/dist/esm/{chunk-O5WB3GB6.mjs → chunk-L354LBX4.mjs} +2 -2
- package/dist/esm/{chunk-VU2CNQVS.mjs → chunk-LIU6DQQJ.mjs} +2 -2
- package/dist/esm/{chunk-54SDZFVL.mjs → chunk-LWQHVABO.mjs} +2 -2
- package/dist/esm/{chunk-JB7ZOUYL.mjs → chunk-MUKBXGU3.mjs} +2 -2
- package/dist/esm/{chunk-O25IJ3Q3.mjs → chunk-NF35PRGD.mjs} +2 -2
- package/dist/esm/{chunk-CVEJHRAU.mjs → chunk-NMNR3QST.mjs} +1 -1
- package/dist/esm/{chunk-CVEJHRAU.mjs.map → chunk-NMNR3QST.mjs.map} +1 -1
- package/dist/esm/{chunk-AJRBTHDS.mjs → chunk-NUBFOYQZ.mjs} +2 -2
- package/dist/esm/{chunk-QGPI74JX.mjs → chunk-OBSG3724.mjs} +2 -2
- package/dist/esm/{chunk-ABMVXTVA.mjs → chunk-Q6YMSZLY.mjs} +2 -2
- package/dist/esm/{chunk-O4EVRHDH.mjs → chunk-QJ2OLGAW.mjs} +2 -2
- package/dist/esm/{chunk-ZAMLI7FP.mjs → chunk-RNFDAXUZ.mjs} +2 -2
- package/dist/esm/{chunk-6KKEGX5H.mjs → chunk-SCYVRDJI.mjs} +2 -2
- package/dist/esm/{chunk-OYQRQC4Z.mjs → chunk-SEAOSYSZ.mjs} +2 -2
- package/dist/esm/{chunk-GNMX2QXW.mjs → chunk-TB5WN5G6.mjs} +2 -2
- package/dist/esm/chunk-TB5WN5G6.mjs.map +1 -0
- package/dist/esm/{chunk-PEDUQZ3V.mjs → chunk-THHBTHEO.mjs} +2 -2
- package/dist/esm/{chunk-JXST37IU.mjs → chunk-U4JXJ3UN.mjs} +2 -2
- package/dist/esm/chunk-U6SLSQ5W.mjs +2 -0
- package/dist/esm/chunk-U6SLSQ5W.mjs.map +1 -0
- package/dist/esm/{chunk-CTBCXJAY.mjs → chunk-UVTSJ2KP.mjs} +2 -2
- package/dist/esm/chunk-VDQYAGHU.mjs +2 -0
- package/dist/esm/chunk-VDQYAGHU.mjs.map +1 -0
- package/dist/esm/{chunk-6TUHLGW3.mjs → chunk-WXMHBL7Z.mjs} +1 -1
- package/dist/esm/chunk-WXMHBL7Z.mjs.map +1 -0
- package/dist/esm/{chunk-SPFXAD7J.mjs → chunk-X2EXY2EO.mjs} +2 -2
- package/dist/esm/{chunk-BR2N3DBO.mjs → chunk-XPE3Z7L5.mjs} +2 -2
- package/dist/esm/{chunk-XDRD7XEX.mjs → chunk-XSCYT6TT.mjs} +2 -2
- package/dist/esm/{chunk-PQPNGECP.mjs → chunk-XWCVGQKA.mjs} +2 -2
- package/dist/esm/chunk-YA3YHVPD.mjs +2 -0
- package/dist/esm/chunk-YA3YHVPD.mjs.map +1 -0
- package/dist/esm/{chunk-RB6P7ZHR.mjs → chunk-YTHL7EKV.mjs} +2 -2
- package/dist/esm/{chunk-UL3S5HV2.mjs → chunk-ZI4IMZR6.mjs} +2 -2
- package/dist/esm/{chunk-ML7VTAHR.mjs → chunk-ZOQ3ZG7U.mjs} +2 -2
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/account/Account.mjs +1 -1
- package/dist/esm/core/account/Ed25519Account.mjs +1 -1
- package/dist/esm/core/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/core/account/index.mjs +1 -1
- package/dist/esm/core/accountAddress.mjs +1 -1
- package/dist/esm/core/authenticationKey.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/index.d.mts +2 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.d.mts +1 -1
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.d.mts +1 -1
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/event.mjs +1 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/plugins/assetUploader/index.d.mts +67 -7
- package/dist/esm/plugins/assetUploader/index.mjs +1 -1
- package/dist/esm/plugins/assetUploader/irys.d.mts +2 -2
- package/dist/esm/plugins/assetUploader/irys.mjs +1 -1
- package/dist/esm/plugins/assetUploader/types.d.mts +52 -0
- package/dist/esm/plugins/assetUploader/types.mjs +2 -0
- package/dist/esm/plugins/assetUploader/types.mjs.map +1 -0
- package/dist/esm/plugins/index.d.mts +8 -7
- package/dist/esm/plugins/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/types/index.d.mts +1 -1
- package/dist/esm/types/index.mjs +1 -1
- package/dist/esm/utils/apiEndpoints.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/src/api/general.ts +1 -1
- package/src/api/transaction.ts +1 -1
- package/src/plugins/assetUploader/index.ts +78 -1
- package/src/plugins/assetUploader/irys.ts +10 -8
- package/src/plugins/assetUploader/types.ts +17 -0
- package/src/types/index.ts +1 -1
- package/src/utils/apiEndpoints.ts +3 -3
- package/dist/esm/chunk-6TUHLGW3.mjs.map +0 -1
- package/dist/esm/chunk-77SKA4HT.mjs +0 -2
- package/dist/esm/chunk-77SKA4HT.mjs.map +0 -1
- package/dist/esm/chunk-GNMX2QXW.mjs.map +0 -1
- package/dist/esm/chunk-TAYSRAKQ.mjs +0 -2
- package/dist/esm/chunk-TAYSRAKQ.mjs.map +0 -1
- package/dist/esm/chunk-TKM3W4UG.mjs +0 -1
- package/dist/esm/chunk-TKM3W4UG.mjs.map +0 -1
- package/dist/esm/chunk-WOHJGIDT.mjs +0 -2
- package/dist/esm/chunk-WOHJGIDT.mjs.map +0 -1
- package/dist/esm/plugins/assetUploader/assetUploader.d.mts +0 -110
- package/dist/esm/plugins/assetUploader/assetUploader.mjs +0 -2
- package/dist/esm/plugins/assetUploader/assetUploader.mjs.map +0 -1
- package/src/plugins/assetUploader/assetUploader.ts +0 -90
- /package/dist/esm/{chunk-7WNQNTZ5.mjs.map → chunk-27644ALO.mjs.map} +0 -0
- /package/dist/esm/{chunk-5NUX2OGU.mjs.map → chunk-2MWFPMJU.mjs.map} +0 -0
- /package/dist/esm/{chunk-GTWCLFSO.mjs.map → chunk-53UNV6UP.mjs.map} +0 -0
- /package/dist/esm/{chunk-P4JLMPCP.mjs.map → chunk-5BPCJWJ3.mjs.map} +0 -0
- /package/dist/esm/{chunk-RI5FYQIT.mjs.map → chunk-5JCZRKJG.mjs.map} +0 -0
- /package/dist/esm/{chunk-2RRFFRBV.mjs.map → chunk-77CVU2W7.mjs.map} +0 -0
- /package/dist/esm/{chunk-TC4AF4TT.mjs.map → chunk-7N6YF6JO.mjs.map} +0 -0
- /package/dist/esm/{chunk-KVWSL76Z.mjs.map → chunk-BTO7WDIW.mjs.map} +0 -0
- /package/dist/esm/{chunk-ITKRS54D.mjs.map → chunk-BUU7JCLF.mjs.map} +0 -0
- /package/dist/esm/{chunk-5FWN3ASG.mjs.map → chunk-DLGGNSKF.mjs.map} +0 -0
- /package/dist/esm/{chunk-P3CMSOX6.mjs.map → chunk-E36XGHUE.mjs.map} +0 -0
- /package/dist/esm/{chunk-OP4VV2UO.mjs.map → chunk-ETGZG4G7.mjs.map} +0 -0
- /package/dist/esm/{chunk-T3434WYA.mjs.map → chunk-FYVPCKSW.mjs.map} +0 -0
- /package/dist/esm/{chunk-JJS3Y3WT.mjs.map → chunk-GSCUF6XW.mjs.map} +0 -0
- /package/dist/esm/{chunk-SPKBGDFY.mjs.map → chunk-ICK2XO6A.mjs.map} +0 -0
- /package/dist/esm/{chunk-JVDLBAAL.mjs.map → chunk-IQJJRNHK.mjs.map} +0 -0
- /package/dist/esm/{chunk-PATJMQAG.mjs.map → chunk-IUZCNQ7D.mjs.map} +0 -0
- /package/dist/esm/{chunk-2FQW5ZSM.mjs.map → chunk-J22AZHQT.mjs.map} +0 -0
- /package/dist/esm/{chunk-4OELG2AL.mjs.map → chunk-JOIUR5QW.mjs.map} +0 -0
- /package/dist/esm/{chunk-LKKOIIBF.mjs.map → chunk-JPNK6EKM.mjs.map} +0 -0
- /package/dist/esm/{chunk-O5WB3GB6.mjs.map → chunk-L354LBX4.mjs.map} +0 -0
- /package/dist/esm/{chunk-VU2CNQVS.mjs.map → chunk-LIU6DQQJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-54SDZFVL.mjs.map → chunk-LWQHVABO.mjs.map} +0 -0
- /package/dist/esm/{chunk-JB7ZOUYL.mjs.map → chunk-MUKBXGU3.mjs.map} +0 -0
- /package/dist/esm/{chunk-O25IJ3Q3.mjs.map → chunk-NF35PRGD.mjs.map} +0 -0
- /package/dist/esm/{chunk-AJRBTHDS.mjs.map → chunk-NUBFOYQZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-QGPI74JX.mjs.map → chunk-OBSG3724.mjs.map} +0 -0
- /package/dist/esm/{chunk-ABMVXTVA.mjs.map → chunk-Q6YMSZLY.mjs.map} +0 -0
- /package/dist/esm/{chunk-O4EVRHDH.mjs.map → chunk-QJ2OLGAW.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZAMLI7FP.mjs.map → chunk-RNFDAXUZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-6KKEGX5H.mjs.map → chunk-SCYVRDJI.mjs.map} +0 -0
- /package/dist/esm/{chunk-OYQRQC4Z.mjs.map → chunk-SEAOSYSZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-PEDUQZ3V.mjs.map → chunk-THHBTHEO.mjs.map} +0 -0
- /package/dist/esm/{chunk-JXST37IU.mjs.map → chunk-U4JXJ3UN.mjs.map} +0 -0
- /package/dist/esm/{chunk-CTBCXJAY.mjs.map → chunk-UVTSJ2KP.mjs.map} +0 -0
- /package/dist/esm/{chunk-SPFXAD7J.mjs.map → chunk-X2EXY2EO.mjs.map} +0 -0
- /package/dist/esm/{chunk-BR2N3DBO.mjs.map → chunk-XPE3Z7L5.mjs.map} +0 -0
- /package/dist/esm/{chunk-XDRD7XEX.mjs.map → chunk-XSCYT6TT.mjs.map} +0 -0
- /package/dist/esm/{chunk-PQPNGECP.mjs.map → chunk-XWCVGQKA.mjs.map} +0 -0
- /package/dist/esm/{chunk-RB6P7ZHR.mjs.map → chunk-YTHL7EKV.mjs.map} +0 -0
- /package/dist/esm/{chunk-UL3S5HV2.mjs.map → chunk-ZI4IMZR6.mjs.map} +0 -0
- /package/dist/esm/{chunk-ML7VTAHR.mjs.map → chunk-ZOQ3ZG7U.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-7N6YF6JO.mjs";import{d as M}from"./chunk-L354LBX4.mjs";import{c as V}from"./chunk-RC5K63LK.mjs";import{b as w,f as v,i as G,l as A,m as f,n as s,q as p,s as g}from"./chunk-HWTX3HVX.mjs";import{b as c}from"./chunk-JPG25VX2.mjs";import{g as b}from"./chunk-ITALFUWD.mjs";import{n as h,w as E,x,y as q}from"./chunk-S4SEFF4K.mjs";import{a as I,b as u}from"./chunk-VZJ62XF7.mjs";import{a as T,e as S}from"./chunk-BKWJ4G7T.mjs";import{d as O}from"./chunk-56CNRT2K.mjs";var C={BOOLEAN:"bool",U8:"u8",U16:"u16",U32:"u32",U64:"u64",U128:"u128",U256:"u256",ADDRESS:"address",STRING:"0x1::string::String",ARRAY:"vector<u8>"},m="0x4::token::Token";async function _t(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:c.from(n).toStringLong()}};return(await b({aptosConfig:o,query:{query:q,variables:{where_condition:e}},originMethod:"getDigitalAssetData"})).current_token_datas_v2[0]}async function Pt(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:c.from(n).toStringLong()}};return(await b({aptosConfig:o,query:{query:x,variables:{where_condition:e}},originMethod:"getCurrentDigitalAssetOwnership"})).current_token_ownerships_v2[0]}async function kt(t){let{aptosConfig:o,ownerAddress:n,options:e}=t,r={owner_address:{_eq:c.from(n).toStringLong()},amount:{_gt:0}},i={query:x,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await b({aptosConfig:o,query:i,originMethod:"getOwnedDigitalAssets"})).current_token_ownerships_v2}async function Dt(t){let{aptosConfig:o,digitalAssetAddress:n,options:e}=t,r={token_data_id:{_eq:c.from(n).toStringLong()}},i={query:E,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await b({aptosConfig:o,query:i,originMethod:"getDigitalAssetActivity"})).token_activities_v2}var Q={typeParameters:[],parameters:[new s(p()),new v,new s(p()),new s(p()),new w,new w,new w,new w,new w,new w,new w,new w,new w,new v,new v]};async function St(t){let{aptosConfig:o,options:n,creator:e}=t;return d({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::create_collection",functionArguments:[new u(t.description),new S(t.maxSupply??O),new u(t.name),new u(t.uri),new T(t.mutableDescription??!0),new T(t.mutableRoyalty??!0),new T(t.mutableURI??!0),new T(t.mutableTokenDescription??!0),new T(t.mutableTokenName??!0),new T(t.mutableTokenProperties??!0),new T(t.mutableTokenURI??!0),new T(t.tokensBurnableByCreator??!0),new T(t.tokensFreezableByCreator??!0),new S(t.royaltyNumerator??0),new S(t.royaltyDenominator??1)],abi:Q},options:n})}async function U(t){let{aptosConfig:o,creatorAddress:n,collectionName:e,options:r}=t,i=c.from(n),a={collection_name:{_eq:e},creator_address:{_eq:i.toStringLong()}};return r?.tokenStandard&&(a.token_standard={_eq:r?.tokenStandard??"v2"}),(await b({aptosConfig:o,query:{query:h,variables:{where_condition:a}},originMethod:"getCollectionData"})).current_collections_v2[0]}async function vt(t){let{aptosConfig:o,collectionId:n}=t,r={collection_id:{_eq:c.from(n).toStringLong()}};return(await b({aptosConfig:o,query:{query:h,variables:{where_condition:r}},originMethod:"getCollectionData"})).current_collections_v2[0]}async function ht(t){return(await U(t)).collection_id}var F={typeParameters:[],parameters:[new s(p()),new s(p()),new s(p()),new s(p()),new f(new s(p())),new f(new s(p())),new f(f.u8())]};async function xt(t){let{aptosConfig:o,options:n,creator:e,collection:r,description:i,name:a,uri:l,propertyKeys:y,propertyTypes:P,propertyValues:_}=t,k=P?.map(D=>C[D]);return d({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::mint",functionArguments:[new u(r),new u(i),new u(a),new u(l),I.MoveString(y??[]),I.MoveString(k??[]),R(_??[],k??[])],abi:F},options:n})}var N={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new G]};async function Gt(t){let{aptosConfig:o,sender:n,digitalAssetAddress:e,recipient:r,digitalAssetType:i,options:a}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x1::object::transfer",typeArguments:[i??m],functionArguments:[c.from(e),c.from(r)],abi:N},options:a})}var Y={typeParameters:[],parameters:[new s(p()),new s(p()),new s(p()),new s(p()),new f(new s(p())),new f(new s(p())),new f(f.u8()),new G]};async function Bt(t){let{aptosConfig:o,account:n,collection:e,description:r,name:i,uri:a,recipient:l,propertyKeys:y,propertyTypes:P,propertyValues:_,options:k}=t;if(y?.length!==_?.length)throw new Error("Property keys and property values counts do not match");if(P?.length!==_?.length)throw new Error("Property types and property values counts do not match");let D=P?.map(K=>C[K]);return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::mint_soul_bound",functionArguments:[e,r,i,a,I.MoveString(y??[]),I.MoveString(D??[]),R(_??[],D??[]),l],abi:Y},options:k})}var z={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0)))]};async function Ot(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:i}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::burn",typeArguments:[r??m],functionArguments:[c.from(e)],abi:z},options:i})}var L={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0)))]};async function Et(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:i}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::freeze_transfer",typeArguments:[r??m],functionArguments:[e],abi:L},options:i})}var j={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0)))]};async function qt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:i}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::unfreeze_transfer",typeArguments:[r??m],functionArguments:[e],abi:j},options:i})}var X={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new s(p())]};async function Vt(t){let{aptosConfig:o,creator:n,description:e,digitalAssetAddress:r,digitalAssetType:i,options:a}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_description",typeArguments:[i??m],functionArguments:[c.from(r),new u(e)],abi:X},options:a})}var H={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new s(p())]};async function Mt(t){let{aptosConfig:o,creator:n,name:e,digitalAssetAddress:r,digitalAssetType:i,options:a}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_name",typeArguments:[i??m],functionArguments:[c.from(r),new u(e)],abi:H},options:a})}var J={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new s(p())]};async function Rt(t){let{aptosConfig:o,creator:n,uri:e,digitalAssetAddress:r,digitalAssetType:i,options:a}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_uri",typeArguments:[i??m],functionArguments:[c.from(r),new u(e)],abi:J},options:a})}var W={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new s(p()),new s(p()),f.u8()]};async function Kt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:i,digitalAssetAddress:a,digitalAssetType:l,options:y}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_property",typeArguments:[l??m],functionArguments:[c.from(a),new u(e),new u(C[r]),I.U8(B(i,C[r]))],abi:W},options:y})}var Z={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new s(p())]};async function Qt(t){let{aptosConfig:o,creator:n,propertyKey:e,digitalAssetAddress:r,digitalAssetType:i,options:a}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::remove_property",typeArguments:[i??m],functionArguments:[c.from(r),new u(e)],abi:Z},options:a})}var $={typeParameters:[{constraints:["key"]}],parameters:[new s(g(new A(0))),new s(p()),new s(p()),f.u8()]};async function Ut(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:i,digitalAssetAddress:a,digitalAssetType:l,options:y}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_property",typeArguments:[l??m],functionArguments:[c.from(a),new u(e),new u(C[r]),B(i,C[r])],abi:$},options:y})}var tt={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new s(g(new A(0))),new s(p()),new A(1)]};async function Ft(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:i,digitalAssetAddress:a,digitalAssetType:l,options:y}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_typed_property",typeArguments:[l??m,C[r]],functionArguments:[c.from(a),new u(e),i],abi:tt},options:y})}var et={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new s(g(new A(0))),new s(p()),new A(1)]};async function Nt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:i,digitalAssetAddress:a,digitalAssetType:l,options:y}=t;return d({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_typed_property",typeArguments:[l??m,C[r]],functionArguments:[c.from(a),new u(e),i],abi:et},options:y})}function R(t,o){let n=new Array;return o.forEach((e,r)=>{n.push(B(t[r],e))}),n}function B(t,o){let n=V(o);return M(t,n,0,[]).bcsToBytes()}export{_t as a,Pt as b,kt as c,Dt as d,St as e,U as f,vt as g,ht as h,xt as i,Gt as j,Bt as k,Ot as l,Et as m,qt as n,Vt as o,Mt as p,Rt as q,Kt as r,Qt as s,Ut as t,Ft as u,Nt as v};
|
|
2
|
+
//# sourceMappingURL=chunk-U4JXJ3UN.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var i=class a{constructor(r,o){this.config=r,this.irysApp=o}static async init(r){try{let o=await import("@irys/sdk/build/cjs/cjsIndex");return console.log("irys",o),new a(r,o.default)}catch{throw new Error("To use the Irys service, please install the `@irys/sdk` package")}}resolveProvider(){switch(this.config.network){case"devnet":throw new Error("Irys does not support Aptos' devnet");case"testnet":return{irysNode:"devnet",providerUrl:"testnet"};case"mainnet":return{irysNode:"node1",providerUrl:"mainnet"};default:throw new Error("Unsupported network")}}async getIrys(r){if(!this.irysApp)throw new Error("Irys has not been initialized");let{irysNode:o,providerUrl:t}=this.resolveProvider();return console.log("this.irysApp",this.irysApp),this.irysApp.init({url:o,token:"aptos",publicKey:r.account.publicKey.toString(),providerUrl:t,signingFunction:async e=>r.account.sign(e).toUint8Array()})}async fundNode(r){let{account:o,amount:t}=r,n=await this.getIrys({account:o});try{return await n.fund(t)}catch(e){throw new Error(`Error funding irys node ${e}`)}}async uploadData(r){let{account:o,data:t,options:n}=r,e=await this.getIrys({account:o});try{return await e.upload(t,n)}catch(s){throw new Error(`Error uploading data to irys ${s}`)}}async uploadFile(r){let{account:o,filePathToUpload:t,options:n}=r,e=await this.getIrys({account:o});try{return await e.uploadFile(t,n)}catch(s){throw new Error(`Error uploading file to irys ${s}`)}}async uploadFolder(r){let{account:o,folderToUpload:t,options:n}=r,e=await this.getIrys({account:o});try{return await e.uploadFolder(t,n)}catch(s){throw new Error(`Error uploading folder to irys ${s}`)}}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-U6SLSQ5W.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/plugins/assetUploader/irys.ts"],"sourcesContent":["import type { NodeIrys } from \"@irys/sdk/build/cjs/node/irys\";\nimport { CreateAndUploadOptions } from \"@irys/sdk/build/cjs/common/types\";\nimport { FundResponse, IAssetUploader, UploadResponse } from \"./types\";\nimport { AptosConfig } from \"../../api/aptosConfig\";\nimport { Account } from \"../../core\";\nimport { Network } from \"../../utils\";\n\n/**\n * Irys asset uploader\n *\n * Keeping the class here for now for simplicity, when/if extending the SDK\n * to more providers encourged to get this out to its own file\n */\nexport class IrysAssetUploader implements IAssetUploader {\n readonly config: AptosConfig;\n\n private irysApp: typeof NodeIrys | undefined;\n\n private constructor(config: AptosConfig, irysApp: typeof NodeIrys) {\n this.config = config;\n this.irysApp = irysApp;\n }\n\n static async init(config: AptosConfig) {\n try {\n const irys = await import(\"@irys/sdk/build/cjs/cjsIndex\");\n console.log(\"irys\", irys);\n return new IrysAssetUploader(config, irys.default);\n } catch (e: any) {\n throw new Error(\"To use the Irys service, please install the `@irys/sdk` package\");\n }\n }\n\n resolveProvider(): { irysNode: string; providerUrl: Network } {\n switch (this.config.network) {\n case Network.DEVNET:\n // Irys does not support Aptos' devnet\n throw new Error(\"Irys does not support Aptos' devnet\");\n case Network.TESTNET:\n return { irysNode: \"devnet\", providerUrl: Network.TESTNET };\n case Network.MAINNET:\n // Irys supports node1 and node2, there is no major difference between\n // those and it is recommended to simply use node1\n return { irysNode: \"node1\", providerUrl: Network.MAINNET };\n default:\n throw new Error(\"Unsupported network\");\n }\n }\n\n async getIrys(args: { account: Account }) {\n if (!this.irysApp) {\n throw new Error(\"Irys has not been initialized\");\n }\n const { irysNode, providerUrl } = this.resolveProvider();\n console.log(\"this.irysApp\", this.irysApp);\n const irys = this.irysApp.init({\n url: irysNode, // Irys node\n token: \"aptos\", // Token used for payment and signing\n publicKey: args.account.publicKey.toString(), // Aptos wallet publicKey\n providerUrl, // Aptos Network\n signingFunction: async (msg: Uint8Array) => args.account.sign(msg).toUint8Array(), // Signing function Irys will use\n });\n return irys;\n }\n\n async fundNode(args: { account: Account; amount: number }): Promise<FundResponse> {\n const { account, amount } = args;\n const irys = await this.getIrys({ account });\n try {\n return await irys.fund(amount);\n } catch (e) {\n throw new Error(`Error funding irys node ${e}`);\n }\n }\n\n async uploadData(args: {\n account: Account;\n data: string | Buffer;\n options?: CreateAndUploadOptions;\n }): Promise<UploadResponse> {\n const { account, data, options } = args;\n const irys = await this.getIrys({ account });\n try {\n return await irys.upload(data, options);\n } catch (e) {\n throw new Error(`Error uploading data to irys ${e}`);\n }\n }\n\n async uploadFile(args: {\n account: Account;\n filePathToUpload: string;\n options?: CreateAndUploadOptions;\n }): Promise<UploadResponse> {\n const { account, filePathToUpload, options } = args;\n const irys = await this.getIrys({ account });\n\n try {\n return await irys.uploadFile(filePathToUpload, options);\n } catch (e) {\n throw new Error(`Error uploading file to irys ${e}`);\n }\n }\n\n async uploadFolder(args: {\n account: Account;\n folderToUpload: string;\n options?: any;\n }): Promise<UploadResponse | undefined> {\n const { account, folderToUpload, options } = args;\n const irys = await this.getIrys({ account });\n\n try {\n return await irys.uploadFolder(folderToUpload, options);\n } catch (e) {\n throw new Error(`Error uploading folder to irys ${e}`);\n }\n }\n}\n"],"mappings":"AAaO,IAAMA,EAAN,MAAMC,CAA4C,CAK/C,YAAYC,EAAqBC,EAA0B,CACjE,KAAK,OAASD,EACd,KAAK,QAAUC,CACjB,CAEA,aAAa,KAAKD,EAAqB,CACrC,GAAI,CACF,IAAME,EAAO,KAAM,QAAO,8BAA8B,EACxD,eAAQ,IAAI,OAAQA,CAAI,EACjB,IAAIH,EAAkBC,EAAQE,EAAK,OAAO,CACnD,MAAiB,CACf,MAAM,IAAI,MAAM,iEAAiE,CACnF,CACF,CAEA,iBAA8D,CAC5D,OAAQ,KAAK,OAAO,QAAS,CAC3B,aAEE,MAAM,IAAI,MAAM,qCAAqC,EACvD,cACE,MAAO,CAAE,SAAU,SAAU,qBAA6B,EAC5D,cAGE,MAAO,CAAE,SAAU,QAAS,qBAA6B,EAC3D,QACE,MAAM,IAAI,MAAM,qBAAqB,CACzC,CACF,CAEA,MAAM,QAAQC,EAA4B,CACxC,GAAI,CAAC,KAAK,QACR,MAAM,IAAI,MAAM,+BAA+B,EAEjD,GAAM,CAAE,SAAAC,EAAU,YAAAC,CAAY,EAAI,KAAK,gBAAgB,EACvD,eAAQ,IAAI,eAAgB,KAAK,OAAO,EAC3B,KAAK,QAAQ,KAAK,CAC7B,IAAKD,EACL,MAAO,QACP,UAAWD,EAAK,QAAQ,UAAU,SAAS,EAC3C,YAAAE,EACA,gBAAiB,MAAOC,GAAoBH,EAAK,QAAQ,KAAKG,CAAG,EAAE,aAAa,CAClF,CAAC,CAEH,CAEA,MAAM,SAASH,EAAmE,CAChF,GAAM,CAAE,QAAAI,EAAS,OAAAC,CAAO,EAAIL,EACtBD,EAAO,MAAM,KAAK,QAAQ,CAAE,QAAAK,CAAQ,CAAC,EAC3C,GAAI,CACF,OAAO,MAAML,EAAK,KAAKM,CAAM,CAC/B,OAAS,EAAG,CACV,MAAM,IAAI,MAAM,2BAA2B,CAAC,EAAE,CAChD,CACF,CAEA,MAAM,WAAWL,EAIW,CAC1B,GAAM,CAAE,QAAAI,EAAS,KAAAE,EAAM,QAAAC,CAAQ,EAAIP,EAC7BD,EAAO,MAAM,KAAK,QAAQ,CAAE,QAAAK,CAAQ,CAAC,EAC3C,GAAI,CACF,OAAO,MAAML,EAAK,OAAOO,EAAMC,CAAO,CACxC,OAASC,EAAG,CACV,MAAM,IAAI,MAAM,gCAAgCA,CAAC,EAAE,CACrD,CACF,CAEA,MAAM,WAAWR,EAIW,CAC1B,GAAM,CAAE,QAAAI,EAAS,iBAAAK,EAAkB,QAAAF,CAAQ,EAAIP,EACzCD,EAAO,MAAM,KAAK,QAAQ,CAAE,QAAAK,CAAQ,CAAC,EAE3C,GAAI,CACF,OAAO,MAAML,EAAK,WAAWU,EAAkBF,CAAO,CACxD,OAASC,EAAG,CACV,MAAM,IAAI,MAAM,gCAAgCA,CAAC,EAAE,CACrD,CACF,CAEA,MAAM,aAAaR,EAIqB,CACtC,GAAM,CAAE,QAAAI,EAAS,eAAAM,EAAgB,QAAAH,CAAQ,EAAIP,EACvCD,EAAO,MAAM,KAAK,QAAQ,CAAE,QAAAK,CAAQ,CAAC,EAE3C,GAAI,CACF,OAAO,MAAML,EAAK,aAAaW,EAAgBH,CAAO,CACxD,OAASC,EAAG,CACV,MAAM,IAAI,MAAM,kCAAkCA,CAAC,EAAE,CACvD,CACF,CACF","names":["IrysAssetUploader","_IrysAssetUploader","config","irysApp","irys","args","irysNode","providerUrl","msg","account","amount","data","options","e","filePathToUpload","folderToUpload"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-NF35PRGD.mjs";import{g as t}from"./chunk-Q6YMSZLY.mjs";var r=class{constructor(o){this.config=o}async fundAccount(o){let n=await i({aptosConfig:this.config,...o});return o.options?.waitForIndexer!==!1&&await t({aptosConfig:this.config,minimumLedgerVersion:BigInt(n.version)}),n}};export{r as a};
|
|
2
|
+
//# sourceMappingURL=chunk-UVTSJ2KP.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var n={mainnet:"https://indexer.mainnet.aptoslabs.com/v1/graphql",testnet:"https://indexer-testnet.staging.gcp.aptosdev.com/v1/graphql",devnet:"https://indexer-devnet.staging.gcp.aptosdev.com/v1/graphql",randomnet:"https://indexer-randomnet.hasura.app/v1/graphql",local:"http://127.0.0.1:8090/v1/graphql"},o={mainnet:"https://api.mainnet.aptoslabs.com/v1",testnet:"https://api.testnet.aptoslabs.com/v1",devnet:"https://api.devnet.aptoslabs.com/v1",randomnet:"https://fullnode.random.aptoslabs.com/v1",local:"http://127.0.0.1:8080/v1"},a={mainnet:"https://faucet.mainnet.aptoslabs.com",testnet:"https://faucet.testnet.aptoslabs.com",devnet:"https://faucet.devnet.aptoslabs.com",randomnet:"https://faucet.random.aptoslabs.com",local:"http://127.0.0.1:8081"},e=(t=>(t.MAINNET="mainnet",t.TESTNET="testnet",t.DEVNET="devnet",t.RANDOMNET="randomnet",t.LOCAL="local",t.CUSTOM="custom",t))(e||{}),s={mainnet:1,testnet:2,randomnet:70},r={mainnet:"mainnet",testnet:"testnet",devnet:"devnet",randomnet:"randomnet",local:"local",custom:"custom"};export{n as a,o as b,a as c,e as d,s as e,r as f};
|
|
2
|
+
//# sourceMappingURL=chunk-VDQYAGHU.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utils/apiEndpoints.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nexport const NetworkToIndexerAPI: Record<string, string> = {\n mainnet: \"https://indexer.mainnet.aptoslabs.com/v1/graphql\",\n testnet: \"https://indexer-testnet.staging.gcp.aptosdev.com/v1/graphql\",\n devnet: \"https://indexer-devnet.staging.gcp.aptosdev.com/v1/graphql\",\n randomnet: \"https://indexer-randomnet.hasura.app/v1/graphql\",\n local: \"http://127.0.0.1:8090/v1/graphql\",\n};\n\nexport const NetworkToNodeAPI: Record<string, string> = {\n mainnet: \"https://api.mainnet.aptoslabs.com/v1\",\n testnet: \"https://api.testnet.aptoslabs.com/v1\",\n devnet: \"https://api.devnet.aptoslabs.com/v1\",\n randomnet: \"https://fullnode.random.aptoslabs.com/v1\",\n local: \"http://127.0.0.1:8080/v1\",\n};\n\nexport const NetworkToFaucetAPI: Record<string, string> = {\n mainnet: \"https://faucet.mainnet.aptoslabs.com\",\n testnet: \"https://faucet.testnet.aptoslabs.com\",\n devnet: \"https://faucet.devnet.aptoslabs.com\",\n randomnet: \"https://faucet.random.aptoslabs.com\",\n local: \"http://127.0.0.1:8081\",\n};\n\nexport enum Network {\n MAINNET = \"mainnet\",\n TESTNET = \"testnet\",\n DEVNET = \"devnet\",\n RANDOMNET = \"randomnet\",\n LOCAL = \"local\",\n CUSTOM = \"custom\",\n}\n\nexport const NetworkToChainId: Record<string, number> = {\n mainnet: 1,\n testnet: 2,\n randomnet: 70,\n};\n\nexport const NetworkToNetworkName: Record<string, Network> = {\n mainnet: Network.MAINNET,\n testnet: Network.TESTNET,\n devnet: Network.DEVNET,\n randomnet: Network.RANDOMNET,\n local: Network.LOCAL,\n custom: Network.CUSTOM,\n};\n"],"mappings":"AAGO,IAAMA,EAA8C,CACzD,QAAS,mDACT,QAAS,8DACT,OAAQ,6DACR,UAAW,kDACX,MAAO,kCACT,EAEaC,EAA2C,CACtD,QAAS,uCACT,QAAS,uCACT,OAAQ,sCACR,UAAW,2CACX,MAAO,0BACT,EAEaC,EAA6C,CACxD,QAAS,uCACT,QAAS,uCACT,OAAQ,sCACR,UAAW,sCACX,MAAO,uBACT,EAEYC,OACVA,EAAA,QAAU,UACVA,EAAA,QAAU,UACVA,EAAA,OAAS,SACTA,EAAA,UAAY,YACZA,EAAA,MAAQ,QACRA,EAAA,OAAS,SANCA,OAAA,IASCC,EAA2C,CACtD,QAAS,EACT,QAAS,EACT,UAAW,EACb,EAEaC,EAAgD,CAC3D,QAAS,UACT,QAAS,UACT,OAAQ,SACR,UAAW,YACX,MAAO,QACP,OAAQ,QACV","names":["NetworkToIndexerAPI","NetworkToNodeAPI","NetworkToFaucetAPI","Network","NetworkToChainId","NetworkToNetworkName"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{a as o,b as s,c as t,d as r,e as n,f as i,g as a,i as g,j as c}from"./chunk-ITALFUWD.mjs";var u=class{constructor(e){this.config=e}async getLedgerInfo(){return o({aptosConfig:this.config})}async getChainId(){return(await this.getLedgerInfo()).chain_id}async getBlockByVersion(e){return s({aptosConfig:this.config,...e})}async getBlockByHeight(e){return t({aptosConfig:this.config,...e})}async getTableItem(e){return r({aptosConfig:this.config,...e})}async view(e){return n({aptosConfig:this.config,...e})}async getChainTopUserTransactions(e){return i({aptosConfig:this.config,...e})}async queryIndexer(e){return a({aptosConfig:this.config,...e})}async getIndexerLastSuccessVersion(){return g({aptosConfig:this.config})}async getProcessorStatus(e){return c({aptosConfig:this.config,processorType:e})}};export{u as a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-WXMHBL7Z.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/api/general.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { AptosConfig } from \"./aptosConfig\";\nimport {\n getBlockByHeight,\n getBlockByVersion,\n getChainTopUserTransactions,\n getIndexerLastSuccessVersion,\n getLedgerInfo,\n getProcessorStatus,\n getTableItem,\n queryIndexer,\n view,\n} from \"../internal/general\";\nimport {\n AnyNumber,\n Block,\n GetChainTopUserTransactionsResponse,\n GetProcessorStatusResponse,\n GraphqlQuery,\n LedgerInfo,\n LedgerVersionArg,\n MoveValue,\n TableItemRequest,\n InputViewRequestData,\n} from \"../types\";\nimport { ProcessorType } from \"../utils/const\";\n\n/**\n * A class to query all `General` Aptos related queries\n */\nexport class General {\n readonly config: AptosConfig;\n\n constructor(config: AptosConfig) {\n this.config = config;\n }\n\n /**\n * Queries for the Aptos ledger info\n *\n * @returns Aptos Ledger Info\n *\n * @example An example of the returned data\n * ```\n * {\n * \"chain_id\": 4,\n * \"epoch\": \"8\",\n * \"ledger_version\": \"714\",\n * \"oldest_ledger_version\": \"0\",\n * \"ledger_timestamp\": \"1694695496521775\",\n * \"node_role\": \"validator\",\n * \"oldest_block_height\": \"0\",\n * \"block_height\": \"359\",\n * \"git_hash\": \"c82193f36f4e185fed9f68c4ad21f6c6dd390c6e\"\n * }\n * ```\n */\n async getLedgerInfo(): Promise<LedgerInfo> {\n return getLedgerInfo({ aptosConfig: this.config });\n }\n\n /**\n * Queries for the chain id\n *\n * @returns The chain id\n */\n async getChainId(): Promise<number> {\n const result = await this.getLedgerInfo();\n return result.chain_id;\n }\n\n /**\n * Queries for block by transaction version\n *\n * @param args.ledgerVersion Ledger version to lookup block information for\n * @param args.options.withTransactions If set to true, include all transactions in the block\n *\n * @returns Block information with optional transactions\n */\n async getBlockByVersion(args: {\n ledgerVersion: AnyNumber;\n options?: { withTransactions?: boolean };\n }): Promise<Block> {\n return getBlockByVersion({\n aptosConfig: this.config,\n ...args,\n });\n }\n\n /**\n * Get block by block height\n *\n * @param args.blockHeight Block height to lookup. Starts at 0\n * @param args.options.withTransactions If set to true, include all transactions in the block\n *\n * @returns Block with optional transactions\n */\n async getBlockByHeight(args: { blockHeight: AnyNumber; options?: { withTransactions?: boolean } }): Promise<Block> {\n return getBlockByHeight({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Queries for a table item for a table identified by the handle and the key for the item.\n * Key and value types need to be passed in to help with key serialization and value deserialization.\n * @param args.handle A pointer to where that table is stored\n * @param args.data Object that describes table item\n * @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version\n *\n * @example https://api.devnet.aptoslabs.com/v1/accounts/0x1/resource/0x1::coin::CoinInfo%3C0x1::aptos_coin::AptosCoin%3E\n * {\n * data.key_type = \"address\" // Move type of table key\n * data.value_type = \"u128\" // Move type of table value\n * data.key = \"0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935\" // Value of table key\n * }\n *\n * @returns Table item value rendered in JSON\n */\n async getTableItem<T>(args: { handle: string; data: TableItemRequest; options?: LedgerVersionArg }): Promise<T> {\n return getTableItem<T>({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Queries for a Move view function\n * @param args.payload Payload for the view function\n * @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version\n * @example\n * `\n * const payload: ViewRequest = {\n * function: \"0x1::coin::balance\",\n * typeArguments: [\"0x1::aptos_coin::AptosCoin\"],\n * functionArguments: [accountAddress],\n * };\n * `\n *\n * @returns an array of Move values\n */\n async view<T extends Array<MoveValue>>(args: {\n payload: InputViewRequestData;\n options?: LedgerVersionArg;\n }): Promise<T> {\n return view<T>({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Queries top user transactions\n *\n * @param args.limit The number of transactions to return\n * @returns GetChainTopUserTransactionsResponse\n */\n async getChainTopUserTransactions(args: { limit: number }): Promise<GetChainTopUserTransactionsResponse> {\n return getChainTopUserTransactions({\n aptosConfig: this.config,\n ...args,\n });\n }\n\n /**\n * A generic function for retrieving data from Aptos Indexer.\n * For more detailed queries specification see\n * {@link https://cloud.hasura.io/public/graphiql?endpoint=https://indexer.mainnet.aptoslabs.com/v1/graphql}\n *\n * @param args.query.query A GraphQL query\n * @param args.query.variables The variables for the query\n * @example\n * ```\n * {\n * query: `query MyQuery {\n ledger_infos {\n chain_id\n }\n }`;\n * }\n * ```\n *\n * @return The provided T type\n */\n async queryIndexer<T extends {}>(args: { query: GraphqlQuery }): Promise<T> {\n return queryIndexer<T>({\n aptosConfig: this.config,\n ...args,\n });\n }\n\n /**\n * Queries for the last successful indexer version\n *\n * This is useful to tell what ledger version the indexer is updated to, as it can be behind the full nodes.\n */\n async getIndexerLastSuccessVersion(): Promise<bigint> {\n return getIndexerLastSuccessVersion({ aptosConfig: this.config });\n }\n\n /**\n * Query the processor status for a specific processor type.\n *\n * @param processorType The processor type to query\n * @returns\n */\n async getProcessorStatus(processorType: ProcessorType): Promise<GetProcessorStatusResponse[0]> {\n return getProcessorStatus({ aptosConfig: this.config, processorType });\n }\n}\n"],"mappings":"iGAgCO,IAAMA,EAAN,KAAc,CAGnB,YAAYC,EAAqB,CAC/B,KAAK,OAASA,CAChB,CAsBA,MAAM,eAAqC,CACzC,OAAOC,EAAc,CAAE,YAAa,KAAK,MAAO,CAAC,CACnD,CAOA,MAAM,YAA8B,CAElC,OADe,MAAM,KAAK,cAAc,GAC1B,QAChB,CAUA,MAAM,kBAAkBC,EAGL,CACjB,OAAOC,EAAkB,CACvB,YAAa,KAAK,OAClB,GAAGD,CACL,CAAC,CACH,CAUA,MAAM,iBAAiBA,EAA4F,CACjH,OAAOE,EAAiB,CAAE,YAAa,KAAK,OAAQ,GAAGF,CAAK,CAAC,CAC/D,CAkBA,MAAM,aAAgBA,EAA0F,CAC9G,OAAOG,EAAgB,CAAE,YAAa,KAAK,OAAQ,GAAGH,CAAK,CAAC,CAC9D,CAiBA,MAAM,KAAiCA,EAGxB,CACb,OAAOI,EAAQ,CAAE,YAAa,KAAK,OAAQ,GAAGJ,CAAK,CAAC,CACtD,CAQA,MAAM,4BAA4BA,EAAuE,CACvG,OAAOK,EAA4B,CACjC,YAAa,KAAK,OAClB,GAAGL,CACL,CAAC,CACH,CAsBA,MAAM,aAA2BA,EAA2C,CAC1E,OAAOM,EAAgB,CACrB,YAAa,KAAK,OAClB,GAAGN,CACL,CAAC,CACH,CAOA,MAAM,8BAAgD,CACpD,OAAOO,EAA6B,CAAE,YAAa,KAAK,MAAO,CAAC,CAClE,CAQA,MAAM,mBAAmBC,EAAsE,CAC7F,OAAOC,EAAmB,CAAE,YAAa,KAAK,OAAQ,cAAAD,CAAc,CAAC,CACvE,CACF","names":["General","config","getLedgerInfo","args","getBlockByVersion","getBlockByHeight","getTableItem","view","getChainTopUserTransactions","queryIndexer","getIndexerLastSuccessVersion","processorType","getProcessorStatus"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i,b as t,c as n,d as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i,b as t,c as n,d as o}from"./chunk-27644ALO.mjs";import{a as s}from"./chunk-XSCYT6TT.mjs";var r=class{constructor(e){this.config=e}async getFungibleAssetMetadata(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),i({aptosConfig:this.config,...e})}async getFungibleAssetMetadataByAssetType(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),(await i({aptosConfig:this.config,options:{where:{asset_type:{_eq:e.assetType}}}}))[0]}async getFungibleAssetActivities(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),t({aptosConfig:this.config,...e})}async getCurrentFungibleAssetBalances(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),n({aptosConfig:this.config,...e})}async transferFungibleAsset(e){return o({aptosConfig:this.config,...e})}};export{r as a};
|
|
2
|
+
//# sourceMappingURL=chunk-X2EXY2EO.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-YTHL7EKV.mjs";import{a as h}from"./chunk-TB5WN5G6.mjs";import{a as y}from"./chunk-OBSG3724.mjs";import{a as r}from"./chunk-IQJJRNHK.mjs";import{a}from"./chunk-BUU7JCLF.mjs";import{a as c}from"./chunk-JOIUR5QW.mjs";import{a as g}from"./chunk-UVTSJ2KP.mjs";import{a as f}from"./chunk-X2EXY2EO.mjs";import{a as l}from"./chunk-WXMHBL7Z.mjs";import{a as s}from"./chunk-BTO7WDIW.mjs";import{a as p}from"./chunk-SCYVRDJI.mjs";var t=class{constructor(i){this.config=new y(i),this.account=new s(this.config),this.ans=new p(this.config),this.coin=new r(this.config),this.digitalAsset=new a(this.config),this.event=new c(this.config),this.faucet=new g(this.config),this.fungibleAsset=new f(this.config),this.general=new l(this.config),this.staking=new u(this.config),this.transaction=new h(this.config)}};function n(m,i,A){Object.getOwnPropertyNames(i.prototype).forEach(e=>{let o=Object.getOwnPropertyDescriptor(i.prototype,e);o&&(o.value=function(...d){return this[A][e](...d)},Object.defineProperty(m.prototype,e,o))})}n(t,s,"account");n(t,p,"ans");n(t,r,"coin");n(t,a,"digitalAsset");n(t,c,"event");n(t,g,"faucet");n(t,f,"fungibleAsset");n(t,l,"general");n(t,u,"staking");n(t,h,"transaction");export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-XPE3Z7L5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{g as e}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{g as e}from"./chunk-Q6YMSZLY.mjs";async function i(o){o.minimumLedgerVersion!==void 0&&await e({aptosConfig:o.config,minimumLedgerVersion:o.minimumLedgerVersion,processorType:o.processorType})}export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-XSCYT6TT.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-7N6YF6JO.mjs";import{b as w}from"./chunk-JPG25VX2.mjs";import{e as A,g}from"./chunk-ITALFUWD.mjs";import{t as f}from"./chunk-S4SEFF4K.mjs";var E=["A name must be between 3 and 63 characters long,","and can only contain lowercase a-z, 0-9, and hyphens.","A name may not start or end with a hyphen."].join(" ");function D(e){return!(!e||e.length<3||e.length>63||!/^[a-z\d][a-z\d-]{1,61}[a-z\d]$/.test(e))}function c(e){let[n,t,...o]=e.replace(/\.apt$/,"").split(".");if(o.length>0)throw new Error(`${e} is invalid. A name can only have two parts, a domain and a subdomain separated by a "."`);if(!D(n))throw new Error(`${n} is not valid. ${E}`);if(t&&!D(t))throw new Error(`${t} is not valid. ${E}`);return{domainName:t||n,subdomainName:t?n:void 0}}var Y="0x37368b46ce665362562c6d1d4ec01a08c8644c488690df5a17e13ba163e20221",G="0x585fc9f0f0c54183b039ffc770ca282ebd87307916c215a3e692f2f8e4305e82",O={testnet:"0x5f8fd2347449685cf41d4db97926ec3a096eaf381332be4f1318ad4d16a8497c",mainnet:"0x867ed1f6bf916171b1de3ee92849b8978b7d1b9e0a8cc982a3d19d535dfd9c0c",local:G,custom:null,devnet:null,randomnet:null};function d(e){let n=O[e.network];if(!n)throw new Error(`The ANS contract is not deployed to ${e.network}`);return n}var P=e=>({vec:[e]}),I=()=>({vec:[]}),S=e=>e!=null?P(e):I(),b=e=>{if(e&&typeof e=="object"&&"vec"in e&&Array.isArray(e.vec))return e.vec[0]};async function K(e){let{aptosConfig:n,name:t}=e,o=d(n),{domainName:r,subdomainName:s}=c(t),i=await A({aptosConfig:n,payload:{function:`${o}::router::get_owner_addr`,functionArguments:[r,S(s)]}}),a=b(i[0]);return a?w.from(a).toString():void 0}async function W(e){let{aptosConfig:n,expiration:t,name:o,sender:r,targetAddress:s,toAddress:i,options:a,transferable:m}=e,p=d(n),{domainName:l,subdomainName:N}=c(o),x=t.policy==="subdomain:independent"||t.policy==="subdomain:follow-domain";if(N&&!x)throw new Error("Subdomains must have an expiration policy of either 'subdomain:independent' or 'subdomain:follow-domain'");if(x&&!N)throw new Error(`Policy is set to ${t.policy} but no subdomain was provided`);if(t.policy==="domain"){let T=t.years??1;if(T!==1)throw new Error("For now, names can only be registered for 1 year at a time");let v=T*31536e3;return await u({aptosConfig:n,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_domain`,functionArguments:[l,v,s,i]},options:a})}if(!N)throw new Error(`${t.policy} requires a subdomain to be provided.`);let _=await q({aptosConfig:n,name:l});if(!_)throw new Error("The domain does not exist");let h=t.policy==="subdomain:independent"?t.expirationDate:_;if(h>_)throw new Error("The subdomain expiration time cannot be greater than the domain expiration time");return await u({aptosConfig:n,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_subdomain`,functionArguments:[l,N,Math.round(h/1e3),t.policy==="subdomain:follow-domain"?1:0,!!m,s,i]},options:a})}async function q(e){let{aptosConfig:n,name:t}=e,o=d(n),{domainName:r,subdomainName:s}=c(t);try{let i=await A({aptosConfig:n,payload:{function:`${o}::router::get_expiration`,functionArguments:[r,S(s)]}});return Number(i[0])*1e3}catch{return}}async function F(e){let{aptosConfig:n,address:t}=e,o=d(n),r=await A({aptosConfig:n,payload:{function:`${o}::router::get_primary_name`,functionArguments:[w.from(t).toString()]}}),s=b(r[1]),i=b(r[0]);if(s)return[i,s].filter(Boolean).join(".")}async function H(e){let{aptosConfig:n,sender:t,name:o,options:r}=e,s=d(n);if(!o)return await u({aptosConfig:n,sender:t.accountAddress.toString(),data:{function:`${s}::router::clear_primary_name`,functionArguments:[]},options:r});let{domainName:i,subdomainName:a}=c(o);return await u({aptosConfig:n,sender:t.accountAddress.toString(),data:{function:`${s}::router::set_primary_name`,functionArguments:[i,a]},options:r})}async function J(e){let{aptosConfig:n,name:t}=e,o=d(n),{domainName:r,subdomainName:s}=c(t),i=await A({aptosConfig:n,payload:{function:`${o}::router::get_target_addr`,functionArguments:[r,S(s)]}}),a=b(i[0]);return a?w.from(a).toString():void 0}async function X(e){let{aptosConfig:n,sender:t,name:o,address:r,options:s}=e,i=d(n),{domainName:a,subdomainName:m}=c(o);return await u({aptosConfig:n,sender:t.accountAddress.toString(),data:{function:`${i}::router::set_target_addr`,functionArguments:[a,m,r]},options:s})}async function Z(e){let{aptosConfig:n,name:t}=e,{domainName:o,subdomainName:r=""}=c(t),a=(await g({aptosConfig:n,query:{query:f,variables:{where_condition:{domain:{_eq:o},subdomain:{_eq:r}},limit:1}},originMethod:"getName"})).current_aptos_names[0];return a&&(a=y(a)),a}async function ee(e){let{aptosConfig:n,options:t,accountAddress:o}=e,r=await C({aptosConfig:n});return(await g({aptosConfig:n,originMethod:"getAccountNames",query:{query:f,variables:{limit:t?.limit,offset:t?.offset,order_by:t?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r}}}}})).current_aptos_names.map(y)}async function ne(e){let{aptosConfig:n,options:t,accountAddress:o}=e,r=await C({aptosConfig:n});return(await g({aptosConfig:n,originMethod:"getAccountDomains",query:{query:f,variables:{limit:t?.limit,offset:t?.offset,order_by:t?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_eq:""}}}}})).current_aptos_names.map(y)}async function te(e){let{aptosConfig:n,options:t,accountAddress:o}=e,r=await C({aptosConfig:n});return(await g({aptosConfig:n,originMethod:"getAccountSubdomains",query:{query:f,variables:{limit:t?.limit,offset:t?.offset,order_by:t?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_neq:""}}}}})).current_aptos_names.map(y)}async function oe(e){let{aptosConfig:n,options:t,domain:o}=e;return(await g({aptosConfig:n,originMethod:"getDomainSubdomains",query:{query:f,variables:{limit:t?.limit,offset:t?.offset,order_by:t?.orderBy,where_condition:{...e.options?.where??{},domain:{_eq:o},subdomain:{_neq:""}}}}})).current_aptos_names.map(y)}async function C(e){let{aptosConfig:n}=e,t=d(n),[o]=await A({aptosConfig:n,payload:{function:`${t}::config::reregistration_grace_sec`,functionArguments:[]}}),r=o/60/60/24,s=()=>new Date;return new Date(s().setDate(s().getDate()-r)).toISOString()}async function re(e){let{aptosConfig:n,sender:t,name:o,years:r=1,options:s}=e,i=d(n),a=r*31536e3,{domainName:m,subdomainName:p}=c(o);if(p)throw new Error("Subdomains cannot be renewed");if(r!==1)throw new Error("Currently, only 1 year renewals are supported");return await u({aptosConfig:n,sender:t.accountAddress.toString(),data:{function:`${i}::router::renew_domain`,functionArguments:[m,a]},options:s})}function y(e){return{...e,expiration_timestamp:new Date(e.expiration_timestamp).valueOf()}}export{E as a,D as b,c,Y as d,G as e,K as f,W as g,q as h,F as i,H as j,J as k,X as l,Z as m,ee as n,ne as o,te as p,oe as q,re as r};
|
|
2
|
+
//# sourceMappingURL=chunk-XWCVGQKA.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as e}from"./chunk-U6SLSQ5W.mjs";var t=class a{constructor(o,s){this.config=o,this.assetUploader=s}static async init(o){switch(o.assetUploaderProvider){case"irys":{let s=await e.init(o);return new a(o,s)}default:throw new Error("Invalid asset uploader provided")}}async fundNode(o){return this.assetUploader.fundNode({...o})}async uploadData(o){return this.assetUploader.uploadData({...o})}async uploadFile(o){return this.assetUploader.uploadFile({...o})}async uploadFolder(o){return this.assetUploader.uploadFolder({...o})}};export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YA3YHVPD.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/plugins/assetUploader/index.ts"],"sourcesContent":["import { AptosConfig } from \"../../api/aptosConfig\";\nimport { Account } from \"../../core\";\nimport { IrysAssetUploader } from \"./irys\";\nimport { FundResponse, IAssetUploader, UploadResponse } from \"./types\";\n\nexport class AssetUploader {\n readonly config: AptosConfig;\n\n readonly assetUploader: IAssetUploader;\n\n private constructor(config: AptosConfig, assetUploader: IAssetUploader) {\n this.config = config;\n this.assetUploader = assetUploader;\n }\n\n static async init(config: AptosConfig) {\n switch (config.assetUploaderProvider) {\n case \"irys\": {\n const assetUploader = await IrysAssetUploader.init(config);\n return new AssetUploader(config, assetUploader);\n }\n default:\n throw new Error(\"Invalid asset uploader provided\");\n }\n }\n\n /**\n * Funds the node you connected to with the specified amount of tokens\n *\n * @param args.account The account to sign and pay the fund transaction with\n * @param args.amount The amount to fund the node in\n *\n * @return FundResponse\n */\n async fundNode(args: { account: Account; amount: number }): Promise<FundResponse> {\n return this.assetUploader.fundNode({ ...args });\n }\n\n /**\n * Upload a data\n *\n * @param args.account The account to sign and pay the fund transaction with\n * @param args.data The data to upload\n *\n * @return UploadResponse\n */\n async uploadData(args: { account: Account; data: string | Buffer; options?: any }): Promise<UploadResponse> {\n return this.assetUploader.uploadData({ ...args });\n }\n\n /**\n * Upload a file\n *\n * @param args.account The account to sign and pay the upload file transaction with\n * @param args.filePathToUpload The file to upload as the file path\n *\n * @return UploadResponse\n */\n async uploadFile(args: { account: Account; filePathToUpload: string; options?: any }): Promise<UploadResponse> {\n return this.assetUploader.uploadFile({ ...args });\n }\n\n /**\n * Upload a folder\n *\n * @param args.account The account to sign and pay the upload folder transaction with\n * @param args.folderToUpload The folder to upload as the folder path\n *\n * @return UploadResponse | undefined\n */\n async uploadFolder(args: {\n account: Account;\n folderToUpload: string;\n options?: any;\n }): Promise<UploadResponse | undefined> {\n return this.assetUploader.uploadFolder({ ...args });\n }\n}\n"],"mappings":"yCAKO,IAAMA,EAAN,MAAMC,CAAc,CAKjB,YAAYC,EAAqBC,EAA+B,CACtE,KAAK,OAASD,EACd,KAAK,cAAgBC,CACvB,CAEA,aAAa,KAAKD,EAAqB,CACrC,OAAQA,EAAO,sBAAuB,CACpC,IAAK,OAAQ,CACX,IAAMC,EAAgB,MAAMC,EAAkB,KAAKF,CAAM,EACzD,OAAO,IAAID,EAAcC,EAAQC,CAAa,CAChD,CACA,QACE,MAAM,IAAI,MAAM,iCAAiC,CACrD,CACF,CAUA,MAAM,SAASE,EAAmE,CAChF,OAAO,KAAK,cAAc,SAAS,CAAE,GAAGA,CAAK,CAAC,CAChD,CAUA,MAAM,WAAWA,EAA2F,CAC1G,OAAO,KAAK,cAAc,WAAW,CAAE,GAAGA,CAAK,CAAC,CAClD,CAUA,MAAM,WAAWA,EAA8F,CAC7G,OAAO,KAAK,cAAc,WAAW,CAAE,GAAGA,CAAK,CAAC,CAClD,CAUA,MAAM,aAAaA,EAIqB,CACtC,OAAO,KAAK,cAAc,aAAa,CAAE,GAAGA,CAAK,CAAC,CACpD,CACF","names":["AssetUploader","_AssetUploader","config","assetUploader","IrysAssetUploader","args"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r,b as i,c as s}from"./chunk-L4PAU62E.mjs";import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r,b as i,c as s}from"./chunk-L4PAU62E.mjs";import{a as o}from"./chunk-XSCYT6TT.mjs";var t=class{constructor(e){this.config=e}async getNumberOfDelegators(e){return await o({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"stake_processor"}),r({aptosConfig:this.config,...e})}async getNumberOfDelegatorsForAllPools(e){return await o({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"stake_processor"}),i({aptosConfig:this.config,...e})}async getDelegatedStakingActivities(e){return await o({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"stake_processor"}),s({aptosConfig:this.config,...e})}};export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-YTHL7EKV.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as V,b as Y,c as nn}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as V,b as Y,c as nn}from"./chunk-L354LBX4.mjs";import{q as Q,t as M}from"./chunk-LIU6DQQJ.mjs";import{a as d}from"./chunk-5BPCJWJ3.mjs";import{b as _,d as R,e as B,f as E}from"./chunk-MUKBXGU3.mjs";import{a as T,c as f,d as g}from"./chunk-THHBTHEO.mjs";import{c as L,d as H,e as X,f as z,g as Z,h as j,i as J}from"./chunk-GSCUF6XW.mjs";import{a as K}from"./chunk-TWHTXYMB.mjs";import{e as x}from"./chunk-VDQYAGHU.mjs";import{a as v}from"./chunk-ICK2XO6A.mjs";import{b as w,d as p,e as C}from"./chunk-JPNK6EKM.mjs";import{a as $,b}from"./chunk-ETGZG4G7.mjs";import{a as G,c as U}from"./chunk-RNFDAXUZ.mjs";import{a as I,c as S}from"./chunk-NUBFOYQZ.mjs";import{b as u}from"./chunk-JPG25VX2.mjs";import{b as O}from"./chunk-Q6YMSZLY.mjs";import{a as q}from"./chunk-AH44UPM4.mjs";import{a as k}from"./chunk-ITALFUWD.mjs";import{b as D,c as F,f as N,g as P}from"./chunk-HEPV52CH.mjs";import{b as W}from"./chunk-BZMO6Q6L.mjs";import{sha3_256 as on}from"@noble/hashes/sha3";async function Fn(n){if(Q(n))return cn(n);let{moduleAddress:e,moduleName:t,functionName:r}=M(n.function),o=await q(async()=>Y(e,t,r,n.aptosConfig),`entry-function-${n.aptosConfig.network}-${e}-${t}-${r}`,1e3*60*5)();return sn({abi:o,...n})}function sn(n){let e=n.abi,{moduleAddress:t,moduleName:r,functionName:o}=M(n.function),a=V(n.typeArguments);if(a.length!==e.typeParameters.length)throw new Error(`Type argument count mismatch, expected ${e.typeParameters.length}, received ${a.length}`);let i=n.functionArguments.map((s,A)=>nn(n.function,e,s,A,a));if(i.length!==e.parameters.length)throw new Error(`Too few arguments for '${t}::${r}::${o}', expected ${e.parameters.length} but got ${i.length}`);let c=z.build(`${t}::${r}`,o,a,i);if("multisigAddress"in n){let s=u.from(n.multisigAddress);return new X(new j(s,new J(c)))}return new H(c)}function cn(n){return new L(new Z(W.fromHexInput(n.bytecode).toUint8Array(),n.typeArguments??[],n.functionArguments))}async function un(n){let{aptosConfig:e,sender:t,payload:r,options:o,feePayerAddress:a}=n,i=x[e.network]?Promise.resolve({chain_id:x[e.network]}):k({aptosConfig:e}),c=o?.gasUnitPrice?Promise.resolve({gas_estimate:o.gasUnitPrice}):O({aptosConfig:e}),[{chain_id:s},{gas_estimate:A}]=await Promise.all([i,c]),y=o?.accountSequenceNumber!==void 0?Promise.resolve({sequence_number:o.accountSequenceNumber}):v({aptosConfig:e,accountAddress:t}),m;if(a&&u.from(a).equals(u.ZERO))try{let{sequence_number:l}=await y;m=l}catch{m="0"}else{let{sequence_number:l}=await y;m=l}let{maxGasAmount:en,gasUnitPrice:an,expireTimestamp:rn}={maxGasAmount:o?.maxGasAmount?BigInt(o.maxGasAmount):BigInt(2e5),gasUnitPrice:BigInt(A),expireTimestamp:BigInt(Math.floor(Date.now()/1e3)+20),...o};return new T(u.from(t),BigInt(m),r,BigInt(en),BigInt(an),BigInt(rn),new K(s))}async function Nn(n){let{aptosConfig:e,sender:t,payload:r,options:o,feePayerAddress:a}=n,i=await un({aptosConfig:e,sender:t,payload:r,options:o,feePayerAddress:a});if("secondarySignerAddresses"in n){let c=n.secondarySignerAddresses?.map(s=>u.from(s))??[];return{rawTransaction:i,secondarySignerAddresses:c,feePayerAddress:n.feePayerAddress?u.from(n.feePayerAddress):void 0}}return{rawTransaction:i,feePayerAddress:n.feePayerAddress?u.from(n.feePayerAddress):void 0}}function Wn(n){let{signerPublicKey:e,transaction:t,secondarySignersPublicKeys:r,feePayerPublicKey:o}=n,a=h(e);if(t.feePayerAddress){let c=new g(t.rawTransaction,t.secondarySignerAddresses??[],t.feePayerAddress),s=[];r&&(s=r.map(m=>h(m)));let A=h(o),y=new B(a,t.secondarySignerAddresses??[],s,{address:t.feePayerAddress,authenticator:A});return new d(c.raw_txn,y).bcsToBytes()}if(t.secondarySignerAddresses){let c=new f(t.rawTransaction,t.secondarySignerAddresses),s=[];s=r.map(y=>h(y));let A=new R(a,t.secondarySignerAddresses,s);return new d(c.raw_txn,A).bcsToBytes()}let i;if(a instanceof w)i=new _(a.public_key,a.signature);else if(a instanceof p)i=new E(a);else throw new Error("Invalid public key");return new d(t.rawTransaction,i).bcsToBytes()}function h(n){if(n instanceof $){if(n.publicKey instanceof I)return new p(n,new b(new S(new Uint8Array(64))));if(n.publicKey instanceof G)return new p(n,new b(new U(new Uint8Array(64))))}return new w(new I(n.toUint8Array()),new S(new Uint8Array(64)))}function Gn(n){let{signer:e,transaction:t}=n,r=An(t);return e.signWithAuthenticator(r)}function Un(n){let{transaction:e,senderAuthenticator:t,feePayerAuthenticator:r,additionalSignersAuthenticators:o}=n,a=tn(e);if((r||o)&&(a instanceof f||a instanceof g))return dn(a,t,r,o);if(t instanceof w&&a instanceof T){let i=new _(t.public_key,t.signature);return new d(a,i).bcsToBytes()}if((t instanceof p||t instanceof C)&&a instanceof T){let i=new E(t);return new d(a,i).bcsToBytes()}throw new Error(`Cannot generate a signed transaction, ${t} is not a supported account authentication scheme`)}function tn(n){return n.feePayerAddress?new g(n.rawTransaction,n.secondarySignerAddresses??[],n.feePayerAddress):n.secondarySignerAddresses?new f(n.rawTransaction,n.secondarySignerAddresses):n.rawTransaction}function dn(n,e,t,r){if(n instanceof g){if(!t)throw new Error("Must provide a feePayerAuthenticator argument to generate a signed fee payer transaction");let o=new B(e,n.secondary_signer_addresses,r??[],{address:n.fee_payer_address,authenticator:t});return new d(n.raw_txn,o).bcsToBytes()}if(n instanceof f){if(!r)throw new Error("Must provide a additionalSignersAuthenticators argument to generate a signed multi agent transaction");let o=new R(e,n.secondary_signer_addresses,r??[]);return new d(n.raw_txn,o).bcsToBytes()}throw new Error(`Cannot prepare multi signers transaction to submission, ${typeof n} transaction is not supported`)}function An(n){let e=tn(n),t=on.create();if(e instanceof T)t.update(N);else if(e instanceof f)t.update(P);else if(e instanceof g)t.update(P);else throw new Error(`Unknown transaction type to sign on: ${e}`);let r=t.digest(),o=e.bcsToBytes(),a=new Uint8Array(r.length+o.length);return a.set(r),a.set(o,r.length),a}export{Fn as a,sn as b,un as c,Nn as d,Wn as e,h as f,Gn as g,Un as h,tn as i,dn as j,An as k};
|
|
2
|
+
//# sourceMappingURL=chunk-ZI4IMZR6.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as y}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{d as y}from"./chunk-JPNK6EKM.mjs";import{a as g,b as u}from"./chunk-ETGZG4G7.mjs";import{b as s}from"./chunk-RNFDAXUZ.mjs";import{b as i}from"./chunk-NUBFOYQZ.mjs";import{b as o}from"./chunk-JPG25VX2.mjs";var p=class a{constructor(e){this.signingScheme=2;let{privateKey:t,address:r}=e;this.privateKey=t,this.publicKey=new g(t.publicKey()),this.accountAddress=r?o.from(r):this.publicKey.authKey().derivedAddress()}static generate(e={}){let{scheme:t=0}=e,r;switch(t){case 0:r=i.generate();break;case 2:r=s.generate();break;default:throw new Error(`Unsupported signature scheme ${t}`)}return new a({privateKey:r})}static fromDerivationPath(e){let{scheme:t=0,path:r,mnemonic:c}=e,n;switch(t){case 0:n=i.fromDerivationPath(r,c);break;case 2:n=s.fromDerivationPath(r,c);break;default:throw new Error(`Unsupported signature scheme ${t}`)}return new a({privateKey:n})}verifySignature(e){return this.publicKey.verifySignature(e)}signWithAuthenticator(e){let t=this.privateKey.sign(e),r=new u(t);return new y(this.publicKey,r)}sign(e){return this.signWithAuthenticator(e).signature}};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-ZOQ3ZG7U.mjs.map
|
package/dist/esm/client/core.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../chunk-SKF6E6X7.mjs";import"../chunk-GHYE26Q5.mjs";import"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-SKF6E6X7.mjs";import"../chunk-GHYE26Q5.mjs";import"../chunk-HIUJDWMR.mjs";import"../chunk-NMNR3QST.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{b as aptosRequest,a as request};
|
|
2
2
|
//# sourceMappingURL=core.mjs.map
|
package/dist/esm/client/get.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../chunk-UFD443TT.mjs";import"../chunk-SKF6E6X7.mjs";import"../chunk-GHYE26Q5.mjs";import"../chunk-
|
|
1
|
+
import{a,b,c}from"../chunk-UFD443TT.mjs";import"../chunk-SKF6E6X7.mjs";import"../chunk-GHYE26Q5.mjs";import"../chunk-HEPV52CH.mjs";import"../chunk-HIUJDWMR.mjs";import"../chunk-NMNR3QST.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{a as get,b as getAptosFullNode,c as paginateWithCursor};
|
|
2
2
|
//# sourceMappingURL=get.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-N2FKVZ4D.mjs";import{a as d,b as e,c as f}from"../chunk-UFD443TT.mjs";import{a as g,b as h,c as i,d as j}from"../chunk-GE7VQ5NZ.mjs";import{a as b,b as c}from"../chunk-SKF6E6X7.mjs";import{a}from"../chunk-GHYE26Q5.mjs";import"../chunk-
|
|
1
|
+
import"../chunk-N2FKVZ4D.mjs";import{a as d,b as e,c as f}from"../chunk-UFD443TT.mjs";import{a as g,b as h,c as i,d as j}from"../chunk-GE7VQ5NZ.mjs";import{a as b,b as c}from"../chunk-SKF6E6X7.mjs";import{a}from"../chunk-GHYE26Q5.mjs";import"../chunk-HEPV52CH.mjs";import"../chunk-HIUJDWMR.mjs";import"../chunk-NMNR3QST.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{a as AptosApiError,c as aptosRequest,d as get,e as getAptosFullNode,f as paginateWithCursor,g as post,j as postAptosFaucet,h as postAptosFullNode,i as postAptosIndexer,b as request};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/client/post.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-GE7VQ5NZ.mjs";import"../chunk-SKF6E6X7.mjs";import"../chunk-GHYE26Q5.mjs";import"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-GE7VQ5NZ.mjs";import"../chunk-SKF6E6X7.mjs";import"../chunk-GHYE26Q5.mjs";import"../chunk-HEPV52CH.mjs";import"../chunk-HIUJDWMR.mjs";import"../chunk-NMNR3QST.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{a as post,d as postAptosFaucet,b as postAptosFullNode,c as postAptosIndexer};
|
|
2
2
|
//# sourceMappingURL=post.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-E36XGHUE.mjs";import"../../chunk-77CVU2W7.mjs";import"../../chunk-ZOQ3ZG7U.mjs";import"../../chunk-JPNK6EKM.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-QJ2OLGAW.mjs";import"../../chunk-SEAOSYSZ.mjs";import"../../chunk-ETGZG4G7.mjs";import"../../chunk-RNFDAXUZ.mjs";import"../../chunk-NUBFOYQZ.mjs";import"../../chunk-GTCDSGOA.mjs";import"../../chunk-CUWAGKEP.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-RZNFFGTD.mjs";import"../../chunk-JPG25VX2.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-VZJ62XF7.mjs";import"../../chunk-4LUWUDBX.mjs";import"../../chunk-IFVMIUMO.mjs";import"../../chunk-BKWJ4G7T.mjs";import"../../chunk-NMNR3QST.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-W2XLZW4Y.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Account};
|
|
2
2
|
//# sourceMappingURL=Account.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-77CVU2W7.mjs";import"../../chunk-JPNK6EKM.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-QJ2OLGAW.mjs";import"../../chunk-SEAOSYSZ.mjs";import"../../chunk-ETGZG4G7.mjs";import"../../chunk-RNFDAXUZ.mjs";import"../../chunk-NUBFOYQZ.mjs";import"../../chunk-GTCDSGOA.mjs";import"../../chunk-CUWAGKEP.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-RZNFFGTD.mjs";import"../../chunk-JPG25VX2.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-VZJ62XF7.mjs";import"../../chunk-4LUWUDBX.mjs";import"../../chunk-IFVMIUMO.mjs";import"../../chunk-BKWJ4G7T.mjs";import"../../chunk-NMNR3QST.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-W2XLZW4Y.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Ed25519Account};
|
|
2
2
|
//# sourceMappingURL=Ed25519Account.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-ZOQ3ZG7U.mjs";import"../../chunk-JPNK6EKM.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-QJ2OLGAW.mjs";import"../../chunk-SEAOSYSZ.mjs";import"../../chunk-ETGZG4G7.mjs";import"../../chunk-RNFDAXUZ.mjs";import"../../chunk-NUBFOYQZ.mjs";import"../../chunk-GTCDSGOA.mjs";import"../../chunk-CUWAGKEP.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-RZNFFGTD.mjs";import"../../chunk-JPG25VX2.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-VZJ62XF7.mjs";import"../../chunk-4LUWUDBX.mjs";import"../../chunk-IFVMIUMO.mjs";import"../../chunk-BKWJ4G7T.mjs";import"../../chunk-NMNR3QST.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-W2XLZW4Y.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as SingleKeyAccount};
|
|
2
2
|
//# sourceMappingURL=SingleKeyAccount.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-QE4ASJ5K.mjs";import{a as c}from"../../chunk-
|
|
1
|
+
import"../../chunk-QE4ASJ5K.mjs";import{a as c}from"../../chunk-E36XGHUE.mjs";import{a}from"../../chunk-77CVU2W7.mjs";import{a as b}from"../../chunk-ZOQ3ZG7U.mjs";import"../../chunk-JPNK6EKM.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-QJ2OLGAW.mjs";import"../../chunk-SEAOSYSZ.mjs";import"../../chunk-ETGZG4G7.mjs";import"../../chunk-RNFDAXUZ.mjs";import"../../chunk-NUBFOYQZ.mjs";import"../../chunk-GTCDSGOA.mjs";import"../../chunk-CUWAGKEP.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-RZNFFGTD.mjs";import"../../chunk-JPG25VX2.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-VZJ62XF7.mjs";import"../../chunk-4LUWUDBX.mjs";import"../../chunk-IFVMIUMO.mjs";import"../../chunk-BKWJ4G7T.mjs";import"../../chunk-NMNR3QST.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-W2XLZW4Y.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{c as Account,a as Ed25519Account,b as SingleKeyAccount};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../chunk-JPG25VX2.mjs";import"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-JPG25VX2.mjs";import"../chunk-NMNR3QST.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W2XLZW4Y.mjs";import"../chunk-BZMO6Q6L.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{b as AccountAddress,a as AddressInvalidReason};
|
|
2
2
|
//# sourceMappingURL=accountAddress.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-RZNFFGTD.mjs";import"../chunk-JPG25VX2.mjs";import"../chunk-
|
|
1
|
+
import{a}from"../chunk-RZNFFGTD.mjs";import"../chunk-JPG25VX2.mjs";import"../chunk-NMNR3QST.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-W2XLZW4Y.mjs";import"../chunk-BZMO6Q6L.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{a as AuthenticationKey};
|
|
2
2
|
//# sourceMappingURL=authenticationKey.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunk-
|
|
1
|
+
import{a,b,c}from"../../chunk-NUBFOYQZ.mjs";import"../../chunk-GTCDSGOA.mjs";import"../../chunk-CUWAGKEP.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-RZNFFGTD.mjs";import"../../chunk-JPG25VX2.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-VZJ62XF7.mjs";import"../../chunk-4LUWUDBX.mjs";import"../../chunk-IFVMIUMO.mjs";import"../../chunk-BKWJ4G7T.mjs";import"../../chunk-NMNR3QST.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-W2XLZW4Y.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as Ed25519PrivateKey,a as Ed25519PublicKey,c as Ed25519Signature};
|
|
2
2
|
//# sourceMappingURL=ed25519.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../../chunk-UVSRX4SV.mjs";import{a as q,b as r}from"../../chunk-
|
|
1
|
+
import"../../chunk-UVSRX4SV.mjs";import"../../chunk-KUX6GQ2E.mjs";import{a as q,b as r}from"../../chunk-QJ2OLGAW.mjs";import{a as x,b as y}from"../../chunk-SEAOSYSZ.mjs";import{a as v,b as w}from"../../chunk-ETGZG4G7.mjs";import{a as s,b as t,c as u}from"../../chunk-RNFDAXUZ.mjs";import{a as n,b as o,c as p}from"../../chunk-NUBFOYQZ.mjs";import{a as k,b as l}from"../../chunk-GTCDSGOA.mjs";import{a as m}from"../../chunk-CUWAGKEP.mjs";import{a,b,c,d,e,f,g,h,i,j}from"../../chunk-LR65XHSF.mjs";import"../../chunk-RZNFFGTD.mjs";import"../../chunk-JPG25VX2.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-VZJ62XF7.mjs";import"../../chunk-4LUWUDBX.mjs";import"../../chunk-IFVMIUMO.mjs";import"../../chunk-BKWJ4G7T.mjs";import"../../chunk-NMNR3QST.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-W2XLZW4Y.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as APTOS_BIP44_REGEX,a as APTOS_HARDENED_REGEX,l as AccountPublicKey,v as AnyPublicKey,w as AnySignature,h as CKDPriv,o as Ed25519PrivateKey,n as Ed25519PublicKey,p as Ed25519Signature,d as HARDENED_OFFSET,c as KeyType,q as MultiEd25519PublicKey,r as MultiEd25519Signature,x as MultiKey,y as MultiKeySignature,k as PublicKey,t as Secp256k1PrivateKey,s as Secp256k1PublicKey,u as Secp256k1Signature,m as Signature,g as deriveKey,e as isValidBIP44Path,f as isValidHardenedPath,j as mnemonicToSeed,i as splitPath};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-QJ2OLGAW.mjs";import"../../chunk-NUBFOYQZ.mjs";import"../../chunk-GTCDSGOA.mjs";import"../../chunk-CUWAGKEP.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-RZNFFGTD.mjs";import"../../chunk-JPG25VX2.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-VZJ62XF7.mjs";import"../../chunk-4LUWUDBX.mjs";import"../../chunk-IFVMIUMO.mjs";import"../../chunk-BKWJ4G7T.mjs";import"../../chunk-NMNR3QST.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-W2XLZW4Y.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as MultiEd25519PublicKey,b as MultiEd25519Signature};
|
|
2
2
|
//# sourceMappingURL=multiEd25519.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-SEAOSYSZ.mjs";import"../../chunk-ETGZG4G7.mjs";import"../../chunk-RNFDAXUZ.mjs";import"../../chunk-NUBFOYQZ.mjs";import"../../chunk-GTCDSGOA.mjs";import"../../chunk-CUWAGKEP.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-RZNFFGTD.mjs";import"../../chunk-JPG25VX2.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-VZJ62XF7.mjs";import"../../chunk-4LUWUDBX.mjs";import"../../chunk-IFVMIUMO.mjs";import"../../chunk-BKWJ4G7T.mjs";import"../../chunk-NMNR3QST.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-W2XLZW4Y.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as MultiKey,b as MultiKeySignature};
|
|
2
2
|
//# sourceMappingURL=multiKey.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-GTCDSGOA.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-GTCDSGOA.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-VZJ62XF7.mjs";import"../../chunk-4LUWUDBX.mjs";import"../../chunk-IFVMIUMO.mjs";import"../../chunk-BKWJ4G7T.mjs";import"../../chunk-NMNR3QST.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-W2XLZW4Y.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as AccountPublicKey,a as PublicKey};
|
|
2
2
|
//# sourceMappingURL=publicKey.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c}from"../../chunk-
|
|
1
|
+
import{a,b,c}from"../../chunk-RNFDAXUZ.mjs";import"../../chunk-GTCDSGOA.mjs";import"../../chunk-CUWAGKEP.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-VZJ62XF7.mjs";import"../../chunk-4LUWUDBX.mjs";import"../../chunk-IFVMIUMO.mjs";import"../../chunk-BKWJ4G7T.mjs";import"../../chunk-NMNR3QST.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-W2XLZW4Y.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as Secp256k1PrivateKey,a as Secp256k1PublicKey,c as Secp256k1Signature};
|
|
2
2
|
//# sourceMappingURL=secp256k1.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-CUWAGKEP.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-CUWAGKEP.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-VZJ62XF7.mjs";import"../../chunk-4LUWUDBX.mjs";import"../../chunk-IFVMIUMO.mjs";import"../../chunk-BKWJ4G7T.mjs";import"../../chunk-NMNR3QST.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-W2XLZW4Y.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Signature};
|
|
2
2
|
//# sourceMappingURL=signature.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-ETGZG4G7.mjs";import"../../chunk-RNFDAXUZ.mjs";import"../../chunk-NUBFOYQZ.mjs";import"../../chunk-GTCDSGOA.mjs";import"../../chunk-CUWAGKEP.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-RZNFFGTD.mjs";import"../../chunk-JPG25VX2.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-VZJ62XF7.mjs";import"../../chunk-4LUWUDBX.mjs";import"../../chunk-IFVMIUMO.mjs";import"../../chunk-BKWJ4G7T.mjs";import"../../chunk-NMNR3QST.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-W2XLZW4Y.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as AnyPublicKey,b as AnySignature};
|
|
2
2
|
//# sourceMappingURL=singleKey.mjs.map
|
package/dist/esm/core/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-E7FWVXGX.mjs";import"../chunk-QE4ASJ5K.mjs";import{a as H}from"../chunk-
|
|
1
|
+
import"../chunk-E7FWVXGX.mjs";import"../chunk-QE4ASJ5K.mjs";import{a as H}from"../chunk-E36XGHUE.mjs";import{a as F}from"../chunk-77CVU2W7.mjs";import{a as G}from"../chunk-ZOQ3ZG7U.mjs";import"../chunk-JPNK6EKM.mjs";import"../chunk-UVSRX4SV.mjs";import"../chunk-KUX6GQ2E.mjs";import{a as w,b as x}from"../chunk-QJ2OLGAW.mjs";import{a as D,b as E}from"../chunk-SEAOSYSZ.mjs";import{a as B,b as C}from"../chunk-ETGZG4G7.mjs";import{a as y,b as z,c as A}from"../chunk-RNFDAXUZ.mjs";import{a as t,b as u,c as v}from"../chunk-NUBFOYQZ.mjs";import{a as q,b as r}from"../chunk-GTCDSGOA.mjs";import{a as s}from"../chunk-CUWAGKEP.mjs";import{a as g,b as h,c as i,d as j,e as k,f as l,g as m,h as n,i as o,j as p}from"../chunk-LR65XHSF.mjs";import{a as f}from"../chunk-RZNFFGTD.mjs";import{a as d,b as e}from"../chunk-JPG25VX2.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-VZJ62XF7.mjs";import"../chunk-4LUWUDBX.mjs";import"../chunk-IFVMIUMO.mjs";import"../chunk-BKWJ4G7T.mjs";import"../chunk-NMNR3QST.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-W2XLZW4Y.mjs";import{a as b,b as c}from"../chunk-BZMO6Q6L.mjs";import{a}from"../chunk-LG7RJQ57.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{h as APTOS_BIP44_REGEX,g as APTOS_HARDENED_REGEX,H as Account,e as AccountAddress,r as AccountPublicKey,d as AddressInvalidReason,B as AnyPublicKey,C as AnySignature,f as AuthenticationKey,n as CKDPriv,F as Ed25519Account,u as Ed25519PrivateKey,t as Ed25519PublicKey,v as Ed25519Signature,j as HARDENED_OFFSET,c as Hex,b as HexInvalidReason,i as KeyType,w as MultiEd25519PublicKey,x as MultiEd25519Signature,D as MultiKey,E as MultiKeySignature,a as ParsingError,q as PublicKey,z as Secp256k1PrivateKey,y as Secp256k1PublicKey,A as Secp256k1Signature,s as Signature,G as SingleKeyAccount,m as deriveKey,k as isValidBIP44Path,l as isValidHardenedPath,p as mnemonicToSeed,o as splitPath};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/index.d.mts
CHANGED
|
@@ -44,7 +44,7 @@ export { ExecutionFinishEventData, FailureEventData, SuccessEventData, Transacti
|
|
|
44
44
|
export { AccountAuthenticatorVariant, AccountData, AccountSignature, AnyNumber, AnyPublicKeyVariant, AnySignatureVariant, AptosRequest, AptosSettings, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, DecodedTableData, DeletedTableData, DeriveScheme, DirectWriteSet, EntryFunctionPayloadResponse, Event, EventGuid, GasEstimation, GenerateAccount, GenerateAccountWithEd25519, GenerateAccountWithSingleSignerSecp256k1Key, GenesisPayload, GenesisTransactionResponse, HexInput, InputViewRequestData, LedgerInfo, LedgerVersionArg, MimeType, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOptionType, MoveResource, MoveScriptBytecode, MoveStruct, MoveStructField, MoveStructId, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MultisigPayloadResponse, OrderByArg, PaginationArgs, PendingTransactionResponse, RoleType, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, SigningScheme, SigningSchemeInput, StateCheckpointTransactionResponse, TableItemRequest, TokenStandardArg, TransactionAuthenticatorVariant, TransactionEd25519Signature, TransactionFeePayerSignature, TransactionMultiAgentSignature, TransactionMultiEd25519Signature, TransactionPayloadResponse, TransactionPayloadVariants, TransactionResponse, TransactionResponseType, TransactionSecp256k1Signature, TransactionSignature, TransactionVariants, TypeTagVariants, Uint128, Uint16, Uint256, Uint32, Uint64, Uint8, UserTransactionResponse, ValidatorTransactionResponse, ViewRequest, WaitForTransactionOptions, WhereArg, WriteSet, WriteSetChange, WriteSetChangeDeleteModule, WriteSetChangeDeleteResource, WriteSetChangeDeleteTableItem, WriteSetChangeWriteModule, WriteSetChangeWriteResource, WriteSetChangeWriteTableItem, isBlockMetadataTransactionResponse, isEd25519Signature, isFeePayerSignature, isGenesisTransactionResponse, isMultiAgentSignature, isMultiEd25519Signature, isPendingTransactionResponse, isSecp256k1Signature, isStateCheckpointTransactionResponse, isUserTransactionResponse, isValidatorTransactionResponse } from './types/index.mjs';
|
|
45
45
|
export { Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI } from './utils/apiEndpoints.mjs';
|
|
46
46
|
export { APTOS_COIN, AptosApiType, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, ProcessorType, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT } from './utils/const.mjs';
|
|
47
|
-
export { AssetUploader
|
|
47
|
+
export { AssetUploader } from './plugins/assetUploader/index.mjs';
|
|
48
48
|
export { GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard } from './types/indexer.mjs';
|
|
49
49
|
import './api/account.mjs';
|
|
50
50
|
import './types/generated/types.mjs';
|
|
@@ -65,5 +65,6 @@ import './api/transactionSubmission/submit.mjs';
|
|
|
65
65
|
import './api/transactionSubmission/management.mjs';
|
|
66
66
|
import 'eventemitter3';
|
|
67
67
|
import './transactions/management/asyncQueue.mjs';
|
|
68
|
+
import './plugins/assetUploader/types.mjs';
|
|
68
69
|
import '@irys/sdk/build/cjs/common/types';
|
|
69
70
|
import './types/generated/operations.mjs';
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./chunk-I7SI7LL4.mjs";import
|
|
1
|
+
import"./chunk-I7SI7LL4.mjs";import{a as Ie}from"./chunk-YA3YHVPD.mjs";import"./chunk-U6SLSQ5W.mjs";import"./chunk-CYDWEPFL.mjs";import"./chunk-RMMOF53Q.mjs";import{a as He}from"./chunk-XPE3Z7L5.mjs";import"./chunk-YTHL7EKV.mjs";import"./chunk-L4PAU62E.mjs";import"./chunk-TB5WN5G6.mjs";import"./chunk-LWQHVABO.mjs";import"./chunk-5JCZRKJG.mjs";import"./chunk-IHYTP2EW.mjs";import{a as Ee,b as Fe,c as Ge}from"./chunk-DLGGNSKF.mjs";import{a as De}from"./chunk-IUZCNQ7D.mjs";import"./chunk-U6Z4FNB7.mjs";import"./chunk-2MWFPMJU.mjs";import"./chunk-J22AZHQT.mjs";import"./chunk-6EMN3BOV.mjs";import{a as rr}from"./chunk-OBSG3724.mjs";import"./chunk-IQJJRNHK.mjs";import"./chunk-FYVPCKSW.mjs";import"./chunk-BUU7JCLF.mjs";import"./chunk-U4JXJ3UN.mjs";import"./chunk-JOIUR5QW.mjs";import"./chunk-YXUOYXGZ.mjs";import"./chunk-UVTSJ2KP.mjs";import"./chunk-NF35PRGD.mjs";import"./chunk-X2EXY2EO.mjs";import"./chunk-27644ALO.mjs";import"./chunk-WXMHBL7Z.mjs";import"./chunk-BTO7WDIW.mjs";import"./chunk-XSCYT6TT.mjs";import"./chunk-SCYVRDJI.mjs";import"./chunk-XWCVGQKA.mjs";import"./chunk-7N6YF6JO.mjs";import"./chunk-I5OYNCZS.mjs";import"./chunk-R7G3CLRI.mjs";import{a as ne,b as qe,c as se,d as ue,e as ve,f as we,g as ye,h as ze,i as Ae,j as Be,k as Ce}from"./chunk-ZI4IMZR6.mjs";import{a as ie,b as je,c as ke,d as le}from"./chunk-L354LBX4.mjs";import{a as Tr,b as Ur,c as Vr}from"./chunk-RC5K63LK.mjs";import{a as Wr,b as Xr,c as Yr,d as Zr,e as _r,f as $r,g as oe,h as re,i as ee,j as fe,k as me,l as pe,m as te,n as xe,o as ae,p as be,q as ce,r as de,s as ge,t as he}from"./chunk-LIU6DQQJ.mjs";import"./chunk-BSCOVLWS.mjs";import"./chunk-HTZTTZQJ.mjs";import{a as er}from"./chunk-53UNV6UP.mjs";import{a as Sr}from"./chunk-5BPCJWJ3.mjs";import"./chunk-UYVPNUH3.mjs";import{a as fr,b as mr,c as pr,d as tr,e as xr,f as ar}from"./chunk-MUKBXGU3.mjs";import{a as Or,b as Pr,c as Qr,d as Rr}from"./chunk-THHBTHEO.mjs";import{a as Fr,b as Gr,c as Hr,d as Ir,e as Jr,f as Kr,g as Lr,h as Mr,i as Nr}from"./chunk-GSCUF6XW.mjs";import{a as gr,b as hr,c as ir,d as jr,e as kr,f as lr,g as nr,h as qr,i as sr,j as ur,k as vr,l as wr,m as yr,n as zr,o as Ar,p as Br,q as Cr,r as Dr,s as Er}from"./chunk-HWTX3HVX.mjs";import{a as br}from"./chunk-TWHTXYMB.mjs";import{a as dr}from"./chunk-5PIO6MFF.mjs";import{a as cr}from"./chunk-M6TKSJ4I.mjs";import"./chunk-V3MBJJTL.mjs";import{a as Xo,b as Yo,c as Zo,d as _o,e as $o,f as or}from"./chunk-VDQYAGHU.mjs";import"./chunk-ICK2XO6A.mjs";import"./chunk-E7FWVXGX.mjs";import"./chunk-QE4ASJ5K.mjs";import{a as Wo}from"./chunk-E36XGHUE.mjs";import{a as Uo}from"./chunk-77CVU2W7.mjs";import{a as Vo}from"./chunk-ZOQ3ZG7U.mjs";import{a as Po,b as Qo,c as Ro,d as So,e as To}from"./chunk-JPNK6EKM.mjs";import"./chunk-UVSRX4SV.mjs";import"./chunk-KUX6GQ2E.mjs";import{a as Go,b as Ho}from"./chunk-QJ2OLGAW.mjs";import{a as No,b as Oo}from"./chunk-SEAOSYSZ.mjs";import{a as Lo,b as Mo}from"./chunk-ETGZG4G7.mjs";import{a as Io,b as Jo,c as Ko}from"./chunk-RNFDAXUZ.mjs";import{a as Do,b as Eo,c as Fo}from"./chunk-NUBFOYQZ.mjs";import{a as Ao,b as Bo}from"./chunk-GTCDSGOA.mjs";import{a as Co}from"./chunk-CUWAGKEP.mjs";import{a as ko,b as lo,c as no,d as qo,e as so,f as uo,g as vo,h as wo,i as yo,j as zo}from"./chunk-LR65XHSF.mjs";import{a as jo}from"./chunk-RZNFFGTD.mjs";import{a as $,b as oo}from"./chunk-JPG25VX2.mjs";import"./chunk-Q6YMSZLY.mjs";import"./chunk-3JPVQHOR.mjs";import"./chunk-AH44UPM4.mjs";import"./chunk-ITALFUWD.mjs";import"./chunk-S4SEFF4K.mjs";import"./chunk-N2FKVZ4D.mjs";import{a as M,b as N,c as O}from"./chunk-UFD443TT.mjs";import{a as P,b as Q,c as R,d as S}from"./chunk-GE7VQ5NZ.mjs";import{a as C,b as D}from"./chunk-SKF6E6X7.mjs";import{a as o}from"./chunk-GHYE26Q5.mjs";import{a as E,b as F,c as G,d as H,e as I,f as J,g as K,h as L}from"./chunk-HEPV52CH.mjs";import"./chunk-HIUJDWMR.mjs";import"./chunk-FZY4PMEE.mjs";import{a as go,b as ho,c as io}from"./chunk-VZJ62XF7.mjs";import{a as fo}from"./chunk-4LUWUDBX.mjs";import{a as eo}from"./chunk-IFVMIUMO.mjs";import{a as mo,b as po,c as to,d as xo,e as ao,f as bo,g as co}from"./chunk-BKWJ4G7T.mjs";import{A as B,a as r,b as e,c as f,d as m,e as p,f as t,g as x,h as a,i as b,j as c,k as d,l as g,m as h,n as i,o as j,p as k,q as l,r as n,s as q,t as s,u,v,w,x as y,y as z,z as A}from"./chunk-NMNR3QST.mjs";import"./chunk-4WPQQPUF.mjs";import{a as ro}from"./chunk-6IFMQ5AS.mjs";import{a as W,b as X,c as Y,d as Z,e as _}from"./chunk-W2XLZW4Y.mjs";import{a as U,b as V}from"./chunk-BZMO6Q6L.mjs";import{a as T}from"./chunk-LG7RJQ57.mjs";import"./chunk-56CNRT2K.mjs";import"./chunk-FVA2OPG4.mjs";export{lo as APTOS_BIP44_REGEX,I as APTOS_COIN,ko as APTOS_HARDENED_REGEX,Wo as Account,oo as AccountAddress,Po as AccountAuthenticator,Qo as AccountAuthenticatorEd25519,Ro as AccountAuthenticatorMultiEd25519,To as AccountAuthenticatorMultiKey,So as AccountAuthenticatorSingleKey,x as AccountAuthenticatorVariant,Bo as AccountPublicKey,De as AccountSequenceNumber,$ as AddressInvalidReason,Lo as AnyPublicKey,a as AnyPublicKeyVariant,Mo as AnySignature,b as AnySignatureVariant,He as Aptos,o as AptosApiError,E as AptosApiType,rr as AptosConfig,Ie as AssetUploader,jo as AuthenticationKey,mo as Bool,wo as CKDPriv,br as ChainId,F as DEFAULT_MAX_GAS_AMOUNT,G as DEFAULT_TXN_EXP_SEC_FROM_NOW,H as DEFAULT_TXN_TIMEOUT_SEC,B as DeriveScheme,ro as Deserializer,Uo as Ed25519Account,Eo as Ed25519PrivateKey,Do as Ed25519PublicKey,Fo as Ed25519Signature,Kr as EntryFunction,fo as EntryFunctionBytes,Rr as FeePayerRawTransaction,eo as FixedBytes,qo as HARDENED_OFFSET,V as Hex,U as HexInvalidReason,cr as Identifier,no as KeyType,r as MimeType,dr as ModuleId,w as MoveAbility,v as MoveFunctionVisibility,io as MoveOption,ho as MoveString,go as MoveVector,Qr as MultiAgentRawTransaction,Go as MultiEd25519PublicKey,Ho as MultiEd25519Signature,No as MultiKey,Oo as MultiKeySignature,Mr as MultiSig,Nr as MultiSigTransactionPayload,_o as Network,$o as NetworkToChainId,Zo as NetworkToFaucetAPI,Xo as NetworkToIndexerAPI,or as NetworkToNetworkName,Yo as NetworkToNodeAPI,T as ParsingError,L as ProcessorType,Ao as PublicKey,J as RAW_TRANSACTION_SALT,K as RAW_TRANSACTION_WITH_DATA_SALT,Or as RawTransaction,Pr as RawTransactionWithData,y as RoleType,er as RotationProofChallenge,Lr as Script,f as ScriptTransactionArgumentVariants,Jo as Secp256k1PrivateKey,Io as Secp256k1PublicKey,Ko as Secp256k1Signature,W as Serializable,X as Serializer,Co as Signature,Sr as SignedTransaction,z as SigningScheme,A as SigningSchemeInput,Vo as SingleKeyAccount,Ar as StructTag,fr as TransactionAuthenticator,mr as TransactionAuthenticatorEd25519,xr as TransactionAuthenticatorFeePayer,tr as TransactionAuthenticatorMultiAgent,pr as TransactionAuthenticatorMultiEd25519,ar as TransactionAuthenticatorSingleSender,t as TransactionAuthenticatorVariant,Gr as TransactionPayload,Ir as TransactionPayloadEntryFunction,Jr as TransactionPayloadMultiSig,Hr as TransactionPayloadScript,m as TransactionPayloadVariants,c as TransactionResponseType,p as TransactionVariants,Ge as TransactionWorker,Fe as TransactionWorkerEventsEnum,gr as TypeTag,sr as TypeTagAddress,hr as TypeTagBool,wr as TypeTagGeneric,Ur as TypeTagParserError,Tr as TypeTagParserErrorType,vr as TypeTagReference,ur as TypeTagSigner,zr as TypeTagStruct,nr as TypeTagU128,jr as TypeTagU16,qr as TypeTagU256,kr as TypeTagU32,lr as TypeTagU64,ir as TypeTagU8,e as TypeTagVariants,yr as TypeTagVector,bo as U128,to as U16,co as U256,xo as U32,ao as U64,po as U8,Br as aptosCoinStructTag,D as aptosRequest,ue as buildTransaction,le as checkOrConvertArgument,ke as convertArgument,vo as deriveKey,Ae as deriveTransactionType,Fr as deserializeFromScriptArgument,Y as ensureBoolean,je as fetchEntryFunctionAbi,ge as findFirstNonSignerArg,Be as generateMultiSignersSignedTransaction,se as generateRawTransaction,ze as generateSignedTransaction,ve as generateSignedTransactionForSimulation,Ce as generateSigningMessage,ne as generateTransactionPayload,qe as generateTransactionPayloadWithABI,M as get,N as getAptosFullNode,we as getAuthenticatorForSimulation,he as getFunctionParts,re as isBcsAddress,oe as isBcsBool,fe as isBcsFixedBytes,ee as isBcsString,ae as isBcsU128,pe as isBcsU16,be as isBcsU256,te as isBcsU32,xe as isBcsU64,me as isBcsU8,i as isBlockMetadataTransactionResponse,Wr as isBool,l as isEd25519Signature,$r as isEncodedEntryFunctionArgument,s as isFeePayerSignature,h as isGenesisTransactionResponse,Zr as isLargeNumber,q as isMultiAgentSignature,u as isMultiEd25519Signature,_r as isNull,Yr as isNumber,d as isPendingTransactionResponse,ce as isScriptDataInput,n as isSecp256k1Signature,j as isStateCheckpointTransactionResponse,Xr as isString,g as isUserTransactionResponse,so as isValidBIP44Path,uo as isValidHardenedPath,k as isValidatorTransactionResponse,zo as mnemonicToSeed,Er as objectStructTag,Dr as optionStructTag,Z as outOfRangeErrorMessage,O as paginateWithCursor,Vr as parseTypeTag,P as post,S as postAptosFaucet,Q as postAptosFullNode,R as postAptosIndexer,Ee as promiseFulfilledStatus,C as request,ye as sign,yo as splitPath,ie as standardizeTypeTags,Cr as stringStructTag,de as throwTypeMismatch,_ as validateNumberInRange};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -8,7 +8,6 @@ import { CurrentFungibleAssetBalancesBoolExp } from '../types/generated/types.mj
|
|
|
8
8
|
import { GetAccountOwnedTokensQueryResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountCoinsDataResponse, GetAccountOwnedObjectsResponse } from '../types/indexer.mjs';
|
|
9
9
|
import '../utils/apiEndpoints.mjs';
|
|
10
10
|
import '../utils/const.mjs';
|
|
11
|
-
import '../types/generated/operations.mjs';
|
|
12
11
|
import '../bcs/serializer.mjs';
|
|
13
12
|
import '../core/hex.mjs';
|
|
14
13
|
import '../core/common.mjs';
|
|
@@ -20,6 +19,7 @@ import '../core/crypto/ed25519.mjs';
|
|
|
20
19
|
import '../core/crypto/multiEd25519.mjs';
|
|
21
20
|
import '../core/crypto/multiKey.mjs';
|
|
22
21
|
import '../core/crypto/singleKey.mjs';
|
|
22
|
+
import '../types/generated/operations.mjs';
|
|
23
23
|
|
|
24
24
|
/**
|
|
25
25
|
* This file contains the underlying implementations for exposed API surface in
|