@aptos-labs/ts-sdk 1.28.0-zeta.5 → 1.28.0-zeta.6
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.js +23 -23
- package/dist/common/index.js.map +1 -1
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccountCommon.mjs +1 -1
- package/dist/esm/account/MultiKeyAccount.mjs +1 -1
- package/dist/esm/account/SingleKeyAccount.mjs +1 -1
- package/dist/esm/account/index.mjs +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/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/{chunk-LICJI4D2.mjs → chunk-37FIIBIN.mjs} +2 -2
- package/dist/esm/{chunk-TV62D5OU.mjs → chunk-3EAKJRWQ.mjs} +2 -2
- package/dist/esm/{chunk-WM2GFECU.mjs → chunk-3JVYQ4Q4.mjs} +2 -2
- package/dist/esm/{chunk-ZSHSL3US.mjs → chunk-C3EFD3E4.mjs} +2 -2
- package/dist/esm/{chunk-BJJBW6WH.mjs → chunk-DSNKW4Y4.mjs} +2 -2
- package/dist/esm/{chunk-O3SVNTWW.mjs → chunk-DUEJM5U3.mjs} +2 -2
- package/dist/esm/{chunk-CFTY4P5C.mjs → chunk-EBLBUJDH.mjs} +2 -2
- package/dist/esm/{chunk-34RQZPSM.mjs → chunk-GQ755AGC.mjs} +2 -2
- package/dist/esm/chunk-ILTQISCY.mjs +2 -0
- package/dist/esm/chunk-ILTQISCY.mjs.map +1 -0
- package/dist/esm/{chunk-V6ZSRYXI.mjs → chunk-K5X5QPCY.mjs} +2 -2
- package/dist/esm/{chunk-TC3CMU7D.mjs → chunk-N4YBJL4Q.mjs} +2 -2
- package/dist/esm/{chunk-I3ZR4HXK.mjs → chunk-OKXCJKIJ.mjs} +2 -2
- package/dist/esm/{chunk-6B65YWGD.mjs → chunk-PUFI54FB.mjs} +2 -2
- package/dist/esm/{chunk-Q5BCQFS2.mjs → chunk-QAB3YOEA.mjs} +2 -2
- package/dist/esm/{chunk-AERLYJPT.mjs → chunk-QI3GT3PC.mjs} +2 -2
- package/dist/esm/{chunk-HUDDA4FG.mjs → chunk-RJ2H6LNN.mjs} +2 -2
- package/dist/esm/{chunk-7V6TRMEJ.mjs → chunk-TJ5DAW2T.mjs} +2 -2
- package/dist/esm/{chunk-4WAH2Y5E.mjs → chunk-U5TSZRK7.mjs} +2 -2
- package/dist/esm/{chunk-HK3FJVVM.mjs → chunk-VUS2FTNI.mjs} +2 -2
- package/dist/esm/{chunk-MVTR6HU6.mjs → chunk-WP757NYZ.mjs} +2 -2
- package/dist/esm/{chunk-Z25D7JG2.mjs → chunk-XJ2W4L5F.mjs} +2 -2
- package/dist/esm/{chunk-DJVPIZ2I.mjs → chunk-XLXMGNVW.mjs} +2 -2
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/ans.mjs +1 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/view.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/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/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/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/package.json +1 -1
- package/src/internal/keyless.ts +3 -2
- package/dist/esm/chunk-74EWOTWQ.mjs +0 -2
- package/dist/esm/chunk-74EWOTWQ.mjs.map +0 -1
- /package/dist/esm/{chunk-LICJI4D2.mjs.map → chunk-37FIIBIN.mjs.map} +0 -0
- /package/dist/esm/{chunk-TV62D5OU.mjs.map → chunk-3EAKJRWQ.mjs.map} +0 -0
- /package/dist/esm/{chunk-WM2GFECU.mjs.map → chunk-3JVYQ4Q4.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZSHSL3US.mjs.map → chunk-C3EFD3E4.mjs.map} +0 -0
- /package/dist/esm/{chunk-BJJBW6WH.mjs.map → chunk-DSNKW4Y4.mjs.map} +0 -0
- /package/dist/esm/{chunk-O3SVNTWW.mjs.map → chunk-DUEJM5U3.mjs.map} +0 -0
- /package/dist/esm/{chunk-CFTY4P5C.mjs.map → chunk-EBLBUJDH.mjs.map} +0 -0
- /package/dist/esm/{chunk-34RQZPSM.mjs.map → chunk-GQ755AGC.mjs.map} +0 -0
- /package/dist/esm/{chunk-V6ZSRYXI.mjs.map → chunk-K5X5QPCY.mjs.map} +0 -0
- /package/dist/esm/{chunk-TC3CMU7D.mjs.map → chunk-N4YBJL4Q.mjs.map} +0 -0
- /package/dist/esm/{chunk-I3ZR4HXK.mjs.map → chunk-OKXCJKIJ.mjs.map} +0 -0
- /package/dist/esm/{chunk-6B65YWGD.mjs.map → chunk-PUFI54FB.mjs.map} +0 -0
- /package/dist/esm/{chunk-Q5BCQFS2.mjs.map → chunk-QAB3YOEA.mjs.map} +0 -0
- /package/dist/esm/{chunk-AERLYJPT.mjs.map → chunk-QI3GT3PC.mjs.map} +0 -0
- /package/dist/esm/{chunk-HUDDA4FG.mjs.map → chunk-RJ2H6LNN.mjs.map} +0 -0
- /package/dist/esm/{chunk-7V6TRMEJ.mjs.map → chunk-TJ5DAW2T.mjs.map} +0 -0
- /package/dist/esm/{chunk-4WAH2Y5E.mjs.map → chunk-U5TSZRK7.mjs.map} +0 -0
- /package/dist/esm/{chunk-HK3FJVVM.mjs.map → chunk-VUS2FTNI.mjs.map} +0 -0
- /package/dist/esm/{chunk-MVTR6HU6.mjs.map → chunk-WP757NYZ.mjs.map} +0 -0
- /package/dist/esm/{chunk-Z25D7JG2.mjs.map → chunk-XJ2W4L5F.mjs.map} +0 -0
- /package/dist/esm/{chunk-DJVPIZ2I.mjs.map → chunk-XLXMGNVW.mjs.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as g}from"./chunk-PUFI54FB.mjs";import{a as m}from"./chunk-37FIIBIN.mjs";import{c as A}from"./chunk-J45FMNYT.mjs";import{s as f}from"./chunk-VHNX2NUR.mjs";import{b as w}from"./chunk-EDVGFSB5.mjs";var T=["A name must be between 3 and 63 characters long,","and can only contain lowercase a-z, 0-9, and hyphens.","A name may not start or end with a hyphen."].join(" ");function D(e){return!(!e||e.length<3||e.length>63||!/^[a-z\d][a-z\d-]{1,61}[a-z\d]$/.test(e))}function c(e){let[t,n,...o]=e.replace(/\.apt$/,"").split(".");if(o.length>0)throw new Error(`${e} is invalid. A name can only have two parts, a domain and a subdomain separated by a "."`);if(!D(t))throw new Error(`${t} is not valid. ${T}`);if(n&&!D(n))throw new Error(`${n} is not valid. ${T}`);return{domainName:n||t,subdomainName:n?t:void 0}}var I=(n=>(n[n.Independent=0]="Independent",n[n.FollowsDomain=1]="FollowsDomain",n))(I||{});function E(e){if(!e)return!1;let t=new Date(e.domain_expiration_timestamp).getTime()<Date.now(),n=new Date(e.expiration_timestamp).getTime()<Date.now();return e.subdomain&&t?!1:e.subdomain&&e.subdomain_expiration_policy===1?!0:!n}var j="0x37368b46ce665362562c6d1d4ec01a08c8644c488690df5a17e13ba163e20221",O="0x585fc9f0f0c54183b039ffc770ca282ebd87307916c215a3e692f2f8e4305e82",v={testnet:"0x5f8fd2347449685cf41d4db97926ec3a096eaf381332be4f1318ad4d16a8497c",mainnet:"0x867ed1f6bf916171b1de3ee92849b8978b7d1b9e0a8cc982a3d19d535dfd9c0c",local:O,custom:null,devnet:null};function d(e){let t=v[e.network];if(!t)throw new Error(`The ANS contract is not deployed to ${e.network}`);return t}var b=e=>{if(e&&typeof e=="object"&&"vec"in e&&Array.isArray(e.vec))return e.vec[0]};async function F(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n),i=await g({aptosConfig:t,payload:{function:`${o}::router::get_owner_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function Y(e){let{aptosConfig:t,expiration:n,name:o,sender:r,targetAddress:s,toAddress:i,options:a,transferable:u}=e,p=d(t),{domainName:y,subdomainName:N}=c(o),x=n.policy==="subdomain:independent"||n.policy==="subdomain:follow-domain";if(N&&!x)throw new Error("Subdomains must have an expiration policy of either 'subdomain:independent' or 'subdomain:follow-domain'");if(x&&!N)throw new Error(`Policy is set to ${n.policy} but no subdomain was provided`);if(n.policy==="domain"){let h=n.years??1;if(h!==1)throw new Error("For now, names can only be registered for 1 year at a time");let G=h*31536e3;return await m({aptosConfig:t,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_domain`,functionArguments:[y,G,s,i]},options:a})}if(!N)throw new Error(`${n.policy} requires a subdomain to be provided.`);let _=await P({aptosConfig:t,name:y});if(!_)throw new Error("The domain does not exist");let S=n.policy==="subdomain:independent"?n.expirationDate:_;if(S>_)throw new Error("The subdomain expiration time cannot be greater than the domain expiration time");return await m({aptosConfig:t,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_subdomain`,functionArguments:[y,N,Math.round(S/1e3),n.policy==="subdomain:follow-domain"?1:0,!!u,s,i]},options:a})}async function P(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n);try{let i=await g({aptosConfig:t,payload:{function:`${o}::router::get_expiration`,functionArguments:[r,s]}});return Number(i[0])*1e3}catch{return}}async function K(e){let{aptosConfig:t,address:n}=e,o=d(t),r=await g({aptosConfig:t,payload:{function:`${o}::router::get_primary_name`,functionArguments:[w.from(n).toString()]}}),s=b(r[1]),i=b(r[0]);if(s)return[i,s].filter(Boolean).join(".")}async function W(e){let{aptosConfig:t,sender:n,name:o,options:r}=e,s=d(t);if(!o)return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${s}::router::clear_primary_name`,functionArguments:[]},options:r});let{domainName:i,subdomainName:a}=c(o);return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${s}::router::set_primary_name`,functionArguments:[i,a]},options:r})}async function H(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n),i=await g({aptosConfig:t,payload:{function:`${o}::router::get_target_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function J(e){let{aptosConfig:t,sender:n,name:o,address:r,options:s}=e,i=d(t),{domainName:a,subdomainName:u}=c(o);return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${i}::router::set_target_addr`,functionArguments:[a,u,r]},options:s})}async function X(e){let{aptosConfig:t,name:n}=e,{domainName:o,subdomainName:r=""}=c(n),a=(await A({aptosConfig:t,query:{query:f,variables:{where_condition:{domain:{_eq:o},subdomain:{_eq:r}},limit:1}},originMethod:"getName"})).current_aptos_names[0];return a&&(a=l(a)),E(a)?a:void 0}async function Z(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountNames",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r}}}}})).current_aptos_names.map(l)}async function ee(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountDomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_eq:""}}}}})).current_aptos_names.map(l)}async function ne(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountSubdomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_neq:""}}}}})).current_aptos_names.map(l)}async function te(e){let{aptosConfig:t,options:n,domain:o}=e;return(await A({aptosConfig:t,originMethod:"getDomainSubdomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},domain:{_eq:o},subdomain:{_neq:""}}}}})).current_aptos_names.map(l).filter(E)}async function C(e){let{aptosConfig:t}=e,n=d(t),[o]=await g({aptosConfig:t,payload:{function:`${n}::config::reregistration_grace_sec`,functionArguments:[]}}),r=o/60/60/24,s=()=>new Date;return new Date(s().setDate(s().getDate()-r)).toISOString()}async function oe(e){let{aptosConfig:t,sender:n,name:o,years:r=1,options:s}=e,i=d(t),a=r*31536e3,{domainName:u,subdomainName:p}=c(o);if(p)throw new Error("Subdomains cannot be renewed");if(r!==1)throw new Error("Currently, only 1 year renewals are supported");return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${i}::router::renew_domain`,functionArguments:[u,a]},options:s})}function l(e){return{...e,expiration_timestamp:new Date(e.expiration_timestamp).getTime()}}export{T as a,D as b,c,I as d,E as e,j as f,O as g,F as h,Y as i,P as j,K as k,W as l,H as m,J as n,X as o,Z as p,ee as q,ne as r,te as s,oe as t};
|
|
2
|
+
//# sourceMappingURL=chunk-C3EFD3E4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i}from"./chunk-6EMN3BOV.mjs";import{g as a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i}from"./chunk-6EMN3BOV.mjs";import{g as a}from"./chunk-37FIIBIN.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var n=class{constructor(t){this.config=t}async simple(t){return a({aptosConfig:this.config,...t})}async multiAgent(t){return a({aptosConfig:this.config,...t})}};o([i],n.prototype,"simple",1),o([i],n.prototype,"multiAgent",1);export{n as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DSNKW4Y4.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as n}from"./chunk-RLGIYYI7.mjs";import{a as I}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as n}from"./chunk-RLGIYYI7.mjs";import{a as I}from"./chunk-PUFI54FB.mjs";import{a as A,b as a,c as g,d as m,e as p,f,g as y,h as C,i as T,j as O,k as l,l as P,m as R,n as V,o as L,p as h,q as S}from"./chunk-K7ZPRL7C.mjs";import{g as u,h as d}from"./chunk-UAL27G6B.mjs";import{e as i,f as c}from"./chunk-EXP5STXZ.mjs";var w=class{constructor(e){this.config=e}async getAccountInfo(e){return A({aptosConfig:this.config,...e})}async getAccountModules(e){return a({aptosConfig:this.config,...e})}async getAccountModule(e){return g({aptosConfig:this.config,...e})}async getAccountTransactions(e){return m({aptosConfig:this.config,...e})}async getAccountResources(e){return p({aptosConfig:this.config,...e})}async getAccountResource(e){return f({aptosConfig:this.config,...e})}async lookupOriginalAccountAddress(e){return y({aptosConfig:this.config,...e})}async getAccountTokensCount(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"account_transactions_processor"}),C({aptosConfig:this.config,...e})}async getAccountOwnedTokens(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"token_v2_processor"}),T({aptosConfig:this.config,...e})}async getAccountOwnedTokensFromCollectionAddress(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"token_v2_processor"}),O({aptosConfig:this.config,...e})}async getAccountCollectionsWithOwnedTokens(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"token_v2_processor"}),l({aptosConfig:this.config,...e})}async getAccountTransactionsCount(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"account_transactions_processor"}),P({aptosConfig:this.config,...e})}async getAccountCoinsData(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"fungible_asset_processor"}),V({aptosConfig:this.config,...e})}async getAccountCoinsCount(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"fungible_asset_processor"}),L({aptosConfig:this.config,...e})}async getAccountAPTAmount(e){return this.getAccountCoinAmount({coinType:i,faMetadataAddress:c,...e})}async getAccountCoinAmount(e){let{coinType:t,faMetadataAddress:s}=e;await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"fungible_asset_processor"});let r=t;if(t===void 0&&s!==void 0)try{let o=(await I({aptosConfig:this.config,payload:{function:"0x1::coin::paired_coin",functionArguments:[s]}})).at(0);o.vec.length>0&&d(o.vec[0])&&(r=u(o.vec[0]))}catch{}return R({aptosConfig:this.config,...e,coinType:r})}async getAccountOwnedObjects(e){return await n({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"default_processor"}),h({aptosConfig:this.config,...e})}async deriveAccountFromPrivateKey(e){return S({aptosConfig:this.config,...e})}};export{w as a};
|
|
2
|
+
//# sourceMappingURL=chunk-DUEJM5U3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t,b as n,c as o,d as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t,b as n,c as o,d as r}from"./chunk-K5X5QPCY.mjs";import{a as s}from"./chunk-RLGIYYI7.mjs";import{b as i}from"./chunk-EDVGFSB5.mjs";var a=class{constructor(e){this.config=e}async getFungibleAssetMetadata(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),t({aptosConfig:this.config,...e})}async getFungibleAssetMetadataByAssetType(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),(await t({aptosConfig:this.config,options:{where:{asset_type:{_eq:e.assetType}}}}))[0]}async getFungibleAssetMetadataByCreatorAddress(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),await t({aptosConfig:this.config,options:{where:{creator_address:{_eq:i.from(e.creatorAddress).toStringLong()}}}})}async getFungibleAssetActivities(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),n({aptosConfig:this.config,...e})}async getCurrentFungibleAssetBalances(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),o({aptosConfig:this.config,...e})}async transferFungibleAsset(e){return r({aptosConfig:this.config,...e})}};export{a};
|
|
2
|
+
//# sourceMappingURL=chunk-EBLBUJDH.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l}from"./chunk-YSVXROOO.mjs";import{a as o,b as c}from"./chunk-U6Z4FNB7.mjs";import{a as h,h as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l}from"./chunk-YSVXROOO.mjs";import{a as o,b as c}from"./chunk-U6Z4FNB7.mjs";import{a as h,h as d}from"./chunk-37FIIBIN.mjs";import{g as u}from"./chunk-G6HZPSZ3.mjs";import g from"eventemitter3";var m="fulfilled",f=(n=>(n.TransactionSent="transactionSent",n.TransactionSendFailed="transactionSendFailed",n.TransactionExecuted="transactionExecuted",n.TransactionExecutionFailed="transactionExecutionFailed",n.ExecutionFinish="executionFinish",n))(f||{}),p=class extends g{constructor(t,e,a=30,n=100,i=10){super();this.taskQueue=new o;this.transactionsQueue=new o;this.outstandingTransactions=new o;this.sentTransactions=[];this.executedTransactions=[];this.aptosConfig=t,this.account=e,this.started=!1,this.accountSequnceNumber=new l(t,e,a,n,i)}async submitNextTransaction(){try{for(;;){let t=await this.accountSequnceNumber.nextSequenceNumber();if(t===null)return;let e=await this.generateNextTransaction(this.account,t);if(!e)return;let a=d({aptosConfig:this.aptosConfig,transaction:e,signer:this.account});await this.outstandingTransactions.enqueue([a,t])}}catch(t){if(t instanceof c)return;throw new Error(`Submit transaction failed for ${this.account.accountAddress.toString()} with error ${t}`)}}async processTransactions(){try{for(;;){let t=[],e=[],[a,n]=await this.outstandingTransactions.dequeue();for(t.push(a),e.push(n);!this.outstandingTransactions.isEmpty();)[a,n]=await this.outstandingTransactions.dequeue(),t.push(a),e.push(n);let i=await Promise.allSettled(t);for(let s=0;s<i.length&&s<e.length;s+=1){let r=i[s];n=e[s],r.status===m?(this.sentTransactions.push([r.value.hash,n,null]),this.emit("transactionSent",{message:`transaction hash ${r.value.hash} has been committed to chain`,transactionHash:r.value.hash}),await this.checkTransaction(r,n)):(this.sentTransactions.push([r.status,n,r.reason]),this.emit("transactionSendFailed",{message:`failed to commit transaction ${this.sentTransactions.length} with error ${r.reason}`,error:r.reason}))}this.emit("executionFinish",{message:`execute ${i.length} transactions finished`})}}catch(t){if(t instanceof c)return;throw new Error(`Process execution failed for ${this.account.accountAddress.toString()} with error ${t}`)}}async checkTransaction(t,e){try{let a=[];a.push(u({aptosConfig:this.aptosConfig,transactionHash:t.value.hash}));let n=await Promise.allSettled(a);for(let i=0;i<n.length;i+=1){let s=n[i];s.status===m?(this.executedTransactions.push([s.value.hash,e,null]),this.emit("transactionExecuted",{message:`transaction hash ${s.value.hash} has been executed on chain`,transactionHash:t.value.hash})):(this.executedTransactions.push([s.status,e,s.reason]),this.emit("transactionExecutionFailed",{message:`failed to execute transaction ${this.executedTransactions.length} with error ${s.reason}`,error:s.reason}))}}catch(a){throw new Error(`Check transaction failed for ${this.account.accountAddress.toString()} with error ${a}`)}}async push(t,e){this.transactionsQueue.enqueue([t,e])}async generateNextTransaction(t,e){if(this.transactionsQueue.isEmpty())return;let[a,n]=await this.transactionsQueue.dequeue();return h({aptosConfig:this.aptosConfig,sender:t.accountAddress,data:a,options:{...n,accountSequenceNumber:e}})}async run(){try{for(;!this.taskQueue.isCancelled();)await(await this.taskQueue.dequeue())()}catch(t){throw new Error(`Unable to start transaction batching: ${t}`)}}start(){if(this.started)throw new Error("worker has already started");this.started=!0,this.taskQueue.enqueue(()=>this.submitNextTransaction()),this.taskQueue.enqueue(()=>this.processTransactions()),this.run()}stop(){if(this.taskQueue.isCancelled())throw new Error("worker has already stopped");this.started=!1,this.taskQueue.cancel()}};export{m as a,f as b,p as c};
|
|
2
|
+
//# sourceMappingURL=chunk-GQ755AGC.mjs.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as S}from"./chunk-37FIIBIN.mjs";import{g}from"./chunk-K7ZPRL7C.mjs";import{a as b}from"./chunk-PEYLPXU6.mjs";import{a as f}from"./chunk-PBMXWRZG.mjs";import{a as x}from"./chunk-ZAHUEAGT.mjs";import{i as K,l as w,m as k,n as A}from"./chunk-DYMN66K5.mjs";import{b as m}from"./chunk-4I6IUAHQ.mjs";import{e as P,f as h}from"./chunk-FTBXTZM2.mjs";import{a as u}from"./chunk-YELQZVBK.mjs";import{b as c}from"./chunk-AOCNYMMX.mjs";async function C(r){let{aptosConfig:i,jwt:p,ephemeralKeyPair:e,uidKey:s="sub",derivationPath:n}=r,t={jwt_b64:p,epk:e.getPublicKey().bcsToHex().toStringWithoutPrefix(),exp_date_secs:e.expiryDateSecs,epk_blinder:c.fromHexInput(e.blinder).toStringWithoutPrefix(),uid_key:s,derivation_path:n},{data:o}=await P({aptosConfig:i,path:"fetch",body:t,originMethod:"getPepper",overrides:{WITH_CREDENTIALS:!1}});return c.fromHexInput(o.pepper).toUint8Array()}async function j(r){let{aptosConfig:i,jwt:p,ephemeralKeyPair:e,pepper:s=await C(r),uidKey:n="sub"}=r;if(c.fromHexInput(s).toUint8Array().length!==f.PEPPER_LENGTH)throw new Error(`Pepper needs to be ${f.PEPPER_LENGTH} bytes`);let t=999999999999,o={jwt_b64:p,epk:e.getPublicKey().bcsToHex().toStringWithoutPrefix(),epk_blinder:c.fromHexInput(e.blinder).toStringWithoutPrefix(),exp_date_secs:e.expiryDateSecs,exp_horizon_secs:t,pepper:c.fromHexInput(s).toStringWithoutPrefix(),uid_key:n,use_insecure_test_jwk:!0};console.log(JSON.stringify(o));let{data:a}=await h({aptosConfig:i,path:"prove",body:o,originMethod:"getProof",overrides:{WITH_CREDENTIALS:!1}});console.log(JSON.stringify(a));let d=a.proof,l=new w({a:d.a,b:d.b,c:d.c});return new A({proof:new k(l,0),trainingWheelsSignature:m.fromHex(a.training_wheels_signature),expHorizonSecs:t})}async function G(r){let{aptosConfig:i,jwt:p,jwkAddress:e,uidKey:s,proofFetchCallback:n,pepper:t=await C(r)}=r,o=j({...r,pepper:t}),a=n?o:await o;if(e!==void 0){let y=x.fromJwtAndPepper({jwt:p,pepper:t,jwkAddress:e,uidKey:s}),_=await g({aptosConfig:i,authenticationKey:y.authKey().derivedAddress()});return b.create({...r,address:_,proof:a,pepper:t,proofFetchCallback:n,jwkAddress:e})}let d=K.fromJwtAndPepper({jwt:p,pepper:t,uidKey:s}),l=await g({aptosConfig:i,authenticationKey:d.authKey().derivedAddress()});return f.create({...r,address:l,proof:a,pepper:t,proofFetchCallback:n})}async function L(r){let{aptosConfig:i,sender:p,iss:e}=r,s=r.jwksUrl??(e.endsWith("/")?`${e}.well-known/jwks.json`:`${e}/.well-known/jwks.json`),n=await fetch(s);if(!n.ok)throw new Error(`Failed to fetch JWKS: ${n.status} ${n.statusText}`);let t=await n.json();return S({aptosConfig:i,sender:p.accountAddress,data:{function:"0x1::jwks::update_federated_jwk_set",functionArguments:[e,u.MoveString(t.keys.map(o=>o.kid)),u.MoveString(t.keys.map(o=>o.alg)),u.MoveString(t.keys.map(o=>o.e)),u.MoveString(t.keys.map(o=>o.n))]}})}export{C as a,j as b,G as c,L as d};
|
|
2
|
+
//# sourceMappingURL=chunk-ILTQISCY.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/internal/keyless.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * This file contains the underlying implementations for exposed API surface in\n * the {@link api/keyless}. By moving the methods out into a separate file,\n * other namespaces and processes can access these methods without depending on the entire\n * keyless namespace and without having a dependency cycle error.\n */\nimport { jwtDecode, JwtPayload } from \"jwt-decode\";\nimport { AptosConfig } from \"../api/aptosConfig\";\nimport { postAptosPepperService, postAptosProvingService } from \"../client\";\nimport {\n AccountAddressInput,\n EphemeralSignature,\n Groth16Zkp,\n Hex,\n KeylessPublicKey,\n ZeroKnowledgeSig,\n ZkProof,\n getKeylessConfig,\n} from \"../core\";\nimport { HexInput, ZkpVariant } from \"../types\";\nimport { Account, EphemeralKeyPair, KeylessAccount, ProofFetchCallback } from \"../account\";\nimport { PepperFetchRequest, PepperFetchResponse, ProverRequest, ProverResponse } from \"../types/keyless\";\nimport { lookupOriginalAccountAddress } from \"./account\";\nimport { FederatedKeylessPublicKey } from \"../core/crypto/federatedKeyless\";\nimport { FederatedKeylessAccount } from \"../account/FederatedKeylessAccount\";\nimport { MoveVector } from \"../bcs\";\nimport { generateTransaction } from \"./transactionSubmission\";\nimport { SimpleTransaction } from \"../transactions\";\n\nexport async function getPepper(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n uidKey?: string;\n derivationPath?: string;\n}): Promise<Uint8Array> {\n const { aptosConfig, jwt, ephemeralKeyPair, uidKey = \"sub\", derivationPath } = args;\n\n const body = {\n jwt_b64: jwt,\n epk: ephemeralKeyPair.getPublicKey().bcsToHex().toStringWithoutPrefix(),\n exp_date_secs: ephemeralKeyPair.expiryDateSecs,\n epk_blinder: Hex.fromHexInput(ephemeralKeyPair.blinder).toStringWithoutPrefix(),\n uid_key: uidKey,\n derivation_path: derivationPath,\n };\n const { data } = await postAptosPepperService<PepperFetchRequest, PepperFetchResponse>({\n aptosConfig,\n path: \"fetch\",\n body,\n originMethod: \"getPepper\",\n overrides: { WITH_CREDENTIALS: false },\n });\n return Hex.fromHexInput(data.pepper).toUint8Array();\n}\n\nexport async function getProof(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n pepper?: HexInput;\n uidKey?: string;\n}): Promise<ZeroKnowledgeSig> {\n const { aptosConfig, jwt, ephemeralKeyPair, pepper = await getPepper(args), uidKey = \"sub\" } = args;\n if (Hex.fromHexInput(pepper).toUint8Array().length !== KeylessAccount.PEPPER_LENGTH) {\n throw new Error(`Pepper needs to be ${KeylessAccount.PEPPER_LENGTH} bytes`);\n }\n // const { maxExpHorizonSecs } = await getKeylessConfig({ aptosConfig });\n const maxExpHorizonSecs = 999_999_999_999;\n // if (maxExpHorizonSecs < ephemeralKeyPair.expiryDateSecs - jwtDecode<JwtPayload>(jwt).iat!) {\n // throw Error(`The EphemeralKeyPair is too long lived. It's lifespan must be less than ${maxExpHorizonSecs}`);\n // }\n const json = {\n jwt_b64: jwt,\n epk: ephemeralKeyPair.getPublicKey().bcsToHex().toStringWithoutPrefix(),\n epk_blinder: Hex.fromHexInput(ephemeralKeyPair.blinder).toStringWithoutPrefix(),\n exp_date_secs: ephemeralKeyPair.expiryDateSecs,\n exp_horizon_secs: maxExpHorizonSecs,\n pepper: Hex.fromHexInput(pepper).toStringWithoutPrefix(),\n uid_key: uidKey,\n use_insecure_test_jwk: true,\n };\n\n console.log(JSON.stringify(json))\n\n const { data } = await postAptosProvingService<ProverRequest, ProverResponse>({\n aptosConfig,\n path: \"prove\",\n body: json,\n originMethod: \"getProof\",\n overrides: { WITH_CREDENTIALS: false },\n });\n\n console.log(JSON.stringify(data))\n\n const proofPoints = data.proof;\n const groth16Zkp = new Groth16Zkp({\n a: proofPoints.a,\n b: proofPoints.b,\n c: proofPoints.c,\n });\n\n const signedProof = new ZeroKnowledgeSig({\n proof: new ZkProof(groth16Zkp, ZkpVariant.Groth16),\n trainingWheelsSignature: EphemeralSignature.fromHex(data.training_wheels_signature),\n expHorizonSecs: maxExpHorizonSecs,\n });\n return signedProof;\n}\n\nexport async function deriveKeylessAccount(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n uidKey?: string;\n pepper?: HexInput;\n proofFetchCallback?: ProofFetchCallback;\n}): Promise<KeylessAccount>;\n\nexport async function deriveKeylessAccount(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n jwkAddress: AccountAddressInput;\n uidKey?: string;\n pepper?: HexInput;\n proofFetchCallback?: ProofFetchCallback;\n}): Promise<FederatedKeylessAccount>;\n\nexport async function deriveKeylessAccount(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n jwkAddress?: AccountAddressInput;\n uidKey?: string;\n pepper?: HexInput;\n proofFetchCallback?: ProofFetchCallback;\n}): Promise<KeylessAccount | FederatedKeylessAccount> {\n const { aptosConfig, jwt, jwkAddress, uidKey, proofFetchCallback, pepper = await getPepper(args) } = args;\n const proofPromise = getProof({ ...args, pepper });\n // If a callback is provided, pass in the proof as a promise to KeylessAccount.create. This will make the proof be fetched in the\n // background and the callback will handle the outcome of the fetch. This allows the developer to not have to block on the proof fetch\n // allowing for faster rendering of UX.\n //\n // If no callback is provided, the just await the proof fetch and continue syncronously.\n const proof = proofFetchCallback ? proofPromise : await proofPromise;\n\n // Look up the original address to handle key rotations and then instantiate the account.\n if (jwkAddress !== undefined) {\n const publicKey = FederatedKeylessPublicKey.fromJwtAndPepper({ jwt, pepper, jwkAddress, uidKey });\n const address = await lookupOriginalAccountAddress({\n aptosConfig,\n authenticationKey: publicKey.authKey().derivedAddress(),\n });\n\n return FederatedKeylessAccount.create({ ...args, address, proof, pepper, proofFetchCallback, jwkAddress });\n }\n\n const publicKey = KeylessPublicKey.fromJwtAndPepper({ jwt, pepper, uidKey });\n const address = await lookupOriginalAccountAddress({\n aptosConfig,\n authenticationKey: publicKey.authKey().derivedAddress(),\n });\n return KeylessAccount.create({ ...args, address, proof, pepper, proofFetchCallback });\n}\n\ninterface JWK {\n kty: string; // Key type\n kid: string; // Key ID\n alg: string; // Algorithm used with the key\n n: string; // Modulus (for RSA keys)\n e: string; // Exponent (for RSA keys)\n}\n\ninterface JWKS {\n keys: JWK[];\n}\n\nexport async function updateFederatedKeylessJwkSetTransaction(args: {\n aptosConfig: AptosConfig;\n sender: Account;\n iss: string;\n jwksUrl?: string;\n}): Promise<SimpleTransaction> {\n const { aptosConfig, sender, iss } = args;\n const jwksUrl = args.jwksUrl ?? (iss.endsWith(\"/\") ? `${iss}.well-known/jwks.json` : `${iss}/.well-known/jwks.json`);\n const response = await fetch(jwksUrl);\n if (!response.ok) {\n throw new Error(`Failed to fetch JWKS: ${response.status} ${response.statusText}`);\n }\n const jwks: JWKS = await response.json();\n return generateTransaction({\n aptosConfig,\n sender: sender.accountAddress,\n data: {\n function: \"0x1::jwks::update_federated_jwk_set\",\n functionArguments: [\n iss,\n MoveVector.MoveString(jwks.keys.map((key) => key.kid)),\n MoveVector.MoveString(jwks.keys.map((key) => key.alg)),\n MoveVector.MoveString(jwks.keys.map((key) => key.e)),\n MoveVector.MoveString(jwks.keys.map((key) => key.n)),\n ],\n },\n });\n}\n"],"mappings":"ibAgCA,eAAsBA,EAAUC,EAMR,CACtB,GAAM,CAAE,YAAAC,EAAa,IAAAC,EAAK,iBAAAC,EAAkB,OAAAC,EAAS,MAAO,eAAAC,CAAe,EAAIL,EAEzEM,EAAO,CACX,QAASJ,EACT,IAAKC,EAAiB,aAAa,EAAE,SAAS,EAAE,sBAAsB,EACtE,cAAeA,EAAiB,eAChC,YAAaI,EAAI,aAAaJ,EAAiB,OAAO,EAAE,sBAAsB,EAC9E,QAASC,EACT,gBAAiBC,CACnB,EACM,CAAE,KAAAG,CAAK,EAAI,MAAMC,EAAgE,CACrF,YAAAR,EACA,KAAM,QACN,KAAAK,EACA,aAAc,YACd,UAAW,CAAE,iBAAkB,EAAM,CACvC,CAAC,EACD,OAAOC,EAAI,aAAaC,EAAK,MAAM,EAAE,aAAa,CACpD,CAEA,eAAsBE,EAASV,EAMD,CAC5B,GAAM,CAAE,YAAAC,EAAa,IAAAC,EAAK,iBAAAC,EAAkB,OAAAQ,EAAS,MAAMZ,EAAUC,CAAI,EAAG,OAAAI,EAAS,KAAM,EAAIJ,EAC/F,GAAIO,EAAI,aAAaI,CAAM,EAAE,aAAa,EAAE,SAAWC,EAAe,cACpE,MAAM,IAAI,MAAM,sBAAsBA,EAAe,aAAa,QAAQ,EAG5E,IAAMC,EAAoB,aAIpBC,EAAO,CACX,QAASZ,EACT,IAAKC,EAAiB,aAAa,EAAE,SAAS,EAAE,sBAAsB,EACtE,YAAaI,EAAI,aAAaJ,EAAiB,OAAO,EAAE,sBAAsB,EAC9E,cAAeA,EAAiB,eAChC,iBAAkBU,EAClB,OAAQN,EAAI,aAAaI,CAAM,EAAE,sBAAsB,EACvD,QAASP,EACT,sBAAuB,EACzB,EAEA,QAAQ,IAAI,KAAK,UAAUU,CAAI,CAAC,EAEhC,GAAM,CAAE,KAAAN,CAAK,EAAI,MAAMO,EAAuD,CAC5E,YAAAd,EACA,KAAM,QACN,KAAMa,EACN,aAAc,WACd,UAAW,CAAE,iBAAkB,EAAM,CACvC,CAAC,EAED,QAAQ,IAAI,KAAK,UAAUN,CAAI,CAAC,EAEhC,IAAMQ,EAAcR,EAAK,MACnBS,EAAa,IAAIC,EAAW,CAChC,EAAGF,EAAY,EACf,EAAGA,EAAY,EACf,EAAGA,EAAY,CACjB,CAAC,EAOD,OALoB,IAAIG,EAAiB,CACvC,MAAO,IAAIC,EAAQH,GAA8B,EACjD,wBAAyBI,EAAmB,QAAQb,EAAK,yBAAyB,EAClF,eAAgBK,CAClB,CAAC,CAEH,CAqBA,eAAsBS,EAAqBtB,EAQW,CACpD,GAAM,CAAE,YAAAC,EAAa,IAAAC,EAAK,WAAAqB,EAAY,OAAAnB,EAAQ,mBAAAoB,EAAoB,OAAAb,EAAS,MAAMZ,EAAUC,CAAI,CAAE,EAAIA,EAC/FyB,EAAef,EAAS,CAAE,GAAGV,EAAM,OAAAW,CAAO,CAAC,EAM3Ce,EAAQF,EAAqBC,EAAe,MAAMA,EAGxD,GAAIF,IAAe,OAAW,CAC5B,IAAMI,EAAYC,EAA0B,iBAAiB,CAAE,IAAA1B,EAAK,OAAAS,EAAQ,WAAAY,EAAY,OAAAnB,CAAO,CAAC,EAC1FyB,EAAU,MAAMC,EAA6B,CACjD,YAAA7B,EACA,kBAAmB0B,EAAU,QAAQ,EAAE,eAAe,CACxD,CAAC,EAED,OAAOI,EAAwB,OAAO,CAAE,GAAG/B,EAAM,QAAA6B,EAAS,MAAAH,EAAO,OAAAf,EAAQ,mBAAAa,EAAoB,WAAAD,CAAW,CAAC,CAC3G,CAEA,IAAMI,EAAYK,EAAiB,iBAAiB,CAAE,IAAA9B,EAAK,OAAAS,EAAQ,OAAAP,CAAO,CAAC,EACrEyB,EAAU,MAAMC,EAA6B,CACjD,YAAA7B,EACA,kBAAmB0B,EAAU,QAAQ,EAAE,eAAe,CACxD,CAAC,EACD,OAAOf,EAAe,OAAO,CAAE,GAAGZ,EAAM,QAAA6B,EAAS,MAAAH,EAAO,OAAAf,EAAQ,mBAAAa,CAAmB,CAAC,CACtF,CAcA,eAAsBS,EAAwCjC,EAK/B,CAC7B,GAAM,CAAE,YAAAC,EAAa,OAAAiC,EAAQ,IAAAC,CAAI,EAAInC,EAC/BoC,EAAUpC,EAAK,UAAYmC,EAAI,SAAS,GAAG,EAAI,GAAGA,CAAG,wBAA0B,GAAGA,CAAG,0BACrFE,EAAW,MAAM,MAAMD,CAAO,EACpC,GAAI,CAACC,EAAS,GACZ,MAAM,IAAI,MAAM,yBAAyBA,EAAS,MAAM,IAAIA,EAAS,UAAU,EAAE,EAEnF,IAAMC,EAAa,MAAMD,EAAS,KAAK,EACvC,OAAOE,EAAoB,CACzB,YAAAtC,EACA,OAAQiC,EAAO,eACf,KAAM,CACJ,SAAU,sCACV,kBAAmB,CACjBC,EACAK,EAAW,WAAWF,EAAK,KAAK,IAAKG,GAAQA,EAAI,GAAG,CAAC,EACrDD,EAAW,WAAWF,EAAK,KAAK,IAAKG,GAAQA,EAAI,GAAG,CAAC,EACrDD,EAAW,WAAWF,EAAK,KAAK,IAAKG,GAAQA,EAAI,CAAC,CAAC,EACnDD,EAAW,WAAWF,EAAK,KAAK,IAAKG,GAAQA,EAAI,CAAC,CAAC,CACrD,CACF,CACF,CAAC,CACH","names":["getPepper","args","aptosConfig","jwt","ephemeralKeyPair","uidKey","derivationPath","body","Hex","data","postAptosPepperService","getProof","pepper","KeylessAccount","maxExpHorizonSecs","json","postAptosProvingService","proofPoints","groth16Zkp","Groth16Zkp","ZeroKnowledgeSig","ZkProof","EphemeralSignature","deriveKeylessAccount","jwkAddress","proofFetchCallback","proofPromise","proof","publicKey","FederatedKeylessPublicKey","address","lookupOriginalAccountAddress","FederatedKeylessAccount","KeylessPublicKey","updateFederatedKeylessJwkSetTransaction","sender","iss","jwksUrl","response","jwks","generateTransaction","MoveVector","key"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-37FIIBIN.mjs";import{c as p}from"./chunk-AZ642ORV.mjs";import{c as o}from"./chunk-J45FMNYT.mjs";import{n as u,q as g,r as A}from"./chunk-VHNX2NUR.mjs";import{f as a,i as r}from"./chunk-5FPWLBZT.mjs";async function G(t){let{aptosConfig:s,options:e}=t,n={query:A,variables:{where_condition:e?.where,limit:e?.limit,offset:e?.offset}};return(await o({aptosConfig:s,query:n,originMethod:"getFungibleAssetMetadata"})).fungible_asset_metadata}async function h(t){let{aptosConfig:s,options:e}=t,n={query:g,variables:{where_condition:e?.where,limit:e?.limit,offset:e?.offset}};return(await o({aptosConfig:s,query:n,originMethod:"getFungibleAssetActivities"})).fungible_asset_activities}async function M(t){let{aptosConfig:s,options:e}=t,n={query:u,variables:{where_condition:e?.where,limit:e?.limit,offset:e?.offset}};return(await o({aptosConfig:s,query:n,originMethod:"getCurrentFungibleAssetBalances"})).current_fungible_asset_balances}var b={typeParameters:[{constraints:[]}],parameters:[p("0x1::object::Object"),new r,new a]};async function x(t){let{aptosConfig:s,sender:e,fungibleAssetMetadataAddress:n,recipient:i,amount:l,options:f}=t;return c({aptosConfig:s,sender:e.accountAddress,data:{function:"0x1::primary_fungible_store::transfer",typeArguments:["0x1::fungible_asset::Metadata"],functionArguments:[n,i,l],abi:b},options:f})}export{G as a,h as b,M as c,x as d};
|
|
2
|
+
//# sourceMappingURL=chunk-K5X5QPCY.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c,b as g}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c,b as g}from"./chunk-PUFI54FB.mjs";import{k as i,l as a}from"./chunk-G6HZPSZ3.mjs";import{a as e,b as n,c as s,e as r,f as t}from"./chunk-J45FMNYT.mjs";var p=class{constructor(o){this.config=o}async getLedgerInfo(){return e({aptosConfig:this.config})}async getChainId(){return(await this.getLedgerInfo()).chain_id}async getBlockByVersion(o){return i({aptosConfig:this.config,...o})}async getBlockByHeight(o){return a({aptosConfig:this.config,...o})}async view(o){return c({aptosConfig:this.config,...o})}async viewJson(o){return g({aptosConfig:this.config,...o})}async getChainTopUserTransactions(o){return n({aptosConfig:this.config,...o})}async queryIndexer(o){return s({aptosConfig:this.config,...o})}async getIndexerLastSuccessVersion(){return r({aptosConfig:this.config})}async getProcessorStatus(o){return t({aptosConfig:this.config,processorType:o})}};export{p as a};
|
|
2
|
+
//# sourceMappingURL=chunk-N4YBJL4Q.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as u}from"./chunk-LICJI4D2.mjs";import{f as M}from"./chunk-5HWJ3SN4.mjs";import{c as R}from"./chunk-AZ642ORV.mjs";import{c as k}from"./chunk-J45FMNYT.mjs";import{A as V,m as O,y as q,z as G}from"./chunk-VHNX2NUR.mjs";import{b as w,f as h,i as x,l as A,m as f,n as i,q as p,s as y}from"./chunk-5FPWLBZT.mjs";import{b as c}from"./chunk-EDVGFSB5.mjs";import{a as _,c as d}from"./chunk-YELQZVBK.mjs";import{a as T,e as D}from"./chunk-E7VSBBQM.mjs";import{d as E}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>"},l="0x4::token::Token";async function It(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:c.from(n).toStringLong()}};return(await k({aptosConfig:o,query:{query:V,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()},amount:{_gt:0}};return(await k({aptosConfig:o,query:{query:G,variables:{where_condition:e}},originMethod:"getCurrentDigitalAssetOwnership"})).current_token_ownerships_v2[0]}async function bt(t){let{aptosConfig:o,ownerAddress:n,options:e}=t,r={owner_address:{_eq:c.from(n).toStringLong()},amount:{_gt:0}},s={query:G,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await k({aptosConfig:o,query:s,originMethod:"getOwnedDigitalAssets"})).current_token_ownerships_v2}async function St(t){let{aptosConfig:o,digitalAssetAddress:n,options:e}=t,r={token_data_id:{_eq:c.from(n).toStringLong()}},s={query:q,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await k({aptosConfig:o,query:s,originMethod:"getDigitalAssetActivity"})).token_activities_v2}var F={typeParameters:[],parameters:[new i(p()),new h,new i(p()),new i(p()),new w,new w,new w,new w,new w,new w,new w,new w,new w,new h,new h]};async function Dt(t){let{aptosConfig:o,options:n,creator:e}=t;return u({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::create_collection",functionArguments:[new d(t.description),new D(t.maxSupply??E),new d(t.name),new d(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 D(t.royaltyNumerator??0),new D(t.royaltyDenominator??1)],abi:F},options:n})}async function v(t){let{aptosConfig:o,options:n}=t,e=n?.where;n?.tokenStandard&&(e.token_standard={_eq:n?.tokenStandard??"v2"});let r={query:O,variables:{where_condition:e,offset:n?.offset,limit:n?.limit}};return(await k({aptosConfig:o,query:r,originMethod:"getCollectionData"})).current_collections_v2[0]}async function ht(t){let{aptosConfig:o,creatorAddress:n,collectionName:e,options:r}=t,s=c.from(n),a={collection_name:{_eq:e},creator_address:{_eq:s.toStringLong()}};return r?.tokenStandard&&(a.token_standard={_eq:r?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...r,where:a}})}async function vt(t){let{aptosConfig:o,creatorAddress:n,options:e}=t,s={creator_address:{_eq:c.from(n).toStringLong()}};return e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...e,where:s}})}async function xt(t){let{aptosConfig:o,collectionId:n,options:e}=t,s={collection_id:{_eq:c.from(n).toStringLong()}};return e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...e,where:s}})}async function Gt(t){let{creatorAddress:o,collectionName:n,options:e,aptosConfig:r}=t,s=c.from(o),a={collection_name:{_eq:n},creator_address:{_eq:s.toStringLong()}};return e?.tokenStandard&&(a.token_standard={_eq:e?.tokenStandard??"v2"}),(await v({aptosConfig:r,options:{where:a}})).collection_id}var N={typeParameters:[],parameters:[new i(p()),new i(p()),new i(p()),new i(p()),new f(new i(p())),new f(new i(p())),new f(f.u8())]};async function Bt(t){let{aptosConfig:o,options:n,creator:e,collection:r,description:s,name:a,uri:m,propertyKeys:g,propertyTypes:P,propertyValues:I}=t,b=P?.map(S=>C[S]);return u({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::mint",functionArguments:[new d(r),new d(s),new d(a),new d(m),_.MoveString(g??[]),_.MoveString(b??[]),K(I??[],b??[])],abi:N},options:n})}var Q={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new x]};async function Et(t){let{aptosConfig:o,sender:n,digitalAssetAddress:e,recipient:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x1::object::transfer",typeArguments:[s??l],functionArguments:[c.from(e),c.from(r)],abi:Q},options:a})}var Y={typeParameters:[],parameters:[new i(p()),new i(p()),new i(p()),new i(p()),new f(new i(p())),new f(new i(p())),new f(f.u8()),new x]};async function Ot(t){let{aptosConfig:o,account:n,collection:e,description:r,name:s,uri:a,recipient:m,propertyKeys:g,propertyTypes:P,propertyValues:I,options:b}=t;if(g?.length!==I?.length)throw new Error("Property keys and property values counts do not match");if(P?.length!==I?.length)throw new Error("Property types and property values counts do not match");let S=P?.map(U=>C[U]);return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::mint_soul_bound",functionArguments:[e,r,s,a,_.MoveString(g??[]),_.MoveString(S??[]),K(I??[],S??[]),m],abi:Y},options:b})}var L={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function qt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::burn",typeArguments:[r??l],functionArguments:[c.from(e)],abi:L},options:s})}var z={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function Vt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::freeze_transfer",typeArguments:[r??l],functionArguments:[e],abi:z},options:s})}var j={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function Rt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::unfreeze_transfer",typeArguments:[r??l],functionArguments:[e],abi:j},options:s})}var W={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Mt(t){let{aptosConfig:o,creator:n,description:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_description",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:W},options:a})}var X={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Kt(t){let{aptosConfig:o,creator:n,name:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_name",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:X},options:a})}var H={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Ut(t){let{aptosConfig:o,creator:n,uri:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_uri",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:H},options:a})}var J={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p()),new i(p()),f.u8()]};async function Ft(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_property",typeArguments:[m??l],functionArguments:[c.from(a),new d(e),new d(C[r]),_.U8(B(s,C[r]))],abi:J},options:g})}var Z={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Nt(t){let{aptosConfig:o,creator:n,propertyKey:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::remove_property",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:Z},options:a})}var $={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p()),new i(p()),f.u8()]};async function Qt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_property",typeArguments:[m??l],functionArguments:[c.from(a),new d(e),new d(C[r]),B(s,C[r])],abi:$},options:g})}var tt={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new i(y(new A(0))),new i(p()),new A(1)]};async function Yt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_typed_property",typeArguments:[m??l,C[r]],functionArguments:[c.from(a),new d(e),s],abi:tt},options:g})}var et={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new i(y(new A(0))),new i(p()),new A(1)]};async function Lt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_typed_property",typeArguments:[m??l,C[r]],functionArguments:[c.from(a),new d(e),s],abi:et},options:g})}function K(t,o){let n=new Array;return o.forEach((e,r)=>{n.push(B(t[r],e))}),n}function B(t,o){let n=R(o);return M(t,n,0,[]).bcsToBytes()}export{It as a,Pt as b,bt as c,St as d,Dt as e,v as f,ht as g,vt as h,xt as i,Gt as j,Bt as k,Et as l,Ot as m,qt as n,Vt as o,Rt as p,Mt as q,Kt as r,Ut as s,Ft as t,Nt as u,Qt as v,Yt as w,Lt as x};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as u}from"./chunk-37FIIBIN.mjs";import{f as M}from"./chunk-5HWJ3SN4.mjs";import{c as R}from"./chunk-AZ642ORV.mjs";import{c as k}from"./chunk-J45FMNYT.mjs";import{A as V,m as O,y as q,z as G}from"./chunk-VHNX2NUR.mjs";import{b as w,f as h,i as x,l as A,m as f,n as i,q as p,s as y}from"./chunk-5FPWLBZT.mjs";import{b as c}from"./chunk-EDVGFSB5.mjs";import{a as _,c as d}from"./chunk-YELQZVBK.mjs";import{a as T,e as D}from"./chunk-E7VSBBQM.mjs";import{d as E}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>"},l="0x4::token::Token";async function It(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:c.from(n).toStringLong()}};return(await k({aptosConfig:o,query:{query:V,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()},amount:{_gt:0}};return(await k({aptosConfig:o,query:{query:G,variables:{where_condition:e}},originMethod:"getCurrentDigitalAssetOwnership"})).current_token_ownerships_v2[0]}async function bt(t){let{aptosConfig:o,ownerAddress:n,options:e}=t,r={owner_address:{_eq:c.from(n).toStringLong()},amount:{_gt:0}},s={query:G,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await k({aptosConfig:o,query:s,originMethod:"getOwnedDigitalAssets"})).current_token_ownerships_v2}async function St(t){let{aptosConfig:o,digitalAssetAddress:n,options:e}=t,r={token_data_id:{_eq:c.from(n).toStringLong()}},s={query:q,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await k({aptosConfig:o,query:s,originMethod:"getDigitalAssetActivity"})).token_activities_v2}var F={typeParameters:[],parameters:[new i(p()),new h,new i(p()),new i(p()),new w,new w,new w,new w,new w,new w,new w,new w,new w,new h,new h]};async function Dt(t){let{aptosConfig:o,options:n,creator:e}=t;return u({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::create_collection",functionArguments:[new d(t.description),new D(t.maxSupply??E),new d(t.name),new d(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 D(t.royaltyNumerator??0),new D(t.royaltyDenominator??1)],abi:F},options:n})}async function v(t){let{aptosConfig:o,options:n}=t,e=n?.where;n?.tokenStandard&&(e.token_standard={_eq:n?.tokenStandard??"v2"});let r={query:O,variables:{where_condition:e,offset:n?.offset,limit:n?.limit}};return(await k({aptosConfig:o,query:r,originMethod:"getCollectionData"})).current_collections_v2[0]}async function ht(t){let{aptosConfig:o,creatorAddress:n,collectionName:e,options:r}=t,s=c.from(n),a={collection_name:{_eq:e},creator_address:{_eq:s.toStringLong()}};return r?.tokenStandard&&(a.token_standard={_eq:r?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...r,where:a}})}async function vt(t){let{aptosConfig:o,creatorAddress:n,options:e}=t,s={creator_address:{_eq:c.from(n).toStringLong()}};return e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...e,where:s}})}async function xt(t){let{aptosConfig:o,collectionId:n,options:e}=t,s={collection_id:{_eq:c.from(n).toStringLong()}};return e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...e,where:s}})}async function Gt(t){let{creatorAddress:o,collectionName:n,options:e,aptosConfig:r}=t,s=c.from(o),a={collection_name:{_eq:n},creator_address:{_eq:s.toStringLong()}};return e?.tokenStandard&&(a.token_standard={_eq:e?.tokenStandard??"v2"}),(await v({aptosConfig:r,options:{where:a}})).collection_id}var N={typeParameters:[],parameters:[new i(p()),new i(p()),new i(p()),new i(p()),new f(new i(p())),new f(new i(p())),new f(f.u8())]};async function Bt(t){let{aptosConfig:o,options:n,creator:e,collection:r,description:s,name:a,uri:m,propertyKeys:g,propertyTypes:P,propertyValues:I}=t,b=P?.map(S=>C[S]);return u({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::mint",functionArguments:[new d(r),new d(s),new d(a),new d(m),_.MoveString(g??[]),_.MoveString(b??[]),K(I??[],b??[])],abi:N},options:n})}var Q={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new x]};async function Et(t){let{aptosConfig:o,sender:n,digitalAssetAddress:e,recipient:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x1::object::transfer",typeArguments:[s??l],functionArguments:[c.from(e),c.from(r)],abi:Q},options:a})}var Y={typeParameters:[],parameters:[new i(p()),new i(p()),new i(p()),new i(p()),new f(new i(p())),new f(new i(p())),new f(f.u8()),new x]};async function Ot(t){let{aptosConfig:o,account:n,collection:e,description:r,name:s,uri:a,recipient:m,propertyKeys:g,propertyTypes:P,propertyValues:I,options:b}=t;if(g?.length!==I?.length)throw new Error("Property keys and property values counts do not match");if(P?.length!==I?.length)throw new Error("Property types and property values counts do not match");let S=P?.map(U=>C[U]);return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::mint_soul_bound",functionArguments:[e,r,s,a,_.MoveString(g??[]),_.MoveString(S??[]),K(I??[],S??[]),m],abi:Y},options:b})}var L={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function qt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::burn",typeArguments:[r??l],functionArguments:[c.from(e)],abi:L},options:s})}var z={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function Vt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::freeze_transfer",typeArguments:[r??l],functionArguments:[e],abi:z},options:s})}var j={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function Rt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::unfreeze_transfer",typeArguments:[r??l],functionArguments:[e],abi:j},options:s})}var W={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Mt(t){let{aptosConfig:o,creator:n,description:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_description",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:W},options:a})}var X={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Kt(t){let{aptosConfig:o,creator:n,name:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_name",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:X},options:a})}var H={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Ut(t){let{aptosConfig:o,creator:n,uri:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_uri",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:H},options:a})}var J={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p()),new i(p()),f.u8()]};async function Ft(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_property",typeArguments:[m??l],functionArguments:[c.from(a),new d(e),new d(C[r]),_.U8(B(s,C[r]))],abi:J},options:g})}var Z={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Nt(t){let{aptosConfig:o,creator:n,propertyKey:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::remove_property",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:Z},options:a})}var $={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p()),new i(p()),f.u8()]};async function Qt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_property",typeArguments:[m??l],functionArguments:[c.from(a),new d(e),new d(C[r]),B(s,C[r])],abi:$},options:g})}var tt={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new i(y(new A(0))),new i(p()),new A(1)]};async function Yt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_typed_property",typeArguments:[m??l,C[r]],functionArguments:[c.from(a),new d(e),s],abi:tt},options:g})}var et={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new i(y(new A(0))),new i(p()),new A(1)]};async function Lt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_typed_property",typeArguments:[m??l,C[r]],functionArguments:[c.from(a),new d(e),s],abi:et},options:g})}function K(t,o){let n=new Array;return o.forEach((e,r)=>{n.push(B(t[r],e))}),n}function B(t,o){let n=R(o);return M(t,n,0,[]).bcsToBytes()}export{It as a,Pt as b,bt as c,St as d,Dt as e,v as f,ht as g,vt as h,xt as i,Gt as j,Bt as k,Et as l,Ot as m,qt as n,Vt as o,Rt as p,Mt as q,Kt as r,Ut as s,Ft as t,Nt as u,Qt as v,Yt as w,Lt as x};
|
|
2
|
+
//# sourceMappingURL=chunk-OKXCJKIJ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as p}from"./chunk-WP757NYZ.mjs";import{b as a}from"./chunk-FTBXTZM2.mjs";import{b as s}from"./chunk-ZZIMFLVT.mjs";async function F(n){let{aptosConfig:e,payload:o,options:t}=n,i=await p({...o,aptosConfig:e}),r=new s;i.serialize(r);let u=r.toUint8Array(),{data:d}=await a({aptosConfig:e,path:"view",originMethod:"view",contentType:"application/x.aptos.view_function+bcs",params:{ledger_version:t?.ledgerVersion},body:u});return d}async function M(n){let{aptosConfig:e,payload:o,options:t}=n,{data:i}=await a({aptosConfig:e,originMethod:"viewJson",path:"view",params:{ledger_version:t?.ledgerVersion},body:{function:o.function,type_arguments:o.typeArguments??[],arguments:o.functionArguments??[]}});return i}export{F as a,M as b};
|
|
2
|
+
//# sourceMappingURL=chunk-PUFI54FB.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as o}from"./chunk-U5TSZRK7.mjs";var t=class{constructor(n){this.config=n}async transferCoinTransaction(n){return o({aptosConfig:this.config,...n})}};export{t as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QAB3YOEA.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as s}from"./chunk-6EMN3BOV.mjs";import{f as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as s}from"./chunk-6EMN3BOV.mjs";import{f as r}from"./chunk-37FIIBIN.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var i=class{constructor(n){this.config=n}async simple(n){return r({aptosConfig:this.config,...n})}async multiAgent(n){return r({aptosConfig:this.config,...n})}};o([s],i.prototype,"simple",1),o([s],i.prototype,"multiAgent",1);export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-QI3GT3PC.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as i,b as o,c as a,d as c,e as p,f as d,g,h as u,i as A,j as y,k as m,l,m as T,n as f,o as C,p as I,q as O,r as P,s as D,t as V,u as S,v as h,w as R,x as G}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as i,b as o,c as a,d as c,e as p,f as d,g,h as u,i as A,j as y,k as m,l,m as T,n as f,o as C,p as I,q as O,r as P,s as D,t as V,u as S,v as h,w as R,x as G}from"./chunk-OKXCJKIJ.mjs";import{a as e}from"./chunk-RLGIYYI7.mjs";import{b as s}from"./chunk-EDVGFSB5.mjs";var L=class{constructor(t){this.config=t}async getCollectionData(t){await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"});let{creatorAddress:N,collectionName:_,options:n}=t,w=s.from(N),r={collection_name:{_eq:_},creator_address:{_eq:w.toStringLong()}};return n?.tokenStandard&&(r.token_standard={_eq:n?.tokenStandard??"v2"}),d({aptosConfig:this.config,options:{where:r}})}async getCollectionDataByCreatorAddressAndCollectionName(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),g({aptosConfig:this.config,...t})}async getCollectionDataByCreatorAddress(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),u({aptosConfig:this.config,...t})}async getCollectionDataByCollectionId(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),A({aptosConfig:this.config,...t})}async getCollectionId(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),y({aptosConfig:this.config,...t})}async getDigitalAssetData(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),i({aptosConfig:this.config,...t})}async getCurrentDigitalAssetOwnership(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),o({aptosConfig:this.config,...t})}async getOwnedDigitalAssets(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),a({aptosConfig:this.config,...t})}async getDigitalAssetActivity(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),c({aptosConfig:this.config,...t})}async createCollectionTransaction(t){return p({aptosConfig:this.config,...t})}async mintDigitalAssetTransaction(t){return m({aptosConfig:this.config,...t})}async transferDigitalAssetTransaction(t){return l({aptosConfig:this.config,...t})}async mintSoulBoundTransaction(t){return T({aptosConfig:this.config,...t})}async burnDigitalAssetTransaction(t){return f({aptosConfig:this.config,...t})}async freezeDigitalAssetTransaferTransaction(t){return C({aptosConfig:this.config,...t})}async unfreezeDigitalAssetTransaferTransaction(t){return I({aptosConfig:this.config,...t})}async setDigitalAssetDescriptionTransaction(t){return O({aptosConfig:this.config,...t})}async setDigitalAssetNameTransaction(t){return P({aptosConfig:this.config,...t})}async setDigitalAssetURITransaction(t){return D({aptosConfig:this.config,...t})}async addDigitalAssetPropertyTransaction(t){return V({aptosConfig:this.config,...t})}async removeDigitalAssetPropertyTransaction(t){return S({aptosConfig:this.config,...t})}async updateDigitalAssetPropertyTransaction(t){return h({aptosConfig:this.config,...t})}async addDigitalAssetTypedPropertyTransaction(t){return R({aptosConfig:this.config,...t})}async updateDigitalAssetTypedPropertyTransaction(t){return G({aptosConfig:this.config,...t})}};export{L as a};
|
|
2
|
+
//# sourceMappingURL=chunk-RJ2H6LNN.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as t}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as t}from"./chunk-37FIIBIN.mjs";var o=class{constructor(n){this.config=n}async simple(n){return t({aptosConfig:this.config,...n})}async multiAgent(n){return t({aptosConfig:this.config,...n})}};export{o as a};
|
|
2
|
+
//# sourceMappingURL=chunk-TJ5DAW2T.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as r}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as r}from"./chunk-37FIIBIN.mjs";import{f as t,i as o}from"./chunk-5FPWLBZT.mjs";import{e as n}from"./chunk-EXP5STXZ.mjs";var u={typeParameters:[{constraints:[]}],parameters:[new o,new t]};async function y(e){let{aptosConfig:i,sender:s,recipient:c,amount:p,coinType:a,options:m}=e;return r({aptosConfig:i,sender:s,data:{function:"0x1::aptos_account::transfer_coins",typeArguments:[a??n],functionArguments:[c,p],abi:u},options:m})}export{y as a};
|
|
2
|
+
//# sourceMappingURL=chunk-U5TSZRK7.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{h as e,i as s,j as t,k as o,l as r,m as i,n as a,o as m,p as c,q as g,r as u,s as p,t as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{h as e,i as s,j as t,k as o,l as r,m as i,n as a,o as m,p as c,q as g,r as u,s as p,t as d}from"./chunk-C3EFD3E4.mjs";var A=class{constructor(n){this.config=n}async getOwnerAddress(n){return e({aptosConfig:this.config,...n})}async getExpiration(n){return t({aptosConfig:this.config,...n})}async getTargetAddress(n){return i({aptosConfig:this.config,...n})}async setTargetAddress(n){return a({aptosConfig:this.config,...n})}async getPrimaryName(n){return o({aptosConfig:this.config,...n})}async setPrimaryName(n){return r({aptosConfig:this.config,...n})}async registerName(n){return s({aptosConfig:this.config,...n})}async renewDomain(n){return d({aptosConfig:this.config,...n})}async getName(n){return m({aptosConfig:this.config,...n})}async getAccountNames(n){return c({aptosConfig:this.config,...n})}async getAccountDomains(n){return g({aptosConfig:this.config,...n})}async getAccountSubdomains(n){return u({aptosConfig:this.config,...n})}async getDomainSubdomains(n){return p({aptosConfig:this.config,...n})}};export{A as a};
|
|
2
|
+
//# sourceMappingURL=chunk-VUS2FTNI.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as l,c as an,d as rn,e as R}from"./chunk-5HWJ3SN4.mjs";import{r as en,u as y}from"./chunk-BQPQLOIW.mjs";import{a as nn}from"./chunk-K7ZPRL7C.mjs";import{b as tn}from"./chunk-G6HZPSZ3.mjs";import{a as Y}from"./chunk-J45FMNYT.mjs";import{a as
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as l,c as an,d as rn,e as R}from"./chunk-5HWJ3SN4.mjs";import{r as en,u as y}from"./chunk-BQPQLOIW.mjs";import{a as nn}from"./chunk-K7ZPRL7C.mjs";import{b as tn}from"./chunk-G6HZPSZ3.mjs";import{a as Y}from"./chunk-J45FMNYT.mjs";import{a as Q}from"./chunk-7BPKOPP7.mjs";import{a as A}from"./chunk-OOVNFKA6.mjs";import{a as J}from"./chunk-GKRIMGKW.mjs";import{a as L,c as Z,d as j}from"./chunk-ND23H3AK.mjs";import{c as O,d as V,e as q,f as x,g as H,h as X,i as z}from"./chunk-SVO6PVAX.mjs";import{b as E,d as B,e as F,f as D}from"./chunk-ZASN3QQQ.mjs";import{a as k,b as p,d as g}from"./chunk-BC5BEOKM.mjs";import{a as v}from"./chunk-UW5TIZFE.mjs";import{a as S,b}from"./chunk-ASQIKTEF.mjs";import{a as N}from"./chunk-QTTDBQAJ.mjs";import{a as K}from"./chunk-ZAHUEAGT.mjs";import{i as P,j as _}from"./chunk-DYMN66K5.mjs";import{b as $,d as M}from"./chunk-7T5CUI2H.mjs";import{b as u}from"./chunk-EDVGFSB5.mjs";import{a as C}from"./chunk-AH44UPM4.mjs";import{a as U}from"./chunk-BSUYPXRD.mjs";import{b as w}from"./chunk-AOCNYMMX.mjs";import{g as I}from"./chunk-C5JQQTMI.mjs";import{b as W,c as G}from"./chunk-EXP5STXZ.mjs";import{sha3_256 as mn}from"@noble/hashes/sha3";async function vn(n){if(en(n))return fn(n);let{moduleAddress:t,moduleName:e,functionName:i}=y(n.function),a=await sn({key:"entry-function",moduleAddress:t,moduleName:e,functionName:i,aptosConfig:n.aptosConfig,abi:n.abi,fetch:an});return An({...n,abi:a})}function An(n){let t=n.abi,{moduleAddress:e,moduleName:i,functionName:a}=y(n.function),r=l(n.typeArguments);if(r.length!==t.typeParameters.length)throw new Error(`Type argument count mismatch, expected ${t.typeParameters.length}, received ${r.length}`);let o=n.functionArguments.map((s,d)=>R(n.function,t,s,d,r));if(o.length!==t.parameters.length)throw new Error(`Too few arguments for '${e}::${i}::${a}', expected ${t.parameters.length} but got ${o.length}`);let c=x.build(`${e}::${i}`,a,r,o);if("multisigAddress"in n){let s=u.from(n.multisigAddress);return new q(new X(s,new z(c)))}return new V(c)}async function On(n){let{moduleAddress:t,moduleName:e,functionName:i}=y(n.function),a=await sn({key:"view-function",moduleAddress:t,moduleName:e,functionName:i,aptosConfig:n.aptosConfig,abi:n.abi,fetch:rn});return yn({abi:a,...n})}function yn(n){let t=n.abi,{moduleAddress:e,moduleName:i,functionName:a}=y(n.function),r=l(n.typeArguments);if(r.length!==t.typeParameters.length)throw new Error(`Type argument count mismatch, expected ${t.typeParameters.length}, received ${r.length}`);let o=n?.functionArguments?.map((c,s)=>R(n.function,t,c,s,r))??[];if(o.length!==t.parameters.length)throw new Error(`Too few arguments for '${e}::${i}::${a}', expected ${t.parameters.length} but got ${o.length}`);return x.build(`${e}::${i}`,a,r,o)}function fn(n){return new O(new H(w.fromHexInput(n.bytecode).toUint8Array(),l(n.typeArguments),n.functionArguments))}async function pn(n){let{aptosConfig:t,sender:e,payload:i,options:a,feePayerAddress:r}=n,o=async()=>I[t.network]?{chainId:I[t.network]}:{chainId:(await Y({aptosConfig:t})).chain_id},c=async()=>a?.gasUnitPrice?{gasEstimate:a.gasUnitPrice}:{gasEstimate:(await tn({aptosConfig:t})).gas_estimate},s=async()=>{let f=async()=>a?.accountSequenceNumber!==void 0?a.accountSequenceNumber:(await nn({aptosConfig:t,accountAddress:e})).sequence_number;if(r&&u.from(r).equals(u.ZERO))try{return await f()}catch{return 0}else return f()},[{chainId:d},{gasEstimate:m},h]=await Promise.all([o(),c(),s()]),{maxGasAmount:cn,gasUnitPrice:un,expireTimestamp:dn}={maxGasAmount:a?.maxGasAmount?BigInt(a.maxGasAmount):BigInt(2e5),gasUnitPrice:a?.gasUnitPrice??BigInt(m),expireTimestamp:a?.expireTimestamp??BigInt(Math.floor(Date.now()/1e3)+20)};return new L(u.from(e),BigInt(h),i,BigInt(cn),BigInt(un),BigInt(dn),new v(d))}async function Vn(n){let{aptosConfig:t,sender:e,payload:i,options:a,feePayerAddress:r}=n,o=await pn({aptosConfig:t,sender:e,payload:i,options:a,feePayerAddress:r});if("secondarySignerAddresses"in n){let c=n.secondarySignerAddresses?.map(s=>u.from(s))??[];return new Q(o,c,n.feePayerAddress?u.from(n.feePayerAddress):void 0)}return new J(o,n.feePayerAddress?u.from(n.feePayerAddress):void 0)}function qn(n){let{signerPublicKey:t,transaction:e,secondarySignersPublicKeys:i,feePayerPublicKey:a}=n,r=T(t);if(e.feePayerAddress){let c=new j(e.rawTransaction,e.secondarySignerAddresses??[],e.feePayerAddress),s=[];i&&(s=i.map(h=>T(h)));let d=T(a),m=new F(r,e.secondarySignerAddresses??[],s,{address:e.feePayerAddress,authenticator:d});return new A(c.raw_txn,m).bcsToBytes()}if(e.secondarySignerAddresses){let c=new Z(e.rawTransaction,e.secondarySignerAddresses),s=[];s=i.map(m=>T(m));let d=new B(r,e.secondarySignerAddresses,s);return new A(c.raw_txn,d).bcsToBytes()}let o;if(r instanceof p)o=new E(r.public_key,r.signature);else if(r instanceof g)o=new D(r);else throw new Error("Invalid public key");return new A(e.rawTransaction,o).bcsToBytes()}function T(n){let e=P.isInstance(n)||K.isInstance(n)||N.isInstance(n)?new S(n):n,i=new M(new Uint8Array(64));if($.isInstance(e))return new p(e,i);if(S.isInstance(e))return P.isInstance(e.publicKey)?new g(e,new b(_.getSimulationSignature())):new g(e,new b(i));throw new Error("Unsupported public key")}function gn(n){let{transaction:t,feePayerAuthenticator:e,additionalSignersAuthenticators:i}=n,a=U(k,n.senderAuthenticator),r;if(t.feePayerAddress){if(!e)throw new Error("Must provide a feePayerAuthenticator argument to generate a signed fee payer transaction");r=new F(a,t.secondarySignerAddresses??[],i??[],{address:t.feePayerAddress,authenticator:e})}else if(t.secondarySignerAddresses){if(!i)throw new Error("Must provide a additionalSignersAuthenticators argument to generate a signed multi agent transaction");r=new B(a,t.secondarySignerAddresses,i)}else a instanceof p?r=new E(a.public_key,a.signature):r=new D(a);return new A(t.rawTransaction,r).bcsToBytes()}function on(n){let t=mn.create();for(let e of n)t.update(e);return t.digest()}var ln=on(["APTOS::Transaction"]);function Hn(n){let t=gn(n);return new w(on([ln,new Uint8Array([0]),t])).toString()}async function sn({key:n,moduleAddress:t,moduleName:e,functionName:i,aptosConfig:a,abi:r,fetch:o}){return r!==void 0?r:C(async()=>o(t,e,i,a),`${n}-${a.network}-${t}-${e}-${i}`,1e3*60*5)()}export{vn as a,An as b,On as c,yn as d,pn as e,Vn as f,qn as g,T as h,gn as i,on as j,Hn as k};
|
|
2
|
+
//# sourceMappingURL=chunk-WP757NYZ.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as a}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as a}from"./chunk-GQ755AGC.mjs";import e from"eventemitter3";var i=class extends e{constructor(t){super();this.config=t}start(t){let{sender:n}=t;this.account=n,this.transactionWorker=new a(this.config,n),this.transactionWorker.start(),this.registerToEvents()}push(t){let{data:n,options:o}=t;for(let r of n)this.transactionWorker.push(r,o)}registerToEvents(){this.transactionWorker.on("transactionSent",async t=>{this.emit("transactionSent",t)}),this.transactionWorker.on("transactionSendFailed",async t=>{this.emit("transactionSendFailed",t)}),this.transactionWorker.on("transactionExecuted",async t=>{this.emit("transactionExecuted",t)}),this.transactionWorker.on("transactionExecutionFailed",async t=>{this.emit("transactionExecutionFailed",t)}),this.transactionWorker.on("executionFinish",async t=>{this.emit("executionFinish",t)})}forSingleAccount(t){try{let{sender:n,data:o,options:r}=t;this.start({sender:n}),this.push({data:o,options:r})}catch(n){throw new Error(`failed to submit transactions with error: ${n}`)}}};export{i as a};
|
|
2
|
+
//# sourceMappingURL=chunk-XJ2W4L5F.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as d}from"./chunk-XJ2W4L5F.mjs";import{a as A}from"./chunk-QI3GT3PC.mjs";import{a as T}from"./chunk-DSNKW4Y4.mjs";import{a as y}from"./chunk-TJ5DAW2T.mjs";import{d as g,e as a,h as m,i as p,j as f}from"./chunk-37FIIBIN.mjs";import{a as i,b as s,c as r,d as e,e as c,g as u}from"./chunk-G6HZPSZ3.mjs";var h=class{constructor(n){this.config=n,this.build=new y(this.config),this.simulate=new A(this.config),this.submit=new T(this.config),this.batch=new d(this.config)}async getTransactions(n){return i({aptosConfig:this.config,...n})}async getTransactionByVersion(n){return r({aptosConfig:this.config,...n})}async getTransactionByHash(n){return e({aptosConfig:this.config,...n})}async isPendingTransaction(n){return c({aptosConfig:this.config,...n})}async waitForTransaction(n){return u({aptosConfig:this.config,...n})}async getGasPriceEstimation(){return s({aptosConfig:this.config})}getSigningMessage(n){return g(n)}async publishPackageTransaction(n){return p({aptosConfig:this.config,...n})}async rotateAuthKey(n){return f({aptosConfig:this.config,...n})}sign(n){return a({...n})}signAsFeePayer(n){let{signer:t,transaction:o}=n;if(!o.feePayerAddress)throw new Error(`Transaction ${o} is not a Fee Payer transaction`);return o.feePayerAddress=t.accountAddress,a({signer:t,transaction:o})}async batchTransactionsForSingleAccount(n){try{let{sender:t,data:o,options:P}=n;this.batch.forSingleAccount({sender:t,data:o,options:P})}catch(t){throw new Error(`failed to submit transactions with error: ${t}`)}}async signAndSubmitTransaction(n){let{signer:t,transaction:o}=n;return m({aptosConfig:this.config,signer:t,transaction:o})}};export{h as a};
|
|
2
|
+
//# sourceMappingURL=chunk-XLXMGNVW.mjs.map
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"./chunk-RMMOF53Q.mjs";import{a as Nf}from"./chunk-WM2GFECU.mjs";import"./chunk-QUTP2ACU.mjs";import"./chunk-AWQNX3RT.mjs";import"./chunk-OVI2RY5L.mjs";import"./chunk-DJVPIZ2I.mjs";import"./chunk-Z25D7JG2.mjs";import"./chunk-IHYTP2EW.mjs";import{a as Kf,b as Lf,c as Mf}from"./chunk-34RQZPSM.mjs";import{a as Jf}from"./chunk-YSVXROOO.mjs";import"./chunk-U6Z4FNB7.mjs";import"./chunk-AERLYJPT.mjs";import"./chunk-BJJBW6WH.mjs";import"./chunk-6EMN3BOV.mjs";import"./chunk-7V6TRMEJ.mjs";import"./chunk-HUDDA4FG.mjs";import"./chunk-I3ZR4HXK.mjs";import"./chunk-S7KCJQOA.mjs";import"./chunk-TKQEC2WD.mjs";import"./chunk-MYRN7MDF.mjs";import"./chunk-VVWBJKEA.mjs";import"./chunk-CFTY4P5C.mjs";import"./chunk-V6ZSRYXI.mjs";import"./chunk-TC3CMU7D.mjs";import"./chunk-TV62D5OU.mjs";import"./chunk-74EWOTWQ.mjs";import"./chunk-J3PN353M.mjs";import"./chunk-S3I4THN5.mjs";import"./chunk-O3SVNTWW.mjs";import"./chunk-RLGIYYI7.mjs";import"./chunk-HK3FJVVM.mjs";import"./chunk-ZSHSL3US.mjs";import"./chunk-6B65YWGD.mjs";import{a as If}from"./chunk-AE5KXM2X.mjs";import"./chunk-Q5BCQFS2.mjs";import"./chunk-4WAH2Y5E.mjs";import"./chunk-LICJI4D2.mjs";import"./chunk-I5OYNCZS.mjs";import"./chunk-JXCZTOYC.mjs";import{a as wf,b as yf,c as zf,d as Af,e as Bf,f as Cf,g as Df,h as Ef,i as Ff,j as Gf,k as Hf}from"./chunk-MVTR6HU6.mjs";import{a as lf,b as nf,c as qf,d as sf,e as uf,f as vf}from"./chunk-5HWJ3SN4.mjs";import{a as hf,b as jf,c as kf}from"./chunk-AZ642ORV.mjs";import{a as Ue,b as Ve,c as We,d as Xe,e as Ye,f as Ze,g as _e,h as $e,i as of,j as rf,k as ef,l as ff,m as mf,n as pf,o as tf,p as xf,q as af,r as bf,s as cf,t as df,u as gf}from"./chunk-BQPQLOIW.mjs";import"./chunk-BSCOVLWS.mjs";import"./chunk-V3MBJJTL.mjs";import"./chunk-K7ZPRL7C.mjs";import"./chunk-GX2II7H4.mjs";import"./chunk-G6HZPSZ3.mjs";import"./chunk-J45FMNYT.mjs";import"./chunk-VHNX2NUR.mjs";import"./chunk-GAEAYY44.mjs";import{a as Te}from"./chunk-W2KQ2TSH.mjs";import{a as Ne}from"./chunk-5RNKD3GW.mjs";import{a as Me}from"./chunk-NOVJ2ROD.mjs";import{a as Le}from"./chunk-NGIPNL7N.mjs";import{a as Se}from"./chunk-PEYLPXU6.mjs";import{a as Re}from"./chunk-PBMXWRZG.mjs";import{a as Oe}from"./chunk-YBZI6U43.mjs";import{a as Pe,b as Qe}from"./chunk-UYYQZDVB.mjs";import{a as He,b as Ie,c as Je,d as Ke}from"./chunk-E2WOZVJX.mjs";import"./chunk-4NMDYPUD.mjs";import{a as Ee}from"./chunk-OOVNFKA6.mjs";import{a as Fe}from"./chunk-GKRIMGKW.mjs";import"./chunk-UYVPNUH3.mjs";import{a as Ge}from"./chunk-7BPKOPP7.mjs";import{a as qe,b as se,c as ue,d as ve}from"./chunk-ND23H3AK.mjs";import{a as ce,b as de,c as ge,d as he,e as ie,f as je,g as ke,h as le,i as ne}from"./chunk-SVO6PVAX.mjs";import{a as Tr,b as Ur,c as Vr,d as Wr,e as Xr,f as Yr,g as Zr,h as _r,i as $r,j as oe,k as re,l as ee,m as fe,n as me,o as pe,p as te,q as xe,r as ae,s as be}from"./chunk-5FPWLBZT.mjs";import{a as Nr}from"./chunk-UW5TIZFE.mjs";import{a as Sr}from"./chunk-SP4PT77Z.mjs";import{a as Or}from"./chunk-5HI4R3A2.mjs";import{a as we}from"./chunk-YACGA3YS.mjs";import{a as ye,b as ze,c as Ae,d as Be,e as Ce,f as De}from"./chunk-ZASN3QQQ.mjs";import{a as Ir,b as Jr,c as Kr,d as Lr,e as Mr}from"./chunk-BC5BEOKM.mjs";import"./chunk-E7FWVXGX.mjs";import"./chunk-NECL5FCQ.mjs";import"./chunk-4QMXOWHP.mjs";import{a as Pr,b as Qr,c as Rr}from"./chunk-SHOPSMRK.mjs";import"./chunk-IA4RELOH.mjs";import{a as uo,b as vo}from"./chunk-FDD6WNN6.mjs";import{a as Gr,b as Hr}from"./chunk-FDTLBR6D.mjs";import{a as Er,b as Fr}from"./chunk-ASQIKTEF.mjs";import"./chunk-KUX6GQ2E.mjs";import{a as wo,b as yo,c as zo}from"./chunk-QTTDBQAJ.mjs";import{a as Dr}from"./chunk-ZAHUEAGT.mjs";import{a as hr,b as ir,c as jr,d as kr,e as lr,f as nr,g as qr,h as sr,i as ur,j as vr,k as wr,l as yr,m as zr,n as Ar,o as Br,p as Cr}from"./chunk-DYMN66K5.mjs";import"./chunk-IVVWQKCF.mjs";import"./chunk-N6EC72OZ.mjs";import{a as Ao,b as Bo}from"./chunk-4I6IUAHQ.mjs";import{a as lo,b as no,c as qo,d as so}from"./chunk-7T5CUI2H.mjs";import"./chunk-TJDC5PWD.mjs";import{a as io,b as jo}from"./chunk-FOLCONSQ.mjs";import{a as ko}from"./chunk-QP2A5ISX.mjs";import{a as fo,b as mo,c as po,d as to,e as xo,f as ao,g as bo,h as co,i as go,j as ho}from"./chunk-LR65XHSF.mjs";import{a as eo}from"./chunk-3CE63FFN.mjs";import{a as oo,b as ro}from"./chunk-EDVGFSB5.mjs";import"./chunk-AH44UPM4.mjs";import"./chunk-N2FKVZ4D.mjs";import{a as fr,b as mr,c as pr,d as tr}from"./chunk-H3TJNBHX.mjs";import{a as xr,b as ar,c as br,d as cr,e as dr,f as gr}from"./chunk-FTBXTZM2.mjs";import{a as rr,b as er}from"./chunk-AT2A7OZD.mjs";import"./chunk-HGLO5LDS.mjs";import{a as Uo}from"./chunk-BSUYPXRD.mjs";import{a as Vo,b as Wo,c as Xo,d as Yo,e as Zo,f as _o,g as $o,h as or}from"./chunk-UAL27G6B.mjs";import{a as Lo}from"./chunk-3TSO6PDV.mjs";import"./chunk-FZY4PMEE.mjs";import{a as Y,b as Z,c as _,d as $}from"./chunk-YELQZVBK.mjs";import{a as c}from"./chunk-CDIKSNSU.mjs";import{a as b}from"./chunk-TVWAYKEP.mjs";import{a as R,b as S,c as T,d as U,e as V,f as W,g as X}from"./chunk-E7VSBBQM.mjs";import{A as L,B as M,C as N,D as O,E as P,F as Q,a as d,b as g,c as h,d as i,e as j,f as k,g as l,h as n,i as q,j as s,k as u,l as v,m as w,n as y,o as z,p as A,q as B,r as C,s as D,t as E,u as F,v as G,w as H,x as I,y as J,z as K}from"./chunk-23J256KA.mjs";import"./chunk-4WPQQPUF.mjs";import{a as o}from"./chunk-KEYAPEAX.mjs";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-ZZIMFLVT.mjs";import{a as e,b as f}from"./chunk-AOCNYMMX.mjs";import{a as r}from"./chunk-FBPNHF54.mjs";import"./chunk-56CNRT2K.mjs";import{a as Mo,b as No,c as Oo,d as Po,e as Qo,f as Ro,g as So,h as To}from"./chunk-C5JQQTMI.mjs";import{a as Co,b as Do,c as Eo,d as Fo,e as Go,f as Ho,g as Io,h as Jo,i as Ko}from"./chunk-EXP5STXZ.mjs";import"./chunk-ZXVQ2OBJ.mjs";import"./chunk-FVA2OPG4.mjs";export{mo as APTOS_BIP44_REGEX,Go as APTOS_COIN,Ho as APTOS_FA,fo as APTOS_HARDENED_REGEX,Ne as Account,ro as AccountAddress,Ir as AccountAuthenticator,Jr as AccountAuthenticatorEd25519,Kr as AccountAuthenticatorMultiEd25519,Mr as AccountAuthenticatorMultiKey,Lr as AccountAuthenticatorSingleKey,l as AccountAuthenticatorVariant,jo as AccountPublicKey,Jf as AccountSequenceNumber,oo as AddressInvalidReason,Er as AnyPublicKey,n as AnyPublicKeyVariant,Fr as AnySignature,q as AnySignatureVariant,Nf as Aptos,Lo as AptosApiError,Co as AptosApiType,If as AptosConfig,eo as AuthenticationKey,R as Bool,co as CKDPriv,Nr as ChainId,Do as DEFAULT_MAX_GAS_AMOUNT,Eo as DEFAULT_TXN_EXP_SEC_FROM_NOW,Fo as DEFAULT_TXN_TIMEOUT_SEC,Q as DeriveScheme,o as Deserializer,hr as EPK_HORIZON_SECS,Le as Ed25519Account,qo as Ed25519PrivateKey,no as Ed25519PublicKey,so as Ed25519Signature,je as EntryFunction,c as EntryFunctionBytes,wr as EphemeralCertificate,v as EphemeralCertificateVariant,Oe as EphemeralKeyPair,Ao as EphemeralPublicKey,s as EphemeralPublicKeyVariant,Bo as EphemeralSignature,u as EphemeralSignatureVariant,Se as FederatedKeylessAccount,Dr as FederatedKeylessPublicKey,ve as FeePayerRawTransaction,b as FixedBytes,yr as Groth16Zkp,to as HARDENED_OFFSET,f as Hex,e as HexInvalidReason,Or as Identifier,po as KeyType,Re as KeylessAccount,Pe as KeylessAccountCommon,Br as KeylessConfiguration,ur as KeylessPublicKey,vr as KeylessSignature,ir as MAX_AUD_VAL_BYTES,sr as MAX_COMMITED_EPK_BYTES,nr as MAX_EXTRA_FIELD_BYTES,lr as MAX_ISS_VAL_BYTES,qr as MAX_JWT_HEADER_B64_BYTES,jr as MAX_UID_KEY_BYTES,kr as MAX_UID_VAL_BYTES,d as MimeType,Sr as ModuleId,M as MoveAbility,L as MoveFunctionVisibility,$ as MoveOption,_ as MoveString,Y as MoveVector,ue as MultiAgentRawTransaction,Ge as MultiAgentTransaction,uo as MultiEd25519PublicKey,vo as MultiEd25519Signature,Gr as MultiKey,Te as MultiKeyAccount,Hr as MultiKeySignature,le as MultiSig,ne as MultiSigTransactionPayload,Ro as Network,So as NetworkToChainId,Oo as NetworkToFaucetAPI,Mo as NetworkToIndexerAPI,To as NetworkToNetworkName,No as NetworkToNodeAPI,Po as NetworkToPepperAPI,Qo as NetworkToProverAPI,r as ParsingError,Ko as ProcessorType,io as PublicKey,Io as RAW_TRANSACTION_SALT,Jo as RAW_TRANSACTION_WITH_DATA_SALT,qe as RawTransaction,se as RawTransactionWithData,N as RoleType,we as RotationProofChallenge,ke as Script,h as ScriptTransactionArgumentVariants,yo as Secp256k1PrivateKey,wo as Secp256k1PublicKey,zo as Secp256k1Signature,m as Serializable,Z as Serialized,p as Serializer,ko as Signature,Ee as SignedTransaction,O as SigningScheme,P as SigningSchemeInput,Fe as SimpleTransaction,Me as SingleKeyAccount,pe as StructTag,Qe as TransactionAndProof,ye as TransactionAuthenticator,ze as TransactionAuthenticatorEd25519,Ce as TransactionAuthenticatorFeePayer,Be as TransactionAuthenticatorMultiAgent,Ae as TransactionAuthenticatorMultiEd25519,De as TransactionAuthenticatorSingleSender,k as TransactionAuthenticatorVariant,de as TransactionPayload,he as TransactionPayloadEntryFunction,ie as TransactionPayloadMultiSig,ge as TransactionPayloadScript,i as TransactionPayloadVariants,y as TransactionResponseType,j as TransactionVariants,Mf as TransactionWorker,Lf as TransactionWorkerEventsEnum,Tr as TypeTag,$r as TypeTagAddress,Ur as TypeTagBool,ee as TypeTagGeneric,jf as TypeTagParserError,hf as TypeTagParserErrorType,re as TypeTagReference,oe as TypeTagSigner,me as TypeTagStruct,Zr as TypeTagU128,Wr as TypeTagU16,_r as TypeTagU256,Xr as TypeTagU32,Yr as TypeTagU64,Vr as TypeTagU8,g as TypeTagVariants,fe as TypeTagVector,W as U128,T as U16,X as U256,U as U32,V as U64,S as U8,Ar as ZeroKnowledgeSig,zr as ZkProof,w as ZkpVariant,te as aptosCoinStructTag,er as aptosRequest,Yo as base64UrlDecode,Cf as buildTransaction,vf as checkOrConvertArgument,Zo as convertAmountFromHumanReadableToOnChain,_o as convertAmountFromOnChainToHumanReadable,uf as convertArgument,Xe as convertNumber,Pr as createObjectAddress,Qr as createResourceAddress,Rr as createTokenAddress,bo as deriveKey,He as deriveTransactionType,ce as deserializeFromScriptArgument,t as ensureBoolean,qf as fetchEntryFunctionAbi,nf as fetchFunctionAbi,sf as fetchViewFunctionAbi,df as findFirstNonSignerArg,Xo as floorToWholeHour,Bf as generateRawTransaction,Ff as generateSignedTransaction,Df as generateSignedTransactionForSimulation,Ie as generateSigningMessage,Je as generateSigningMessageForSerializable,Ke as generateSigningMessageForTransaction,wf as generateTransactionPayload,yf as generateTransactionPayloadWithABI,Hf as generateUserTransactionHash,zf as generateViewFunctionPayload,Af as generateViewFunctionPayloadWithABI,fr as get,mr as getAptosFullNode,pr as getAptosPepperService,Ef as getAuthenticatorForSimulation,gf as getFunctionParts,Cr as getKeylessConfig,Gf as hashValues,of as isBcsAddress,$e as isBcsBool,ef as isBcsFixedBytes,rf as isBcsString,xf as isBcsU128,mf as isBcsU16,af as isBcsU256,pf as isBcsU32,tf as isBcsU64,ff as isBcsU8,F as isBlockEpilogueTransactionResponse,C as isBlockMetadataTransactionResponse,Ue as isBool,lo as isCanonicalEd25519Signature,G as isEd25519Signature,Ze as isEmptyOption,_e as isEncodedEntryFunctionArgument,or as isEncodedStruct,J as isFeePayerSignature,B as isGenesisTransactionResponse,Ye as isLargeNumber,I as isMultiAgentSignature,K as isMultiEd25519Signature,We as isNumber,z as isPendingTransactionResponse,bf as isScriptDataInput,H as isSecp256k1Signature,D as isStateCheckpointTransactionResponse,Ve as isString,A as isUserTransactionResponse,xo as isValidBIP44Path,ao as isValidHardenedPath,E as isValidatorTransactionResponse,ho as mnemonicToSeed,Uo as normalizeBundle,Wo as nowInSeconds,be as objectStructTag,ae as optionStructTag,x as outOfRangeErrorMessage,tr as paginateWithCursor,$o as parseEncodedStruct,kf as parseTypeTag,xr as post,cr as postAptosFaucet,ar as postAptosFullNode,br as postAptosIndexer,dr as postAptosPepperService,gr as postAptosProvingService,Kf as promiseFulfilledStatus,rr as request,Vo as sleep,go as splitPath,lf as standardizeTypeTags,xe as stringStructTag,cf as throwTypeMismatch,a as validateNumberInRange};
|
|
1
|
+
import"./chunk-RMMOF53Q.mjs";import{a as Nf}from"./chunk-3JVYQ4Q4.mjs";import"./chunk-QUTP2ACU.mjs";import"./chunk-AWQNX3RT.mjs";import"./chunk-OVI2RY5L.mjs";import"./chunk-XLXMGNVW.mjs";import"./chunk-XJ2W4L5F.mjs";import"./chunk-IHYTP2EW.mjs";import{a as Kf,b as Lf,c as Mf}from"./chunk-GQ755AGC.mjs";import{a as Jf}from"./chunk-YSVXROOO.mjs";import"./chunk-U6Z4FNB7.mjs";import"./chunk-QI3GT3PC.mjs";import"./chunk-DSNKW4Y4.mjs";import"./chunk-6EMN3BOV.mjs";import"./chunk-TJ5DAW2T.mjs";import"./chunk-RJ2H6LNN.mjs";import"./chunk-OKXCJKIJ.mjs";import"./chunk-S7KCJQOA.mjs";import"./chunk-TKQEC2WD.mjs";import"./chunk-MYRN7MDF.mjs";import"./chunk-VVWBJKEA.mjs";import"./chunk-EBLBUJDH.mjs";import"./chunk-K5X5QPCY.mjs";import"./chunk-N4YBJL4Q.mjs";import"./chunk-3EAKJRWQ.mjs";import"./chunk-ILTQISCY.mjs";import"./chunk-J3PN353M.mjs";import"./chunk-S3I4THN5.mjs";import"./chunk-DUEJM5U3.mjs";import"./chunk-RLGIYYI7.mjs";import"./chunk-VUS2FTNI.mjs";import"./chunk-C3EFD3E4.mjs";import"./chunk-PUFI54FB.mjs";import{a as If}from"./chunk-AE5KXM2X.mjs";import"./chunk-QAB3YOEA.mjs";import"./chunk-U5TSZRK7.mjs";import"./chunk-37FIIBIN.mjs";import"./chunk-I5OYNCZS.mjs";import"./chunk-JXCZTOYC.mjs";import{a as wf,b as yf,c as zf,d as Af,e as Bf,f as Cf,g as Df,h as Ef,i as Ff,j as Gf,k as Hf}from"./chunk-WP757NYZ.mjs";import{a as lf,b as nf,c as qf,d as sf,e as uf,f as vf}from"./chunk-5HWJ3SN4.mjs";import{a as hf,b as jf,c as kf}from"./chunk-AZ642ORV.mjs";import{a as Ue,b as Ve,c as We,d as Xe,e as Ye,f as Ze,g as _e,h as $e,i as of,j as rf,k as ef,l as ff,m as mf,n as pf,o as tf,p as xf,q as af,r as bf,s as cf,t as df,u as gf}from"./chunk-BQPQLOIW.mjs";import"./chunk-BSCOVLWS.mjs";import"./chunk-V3MBJJTL.mjs";import"./chunk-K7ZPRL7C.mjs";import"./chunk-GX2II7H4.mjs";import"./chunk-G6HZPSZ3.mjs";import"./chunk-J45FMNYT.mjs";import"./chunk-VHNX2NUR.mjs";import"./chunk-GAEAYY44.mjs";import{a as Te}from"./chunk-W2KQ2TSH.mjs";import{a as Ne}from"./chunk-5RNKD3GW.mjs";import{a as Me}from"./chunk-NOVJ2ROD.mjs";import{a as Le}from"./chunk-NGIPNL7N.mjs";import{a as Se}from"./chunk-PEYLPXU6.mjs";import{a as Re}from"./chunk-PBMXWRZG.mjs";import{a as Oe}from"./chunk-YBZI6U43.mjs";import{a as Pe,b as Qe}from"./chunk-UYYQZDVB.mjs";import{a as He,b as Ie,c as Je,d as Ke}from"./chunk-E2WOZVJX.mjs";import"./chunk-4NMDYPUD.mjs";import{a as Ge}from"./chunk-7BPKOPP7.mjs";import{a as we}from"./chunk-YACGA3YS.mjs";import{a as Ee}from"./chunk-OOVNFKA6.mjs";import{a as Fe}from"./chunk-GKRIMGKW.mjs";import{a as qe,b as se,c as ue,d as ve}from"./chunk-ND23H3AK.mjs";import"./chunk-UYVPNUH3.mjs";import{a as ce,b as de,c as ge,d as he,e as ie,f as je,g as ke,h as le,i as ne}from"./chunk-SVO6PVAX.mjs";import{a as Tr,b as Ur,c as Vr,d as Wr,e as Xr,f as Yr,g as Zr,h as _r,i as $r,j as oe,k as re,l as ee,m as fe,n as me,o as pe,p as te,q as xe,r as ae,s as be}from"./chunk-5FPWLBZT.mjs";import{a as Sr}from"./chunk-SP4PT77Z.mjs";import{a as ye,b as ze,c as Ae,d as Be,e as Ce,f as De}from"./chunk-ZASN3QQQ.mjs";import{a as Ir,b as Jr,c as Kr,d as Lr,e as Mr}from"./chunk-BC5BEOKM.mjs";import{a as Nr}from"./chunk-UW5TIZFE.mjs";import{a as Or}from"./chunk-5HI4R3A2.mjs";import"./chunk-E7FWVXGX.mjs";import"./chunk-NECL5FCQ.mjs";import"./chunk-4QMXOWHP.mjs";import{a as Pr,b as Qr,c as Rr}from"./chunk-SHOPSMRK.mjs";import"./chunk-IA4RELOH.mjs";import{a as uo,b as vo}from"./chunk-FDD6WNN6.mjs";import{a as Gr,b as Hr}from"./chunk-FDTLBR6D.mjs";import{a as Er,b as Fr}from"./chunk-ASQIKTEF.mjs";import"./chunk-KUX6GQ2E.mjs";import{a as wo,b as yo,c as zo}from"./chunk-QTTDBQAJ.mjs";import{a as Dr}from"./chunk-ZAHUEAGT.mjs";import{a as hr,b as ir,c as jr,d as kr,e as lr,f as nr,g as qr,h as sr,i as ur,j as vr,k as wr,l as yr,m as zr,n as Ar,o as Br,p as Cr}from"./chunk-DYMN66K5.mjs";import"./chunk-IVVWQKCF.mjs";import"./chunk-N6EC72OZ.mjs";import{a as Ao,b as Bo}from"./chunk-4I6IUAHQ.mjs";import{a as lo,b as no,c as qo,d as so}from"./chunk-7T5CUI2H.mjs";import"./chunk-TJDC5PWD.mjs";import{a as io,b as jo}from"./chunk-FOLCONSQ.mjs";import{a as ko}from"./chunk-QP2A5ISX.mjs";import{a as fo,b as mo,c as po,d as to,e as xo,f as ao,g as bo,h as co,i as go,j as ho}from"./chunk-LR65XHSF.mjs";import{a as eo}from"./chunk-3CE63FFN.mjs";import{a as oo,b as ro}from"./chunk-EDVGFSB5.mjs";import"./chunk-AH44UPM4.mjs";import"./chunk-N2FKVZ4D.mjs";import{a as fr,b as mr,c as pr,d as tr}from"./chunk-H3TJNBHX.mjs";import{a as xr,b as ar,c as br,d as cr,e as dr,f as gr}from"./chunk-FTBXTZM2.mjs";import{a as rr,b as er}from"./chunk-AT2A7OZD.mjs";import"./chunk-HGLO5LDS.mjs";import{a as Uo}from"./chunk-BSUYPXRD.mjs";import{a as Vo,b as Wo,c as Xo,d as Yo,e as Zo,f as _o,g as $o,h as or}from"./chunk-UAL27G6B.mjs";import{a as Lo}from"./chunk-3TSO6PDV.mjs";import"./chunk-FZY4PMEE.mjs";import{a as Y,b as Z,c as _,d as $}from"./chunk-YELQZVBK.mjs";import{a as c}from"./chunk-CDIKSNSU.mjs";import{a as b}from"./chunk-TVWAYKEP.mjs";import{a as R,b as S,c as T,d as U,e as V,f as W,g as X}from"./chunk-E7VSBBQM.mjs";import{A as L,B as M,C as N,D as O,E as P,F as Q,a as d,b as g,c as h,d as i,e as j,f as k,g as l,h as n,i as q,j as s,k as u,l as v,m as w,n as y,o as z,p as A,q as B,r as C,s as D,t as E,u as F,v as G,w as H,x as I,y as J,z as K}from"./chunk-23J256KA.mjs";import"./chunk-4WPQQPUF.mjs";import{a as o}from"./chunk-KEYAPEAX.mjs";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-ZZIMFLVT.mjs";import{a as e,b as f}from"./chunk-AOCNYMMX.mjs";import{a as r}from"./chunk-FBPNHF54.mjs";import"./chunk-56CNRT2K.mjs";import{a as Mo,b as No,c as Oo,d as Po,e as Qo,f as Ro,g as So,h as To}from"./chunk-C5JQQTMI.mjs";import{a as Co,b as Do,c as Eo,d as Fo,e as Go,f as Ho,g as Io,h as Jo,i as Ko}from"./chunk-EXP5STXZ.mjs";import"./chunk-ZXVQ2OBJ.mjs";import"./chunk-FVA2OPG4.mjs";export{mo as APTOS_BIP44_REGEX,Go as APTOS_COIN,Ho as APTOS_FA,fo as APTOS_HARDENED_REGEX,Ne as Account,ro as AccountAddress,Ir as AccountAuthenticator,Jr as AccountAuthenticatorEd25519,Kr as AccountAuthenticatorMultiEd25519,Mr as AccountAuthenticatorMultiKey,Lr as AccountAuthenticatorSingleKey,l as AccountAuthenticatorVariant,jo as AccountPublicKey,Jf as AccountSequenceNumber,oo as AddressInvalidReason,Er as AnyPublicKey,n as AnyPublicKeyVariant,Fr as AnySignature,q as AnySignatureVariant,Nf as Aptos,Lo as AptosApiError,Co as AptosApiType,If as AptosConfig,eo as AuthenticationKey,R as Bool,co as CKDPriv,Nr as ChainId,Do as DEFAULT_MAX_GAS_AMOUNT,Eo as DEFAULT_TXN_EXP_SEC_FROM_NOW,Fo as DEFAULT_TXN_TIMEOUT_SEC,Q as DeriveScheme,o as Deserializer,hr as EPK_HORIZON_SECS,Le as Ed25519Account,qo as Ed25519PrivateKey,no as Ed25519PublicKey,so as Ed25519Signature,je as EntryFunction,c as EntryFunctionBytes,wr as EphemeralCertificate,v as EphemeralCertificateVariant,Oe as EphemeralKeyPair,Ao as EphemeralPublicKey,s as EphemeralPublicKeyVariant,Bo as EphemeralSignature,u as EphemeralSignatureVariant,Se as FederatedKeylessAccount,Dr as FederatedKeylessPublicKey,ve as FeePayerRawTransaction,b as FixedBytes,yr as Groth16Zkp,to as HARDENED_OFFSET,f as Hex,e as HexInvalidReason,Or as Identifier,po as KeyType,Re as KeylessAccount,Pe as KeylessAccountCommon,Br as KeylessConfiguration,ur as KeylessPublicKey,vr as KeylessSignature,ir as MAX_AUD_VAL_BYTES,sr as MAX_COMMITED_EPK_BYTES,nr as MAX_EXTRA_FIELD_BYTES,lr as MAX_ISS_VAL_BYTES,qr as MAX_JWT_HEADER_B64_BYTES,jr as MAX_UID_KEY_BYTES,kr as MAX_UID_VAL_BYTES,d as MimeType,Sr as ModuleId,M as MoveAbility,L as MoveFunctionVisibility,$ as MoveOption,_ as MoveString,Y as MoveVector,ue as MultiAgentRawTransaction,Ge as MultiAgentTransaction,uo as MultiEd25519PublicKey,vo as MultiEd25519Signature,Gr as MultiKey,Te as MultiKeyAccount,Hr as MultiKeySignature,le as MultiSig,ne as MultiSigTransactionPayload,Ro as Network,So as NetworkToChainId,Oo as NetworkToFaucetAPI,Mo as NetworkToIndexerAPI,To as NetworkToNetworkName,No as NetworkToNodeAPI,Po as NetworkToPepperAPI,Qo as NetworkToProverAPI,r as ParsingError,Ko as ProcessorType,io as PublicKey,Io as RAW_TRANSACTION_SALT,Jo as RAW_TRANSACTION_WITH_DATA_SALT,qe as RawTransaction,se as RawTransactionWithData,N as RoleType,we as RotationProofChallenge,ke as Script,h as ScriptTransactionArgumentVariants,yo as Secp256k1PrivateKey,wo as Secp256k1PublicKey,zo as Secp256k1Signature,m as Serializable,Z as Serialized,p as Serializer,ko as Signature,Ee as SignedTransaction,O as SigningScheme,P as SigningSchemeInput,Fe as SimpleTransaction,Me as SingleKeyAccount,pe as StructTag,Qe as TransactionAndProof,ye as TransactionAuthenticator,ze as TransactionAuthenticatorEd25519,Ce as TransactionAuthenticatorFeePayer,Be as TransactionAuthenticatorMultiAgent,Ae as TransactionAuthenticatorMultiEd25519,De as TransactionAuthenticatorSingleSender,k as TransactionAuthenticatorVariant,de as TransactionPayload,he as TransactionPayloadEntryFunction,ie as TransactionPayloadMultiSig,ge as TransactionPayloadScript,i as TransactionPayloadVariants,y as TransactionResponseType,j as TransactionVariants,Mf as TransactionWorker,Lf as TransactionWorkerEventsEnum,Tr as TypeTag,$r as TypeTagAddress,Ur as TypeTagBool,ee as TypeTagGeneric,jf as TypeTagParserError,hf as TypeTagParserErrorType,re as TypeTagReference,oe as TypeTagSigner,me as TypeTagStruct,Zr as TypeTagU128,Wr as TypeTagU16,_r as TypeTagU256,Xr as TypeTagU32,Yr as TypeTagU64,Vr as TypeTagU8,g as TypeTagVariants,fe as TypeTagVector,W as U128,T as U16,X as U256,U as U32,V as U64,S as U8,Ar as ZeroKnowledgeSig,zr as ZkProof,w as ZkpVariant,te as aptosCoinStructTag,er as aptosRequest,Yo as base64UrlDecode,Cf as buildTransaction,vf as checkOrConvertArgument,Zo as convertAmountFromHumanReadableToOnChain,_o as convertAmountFromOnChainToHumanReadable,uf as convertArgument,Xe as convertNumber,Pr as createObjectAddress,Qr as createResourceAddress,Rr as createTokenAddress,bo as deriveKey,He as deriveTransactionType,ce as deserializeFromScriptArgument,t as ensureBoolean,qf as fetchEntryFunctionAbi,nf as fetchFunctionAbi,sf as fetchViewFunctionAbi,df as findFirstNonSignerArg,Xo as floorToWholeHour,Bf as generateRawTransaction,Ff as generateSignedTransaction,Df as generateSignedTransactionForSimulation,Ie as generateSigningMessage,Je as generateSigningMessageForSerializable,Ke as generateSigningMessageForTransaction,wf as generateTransactionPayload,yf as generateTransactionPayloadWithABI,Hf as generateUserTransactionHash,zf as generateViewFunctionPayload,Af as generateViewFunctionPayloadWithABI,fr as get,mr as getAptosFullNode,pr as getAptosPepperService,Ef as getAuthenticatorForSimulation,gf as getFunctionParts,Cr as getKeylessConfig,Gf as hashValues,of as isBcsAddress,$e as isBcsBool,ef as isBcsFixedBytes,rf as isBcsString,xf as isBcsU128,mf as isBcsU16,af as isBcsU256,pf as isBcsU32,tf as isBcsU64,ff as isBcsU8,F as isBlockEpilogueTransactionResponse,C as isBlockMetadataTransactionResponse,Ue as isBool,lo as isCanonicalEd25519Signature,G as isEd25519Signature,Ze as isEmptyOption,_e as isEncodedEntryFunctionArgument,or as isEncodedStruct,J as isFeePayerSignature,B as isGenesisTransactionResponse,Ye as isLargeNumber,I as isMultiAgentSignature,K as isMultiEd25519Signature,We as isNumber,z as isPendingTransactionResponse,bf as isScriptDataInput,H as isSecp256k1Signature,D as isStateCheckpointTransactionResponse,Ve as isString,A as isUserTransactionResponse,xo as isValidBIP44Path,ao as isValidHardenedPath,E as isValidatorTransactionResponse,ho as mnemonicToSeed,Uo as normalizeBundle,Wo as nowInSeconds,be as objectStructTag,ae as optionStructTag,x as outOfRangeErrorMessage,tr as paginateWithCursor,$o as parseEncodedStruct,kf as parseTypeTag,xr as post,cr as postAptosFaucet,ar as postAptosFullNode,br as postAptosIndexer,dr as postAptosPepperService,gr as postAptosProvingService,Kf as promiseFulfilledStatus,rr as request,Vo as sleep,go as splitPath,lf as standardizeTypeTags,xe as stringStructTag,cf as throwTypeMismatch,a as validateNumberInRange};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"../chunk-K7ZPRL7C.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-W2KQ2TSH.mjs";import"../chunk-5RNKD3GW.mjs";import"../chunk-NOVJ2ROD.mjs";import"../chunk-NGIPNL7N.mjs";import"../chunk-PEYLPXU6.mjs";import"../chunk-PBMXWRZG.mjs";import"../chunk-YBZI6U43.mjs";import"../chunk-UYYQZDVB.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"../chunk-K7ZPRL7C.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-W2KQ2TSH.mjs";import"../chunk-5RNKD3GW.mjs";import"../chunk-NOVJ2ROD.mjs";import"../chunk-NGIPNL7N.mjs";import"../chunk-PEYLPXU6.mjs";import"../chunk-PBMXWRZG.mjs";import"../chunk-YBZI6U43.mjs";import"../chunk-UYYQZDVB.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-7BPKOPP7.mjs";import"../chunk-YACGA3YS.mjs";import"../chunk-OOVNFKA6.mjs";import"../chunk-GKRIMGKW.mjs";import"../chunk-ND23H3AK.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-SVO6PVAX.mjs";import"../chunk-5FPWLBZT.mjs";import"../chunk-SP4PT77Z.mjs";import"../chunk-ZASN3QQQ.mjs";import"../chunk-BC5BEOKM.mjs";import"../chunk-UW5TIZFE.mjs";import"../chunk-5HI4R3A2.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import"../chunk-FDD6WNN6.mjs";import"../chunk-FDTLBR6D.mjs";import"../chunk-ASQIKTEF.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-QTTDBQAJ.mjs";import"../chunk-ZAHUEAGT.mjs";import"../chunk-DYMN66K5.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import"../chunk-4I6IUAHQ.mjs";import"../chunk-7T5CUI2H.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-FOLCONSQ.mjs";import"../chunk-QP2A5ISX.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-3CE63FFN.mjs";import"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{q as deriveAccountFromPrivateKey,m as getAccountCoinAmount,o as getAccountCoinsCount,n as getAccountCoinsData,k as getAccountCollectionsWithOwnedTokens,p as getAccountOwnedObjects,i as getAccountOwnedTokens,j as getAccountOwnedTokensFromCollectionAddress,h as getAccountTokensCount,l as getAccountTransactionsCount,a as getInfo,c as getModule,b as getModules,f as getResource,e as getResources,d as getTransactions,r as isAccountExist,g as lookupOriginalAccountAddress};
|
|
2
2
|
//# sourceMappingURL=account.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t}from"../chunk-C3EFD3E4.mjs";import"../chunk-PUFI54FB.mjs";import"../chunk-37FIIBIN.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-JXCZTOYC.mjs";import"../chunk-WP757NYZ.mjs";import"../chunk-5HWJ3SN4.mjs";import"../chunk-AZ642ORV.mjs";import"../chunk-BQPQLOIW.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-K7ZPRL7C.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-G6HZPSZ3.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-W2KQ2TSH.mjs";import"../chunk-5RNKD3GW.mjs";import"../chunk-NOVJ2ROD.mjs";import"../chunk-NGIPNL7N.mjs";import"../chunk-PEYLPXU6.mjs";import"../chunk-PBMXWRZG.mjs";import"../chunk-YBZI6U43.mjs";import"../chunk-UYYQZDVB.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-7BPKOPP7.mjs";import"../chunk-YACGA3YS.mjs";import"../chunk-OOVNFKA6.mjs";import"../chunk-GKRIMGKW.mjs";import"../chunk-ND23H3AK.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-SVO6PVAX.mjs";import"../chunk-5FPWLBZT.mjs";import"../chunk-SP4PT77Z.mjs";import"../chunk-ZASN3QQQ.mjs";import"../chunk-BC5BEOKM.mjs";import"../chunk-UW5TIZFE.mjs";import"../chunk-5HI4R3A2.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import"../chunk-FDD6WNN6.mjs";import"../chunk-FDTLBR6D.mjs";import"../chunk-ASQIKTEF.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-QTTDBQAJ.mjs";import"../chunk-ZAHUEAGT.mjs";import"../chunk-DYMN66K5.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import"../chunk-4I6IUAHQ.mjs";import"../chunk-7T5CUI2H.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-FOLCONSQ.mjs";import"../chunk-QP2A5ISX.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-3CE63FFN.mjs";import"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{g as LOCAL_ANS_ACCOUNT_ADDRESS,f as LOCAL_ANS_ACCOUNT_PK,d as SubdomainExpirationPolicy,a as VALIDATION_RULES_DESCRIPTION,q as getAccountDomains,p as getAccountNames,r as getAccountSubdomains,s as getDomainSubdomains,j as getExpiration,o as getName,h as getOwnerAddress,k as getPrimaryName,m as getTargetAddress,e as isActiveANSName,c as isValidANSName,b as isValidANSSegment,i as registerName,t as renewDomain,l as setPrimaryName,n as setTargetAddress};
|
|
2
2
|
//# sourceMappingURL=ans.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-U5TSZRK7.mjs";import"../chunk-37FIIBIN.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-JXCZTOYC.mjs";import"../chunk-WP757NYZ.mjs";import"../chunk-5HWJ3SN4.mjs";import"../chunk-AZ642ORV.mjs";import"../chunk-BQPQLOIW.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-K7ZPRL7C.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-G6HZPSZ3.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-W2KQ2TSH.mjs";import"../chunk-5RNKD3GW.mjs";import"../chunk-NOVJ2ROD.mjs";import"../chunk-NGIPNL7N.mjs";import"../chunk-PEYLPXU6.mjs";import"../chunk-PBMXWRZG.mjs";import"../chunk-YBZI6U43.mjs";import"../chunk-UYYQZDVB.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-7BPKOPP7.mjs";import"../chunk-YACGA3YS.mjs";import"../chunk-OOVNFKA6.mjs";import"../chunk-GKRIMGKW.mjs";import"../chunk-ND23H3AK.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-SVO6PVAX.mjs";import"../chunk-5FPWLBZT.mjs";import"../chunk-SP4PT77Z.mjs";import"../chunk-ZASN3QQQ.mjs";import"../chunk-BC5BEOKM.mjs";import"../chunk-UW5TIZFE.mjs";import"../chunk-5HI4R3A2.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import"../chunk-FDD6WNN6.mjs";import"../chunk-FDTLBR6D.mjs";import"../chunk-ASQIKTEF.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-QTTDBQAJ.mjs";import"../chunk-ZAHUEAGT.mjs";import"../chunk-DYMN66K5.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import"../chunk-4I6IUAHQ.mjs";import"../chunk-7T5CUI2H.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-FOLCONSQ.mjs";import"../chunk-QP2A5ISX.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-3CE63FFN.mjs";import"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{a as transferCoinTransaction};
|
|
2
2
|
//# sourceMappingURL=coin.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x}from"../chunk-OKXCJKIJ.mjs";import"../chunk-37FIIBIN.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-JXCZTOYC.mjs";import"../chunk-WP757NYZ.mjs";import"../chunk-5HWJ3SN4.mjs";import"../chunk-AZ642ORV.mjs";import"../chunk-BQPQLOIW.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-K7ZPRL7C.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-G6HZPSZ3.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-W2KQ2TSH.mjs";import"../chunk-5RNKD3GW.mjs";import"../chunk-NOVJ2ROD.mjs";import"../chunk-NGIPNL7N.mjs";import"../chunk-PEYLPXU6.mjs";import"../chunk-PBMXWRZG.mjs";import"../chunk-YBZI6U43.mjs";import"../chunk-UYYQZDVB.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-7BPKOPP7.mjs";import"../chunk-YACGA3YS.mjs";import"../chunk-OOVNFKA6.mjs";import"../chunk-GKRIMGKW.mjs";import"../chunk-ND23H3AK.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-SVO6PVAX.mjs";import"../chunk-5FPWLBZT.mjs";import"../chunk-SP4PT77Z.mjs";import"../chunk-ZASN3QQQ.mjs";import"../chunk-BC5BEOKM.mjs";import"../chunk-UW5TIZFE.mjs";import"../chunk-5HI4R3A2.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import"../chunk-FDD6WNN6.mjs";import"../chunk-FDTLBR6D.mjs";import"../chunk-ASQIKTEF.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-QTTDBQAJ.mjs";import"../chunk-ZAHUEAGT.mjs";import"../chunk-DYMN66K5.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import"../chunk-4I6IUAHQ.mjs";import"../chunk-7T5CUI2H.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-FOLCONSQ.mjs";import"../chunk-QP2A5ISX.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-3CE63FFN.mjs";import"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{t as addDigitalAssetPropertyTransaction,w as addDigitalAssetTypedPropertyTransaction,n as burnDigitalAssetTransaction,e as createCollectionTransaction,o as freezeDigitalAssetTransferTransaction,f as getCollectionData,i as getCollectionDataByCollectionId,h as getCollectionDataByCreatorAddress,g as getCollectionDataByCreatorAddressAndCollectionName,j as getCollectionId,b as getCurrentDigitalAssetOwnership,d as getDigitalAssetActivity,a as getDigitalAssetData,c as getOwnedDigitalAssets,k as mintDigitalAssetTransaction,m as mintSoulBoundTransaction,u as removeDigitalAssetPropertyTransaction,q as setDigitalAssetDescriptionTransaction,r as setDigitalAssetNameTransaction,s as setDigitalAssetURITransaction,l as transferDigitalAssetTransaction,p as unfreezeDigitalAssetTransferTransaction,v as updateDigitalAssetPropertyTransaction,x as updateDigitalAssetTypedPropertyTransaction};
|
|
2
2
|
//# sourceMappingURL=digitalAsset.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-K5X5QPCY.mjs";import"../chunk-37FIIBIN.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-JXCZTOYC.mjs";import"../chunk-WP757NYZ.mjs";import"../chunk-5HWJ3SN4.mjs";import"../chunk-AZ642ORV.mjs";import"../chunk-BQPQLOIW.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-K7ZPRL7C.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-G6HZPSZ3.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-W2KQ2TSH.mjs";import"../chunk-5RNKD3GW.mjs";import"../chunk-NOVJ2ROD.mjs";import"../chunk-NGIPNL7N.mjs";import"../chunk-PEYLPXU6.mjs";import"../chunk-PBMXWRZG.mjs";import"../chunk-YBZI6U43.mjs";import"../chunk-UYYQZDVB.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-7BPKOPP7.mjs";import"../chunk-YACGA3YS.mjs";import"../chunk-OOVNFKA6.mjs";import"../chunk-GKRIMGKW.mjs";import"../chunk-ND23H3AK.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-SVO6PVAX.mjs";import"../chunk-5FPWLBZT.mjs";import"../chunk-SP4PT77Z.mjs";import"../chunk-ZASN3QQQ.mjs";import"../chunk-BC5BEOKM.mjs";import"../chunk-UW5TIZFE.mjs";import"../chunk-5HI4R3A2.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import"../chunk-FDD6WNN6.mjs";import"../chunk-FDTLBR6D.mjs";import"../chunk-ASQIKTEF.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-QTTDBQAJ.mjs";import"../chunk-ZAHUEAGT.mjs";import"../chunk-DYMN66K5.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import"../chunk-4I6IUAHQ.mjs";import"../chunk-7T5CUI2H.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-FOLCONSQ.mjs";import"../chunk-QP2A5ISX.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-3CE63FFN.mjs";import"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{c as getCurrentFungibleAssetBalances,b as getFungibleAssetActivities,a as getFungibleAssetMetadata,d as transferFungibleAsset};
|
|
2
2
|
//# sourceMappingURL=fungibleAsset.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../chunk-
|
|
1
|
+
import{a,b,c,d}from"../chunk-ILTQISCY.mjs";import"../chunk-37FIIBIN.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-JXCZTOYC.mjs";import"../chunk-WP757NYZ.mjs";import"../chunk-5HWJ3SN4.mjs";import"../chunk-AZ642ORV.mjs";import"../chunk-BQPQLOIW.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-K7ZPRL7C.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-G6HZPSZ3.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-W2KQ2TSH.mjs";import"../chunk-5RNKD3GW.mjs";import"../chunk-NOVJ2ROD.mjs";import"../chunk-NGIPNL7N.mjs";import"../chunk-PEYLPXU6.mjs";import"../chunk-PBMXWRZG.mjs";import"../chunk-YBZI6U43.mjs";import"../chunk-UYYQZDVB.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-7BPKOPP7.mjs";import"../chunk-YACGA3YS.mjs";import"../chunk-OOVNFKA6.mjs";import"../chunk-GKRIMGKW.mjs";import"../chunk-ND23H3AK.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-SVO6PVAX.mjs";import"../chunk-5FPWLBZT.mjs";import"../chunk-SP4PT77Z.mjs";import"../chunk-ZASN3QQQ.mjs";import"../chunk-BC5BEOKM.mjs";import"../chunk-UW5TIZFE.mjs";import"../chunk-5HI4R3A2.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import"../chunk-FDD6WNN6.mjs";import"../chunk-FDTLBR6D.mjs";import"../chunk-ASQIKTEF.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-QTTDBQAJ.mjs";import"../chunk-ZAHUEAGT.mjs";import"../chunk-DYMN66K5.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import"../chunk-4I6IUAHQ.mjs";import"../chunk-7T5CUI2H.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-FOLCONSQ.mjs";import"../chunk-QP2A5ISX.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-3CE63FFN.mjs";import"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{c as deriveKeylessAccount,a as getPepper,b as getProof,d as updateFederatedKeylessJwkSetTransaction};
|
|
2
2
|
//# sourceMappingURL=keyless.mjs.map
|