@moveindustries/ts-sdk 5.1.6 → 5.1.7
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/cli/index.js +1 -1
- package/dist/common/cli/index.js.map +1 -1
- package/dist/common/index.js +2 -2
- package/dist/common/index.js.map +1 -1
- package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
- package/dist/esm/account/AbstractedAccount.mjs +1 -1
- package/dist/esm/account/Account.mjs +1 -1
- package/dist/esm/account/AccountUtils.mjs +1 -1
- package/dist/esm/account/DerivableAbstractedAccount.mjs +1 -1
- package/dist/esm/account/Ed25519Account.mjs +1 -1
- package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
- package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
- package/dist/esm/account/KeylessAccount.mjs +1 -1
- package/dist/esm/account/MultiEd25519Account.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/account/utils.mjs +1 -1
- package/dist/esm/api/account/abstraction.mjs +1 -1
- package/dist/esm/api/account.mjs +1 -1
- package/dist/esm/api/coin.mjs +1 -1
- package/dist/esm/api/digitalAsset.mjs +1 -1
- package/dist/esm/api/faucet.mjs +1 -1
- package/dist/esm/api/fungibleAsset.mjs +1 -1
- package/dist/esm/api/general.mjs +1 -1
- package/dist/esm/api/index.mjs +1 -1
- package/dist/esm/api/keyless.mjs +1 -1
- package/dist/esm/api/mns.mjs +1 -1
- package/dist/esm/api/movement.mjs +1 -1
- package/dist/esm/api/movementConfig.mjs +1 -1
- package/dist/esm/api/object.mjs +1 -1
- package/dist/esm/api/staking.mjs +1 -1
- package/dist/esm/api/table.mjs +1 -1
- package/dist/esm/api/transaction.mjs +1 -1
- package/dist/esm/api/transactionSubmission/build.mjs +1 -1
- package/dist/esm/api/transactionSubmission/management.mjs +1 -1
- package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
- package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
- package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
- package/dist/esm/api/utils.mjs +1 -1
- package/dist/esm/bcs/index.mjs +1 -1
- package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
- package/dist/esm/{chunk-KPJGWDSQ.mjs → chunk-74X3LBZR.mjs} +1 -1
- package/dist/esm/{chunk-KPJGWDSQ.mjs.map → chunk-74X3LBZR.mjs.map} +1 -1
- package/dist/esm/{chunk-HU7GK5PL.mjs → chunk-7AJK3QMK.mjs} +2 -2
- package/dist/esm/{chunk-7KOS7CFM.mjs → chunk-E3O3YOFD.mjs} +2 -2
- package/dist/esm/chunk-FPHA2UD2.mjs +2 -0
- package/dist/esm/chunk-FPHA2UD2.mjs.map +1 -0
- package/dist/esm/{chunk-ZZEJESMY.mjs → chunk-GTWNSTVB.mjs} +2 -2
- package/dist/esm/{chunk-ZGBIH6MJ.mjs → chunk-HX7XBUOY.mjs} +2 -2
- package/dist/esm/{chunk-4OOPIIBY.mjs → chunk-LVNME34X.mjs} +3 -3
- package/dist/esm/chunk-LVNME34X.mjs.map +1 -0
- package/dist/esm/chunk-LZ24RPY3.mjs +2 -0
- package/dist/esm/{chunk-P6MFR7W6.mjs.map → chunk-LZ24RPY3.mjs.map} +1 -1
- package/dist/esm/{chunk-5KMDJLYM.mjs → chunk-POOO2OP5.mjs} +2 -2
- package/dist/esm/{chunk-SZG3ZZGN.mjs → chunk-Q2IJWWWU.mjs} +2 -2
- package/dist/esm/{chunk-QT3RHJP2.mjs → chunk-Q55N5DU3.mjs} +2 -2
- package/dist/esm/{chunk-P7DJNENM.mjs → chunk-QMRVGJFC.mjs} +2 -2
- package/dist/esm/chunk-QMRVGJFC.mjs.map +1 -0
- package/dist/esm/{chunk-UVP74ONT.mjs → chunk-SLXLZU5N.mjs} +1 -1
- package/dist/esm/chunk-SLXLZU5N.mjs.map +1 -0
- package/dist/esm/{chunk-I6YGBK5S.mjs → chunk-SSTVXHYQ.mjs} +1 -1
- package/dist/esm/chunk-SSTVXHYQ.mjs.map +1 -0
- package/dist/esm/{chunk-46MDTYYN.mjs → chunk-YXS3R2MX.mjs} +2 -2
- package/dist/esm/{chunk-7KIJGBLL.mjs → chunk-ZUWARBWT.mjs} +2 -2
- package/dist/esm/{chunk-7KIJGBLL.mjs.map → chunk-ZUWARBWT.mjs.map} +1 -1
- package/dist/esm/cli/index.mjs +1 -1
- package/dist/esm/cli/localNode.mjs +1 -1
- package/dist/esm/client/core.mjs +1 -1
- package/dist/esm/client/get.mjs +1 -1
- package/dist/esm/client/index.mjs +1 -1
- package/dist/esm/client/post.mjs +1 -1
- package/dist/esm/core/crypto/abstraction.mjs +1 -1
- package/dist/esm/core/crypto/deserializationUtils.mjs +1 -1
- package/dist/esm/core/crypto/ed25519.mjs +1 -1
- package/dist/esm/core/crypto/ephemeral.mjs +1 -1
- package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
- package/dist/esm/core/crypto/index.mjs +1 -1
- package/dist/esm/core/crypto/keyless.mjs +1 -1
- package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
- package/dist/esm/core/crypto/multiKey.mjs +1 -1
- package/dist/esm/core/crypto/proof.mjs +1 -1
- package/dist/esm/core/crypto/publicKey.mjs +1 -1
- package/dist/esm/core/crypto/secp256k1.mjs +1 -1
- package/dist/esm/core/crypto/secp256r1.mjs +1 -1
- package/dist/esm/core/crypto/signature.mjs +1 -1
- package/dist/esm/core/crypto/singleKey.mjs +1 -1
- package/dist/esm/core/crypto/utils.mjs +1 -1
- package/dist/esm/core/index.mjs +1 -1
- package/dist/esm/errors/index.mjs +1 -1
- package/dist/esm/index.mjs +1 -1
- package/dist/esm/internal/abstraction.mjs +1 -1
- package/dist/esm/internal/account.mjs +1 -1
- package/dist/esm/internal/coin.mjs +1 -1
- package/dist/esm/internal/digitalAsset.mjs +1 -1
- package/dist/esm/internal/faucet.mjs +1 -1
- package/dist/esm/internal/fungibleAsset.mjs +1 -1
- package/dist/esm/internal/general.mjs +1 -1
- package/dist/esm/internal/keyless.mjs +1 -1
- package/dist/esm/internal/mns.mjs +1 -1
- package/dist/esm/internal/object.mjs +1 -1
- package/dist/esm/internal/staking.mjs +1 -1
- package/dist/esm/internal/table.mjs +1 -1
- package/dist/esm/internal/transaction.mjs +1 -1
- package/dist/esm/internal/transactionSubmission.mjs +1 -1
- package/dist/esm/internal/utils/index.mjs +1 -1
- package/dist/esm/internal/utils/utils.mjs +1 -1
- package/dist/esm/internal/view.mjs +1 -1
- package/dist/esm/transactions/authenticator/account.mjs +1 -1
- package/dist/esm/transactions/authenticator/index.mjs +1 -1
- package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
- package/dist/esm/transactions/index.mjs +1 -1
- package/dist/esm/transactions/instances/index.mjs +1 -1
- package/dist/esm/transactions/instances/moduleId.mjs +1 -1
- package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
- package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
- package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
- package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
- package/dist/esm/transactions/management/index.mjs +1 -1
- package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
- package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
- package/dist/esm/transactions/typeTag/index.mjs +1 -1
- package/dist/esm/transactions/typeTag/parser.mjs +1 -1
- package/dist/esm/utils/index.mjs +1 -1
- package/dist/esm/utils/normalizeBundle.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/src/account/SingleKeyAccount.ts +1 -1
- package/src/api/account/abstraction.ts +1 -1
- package/src/api/account.ts +3 -3
- package/src/api/coin.ts +1 -1
- package/src/api/digitalAsset.ts +1 -1
- package/src/api/faucet.ts +1 -1
- package/src/api/fungibleAsset.ts +1 -1
- package/src/api/index.ts +0 -1
- package/src/api/keyless.ts +1 -1
- package/src/api/mns.ts +1 -1
- package/src/api/movement.ts +14 -13
- package/src/api/movementConfig.ts +3 -3
- package/src/api/object.ts +1 -1
- package/src/api/staking.ts +1 -1
- package/src/api/transactionSubmission/build.ts +1 -4
- package/src/bcs/index.ts +0 -1
- package/src/bcs/serializable/moveStructs.ts +4 -2
- package/src/cli/localNode.ts +21 -3
- package/src/client/core.ts +9 -1
- package/src/client/index.ts +0 -1
- package/src/core/crypto/index.ts +0 -1
- package/src/core/crypto/multiEd25519.ts +2 -2
- package/src/core/crypto/multiKey.ts +2 -2
- package/src/core/crypto/singleKey.ts +1 -1
- package/src/core/index.ts +0 -1
- package/src/errors/index.ts +6 -4
- package/src/index.ts +0 -1
- package/src/internal/account.ts +9 -6
- package/src/internal/general.ts +3 -1
- package/src/internal/mns.ts +21 -20
- package/src/transactions/authenticator/index.ts +0 -1
- package/src/transactions/index.ts +0 -1
- package/src/transactions/instances/index.ts +0 -1
- package/src/transactions/instances/transactionArgument.ts +1 -1
- package/src/transactions/management/transactionWorker.ts +3 -1
- package/src/transactions/transactionBuilder/index.ts +0 -1
- package/src/transactions/transactionBuilder/transactionBuilder.ts +11 -3
- package/src/transactions/typeTag/index.ts +3 -2
- package/src/version.ts +1 -1
- package/dist/esm/chunk-4OOPIIBY.mjs.map +0 -1
- package/dist/esm/chunk-HL2JMZ7N.mjs +0 -2
- package/dist/esm/chunk-HL2JMZ7N.mjs.map +0 -1
- package/dist/esm/chunk-I6YGBK5S.mjs.map +0 -1
- package/dist/esm/chunk-P6MFR7W6.mjs +0 -2
- package/dist/esm/chunk-P7DJNENM.mjs.map +0 -1
- package/dist/esm/chunk-UVP74ONT.mjs.map +0 -1
- /package/dist/esm/{chunk-HU7GK5PL.mjs.map → chunk-7AJK3QMK.mjs.map} +0 -0
- /package/dist/esm/{chunk-7KOS7CFM.mjs.map → chunk-E3O3YOFD.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZZEJESMY.mjs.map → chunk-GTWNSTVB.mjs.map} +0 -0
- /package/dist/esm/{chunk-ZGBIH6MJ.mjs.map → chunk-HX7XBUOY.mjs.map} +0 -0
- /package/dist/esm/{chunk-5KMDJLYM.mjs.map → chunk-POOO2OP5.mjs.map} +0 -0
- /package/dist/esm/{chunk-SZG3ZZGN.mjs.map → chunk-Q2IJWWWU.mjs.map} +0 -0
- /package/dist/esm/{chunk-QT3RHJP2.mjs.map → chunk-Q55N5DU3.mjs.map} +0 -0
- /package/dist/esm/{chunk-46MDTYYN.mjs.map → chunk-YXS3R2MX.mjs.map} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/version.ts"],"sourcesContent":["// Copyright © Move Industries\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * The current version of the SDK\n *\n * hardcoded for now, we would want to have it injected dynamically\n */\nexport const VERSION = \"5.1.
|
|
1
|
+
{"version":3,"sources":["../../src/version.ts"],"sourcesContent":["// Copyright © Move Industries\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * The current version of the SDK\n *\n * hardcoded for now, we would want to have it injected dynamically\n */\nexport const VERSION = \"5.1.7\";\n"],"mappings":"AAQO,IAAMA,EAAU","names":["VERSION"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as c}from"./chunk-5ZKA765G.mjs";import{b as d}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as c}from"./chunk-5ZKA765G.mjs";import{b as d}from"./chunk-YXS3R2MX.mjs";import{b as r}from"./chunk-DS6QB6HG.mjs";async function f(o){let{movementConfig:e,accountAddress:n}=o,{data:t}=await d({movementConfig:e,originMethod:"getInfo",path:`accounts/${r.from(n).toString()}`});return t}async function p(o){return o.options?.ledgerVersion!==void 0?s(o):c(async()=>s(o),`module-${o.accountAddress}-${o.moduleName}`,1e3*60*5)()}async function s(o){let{movementConfig:e,accountAddress:n,moduleName:t,options:i}=o,{data:m}=await d({movementConfig:e,originMethod:"getModule",path:`accounts/${r.from(n).toString()}/module/${t}`,params:{ledger_version:i?.ledgerVersion}});return m}export{f as a,p as b};
|
|
2
|
+
//# sourceMappingURL=chunk-POOO2OP5.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as s}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{c as s}from"./chunk-ZUWARBWT.mjs";import{y as i,z as m}from"./chunk-UL777LTI.mjs";import{b as n}from"./chunk-HX7XBUOY.mjs";async function b(t){let{movementConfig:a,handle:e,data:o,options:r}=t;return(await n({movementConfig:a,originMethod:"getTableItem",path:`tables/${e}/item`,params:{ledger_version:r?.ledgerVersion},body:o})).data}async function f(t){let{movementConfig:a,options:e}=t,o={query:i,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await s({movementConfig:a,query:o,originMethod:"getTableItemsData"})).table_items}async function T(t){let{movementConfig:a,options:e}=t,o={query:m,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await s({movementConfig:a,query:o,originMethod:"getTableItemsMetadata"})).table_metadatas}export{b as a,f as b,T as c};
|
|
2
|
+
//# sourceMappingURL=chunk-Q2IJWWWU.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as k}from"./chunk-5ZKA765G.mjs";import{e as x,f as M}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as k}from"./chunk-5ZKA765G.mjs";import{e as x,f as M}from"./chunk-ZUWARBWT.mjs";import{b as p,d as b}from"./chunk-YXS3R2MX.mjs";import{e as C}from"./chunk-74X3LBZR.mjs";import{a as d}from"./chunk-WFAH73WN.mjs";import{d as v}from"./chunk-VW3WBAAD.mjs";async function P(o){let{movementConfig:t,options:n}=o;return b({movementConfig:t,originMethod:"getTransactions",path:"transactions",params:{start:n?.offset,limit:n?.limit}})}async function W(o){let{movementConfig:t}=o;return k(async()=>{let{data:n}=await p({movementConfig:t,originMethod:"getGasPriceEstimation",path:"estimate_gas_price"});return n},`gas-price-${t.network}`,1e3*60*5)()}async function O(o){let{movementConfig:t,ledgerVersion:n}=o,{data:e}=await p({movementConfig:t,originMethod:"getTransactionByVersion",path:`transactions/by_version/${n}`});return e}async function y(o){let{movementConfig:t,transactionHash:n}=o,{data:e}=await p({movementConfig:t,path:`transactions/by_hash/${n}`,originMethod:"getTransactionByHash"});return e}async function q(o){let{movementConfig:t,transactionHash:n}=o;try{return(await y({movementConfig:t,transactionHash:n})).type==="pending_transaction"}catch(e){if(e?.status===404)return!0;throw e}}async function H(o){let{movementConfig:t,transactionHash:n}=o,{data:e}=await p({movementConfig:t,path:`transactions/wait_by_hash/${n}`,originMethod:"longWaitForTransaction"});return e}async function z(o){let{movementConfig:t,transactionHash:n,options:e}=o,r=e?.timeoutSecs??20,g=e?.checkSuccess??!0,i=!0,m=0,s,f,u=200,h=1.5;function c(a){if(!(a instanceof C)||(f=a,a.status!==404&&a.status>=400&&a.status<500))throw a}try{s=await y({movementConfig:t,transactionHash:n}),i=s.type==="pending_transaction"}catch(a){c(a)}if(i){let a=Date.now();try{s=await H({movementConfig:t,transactionHash:n}),i=s.type==="pending_transaction"}catch(w){c(w)}m=(Date.now()-a)/1e3}for(;i&&!(m>=r);){try{if(s=await y({movementConfig:t,transactionHash:n}),i=s.type==="pending_transaction",!i)break}catch(a){c(a)}await d(u),m+=u/1e3,u*=h}if(s===void 0)throw f||new l(`Fetching transaction ${n} failed and timed out after ${r} seconds`,s);if(s.type==="pending_transaction")throw new l(`Transaction ${n} timed out in pending state after ${r} seconds`,s);if(!g)return s;if(!s.success)throw new T(`Transaction ${n} failed with an error: ${s.vm_status}`,s);return s}async function U(o){let{movementConfig:t,processorType:n}=o,e=BigInt(o.minimumLedgerVersion),r=3e4,g=new Date().getTime(),i=BigInt(-1);for(;i<e;){if(new Date().getTime()-g>r)throw new Error("waitForLastSuccessIndexerVersionSync timeout");if(n===void 0?i=await x({movementConfig:t}):i=(await M({movementConfig:t,processorType:n})).last_success_version,i>=e)break;await d(200)}}var l=class extends Error{constructor(t,n){super(t),this.lastSubmittedTransaction=n}},T=class extends Error{constructor(t,n){super(t),this.transaction=n}};async function X(o){let{movementConfig:t,ledgerVersion:n,options:e}=o,{data:r}=await p({movementConfig:t,originMethod:"getBlockByVersion",path:`blocks/by_version/${n}`,params:{with_transactions:e?.withTransactions}});return B({block:r,...o})}async function j(o){let{movementConfig:t,blockHeight:n,options:e}=o,{data:r}=await p({movementConfig:t,originMethod:"getBlockByHeight",path:`blocks/by_height/${n}`,params:{with_transactions:e?.withTransactions}});return B({block:r,...o})}async function B(o){let{movementConfig:t,block:n,options:e}=o;if(e?.withTransactions){n.transactions=n.transactions??[];let r=n.transactions[n.transactions.length-1],g=BigInt(n.first_version),i=BigInt(n.last_version),m=r?.version,s;if(m===void 0?s=g-1n:s=BigInt(m),s===i)return n;let f=[],u=100n;for(let c=s+1n;c<i;c+=BigInt(100))f.push(P({movementConfig:t,options:{offset:c,limit:Math.min(Number(u),Number(i-c+1n))}}));let h=await Promise.all(f);for(let c of h)n.transactions.push(...c)}return n}export{P as a,W as b,O as c,y as d,q as e,H as f,z as g,U as h,l as i,T as j,X as k,j as l};
|
|
2
|
+
//# sourceMappingURL=chunk-Q55N5DU3.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{e as n}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{e as n}from"./chunk-74X3LBZR.mjs";import{a as p}from"./chunk-LZ24RPY3.mjs";async function c(s,u){let{url:t,method:r,body:i,contentType:a,params:o,overrides:e,originMethod:R}=s,d={...e?.HEADERS,"x-aptos-client":`aptos-typescript-sdk/${p}`,"content-type":a??"application/json","x-aptos-typescript-sdk-origin-method":R};return e?.AUTH_TOKEN&&(d.Authorization=`Bearer ${e?.AUTH_TOKEN}`),e?.API_KEY&&(d.Authorization=`Bearer ${e?.API_KEY}`),u.provider({url:t,method:r,body:i,params:o,headers:d,overrides:e})}async function C(s,u,t){let{url:r,path:i}=s,a=i?`${r}/${i}`:r,o=await c({...s,url:a},u.client),e={status:o.status,statusText:o.statusText??"No status text provided",data:o.data,headers:o.headers,config:o.config,request:o.request,url:a};if(e.status===401)throw new n({apiType:t,aptosRequest:s,movementResponse:e});if(t==="Indexer"){let R=e.data;if(R.errors)throw new n({apiType:t,aptosRequest:s,movementResponse:e});e.data=R.data}else if((t==="Pepper"||t==="Prover")&&e.status>=400)throw new n({apiType:t,aptosRequest:s,movementResponse:e});if(e.status>=200&&e.status<300)return e;throw new n({apiType:t,aptosRequest:s,movementResponse:e})}export{c as a,C as b};
|
|
2
|
+
//# sourceMappingURL=chunk-QMRVGJFC.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/client/core.ts"],"sourcesContent":["// Copyright © Move Industries\n// SPDX-License-Identifier: Apache-2.0\n\nimport { MovementConfig } from \"../api/movementConfig\";\nimport { MovementApiError } from \"../errors\";\nimport {\n AnyNumber,\n Client,\n ClientRequest,\n ClientResponse,\n MimeType,\n MovementRequest,\n MovementResponse,\n} from \"../types\";\nimport { MovementApiType } from \"../utils\";\nimport { VERSION } from \"../version\";\n\n/**\n * Sends a request using the specified options and returns the response.\n *\n * @param options - The options for the request.\n * @param options.url - The URL to send the request to.\n * @param options.method - The HTTP method to use for the request.\n * @param options.body - The body of the request.\n * @param options.contentType - The content type of the request.\n * @param options.params - The query parameters to include in the request.\n * @param options.overrides - Additional overrides for the request.\n * @param options.overrides.HEADERS - Custom headers to include in the request.\n * @param options.overrides.AUTH_TOKEN - The authorization token for the request.\n * @param options.overrides.API_KEY - The API key for the request.\n * @param options.originMethod - The origin method for the request.\n * @param client - The client used to make the request.\n *\n * @returns The response from the request.\n * @group Implementation\n * @category Client\n */\nexport async function request<Req, Res>(options: ClientRequest<Req>, client: Client): Promise<ClientResponse<Res>> {\n const { url, method, body, contentType, params, overrides, originMethod } = options;\n const headers: Record<string, string | AnyNumber | boolean | undefined> = {\n ...overrides?.HEADERS,\n \"x-aptos-client\": `aptos-typescript-sdk/${VERSION}`,\n \"content-type\": contentType ?? MimeType.JSON,\n \"x-aptos-typescript-sdk-origin-method\": originMethod,\n };\n\n if (overrides?.AUTH_TOKEN) {\n headers.Authorization = `Bearer ${overrides?.AUTH_TOKEN}`;\n }\n if (overrides?.API_KEY) {\n headers.Authorization = `Bearer ${overrides?.API_KEY}`;\n }\n\n /*\n * make a call using the @moveindustries/movement-client package\n * {@link https://www.npmjs.com/package/@moveindustries/movement-client}\n */\n return client.provider<Req, Res>({\n url,\n method,\n body,\n params,\n headers,\n overrides,\n });\n}\n\n/**\n * The main function to use when making an API request, returning the response or throwing an MovementApiError on failure.\n *\n * @param movementRequestOpts - Options for the Movement request, including the URL and path.\n * @param movementConfig - The configuration information for the SDK client instance.\n * @param apiType - The type of API being accessed, which determines how the response is handled.\n * @returns The response from the API request or throws an MovementApiError if the request fails.\n * @group Implementation\n * @category Client\n */\nexport async function aptosRequest<Req extends {}, Res extends {}>(\n movementRequestOpts: MovementRequest,\n movementConfig: MovementConfig,\n apiType: MovementApiType,\n): Promise<MovementResponse<Req, Res>> {\n const { url, path } = movementRequestOpts;\n const fullUrl = path ? `${url}/${path}` : url;\n const clientResponse = await request<Req, Res>({ ...movementRequestOpts, url: fullUrl }, movementConfig.client);\n\n const movementResponse: MovementResponse<Req, Res> = {\n status: clientResponse.status,\n statusText: clientResponse.statusText ?? \"No status text provided\",\n data: clientResponse.data,\n headers: clientResponse.headers,\n config: clientResponse.config,\n request: clientResponse.request,\n url: fullUrl,\n };\n\n // Handle case for `Unauthorized` error (i.e. API_KEY error)\n if (movementResponse.status === 401) {\n throw new MovementApiError({ apiType, aptosRequest: movementRequestOpts, movementResponse });\n }\n\n // to support both fullnode and indexer responses,\n // check if it is an indexer query, and adjust response.data\n if (apiType === MovementApiType.INDEXER) {\n const indexerResponse = movementResponse.data as any;\n // Handle Indexer general errors\n if (indexerResponse.errors) {\n throw new MovementApiError({\n apiType,\n aptosRequest: movementRequestOpts,\n movementResponse,\n });\n }\n movementResponse.data = indexerResponse.data as Res;\n } else if (apiType === MovementApiType.PEPPER || apiType === MovementApiType.PROVER) {\n if (movementResponse.status >= 400) {\n throw new MovementApiError({ apiType, aptosRequest: movementRequestOpts, movementResponse });\n }\n }\n\n if (movementResponse.status >= 200 && movementResponse.status < 300) {\n return movementResponse;\n }\n\n // We have to explicitly check for all request types, because if the error is a non-indexer error, but\n // comes from an indexer request (e.g. 404), we'll need to mention it appropriately\n throw new MovementApiError({ apiType, aptosRequest: movementRequestOpts, movementResponse });\n}\n"],"mappings":"kFAqCA,eAAsBA,EAAkBC,EAA6BC,EAA8C,CACjH,GAAM,CAAE,IAAAC,EAAK,OAAAC,EAAQ,KAAAC,EAAM,YAAAC,EAAa,OAAAC,EAAQ,UAAAC,EAAW,aAAAC,CAAa,EAAIR,EACtES,EAAoE,CACxE,GAAGF,GAAW,QACd,iBAAkB,wBAAwBG,CAAO,GACjD,eAAgBL,GAAe,mBAC/B,uCAAwCG,CAC1C,EAEA,OAAID,GAAW,aACbE,EAAQ,cAAgB,UAAUF,GAAW,UAAU,IAErDA,GAAW,UACbE,EAAQ,cAAgB,UAAUF,GAAW,OAAO,IAO/CN,EAAO,SAAmB,CAC/B,IAAAC,EACA,OAAAC,EACA,KAAAC,EACA,OAAAE,EACA,QAAAG,EACA,UAAAF,CACF,CAAC,CACH,CAYA,eAAsBI,EACpBC,EACAC,EACAC,EACqC,CACrC,GAAM,CAAE,IAAAZ,EAAK,KAAAa,CAAK,EAAIH,EAChBI,EAAUD,EAAO,GAAGb,CAAG,IAAIa,CAAI,GAAKb,EACpCe,EAAiB,MAAMlB,EAAkB,CAAE,GAAGa,EAAqB,IAAKI,CAAQ,EAAGH,EAAe,MAAM,EAExGK,EAA+C,CACnD,OAAQD,EAAe,OACvB,WAAYA,EAAe,YAAc,0BACzC,KAAMA,EAAe,KACrB,QAASA,EAAe,QACxB,OAAQA,EAAe,OACvB,QAASA,EAAe,QACxB,IAAKD,CACP,EAGA,GAAIE,EAAiB,SAAW,IAC9B,MAAM,IAAIC,EAAiB,CAAE,QAAAL,EAAS,aAAcF,EAAqB,iBAAAM,CAAiB,CAAC,EAK7F,GAAIJ,IAAY,UAAyB,CACvC,IAAMM,EAAkBF,EAAiB,KAEzC,GAAIE,EAAgB,OAClB,MAAM,IAAID,EAAiB,CACzB,QAAAL,EACA,aAAcF,EACd,iBAAAM,CACF,CAAC,EAEHA,EAAiB,KAAOE,EAAgB,IAC1C,UAAWN,IAAY,UAA0BA,IAAY,WACvDI,EAAiB,QAAU,IAC7B,MAAM,IAAIC,EAAiB,CAAE,QAAAL,EAAS,aAAcF,EAAqB,iBAAAM,CAAiB,CAAC,EAI/F,GAAIA,EAAiB,QAAU,KAAOA,EAAiB,OAAS,IAC9D,OAAOA,EAKT,MAAM,IAAIC,EAAiB,CAAE,QAAAL,EAAS,aAAcF,EAAqB,iBAAAM,CAAiB,CAAC,CAC7F","names":["request","options","client","url","method","body","contentType","params","overrides","originMethod","headers","VERSION","aptosRequest","movementRequestOpts","movementConfig","apiType","path","fullUrl","clientResponse","movementResponse","MovementApiError","indexerResponse"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{a as c,b as o,c as d,d as z,e as m,f as U,g as y}from"./chunk-XCURF77K.mjs";import{a as b}from"./chunk-RXHPS4IU.mjs";import{a as s}from"./chunk-SRXFRTHK.mjs";import{b as u}from"./chunk-5IMQPJ6J.mjs";var t=class i extends s{constructor(e){super(),this.values=e}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){if(this.values[0]!==void 0&&!(this.values[0]instanceof o)){new p(this.bcsToBytes()).serializeForScriptFunction(e);return}e.serializeU32AsUleb128(4),e.serialize(this)}static U8(e){let r;if(Array.isArray(e)&&e.length===0)r=[];else if(Array.isArray(e)&&typeof e[0]=="number")r=e;else if(typeof e=="string"){let n=u.fromHexInput(e);r=Array.from(n.toUint8Array())}else if(e instanceof Uint8Array)r=Array.from(e);else throw new Error("Invalid input type, must be an number[], Uint8Array, or hex string");return new i(r.map(n=>new o(n)))}static U16(e){return new i(e.map(r=>new d(r)))}static U32(e){return new i(e.map(r=>new z(r)))}static U64(e){return new i(e.map(r=>new m(r)))}static U128(e){return new i(e.map(r=>new U(r)))}static U256(e){return new i(e.map(r=>new y(r)))}static Bool(e){return new i(e.map(r=>new c(r)))}static MoveString(e){return new i(e.map(r=>new a(r)))}serialize(e){e.serializeVector(this.values)}static deserialize(e,r){let n=e.deserializeUleb128AsU32(),l=new Array;for(let w=0;w<n;w+=1)l.push(r.deserialize(e));return new i(l)}},p=class i extends s{constructor(e){super(),this.value=u.fromHexInput(e).toUint8Array()}serialize(e){e.serializeBytes(this.value)}serializeForEntryFunction(e){this.serialize(e)}serializeForScriptFunction(e){e.serializeU32AsUleb128(9),this.serialize(e)}static deserialize(e){return new i(e.deserializeBytes())}toMoveVector(e){let r=new b(this.bcsToBytes());r.deserializeUleb128AsU32();let n=r.deserializeVector(e);return new t(n)}},a=class i extends s{constructor(e){super(),this.value=e}serialize(e){e.serializeStr(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){let n=new TextEncoder().encode(this.value);t.U8(n).serializeForScriptFunction(e)}static deserialize(e){return new i(e.deserializeStr())}},A=class i extends s{constructor(e){super(),typeof e<"u"&&e!==null?this.vec=new t([e]):this.vec=new t([]),[this.value]=this.vec.values}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}unwrap(){if(this.isSome())return this.vec.values[0];throw new Error("Called unwrap on a MoveOption with no value")}isSome(){return this.vec.values.length===1}serialize(e){this.vec.serialize(e)}static U8(e){return new i(e!=null?new o(e):void 0)}static U16(e){return new i(e!=null?new d(e):void 0)}static U32(e){return new i(e!=null?new z(e):void 0)}static U64(e){return new i(e!=null?new m(e):void 0)}static U128(e){return new i(e!=null?new U(e):void 0)}static U256(e){return new i(e!=null?new y(e):void 0)}static Bool(e){return new i(e!=null?new c(e):void 0)}static MoveString(e){return new i(e!=null?new a(e):void 0)}static deserialize(e,r){let n=t.deserialize(e,r);return new i(n.values[0])}};export{t as a,p as b,a as c,A as d};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-SLXLZU5N.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/bcs/serializable/moveStructs.ts"],"sourcesContent":["// Copyright © Move Industries\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Hex } from \"../../core/hex\";\nimport { EntryFunctionArgument, TransactionArgument } from \"../../transactions/instances/transactionArgument\";\nimport { AnyNumber, HexInput, ScriptTransactionArgumentVariants } from \"../../types\";\nimport { Deserializable, Deserializer } from \"../deserializer\";\nimport { Serializable, Serializer } from \"../serializer\";\nimport { Bool, U128, U16, U256, U32, U64, U8 } from \"./movePrimitives\";\n\n/**\n * This class is the Movement Typescript SDK representation of a Move `vector<T>`,\n * where `T` represents either a primitive type (`bool`, `u8`, `u64`, ...)\n * or a BCS-serializable struct itself.\n *\n * It is a BCS-serializable, array-like type that contains an array of values of type `T`,\n * where `T` is a class that implements `Serializable`.\n *\n * The purpose of this class is to facilitate easy construction of BCS-serializable\n * Move `vector<T>` types.\n *\n * @example\n * // in Move: `vector<u8> [1, 2, 3, 4];`\n * const vecOfU8s = new MoveVector<U8>([new U8(1), new U8(2), new U8(3), new U8(4)]);\n * // in Move: `std::bcs::to_bytes(vector<u8> [1, 2, 3, 4]);`\n * const bcsBytes = vecOfU8s.toUint8Array();\n *\n * // vector<vector<u8>> [ vector<u8> [1], vector<u8> [1, 2, 3, 4], vector<u8> [5, 6, 7, 8] ];\n * const vecOfVecs = new MoveVector<MoveVector<U8>>([\n * new MoveVector<U8>([new U8(1)]),\n * MoveVector.U8([1, 2, 3, 4]),\n * MoveVector.U8([5, 6, 7, 8]),\n * ]);\n *\n * // vector<Option<u8>> [ std::option::some<u8>(1), std::option::some<u8>(2) ];\n * const vecOfOptionU8s = new MoveVector<MoveOption<U8>>([\n * MoveOption.U8(1),\n * MoveOption.U8(2),\n * ]);\n *\n * // vector<MoveString> [ std::string::utf8(b\"hello\"), std::string::utf8(b\"world\") ];\n * const vecOfStrings = new MoveVector([new MoveString(\"hello\"), new MoveString(\"world\")]);\n * const vecOfStrings2 = MoveVector.MoveString([\"hello\", \"world\"]);\n *\n * @param values an Array<T> of values where T is a class that implements Serializable\n * @returns a `MoveVector<T>` with the values `values`\n * @group Implementation\n * @category BCS\n */\nexport class MoveVector<T extends Serializable & EntryFunctionArgument>\n extends Serializable\n implements TransactionArgument\n{\n public values: Array<T>;\n\n /**\n * Initializes a new instance of the class with an optional value.\n * This constructor sets up the internal vector based on the provided value.\n *\n * @param values - The initial value to be stored in the vector, or null to initialize an empty vector.\n * @group Implementation\n * @category BCS\n */\n constructor(values: Array<T>) {\n super();\n this.values = values;\n }\n\n /**\n * Serializes the current instance into a byte sequence suitable for entry functions.\n * This allows the data to be properly formatted for transmission or storage.\n *\n * @param serializer - The serializer instance used to serialize the byte sequence.\n * @group Implementation\n * @category BCS\n */\n serializeForEntryFunction(serializer: Serializer): void {\n const bcsBytes = this.bcsToBytes();\n serializer.serializeBytes(bcsBytes);\n }\n\n /**\n * NOTE: This function will only work when the inner values in the `MoveVector` are `U8`s.\n * @param serializer\n * @group Implementation\n * @category BCS\n */\n\n /**\n * Serialize the string as a fixed byte string without the length prefix for use in a script function.\n * @param serializer - The serializer used to convert the byte vector into a format suitable for a script function.\n * @group Implementation\n * @category BCS\n */\n serializeForScriptFunction(serializer: Serializer): void {\n // This checks if the type of a non-empty vector is of type other than U8. If so, we use the Serialized\n // transaction argument type to serialize the argument.\n if (this.values[0] !== undefined && !(this.values[0] instanceof U8)) {\n const serialized = new Serialized(this.bcsToBytes());\n serialized.serializeForScriptFunction(serializer);\n return;\n }\n serializer.serializeU32AsUleb128(ScriptTransactionArgumentVariants.U8Vector);\n serializer.serialize(this);\n }\n\n /**\n * Factory method to generate a MoveVector<U8> from a `number` or `undefined`.\n *\n * This method allows you to create a MoveVector that encapsulates a U8 value, enabling you to handle optional U8 values\n * effectively.\n *\n * @param values - The values used to fill the MoveVector. If `values` is undefined or null, the resulting MoveVector's\n * `.isSome()` method will return false.\n * @returns A MoveVector<U8> with an inner value `value`.\n *\n * @example\n * ```typescript\n * const v = MoveVector.U8([1, 2, 3, 4]);\n * ```\n * @group Implementation\n * @category BCS\n */\n static U8(values: Array<number> | HexInput): MoveVector<U8> {\n let numbers: Array<number>;\n\n if (Array.isArray(values) && values.length === 0) {\n // Handle empty array, since it won't have a \"first value\"\n numbers = [];\n } else if (Array.isArray(values) && typeof values[0] === \"number\") {\n numbers = values;\n } else if (typeof values === \"string\") {\n const hex = Hex.fromHexInput(values);\n numbers = Array.from(hex.toUint8Array());\n } else if (values instanceof Uint8Array) {\n numbers = Array.from(values);\n } else {\n throw new Error(\"Invalid input type, must be an number[], Uint8Array, or hex string\");\n }\n\n return new MoveVector<U8>(numbers.map((v) => new U8(v)));\n }\n\n /**\n * Factory method to generate a MoveOption<U16> from a `number` or `null`.\n *\n * This method allows you to create a MoveVector that can either hold a U16 value or be empty.\n *\n * @param values - The value used to fill the MoveVector. If `value` is null or undefined, the resulting MoveVector's\n * `.isSome()` method will return false.\n * @returns A MoveVector<U16> with an inner value `value`.\n * @example\n * ```typescript\n * const v = MoveVector.U16([1, 2, 3, 4]);\n * ```\n * @group Implementation\n * @category BCS\n\n */\n static U16(values: Array<number>): MoveVector<U16> {\n return new MoveVector<U16>(values.map((v) => new U16(v)));\n }\n\n /**\n * Factory method to generate a MoveVector<U32> from a `number` or `null`.\n *\n * This method allows you to create a MoveVector that can either hold a U32 value or be empty.\n *\n * @param values - The value used to fill the MoveVector. If `value` is null or undefined,\n * the resulting MoveVector's .isSome() method will return false.\n * @returns A MoveVector<U32> with an inner value `value`.\n *\n * @example\n * ```\n * const v = MoveVector.U32([1, 2, 3, 4]);\n * ```\n * @group Implementation\n * @category BCS\n\n */\n static U32(values: Array<number>): MoveVector<U32> {\n return new MoveVector<U32>(values.map((v) => new U32(v)));\n }\n\n /**\n * Factory method to generate a MoveVector<U64> from a number, bigint, or null/undefined.\n * This allows for the creation of an optional U64 value that can be checked for presence.\n *\n * @param values - The value used to fill the MoveVector. If `value` is undefined or null, the resulting MoveVector's\n * `.isSome()` method will return false.\n * @returns A MoveVector<U64> with an inner value `value`.\n *\n * @example\n * ```typescript\n * const v = MoveVector.U64([1, 2, 3, 4]);\n * ```\n * @group Implementation\n * @category BCS\n */\n static U64(values: Array<AnyNumber>): MoveVector<U64> {\n return new MoveVector<U64>(values.map((v) => new U64(v)));\n }\n\n /**\n * Factory method to generate a MoveVector<U128> from a number, bigint, or undefined.\n *\n * @param values - The value used to fill the MoveVector. If `value` is undefined, the resulting MoveVector's `.isSome()`\n * method will return false.\n * @returns A MoveVector<U128> with an inner value `value`.\n *\n * @example\n * ```typescript\n * const v = MoveVector.U128([1, 2, 3, 4]);\n * ```\n * @group Implementation\n * @category BCS\n */\n static U128(values: Array<AnyNumber>): MoveVector<U128> {\n return new MoveVector<U128>(values.map((v) => new U128(v)));\n }\n\n /**\n * Factory method to generate a MoveVector<U256> from a number, bigint, or null/undefined.\n * This allows for the creation of an optional U256 value, enabling checks for presence or absence of a value.\n *\n * @param values - The value used to fill the MoveVector. If `value` is undefined or null,\n * the resulting MoveVector's .isSome() method will return false.\n * @returns A MoveVector<U256> with an inner value `value`.\n *\n * @example\n * ```typescript\n * const v = MoveVector.U256([1, 2, 3, 4]);\n * ```\n * @group Implementation\n * @category BCS\n */\n static U256(values: Array<AnyNumber>): MoveVector<U256> {\n return new MoveVector<U256>(values.map((v) => new U256(v)));\n }\n\n /**\n * Factory method to generate a MoveVector<Bool> from a `boolean` or `undefined`.\n * This method allows you to create an optional boolean value that can be used in various contexts where a boolean may or may\n * not be present.\n *\n * @param values - The value used to fill the MoveVector. If `value` is undefined, the resulting MoveVector's .isSome() method\n * will return false.\n * @returns A MoveVector<Bool> with an inner value `value`.\n *\n * @example\n * * const v = MoveVector.Bool([true, false, true, false]);\n * @group Implementation\n * @category BCS\n */\n static Bool(values: Array<boolean>): MoveVector<Bool> {\n return new MoveVector<Bool>(values.map((v) => new Bool(v)));\n }\n\n /**\n * Factory method to generate a MoveVector<MoveString> from a `string` or `undefined`.\n * This function creates a MoveVector that encapsulates a MoveString if the provided value is not null or undefined.\n *\n * @param values - The value used to fill the MoveVector. If `value` is undefined, the resulting MoveVector's .isSome() method\n * will return false.\n * @returns A MoveVector<MoveString> with an inner value `value`.\n *\n * @example\n * const v = MoveVector.MoveString([\"hello\", \"world\"]);\n * @group Implementation\n * @category BCS\n */\n static MoveString(values: Array<string>): MoveVector<MoveString> {\n return new MoveVector<MoveString>(values.map((v) => new MoveString(v)));\n }\n\n /**\n * Serializes the current object using the provided serializer.\n * This function will serialize the value if it is present.\n *\n * @param serializer - The serializer instance used to perform the serialization.\n * @group Implementation\n * @category BCS\n */\n serialize(serializer: Serializer): void;\n serialize(serializer: Serializer): void {\n serializer.serializeVector(this.values);\n }\n\n /**\n * Deserialize a MoveVector of type T, specifically where T is a Serializable and Deserializable type.\n *\n * NOTE: This only works with a depth of one. Generics will not work.\n *\n * NOTE: This will not work with types that aren't of the Serializable class.\n *\n * If you're looking for a more flexible deserialization function, you can use the deserializeVector function\n * in the Deserializer class.\n *\n * @example\n * const vec = MoveVector.deserialize(deserializer, U64);\n * @param deserializer the Deserializer instance to use, with bytes loaded into it already.\n * @param cls the class to typecast the input values to, must be a Serializable and Deserializable type.\n * @returns a MoveVector of the corresponding class T\n *\n * @group Implementation\n * @category BCS\n */\n static deserialize<T extends Serializable & EntryFunctionArgument>(\n deserializer: Deserializer,\n cls: Deserializable<T>,\n ): MoveVector<T> {\n const length = deserializer.deserializeUleb128AsU32();\n const values = new Array<T>();\n for (let i = 0; i < length; i += 1) {\n values.push(cls.deserialize(deserializer));\n }\n return new MoveVector(values);\n }\n}\n\n/**\n * Represents a serialized data structure that encapsulates a byte array.\n * This class extends the Serializable class and provides methods for serialization\n * and deserialization of byte data, as well as converting to a MoveVector.\n *\n * @extends Serializable\n * @group Implementation\n * @category BCS\n */\nexport class Serialized extends Serializable implements TransactionArgument {\n public readonly value: Uint8Array;\n\n constructor(value: HexInput) {\n super();\n this.value = Hex.fromHexInput(value).toUint8Array();\n }\n\n serialize(serializer: Serializer): void {\n serializer.serializeBytes(this.value);\n }\n\n serializeForEntryFunction(serializer: Serializer): void {\n this.serialize(serializer);\n }\n\n serializeForScriptFunction(serializer: Serializer): void {\n serializer.serializeU32AsUleb128(ScriptTransactionArgumentVariants.Serialized);\n this.serialize(serializer);\n }\n\n static deserialize(deserializer: Deserializer): Serialized {\n return new Serialized(deserializer.deserializeBytes());\n }\n\n /**\n * Deserialize the bytecode into a MoveVector of the specified type.\n * This function allows you to convert serialized data into a usable MoveVector format.\n *\n * @param cls - The class type of the elements in the MoveVector.\n * @group Implementation\n * @category BCS\n */\n toMoveVector<T extends Serializable & EntryFunctionArgument>(cls: Deserializable<T>): MoveVector<T> {\n const deserializer = new Deserializer(this.bcsToBytes());\n deserializer.deserializeUleb128AsU32();\n const vec = deserializer.deserializeVector(cls);\n return new MoveVector(vec);\n }\n}\n\n/**\n * Represents a string value that can be serialized and deserialized.\n * This class extends the Serializable base class and provides methods\n * for serializing the string in different contexts, such as for entry\n * functions and script functions.\n *\n * @extends Serializable\n * @group Implementation\n * @category BCS\n */\nexport class MoveString extends Serializable implements TransactionArgument {\n public value: string;\n\n constructor(value: string) {\n super();\n this.value = value;\n }\n\n serialize(serializer: Serializer): void {\n serializer.serializeStr(this.value);\n }\n\n serializeForEntryFunction(serializer: Serializer): void {\n const bcsBytes = this.bcsToBytes();\n serializer.serializeBytes(bcsBytes);\n }\n\n serializeForScriptFunction(serializer: Serializer): void {\n // Serialize the string as a fixed byte string, i.e., without the length prefix\n const textEncoder = new TextEncoder();\n const fixedStringBytes = textEncoder.encode(this.value);\n // Put those bytes into a vector<u8> and serialize it as a script function argument\n const vectorU8 = MoveVector.U8(fixedStringBytes);\n vectorU8.serializeForScriptFunction(serializer);\n }\n\n static deserialize(deserializer: Deserializer): MoveString {\n return new MoveString(deserializer.deserializeStr());\n }\n}\n\nexport class MoveOption<T extends Serializable & EntryFunctionArgument>\n extends Serializable\n implements EntryFunctionArgument\n{\n private vec: MoveVector<T>;\n\n public readonly value?: T;\n\n constructor(value?: T | null) {\n super();\n if (typeof value !== \"undefined\" && value !== null) {\n this.vec = new MoveVector([value]);\n } else {\n this.vec = new MoveVector([]);\n }\n\n [this.value] = this.vec.values;\n }\n\n serializeForEntryFunction(serializer: Serializer): void {\n const bcsBytes = this.bcsToBytes();\n serializer.serializeBytes(bcsBytes);\n }\n\n /**\n * Retrieves the inner value of the MoveOption.\n *\n * This method is inspired by Rust's `Option<T>.unwrap()`, where attempting to unwrap a `None` value results in a panic.\n * This method will throw an error if the value is not present.\n *\n * @example\n * const option = new MoveOption<Bool>(new Bool(true));\n * const value = option.unwrap(); // Returns the Bool instance\n *\n * @throws {Error} Throws an error if the MoveOption does not contain a value.\n *\n * @returns {T} The contained value if present.\n * @group Implementation\n * @category BCS\n */\n unwrap(): T {\n if (!this.isSome()) {\n throw new Error(\"Called unwrap on a MoveOption with no value\");\n } else {\n return this.vec.values[0];\n }\n }\n\n /**\n * Check if the MoveOption has a value.\n *\n * @returns {boolean} Returns true if there is exactly one value in the MoveOption.\n * @group Implementation\n * @category BCS\n */\n isSome(): boolean {\n return this.vec.values.length === 1;\n }\n\n serialize(serializer: Serializer): void {\n // serialize 0 or 1\n // if 1, serialize the value\n this.vec.serialize(serializer);\n }\n\n /**\n * Factory method to generate a MoveOption<U8> from a `number` or `undefined`.\n *\n * @example\n * MoveOption.U8(1).isSome() === true;\n * MoveOption.U8().isSome() === false;\n * MoveOption.U8(undefined).isSome() === false;\n * @param value the value used to fill the MoveOption. If `value` is undefined\n * the resulting MoveOption's .isSome() method will return false.\n * @returns a MoveOption<U8> with an inner value `value`\n * @group Implementation\n * @category BCS\n */\n static U8(value?: number | null): MoveOption<U8> {\n return new MoveOption<U8>(value !== null && value !== undefined ? new U8(value) : undefined);\n }\n\n /**\n * Factory method to generate a MoveOption<U16> from a `number` or `undefined`.\n *\n * @example\n * MoveOption.U16(1).isSome() === true;\n * MoveOption.U16().isSome() === false;\n * MoveOption.U16(undefined).isSome() === false;\n * @param value the value used to fill the MoveOption. If `value` is undefined\n * the resulting MoveOption's .isSome() method will return false.\n * @returns a MoveOption<U16> with an inner value `value`\n * @group Implementation\n * @category BCS\n */\n static U16(value?: number | null): MoveOption<U16> {\n return new MoveOption<U16>(value !== null && value !== undefined ? new U16(value) : undefined);\n }\n\n /**\n * Factory method to generate a MoveOption<U32> from a `number` or `undefined`.\n *\n * @example\n * MoveOption.U32(1).isSome() === true;\n * MoveOption.U32().isSome() === false;\n * MoveOption.U32(undefined).isSome() === false;\n * @param value the value used to fill the MoveOption. If `value` is undefined\n * the resulting MoveOption's .isSome() method will return false.\n * @returns a MoveOption<U32> with an inner value `value`\n * @group Implementation\n * @category BCS\n */\n static U32(value?: number | null): MoveOption<U32> {\n return new MoveOption<U32>(value !== null && value !== undefined ? new U32(value) : undefined);\n }\n\n /**\n * Factory method to generate a MoveOption<U64> from a `number` or a `bigint` or `undefined`.\n *\n * @example\n * MoveOption.U64(1).isSome() === true;\n * MoveOption.U64().isSome() === false;\n * MoveOption.U64(undefined).isSome() === false;\n * @param value the value used to fill the MoveOption. If `value` is undefined\n * the resulting MoveOption's .isSome() method will return false.\n * @returns a MoveOption<U64> with an inner value `value`\n * @group Implementation\n * @category BCS\n */\n static U64(value?: AnyNumber | null): MoveOption<U64> {\n return new MoveOption<U64>(value !== null && value !== undefined ? new U64(value) : undefined);\n }\n\n /**\n * Factory method to generate a MoveOption<U128> from a `number` or a `bigint` or `undefined`.\n *\n * @example\n * MoveOption.U128(1).isSome() === true;\n * MoveOption.U128().isSome() === false;\n * MoveOption.U128(undefined).isSome() === false;\n * @param value the value used to fill the MoveOption. If `value` is undefined\n * the resulting MoveOption's .isSome() method will return false.\n * @returns a MoveOption<U128> with an inner value `value`\n * @group Implementation\n * @category BCS\n */\n static U128(value?: AnyNumber | null): MoveOption<U128> {\n return new MoveOption<U128>(value !== null && value !== undefined ? new U128(value) : undefined);\n }\n\n /**\n * Factory method to generate a MoveOption<U256> from a `number` or a `bigint` or `undefined`.\n *\n * @example\n * MoveOption.U256(1).isSome() === true;\n * MoveOption.U256().isSome() === false;\n * MoveOption.U256(undefined).isSome() === false;\n * @param value the value used to fill the MoveOption. If `value` is undefined\n * the resulting MoveOption's .isSome() method will return false.\n * @returns a MoveOption<U256> with an inner value `value`\n * @group Implementation\n * @category BCS\n */\n static U256(value?: AnyNumber | null): MoveOption<U256> {\n return new MoveOption<U256>(value !== null && value !== undefined ? new U256(value) : undefined);\n }\n\n /**\n * Factory method to generate a MoveOption<Bool> from a `boolean` or `undefined`.\n *\n * @example\n * MoveOption.Bool(true).isSome() === true;\n * MoveOption.Bool().isSome() === false;\n * MoveOption.Bool(undefined).isSome() === false;\n * @param value the value used to fill the MoveOption. If `value` is undefined\n * the resulting MoveOption's .isSome() method will return false.\n * @returns a MoveOption<Bool> with an inner value `value`\n * @group Implementation\n * @category BCS\n */\n static Bool(value?: boolean | null): MoveOption<Bool> {\n return new MoveOption<Bool>(value !== null && value !== undefined ? new Bool(value) : undefined);\n }\n\n /**\n * Factory method to generate a MoveOption<MoveString> from a `string` or `undefined`.\n *\n * @example\n * MoveOption.MoveString(\"hello\").isSome() === true;\n * MoveOption.MoveString(\"\").isSome() === true;\n * MoveOption.MoveString().isSome() === false;\n * MoveOption.MoveString(undefined).isSome() === false;\n * @param value the value used to fill the MoveOption. If `value` is undefined\n * the resulting MoveOption's .isSome() method will return false.\n * @returns a MoveOption<MoveString> with an inner value `value`\n * @group Implementation\n * @category BCS\n */\n static MoveString(value?: string | null): MoveOption<MoveString> {\n return new MoveOption<MoveString>(value !== null && value !== undefined ? new MoveString(value) : undefined);\n }\n\n static deserialize<U extends Serializable & EntryFunctionArgument>(\n deserializer: Deserializer,\n cls: Deserializable<U>,\n ): MoveOption<U> {\n const vector = MoveVector.deserialize(deserializer, cls);\n return new MoveOption(vector.values[0]);\n }\n}\n"],"mappings":"8MAiDO,IAAMA,EAAN,MAAMC,UACHC,CAEV,CAWE,YAAYC,EAAkB,CAC5B,MAAM,EACN,KAAK,OAASA,CAChB,CAUA,0BAA0BC,EAA8B,CACtD,IAAMC,EAAW,KAAK,WAAW,EACjCD,EAAW,eAAeC,CAAQ,CACpC,CAeA,2BAA2BD,EAA8B,CAGvD,GAAI,KAAK,OAAO,CAAC,IAAM,QAAa,EAAE,KAAK,OAAO,CAAC,YAAaE,GAAK,CAChD,IAAIC,EAAW,KAAK,WAAW,CAAC,EACxC,2BAA2BH,CAAU,EAChD,MACF,CACAA,EAAW,uBAAgE,EAC3EA,EAAW,UAAU,IAAI,CAC3B,CAmBA,OAAO,GAAGD,EAAkD,CAC1D,IAAIK,EAEJ,GAAI,MAAM,QAAQL,CAAM,GAAKA,EAAO,SAAW,EAE7CK,EAAU,CAAC,UACF,MAAM,QAAQL,CAAM,GAAK,OAAOA,EAAO,CAAC,GAAM,SACvDK,EAAUL,UACD,OAAOA,GAAW,SAAU,CACrC,IAAMM,EAAMC,EAAI,aAAaP,CAAM,EACnCK,EAAU,MAAM,KAAKC,EAAI,aAAa,CAAC,CACzC,SAAWN,aAAkB,WAC3BK,EAAU,MAAM,KAAKL,CAAM,MAE3B,OAAM,IAAI,MAAM,oEAAoE,EAGtF,OAAO,IAAIF,EAAeO,EAAQ,IAAKG,GAAM,IAAIL,EAAGK,CAAC,CAAC,CAAC,CACzD,CAkBA,OAAO,IAAIR,EAAwC,CACjD,OAAO,IAAIF,EAAgBE,EAAO,IAAKQ,GAAM,IAAIC,EAAID,CAAC,CAAC,CAAC,CAC1D,CAmBA,OAAO,IAAIR,EAAwC,CACjD,OAAO,IAAIF,EAAgBE,EAAO,IAAKQ,GAAM,IAAIE,EAAIF,CAAC,CAAC,CAAC,CAC1D,CAiBA,OAAO,IAAIR,EAA2C,CACpD,OAAO,IAAIF,EAAgBE,EAAO,IAAKQ,GAAM,IAAIG,EAAIH,CAAC,CAAC,CAAC,CAC1D,CAgBA,OAAO,KAAKR,EAA4C,CACtD,OAAO,IAAIF,EAAiBE,EAAO,IAAKQ,GAAM,IAAII,EAAKJ,CAAC,CAAC,CAAC,CAC5D,CAiBA,OAAO,KAAKR,EAA4C,CACtD,OAAO,IAAIF,EAAiBE,EAAO,IAAKQ,GAAM,IAAIK,EAAKL,CAAC,CAAC,CAAC,CAC5D,CAgBA,OAAO,KAAKR,EAA0C,CACpD,OAAO,IAAIF,EAAiBE,EAAO,IAAKQ,GAAM,IAAIM,EAAKN,CAAC,CAAC,CAAC,CAC5D,CAeA,OAAO,WAAWR,EAA+C,CAC/D,OAAO,IAAIF,EAAuBE,EAAO,IAAKQ,GAAM,IAAIO,EAAWP,CAAC,CAAC,CAAC,CACxE,CAWA,UAAUP,EAA8B,CACtCA,EAAW,gBAAgB,KAAK,MAAM,CACxC,CAqBA,OAAO,YACLe,EACAC,EACe,CACf,IAAMC,EAASF,EAAa,wBAAwB,EAC9ChB,EAAS,IAAI,MACnB,QAASmB,EAAI,EAAGA,EAAID,EAAQC,GAAK,EAC/BnB,EAAO,KAAKiB,EAAI,YAAYD,CAAY,CAAC,EAE3C,OAAO,IAAIlB,EAAWE,CAAM,CAC9B,CACF,EAWaI,EAAN,MAAMgB,UAAmBrB,CAA4C,CAG1E,YAAYsB,EAAiB,CAC3B,MAAM,EACN,KAAK,MAAQd,EAAI,aAAac,CAAK,EAAE,aAAa,CACpD,CAEA,UAAUpB,EAA8B,CACtCA,EAAW,eAAe,KAAK,KAAK,CACtC,CAEA,0BAA0BA,EAA8B,CACtD,KAAK,UAAUA,CAAU,CAC3B,CAEA,2BAA2BA,EAA8B,CACvDA,EAAW,uBAAkE,EAC7E,KAAK,UAAUA,CAAU,CAC3B,CAEA,OAAO,YAAYe,EAAwC,CACzD,OAAO,IAAII,EAAWJ,EAAa,iBAAiB,CAAC,CACvD,CAUA,aAA6DC,EAAuC,CAClG,IAAMD,EAAe,IAAIM,EAAa,KAAK,WAAW,CAAC,EACvDN,EAAa,wBAAwB,EACrC,IAAMO,EAAMP,EAAa,kBAAkBC,CAAG,EAC9C,OAAO,IAAIpB,EAAW0B,CAAG,CAC3B,CACF,EAYaR,EAAN,MAAMS,UAAmBzB,CAA4C,CAG1E,YAAYsB,EAAe,CACzB,MAAM,EACN,KAAK,MAAQA,CACf,CAEA,UAAUpB,EAA8B,CACtCA,EAAW,aAAa,KAAK,KAAK,CACpC,CAEA,0BAA0BA,EAA8B,CACtD,IAAMC,EAAW,KAAK,WAAW,EACjCD,EAAW,eAAeC,CAAQ,CACpC,CAEA,2BAA2BD,EAA8B,CAGvD,IAAMwB,EADc,IAAI,YAAY,EACC,OAAO,KAAK,KAAK,EAErC5B,EAAW,GAAG4B,CAAgB,EACtC,2BAA2BxB,CAAU,CAChD,CAEA,OAAO,YAAYe,EAAwC,CACzD,OAAO,IAAIQ,EAAWR,EAAa,eAAe,CAAC,CACrD,CACF,EAEaU,EAAN,MAAMC,UACH5B,CAEV,CAKE,YAAYsB,EAAkB,CAC5B,MAAM,EACF,OAAOA,EAAU,KAAeA,IAAU,KAC5C,KAAK,IAAM,IAAIxB,EAAW,CAACwB,CAAK,CAAC,EAEjC,KAAK,IAAM,IAAIxB,EAAW,CAAC,CAAC,EAG9B,CAAC,KAAK,KAAK,EAAI,KAAK,IAAI,MAC1B,CAEA,0BAA0BI,EAA8B,CACtD,IAAMC,EAAW,KAAK,WAAW,EACjCD,EAAW,eAAeC,CAAQ,CACpC,CAkBA,QAAY,CACV,GAAK,KAAK,OAAO,EAGf,OAAO,KAAK,IAAI,OAAO,CAAC,EAFxB,MAAM,IAAI,MAAM,6CAA6C,CAIjE,CASA,QAAkB,CAChB,OAAO,KAAK,IAAI,OAAO,SAAW,CACpC,CAEA,UAAUD,EAA8B,CAGtC,KAAK,IAAI,UAAUA,CAAU,CAC/B,CAeA,OAAO,GAAGoB,EAAuC,CAC/C,OAAO,IAAIM,EAAeN,GAAU,KAA8B,IAAIlB,EAAGkB,CAAK,EAAI,MAAS,CAC7F,CAeA,OAAO,IAAIA,EAAwC,CACjD,OAAO,IAAIM,EAAgBN,GAAU,KAA8B,IAAIZ,EAAIY,CAAK,EAAI,MAAS,CAC/F,CAeA,OAAO,IAAIA,EAAwC,CACjD,OAAO,IAAIM,EAAgBN,GAAU,KAA8B,IAAIX,EAAIW,CAAK,EAAI,MAAS,CAC/F,CAeA,OAAO,IAAIA,EAA2C,CACpD,OAAO,IAAIM,EAAgBN,GAAU,KAA8B,IAAIV,EAAIU,CAAK,EAAI,MAAS,CAC/F,CAeA,OAAO,KAAKA,EAA4C,CACtD,OAAO,IAAIM,EAAiBN,GAAU,KAA8B,IAAIT,EAAKS,CAAK,EAAI,MAAS,CACjG,CAeA,OAAO,KAAKA,EAA4C,CACtD,OAAO,IAAIM,EAAiBN,GAAU,KAA8B,IAAIR,EAAKQ,CAAK,EAAI,MAAS,CACjG,CAeA,OAAO,KAAKA,EAA0C,CACpD,OAAO,IAAIM,EAAiBN,GAAU,KAA8B,IAAIP,EAAKO,CAAK,EAAI,MAAS,CACjG,CAgBA,OAAO,WAAWA,EAA+C,CAC/D,OAAO,IAAIM,EAAuBN,GAAU,KAA8B,IAAIN,EAAWM,CAAK,EAAI,MAAS,CAC7G,CAEA,OAAO,YACLL,EACAC,EACe,CACf,IAAMW,EAAS/B,EAAW,YAAYmB,EAAcC,CAAG,EACvD,OAAO,IAAIU,EAAWC,EAAO,OAAO,CAAC,CAAC,CACxC,CACF","names":["MoveVector","_MoveVector","Serializable","values","serializer","bcsBytes","U8","Serialized","numbers","hex","Hex","v","U16","U32","U64","U128","U256","Bool","MoveString","deserializer","cls","length","i","_Serialized","value","Deserializer","vec","_MoveString","fixedStringBytes","MoveOption","_MoveOption","vector"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import{a as t,b as u,c as f,d as r,e as n}from"./chunk-PZ233FIY.mjs";import{b as o,c as i}from"./chunk-VW3WBAAD.mjs";import l from"@moveindustries/movement-client";var a=class{constructor(e){if(e?.fullnode||e?.indexer||e?.faucet||e?.pepper||e?.prover){if(e?.network==="custom")console.info("Note: using CUSTOM network will require queries to lookup ChainId");else if(!e?.network)throw new Error("Custom endpoints require a network to be specified")}this.network=e?.network??"devnet",this.fullnode=e?.fullnode,this.faucet=e?.faucet,this.pepper=e?.pepper,this.prover=e?.prover,this.indexer=e?.indexer,this.client=e?.client??{provider:l},this.clientConfig=e?.clientConfig??{},this.fullnodeConfig=e?.fullnodeConfig??{},this.indexerConfig=e?.indexerConfig??{},this.faucetConfig=e?.faucetConfig??{},this.transactionGenerationConfig=e?.transactionGenerationConfig??{},this.pluginConfig=e?.pluginSettings?{...e.pluginSettings,IGNORE_TRANSACTION_SUBMITTER:!1}:void 0}getRequestUrl(e){switch(e){case"Fullnode":if(this.fullnode!==void 0)return this.fullnode;if(this.network==="custom")throw new Error("Please provide a custom full node url");return u[this.network];case"Faucet":if(this.faucet!==void 0)return this.faucet;if(this.network==="mainnet")throw new Error("There is no mainnet faucet");if(this.network==="custom")throw new Error("Please provide a custom faucet url");return f[this.network];case"Indexer":if(this.indexer!==void 0)return this.indexer;if(this.network==="custom")throw new Error("Please provide a custom indexer url");return t[this.network];case"Pepper":if(this.pepper!==void 0)return this.pepper;if(this.network==="custom")throw new Error("Please provide a custom pepper service url");return r[this.network];case"Prover":if(this.prover!==void 0)return this.prover;if(this.network==="custom")throw new Error("Please provide a custom prover service url");return n[this.network];default:throw Error(`apiType ${e} is not supported`)}}isPepperServiceRequest(e){return r[this.network]===e}isProverServiceRequest(e){return n[this.network]===e}getDefaultMaxGasAmount(){return this.transactionGenerationConfig?.defaultMaxGasAmount??2e5}getDefaultTxnExpirySecFromNow(){return this.transactionGenerationConfig?.defaultTxnExpirySecFromNow??20}setIgnoreTransactionSubmitter(e){this.pluginConfig&&(this.pluginConfig.IGNORE_TRANSACTION_SUBMITTER=e)}getTransactionSubmitter(){if(this.pluginConfig!==void 0&&this.pluginConfig.IGNORE_TRANSACTION_SUBMITTER!==!0)return this.pluginConfig.TRANSACTION_SUBMITTER}};export{a};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
2
|
+
//# sourceMappingURL=chunk-SSTVXHYQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/api/movementConfig.ts"],"sourcesContent":["// Copyright © Move Industries\n// SPDX-License-Identifier: Apache-2.0\n\nimport movementClient from \"@moveindustries/movement-client\";\nimport {\n Client,\n ClientConfig,\n FaucetConfig,\n FullNodeConfig,\n IndexerConfig,\n MovementSettings,\n PluginConfig,\n TransactionGenerationConfig,\n TransactionSubmitter,\n} from \"../types\";\nimport {\n Network,\n NetworkToFaucetAPI,\n NetworkToIndexerAPI,\n NetworkToNodeAPI,\n NetworkToPepperAPI,\n NetworkToProverAPI,\n} from \"../utils/apiEndpoints\";\nimport { DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, MovementApiType } from \"../utils/const\";\n\n/**\n * Represents the configuration settings for an Movement SDK client instance.\n * This class allows customization of various endpoints and client settings.\n *\n * @example\n * ```typescript\n * import { Movement, MovementConfig, Network } from \"@moveindustries/ts-sdk\";\n *\n * async function runExample() {\n * // Create a configuration for connecting to the Movement testnet\n * const config = new MovementConfig({ network: Network.TESTNET });\n *\n * // Initialize the Movement client with the configuration\n * const movement = new Movement(config);\n *\n * console.log(\"Movement client initialized:\", aptos);\n * }\n * runExample().catch(console.error);\n * ```\n * @group Client\n */\nexport class MovementConfig {\n /**\n * The Network that this SDK is associated with. Defaults to DEVNET\n * @group Client\n */\n readonly network: Network;\n\n /**\n * The client instance the SDK uses. Defaults to `@moveindustries/movement-client\n * @group Client\n */\n readonly client: Client;\n\n /**\n * The optional hardcoded fullnode URL to send requests to instead of using the network\n * @group Client\n */\n readonly fullnode?: string;\n\n /**\n * The optional hardcoded faucet URL to send requests to instead of using the network\n * @group Client\n */\n readonly faucet?: string;\n\n /**\n * The optional hardcoded pepper service URL to send requests to instead of using the network\n * @group Client\n */\n readonly pepper?: string;\n\n /**\n * The optional hardcoded prover service URL to send requests to instead of using the network\n * @group Client\n */\n readonly prover?: string;\n\n /**\n * The optional hardcoded indexer URL to send requests to instead of using the network\n * @group Client\n */\n readonly indexer?: string;\n\n /**\n * Optional client configurations\n * @group Client\n */\n readonly clientConfig?: ClientConfig;\n\n /**\n * Optional specific Fullnode configurations\n * @group Client\n */\n readonly fullnodeConfig?: FullNodeConfig;\n\n /**\n * Optional specific Indexer configurations\n * @group Client\n */\n readonly indexerConfig?: IndexerConfig;\n\n /**\n * Optional specific Faucet configurations\n * @group Client\n */\n readonly faucetConfig?: FaucetConfig;\n\n /**\n * Optional specific Transaction Generation configurations\n * @group Client\n */\n readonly transactionGenerationConfig?: TransactionGenerationConfig;\n\n /**\n * Optional plugin config to override client behavior.\n * @group Client\n */\n private pluginConfig?: PluginConfig;\n\n /**\n * Initializes an instance of the Movement client with the specified settings.\n * This allows users to configure various aspects of the client, such as network and endpoints.\n *\n * @param settings - Optional configuration settings for the Movement client.\n * @param settings.network - The network to connect to, defaults to `Network.DEVNET`.\n * @param settings.fullnode - The fullnode endpoint to use for requests.\n * @param settings.faucet - The faucet endpoint for obtaining test tokens.\n * @param settings.pepper - The pepper used for transaction signing.\n * @param settings.prover - The prover endpoint for transaction verification.\n * @param settings.indexer - The indexer endpoint for querying blockchain data.\n * @param settings.client - Custom client settings, defaults to a standard Movement client.\n * @param settings.clientConfig - Additional configuration for the client.\n * @param settings.fullnodeConfig - Additional configuration for the fullnode.\n * @param settings.indexerConfig - Additional configuration for the indexer.\n * @param settings.faucetConfig - Additional configuration for the faucet.\n *\n * @example\n * ```typescript\n * import { Movement, MovementConfig, Network } from \"@moveindustries/ts-sdk\";\n *\n * async function runExample() {\n * // Create a new Movement client with default settings\n * const config = new MovementConfig({ network: Network.TESTNET }); // Specify the network\n * const movement = new Movement(config);\n *\n * console.log(\"Movement client initialized:\", aptos);\n * }\n * runExample().catch(console.error);\n * ```\n * @group Client\n */\n constructor(settings?: MovementSettings) {\n // If there are any endpoint overrides, they are custom networks, keep that in mind\n if (settings?.fullnode || settings?.indexer || settings?.faucet || settings?.pepper || settings?.prover) {\n if (settings?.network === Network.CUSTOM) {\n console.info(\"Note: using CUSTOM network will require queries to lookup ChainId\");\n } else if (!settings?.network) {\n throw new Error(\"Custom endpoints require a network to be specified\");\n }\n }\n\n this.network = settings?.network ?? Network.DEVNET;\n this.fullnode = settings?.fullnode;\n this.faucet = settings?.faucet;\n this.pepper = settings?.pepper;\n this.prover = settings?.prover;\n this.indexer = settings?.indexer;\n this.client = settings?.client ?? { provider: movementClient };\n this.clientConfig = settings?.clientConfig ?? {};\n this.fullnodeConfig = settings?.fullnodeConfig ?? {};\n this.indexerConfig = settings?.indexerConfig ?? {};\n this.faucetConfig = settings?.faucetConfig ?? {};\n this.transactionGenerationConfig = settings?.transactionGenerationConfig ?? {};\n this.pluginConfig = settings?.pluginSettings\n ? {\n ...settings.pluginSettings,\n IGNORE_TRANSACTION_SUBMITTER: false,\n }\n : undefined;\n }\n\n /**\n * Returns the URL endpoint to send the request to based on the specified API type.\n * If a custom URL was provided in the configuration, that URL is returned. Otherwise, the URL endpoint is derived from the network.\n *\n * @param apiType - The type of Movement API to get the URL for. This can be one of the following: FULLNODE, FAUCET, INDEXER, PEPPER, PROVER.\n *\n * @example\n * ```typescript\n * import { Movement, MovementConfig, Network, MovementApiType } from \"@moveindustries/ts-sdk\";\n *\n * const config = new MovementConfig({ network: Network.TESTNET });\n * const movement = new Movement(config);\n *\n * async function runExample() {\n * // Getting the request URL for the FULLNODE API\n * const url = config.getRequestUrl(MovementApiType.FULLNODE);\n * console.log(\"Request URL for FULLNODE:\", url);\n * }\n * runExample().catch(console.error);\n * ```\n * @group Client\n */\n getRequestUrl(apiType: MovementApiType): string {\n switch (apiType) {\n case MovementApiType.FULLNODE:\n if (this.fullnode !== undefined) return this.fullnode;\n if (this.network === Network.CUSTOM) throw new Error(\"Please provide a custom full node url\");\n return NetworkToNodeAPI[this.network];\n case MovementApiType.FAUCET:\n if (this.faucet !== undefined) return this.faucet;\n if (this.network === Network.MAINNET) {\n throw new Error(\"There is no mainnet faucet\");\n }\n if (this.network === Network.CUSTOM) throw new Error(\"Please provide a custom faucet url\");\n return NetworkToFaucetAPI[this.network];\n case MovementApiType.INDEXER:\n if (this.indexer !== undefined) return this.indexer;\n if (this.network === Network.CUSTOM) throw new Error(\"Please provide a custom indexer url\");\n return NetworkToIndexerAPI[this.network];\n case MovementApiType.PEPPER:\n if (this.pepper !== undefined) return this.pepper;\n if (this.network === Network.CUSTOM) throw new Error(\"Please provide a custom pepper service url\");\n return NetworkToPepperAPI[this.network];\n case MovementApiType.PROVER:\n if (this.prover !== undefined) return this.prover;\n if (this.network === Network.CUSTOM) throw new Error(\"Please provide a custom prover service url\");\n return NetworkToProverAPI[this.network];\n default:\n throw Error(`apiType ${apiType} is not supported`);\n }\n }\n\n /**\n * Checks if the provided URL is a known pepper service endpoint.\n *\n * @param url - The URL to check against the known pepper service endpoints.\n *\n * @example\n * ```typescript\n * import { Movement, MovementConfig, Network } from \"@moveindustries/ts-sdk\";\n *\n * const config = new MovementConfig({ network: Network.TESTNET });\n * const movement = new Movement(config);\n *\n * async function runExample() {\n * const url = \"https://example.pepper.service\"; // replace with a real pepper service URL\n *\n * // Check if the URL is a known pepper service endpoint\n * const isPepperService = config.isPepperServiceRequest(url);\n *\n * console.log(`Is the URL a known pepper service? ${isPepperService}`);\n * }\n * runExample().catch(console.error);\n * ```\n * @group Client\n */\n isPepperServiceRequest(url: string): boolean {\n return NetworkToPepperAPI[this.network] === url;\n }\n\n /**\n * Checks if the provided URL is a known prover service endpoint.\n *\n * @param url - The URL to check against known prover service endpoints.\n * @returns A boolean indicating whether the URL is a known prover service endpoint.\n *\n * @example\n * ```typescript\n * import { Movement, MovementConfig, Network } from \"@moveindustries/ts-sdk\";\n *\n * const config = new MovementConfig({ network: Network.TESTNET });\n * const movement = new Movement(config);\n *\n * // Check if the URL is a known prover service endpoint\n * const url = \"https://prover.testnet.movement.dev\"; // replace with a real URL if needed\n * const isProver = config.isProverServiceRequest(url);\n *\n * console.log(`Is the URL a known prover service? ${isProver}`);\n * ```\n * @group Client\n */\n isProverServiceRequest(url: string): boolean {\n return NetworkToProverAPI[this.network] === url;\n }\n\n getDefaultMaxGasAmount(): number {\n return this.transactionGenerationConfig?.defaultMaxGasAmount ?? DEFAULT_MAX_GAS_AMOUNT;\n }\n\n getDefaultTxnExpirySecFromNow(): number {\n return this.transactionGenerationConfig?.defaultTxnExpirySecFromNow ?? DEFAULT_TXN_EXP_SEC_FROM_NOW;\n }\n\n /**\n * If you have set a custom transaction submitter, you can use this to determine\n * whether to use it or not. For example, to stop using the transaction submitter:\n *\n * @example\n * ```\n * movement.config.setIgnoreTransactionSubmitter(true);\n * ```\n *\n * @group Client\n */\n setIgnoreTransactionSubmitter(ignore: boolean) {\n if (this.pluginConfig) {\n this.pluginConfig.IGNORE_TRANSACTION_SUBMITTER = ignore;\n }\n }\n\n /**\n * If a custom transaction submitter has been specified in the PluginConfig and\n * IGNORE_TRANSACTION_SUBMITTER is false, this will return a transaction submitter\n * that should be used instead of the default transaction submission behavior.\n */\n getTransactionSubmitter(): TransactionSubmitter | undefined {\n if (this.pluginConfig === undefined) {\n return undefined;\n }\n\n if (this.pluginConfig.IGNORE_TRANSACTION_SUBMITTER === true) {\n return undefined;\n }\n\n return this.pluginConfig.TRANSACTION_SUBMITTER;\n }\n}\n"],"mappings":"qHAGA,OAAOA,MAAoB,kCA2CpB,IAAMC,EAAN,KAAqB,CA+G1B,YAAYC,EAA6B,CAEvC,GAAIA,GAAU,UAAYA,GAAU,SAAWA,GAAU,QAAUA,GAAU,QAAUA,GAAU,QAC/F,GAAIA,GAAU,UAAY,SACxB,QAAQ,KAAK,mEAAmE,UACvE,CAACA,GAAU,QACpB,MAAM,IAAI,MAAM,oDAAoD,EAIxE,KAAK,QAAUA,GAAU,SAAW,SACpC,KAAK,SAAWA,GAAU,SAC1B,KAAK,OAASA,GAAU,OACxB,KAAK,OAASA,GAAU,OACxB,KAAK,OAASA,GAAU,OACxB,KAAK,QAAUA,GAAU,QACzB,KAAK,OAASA,GAAU,QAAU,CAAE,SAAUC,CAAe,EAC7D,KAAK,aAAeD,GAAU,cAAgB,CAAC,EAC/C,KAAK,eAAiBA,GAAU,gBAAkB,CAAC,EACnD,KAAK,cAAgBA,GAAU,eAAiB,CAAC,EACjD,KAAK,aAAeA,GAAU,cAAgB,CAAC,EAC/C,KAAK,4BAA8BA,GAAU,6BAA+B,CAAC,EAC7E,KAAK,aAAeA,GAAU,eAC1B,CACE,GAAGA,EAAS,eACZ,6BAA8B,EAChC,EACA,MACN,CAwBA,cAAcE,EAAkC,CAC9C,OAAQA,EAAS,CACf,eACE,GAAI,KAAK,WAAa,OAAW,OAAO,KAAK,SAC7C,GAAI,KAAK,UAAY,SAAgB,MAAM,IAAI,MAAM,uCAAuC,EAC5F,OAAOC,EAAiB,KAAK,OAAO,EACtC,aACE,GAAI,KAAK,SAAW,OAAW,OAAO,KAAK,OAC3C,GAAI,KAAK,UAAY,UACnB,MAAM,IAAI,MAAM,4BAA4B,EAE9C,GAAI,KAAK,UAAY,SAAgB,MAAM,IAAI,MAAM,oCAAoC,EACzF,OAAOC,EAAmB,KAAK,OAAO,EACxC,cACE,GAAI,KAAK,UAAY,OAAW,OAAO,KAAK,QAC5C,GAAI,KAAK,UAAY,SAAgB,MAAM,IAAI,MAAM,qCAAqC,EAC1F,OAAOC,EAAoB,KAAK,OAAO,EACzC,aACE,GAAI,KAAK,SAAW,OAAW,OAAO,KAAK,OAC3C,GAAI,KAAK,UAAY,SAAgB,MAAM,IAAI,MAAM,4CAA4C,EACjG,OAAOC,EAAmB,KAAK,OAAO,EACxC,aACE,GAAI,KAAK,SAAW,OAAW,OAAO,KAAK,OAC3C,GAAI,KAAK,UAAY,SAAgB,MAAM,IAAI,MAAM,4CAA4C,EACjG,OAAOC,EAAmB,KAAK,OAAO,EACxC,QACE,MAAM,MAAM,WAAWL,CAAO,mBAAmB,CACrD,CACF,CA0BA,uBAAuBM,EAAsB,CAC3C,OAAOF,EAAmB,KAAK,OAAO,IAAME,CAC9C,CAuBA,uBAAuBA,EAAsB,CAC3C,OAAOD,EAAmB,KAAK,OAAO,IAAMC,CAC9C,CAEA,wBAAiC,CAC/B,OAAO,KAAK,6BAA6B,qBAAuB,GAClE,CAEA,+BAAwC,CACtC,OAAO,KAAK,6BAA6B,4BAA8B,EACzE,CAaA,8BAA8BC,EAAiB,CACzC,KAAK,eACP,KAAK,aAAa,6BAA+BA,EAErD,CAOA,yBAA4D,CAC1D,GAAI,KAAK,eAAiB,QAItB,KAAK,aAAa,+BAAiC,GAIvD,OAAO,KAAK,aAAa,qBAC3B,CACF","names":["movementClient","MovementConfig","settings","movementClient","apiType","NetworkToNodeAPI","NetworkToFaucetAPI","NetworkToIndexerAPI","NetworkToPepperAPI","NetworkToProverAPI","url","ignore"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as p}from"./chunk-
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{b as p}from"./chunk-QMRVGJFC.mjs";async function i(e){let{movementConfig:t,overrides:s,params:r,contentType:n,acceptType:a,path:m,originMethod:o,type:u}=e,R=t.getRequestUrl(u);return p({url:R,method:"GET",originMethod:o,path:m,contentType:n,acceptType:a,params:r,overrides:{...t.clientConfig,...s}},t,e.type)}async function y(e){let{movementConfig:t}=e;return i({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function l(e){return i({...e,type:"Pepper"})}async function q(e){let t=new Array(0),s,r=e.params;do{let n=await i({type:"Fullnode",movementConfig:e.movementConfig,originMethod:e.originMethod,path:e.path,params:r,overrides:e.overrides});s=n.headers["x-aptos-cursor"],delete n.headers,t.push(...n.data),r.start=s}while(s!=null);return t}async function v(e){let t=new Array(0),s,r=e.params,n=r.limit;do{let{response:a,cursor:m}=await d({...e});if(s=m,t.push(...a.data),e?.params&&(e.params.start=s),n!==void 0){let o=n-t.length;if(o<=0)break;r.limit=o}}while(s!=null);return t}async function d(e){let t,s={};typeof e.params?.cursor=="string"&&(s.start=e.params.cursor),typeof e.params?.limit=="number"&&(s.limit=e.params.limit);let r=await i({type:"Fullnode",movementConfig:e.movementConfig,originMethod:e.originMethod,path:e.path,params:s,overrides:e.overrides});return t=r.headers["x-aptos-cursor"],{response:r,cursor:t}}export{i as a,y as b,l as c,q as d,v as e,d as f};
|
|
2
|
+
//# sourceMappingURL=chunk-YXS3R2MX.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{n as m,x as s}from"./chunk-UL777LTI.mjs";import{
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{n as m,x as s}from"./chunk-UL777LTI.mjs";import{c}from"./chunk-HX7XBUOY.mjs";import{b as a}from"./chunk-YXS3R2MX.mjs";async function y(e){let{movementConfig:o}=e,{data:t}=await a({movementConfig:o,originMethod:"getLedgerInfo",path:""});return t}async function d(e){let{movementConfig:o,limit:t}=e;return(await i({movementConfig:o,query:{query:m,variables:{limit:t}},originMethod:"getChainTopUserTransactions"})).user_transactions}async function i(e){let{movementConfig:o,query:t,originMethod:r}=e,{data:n}=await c({movementConfig:o,originMethod:r??"queryIndexer",path:"",body:t,overrides:{WITH_CREDENTIALS:!1}});return n}async function u(e){let{movementConfig:o}=e;return(await i({movementConfig:o,query:{query:s},originMethod:"getProcessorStatuses"})).processor_status}async function C(e){let o=await u({movementConfig:e.movementConfig});return BigInt(o[0].last_success_version)}async function h(e){let{movementConfig:o,processorType:t}=e;return(await i({movementConfig:o,query:{query:s,variables:{where_condition:{processor:{_eq:t}}}},originMethod:"getProcessorStatus"})).processor_status[0]}export{y as a,d as b,i as c,u as d,C as e,h as f};
|
|
2
|
+
//# sourceMappingURL=chunk-ZUWARBWT.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/internal/general.ts"],"sourcesContent":["// Copyright © Move Industries\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/general}. By moving the methods out into a separate file,\n * other namespaces and processes can access these methods without depending on the entire\n * general namespace and without having a dependency cycle error.\n * @group Implementation\n */\n\nimport { MovementConfig } from \"../api/movementConfig\";\nimport { getAptosFullNode, postAptosIndexer } from \"../client\";\nimport { GetChainTopUserTransactionsResponse, GetProcessorStatusResponse, GraphqlQuery, LedgerInfo } from \"../types\";\nimport { GetChainTopUserTransactionsQuery, GetProcessorStatusQuery } from \"../types/generated/operations\";\nimport { GetChainTopUserTransactions, GetProcessorStatus } from \"../types/generated/queries\";\nimport { ProcessorType } from \"../utils/const\";\n\n/**\n * Retrieves information about the current ledger.\n *\n * @param args - The arguments for retrieving ledger information.\n * @param args.movementConfig - The configuration object for connecting to the Movement network.\n * @group Implementation\n */\nexport async function getLedgerInfo(args: { movementConfig: MovementConfig }): Promise<LedgerInfo> {\n const { movementConfig } = args;\n const { data } = await getAptosFullNode<{}, LedgerInfo>({\n movementConfig,\n originMethod: \"getLedgerInfo\",\n path: \"\",\n });\n return data;\n}\n\n/**\n * Retrieves the top user transactions for a specific blockchain chain.\n *\n * @param args - The arguments for the function.\n * @param args.movementConfig - The configuration object for Movement.\n * @param args.limit - The maximum number of transactions to retrieve.\n * @returns An array of user transactions.\n * @group Implementation\n */\nexport async function getChainTopUserTransactions(args: {\n movementConfig: MovementConfig;\n limit: number;\n}): Promise<GetChainTopUserTransactionsResponse> {\n const { movementConfig, limit } = args;\n const graphqlQuery = {\n query: GetChainTopUserTransactions,\n variables: { limit },\n };\n\n const data = await queryIndexer<GetChainTopUserTransactionsQuery>({\n movementConfig,\n query: graphqlQuery,\n originMethod: \"getChainTopUserTransactions\",\n });\n\n return data.user_transactions;\n}\n\n/**\n * Executes a GraphQL query against the Movement indexer and retrieves the resulting data.\n *\n * @param args - The arguments for the query.\n * @param args.movementConfig - The configuration settings for the Movement client.\n * @param args.query - The GraphQL query to be executed.\n * @param args.originMethod - An optional string to specify the origin method for tracking purposes.\n * @returns The data returned from the query execution.\n * @group Implementation\n */\nexport async function queryIndexer<T extends {}>(args: {\n movementConfig: MovementConfig;\n query: GraphqlQuery;\n originMethod?: string;\n}): Promise<T> {\n const { movementConfig, query, originMethod } = args;\n const { data } = await postAptosIndexer<GraphqlQuery, T>({\n movementConfig,\n originMethod: originMethod ?? \"queryIndexer\",\n path: \"\",\n body: query,\n overrides: { WITH_CREDENTIALS: false },\n });\n return data;\n}\n\n/**\n * Retrieves the current statuses of processors.\n *\n * @param args - The arguments for the function.\n * @param args.movementConfig - The configuration object for Movement.\n * @returns The statuses of the processors.\n * @group Implementation\n */\nexport async function getProcessorStatuses(args: {
|
|
1
|
+
{"version":3,"sources":["../../src/internal/general.ts"],"sourcesContent":["// Copyright © Move Industries\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/general}. By moving the methods out into a separate file,\n * other namespaces and processes can access these methods without depending on the entire\n * general namespace and without having a dependency cycle error.\n * @group Implementation\n */\n\nimport { MovementConfig } from \"../api/movementConfig\";\nimport { getAptosFullNode, postAptosIndexer } from \"../client\";\nimport { GetChainTopUserTransactionsResponse, GetProcessorStatusResponse, GraphqlQuery, LedgerInfo } from \"../types\";\nimport { GetChainTopUserTransactionsQuery, GetProcessorStatusQuery } from \"../types/generated/operations\";\nimport { GetChainTopUserTransactions, GetProcessorStatus } from \"../types/generated/queries\";\nimport { ProcessorType } from \"../utils/const\";\n\n/**\n * Retrieves information about the current ledger.\n *\n * @param args - The arguments for retrieving ledger information.\n * @param args.movementConfig - The configuration object for connecting to the Movement network.\n * @group Implementation\n */\nexport async function getLedgerInfo(args: { movementConfig: MovementConfig }): Promise<LedgerInfo> {\n const { movementConfig } = args;\n const { data } = await getAptosFullNode<{}, LedgerInfo>({\n movementConfig,\n originMethod: \"getLedgerInfo\",\n path: \"\",\n });\n return data;\n}\n\n/**\n * Retrieves the top user transactions for a specific blockchain chain.\n *\n * @param args - The arguments for the function.\n * @param args.movementConfig - The configuration object for Movement.\n * @param args.limit - The maximum number of transactions to retrieve.\n * @returns An array of user transactions.\n * @group Implementation\n */\nexport async function getChainTopUserTransactions(args: {\n movementConfig: MovementConfig;\n limit: number;\n}): Promise<GetChainTopUserTransactionsResponse> {\n const { movementConfig, limit } = args;\n const graphqlQuery = {\n query: GetChainTopUserTransactions,\n variables: { limit },\n };\n\n const data = await queryIndexer<GetChainTopUserTransactionsQuery>({\n movementConfig,\n query: graphqlQuery,\n originMethod: \"getChainTopUserTransactions\",\n });\n\n return data.user_transactions;\n}\n\n/**\n * Executes a GraphQL query against the Movement indexer and retrieves the resulting data.\n *\n * @param args - The arguments for the query.\n * @param args.movementConfig - The configuration settings for the Movement client.\n * @param args.query - The GraphQL query to be executed.\n * @param args.originMethod - An optional string to specify the origin method for tracking purposes.\n * @returns The data returned from the query execution.\n * @group Implementation\n */\nexport async function queryIndexer<T extends {}>(args: {\n movementConfig: MovementConfig;\n query: GraphqlQuery;\n originMethod?: string;\n}): Promise<T> {\n const { movementConfig, query, originMethod } = args;\n const { data } = await postAptosIndexer<GraphqlQuery, T>({\n movementConfig,\n originMethod: originMethod ?? \"queryIndexer\",\n path: \"\",\n body: query,\n overrides: { WITH_CREDENTIALS: false },\n });\n return data;\n}\n\n/**\n * Retrieves the current statuses of processors.\n *\n * @param args - The arguments for the function.\n * @param args.movementConfig - The configuration object for Movement.\n * @returns The statuses of the processors.\n * @group Implementation\n */\nexport async function getProcessorStatuses(args: {\n movementConfig: MovementConfig;\n}): Promise<GetProcessorStatusResponse> {\n const { movementConfig } = args;\n\n const graphqlQuery = {\n query: GetProcessorStatus,\n };\n\n const data = await queryIndexer<GetProcessorStatusQuery>({\n movementConfig,\n query: graphqlQuery,\n originMethod: \"getProcessorStatuses\",\n });\n\n return data.processor_status;\n}\n\n/**\n * Retrieves the last success version from the indexer.\n *\n * @param args - The arguments for the function.\n * @param args.movementConfig - The configuration object for Movement.\n * @returns The last success version as a BigInt.\n * @group Implementation\n */\nexport async function getIndexerLastSuccessVersion(args: { movementConfig: MovementConfig }): Promise<bigint> {\n const response = await getProcessorStatuses({ movementConfig: args.movementConfig });\n return BigInt(response[0].last_success_version);\n}\n\n/**\n * Retrieves the status of a specified processor in the Movement network.\n * This function allows you to check the current operational status of a processor, which can be useful for monitoring and troubleshooting.\n *\n * @param args - The arguments for the function.\n * @param args.movementConfig - The configuration object for connecting to the Movement network.\n * @param args.processorType - The type of processor whose status you want to retrieve.\n * @returns The status of the specified processor.\n * @group Implementation\n */\nexport async function getProcessorStatus(args: {\n movementConfig: MovementConfig;\n processorType: ProcessorType;\n}): Promise<GetProcessorStatusResponse[0]> {\n const { movementConfig, processorType } = args;\n\n const whereCondition: { processor: { _eq: string } } = {\n processor: { _eq: processorType },\n };\n\n const graphqlQuery = {\n query: GetProcessorStatus,\n variables: {\n where_condition: whereCondition,\n },\n };\n\n const data = await queryIndexer<GetProcessorStatusQuery>({\n movementConfig,\n query: graphqlQuery,\n originMethod: \"getProcessorStatus\",\n });\n\n return data.processor_status[0];\n}\n"],"mappings":"6HAyBA,eAAsBA,EAAcC,EAA+D,CACjG,GAAM,CAAE,eAAAC,CAAe,EAAID,EACrB,CAAE,KAAAE,CAAK,EAAI,MAAMC,EAAiC,CACtD,eAAAF,EACA,aAAc,gBACd,KAAM,EACR,CAAC,EACD,OAAOC,CACT,CAWA,eAAsBE,EAA4BJ,EAGD,CAC/C,GAAM,CAAE,eAAAC,EAAgB,MAAAI,CAAM,EAAIL,EAYlC,OANa,MAAMM,EAA+C,CAChE,eAAAL,EACA,MAPmB,CACnB,MAAOM,EACP,UAAW,CAAE,MAAAF,CAAM,CACrB,EAKE,aAAc,6BAChB,CAAC,GAEW,iBACd,CAYA,eAAsBC,EAA2BN,EAIlC,CACb,GAAM,CAAE,eAAAC,EAAgB,MAAAO,EAAO,aAAAC,CAAa,EAAIT,EAC1C,CAAE,KAAAE,CAAK,EAAI,MAAMQ,EAAkC,CACvD,eAAAT,EACA,aAAcQ,GAAgB,eAC9B,KAAM,GACN,KAAMD,EACN,UAAW,CAAE,iBAAkB,EAAM,CACvC,CAAC,EACD,OAAON,CACT,CAUA,eAAsBS,EAAqBX,EAEH,CACtC,GAAM,CAAE,eAAAC,CAAe,EAAID,EAY3B,OANa,MAAMM,EAAsC,CACvD,eAAAL,EACA,MANmB,CACnB,MAAOW,CACT,EAKE,aAAc,sBAChB,CAAC,GAEW,gBACd,CAUA,eAAsBC,EAA6Bb,EAA2D,CAC5G,IAAMc,EAAW,MAAMH,EAAqB,CAAE,eAAgBX,EAAK,cAAe,CAAC,EACnF,OAAO,OAAOc,EAAS,CAAC,EAAE,oBAAoB,CAChD,CAYA,eAAsBC,EAAmBf,EAGE,CACzC,GAAM,CAAE,eAAAC,EAAgB,cAAAe,CAAc,EAAIhB,EAmB1C,OANa,MAAMM,EAAsC,CACvD,eAAAL,EACA,MATmB,CACnB,MAAOW,EACP,UAAW,CACT,gBAPmD,CACrD,UAAW,CAAE,IAAKI,CAAc,CAClC,CAME,CACF,EAKE,aAAc,oBAChB,CAAC,GAEW,iBAAiB,CAAC,CAChC","names":["getLedgerInfo","args","movementConfig","data","getAptosFullNode","getChainTopUserTransactions","limit","queryIndexer","GetChainTopUserTransactions","query","originMethod","postAptosIndexer","getProcessorStatuses","GetProcessorStatus","getIndexerLastSuccessVersion","response","getProcessorStatus","processorType"]}
|
package/dist/esm/cli/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as o}from"../chunk-
|
|
1
|
+
import{a as o}from"../chunk-FPHA2UD2.mjs";import{a as r}from"../chunk-K4NT6TTN.mjs";import"../chunk-WFAH73WN.mjs";import"../chunk-Y6YW4BAZ.mjs";import"../chunk-DS6QB6HG.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-YOHEYPDP.mjs";import"../chunk-SRXFRTHK.mjs";import"../chunk-5IMQPJ6J.mjs";import"../chunk-RL4YPMN4.mjs";import"../chunk-UI4OF6CP.mjs";import"../chunk-KDMSOCZY.mjs";export{o as LocalNode,r as Move};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../chunk-
|
|
1
|
+
import{a}from"../chunk-FPHA2UD2.mjs";import"../chunk-WFAH73WN.mjs";import"../chunk-Y6YW4BAZ.mjs";import"../chunk-DS6QB6HG.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-YOHEYPDP.mjs";import"../chunk-SRXFRTHK.mjs";import"../chunk-5IMQPJ6J.mjs";import"../chunk-RL4YPMN4.mjs";import"../chunk-UI4OF6CP.mjs";import"../chunk-KDMSOCZY.mjs";export{a as LocalNode};
|
|
2
2
|
//# sourceMappingURL=localNode.mjs.map
|
package/dist/esm/client/core.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../chunk-
|
|
1
|
+
import{a,b}from"../chunk-QMRVGJFC.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-ANTEUWH6.mjs";import"../chunk-74X3LBZR.mjs";import"../chunk-WFAH73WN.mjs";import"../chunk-Y6YW4BAZ.mjs";import"../chunk-DS6QB6HG.mjs";import"../chunk-PZ233FIY.mjs";import"../chunk-VW3WBAAD.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-SLXLZU5N.mjs";import"../chunk-6NO4QKAO.mjs";import"../chunk-FS5ZJKO7.mjs";import"../chunk-XCURF77K.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-YOHEYPDP.mjs";import"../chunk-RXHPS4IU.mjs";import"../chunk-SRXFRTHK.mjs";import"../chunk-5IMQPJ6J.mjs";import"../chunk-RL4YPMN4.mjs";import"../chunk-UI4OF6CP.mjs";import"../chunk-LZ24RPY3.mjs";import"../chunk-KDMSOCZY.mjs";export{b as aptosRequest,a as request};
|
|
2
2
|
//# sourceMappingURL=core.mjs.map
|
package/dist/esm/client/get.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"../chunk-YXS3R2MX.mjs";import"../chunk-QMRVGJFC.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-ANTEUWH6.mjs";import"../chunk-74X3LBZR.mjs";import"../chunk-WFAH73WN.mjs";import"../chunk-Y6YW4BAZ.mjs";import"../chunk-DS6QB6HG.mjs";import"../chunk-PZ233FIY.mjs";import"../chunk-VW3WBAAD.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-SLXLZU5N.mjs";import"../chunk-6NO4QKAO.mjs";import"../chunk-FS5ZJKO7.mjs";import"../chunk-XCURF77K.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-YOHEYPDP.mjs";import"../chunk-RXHPS4IU.mjs";import"../chunk-SRXFRTHK.mjs";import"../chunk-5IMQPJ6J.mjs";import"../chunk-RL4YPMN4.mjs";import"../chunk-UI4OF6CP.mjs";import"../chunk-LZ24RPY3.mjs";import"../chunk-KDMSOCZY.mjs";export{a as get,b as getAptosFullNode,c as getAptosPepperService,f as getPageWithObfuscatedCursor,d as paginateWithCursor,e as paginateWithObfuscatedCursor};
|
|
2
2
|
//# sourceMappingURL=get.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import"../chunk-7ECCT6PK.mjs";import{a as
|
|
1
|
+
import"../chunk-7ECCT6PK.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n}from"../chunk-HX7XBUOY.mjs";import{a as c,b as d,c as e,d as f,e as g,f as h}from"../chunk-YXS3R2MX.mjs";import{a,b}from"../chunk-QMRVGJFC.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-ANTEUWH6.mjs";import"../chunk-74X3LBZR.mjs";import"../chunk-WFAH73WN.mjs";import"../chunk-Y6YW4BAZ.mjs";import"../chunk-DS6QB6HG.mjs";import"../chunk-PZ233FIY.mjs";import"../chunk-VW3WBAAD.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-SLXLZU5N.mjs";import"../chunk-6NO4QKAO.mjs";import"../chunk-FS5ZJKO7.mjs";import"../chunk-XCURF77K.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-YOHEYPDP.mjs";import"../chunk-RXHPS4IU.mjs";import"../chunk-SRXFRTHK.mjs";import"../chunk-5IMQPJ6J.mjs";import"../chunk-RL4YPMN4.mjs";import"../chunk-UI4OF6CP.mjs";import"../chunk-LZ24RPY3.mjs";import"../chunk-KDMSOCZY.mjs";export{b as aptosRequest,c as get,d as getAptosFullNode,e as getAptosPepperService,h as getPageWithObfuscatedCursor,f as paginateWithCursor,g as paginateWithObfuscatedCursor,i as post,l as postAptosFaucet,j as postAptosFullNode,k as postAptosIndexer,m as postAptosPepperService,n as postAptosProvingService,a as request};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
package/dist/esm/client/post.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d,e,f}from"../chunk-
|
|
1
|
+
import{a,b,c,d,e,f}from"../chunk-HX7XBUOY.mjs";import"../chunk-QMRVGJFC.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-ANTEUWH6.mjs";import"../chunk-74X3LBZR.mjs";import"../chunk-WFAH73WN.mjs";import"../chunk-Y6YW4BAZ.mjs";import"../chunk-DS6QB6HG.mjs";import"../chunk-PZ233FIY.mjs";import"../chunk-VW3WBAAD.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-SLXLZU5N.mjs";import"../chunk-6NO4QKAO.mjs";import"../chunk-FS5ZJKO7.mjs";import"../chunk-XCURF77K.mjs";import"../chunk-FD6FGKYY.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-YOHEYPDP.mjs";import"../chunk-RXHPS4IU.mjs";import"../chunk-SRXFRTHK.mjs";import"../chunk-5IMQPJ6J.mjs";import"../chunk-RL4YPMN4.mjs";import"../chunk-UI4OF6CP.mjs";import"../chunk-LZ24RPY3.mjs";import"../chunk-KDMSOCZY.mjs";export{a as post,d as postAptosFaucet,b as postAptosFullNode,c as postAptosIndexer,e as postAptosPepperService,f as postAptosProvingService};
|
|
2
2
|
//# sourceMappingURL=post.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-PG4MJ3CJ.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-PG4MJ3CJ.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-KDMSOCZY.mjs";export{b as AbstractPublicKey,a as AbstractSignature};
|
|
2
2
|
//# sourceMappingURL=abstraction.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-LVNME34X.mjs";import"../../chunk-7AJK3QMK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-WVDICMU4.mjs";import"../../chunk-2KDUIZKB.mjs";import"../../chunk-ESZIZDLP.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-POOO2OP5.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-OOOAVIMQ.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-PG4MJ3CJ.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-7TTTMBAK.mjs";import"../../chunk-2QTV4AOE.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-E3O3YOFD.mjs";import"../../chunk-Q2IJWWWU.mjs";import"../../chunk-GTWNSTVB.mjs";import"../../chunk-Q55N5DU3.mjs";import"../../chunk-5ZKA765G.mjs";import"../../chunk-ZUWARBWT.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-HX7XBUOY.mjs";import"../../chunk-YXS3R2MX.mjs";import"../../chunk-QMRVGJFC.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-ANTEUWH6.mjs";import"../../chunk-74X3LBZR.mjs";import"../../chunk-WFAH73WN.mjs";import"../../chunk-Y6YW4BAZ.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-SSTVXHYQ.mjs";import"../../chunk-PZ233FIY.mjs";import"../../chunk-VW3WBAAD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-LZ24RPY3.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as deserializePublicKey,b as deserializeSignature};
|
|
2
2
|
//# sourceMappingURL=deserializationUtils.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{R as a,S as b,T as c,U as d}from"../../chunk-
|
|
1
|
+
import{R as a,S as b,T as c,U as d}from"../../chunk-LVNME34X.mjs";import"../../chunk-7AJK3QMK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-WVDICMU4.mjs";import"../../chunk-2KDUIZKB.mjs";import"../../chunk-ESZIZDLP.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-POOO2OP5.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-OOOAVIMQ.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-PG4MJ3CJ.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-7TTTMBAK.mjs";import"../../chunk-2QTV4AOE.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-E3O3YOFD.mjs";import"../../chunk-Q2IJWWWU.mjs";import"../../chunk-GTWNSTVB.mjs";import"../../chunk-Q55N5DU3.mjs";import"../../chunk-5ZKA765G.mjs";import"../../chunk-ZUWARBWT.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-HX7XBUOY.mjs";import"../../chunk-YXS3R2MX.mjs";import"../../chunk-QMRVGJFC.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-ANTEUWH6.mjs";import"../../chunk-74X3LBZR.mjs";import"../../chunk-WFAH73WN.mjs";import"../../chunk-Y6YW4BAZ.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-SSTVXHYQ.mjs";import"../../chunk-PZ233FIY.mjs";import"../../chunk-VW3WBAAD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-LZ24RPY3.mjs";import"../../chunk-KDMSOCZY.mjs";export{c as Ed25519PrivateKey,b as Ed25519PublicKey,d as Ed25519Signature,a as isCanonicalEd25519Signature};
|
|
2
2
|
//# sourceMappingURL=ed25519.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{c as a,d as b}from"../../chunk-
|
|
1
|
+
import{c as a,d as b}from"../../chunk-LVNME34X.mjs";import"../../chunk-7AJK3QMK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-WVDICMU4.mjs";import"../../chunk-2KDUIZKB.mjs";import"../../chunk-ESZIZDLP.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-POOO2OP5.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-OOOAVIMQ.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-PG4MJ3CJ.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-7TTTMBAK.mjs";import"../../chunk-2QTV4AOE.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-E3O3YOFD.mjs";import"../../chunk-Q2IJWWWU.mjs";import"../../chunk-GTWNSTVB.mjs";import"../../chunk-Q55N5DU3.mjs";import"../../chunk-5ZKA765G.mjs";import"../../chunk-ZUWARBWT.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-HX7XBUOY.mjs";import"../../chunk-YXS3R2MX.mjs";import"../../chunk-QMRVGJFC.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-ANTEUWH6.mjs";import"../../chunk-74X3LBZR.mjs";import"../../chunk-WFAH73WN.mjs";import"../../chunk-Y6YW4BAZ.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-SSTVXHYQ.mjs";import"../../chunk-PZ233FIY.mjs";import"../../chunk-VW3WBAAD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-LZ24RPY3.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as EphemeralPublicKey,b as EphemeralSignature};
|
|
2
2
|
//# sourceMappingURL=ephemeral.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{D as a}from"../../chunk-
|
|
1
|
+
import{D as a}from"../../chunk-LVNME34X.mjs";import"../../chunk-7AJK3QMK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-WVDICMU4.mjs";import"../../chunk-2KDUIZKB.mjs";import"../../chunk-ESZIZDLP.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-POOO2OP5.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-OOOAVIMQ.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-PG4MJ3CJ.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-7TTTMBAK.mjs";import"../../chunk-2QTV4AOE.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-E3O3YOFD.mjs";import"../../chunk-Q2IJWWWU.mjs";import"../../chunk-GTWNSTVB.mjs";import"../../chunk-Q55N5DU3.mjs";import"../../chunk-5ZKA765G.mjs";import"../../chunk-ZUWARBWT.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-HX7XBUOY.mjs";import"../../chunk-YXS3R2MX.mjs";import"../../chunk-QMRVGJFC.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-ANTEUWH6.mjs";import"../../chunk-74X3LBZR.mjs";import"../../chunk-WFAH73WN.mjs";import"../../chunk-Y6YW4BAZ.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-SSTVXHYQ.mjs";import"../../chunk-PZ233FIY.mjs";import"../../chunk-VW3WBAAD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-LZ24RPY3.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as FederatedKeylessPublicKey};
|
|
2
2
|
//# sourceMappingURL=federatedKeyless.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as V,B as W,C as X,D as Y,E as Z,F as _,G as $,H as ea,I as fa,J as ga,K as ha,L as ia,M as ja,N as ka,R as la,S as ma,T as na,U as oa,a as f,b as g,c as s,d as t,e as z,f as A,g as B,h as C,i as D,j as E,k as F,l as G,m as H,n as I,o as J,p as K,q as L,r as M,s as N,t as O,u as P,v as Q,w as R,x as S,y as T,z as U}from"../../chunk-
|
|
1
|
+
import{A as V,B as W,C as X,D as Y,E as Z,F as _,G as $,H as ea,I as fa,J as ga,K as ha,L as ia,M as ja,N as ka,R as la,S as ma,T as na,U as oa,a as f,b as g,c as s,d as t,e as z,f as A,g as B,h as C,i as D,j as E,k as F,l as G,m as H,n as I,o as J,p as K,q as L,r as M,s as N,t as O,u as P,v as Q,w as R,x as S,y as T,z as U}from"../../chunk-LVNME34X.mjs";import"../../chunk-7AJK3QMK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-WVDICMU4.mjs";import"../../chunk-2KDUIZKB.mjs";import{a as aa,b as ba,c as ca,d as da}from"../../chunk-ESZIZDLP.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-POOO2OP5.mjs";import{a as u,b as v,c as w,d as x,e as y}from"../../chunk-GOXRBEIJ.mjs";import{a as r}from"../../chunk-D6HPXGEP.mjs";import"../../chunk-OOOAVIMQ.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import{a as d,b as e}from"../../chunk-PG4MJ3CJ.mjs";import{a as c}from"../../chunk-CHWDP6AR.mjs";import{a,b}from"../../chunk-VEZCMPUG.mjs";import{a as h,b as i,c as j,d as k,e as l,f as m,g as n,h as o,i as p,j as q}from"../../chunk-7TTTMBAK.mjs";import"../../chunk-2QTV4AOE.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-E3O3YOFD.mjs";import"../../chunk-Q2IJWWWU.mjs";import"../../chunk-GTWNSTVB.mjs";import"../../chunk-Q55N5DU3.mjs";import"../../chunk-5ZKA765G.mjs";import"../../chunk-ZUWARBWT.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-HX7XBUOY.mjs";import"../../chunk-YXS3R2MX.mjs";import"../../chunk-QMRVGJFC.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-ANTEUWH6.mjs";import"../../chunk-74X3LBZR.mjs";import"../../chunk-WFAH73WN.mjs";import"../../chunk-Y6YW4BAZ.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-SSTVXHYQ.mjs";import"../../chunk-PZ233FIY.mjs";import"../../chunk-VW3WBAAD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-LZ24RPY3.mjs";import"../../chunk-KDMSOCZY.mjs";export{ga as AbstractMultiKey,e as AbstractPublicKey,d as AbstractSignature,b as AccountPublicKey,ea as AnyPublicKey,fa as AnySignature,o as CKDPriv,z as EPK_HORIZON_SECS,na as Ed25519PrivateKey,ma as Ed25519PublicKey,oa as Ed25519Signature,M as EphemeralCertificate,s as EphemeralPublicKey,t as EphemeralSignature,Y as FederatedKeylessPublicKey,O as Groth16ProofAndStatement,S as Groth16VerificationKey,N as Groth16Zkp,k as HARDENED_OFFSET,j as KeyType,R as KeylessConfiguration,H as KeylessPublicKey,L as KeylessSignature,A as MAX_AUD_VAL_BYTES,G as MAX_COMMITED_EPK_BYTES,E as MAX_EXTRA_FIELD_BYTES,D as MAX_ISS_VAL_BYTES,F as MAX_JWT_HEADER_B64_BYTES,B as MAX_UID_KEY_BYTES,C as MAX_UID_VAL_BYTES,i as MOVEMENT_BIP44_REGEX,h as MOVEMENT_HARDENED_REGEX,W as MoveJWK,ja as MultiEd25519PublicKey,ka as MultiEd25519Signature,ha as MultiKey,ia as MultiKeySignature,r as PrivateKey,a as PublicKey,_ as Secp256k1PrivateKey,Z as Secp256k1PublicKey,$ as Secp256k1Signature,ba as Secp256r1PrivateKey,aa as Secp256r1PublicKey,da as Secp256r1Signature,c as Signature,ca as WebAuthnSignature,Q as ZeroKnowledgeSig,P as ZkProof,x as bigIntToBytesLE,w as bytesToBigIntLE,n as deriveKey,f as deserializePublicKey,g as deserializeSignature,K as fetchJWK,U as getIssAudAndUidVal,T as getKeylessConfig,V as getKeylessJWKs,u as hashStrToField,la as isCanonicalEd25519Signature,l as isValidBIP44Path,m as isValidHardenedPath,q as mnemonicToSeed,v as padAndPackBytesWithLen,X as parseJwtHeader,y as poseidonHash,p as splitPath,I as verifyKeylessSignature,J as verifyKeylessSignatureWithJwkAndConfig};
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{A as w,B as x,C as y,e as a,f as b,g as c,h as d,i as e,j as f,k as g,l as h,m as i,n as j,o as k,p as l,q as m,r as n,s as o,t as p,u as q,v as r,w as s,x as t,y as u,z as v}from"../../chunk-
|
|
1
|
+
import{A as w,B as x,C as y,e as a,f as b,g as c,h as d,i as e,j as f,k as g,l as h,m as i,n as j,o as k,p as l,q as m,r as n,s as o,t as p,u as q,v as r,w as s,x as t,y as u,z as v}from"../../chunk-LVNME34X.mjs";import"../../chunk-7AJK3QMK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-WVDICMU4.mjs";import"../../chunk-2KDUIZKB.mjs";import"../../chunk-ESZIZDLP.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-POOO2OP5.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-OOOAVIMQ.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-PG4MJ3CJ.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-7TTTMBAK.mjs";import"../../chunk-2QTV4AOE.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-E3O3YOFD.mjs";import"../../chunk-Q2IJWWWU.mjs";import"../../chunk-GTWNSTVB.mjs";import"../../chunk-Q55N5DU3.mjs";import"../../chunk-5ZKA765G.mjs";import"../../chunk-ZUWARBWT.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-HX7XBUOY.mjs";import"../../chunk-YXS3R2MX.mjs";import"../../chunk-QMRVGJFC.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-ANTEUWH6.mjs";import"../../chunk-74X3LBZR.mjs";import"../../chunk-WFAH73WN.mjs";import"../../chunk-Y6YW4BAZ.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-SSTVXHYQ.mjs";import"../../chunk-PZ233FIY.mjs";import"../../chunk-VW3WBAAD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-LZ24RPY3.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as EPK_HORIZON_SECS,n as EphemeralCertificate,p as Groth16ProofAndStatement,t as Groth16VerificationKey,o as Groth16Zkp,s as KeylessConfiguration,i as KeylessPublicKey,m as KeylessSignature,b as MAX_AUD_VAL_BYTES,h as MAX_COMMITED_EPK_BYTES,f as MAX_EXTRA_FIELD_BYTES,e as MAX_ISS_VAL_BYTES,g as MAX_JWT_HEADER_B64_BYTES,c as MAX_UID_KEY_BYTES,d as MAX_UID_VAL_BYTES,x as MoveJWK,r as ZeroKnowledgeSig,q as ZkProof,l as fetchJWK,v as getIssAudAndUidVal,u as getKeylessConfig,w as getKeylessJWKs,y as parseJwtHeader,j as verifyKeylessSignature,k as verifyKeylessSignatureWithJwkAndConfig};
|
|
2
2
|
//# sourceMappingURL=keyless.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{M as a,N as b}from"../../chunk-
|
|
1
|
+
import{M as a,N as b}from"../../chunk-LVNME34X.mjs";import"../../chunk-7AJK3QMK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-WVDICMU4.mjs";import"../../chunk-2KDUIZKB.mjs";import"../../chunk-ESZIZDLP.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-POOO2OP5.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-OOOAVIMQ.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-PG4MJ3CJ.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-7TTTMBAK.mjs";import"../../chunk-2QTV4AOE.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-E3O3YOFD.mjs";import"../../chunk-Q2IJWWWU.mjs";import"../../chunk-GTWNSTVB.mjs";import"../../chunk-Q55N5DU3.mjs";import"../../chunk-5ZKA765G.mjs";import"../../chunk-ZUWARBWT.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-HX7XBUOY.mjs";import"../../chunk-YXS3R2MX.mjs";import"../../chunk-QMRVGJFC.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-ANTEUWH6.mjs";import"../../chunk-74X3LBZR.mjs";import"../../chunk-WFAH73WN.mjs";import"../../chunk-Y6YW4BAZ.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-SSTVXHYQ.mjs";import"../../chunk-PZ233FIY.mjs";import"../../chunk-VW3WBAAD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-LZ24RPY3.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as MultiEd25519PublicKey,b as MultiEd25519Signature};
|
|
2
2
|
//# sourceMappingURL=multiEd25519.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{J as a,K as b,L as c}from"../../chunk-
|
|
1
|
+
import{J as a,K as b,L as c}from"../../chunk-LVNME34X.mjs";import"../../chunk-7AJK3QMK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-WVDICMU4.mjs";import"../../chunk-2KDUIZKB.mjs";import"../../chunk-ESZIZDLP.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-POOO2OP5.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-OOOAVIMQ.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-PG4MJ3CJ.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-7TTTMBAK.mjs";import"../../chunk-2QTV4AOE.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-E3O3YOFD.mjs";import"../../chunk-Q2IJWWWU.mjs";import"../../chunk-GTWNSTVB.mjs";import"../../chunk-Q55N5DU3.mjs";import"../../chunk-5ZKA765G.mjs";import"../../chunk-ZUWARBWT.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-HX7XBUOY.mjs";import"../../chunk-YXS3R2MX.mjs";import"../../chunk-QMRVGJFC.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-ANTEUWH6.mjs";import"../../chunk-74X3LBZR.mjs";import"../../chunk-WFAH73WN.mjs";import"../../chunk-Y6YW4BAZ.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-SSTVXHYQ.mjs";import"../../chunk-PZ233FIY.mjs";import"../../chunk-VW3WBAAD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-LZ24RPY3.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as AbstractMultiKey,b as MultiKey,c as MultiKeySignature};
|
|
2
2
|
//# sourceMappingURL=multiKey.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-OOOAVIMQ.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-OOOAVIMQ.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as Proof};
|
|
2
2
|
//# sourceMappingURL=proof.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b}from"../../chunk-VEZCMPUG.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-
|
|
1
|
+
import{a,b}from"../../chunk-VEZCMPUG.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-KDMSOCZY.mjs";export{b as AccountPublicKey,a as PublicKey};
|
|
2
2
|
//# sourceMappingURL=publicKey.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{E as a,F as b,G as c}from"../../chunk-
|
|
1
|
+
import{E as a,F as b,G as c}from"../../chunk-LVNME34X.mjs";import"../../chunk-7AJK3QMK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-A5L76YP7.mjs";import"../../chunk-WVDICMU4.mjs";import"../../chunk-2KDUIZKB.mjs";import"../../chunk-ESZIZDLP.mjs";import"../../chunk-5HXLZHDW.mjs";import"../../chunk-G3MHXDYA.mjs";import"../../chunk-POOO2OP5.mjs";import"../../chunk-GOXRBEIJ.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-OOOAVIMQ.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-PG4MJ3CJ.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-7TTTMBAK.mjs";import"../../chunk-2QTV4AOE.mjs";import"../../chunk-ZP4DWSQA.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-E3O3YOFD.mjs";import"../../chunk-Q2IJWWWU.mjs";import"../../chunk-GTWNSTVB.mjs";import"../../chunk-Q55N5DU3.mjs";import"../../chunk-5ZKA765G.mjs";import"../../chunk-ZUWARBWT.mjs";import"../../chunk-UL777LTI.mjs";import"../../chunk-7ECCT6PK.mjs";import"../../chunk-HX7XBUOY.mjs";import"../../chunk-YXS3R2MX.mjs";import"../../chunk-QMRVGJFC.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-ANTEUWH6.mjs";import"../../chunk-74X3LBZR.mjs";import"../../chunk-WFAH73WN.mjs";import"../../chunk-Y6YW4BAZ.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-SSTVXHYQ.mjs";import"../../chunk-PZ233FIY.mjs";import"../../chunk-VW3WBAAD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-LZ24RPY3.mjs";import"../../chunk-KDMSOCZY.mjs";export{b as Secp256k1PrivateKey,a as Secp256k1PublicKey,c as Secp256k1Signature};
|
|
2
2
|
//# sourceMappingURL=secp256k1.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a,b,c,d}from"../../chunk-ESZIZDLP.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-
|
|
1
|
+
import{a,b,c,d}from"../../chunk-ESZIZDLP.mjs";import"../../chunk-D6HPXGEP.mjs";import"../../chunk-CHWDP6AR.mjs";import"../../chunk-VEZCMPUG.mjs";import"../../chunk-NUB6KE73.mjs";import"../../chunk-DS6QB6HG.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-KDMSOCZY.mjs";export{b as Secp256r1PrivateKey,a as Secp256r1PublicKey,d as Secp256r1Signature,c as WebAuthnSignature};
|
|
2
2
|
//# sourceMappingURL=secp256r1.mjs.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a}from"../../chunk-CHWDP6AR.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-
|
|
1
|
+
import{a}from"../../chunk-CHWDP6AR.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-SLXLZU5N.mjs";import"../../chunk-6NO4QKAO.mjs";import"../../chunk-FS5ZJKO7.mjs";import"../../chunk-XCURF77K.mjs";import"../../chunk-FD6FGKYY.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-YOHEYPDP.mjs";import"../../chunk-RXHPS4IU.mjs";import"../../chunk-SRXFRTHK.mjs";import"../../chunk-5IMQPJ6J.mjs";import"../../chunk-RL4YPMN4.mjs";import"../../chunk-UI4OF6CP.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as Signature};
|
|
2
2
|
//# sourceMappingURL=signature.mjs.map
|