@aptos-labs/ts-sdk 1.28.0-zeta.5 → 1.28.0-zeta.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.
Files changed (166) hide show
  1. package/dist/common/index.js +3 -3
  2. package/dist/common/index.js.map +1 -1
  3. package/dist/esm/account/Account.mjs +1 -1
  4. package/dist/esm/account/Ed25519Account.mjs +1 -1
  5. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  6. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  7. package/dist/esm/account/KeylessAccount.mjs +1 -1
  8. package/dist/esm/account/KeylessAccountCommon.mjs +1 -1
  9. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  10. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  11. package/dist/esm/account/index.mjs +1 -1
  12. package/dist/esm/api/account.mjs +1 -1
  13. package/dist/esm/api/ans.mjs +1 -1
  14. package/dist/esm/api/aptos.mjs +1 -1
  15. package/dist/esm/api/coin.mjs +1 -1
  16. package/dist/esm/api/digitalAsset.mjs +1 -1
  17. package/dist/esm/api/event.mjs +1 -1
  18. package/dist/esm/api/faucet.mjs +1 -1
  19. package/dist/esm/api/fungibleAsset.mjs +1 -1
  20. package/dist/esm/api/general.mjs +1 -1
  21. package/dist/esm/api/index.mjs +1 -1
  22. package/dist/esm/api/keyless.mjs +1 -1
  23. package/dist/esm/api/object.mjs +1 -1
  24. package/dist/esm/api/staking.mjs +1 -1
  25. package/dist/esm/api/transaction.mjs +1 -1
  26. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  27. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  28. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  29. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  30. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  31. package/dist/esm/{chunk-Q5BCQFS2.mjs → chunk-2BCWFFPM.mjs} +2 -2
  32. package/dist/esm/{chunk-Z25D7JG2.mjs → chunk-2ENDRRQP.mjs} +2 -2
  33. package/dist/esm/{chunk-O3SVNTWW.mjs → chunk-2JVFBTDG.mjs} +2 -2
  34. package/dist/esm/{chunk-PBMXWRZG.mjs → chunk-43Q5ETMN.mjs} +2 -2
  35. package/dist/esm/{chunk-YSVXROOO.mjs → chunk-57RGYHII.mjs} +2 -2
  36. package/dist/esm/{chunk-5RNKD3GW.mjs → chunk-5RDMM73L.mjs} +2 -2
  37. package/dist/esm/{chunk-4I6IUAHQ.mjs → chunk-6BXB4PLA.mjs} +2 -2
  38. package/dist/esm/{chunk-7V6TRMEJ.mjs → chunk-6JVWNPEL.mjs} +2 -2
  39. package/dist/esm/{chunk-QTTDBQAJ.mjs → chunk-76QOH2OW.mjs} +2 -2
  40. package/dist/esm/{chunk-ZAHUEAGT.mjs → chunk-7YJ43PCR.mjs} +2 -2
  41. package/dist/esm/{chunk-TC3CMU7D.mjs → chunk-AOPF5ASG.mjs} +2 -2
  42. package/dist/esm/{chunk-ZASN3QQQ.mjs → chunk-BX6Y4BSO.mjs} +2 -2
  43. package/dist/esm/{chunk-5HWJ3SN4.mjs → chunk-DFECJJPK.mjs} +2 -2
  44. package/dist/esm/{chunk-CFTY4P5C.mjs → chunk-DTTYNUPV.mjs} +2 -2
  45. package/dist/esm/{chunk-K7ZPRL7C.mjs → chunk-FCQHPMOT.mjs} +2 -2
  46. package/dist/esm/{chunk-UYYQZDVB.mjs → chunk-FSBSLPY3.mjs} +2 -2
  47. package/dist/esm/{chunk-7T5CUI2H.mjs → chunk-G76BSSWS.mjs} +2 -2
  48. package/dist/esm/{chunk-HK3FJVVM.mjs → chunk-GS6IWQ3H.mjs} +2 -2
  49. package/dist/esm/{chunk-PEYLPXU6.mjs → chunk-HLOUR2K3.mjs} +2 -2
  50. package/dist/esm/{chunk-ASQIKTEF.mjs → chunk-HY5RVZLG.mjs} +2 -2
  51. package/dist/esm/{chunk-LICJI4D2.mjs → chunk-I3ZYHDRZ.mjs} +2 -2
  52. package/dist/esm/{chunk-ZSHSL3US.mjs → chunk-IK6O3OUD.mjs} +2 -2
  53. package/dist/esm/{chunk-6B65YWGD.mjs → chunk-J3QYWBXE.mjs} +2 -2
  54. package/dist/esm/{chunk-BJJBW6WH.mjs → chunk-JWB6XL55.mjs} +2 -2
  55. package/dist/esm/{chunk-YBZI6U43.mjs → chunk-L2EW7RS5.mjs} +2 -2
  56. package/dist/esm/{chunk-34RQZPSM.mjs → chunk-LELN4SW3.mjs} +2 -2
  57. package/dist/esm/{chunk-WM2GFECU.mjs → chunk-MPGNWYFV.mjs} +2 -2
  58. package/dist/esm/{chunk-BC5BEOKM.mjs → chunk-O2IHHH7H.mjs} +2 -2
  59. package/dist/esm/{chunk-NGIPNL7N.mjs → chunk-Q6J7FG6J.mjs} +2 -2
  60. package/dist/esm/{chunk-V6ZSRYXI.mjs → chunk-QJAEQM4L.mjs} +2 -2
  61. package/dist/esm/{chunk-NOVJ2ROD.mjs → chunk-QWSGJVQW.mjs} +2 -2
  62. package/dist/esm/{chunk-DYMN66K5.mjs → chunk-SBCXYFC4.mjs} +2 -2
  63. package/dist/esm/{chunk-OOVNFKA6.mjs → chunk-T3ZU4BDV.mjs} +2 -2
  64. package/dist/esm/{chunk-I3ZR4HXK.mjs → chunk-TZAQMHQF.mjs} +2 -2
  65. package/dist/esm/{chunk-AERLYJPT.mjs → chunk-UWEWPHGU.mjs} +2 -2
  66. package/dist/esm/{chunk-TV62D5OU.mjs → chunk-V5XTHER2.mjs} +2 -2
  67. package/dist/esm/chunk-V7U3LLZC.mjs +2 -0
  68. package/dist/esm/chunk-V7U3LLZC.mjs.map +1 -0
  69. package/dist/esm/{chunk-MVTR6HU6.mjs → chunk-VHKCYWZD.mjs} +2 -2
  70. package/dist/esm/{chunk-4WAH2Y5E.mjs → chunk-VHZ46B6V.mjs} +2 -2
  71. package/dist/esm/{chunk-FDD6WNN6.mjs → chunk-XFG6LGA6.mjs} +2 -2
  72. package/dist/esm/{chunk-FDTLBR6D.mjs → chunk-XY3VSUZX.mjs} +2 -2
  73. package/dist/esm/{chunk-DJVPIZ2I.mjs → chunk-Y6C7HIGN.mjs} +2 -2
  74. package/dist/esm/{chunk-HUDDA4FG.mjs → chunk-Z7TYJI5C.mjs} +2 -2
  75. package/dist/esm/{chunk-W2KQ2TSH.mjs → chunk-ZIBH5YJK.mjs} +2 -2
  76. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  77. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  78. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  79. package/dist/esm/core/crypto/index.mjs +1 -1
  80. package/dist/esm/core/crypto/keyless.mjs +1 -1
  81. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  82. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  83. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  84. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  85. package/dist/esm/core/index.mjs +1 -1
  86. package/dist/esm/index.mjs +1 -1
  87. package/dist/esm/internal/account.mjs +1 -1
  88. package/dist/esm/internal/ans.mjs +1 -1
  89. package/dist/esm/internal/coin.mjs +1 -1
  90. package/dist/esm/internal/digitalAsset.mjs +1 -1
  91. package/dist/esm/internal/event.mjs +1 -1
  92. package/dist/esm/internal/faucet.mjs +1 -1
  93. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  94. package/dist/esm/internal/keyless.mjs +1 -1
  95. package/dist/esm/internal/object.mjs +1 -1
  96. package/dist/esm/internal/staking.mjs +1 -1
  97. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  98. package/dist/esm/internal/view.mjs +1 -1
  99. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  100. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  101. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  102. package/dist/esm/transactions/index.mjs +1 -1
  103. package/dist/esm/transactions/instances/index.mjs +1 -1
  104. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  105. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  106. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  107. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  108. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  109. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  110. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  111. package/dist/esm/transactions/management/index.mjs +1 -1
  112. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  113. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  114. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  115. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  116. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  117. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  118. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  119. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  120. package/package.json +1 -1
  121. package/src/internal/keyless.ts +4 -9
  122. package/dist/esm/chunk-74EWOTWQ.mjs +0 -2
  123. package/dist/esm/chunk-74EWOTWQ.mjs.map +0 -1
  124. /package/dist/esm/{chunk-Q5BCQFS2.mjs.map → chunk-2BCWFFPM.mjs.map} +0 -0
  125. /package/dist/esm/{chunk-Z25D7JG2.mjs.map → chunk-2ENDRRQP.mjs.map} +0 -0
  126. /package/dist/esm/{chunk-O3SVNTWW.mjs.map → chunk-2JVFBTDG.mjs.map} +0 -0
  127. /package/dist/esm/{chunk-PBMXWRZG.mjs.map → chunk-43Q5ETMN.mjs.map} +0 -0
  128. /package/dist/esm/{chunk-YSVXROOO.mjs.map → chunk-57RGYHII.mjs.map} +0 -0
  129. /package/dist/esm/{chunk-5RNKD3GW.mjs.map → chunk-5RDMM73L.mjs.map} +0 -0
  130. /package/dist/esm/{chunk-4I6IUAHQ.mjs.map → chunk-6BXB4PLA.mjs.map} +0 -0
  131. /package/dist/esm/{chunk-7V6TRMEJ.mjs.map → chunk-6JVWNPEL.mjs.map} +0 -0
  132. /package/dist/esm/{chunk-QTTDBQAJ.mjs.map → chunk-76QOH2OW.mjs.map} +0 -0
  133. /package/dist/esm/{chunk-ZAHUEAGT.mjs.map → chunk-7YJ43PCR.mjs.map} +0 -0
  134. /package/dist/esm/{chunk-TC3CMU7D.mjs.map → chunk-AOPF5ASG.mjs.map} +0 -0
  135. /package/dist/esm/{chunk-ZASN3QQQ.mjs.map → chunk-BX6Y4BSO.mjs.map} +0 -0
  136. /package/dist/esm/{chunk-5HWJ3SN4.mjs.map → chunk-DFECJJPK.mjs.map} +0 -0
  137. /package/dist/esm/{chunk-CFTY4P5C.mjs.map → chunk-DTTYNUPV.mjs.map} +0 -0
  138. /package/dist/esm/{chunk-K7ZPRL7C.mjs.map → chunk-FCQHPMOT.mjs.map} +0 -0
  139. /package/dist/esm/{chunk-UYYQZDVB.mjs.map → chunk-FSBSLPY3.mjs.map} +0 -0
  140. /package/dist/esm/{chunk-7T5CUI2H.mjs.map → chunk-G76BSSWS.mjs.map} +0 -0
  141. /package/dist/esm/{chunk-HK3FJVVM.mjs.map → chunk-GS6IWQ3H.mjs.map} +0 -0
  142. /package/dist/esm/{chunk-PEYLPXU6.mjs.map → chunk-HLOUR2K3.mjs.map} +0 -0
  143. /package/dist/esm/{chunk-ASQIKTEF.mjs.map → chunk-HY5RVZLG.mjs.map} +0 -0
  144. /package/dist/esm/{chunk-LICJI4D2.mjs.map → chunk-I3ZYHDRZ.mjs.map} +0 -0
  145. /package/dist/esm/{chunk-ZSHSL3US.mjs.map → chunk-IK6O3OUD.mjs.map} +0 -0
  146. /package/dist/esm/{chunk-6B65YWGD.mjs.map → chunk-J3QYWBXE.mjs.map} +0 -0
  147. /package/dist/esm/{chunk-BJJBW6WH.mjs.map → chunk-JWB6XL55.mjs.map} +0 -0
  148. /package/dist/esm/{chunk-YBZI6U43.mjs.map → chunk-L2EW7RS5.mjs.map} +0 -0
  149. /package/dist/esm/{chunk-34RQZPSM.mjs.map → chunk-LELN4SW3.mjs.map} +0 -0
  150. /package/dist/esm/{chunk-WM2GFECU.mjs.map → chunk-MPGNWYFV.mjs.map} +0 -0
  151. /package/dist/esm/{chunk-BC5BEOKM.mjs.map → chunk-O2IHHH7H.mjs.map} +0 -0
  152. /package/dist/esm/{chunk-NGIPNL7N.mjs.map → chunk-Q6J7FG6J.mjs.map} +0 -0
  153. /package/dist/esm/{chunk-V6ZSRYXI.mjs.map → chunk-QJAEQM4L.mjs.map} +0 -0
  154. /package/dist/esm/{chunk-NOVJ2ROD.mjs.map → chunk-QWSGJVQW.mjs.map} +0 -0
  155. /package/dist/esm/{chunk-DYMN66K5.mjs.map → chunk-SBCXYFC4.mjs.map} +0 -0
  156. /package/dist/esm/{chunk-OOVNFKA6.mjs.map → chunk-T3ZU4BDV.mjs.map} +0 -0
  157. /package/dist/esm/{chunk-I3ZR4HXK.mjs.map → chunk-TZAQMHQF.mjs.map} +0 -0
  158. /package/dist/esm/{chunk-AERLYJPT.mjs.map → chunk-UWEWPHGU.mjs.map} +0 -0
  159. /package/dist/esm/{chunk-TV62D5OU.mjs.map → chunk-V5XTHER2.mjs.map} +0 -0
  160. /package/dist/esm/{chunk-MVTR6HU6.mjs.map → chunk-VHKCYWZD.mjs.map} +0 -0
  161. /package/dist/esm/{chunk-4WAH2Y5E.mjs.map → chunk-VHZ46B6V.mjs.map} +0 -0
  162. /package/dist/esm/{chunk-FDD6WNN6.mjs.map → chunk-XFG6LGA6.mjs.map} +0 -0
  163. /package/dist/esm/{chunk-FDTLBR6D.mjs.map → chunk-XY3VSUZX.mjs.map} +0 -0
  164. /package/dist/esm/{chunk-DJVPIZ2I.mjs.map → chunk-Y6C7HIGN.mjs.map} +0 -0
  165. /package/dist/esm/{chunk-HUDDA4FG.mjs.map → chunk-Z7TYJI5C.mjs.map} +0 -0
  166. /package/dist/esm/{chunk-W2KQ2TSH.mjs.map → chunk-ZIBH5YJK.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a as h,c as V,d as v,e as B}from"./chunk-IVVWQKCF.mjs";import{a as T}from"./chunk-N6EC72OZ.mjs";import{a as w,b as m}from"./chunk-4I6IUAHQ.mjs";import{b as I,d as P}from"./chunk-7T5CUI2H.mjs";import{b as C}from"./chunk-FOLCONSQ.mjs";import{a as y}from"./chunk-QP2A5ISX.mjs";import{a as U}from"./chunk-3CE63FFN.mjs";import{b}from"./chunk-EDVGFSB5.mjs";import{a as _}from"./chunk-AH44UPM4.mjs";import{b as A}from"./chunk-H3TJNBHX.mjs";import{a as E}from"./chunk-KEYAPEAX.mjs";import{a as d,b as H}from"./chunk-ZZIMFLVT.mjs";import{b as p}from"./chunk-AOCNYMMX.mjs";import{jwtDecode as F}from"jwt-decode";var ge=1e7,L=120,N=30,O=330,fe=120,Se=350,xe=300,be=93,o=class o extends C{constructor(e,t){super();let a=p.fromHexInput(t).toUint8Array();if(a.length!==o.ID_COMMITMENT_LENGTH)throw new Error(`Id Commitment length in bytes should be ${o.ID_COMMITMENT_LENGTH}`);this.iss=e,this.idCommitment=a}authKey(){let e=new H;return e.serializeU32AsUleb128(3),e.serializeFixedBytes(this.bcsToBytes()),U.fromSchemeAndBytes({scheme:2,input:e.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}toString(){return p.fromHexInput(this.toUint8Array()).toString()}verifySignature(e){throw new Error("Not yet implemented")}serialize(e){e.serializeStr(this.iss),e.serializeBytes(this.idCommitment)}static deserialize(e){let t=e.deserializeStr(),a=e.deserializeBytes();return new o(t,a)}static load(e){let t=e.deserializeStr(),a=e.deserializeBytes();return new o(t,a)}static isPublicKey(e){return e instanceof o}static create(e){return D(e),new o(e.iss,D(e))}static fromJwtAndPepper(e){let{jwt:t,pepper:a,uidKey:n="sub"}=e,s=F(t),c=s.iss;if(typeof s.aud!="string")throw new Error("aud was not found or an array of values");let R=s.aud,k=s[n];return o.create({iss:c,uidKey:n,uidVal:k,aud:R,pepper:a})}static isInstance(e){return"iss"in e&&typeof e.iss=="string"&&"idCommitment"in e&&e.idCommitment instanceof Uint8Array}};o.ID_COMMITMENT_LENGTH=32;var z=o;function D(i){let{uidKey:r,uidVal:e,aud:t,pepper:a}=i,n=[V(p.fromHexInput(a).toUint8Array()),h(t,L),h(e,O),h(r,N)];return v(B(n),z.ID_COMMITMENT_LENGTH)}var M=class i extends y{constructor(e){super();let{jwtHeader:t,ephemeralCertificate:a,expiryDateSecs:n,ephemeralPublicKey:s,ephemeralSignature:c}=e;this.jwtHeader=t,this.ephemeralCertificate=a,this.expiryDateSecs=n,this.ephemeralPublicKey=s,this.ephemeralSignature=c}toUint8Array(){return this.bcsToBytes()}serialize(e){this.ephemeralCertificate.serialize(e),e.serializeStr(this.jwtHeader),e.serializeU64(this.expiryDateSecs),this.ephemeralPublicKey.serialize(e),this.ephemeralSignature.serialize(e)}static deserialize(e){let t=g.deserialize(e),a=e.deserializeStr(),n=e.deserializeU64(),s=w.deserialize(e),c=m.deserialize(e);return new i({jwtHeader:a,expiryDateSecs:Number(n),ephemeralCertificate:t,ephemeralPublicKey:s,ephemeralSignature:c})}static getSimulationSignature(){return new i({jwtHeader:"{}",ephemeralCertificate:new g(new x({proof:new S(new f({a:new Uint8Array(32),b:new Uint8Array(64),c:new Uint8Array(32)}),0),expHorizonSecs:0}),0),expiryDateSecs:0,ephemeralPublicKey:new w(new I(new Uint8Array(32))),ephemeralSignature:new m(new P(new Uint8Array(64)))})}static isSignature(e){return e instanceof i}},g=class i extends y{constructor(e,t){super();this.signature=e,this.variant=t}toUint8Array(){return this.signature.toUint8Array()}serialize(e){e.serializeU32AsUleb128(this.variant),this.signature.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new i(x.deserialize(e),t);default:throw new Error(`Unknown variant index for EphemeralCertificate: ${t}`)}}},l=class i extends d{constructor(e){super();if(this.data=p.fromHexInput(e).toUint8Array(),this.data.length!==32)throw new Error("Input needs to be 32 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(32);return new i(t)}},u=class i extends d{constructor(e){super();if(this.data=p.fromHexInput(e).toUint8Array(),this.data.length!==64)throw new Error("Input needs to be 64 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(64);return new i(t)}},f=class i extends T{constructor(e){super();let{a:t,b:a,c:n}=e;this.a=new l(t),this.b=new u(a),this.c=new l(n)}serialize(e){this.a.serialize(e),this.b.serialize(e),this.c.serialize(e)}static deserialize(e){let t=l.deserialize(e).bcsToBytes(),a=u.deserialize(e).bcsToBytes(),n=l.deserialize(e).bcsToBytes();return new i({a:t,b:a,c:n})}},S=class i extends d{constructor(e,t){super();this.proof=e,this.variant=t}serialize(e){e.serializeU32AsUleb128(this.variant),this.proof.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new i(f.deserialize(e),t);default:throw new Error(`Unknown variant index for ZkProof: ${t}`)}}},x=class i extends y{constructor(e){super();let{proof:t,expHorizonSecs:a,trainingWheelsSignature:n,extraField:s,overrideAudVal:c}=e;this.proof=t,this.expHorizonSecs=a,this.trainingWheelsSignature=n,this.extraField=s,this.overrideAudVal=c}toUint8Array(){return this.bcsToBytes()}static fromBytes(e){return i.deserialize(new E(e))}serialize(e){this.proof.serialize(e),e.serializeU64(this.expHorizonSecs),e.serializeOptionStr(this.extraField),e.serializeOptionStr(this.overrideAudVal),e.serializeOption(this.trainingWheelsSignature)}static deserialize(e){let t=S.deserialize(e),a=Number(e.deserializeU64()),n=e.deserializeOptionStr(),s=e.deserializeOptionStr(),c=e.deserializeOption(m);return new i({proof:t,expHorizonSecs:a,trainingWheelsSignature:c,extraField:n,overrideAudVal:s})}},K=class i{constructor(r,e){this.verficationKey=r,this.maxExpHorizonSecs=e}static create(r,e){return new i(new G({alphaG1:r.alpha_g1,betaG2:r.beta_g2,deltaG2:r.delta_g2,gammaAbcG1:r.gamma_abc_g1,gammaG2:r.gamma_g2}),e)}},G=class i{constructor(r){let{alphaG1:e,betaG2:t,deltaG2:a,gammaAbcG1:n,gammaG2:s}=r;this.alphaG1=new l(e),this.betaG2=new u(t),this.deltaG2=new u(a),this.gammaAbcG1=[new l(n[0]),new l(n[1])],this.gammaG2=new u(s)}static fromGroth16VerificationKeyResponse(r){return new i({alphaG1:r.alpha_g1,betaG2:r.beta_g2,deltaG2:r.delta_g2,gammaAbcG1:r.gamma_abc_g1,gammaG2:r.gamma_g2})}};async function we(i){let{aptosConfig:r}=i;return _(async()=>{let e=await j(i),t=await Z(i);return K.create(t,Number(e.max_exp_horizon_secs))},`keyless-configuration-${r.network}`,1e3*60*5)()}async function j(i){let{aptosConfig:r,options:e}=i,t="0x1::keyless_account::Configuration",{data:a}=await A({aptosConfig:r,originMethod:"getKeylessConfigurationResource",path:`accounts/${b.from("0x1").toString()}/resource/${t}`,params:{ledger_version:e?.ledgerVersion}});return a.data}async function Z(i){let{aptosConfig:r,options:e}=i,t="0x1::keyless_account::Groth16VerificationKey",{data:a}=await A({aptosConfig:r,originMethod:"getGroth16VerificationKeyResource",path:`accounts/${b.from("0x1").toString()}/resource/${t}`,params:{ledger_version:e?.ledgerVersion}});return a.data}export{ge as a,L as b,N as c,O as d,fe as e,Se as f,xe as g,be as h,z as i,M as j,g as k,f as l,S as m,x as n,K as o,we as p};
2
- //# sourceMappingURL=chunk-DYMN66K5.mjs.map
1
+ import{a as h,c as V,d as v,e as B}from"./chunk-IVVWQKCF.mjs";import{a as T}from"./chunk-N6EC72OZ.mjs";import{a as w,b as m}from"./chunk-6BXB4PLA.mjs";import{b as I,d as P}from"./chunk-G76BSSWS.mjs";import{b as C}from"./chunk-FOLCONSQ.mjs";import{a as y}from"./chunk-QP2A5ISX.mjs";import{a as U}from"./chunk-3CE63FFN.mjs";import{b}from"./chunk-EDVGFSB5.mjs";import{a as _}from"./chunk-AH44UPM4.mjs";import{b as A}from"./chunk-H3TJNBHX.mjs";import{a as E}from"./chunk-KEYAPEAX.mjs";import{a as d,b as H}from"./chunk-ZZIMFLVT.mjs";import{b as p}from"./chunk-AOCNYMMX.mjs";import{jwtDecode as F}from"jwt-decode";var ge=1e7,L=120,N=30,O=330,fe=120,Se=350,xe=300,be=93,o=class o extends C{constructor(e,t){super();let a=p.fromHexInput(t).toUint8Array();if(a.length!==o.ID_COMMITMENT_LENGTH)throw new Error(`Id Commitment length in bytes should be ${o.ID_COMMITMENT_LENGTH}`);this.iss=e,this.idCommitment=a}authKey(){let e=new H;return e.serializeU32AsUleb128(3),e.serializeFixedBytes(this.bcsToBytes()),U.fromSchemeAndBytes({scheme:2,input:e.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}toString(){return p.fromHexInput(this.toUint8Array()).toString()}verifySignature(e){throw new Error("Not yet implemented")}serialize(e){e.serializeStr(this.iss),e.serializeBytes(this.idCommitment)}static deserialize(e){let t=e.deserializeStr(),a=e.deserializeBytes();return new o(t,a)}static load(e){let t=e.deserializeStr(),a=e.deserializeBytes();return new o(t,a)}static isPublicKey(e){return e instanceof o}static create(e){return D(e),new o(e.iss,D(e))}static fromJwtAndPepper(e){let{jwt:t,pepper:a,uidKey:n="sub"}=e,s=F(t),c=s.iss;if(typeof s.aud!="string")throw new Error("aud was not found or an array of values");let R=s.aud,k=s[n];return o.create({iss:c,uidKey:n,uidVal:k,aud:R,pepper:a})}static isInstance(e){return"iss"in e&&typeof e.iss=="string"&&"idCommitment"in e&&e.idCommitment instanceof Uint8Array}};o.ID_COMMITMENT_LENGTH=32;var z=o;function D(i){let{uidKey:r,uidVal:e,aud:t,pepper:a}=i,n=[V(p.fromHexInput(a).toUint8Array()),h(t,L),h(e,O),h(r,N)];return v(B(n),z.ID_COMMITMENT_LENGTH)}var M=class i extends y{constructor(e){super();let{jwtHeader:t,ephemeralCertificate:a,expiryDateSecs:n,ephemeralPublicKey:s,ephemeralSignature:c}=e;this.jwtHeader=t,this.ephemeralCertificate=a,this.expiryDateSecs=n,this.ephemeralPublicKey=s,this.ephemeralSignature=c}toUint8Array(){return this.bcsToBytes()}serialize(e){this.ephemeralCertificate.serialize(e),e.serializeStr(this.jwtHeader),e.serializeU64(this.expiryDateSecs),this.ephemeralPublicKey.serialize(e),this.ephemeralSignature.serialize(e)}static deserialize(e){let t=g.deserialize(e),a=e.deserializeStr(),n=e.deserializeU64(),s=w.deserialize(e),c=m.deserialize(e);return new i({jwtHeader:a,expiryDateSecs:Number(n),ephemeralCertificate:t,ephemeralPublicKey:s,ephemeralSignature:c})}static getSimulationSignature(){return new i({jwtHeader:"{}",ephemeralCertificate:new g(new x({proof:new S(new f({a:new Uint8Array(32),b:new Uint8Array(64),c:new Uint8Array(32)}),0),expHorizonSecs:0}),0),expiryDateSecs:0,ephemeralPublicKey:new w(new I(new Uint8Array(32))),ephemeralSignature:new m(new P(new Uint8Array(64)))})}static isSignature(e){return e instanceof i}},g=class i extends y{constructor(e,t){super();this.signature=e,this.variant=t}toUint8Array(){return this.signature.toUint8Array()}serialize(e){e.serializeU32AsUleb128(this.variant),this.signature.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new i(x.deserialize(e),t);default:throw new Error(`Unknown variant index for EphemeralCertificate: ${t}`)}}},l=class i extends d{constructor(e){super();if(this.data=p.fromHexInput(e).toUint8Array(),this.data.length!==32)throw new Error("Input needs to be 32 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(32);return new i(t)}},u=class i extends d{constructor(e){super();if(this.data=p.fromHexInput(e).toUint8Array(),this.data.length!==64)throw new Error("Input needs to be 64 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(64);return new i(t)}},f=class i extends T{constructor(e){super();let{a:t,b:a,c:n}=e;this.a=new l(t),this.b=new u(a),this.c=new l(n)}serialize(e){this.a.serialize(e),this.b.serialize(e),this.c.serialize(e)}static deserialize(e){let t=l.deserialize(e).bcsToBytes(),a=u.deserialize(e).bcsToBytes(),n=l.deserialize(e).bcsToBytes();return new i({a:t,b:a,c:n})}},S=class i extends d{constructor(e,t){super();this.proof=e,this.variant=t}serialize(e){e.serializeU32AsUleb128(this.variant),this.proof.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new i(f.deserialize(e),t);default:throw new Error(`Unknown variant index for ZkProof: ${t}`)}}},x=class i extends y{constructor(e){super();let{proof:t,expHorizonSecs:a,trainingWheelsSignature:n,extraField:s,overrideAudVal:c}=e;this.proof=t,this.expHorizonSecs=a,this.trainingWheelsSignature=n,this.extraField=s,this.overrideAudVal=c}toUint8Array(){return this.bcsToBytes()}static fromBytes(e){return i.deserialize(new E(e))}serialize(e){this.proof.serialize(e),e.serializeU64(this.expHorizonSecs),e.serializeOptionStr(this.extraField),e.serializeOptionStr(this.overrideAudVal),e.serializeOption(this.trainingWheelsSignature)}static deserialize(e){let t=S.deserialize(e),a=Number(e.deserializeU64()),n=e.deserializeOptionStr(),s=e.deserializeOptionStr(),c=e.deserializeOption(m);return new i({proof:t,expHorizonSecs:a,trainingWheelsSignature:c,extraField:n,overrideAudVal:s})}},K=class i{constructor(r,e){this.verficationKey=r,this.maxExpHorizonSecs=e}static create(r,e){return new i(new G({alphaG1:r.alpha_g1,betaG2:r.beta_g2,deltaG2:r.delta_g2,gammaAbcG1:r.gamma_abc_g1,gammaG2:r.gamma_g2}),e)}},G=class i{constructor(r){let{alphaG1:e,betaG2:t,deltaG2:a,gammaAbcG1:n,gammaG2:s}=r;this.alphaG1=new l(e),this.betaG2=new u(t),this.deltaG2=new u(a),this.gammaAbcG1=[new l(n[0]),new l(n[1])],this.gammaG2=new u(s)}static fromGroth16VerificationKeyResponse(r){return new i({alphaG1:r.alpha_g1,betaG2:r.beta_g2,deltaG2:r.delta_g2,gammaAbcG1:r.gamma_abc_g1,gammaG2:r.gamma_g2})}};async function we(i){let{aptosConfig:r}=i;return _(async()=>{let e=await j(i),t=await Z(i);return K.create(t,Number(e.max_exp_horizon_secs))},`keyless-configuration-${r.network}`,1e3*60*5)()}async function j(i){let{aptosConfig:r,options:e}=i,t="0x1::keyless_account::Configuration",{data:a}=await A({aptosConfig:r,originMethod:"getKeylessConfigurationResource",path:`accounts/${b.from("0x1").toString()}/resource/${t}`,params:{ledger_version:e?.ledgerVersion}});return a.data}async function Z(i){let{aptosConfig:r,options:e}=i,t="0x1::keyless_account::Groth16VerificationKey",{data:a}=await A({aptosConfig:r,originMethod:"getGroth16VerificationKeyResource",path:`accounts/${b.from("0x1").toString()}/resource/${t}`,params:{ledger_version:e?.ledgerVersion}});return a.data}export{ge as a,L as b,N as c,O as d,fe as e,Se as f,xe as g,be as h,z as i,M as j,g as k,f as l,S as m,x as n,K as o,we as p};
2
+ //# sourceMappingURL=chunk-SBCXYFC4.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-ND23H3AK.mjs";import{a as e}from"./chunk-ZASN3QQQ.mjs";import{a as r}from"./chunk-ZZIMFLVT.mjs";var n=class o extends r{constructor(t,a){super();this.raw_txn=t,this.authenticator=a}serialize(t){this.raw_txn.serialize(t),this.authenticator.serialize(t)}static deserialize(t){let a=i.deserialize(t),s=e.deserialize(t);return new o(a,s)}};export{n as a};
2
- //# sourceMappingURL=chunk-OOVNFKA6.mjs.map
1
+ import{a as i}from"./chunk-ND23H3AK.mjs";import{a as e}from"./chunk-BX6Y4BSO.mjs";import{a as r}from"./chunk-ZZIMFLVT.mjs";var n=class o extends r{constructor(t,a){super();this.raw_txn=t,this.authenticator=a}serialize(t){this.raw_txn.serialize(t),this.authenticator.serialize(t)}static deserialize(t){let a=i.deserialize(t),s=e.deserialize(t);return new o(a,s)}};export{n as a};
2
+ //# sourceMappingURL=chunk-T3ZU4BDV.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u}from"./chunk-LICJI4D2.mjs";import{f as M}from"./chunk-5HWJ3SN4.mjs";import{c as R}from"./chunk-AZ642ORV.mjs";import{c as k}from"./chunk-J45FMNYT.mjs";import{A as V,m as O,y as q,z as G}from"./chunk-VHNX2NUR.mjs";import{b as w,f as h,i as x,l as A,m as f,n as i,q as p,s as y}from"./chunk-5FPWLBZT.mjs";import{b as c}from"./chunk-EDVGFSB5.mjs";import{a as _,c as d}from"./chunk-YELQZVBK.mjs";import{a as T,e as D}from"./chunk-E7VSBBQM.mjs";import{d as E}from"./chunk-56CNRT2K.mjs";var C={BOOLEAN:"bool",U8:"u8",U16:"u16",U32:"u32",U64:"u64",U128:"u128",U256:"u256",ADDRESS:"address",STRING:"0x1::string::String",ARRAY:"vector<u8>"},l="0x4::token::Token";async function It(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:c.from(n).toStringLong()}};return(await k({aptosConfig:o,query:{query:V,variables:{where_condition:e}},originMethod:"getDigitalAssetData"})).current_token_datas_v2[0]}async function Pt(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:c.from(n).toStringLong()},amount:{_gt:0}};return(await k({aptosConfig:o,query:{query:G,variables:{where_condition:e}},originMethod:"getCurrentDigitalAssetOwnership"})).current_token_ownerships_v2[0]}async function bt(t){let{aptosConfig:o,ownerAddress:n,options:e}=t,r={owner_address:{_eq:c.from(n).toStringLong()},amount:{_gt:0}},s={query:G,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await k({aptosConfig:o,query:s,originMethod:"getOwnedDigitalAssets"})).current_token_ownerships_v2}async function St(t){let{aptosConfig:o,digitalAssetAddress:n,options:e}=t,r={token_data_id:{_eq:c.from(n).toStringLong()}},s={query:q,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await k({aptosConfig:o,query:s,originMethod:"getDigitalAssetActivity"})).token_activities_v2}var F={typeParameters:[],parameters:[new i(p()),new h,new i(p()),new i(p()),new w,new w,new w,new w,new w,new w,new w,new w,new w,new h,new h]};async function Dt(t){let{aptosConfig:o,options:n,creator:e}=t;return u({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::create_collection",functionArguments:[new d(t.description),new D(t.maxSupply??E),new d(t.name),new d(t.uri),new T(t.mutableDescription??!0),new T(t.mutableRoyalty??!0),new T(t.mutableURI??!0),new T(t.mutableTokenDescription??!0),new T(t.mutableTokenName??!0),new T(t.mutableTokenProperties??!0),new T(t.mutableTokenURI??!0),new T(t.tokensBurnableByCreator??!0),new T(t.tokensFreezableByCreator??!0),new D(t.royaltyNumerator??0),new D(t.royaltyDenominator??1)],abi:F},options:n})}async function v(t){let{aptosConfig:o,options:n}=t,e=n?.where;n?.tokenStandard&&(e.token_standard={_eq:n?.tokenStandard??"v2"});let r={query:O,variables:{where_condition:e,offset:n?.offset,limit:n?.limit}};return(await k({aptosConfig:o,query:r,originMethod:"getCollectionData"})).current_collections_v2[0]}async function ht(t){let{aptosConfig:o,creatorAddress:n,collectionName:e,options:r}=t,s=c.from(n),a={collection_name:{_eq:e},creator_address:{_eq:s.toStringLong()}};return r?.tokenStandard&&(a.token_standard={_eq:r?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...r,where:a}})}async function vt(t){let{aptosConfig:o,creatorAddress:n,options:e}=t,s={creator_address:{_eq:c.from(n).toStringLong()}};return e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...e,where:s}})}async function xt(t){let{aptosConfig:o,collectionId:n,options:e}=t,s={collection_id:{_eq:c.from(n).toStringLong()}};return e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...e,where:s}})}async function Gt(t){let{creatorAddress:o,collectionName:n,options:e,aptosConfig:r}=t,s=c.from(o),a={collection_name:{_eq:n},creator_address:{_eq:s.toStringLong()}};return e?.tokenStandard&&(a.token_standard={_eq:e?.tokenStandard??"v2"}),(await v({aptosConfig:r,options:{where:a}})).collection_id}var N={typeParameters:[],parameters:[new i(p()),new i(p()),new i(p()),new i(p()),new f(new i(p())),new f(new i(p())),new f(f.u8())]};async function Bt(t){let{aptosConfig:o,options:n,creator:e,collection:r,description:s,name:a,uri:m,propertyKeys:g,propertyTypes:P,propertyValues:I}=t,b=P?.map(S=>C[S]);return u({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::mint",functionArguments:[new d(r),new d(s),new d(a),new d(m),_.MoveString(g??[]),_.MoveString(b??[]),K(I??[],b??[])],abi:N},options:n})}var Q={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new x]};async function Et(t){let{aptosConfig:o,sender:n,digitalAssetAddress:e,recipient:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x1::object::transfer",typeArguments:[s??l],functionArguments:[c.from(e),c.from(r)],abi:Q},options:a})}var Y={typeParameters:[],parameters:[new i(p()),new i(p()),new i(p()),new i(p()),new f(new i(p())),new f(new i(p())),new f(f.u8()),new x]};async function Ot(t){let{aptosConfig:o,account:n,collection:e,description:r,name:s,uri:a,recipient:m,propertyKeys:g,propertyTypes:P,propertyValues:I,options:b}=t;if(g?.length!==I?.length)throw new Error("Property keys and property values counts do not match");if(P?.length!==I?.length)throw new Error("Property types and property values counts do not match");let S=P?.map(U=>C[U]);return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::mint_soul_bound",functionArguments:[e,r,s,a,_.MoveString(g??[]),_.MoveString(S??[]),K(I??[],S??[]),m],abi:Y},options:b})}var L={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function qt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::burn",typeArguments:[r??l],functionArguments:[c.from(e)],abi:L},options:s})}var z={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function Vt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::freeze_transfer",typeArguments:[r??l],functionArguments:[e],abi:z},options:s})}var j={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function Rt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::unfreeze_transfer",typeArguments:[r??l],functionArguments:[e],abi:j},options:s})}var W={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Mt(t){let{aptosConfig:o,creator:n,description:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_description",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:W},options:a})}var X={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Kt(t){let{aptosConfig:o,creator:n,name:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_name",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:X},options:a})}var H={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Ut(t){let{aptosConfig:o,creator:n,uri:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_uri",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:H},options:a})}var J={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p()),new i(p()),f.u8()]};async function Ft(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_property",typeArguments:[m??l],functionArguments:[c.from(a),new d(e),new d(C[r]),_.U8(B(s,C[r]))],abi:J},options:g})}var Z={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Nt(t){let{aptosConfig:o,creator:n,propertyKey:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::remove_property",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:Z},options:a})}var $={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p()),new i(p()),f.u8()]};async function Qt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_property",typeArguments:[m??l],functionArguments:[c.from(a),new d(e),new d(C[r]),B(s,C[r])],abi:$},options:g})}var tt={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new i(y(new A(0))),new i(p()),new A(1)]};async function Yt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_typed_property",typeArguments:[m??l,C[r]],functionArguments:[c.from(a),new d(e),s],abi:tt},options:g})}var et={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new i(y(new A(0))),new i(p()),new A(1)]};async function Lt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_typed_property",typeArguments:[m??l,C[r]],functionArguments:[c.from(a),new d(e),s],abi:et},options:g})}function K(t,o){let n=new Array;return o.forEach((e,r)=>{n.push(B(t[r],e))}),n}function B(t,o){let n=R(o);return M(t,n,0,[]).bcsToBytes()}export{It as a,Pt as b,bt as c,St as d,Dt as e,v as f,ht as g,vt as h,xt as i,Gt as j,Bt as k,Et as l,Ot as m,qt as n,Vt as o,Rt as p,Mt as q,Kt as r,Ut as s,Ft as t,Nt as u,Qt as v,Yt as w,Lt as x};
2
- //# sourceMappingURL=chunk-I3ZR4HXK.mjs.map
1
+ import{a as u}from"./chunk-I3ZYHDRZ.mjs";import{f as M}from"./chunk-DFECJJPK.mjs";import{c as R}from"./chunk-AZ642ORV.mjs";import{c as k}from"./chunk-J45FMNYT.mjs";import{A as V,m as O,y as q,z as G}from"./chunk-VHNX2NUR.mjs";import{b as w,f as h,i as x,l as A,m as f,n as i,q as p,s as y}from"./chunk-5FPWLBZT.mjs";import{b as c}from"./chunk-EDVGFSB5.mjs";import{a as _,c as d}from"./chunk-YELQZVBK.mjs";import{a as T,e as D}from"./chunk-E7VSBBQM.mjs";import{d as E}from"./chunk-56CNRT2K.mjs";var C={BOOLEAN:"bool",U8:"u8",U16:"u16",U32:"u32",U64:"u64",U128:"u128",U256:"u256",ADDRESS:"address",STRING:"0x1::string::String",ARRAY:"vector<u8>"},l="0x4::token::Token";async function It(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:c.from(n).toStringLong()}};return(await k({aptosConfig:o,query:{query:V,variables:{where_condition:e}},originMethod:"getDigitalAssetData"})).current_token_datas_v2[0]}async function Pt(t){let{aptosConfig:o,digitalAssetAddress:n}=t,e={token_data_id:{_eq:c.from(n).toStringLong()},amount:{_gt:0}};return(await k({aptosConfig:o,query:{query:G,variables:{where_condition:e}},originMethod:"getCurrentDigitalAssetOwnership"})).current_token_ownerships_v2[0]}async function bt(t){let{aptosConfig:o,ownerAddress:n,options:e}=t,r={owner_address:{_eq:c.from(n).toStringLong()},amount:{_gt:0}},s={query:G,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await k({aptosConfig:o,query:s,originMethod:"getOwnedDigitalAssets"})).current_token_ownerships_v2}async function St(t){let{aptosConfig:o,digitalAssetAddress:n,options:e}=t,r={token_data_id:{_eq:c.from(n).toStringLong()}},s={query:q,variables:{where_condition:r,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await k({aptosConfig:o,query:s,originMethod:"getDigitalAssetActivity"})).token_activities_v2}var F={typeParameters:[],parameters:[new i(p()),new h,new i(p()),new i(p()),new w,new w,new w,new w,new w,new w,new w,new w,new w,new h,new h]};async function Dt(t){let{aptosConfig:o,options:n,creator:e}=t;return u({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::create_collection",functionArguments:[new d(t.description),new D(t.maxSupply??E),new d(t.name),new d(t.uri),new T(t.mutableDescription??!0),new T(t.mutableRoyalty??!0),new T(t.mutableURI??!0),new T(t.mutableTokenDescription??!0),new T(t.mutableTokenName??!0),new T(t.mutableTokenProperties??!0),new T(t.mutableTokenURI??!0),new T(t.tokensBurnableByCreator??!0),new T(t.tokensFreezableByCreator??!0),new D(t.royaltyNumerator??0),new D(t.royaltyDenominator??1)],abi:F},options:n})}async function v(t){let{aptosConfig:o,options:n}=t,e=n?.where;n?.tokenStandard&&(e.token_standard={_eq:n?.tokenStandard??"v2"});let r={query:O,variables:{where_condition:e,offset:n?.offset,limit:n?.limit}};return(await k({aptosConfig:o,query:r,originMethod:"getCollectionData"})).current_collections_v2[0]}async function ht(t){let{aptosConfig:o,creatorAddress:n,collectionName:e,options:r}=t,s=c.from(n),a={collection_name:{_eq:e},creator_address:{_eq:s.toStringLong()}};return r?.tokenStandard&&(a.token_standard={_eq:r?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...r,where:a}})}async function vt(t){let{aptosConfig:o,creatorAddress:n,options:e}=t,s={creator_address:{_eq:c.from(n).toStringLong()}};return e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...e,where:s}})}async function xt(t){let{aptosConfig:o,collectionId:n,options:e}=t,s={collection_id:{_eq:c.from(n).toStringLong()}};return e?.tokenStandard&&(s.token_standard={_eq:e?.tokenStandard??"v2"}),v({aptosConfig:o,options:{...e,where:s}})}async function Gt(t){let{creatorAddress:o,collectionName:n,options:e,aptosConfig:r}=t,s=c.from(o),a={collection_name:{_eq:n},creator_address:{_eq:s.toStringLong()}};return e?.tokenStandard&&(a.token_standard={_eq:e?.tokenStandard??"v2"}),(await v({aptosConfig:r,options:{where:a}})).collection_id}var N={typeParameters:[],parameters:[new i(p()),new i(p()),new i(p()),new i(p()),new f(new i(p())),new f(new i(p())),new f(f.u8())]};async function Bt(t){let{aptosConfig:o,options:n,creator:e,collection:r,description:s,name:a,uri:m,propertyKeys:g,propertyTypes:P,propertyValues:I}=t,b=P?.map(S=>C[S]);return u({aptosConfig:o,sender:e.accountAddress,data:{function:"0x4::aptos_token::mint",functionArguments:[new d(r),new d(s),new d(a),new d(m),_.MoveString(g??[]),_.MoveString(b??[]),K(I??[],b??[])],abi:N},options:n})}var Q={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new x]};async function Et(t){let{aptosConfig:o,sender:n,digitalAssetAddress:e,recipient:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x1::object::transfer",typeArguments:[s??l],functionArguments:[c.from(e),c.from(r)],abi:Q},options:a})}var Y={typeParameters:[],parameters:[new i(p()),new i(p()),new i(p()),new i(p()),new f(new i(p())),new f(new i(p())),new f(f.u8()),new x]};async function Ot(t){let{aptosConfig:o,account:n,collection:e,description:r,name:s,uri:a,recipient:m,propertyKeys:g,propertyTypes:P,propertyValues:I,options:b}=t;if(g?.length!==I?.length)throw new Error("Property keys and property values counts do not match");if(P?.length!==I?.length)throw new Error("Property types and property values counts do not match");let S=P?.map(U=>C[U]);return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::mint_soul_bound",functionArguments:[e,r,s,a,_.MoveString(g??[]),_.MoveString(S??[]),K(I??[],S??[]),m],abi:Y},options:b})}var L={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function qt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::burn",typeArguments:[r??l],functionArguments:[c.from(e)],abi:L},options:s})}var z={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function Vt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::freeze_transfer",typeArguments:[r??l],functionArguments:[e],abi:z},options:s})}var j={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0)))]};async function Rt(t){let{aptosConfig:o,creator:n,digitalAssetAddress:e,digitalAssetType:r,options:s}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::unfreeze_transfer",typeArguments:[r??l],functionArguments:[e],abi:j},options:s})}var W={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Mt(t){let{aptosConfig:o,creator:n,description:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_description",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:W},options:a})}var X={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Kt(t){let{aptosConfig:o,creator:n,name:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_name",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:X},options:a})}var H={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Ut(t){let{aptosConfig:o,creator:n,uri:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::set_uri",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:H},options:a})}var J={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p()),new i(p()),f.u8()]};async function Ft(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_property",typeArguments:[m??l],functionArguments:[c.from(a),new d(e),new d(C[r]),_.U8(B(s,C[r]))],abi:J},options:g})}var Z={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p())]};async function Nt(t){let{aptosConfig:o,creator:n,propertyKey:e,digitalAssetAddress:r,digitalAssetType:s,options:a}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::remove_property",typeArguments:[s??l],functionArguments:[c.from(r),new d(e)],abi:Z},options:a})}var $={typeParameters:[{constraints:["key"]}],parameters:[new i(y(new A(0))),new i(p()),new i(p()),f.u8()]};async function Qt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_property",typeArguments:[m??l],functionArguments:[c.from(a),new d(e),new d(C[r]),B(s,C[r])],abi:$},options:g})}var tt={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new i(y(new A(0))),new i(p()),new A(1)]};async function Yt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::add_typed_property",typeArguments:[m??l,C[r]],functionArguments:[c.from(a),new d(e),s],abi:tt},options:g})}var et={typeParameters:[{constraints:["key"]},{constraints:[]}],parameters:[new i(y(new A(0))),new i(p()),new A(1)]};async function Lt(t){let{aptosConfig:o,creator:n,propertyKey:e,propertyType:r,propertyValue:s,digitalAssetAddress:a,digitalAssetType:m,options:g}=t;return u({aptosConfig:o,sender:n.accountAddress,data:{function:"0x4::aptos_token::update_typed_property",typeArguments:[m??l,C[r]],functionArguments:[c.from(a),new d(e),s],abi:et},options:g})}function K(t,o){let n=new Array;return o.forEach((e,r)=>{n.push(B(t[r],e))}),n}function B(t,o){let n=R(o);return M(t,n,0,[]).bcsToBytes()}export{It as a,Pt as b,bt as c,St as d,Dt as e,v as f,ht as g,vt as h,xt as i,Gt as j,Bt as k,Et as l,Ot as m,qt as n,Vt as o,Rt as p,Mt as q,Kt as r,Ut as s,Ft as t,Nt as u,Qt as v,Yt as w,Lt as x};
2
+ //# sourceMappingURL=chunk-TZAQMHQF.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-6EMN3BOV.mjs";import{f as r}from"./chunk-LICJI4D2.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var i=class{constructor(n){this.config=n}async simple(n){return r({aptosConfig:this.config,...n})}async multiAgent(n){return r({aptosConfig:this.config,...n})}};o([s],i.prototype,"simple",1),o([s],i.prototype,"multiAgent",1);export{i as a};
2
- //# sourceMappingURL=chunk-AERLYJPT.mjs.map
1
+ import{b as s}from"./chunk-6EMN3BOV.mjs";import{f as r}from"./chunk-I3ZYHDRZ.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var i=class{constructor(n){this.config=n}async simple(n){return r({aptosConfig:this.config,...n})}async multiAgent(n){return r({aptosConfig:this.config,...n})}};o([s],i.prototype,"simple",1),o([s],i.prototype,"multiAgent",1);export{i as a};
2
+ //# sourceMappingURL=chunk-UWEWPHGU.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r,b as t,c as o,d as s}from"./chunk-74EWOTWQ.mjs";var i=class{constructor(e){this.config=e}async getPepper(e){return r({aptosConfig:this.config,...e})}async getProof(e){return t({aptosConfig:this.config,...e})}async deriveKeylessAccount(e){return o({aptosConfig:this.config,...e})}async updateFederatedKeylessJwkSetTransaction(e){return s({aptosConfig:this.config,...e})}};export{i as a};
2
- //# sourceMappingURL=chunk-TV62D5OU.mjs.map
1
+ import{a as r,b as t,c as o,d as s}from"./chunk-V7U3LLZC.mjs";var i=class{constructor(e){this.config=e}async getPepper(e){return r({aptosConfig:this.config,...e})}async getProof(e){return t({aptosConfig:this.config,...e})}async deriveKeylessAccount(e){return o({aptosConfig:this.config,...e})}async updateFederatedKeylessJwkSetTransaction(e){return s({aptosConfig:this.config,...e})}};export{i as a};
2
+ //# sourceMappingURL=chunk-V5XTHER2.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as S}from"./chunk-I3ZYHDRZ.mjs";import{g}from"./chunk-FCQHPMOT.mjs";import{a as C}from"./chunk-HLOUR2K3.mjs";import{a as u}from"./chunk-43Q5ETMN.mjs";import{a as b}from"./chunk-7YJ43PCR.mjs";import{i as w,l as K,m as k,n as A,p as x}from"./chunk-SBCXYFC4.mjs";import{b as m}from"./chunk-6BXB4PLA.mjs";import{e as P,f as h}from"./chunk-FTBXTZM2.mjs";import{a as f}from"./chunk-YELQZVBK.mjs";import{b as p}from"./chunk-AOCNYMMX.mjs";import{jwtDecode as E}from"jwt-decode";async function j(r){let{aptosConfig:s,jwt:i,ephemeralKeyPair:e,uidKey:a="sub",derivationPath:n}=r,t={jwt_b64:i,epk:e.getPublicKey().bcsToHex().toStringWithoutPrefix(),exp_date_secs:e.expiryDateSecs,epk_blinder:p.fromHexInput(e.blinder).toStringWithoutPrefix(),uid_key:a,derivation_path:n},{data:o}=await P({aptosConfig:s,path:"fetch",body:t,originMethod:"getPepper",overrides:{WITH_CREDENTIALS:!1}});return p.fromHexInput(o.pepper).toUint8Array()}async function _(r){let{aptosConfig:s,jwt:i,ephemeralKeyPair:e,pepper:a=await j(r),uidKey:n="sub"}=r;if(p.fromHexInput(a).toUint8Array().length!==u.PEPPER_LENGTH)throw new Error(`Pepper needs to be ${u.PEPPER_LENGTH} bytes`);let{maxExpHorizonSecs:t}=await x({aptosConfig:s});if(t<e.expiryDateSecs-E(i).iat)throw Error(`The EphemeralKeyPair is too long lived. It's lifespan must be less than ${t}`);let o={jwt_b64:i,epk:e.getPublicKey().bcsToHex().toStringWithoutPrefix(),epk_blinder:p.fromHexInput(e.blinder).toStringWithoutPrefix(),exp_date_secs:e.expiryDateSecs,exp_horizon_secs:t,pepper:p.fromHexInput(a).toStringWithoutPrefix(),uid_key:n},{data:c}=await h({aptosConfig:s,path:"prove",body:o,originMethod:"getProof",overrides:{WITH_CREDENTIALS:!1}}),d=c.proof,l=new K({a:d.a,b:d.b,c:d.c});return new A({proof:new k(l,0),trainingWheelsSignature:m.fromHex(c.training_wheels_signature),expHorizonSecs:t})}async function V(r){let{aptosConfig:s,jwt:i,jwkAddress:e,uidKey:a,proofFetchCallback:n,pepper:t=await j(r)}=r,o=_({...r,pepper:t}),c=n?o:await o;if(e!==void 0){let y=b.fromJwtAndPepper({jwt:i,pepper:t,jwkAddress:e,uidKey:a}),v=await g({aptosConfig:s,authenticationKey:y.authKey().derivedAddress()});return C.create({...r,address:v,proof:c,pepper:t,proofFetchCallback:n,jwkAddress:e})}let d=w.fromJwtAndPepper({jwt:i,pepper:t,uidKey:a}),l=await g({aptosConfig:s,authenticationKey:d.authKey().derivedAddress()});return u.create({...r,address:l,proof:c,pepper:t,proofFetchCallback:n})}async function O(r){let{aptosConfig:s,sender:i,iss:e}=r,a=r.jwksUrl??(e.endsWith("/")?`${e}.well-known/jwks.json`:`${e}/.well-known/jwks.json`),n=await fetch(a);if(!n.ok)throw new Error(`Failed to fetch JWKS: ${n.status} ${n.statusText}`);let t=await n.json();return S({aptosConfig:s,sender:i.accountAddress,data:{function:"0x1::jwks::update_federated_jwk_set",functionArguments:[e,f.MoveString(t.keys.map(o=>o.kid)),f.MoveString(t.keys.map(o=>o.alg)),f.MoveString(t.keys.map(o=>o.e)),f.MoveString(t.keys.map(o=>o.n))]}})}export{j as a,_ as b,V as c,O as d};
2
+ //# sourceMappingURL=chunk-V7U3LLZC.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/internal/keyless.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * This file contains the underlying implementations for exposed API surface in\n * the {@link api/keyless}. By moving the methods out into a separate file,\n * other namespaces and processes can access these methods without depending on the entire\n * keyless namespace and without having a dependency cycle error.\n */\nimport { jwtDecode, JwtPayload } from \"jwt-decode\";\nimport { AptosConfig } from \"../api/aptosConfig\";\nimport { postAptosPepperService, postAptosProvingService } from \"../client\";\nimport {\n AccountAddressInput,\n EphemeralSignature,\n Groth16Zkp,\n Hex,\n KeylessPublicKey,\n ZeroKnowledgeSig,\n ZkProof,\n getKeylessConfig,\n} from \"../core\";\nimport { HexInput, ZkpVariant } from \"../types\";\nimport { Account, EphemeralKeyPair, KeylessAccount, ProofFetchCallback } from \"../account\";\nimport { PepperFetchRequest, PepperFetchResponse, ProverRequest, ProverResponse } from \"../types/keyless\";\nimport { lookupOriginalAccountAddress } from \"./account\";\nimport { FederatedKeylessPublicKey } from \"../core/crypto/federatedKeyless\";\nimport { FederatedKeylessAccount } from \"../account/FederatedKeylessAccount\";\nimport { MoveVector } from \"../bcs\";\nimport { generateTransaction } from \"./transactionSubmission\";\nimport { SimpleTransaction } from \"../transactions\";\n\nexport async function getPepper(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n uidKey?: string;\n derivationPath?: string;\n}): Promise<Uint8Array> {\n const { aptosConfig, jwt, ephemeralKeyPair, uidKey = \"sub\", derivationPath } = args;\n\n const body = {\n jwt_b64: jwt,\n epk: ephemeralKeyPair.getPublicKey().bcsToHex().toStringWithoutPrefix(),\n exp_date_secs: ephemeralKeyPair.expiryDateSecs,\n epk_blinder: Hex.fromHexInput(ephemeralKeyPair.blinder).toStringWithoutPrefix(),\n uid_key: uidKey,\n derivation_path: derivationPath,\n };\n const { data } = await postAptosPepperService<PepperFetchRequest, PepperFetchResponse>({\n aptosConfig,\n path: \"fetch\",\n body,\n originMethod: \"getPepper\",\n overrides: { WITH_CREDENTIALS: false },\n });\n return Hex.fromHexInput(data.pepper).toUint8Array();\n}\n\nexport async function getProof(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n pepper?: HexInput;\n uidKey?: string;\n}): Promise<ZeroKnowledgeSig> {\n const { aptosConfig, jwt, ephemeralKeyPair, pepper = await getPepper(args), uidKey = \"sub\" } = args;\n if (Hex.fromHexInput(pepper).toUint8Array().length !== KeylessAccount.PEPPER_LENGTH) {\n throw new Error(`Pepper needs to be ${KeylessAccount.PEPPER_LENGTH} bytes`);\n }\n const { maxExpHorizonSecs } = await getKeylessConfig({ aptosConfig });\n if (maxExpHorizonSecs < ephemeralKeyPair.expiryDateSecs - jwtDecode<JwtPayload>(jwt).iat!) {\n throw Error(`The EphemeralKeyPair is too long lived. It's lifespan must be less than ${maxExpHorizonSecs}`);\n }\n const json = {\n jwt_b64: jwt,\n epk: ephemeralKeyPair.getPublicKey().bcsToHex().toStringWithoutPrefix(),\n epk_blinder: Hex.fromHexInput(ephemeralKeyPair.blinder).toStringWithoutPrefix(),\n exp_date_secs: ephemeralKeyPair.expiryDateSecs,\n exp_horizon_secs: maxExpHorizonSecs,\n pepper: Hex.fromHexInput(pepper).toStringWithoutPrefix(),\n uid_key: uidKey,\n };\n\n const { data } = await postAptosProvingService<ProverRequest, ProverResponse>({\n aptosConfig,\n path: \"prove\",\n body: json,\n originMethod: \"getProof\",\n overrides: { WITH_CREDENTIALS: false },\n });\n\n const proofPoints = data.proof;\n const groth16Zkp = new Groth16Zkp({\n a: proofPoints.a,\n b: proofPoints.b,\n c: proofPoints.c,\n });\n\n const signedProof = new ZeroKnowledgeSig({\n proof: new ZkProof(groth16Zkp, ZkpVariant.Groth16),\n trainingWheelsSignature: EphemeralSignature.fromHex(data.training_wheels_signature),\n expHorizonSecs: maxExpHorizonSecs,\n });\n return signedProof;\n}\n\nexport async function deriveKeylessAccount(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n uidKey?: string;\n pepper?: HexInput;\n proofFetchCallback?: ProofFetchCallback;\n}): Promise<KeylessAccount>;\n\nexport async function deriveKeylessAccount(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n jwkAddress: AccountAddressInput;\n uidKey?: string;\n pepper?: HexInput;\n proofFetchCallback?: ProofFetchCallback;\n}): Promise<FederatedKeylessAccount>;\n\nexport async function deriveKeylessAccount(args: {\n aptosConfig: AptosConfig;\n jwt: string;\n ephemeralKeyPair: EphemeralKeyPair;\n jwkAddress?: AccountAddressInput;\n uidKey?: string;\n pepper?: HexInput;\n proofFetchCallback?: ProofFetchCallback;\n}): Promise<KeylessAccount | FederatedKeylessAccount> {\n const { aptosConfig, jwt, jwkAddress, uidKey, proofFetchCallback, pepper = await getPepper(args) } = args;\n const proofPromise = getProof({ ...args, pepper });\n // If a callback is provided, pass in the proof as a promise to KeylessAccount.create. This will make the proof be fetched in the\n // background and the callback will handle the outcome of the fetch. This allows the developer to not have to block on the proof fetch\n // allowing for faster rendering of UX.\n //\n // If no callback is provided, the just await the proof fetch and continue syncronously.\n const proof = proofFetchCallback ? proofPromise : await proofPromise;\n\n // Look up the original address to handle key rotations and then instantiate the account.\n if (jwkAddress !== undefined) {\n const publicKey = FederatedKeylessPublicKey.fromJwtAndPepper({ jwt, pepper, jwkAddress, uidKey });\n const address = await lookupOriginalAccountAddress({\n aptosConfig,\n authenticationKey: publicKey.authKey().derivedAddress(),\n });\n\n return FederatedKeylessAccount.create({ ...args, address, proof, pepper, proofFetchCallback, jwkAddress });\n }\n\n const publicKey = KeylessPublicKey.fromJwtAndPepper({ jwt, pepper, uidKey });\n const address = await lookupOriginalAccountAddress({\n aptosConfig,\n authenticationKey: publicKey.authKey().derivedAddress(),\n });\n return KeylessAccount.create({ ...args, address, proof, pepper, proofFetchCallback });\n}\n\ninterface JWK {\n kty: string; // Key type\n kid: string; // Key ID\n alg: string; // Algorithm used with the key\n n: string; // Modulus (for RSA keys)\n e: string; // Exponent (for RSA keys)\n}\n\ninterface JWKS {\n keys: JWK[];\n}\n\nexport async function updateFederatedKeylessJwkSetTransaction(args: {\n aptosConfig: AptosConfig;\n sender: Account;\n iss: string;\n jwksUrl?: string;\n}): Promise<SimpleTransaction> {\n const { aptosConfig, sender, iss } = args;\n const jwksUrl = args.jwksUrl ?? (iss.endsWith(\"/\") ? `${iss}.well-known/jwks.json` : `${iss}/.well-known/jwks.json`);\n const response = await fetch(jwksUrl);\n if (!response.ok) {\n throw new Error(`Failed to fetch JWKS: ${response.status} ${response.statusText}`);\n }\n const jwks: JWKS = await response.json();\n return generateTransaction({\n aptosConfig,\n sender: sender.accountAddress,\n data: {\n function: \"0x1::jwks::update_federated_jwk_set\",\n functionArguments: [\n iss,\n MoveVector.MoveString(jwks.keys.map((key) => key.kid)),\n MoveVector.MoveString(jwks.keys.map((key) => key.alg)),\n MoveVector.MoveString(jwks.keys.map((key) => key.e)),\n MoveVector.MoveString(jwks.keys.map((key) => key.n)),\n ],\n },\n });\n}\n"],"mappings":"wbASA,OAAS,aAAAA,MAA6B,aAuBtC,eAAsBC,EAAUC,EAMR,CACtB,GAAM,CAAE,YAAAC,EAAa,IAAAC,EAAK,iBAAAC,EAAkB,OAAAC,EAAS,MAAO,eAAAC,CAAe,EAAIL,EAEzEM,EAAO,CACX,QAASJ,EACT,IAAKC,EAAiB,aAAa,EAAE,SAAS,EAAE,sBAAsB,EACtE,cAAeA,EAAiB,eAChC,YAAaI,EAAI,aAAaJ,EAAiB,OAAO,EAAE,sBAAsB,EAC9E,QAASC,EACT,gBAAiBC,CACnB,EACM,CAAE,KAAAG,CAAK,EAAI,MAAMC,EAAgE,CACrF,YAAAR,EACA,KAAM,QACN,KAAAK,EACA,aAAc,YACd,UAAW,CAAE,iBAAkB,EAAM,CACvC,CAAC,EACD,OAAOC,EAAI,aAAaC,EAAK,MAAM,EAAE,aAAa,CACpD,CAEA,eAAsBE,EAASV,EAMD,CAC5B,GAAM,CAAE,YAAAC,EAAa,IAAAC,EAAK,iBAAAC,EAAkB,OAAAQ,EAAS,MAAMZ,EAAUC,CAAI,EAAG,OAAAI,EAAS,KAAM,EAAIJ,EAC/F,GAAIO,EAAI,aAAaI,CAAM,EAAE,aAAa,EAAE,SAAWC,EAAe,cACpE,MAAM,IAAI,MAAM,sBAAsBA,EAAe,aAAa,QAAQ,EAE5E,GAAM,CAAE,kBAAAC,CAAkB,EAAI,MAAMC,EAAiB,CAAE,YAAAb,CAAY,CAAC,EACpE,GAAIY,EAAoBV,EAAiB,eAAiBY,EAAsBb,CAAG,EAAE,IACnF,MAAM,MAAM,4EAA4EW,CAAiB,EAAE,EAE7G,IAAMG,EAAO,CACX,QAASd,EACT,IAAKC,EAAiB,aAAa,EAAE,SAAS,EAAE,sBAAsB,EACtE,YAAaI,EAAI,aAAaJ,EAAiB,OAAO,EAAE,sBAAsB,EAC9E,cAAeA,EAAiB,eAChC,iBAAkBU,EAClB,OAAQN,EAAI,aAAaI,CAAM,EAAE,sBAAsB,EACvD,QAASP,CACX,EAEM,CAAE,KAAAI,CAAK,EAAI,MAAMS,EAAuD,CAC5E,YAAAhB,EACA,KAAM,QACN,KAAMe,EACN,aAAc,WACd,UAAW,CAAE,iBAAkB,EAAM,CACvC,CAAC,EAEKE,EAAcV,EAAK,MACnBW,EAAa,IAAIC,EAAW,CAChC,EAAGF,EAAY,EACf,EAAGA,EAAY,EACf,EAAGA,EAAY,CACjB,CAAC,EAOD,OALoB,IAAIG,EAAiB,CACvC,MAAO,IAAIC,EAAQH,GAA8B,EACjD,wBAAyBI,EAAmB,QAAQf,EAAK,yBAAyB,EAClF,eAAgBK,CAClB,CAAC,CAEH,CAqBA,eAAsBW,EAAqBxB,EAQW,CACpD,GAAM,CAAE,YAAAC,EAAa,IAAAC,EAAK,WAAAuB,EAAY,OAAArB,EAAQ,mBAAAsB,EAAoB,OAAAf,EAAS,MAAMZ,EAAUC,CAAI,CAAE,EAAIA,EAC/F2B,EAAejB,EAAS,CAAE,GAAGV,EAAM,OAAAW,CAAO,CAAC,EAM3CiB,EAAQF,EAAqBC,EAAe,MAAMA,EAGxD,GAAIF,IAAe,OAAW,CAC5B,IAAMI,EAAYC,EAA0B,iBAAiB,CAAE,IAAA5B,EAAK,OAAAS,EAAQ,WAAAc,EAAY,OAAArB,CAAO,CAAC,EAC1F2B,EAAU,MAAMC,EAA6B,CACjD,YAAA/B,EACA,kBAAmB4B,EAAU,QAAQ,EAAE,eAAe,CACxD,CAAC,EAED,OAAOI,EAAwB,OAAO,CAAE,GAAGjC,EAAM,QAAA+B,EAAS,MAAAH,EAAO,OAAAjB,EAAQ,mBAAAe,EAAoB,WAAAD,CAAW,CAAC,CAC3G,CAEA,IAAMI,EAAYK,EAAiB,iBAAiB,CAAE,IAAAhC,EAAK,OAAAS,EAAQ,OAAAP,CAAO,CAAC,EACrE2B,EAAU,MAAMC,EAA6B,CACjD,YAAA/B,EACA,kBAAmB4B,EAAU,QAAQ,EAAE,eAAe,CACxD,CAAC,EACD,OAAOjB,EAAe,OAAO,CAAE,GAAGZ,EAAM,QAAA+B,EAAS,MAAAH,EAAO,OAAAjB,EAAQ,mBAAAe,CAAmB,CAAC,CACtF,CAcA,eAAsBS,EAAwCnC,EAK/B,CAC7B,GAAM,CAAE,YAAAC,EAAa,OAAAmC,EAAQ,IAAAC,CAAI,EAAIrC,EAC/BsC,EAAUtC,EAAK,UAAYqC,EAAI,SAAS,GAAG,EAAI,GAAGA,CAAG,wBAA0B,GAAGA,CAAG,0BACrFE,EAAW,MAAM,MAAMD,CAAO,EACpC,GAAI,CAACC,EAAS,GACZ,MAAM,IAAI,MAAM,yBAAyBA,EAAS,MAAM,IAAIA,EAAS,UAAU,EAAE,EAEnF,IAAMC,EAAa,MAAMD,EAAS,KAAK,EACvC,OAAOE,EAAoB,CACzB,YAAAxC,EACA,OAAQmC,EAAO,eACf,KAAM,CACJ,SAAU,sCACV,kBAAmB,CACjBC,EACAK,EAAW,WAAWF,EAAK,KAAK,IAAKG,GAAQA,EAAI,GAAG,CAAC,EACrDD,EAAW,WAAWF,EAAK,KAAK,IAAKG,GAAQA,EAAI,GAAG,CAAC,EACrDD,EAAW,WAAWF,EAAK,KAAK,IAAKG,GAAQA,EAAI,CAAC,CAAC,EACnDD,EAAW,WAAWF,EAAK,KAAK,IAAKG,GAAQA,EAAI,CAAC,CAAC,CACrD,CACF,CACF,CAAC,CACH","names":["jwtDecode","getPepper","args","aptosConfig","jwt","ephemeralKeyPair","uidKey","derivationPath","body","Hex","data","postAptosPepperService","getProof","pepper","KeylessAccount","maxExpHorizonSecs","getKeylessConfig","jwtDecode","json","postAptosProvingService","proofPoints","groth16Zkp","Groth16Zkp","ZeroKnowledgeSig","ZkProof","EphemeralSignature","deriveKeylessAccount","jwkAddress","proofFetchCallback","proofPromise","proof","publicKey","FederatedKeylessPublicKey","address","lookupOriginalAccountAddress","FederatedKeylessAccount","KeylessPublicKey","updateFederatedKeylessJwkSetTransaction","sender","iss","jwksUrl","response","jwks","generateTransaction","MoveVector","key"]}
@@ -1,2 +1,2 @@
1
- import{a as l,c as an,d as rn,e as R}from"./chunk-5HWJ3SN4.mjs";import{r as en,u as y}from"./chunk-BQPQLOIW.mjs";import{a as nn}from"./chunk-K7ZPRL7C.mjs";import{b as tn}from"./chunk-G6HZPSZ3.mjs";import{a as Y}from"./chunk-J45FMNYT.mjs";import{a as A}from"./chunk-OOVNFKA6.mjs";import{a as J}from"./chunk-GKRIMGKW.mjs";import{a as Q}from"./chunk-7BPKOPP7.mjs";import{a as L,c as Z,d as j}from"./chunk-ND23H3AK.mjs";import{c as O,d as V,e as q,f as x,g as H,h as X,i as z}from"./chunk-SVO6PVAX.mjs";import{a as v}from"./chunk-UW5TIZFE.mjs";import{b as E,d as B,e as F,f as D}from"./chunk-ZASN3QQQ.mjs";import{a as k,b as p,d as g}from"./chunk-BC5BEOKM.mjs";import{a as S,b}from"./chunk-ASQIKTEF.mjs";import{a as N}from"./chunk-QTTDBQAJ.mjs";import{a as K}from"./chunk-ZAHUEAGT.mjs";import{i as P,j as _}from"./chunk-DYMN66K5.mjs";import{b as $,d as M}from"./chunk-7T5CUI2H.mjs";import{b as u}from"./chunk-EDVGFSB5.mjs";import{a as C}from"./chunk-AH44UPM4.mjs";import{a as U}from"./chunk-BSUYPXRD.mjs";import{b as w}from"./chunk-AOCNYMMX.mjs";import{g as I}from"./chunk-C5JQQTMI.mjs";import{b as W,c as G}from"./chunk-EXP5STXZ.mjs";import{sha3_256 as mn}from"@noble/hashes/sha3";async function vn(n){if(en(n))return fn(n);let{moduleAddress:t,moduleName:e,functionName:i}=y(n.function),a=await sn({key:"entry-function",moduleAddress:t,moduleName:e,functionName:i,aptosConfig:n.aptosConfig,abi:n.abi,fetch:an});return An({...n,abi:a})}function An(n){let t=n.abi,{moduleAddress:e,moduleName:i,functionName:a}=y(n.function),r=l(n.typeArguments);if(r.length!==t.typeParameters.length)throw new Error(`Type argument count mismatch, expected ${t.typeParameters.length}, received ${r.length}`);let o=n.functionArguments.map((s,d)=>R(n.function,t,s,d,r));if(o.length!==t.parameters.length)throw new Error(`Too few arguments for '${e}::${i}::${a}', expected ${t.parameters.length} but got ${o.length}`);let c=x.build(`${e}::${i}`,a,r,o);if("multisigAddress"in n){let s=u.from(n.multisigAddress);return new q(new X(s,new z(c)))}return new V(c)}async function On(n){let{moduleAddress:t,moduleName:e,functionName:i}=y(n.function),a=await sn({key:"view-function",moduleAddress:t,moduleName:e,functionName:i,aptosConfig:n.aptosConfig,abi:n.abi,fetch:rn});return yn({abi:a,...n})}function yn(n){let t=n.abi,{moduleAddress:e,moduleName:i,functionName:a}=y(n.function),r=l(n.typeArguments);if(r.length!==t.typeParameters.length)throw new Error(`Type argument count mismatch, expected ${t.typeParameters.length}, received ${r.length}`);let o=n?.functionArguments?.map((c,s)=>R(n.function,t,c,s,r))??[];if(o.length!==t.parameters.length)throw new Error(`Too few arguments for '${e}::${i}::${a}', expected ${t.parameters.length} but got ${o.length}`);return x.build(`${e}::${i}`,a,r,o)}function fn(n){return new O(new H(w.fromHexInput(n.bytecode).toUint8Array(),l(n.typeArguments),n.functionArguments))}async function pn(n){let{aptosConfig:t,sender:e,payload:i,options:a,feePayerAddress:r}=n,o=async()=>I[t.network]?{chainId:I[t.network]}:{chainId:(await Y({aptosConfig:t})).chain_id},c=async()=>a?.gasUnitPrice?{gasEstimate:a.gasUnitPrice}:{gasEstimate:(await tn({aptosConfig:t})).gas_estimate},s=async()=>{let f=async()=>a?.accountSequenceNumber!==void 0?a.accountSequenceNumber:(await nn({aptosConfig:t,accountAddress:e})).sequence_number;if(r&&u.from(r).equals(u.ZERO))try{return await f()}catch{return 0}else return f()},[{chainId:d},{gasEstimate:m},h]=await Promise.all([o(),c(),s()]),{maxGasAmount:cn,gasUnitPrice:un,expireTimestamp:dn}={maxGasAmount:a?.maxGasAmount?BigInt(a.maxGasAmount):BigInt(2e5),gasUnitPrice:a?.gasUnitPrice??BigInt(m),expireTimestamp:a?.expireTimestamp??BigInt(Math.floor(Date.now()/1e3)+20)};return new L(u.from(e),BigInt(h),i,BigInt(cn),BigInt(un),BigInt(dn),new v(d))}async function Vn(n){let{aptosConfig:t,sender:e,payload:i,options:a,feePayerAddress:r}=n,o=await pn({aptosConfig:t,sender:e,payload:i,options:a,feePayerAddress:r});if("secondarySignerAddresses"in n){let c=n.secondarySignerAddresses?.map(s=>u.from(s))??[];return new Q(o,c,n.feePayerAddress?u.from(n.feePayerAddress):void 0)}return new J(o,n.feePayerAddress?u.from(n.feePayerAddress):void 0)}function qn(n){let{signerPublicKey:t,transaction:e,secondarySignersPublicKeys:i,feePayerPublicKey:a}=n,r=T(t);if(e.feePayerAddress){let c=new j(e.rawTransaction,e.secondarySignerAddresses??[],e.feePayerAddress),s=[];i&&(s=i.map(h=>T(h)));let d=T(a),m=new F(r,e.secondarySignerAddresses??[],s,{address:e.feePayerAddress,authenticator:d});return new A(c.raw_txn,m).bcsToBytes()}if(e.secondarySignerAddresses){let c=new Z(e.rawTransaction,e.secondarySignerAddresses),s=[];s=i.map(m=>T(m));let d=new B(r,e.secondarySignerAddresses,s);return new A(c.raw_txn,d).bcsToBytes()}let o;if(r instanceof p)o=new E(r.public_key,r.signature);else if(r instanceof g)o=new D(r);else throw new Error("Invalid public key");return new A(e.rawTransaction,o).bcsToBytes()}function T(n){let e=P.isInstance(n)||K.isInstance(n)||N.isInstance(n)?new S(n):n,i=new M(new Uint8Array(64));if($.isInstance(e))return new p(e,i);if(S.isInstance(e))return P.isInstance(e.publicKey)?new g(e,new b(_.getSimulationSignature())):new g(e,new b(i));throw new Error("Unsupported public key")}function gn(n){let{transaction:t,feePayerAuthenticator:e,additionalSignersAuthenticators:i}=n,a=U(k,n.senderAuthenticator),r;if(t.feePayerAddress){if(!e)throw new Error("Must provide a feePayerAuthenticator argument to generate a signed fee payer transaction");r=new F(a,t.secondarySignerAddresses??[],i??[],{address:t.feePayerAddress,authenticator:e})}else if(t.secondarySignerAddresses){if(!i)throw new Error("Must provide a additionalSignersAuthenticators argument to generate a signed multi agent transaction");r=new B(a,t.secondarySignerAddresses,i)}else a instanceof p?r=new E(a.public_key,a.signature):r=new D(a);return new A(t.rawTransaction,r).bcsToBytes()}function on(n){let t=mn.create();for(let e of n)t.update(e);return t.digest()}var ln=on(["APTOS::Transaction"]);function Hn(n){let t=gn(n);return new w(on([ln,new Uint8Array([0]),t])).toString()}async function sn({key:n,moduleAddress:t,moduleName:e,functionName:i,aptosConfig:a,abi:r,fetch:o}){return r!==void 0?r:C(async()=>o(t,e,i,a),`${n}-${a.network}-${t}-${e}-${i}`,1e3*60*5)()}export{vn as a,An as b,On as c,yn as d,pn as e,Vn as f,qn as g,T as h,gn as i,on as j,Hn as k};
2
- //# sourceMappingURL=chunk-MVTR6HU6.mjs.map
1
+ import{a as l,c as an,d as rn,e as R}from"./chunk-DFECJJPK.mjs";import{r as en,u as y}from"./chunk-BQPQLOIW.mjs";import{a as nn}from"./chunk-FCQHPMOT.mjs";import{b as tn}from"./chunk-G6HZPSZ3.mjs";import{a as Y}from"./chunk-J45FMNYT.mjs";import{a as Q}from"./chunk-7BPKOPP7.mjs";import{a as A}from"./chunk-T3ZU4BDV.mjs";import{a as J}from"./chunk-GKRIMGKW.mjs";import{a as L,c as Z,d as j}from"./chunk-ND23H3AK.mjs";import{c as O,d as V,e as q,f as x,g as H,h as X,i as z}from"./chunk-SVO6PVAX.mjs";import{a as v}from"./chunk-UW5TIZFE.mjs";import{b as E,d as B,e as F,f as D}from"./chunk-BX6Y4BSO.mjs";import{a as k,b as p,d as g}from"./chunk-O2IHHH7H.mjs";import{a as S,b}from"./chunk-HY5RVZLG.mjs";import{a as N}from"./chunk-76QOH2OW.mjs";import{a as K}from"./chunk-7YJ43PCR.mjs";import{i as P,j as _}from"./chunk-SBCXYFC4.mjs";import{b as $,d as M}from"./chunk-G76BSSWS.mjs";import{b as u}from"./chunk-EDVGFSB5.mjs";import{a as C}from"./chunk-AH44UPM4.mjs";import{a as U}from"./chunk-BSUYPXRD.mjs";import{b as w}from"./chunk-AOCNYMMX.mjs";import{g as I}from"./chunk-C5JQQTMI.mjs";import{b as W,c as G}from"./chunk-EXP5STXZ.mjs";import{sha3_256 as mn}from"@noble/hashes/sha3";async function vn(n){if(en(n))return fn(n);let{moduleAddress:t,moduleName:e,functionName:i}=y(n.function),a=await sn({key:"entry-function",moduleAddress:t,moduleName:e,functionName:i,aptosConfig:n.aptosConfig,abi:n.abi,fetch:an});return An({...n,abi:a})}function An(n){let t=n.abi,{moduleAddress:e,moduleName:i,functionName:a}=y(n.function),r=l(n.typeArguments);if(r.length!==t.typeParameters.length)throw new Error(`Type argument count mismatch, expected ${t.typeParameters.length}, received ${r.length}`);let o=n.functionArguments.map((s,d)=>R(n.function,t,s,d,r));if(o.length!==t.parameters.length)throw new Error(`Too few arguments for '${e}::${i}::${a}', expected ${t.parameters.length} but got ${o.length}`);let c=x.build(`${e}::${i}`,a,r,o);if("multisigAddress"in n){let s=u.from(n.multisigAddress);return new q(new X(s,new z(c)))}return new V(c)}async function On(n){let{moduleAddress:t,moduleName:e,functionName:i}=y(n.function),a=await sn({key:"view-function",moduleAddress:t,moduleName:e,functionName:i,aptosConfig:n.aptosConfig,abi:n.abi,fetch:rn});return yn({abi:a,...n})}function yn(n){let t=n.abi,{moduleAddress:e,moduleName:i,functionName:a}=y(n.function),r=l(n.typeArguments);if(r.length!==t.typeParameters.length)throw new Error(`Type argument count mismatch, expected ${t.typeParameters.length}, received ${r.length}`);let o=n?.functionArguments?.map((c,s)=>R(n.function,t,c,s,r))??[];if(o.length!==t.parameters.length)throw new Error(`Too few arguments for '${e}::${i}::${a}', expected ${t.parameters.length} but got ${o.length}`);return x.build(`${e}::${i}`,a,r,o)}function fn(n){return new O(new H(w.fromHexInput(n.bytecode).toUint8Array(),l(n.typeArguments),n.functionArguments))}async function pn(n){let{aptosConfig:t,sender:e,payload:i,options:a,feePayerAddress:r}=n,o=async()=>I[t.network]?{chainId:I[t.network]}:{chainId:(await Y({aptosConfig:t})).chain_id},c=async()=>a?.gasUnitPrice?{gasEstimate:a.gasUnitPrice}:{gasEstimate:(await tn({aptosConfig:t})).gas_estimate},s=async()=>{let f=async()=>a?.accountSequenceNumber!==void 0?a.accountSequenceNumber:(await nn({aptosConfig:t,accountAddress:e})).sequence_number;if(r&&u.from(r).equals(u.ZERO))try{return await f()}catch{return 0}else return f()},[{chainId:d},{gasEstimate:m},h]=await Promise.all([o(),c(),s()]),{maxGasAmount:cn,gasUnitPrice:un,expireTimestamp:dn}={maxGasAmount:a?.maxGasAmount?BigInt(a.maxGasAmount):BigInt(2e5),gasUnitPrice:a?.gasUnitPrice??BigInt(m),expireTimestamp:a?.expireTimestamp??BigInt(Math.floor(Date.now()/1e3)+20)};return new L(u.from(e),BigInt(h),i,BigInt(cn),BigInt(un),BigInt(dn),new v(d))}async function Vn(n){let{aptosConfig:t,sender:e,payload:i,options:a,feePayerAddress:r}=n,o=await pn({aptosConfig:t,sender:e,payload:i,options:a,feePayerAddress:r});if("secondarySignerAddresses"in n){let c=n.secondarySignerAddresses?.map(s=>u.from(s))??[];return new Q(o,c,n.feePayerAddress?u.from(n.feePayerAddress):void 0)}return new J(o,n.feePayerAddress?u.from(n.feePayerAddress):void 0)}function qn(n){let{signerPublicKey:t,transaction:e,secondarySignersPublicKeys:i,feePayerPublicKey:a}=n,r=T(t);if(e.feePayerAddress){let c=new j(e.rawTransaction,e.secondarySignerAddresses??[],e.feePayerAddress),s=[];i&&(s=i.map(h=>T(h)));let d=T(a),m=new F(r,e.secondarySignerAddresses??[],s,{address:e.feePayerAddress,authenticator:d});return new A(c.raw_txn,m).bcsToBytes()}if(e.secondarySignerAddresses){let c=new Z(e.rawTransaction,e.secondarySignerAddresses),s=[];s=i.map(m=>T(m));let d=new B(r,e.secondarySignerAddresses,s);return new A(c.raw_txn,d).bcsToBytes()}let o;if(r instanceof p)o=new E(r.public_key,r.signature);else if(r instanceof g)o=new D(r);else throw new Error("Invalid public key");return new A(e.rawTransaction,o).bcsToBytes()}function T(n){let e=P.isInstance(n)||K.isInstance(n)||N.isInstance(n)?new S(n):n,i=new M(new Uint8Array(64));if($.isInstance(e))return new p(e,i);if(S.isInstance(e))return P.isInstance(e.publicKey)?new g(e,new b(_.getSimulationSignature())):new g(e,new b(i));throw new Error("Unsupported public key")}function gn(n){let{transaction:t,feePayerAuthenticator:e,additionalSignersAuthenticators:i}=n,a=U(k,n.senderAuthenticator),r;if(t.feePayerAddress){if(!e)throw new Error("Must provide a feePayerAuthenticator argument to generate a signed fee payer transaction");r=new F(a,t.secondarySignerAddresses??[],i??[],{address:t.feePayerAddress,authenticator:e})}else if(t.secondarySignerAddresses){if(!i)throw new Error("Must provide a additionalSignersAuthenticators argument to generate a signed multi agent transaction");r=new B(a,t.secondarySignerAddresses,i)}else a instanceof p?r=new E(a.public_key,a.signature):r=new D(a);return new A(t.rawTransaction,r).bcsToBytes()}function on(n){let t=mn.create();for(let e of n)t.update(e);return t.digest()}var ln=on(["APTOS::Transaction"]);function Hn(n){let t=gn(n);return new w(on([ln,new Uint8Array([0]),t])).toString()}async function sn({key:n,moduleAddress:t,moduleName:e,functionName:i,aptosConfig:a,abi:r,fetch:o}){return r!==void 0?r:C(async()=>o(t,e,i,a),`${n}-${a.network}-${t}-${e}-${i}`,1e3*60*5)()}export{vn as a,An as b,On as c,yn as d,pn as e,Vn as f,qn as g,T as h,gn as i,on as j,Hn as k};
2
+ //# sourceMappingURL=chunk-VHKCYWZD.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-LICJI4D2.mjs";import{f as t,i as o}from"./chunk-5FPWLBZT.mjs";import{e as n}from"./chunk-EXP5STXZ.mjs";var u={typeParameters:[{constraints:[]}],parameters:[new o,new t]};async function y(e){let{aptosConfig:i,sender:s,recipient:c,amount:p,coinType:a,options:m}=e;return r({aptosConfig:i,sender:s,data:{function:"0x1::aptos_account::transfer_coins",typeArguments:[a??n],functionArguments:[c,p],abi:u},options:m})}export{y as a};
2
- //# sourceMappingURL=chunk-4WAH2Y5E.mjs.map
1
+ import{a as r}from"./chunk-I3ZYHDRZ.mjs";import{f as t,i as o}from"./chunk-5FPWLBZT.mjs";import{e as n}from"./chunk-EXP5STXZ.mjs";var u={typeParameters:[{constraints:[]}],parameters:[new o,new t]};async function y(e){let{aptosConfig:i,sender:s,recipient:c,amount:p,coinType:a,options:m}=e;return r({aptosConfig:i,sender:s,data:{function:"0x1::aptos_account::transfer_coins",typeArguments:[a??n],functionArguments:[c,p],abi:u},options:m})}export{y as a};
2
+ //# sourceMappingURL=chunk-VHZ46B6V.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as h,d as l}from"./chunk-7T5CUI2H.mjs";import{b as E}from"./chunk-FOLCONSQ.mjs";import{a as p}from"./chunk-QP2A5ISX.mjs";import{a as g}from"./chunk-3CE63FFN.mjs";var o=class o extends E{constructor(r){super();let{publicKeys:e,threshold:t}=r;if(e.length>o.MAX_KEYS||e.length<o.MIN_KEYS)throw new Error(`Must have between ${o.MIN_KEYS} and ${o.MAX_KEYS} public keys, inclusive`);if(t<o.MIN_THRESHOLD||t>e.length)throw new Error(`Threshold must be between ${o.MIN_THRESHOLD} and ${e.length}, inclusive`);this.publicKeys=e,this.threshold=t}verifySignature(r){let{message:e,signature:t}=r;if(!(t instanceof y))return!1;let s=[];for(let i=0;i<4;i+=1)for(let n=0;n<8;n+=1)if((t.bitmap[i]&1<<7-n)!==0){let u=i*8+n;s.push(u)}if(s.length!==t.signatures.length)throw new Error("Bitmap and signatures length mismatch");if(s.length<this.threshold)throw new Error("Not enough signatures");for(let i=0;i<s.length;i+=1)if(!this.publicKeys[s[i]].verifySignature({message:e,signature:t.signatures[i]}))return!1;return!0}authKey(){return g.fromSchemeAndBytes({scheme:1,input:this.toUint8Array()})}toUint8Array(){let r=new Uint8Array(this.publicKeys.length*h.LENGTH+1);return this.publicKeys.forEach((e,t)=>{r.set(e.toUint8Array(),t*h.LENGTH)}),r[this.publicKeys.length*h.LENGTH]=this.threshold,r}serialize(r){r.serializeBytes(this.toUint8Array())}static deserialize(r){let e=r.deserializeBytes(),t=e[e.length-1],s=[];for(let i=0;i<e.length-1;i+=h.LENGTH){let n=i;s.push(new h(e.subarray(n,n+h.LENGTH)))}return new o({publicKeys:s,threshold:t})}};o.MAX_KEYS=32,o.MIN_KEYS=2,o.MIN_THRESHOLD=1;var d=o,a=class a extends p{constructor(r){super();let{signatures:e,bitmap:t}=r;if(e.length>a.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${a.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=e,!(t instanceof Uint8Array))this.bitmap=a.createBitmap({bits:t});else{if(t.length!==a.BITMAP_LEN)throw new Error(`"bitmap" length should be ${a.BITMAP_LEN}`);this.bitmap=t}}toUint8Array(){let r=new Uint8Array(this.signatures.length*l.LENGTH+a.BITMAP_LEN);return this.signatures.forEach((e,t)=>{r.set(e.toUint8Array(),t*l.LENGTH)}),r.set(this.bitmap,this.signatures.length*l.LENGTH),r}serialize(r){r.serializeBytes(this.toUint8Array())}static deserialize(r){let e=r.deserializeBytes(),t=e.subarray(e.length-4),s=[];for(let i=0;i<e.length-t.length;i+=l.LENGTH){let n=i;s.push(new l(e.subarray(n,n+l.LENGTH)))}return new a({signatures:s,bitmap:t})}static createBitmap(r){let{bits:e}=r,t=128,s=new Uint8Array([0,0,0,0]),i=new Set;return e.forEach((n,c)=>{if(n>=a.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${a.MAX_SIGNATURES_SUPPORTED-1}.`);if(i.has(n))throw new Error("Duplicate bits detected.");if(c>0&&n<=e[c-1])throw new Error("The bits need to be sorted in ascending order.");i.add(n);let u=Math.floor(n/8),b=s[u];b|=t>>n%8,s[u]=b}),s}};a.MAX_SIGNATURES_SUPPORTED=32,a.BITMAP_LEN=4;var y=a;export{d as a,y as b};
2
- //# sourceMappingURL=chunk-FDD6WNN6.mjs.map
1
+ import{b as h,d as l}from"./chunk-G76BSSWS.mjs";import{b as E}from"./chunk-FOLCONSQ.mjs";import{a as p}from"./chunk-QP2A5ISX.mjs";import{a as g}from"./chunk-3CE63FFN.mjs";var o=class o extends E{constructor(r){super();let{publicKeys:e,threshold:t}=r;if(e.length>o.MAX_KEYS||e.length<o.MIN_KEYS)throw new Error(`Must have between ${o.MIN_KEYS} and ${o.MAX_KEYS} public keys, inclusive`);if(t<o.MIN_THRESHOLD||t>e.length)throw new Error(`Threshold must be between ${o.MIN_THRESHOLD} and ${e.length}, inclusive`);this.publicKeys=e,this.threshold=t}verifySignature(r){let{message:e,signature:t}=r;if(!(t instanceof y))return!1;let s=[];for(let i=0;i<4;i+=1)for(let n=0;n<8;n+=1)if((t.bitmap[i]&1<<7-n)!==0){let u=i*8+n;s.push(u)}if(s.length!==t.signatures.length)throw new Error("Bitmap and signatures length mismatch");if(s.length<this.threshold)throw new Error("Not enough signatures");for(let i=0;i<s.length;i+=1)if(!this.publicKeys[s[i]].verifySignature({message:e,signature:t.signatures[i]}))return!1;return!0}authKey(){return g.fromSchemeAndBytes({scheme:1,input:this.toUint8Array()})}toUint8Array(){let r=new Uint8Array(this.publicKeys.length*h.LENGTH+1);return this.publicKeys.forEach((e,t)=>{r.set(e.toUint8Array(),t*h.LENGTH)}),r[this.publicKeys.length*h.LENGTH]=this.threshold,r}serialize(r){r.serializeBytes(this.toUint8Array())}static deserialize(r){let e=r.deserializeBytes(),t=e[e.length-1],s=[];for(let i=0;i<e.length-1;i+=h.LENGTH){let n=i;s.push(new h(e.subarray(n,n+h.LENGTH)))}return new o({publicKeys:s,threshold:t})}};o.MAX_KEYS=32,o.MIN_KEYS=2,o.MIN_THRESHOLD=1;var d=o,a=class a extends p{constructor(r){super();let{signatures:e,bitmap:t}=r;if(e.length>a.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${a.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=e,!(t instanceof Uint8Array))this.bitmap=a.createBitmap({bits:t});else{if(t.length!==a.BITMAP_LEN)throw new Error(`"bitmap" length should be ${a.BITMAP_LEN}`);this.bitmap=t}}toUint8Array(){let r=new Uint8Array(this.signatures.length*l.LENGTH+a.BITMAP_LEN);return this.signatures.forEach((e,t)=>{r.set(e.toUint8Array(),t*l.LENGTH)}),r.set(this.bitmap,this.signatures.length*l.LENGTH),r}serialize(r){r.serializeBytes(this.toUint8Array())}static deserialize(r){let e=r.deserializeBytes(),t=e.subarray(e.length-4),s=[];for(let i=0;i<e.length-t.length;i+=l.LENGTH){let n=i;s.push(new l(e.subarray(n,n+l.LENGTH)))}return new a({signatures:s,bitmap:t})}static createBitmap(r){let{bits:e}=r,t=128,s=new Uint8Array([0,0,0,0]),i=new Set;return e.forEach((n,c)=>{if(n>=a.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${a.MAX_SIGNATURES_SUPPORTED-1}.`);if(i.has(n))throw new Error("Duplicate bits detected.");if(c>0&&n<=e[c-1])throw new Error("The bits need to be sorted in ascending order.");i.add(n);let u=Math.floor(n/8),b=s[u];b|=t>>n%8,s[u]=b}),s}};a.MAX_SIGNATURES_SUPPORTED=32,a.BITMAP_LEN=4;var y=a;export{d as a,y as b};
2
+ //# sourceMappingURL=chunk-XFG6LGA6.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as u,b as l}from"./chunk-ASQIKTEF.mjs";import{b as g}from"./chunk-FOLCONSQ.mjs";import{a as f}from"./chunk-QP2A5ISX.mjs";import{a as m}from"./chunk-3CE63FFN.mjs";function A(y){let o=y;return o-=o>>1&1431655765,o=(o&858993459)+(o>>2&858993459),(o+(o>>4)&252645135)*16843009>>24}var p=class y extends g{constructor(e){super();let{publicKeys:r,signaturesRequired:t}=e;if(t<1)throw new Error("The number of required signatures needs to be greater than 0");if(r.length<t)throw new Error(`Provided ${r.length} public keys is smaller than the ${t} required signatures`);this.publicKeys=r.map(i=>i instanceof u?i:new u(i)),this.signaturesRequired=t}verifySignature(e){throw new Error("not implemented")}authKey(){return m.fromSchemeAndBytes({scheme:3,input:this.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.publicKeys),e.serializeU8(this.signaturesRequired)}static deserialize(e){let r=e.deserializeVector(u),t=e.deserializeU8();return new y({publicKeys:r,signaturesRequired:t})}createBitmap(e){let{bits:r}=e,t=128,i=new Uint8Array([0,0,0,0]),a=new Set;return r.forEach((n,c)=>{if(c+1>this.publicKeys.length)throw new Error(`Signature index ${c+1} is out of public keys range, ${this.publicKeys.length}.`);if(a.has(n))throw new Error(`Duplicate bit ${n} detected.`);a.add(n);let h=Math.floor(n/8),b=i[h];b|=t>>n%8,i[h]=b}),i}getIndex(e){let r=e instanceof u?e:new u(e),t=this.publicKeys.findIndex(i=>i.toString()===r.toString());if(t!==-1)return t;throw new Error("Public key not found in MultiKey")}},s=class s extends f{constructor(e){super();let{signatures:r,bitmap:t}=e;if(r.length>s.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${s.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=r.map(a=>a instanceof l?a:new l(a)),!(t instanceof Uint8Array))this.bitmap=s.createBitmap({bits:t});else{if(t.length!==s.BITMAP_LEN)throw new Error(`"bitmap" length should be ${s.BITMAP_LEN}`);this.bitmap=t}let i=this.bitmap.reduce((a,n)=>a+A(n),0);if(i!==this.signatures.length)throw new Error(`Expecting ${i} signatures from the bitmap, but got ${this.signatures.length}`)}static createBitmap(e){let{bits:r}=e,t=128,i=new Uint8Array([0,0,0,0]),a=new Set;return r.forEach(n=>{if(n>=s.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${s.MAX_SIGNATURES_SUPPORTED-1}.`);if(a.has(n))throw new Error("Duplicate bits detected.");a.add(n);let c=Math.floor(n/8),h=i[c];h|=t>>n%8,i[c]=h}),i}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.signatures),e.serializeBytes(this.bitmap)}static deserialize(e){let r=e.deserializeVector(l),t=e.deserializeBytes();return new s({signatures:r,bitmap:t})}};s.BITMAP_LEN=4,s.MAX_SIGNATURES_SUPPORTED=s.BITMAP_LEN*8;var d=s;export{p as a,d as b};
2
- //# sourceMappingURL=chunk-FDTLBR6D.mjs.map
1
+ import{a as u,b as l}from"./chunk-HY5RVZLG.mjs";import{b as g}from"./chunk-FOLCONSQ.mjs";import{a as f}from"./chunk-QP2A5ISX.mjs";import{a as m}from"./chunk-3CE63FFN.mjs";function A(y){let o=y;return o-=o>>1&1431655765,o=(o&858993459)+(o>>2&858993459),(o+(o>>4)&252645135)*16843009>>24}var p=class y extends g{constructor(e){super();let{publicKeys:r,signaturesRequired:t}=e;if(t<1)throw new Error("The number of required signatures needs to be greater than 0");if(r.length<t)throw new Error(`Provided ${r.length} public keys is smaller than the ${t} required signatures`);this.publicKeys=r.map(i=>i instanceof u?i:new u(i)),this.signaturesRequired=t}verifySignature(e){throw new Error("not implemented")}authKey(){return m.fromSchemeAndBytes({scheme:3,input:this.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.publicKeys),e.serializeU8(this.signaturesRequired)}static deserialize(e){let r=e.deserializeVector(u),t=e.deserializeU8();return new y({publicKeys:r,signaturesRequired:t})}createBitmap(e){let{bits:r}=e,t=128,i=new Uint8Array([0,0,0,0]),a=new Set;return r.forEach((n,c)=>{if(c+1>this.publicKeys.length)throw new Error(`Signature index ${c+1} is out of public keys range, ${this.publicKeys.length}.`);if(a.has(n))throw new Error(`Duplicate bit ${n} detected.`);a.add(n);let h=Math.floor(n/8),b=i[h];b|=t>>n%8,i[h]=b}),i}getIndex(e){let r=e instanceof u?e:new u(e),t=this.publicKeys.findIndex(i=>i.toString()===r.toString());if(t!==-1)return t;throw new Error("Public key not found in MultiKey")}},s=class s extends f{constructor(e){super();let{signatures:r,bitmap:t}=e;if(r.length>s.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${s.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=r.map(a=>a instanceof l?a:new l(a)),!(t instanceof Uint8Array))this.bitmap=s.createBitmap({bits:t});else{if(t.length!==s.BITMAP_LEN)throw new Error(`"bitmap" length should be ${s.BITMAP_LEN}`);this.bitmap=t}let i=this.bitmap.reduce((a,n)=>a+A(n),0);if(i!==this.signatures.length)throw new Error(`Expecting ${i} signatures from the bitmap, but got ${this.signatures.length}`)}static createBitmap(e){let{bits:r}=e,t=128,i=new Uint8Array([0,0,0,0]),a=new Set;return r.forEach(n=>{if(n>=s.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${s.MAX_SIGNATURES_SUPPORTED-1}.`);if(a.has(n))throw new Error("Duplicate bits detected.");a.add(n);let c=Math.floor(n/8),h=i[c];h|=t>>n%8,i[c]=h}),i}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.signatures),e.serializeBytes(this.bitmap)}static deserialize(e){let r=e.deserializeVector(l),t=e.deserializeBytes();return new s({signatures:r,bitmap:t})}};s.BITMAP_LEN=4,s.MAX_SIGNATURES_SUPPORTED=s.BITMAP_LEN*8;var d=s;export{p as a,d as b};
2
+ //# sourceMappingURL=chunk-XY3VSUZX.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-Z25D7JG2.mjs";import{a as A}from"./chunk-AERLYJPT.mjs";import{a as T}from"./chunk-BJJBW6WH.mjs";import{a as y}from"./chunk-7V6TRMEJ.mjs";import{d as g,e as a,h as m,i as p,j as f}from"./chunk-LICJI4D2.mjs";import{a as i,b as s,c as r,d as e,e as c,g as u}from"./chunk-G6HZPSZ3.mjs";var h=class{constructor(n){this.config=n,this.build=new y(this.config),this.simulate=new A(this.config),this.submit=new T(this.config),this.batch=new d(this.config)}async getTransactions(n){return i({aptosConfig:this.config,...n})}async getTransactionByVersion(n){return r({aptosConfig:this.config,...n})}async getTransactionByHash(n){return e({aptosConfig:this.config,...n})}async isPendingTransaction(n){return c({aptosConfig:this.config,...n})}async waitForTransaction(n){return u({aptosConfig:this.config,...n})}async getGasPriceEstimation(){return s({aptosConfig:this.config})}getSigningMessage(n){return g(n)}async publishPackageTransaction(n){return p({aptosConfig:this.config,...n})}async rotateAuthKey(n){return f({aptosConfig:this.config,...n})}sign(n){return a({...n})}signAsFeePayer(n){let{signer:t,transaction:o}=n;if(!o.feePayerAddress)throw new Error(`Transaction ${o} is not a Fee Payer transaction`);return o.feePayerAddress=t.accountAddress,a({signer:t,transaction:o})}async batchTransactionsForSingleAccount(n){try{let{sender:t,data:o,options:P}=n;this.batch.forSingleAccount({sender:t,data:o,options:P})}catch(t){throw new Error(`failed to submit transactions with error: ${t}`)}}async signAndSubmitTransaction(n){let{signer:t,transaction:o}=n;return m({aptosConfig:this.config,signer:t,transaction:o})}};export{h as a};
2
- //# sourceMappingURL=chunk-DJVPIZ2I.mjs.map
1
+ import{a as d}from"./chunk-2ENDRRQP.mjs";import{a as A}from"./chunk-UWEWPHGU.mjs";import{a as T}from"./chunk-JWB6XL55.mjs";import{a as y}from"./chunk-6JVWNPEL.mjs";import{d as g,e as a,h as m,i as p,j as f}from"./chunk-I3ZYHDRZ.mjs";import{a as i,b as s,c as r,d as e,e as c,g as u}from"./chunk-G6HZPSZ3.mjs";var h=class{constructor(n){this.config=n,this.build=new y(this.config),this.simulate=new A(this.config),this.submit=new T(this.config),this.batch=new d(this.config)}async getTransactions(n){return i({aptosConfig:this.config,...n})}async getTransactionByVersion(n){return r({aptosConfig:this.config,...n})}async getTransactionByHash(n){return e({aptosConfig:this.config,...n})}async isPendingTransaction(n){return c({aptosConfig:this.config,...n})}async waitForTransaction(n){return u({aptosConfig:this.config,...n})}async getGasPriceEstimation(){return s({aptosConfig:this.config})}getSigningMessage(n){return g(n)}async publishPackageTransaction(n){return p({aptosConfig:this.config,...n})}async rotateAuthKey(n){return f({aptosConfig:this.config,...n})}sign(n){return a({...n})}signAsFeePayer(n){let{signer:t,transaction:o}=n;if(!o.feePayerAddress)throw new Error(`Transaction ${o} is not a Fee Payer transaction`);return o.feePayerAddress=t.accountAddress,a({signer:t,transaction:o})}async batchTransactionsForSingleAccount(n){try{let{sender:t,data:o,options:P}=n;this.batch.forSingleAccount({sender:t,data:o,options:P})}catch(t){throw new Error(`failed to submit transactions with error: ${t}`)}}async signAndSubmitTransaction(n){let{signer:t,transaction:o}=n;return m({aptosConfig:this.config,signer:t,transaction:o})}};export{h as a};
2
+ //# sourceMappingURL=chunk-Y6C7HIGN.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i,b as o,c as a,d as c,e as p,f as d,g,h as u,i as A,j as y,k as m,l,m as T,n as f,o as C,p as I,q as O,r as P,s as D,t as V,u as S,v as h,w as R,x as G}from"./chunk-I3ZR4HXK.mjs";import{a as e}from"./chunk-RLGIYYI7.mjs";import{b as s}from"./chunk-EDVGFSB5.mjs";var L=class{constructor(t){this.config=t}async getCollectionData(t){await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"});let{creatorAddress:N,collectionName:_,options:n}=t,w=s.from(N),r={collection_name:{_eq:_},creator_address:{_eq:w.toStringLong()}};return n?.tokenStandard&&(r.token_standard={_eq:n?.tokenStandard??"v2"}),d({aptosConfig:this.config,options:{where:r}})}async getCollectionDataByCreatorAddressAndCollectionName(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),g({aptosConfig:this.config,...t})}async getCollectionDataByCreatorAddress(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),u({aptosConfig:this.config,...t})}async getCollectionDataByCollectionId(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),A({aptosConfig:this.config,...t})}async getCollectionId(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),y({aptosConfig:this.config,...t})}async getDigitalAssetData(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),i({aptosConfig:this.config,...t})}async getCurrentDigitalAssetOwnership(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),o({aptosConfig:this.config,...t})}async getOwnedDigitalAssets(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),a({aptosConfig:this.config,...t})}async getDigitalAssetActivity(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),c({aptosConfig:this.config,...t})}async createCollectionTransaction(t){return p({aptosConfig:this.config,...t})}async mintDigitalAssetTransaction(t){return m({aptosConfig:this.config,...t})}async transferDigitalAssetTransaction(t){return l({aptosConfig:this.config,...t})}async mintSoulBoundTransaction(t){return T({aptosConfig:this.config,...t})}async burnDigitalAssetTransaction(t){return f({aptosConfig:this.config,...t})}async freezeDigitalAssetTransaferTransaction(t){return C({aptosConfig:this.config,...t})}async unfreezeDigitalAssetTransaferTransaction(t){return I({aptosConfig:this.config,...t})}async setDigitalAssetDescriptionTransaction(t){return O({aptosConfig:this.config,...t})}async setDigitalAssetNameTransaction(t){return P({aptosConfig:this.config,...t})}async setDigitalAssetURITransaction(t){return D({aptosConfig:this.config,...t})}async addDigitalAssetPropertyTransaction(t){return V({aptosConfig:this.config,...t})}async removeDigitalAssetPropertyTransaction(t){return S({aptosConfig:this.config,...t})}async updateDigitalAssetPropertyTransaction(t){return h({aptosConfig:this.config,...t})}async addDigitalAssetTypedPropertyTransaction(t){return R({aptosConfig:this.config,...t})}async updateDigitalAssetTypedPropertyTransaction(t){return G({aptosConfig:this.config,...t})}};export{L as a};
2
- //# sourceMappingURL=chunk-HUDDA4FG.mjs.map
1
+ import{a as i,b as o,c as a,d as c,e as p,f as d,g,h as u,i as A,j as y,k as m,l,m as T,n as f,o as C,p as I,q as O,r as P,s as D,t as V,u as S,v as h,w as R,x as G}from"./chunk-TZAQMHQF.mjs";import{a as e}from"./chunk-RLGIYYI7.mjs";import{b as s}from"./chunk-EDVGFSB5.mjs";var L=class{constructor(t){this.config=t}async getCollectionData(t){await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"});let{creatorAddress:N,collectionName:_,options:n}=t,w=s.from(N),r={collection_name:{_eq:_},creator_address:{_eq:w.toStringLong()}};return n?.tokenStandard&&(r.token_standard={_eq:n?.tokenStandard??"v2"}),d({aptosConfig:this.config,options:{where:r}})}async getCollectionDataByCreatorAddressAndCollectionName(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),g({aptosConfig:this.config,...t})}async getCollectionDataByCreatorAddress(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),u({aptosConfig:this.config,...t})}async getCollectionDataByCollectionId(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),A({aptosConfig:this.config,...t})}async getCollectionId(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),y({aptosConfig:this.config,...t})}async getDigitalAssetData(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),i({aptosConfig:this.config,...t})}async getCurrentDigitalAssetOwnership(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),o({aptosConfig:this.config,...t})}async getOwnedDigitalAssets(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),a({aptosConfig:this.config,...t})}async getDigitalAssetActivity(t){return await e({config:this.config,minimumLedgerVersion:t.minimumLedgerVersion,processorType:"token_v2_processor"}),c({aptosConfig:this.config,...t})}async createCollectionTransaction(t){return p({aptosConfig:this.config,...t})}async mintDigitalAssetTransaction(t){return m({aptosConfig:this.config,...t})}async transferDigitalAssetTransaction(t){return l({aptosConfig:this.config,...t})}async mintSoulBoundTransaction(t){return T({aptosConfig:this.config,...t})}async burnDigitalAssetTransaction(t){return f({aptosConfig:this.config,...t})}async freezeDigitalAssetTransaferTransaction(t){return C({aptosConfig:this.config,...t})}async unfreezeDigitalAssetTransaferTransaction(t){return I({aptosConfig:this.config,...t})}async setDigitalAssetDescriptionTransaction(t){return O({aptosConfig:this.config,...t})}async setDigitalAssetNameTransaction(t){return P({aptosConfig:this.config,...t})}async setDigitalAssetURITransaction(t){return D({aptosConfig:this.config,...t})}async addDigitalAssetPropertyTransaction(t){return V({aptosConfig:this.config,...t})}async removeDigitalAssetPropertyTransaction(t){return S({aptosConfig:this.config,...t})}async updateDigitalAssetPropertyTransaction(t){return h({aptosConfig:this.config,...t})}async addDigitalAssetTypedPropertyTransaction(t){return R({aptosConfig:this.config,...t})}async updateDigitalAssetTypedPropertyTransaction(t){return G({aptosConfig:this.config,...t})}};export{L as a};
2
+ //# sourceMappingURL=chunk-Z7TYJI5C.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as p}from"./chunk-PBMXWRZG.mjs";import{e as a}from"./chunk-BC5BEOKM.mjs";import{a as l,b as o}from"./chunk-FDTLBR6D.mjs";import{b as y}from"./chunk-EDVGFSB5.mjs";var m=class g{constructor(i){let{multiKey:t,signers:e,address:c}=i;this.publicKey=t,this.signingScheme=3,this.accountAddress=c?y.from(c):this.publicKey.authKey().derivedAddress();let s=[];for(let n of e)s.push(this.publicKey.getIndex(n.publicKey));let r=e.map((n,u)=>[n,s[u]]);r.sort((n,u)=>n[1]-u[1]),this.signers=r.map(n=>n[0]),this.signerIndicies=r.map(n=>n[1]),this.signaturesBitmap=this.publicKey.createBitmap({bits:s})}static fromPublicKeysAndSigners(i){let{publicKeys:t,signaturesRequired:e,signers:c}=i,s=new l({publicKeys:t,signaturesRequired:e});return new g({multiKey:s,signers:c})}static isMultiKeySigner(i){return i instanceof g}signWithAuthenticator(i){return new a(this.publicKey,this.sign(i))}signTransactionWithAuthenticator(i){return new a(this.publicKey,this.signTransaction(i))}async waitForProofFetch(){let t=this.signers.filter(e=>e instanceof p).map(async e=>e.waitForProofFetch());await Promise.all(t)}sign(i){let t=[];for(let e of this.signers)t.push(e.sign(i));return new o({signatures:t,bitmap:this.signaturesBitmap})}signTransaction(i){let t=[];for(let e of this.signers)t.push(e.signTransaction(i));return new o({signatures:t,bitmap:this.signaturesBitmap})}verifySignature(i){let{message:t,signature:e}=i;if(!this.signerIndicies.every((s,r)=>r===0||s>=this.signerIndicies[r-1]))return!1;for(let s=0;s<e.signatures.length;s+=1){let r=e.signatures[s];if(!this.publicKey.publicKeys[this.signerIndicies[s]].verifySignature({message:t,signature:r}))return!1}return!0}};export{m as a};
2
- //# sourceMappingURL=chunk-W2KQ2TSH.mjs.map
1
+ import{a as p}from"./chunk-43Q5ETMN.mjs";import{e as a}from"./chunk-O2IHHH7H.mjs";import{a as l,b as o}from"./chunk-XY3VSUZX.mjs";import{b as y}from"./chunk-EDVGFSB5.mjs";var m=class g{constructor(i){let{multiKey:t,signers:e,address:c}=i;this.publicKey=t,this.signingScheme=3,this.accountAddress=c?y.from(c):this.publicKey.authKey().derivedAddress();let s=[];for(let n of e)s.push(this.publicKey.getIndex(n.publicKey));let r=e.map((n,u)=>[n,s[u]]);r.sort((n,u)=>n[1]-u[1]),this.signers=r.map(n=>n[0]),this.signerIndicies=r.map(n=>n[1]),this.signaturesBitmap=this.publicKey.createBitmap({bits:s})}static fromPublicKeysAndSigners(i){let{publicKeys:t,signaturesRequired:e,signers:c}=i,s=new l({publicKeys:t,signaturesRequired:e});return new g({multiKey:s,signers:c})}static isMultiKeySigner(i){return i instanceof g}signWithAuthenticator(i){return new a(this.publicKey,this.sign(i))}signTransactionWithAuthenticator(i){return new a(this.publicKey,this.signTransaction(i))}async waitForProofFetch(){let t=this.signers.filter(e=>e instanceof p).map(async e=>e.waitForProofFetch());await Promise.all(t)}sign(i){let t=[];for(let e of this.signers)t.push(e.sign(i));return new o({signatures:t,bitmap:this.signaturesBitmap})}signTransaction(i){let t=[];for(let e of this.signers)t.push(e.signTransaction(i));return new o({signatures:t,bitmap:this.signaturesBitmap})}verifySignature(i){let{message:t,signature:e}=i;if(!this.signerIndicies.every((s,r)=>r===0||s>=this.signerIndicies[r-1]))return!1;for(let s=0;s<e.signatures.length;s+=1){let r=e.signatures[s];if(!this.publicKey.publicKeys[this.signerIndicies[s]].verifySignature({message:t,signature:r}))return!1}return!0}};export{m as a};
2
+ //# sourceMappingURL=chunk-ZIBH5YJK.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d}from"../../chunk-7T5CUI2H.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{c as Ed25519PrivateKey,b as Ed25519PublicKey,d as Ed25519Signature,a as isCanonicalEd25519Signature};
1
+ import{a,b,c,d}from"../../chunk-G76BSSWS.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{c as Ed25519PrivateKey,b as Ed25519PublicKey,d as Ed25519Signature,a as isCanonicalEd25519Signature};
2
2
  //# sourceMappingURL=ed25519.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../chunk-4I6IUAHQ.mjs";import"../../chunk-7T5CUI2H.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as EphemeralPublicKey,b as EphemeralSignature};
1
+ import{a,b}from"../../chunk-6BXB4PLA.mjs";import"../../chunk-G76BSSWS.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as EphemeralPublicKey,b as EphemeralSignature};
2
2
  //# sourceMappingURL=ephemeral.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-ZAHUEAGT.mjs";import"../../chunk-DYMN66K5.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-4I6IUAHQ.mjs";import"../../chunk-7T5CUI2H.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-C5JQQTMI.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as FederatedKeylessPublicKey};
1
+ import{a}from"../../chunk-7YJ43PCR.mjs";import"../../chunk-SBCXYFC4.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-6BXB4PLA.mjs";import"../../chunk-G76BSSWS.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-C5JQQTMI.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as FederatedKeylessPublicKey};
2
2
  //# sourceMappingURL=federatedKeyless.mjs.map
@@ -1,2 +1,2 @@
1
- import"../../chunk-IA4RELOH.mjs";import{a as r,b as s}from"../../chunk-FDD6WNN6.mjs";import{a as R,b as S}from"../../chunk-FDTLBR6D.mjs";import{a as P,b as Q}from"../../chunk-ASQIKTEF.mjs";import"../../chunk-KUX6GQ2E.mjs";import{a as t,b as u,c as v}from"../../chunk-QTTDBQAJ.mjs";import{a as O}from"../../chunk-ZAHUEAGT.mjs";import{a as y,b as z,c as A,d as B,e as C,f as D,g as E,h as F,i as G,j as H,k as I,l as J,m as K,n as L,o as M,p as N}from"../../chunk-DYMN66K5.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import{a as w,b as x}from"../../chunk-4I6IUAHQ.mjs";import{a as n,b as o,c as p,d as q}from"../../chunk-7T5CUI2H.mjs";import"../../chunk-TJDC5PWD.mjs";import{a as k,b as l}from"../../chunk-FOLCONSQ.mjs";import{a as m}from"../../chunk-QP2A5ISX.mjs";import{a,b,c,d,e,f,g,h,i,j}from"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-C5JQQTMI.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as APTOS_BIP44_REGEX,a as APTOS_HARDENED_REGEX,l as AccountPublicKey,P as AnyPublicKey,Q as AnySignature,h as CKDPriv,y as EPK_HORIZON_SECS,p as Ed25519PrivateKey,o as Ed25519PublicKey,q as Ed25519Signature,I as EphemeralCertificate,w as EphemeralPublicKey,x as EphemeralSignature,O as FederatedKeylessPublicKey,J as Groth16Zkp,d as HARDENED_OFFSET,c as KeyType,M as KeylessConfiguration,G as KeylessPublicKey,H as KeylessSignature,z as MAX_AUD_VAL_BYTES,F as MAX_COMMITED_EPK_BYTES,D as MAX_EXTRA_FIELD_BYTES,C as MAX_ISS_VAL_BYTES,E as MAX_JWT_HEADER_B64_BYTES,A as MAX_UID_KEY_BYTES,B as MAX_UID_VAL_BYTES,r as MultiEd25519PublicKey,s as MultiEd25519Signature,R as MultiKey,S as MultiKeySignature,k as PublicKey,u as Secp256k1PrivateKey,t as Secp256k1PublicKey,v as Secp256k1Signature,m as Signature,L as ZeroKnowledgeSig,K as ZkProof,g as deriveKey,N as getKeylessConfig,n as isCanonicalEd25519Signature,e as isValidBIP44Path,f as isValidHardenedPath,j as mnemonicToSeed,i as splitPath};
1
+ import"../../chunk-IA4RELOH.mjs";import{a as r,b as s}from"../../chunk-XFG6LGA6.mjs";import{a as R,b as S}from"../../chunk-XY3VSUZX.mjs";import{a as P,b as Q}from"../../chunk-HY5RVZLG.mjs";import{a as t,b as u,c as v}from"../../chunk-76QOH2OW.mjs";import"../../chunk-KUX6GQ2E.mjs";import{a as O}from"../../chunk-7YJ43PCR.mjs";import{a as y,b as z,c as A,d as B,e as C,f as D,g as E,h as F,i as G,j as H,k as I,l as J,m as K,n as L,o as M,p as N}from"../../chunk-SBCXYFC4.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import{a as w,b as x}from"../../chunk-6BXB4PLA.mjs";import{a as n,b as o,c as p,d as q}from"../../chunk-G76BSSWS.mjs";import{a as k,b as l}from"../../chunk-FOLCONSQ.mjs";import{a as m}from"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import{a,b,c,d,e,f,g,h,i,j}from"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-C5JQQTMI.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as APTOS_BIP44_REGEX,a as APTOS_HARDENED_REGEX,l as AccountPublicKey,P as AnyPublicKey,Q as AnySignature,h as CKDPriv,y as EPK_HORIZON_SECS,p as Ed25519PrivateKey,o as Ed25519PublicKey,q as Ed25519Signature,I as EphemeralCertificate,w as EphemeralPublicKey,x as EphemeralSignature,O as FederatedKeylessPublicKey,J as Groth16Zkp,d as HARDENED_OFFSET,c as KeyType,M as KeylessConfiguration,G as KeylessPublicKey,H as KeylessSignature,z as MAX_AUD_VAL_BYTES,F as MAX_COMMITED_EPK_BYTES,D as MAX_EXTRA_FIELD_BYTES,C as MAX_ISS_VAL_BYTES,E as MAX_JWT_HEADER_B64_BYTES,A as MAX_UID_KEY_BYTES,B as MAX_UID_VAL_BYTES,r as MultiEd25519PublicKey,s as MultiEd25519Signature,R as MultiKey,S as MultiKeySignature,k as PublicKey,u as Secp256k1PrivateKey,t as Secp256k1PublicKey,v as Secp256k1Signature,m as Signature,L as ZeroKnowledgeSig,K as ZkProof,g as deriveKey,N as getKeylessConfig,n as isCanonicalEd25519Signature,e as isValidBIP44Path,f as isValidHardenedPath,j as mnemonicToSeed,i as splitPath};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"../../chunk-DYMN66K5.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-4I6IUAHQ.mjs";import"../../chunk-7T5CUI2H.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-C5JQQTMI.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as EPK_HORIZON_SECS,k as EphemeralCertificate,l as Groth16Zkp,o as KeylessConfiguration,i as KeylessPublicKey,j as KeylessSignature,b as MAX_AUD_VAL_BYTES,h as MAX_COMMITED_EPK_BYTES,f as MAX_EXTRA_FIELD_BYTES,e as MAX_ISS_VAL_BYTES,g as MAX_JWT_HEADER_B64_BYTES,c as MAX_UID_KEY_BYTES,d as MAX_UID_VAL_BYTES,n as ZeroKnowledgeSig,m as ZkProof,p as getKeylessConfig};
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p}from"../../chunk-SBCXYFC4.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-6BXB4PLA.mjs";import"../../chunk-G76BSSWS.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-C5JQQTMI.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as EPK_HORIZON_SECS,k as EphemeralCertificate,l as Groth16Zkp,o as KeylessConfiguration,i as KeylessPublicKey,j as KeylessSignature,b as MAX_AUD_VAL_BYTES,h as MAX_COMMITED_EPK_BYTES,f as MAX_EXTRA_FIELD_BYTES,e as MAX_ISS_VAL_BYTES,g as MAX_JWT_HEADER_B64_BYTES,c as MAX_UID_KEY_BYTES,d as MAX_UID_VAL_BYTES,n as ZeroKnowledgeSig,m as ZkProof,p as getKeylessConfig};
2
2
  //# sourceMappingURL=keyless.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../chunk-FDD6WNN6.mjs";import"../../chunk-7T5CUI2H.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as MultiEd25519PublicKey,b as MultiEd25519Signature};
1
+ import{a,b}from"../../chunk-XFG6LGA6.mjs";import"../../chunk-G76BSSWS.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as MultiEd25519PublicKey,b as MultiEd25519Signature};
2
2
  //# sourceMappingURL=multiEd25519.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../chunk-FDTLBR6D.mjs";import"../../chunk-ASQIKTEF.mjs";import"../../chunk-QTTDBQAJ.mjs";import"../../chunk-ZAHUEAGT.mjs";import"../../chunk-DYMN66K5.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-4I6IUAHQ.mjs";import"../../chunk-7T5CUI2H.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-C5JQQTMI.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as MultiKey,b as MultiKeySignature};
1
+ import{a,b}from"../../chunk-XY3VSUZX.mjs";import"../../chunk-HY5RVZLG.mjs";import"../../chunk-76QOH2OW.mjs";import"../../chunk-7YJ43PCR.mjs";import"../../chunk-SBCXYFC4.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-6BXB4PLA.mjs";import"../../chunk-G76BSSWS.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-C5JQQTMI.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as MultiKey,b as MultiKeySignature};
2
2
  //# sourceMappingURL=multiKey.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c}from"../../chunk-QTTDBQAJ.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as Secp256k1PrivateKey,a as Secp256k1PublicKey,c as Secp256k1Signature};
1
+ import{a,b,c}from"../../chunk-76QOH2OW.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{b as Secp256k1PrivateKey,a as Secp256k1PublicKey,c as Secp256k1Signature};
2
2
  //# sourceMappingURL=secp256k1.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../chunk-ASQIKTEF.mjs";import"../../chunk-QTTDBQAJ.mjs";import"../../chunk-ZAHUEAGT.mjs";import"../../chunk-DYMN66K5.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-4I6IUAHQ.mjs";import"../../chunk-7T5CUI2H.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-C5JQQTMI.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as AnyPublicKey,b as AnySignature};
1
+ import{a,b}from"../../chunk-HY5RVZLG.mjs";import"../../chunk-76QOH2OW.mjs";import"../../chunk-7YJ43PCR.mjs";import"../../chunk-SBCXYFC4.mjs";import"../../chunk-IVVWQKCF.mjs";import"../../chunk-N6EC72OZ.mjs";import"../../chunk-6BXB4PLA.mjs";import"../../chunk-G76BSSWS.mjs";import"../../chunk-FOLCONSQ.mjs";import"../../chunk-QP2A5ISX.mjs";import"../../chunk-TJDC5PWD.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-3CE63FFN.mjs";import"../../chunk-EDVGFSB5.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-H3TJNBHX.mjs";import"../../chunk-FTBXTZM2.mjs";import"../../chunk-AT2A7OZD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-3TSO6PDV.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YELQZVBK.mjs";import"../../chunk-CDIKSNSU.mjs";import"../../chunk-TVWAYKEP.mjs";import"../../chunk-E7VSBBQM.mjs";import"../../chunk-23J256KA.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-ZZIMFLVT.mjs";import"../../chunk-AOCNYMMX.mjs";import"../../chunk-FBPNHF54.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-C5JQQTMI.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-ZXVQ2OBJ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as AnyPublicKey,b as AnySignature};
2
2
  //# sourceMappingURL=singleKey.mjs.map
@@ -1,2 +1,2 @@
1
- import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import{a as Z,b as _,c as $}from"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import{a as x,b as y}from"../chunk-FDD6WNN6.mjs";import{a as X,b as Y}from"../chunk-FDTLBR6D.mjs";import{a as V,b as W}from"../chunk-ASQIKTEF.mjs";import"../chunk-KUX6GQ2E.mjs";import{a as z,b as A,c as B}from"../chunk-QTTDBQAJ.mjs";import{a as U}from"../chunk-ZAHUEAGT.mjs";import{a as E,b as F,c as G,d as H,e as I,f as J,g as K,h as L,i as M,j as N,k as O,l as P,m as Q,n as R,o as S,p as T}from"../chunk-DYMN66K5.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import{a as C,b as D}from"../chunk-4I6IUAHQ.mjs";import{a as t,b as u,c as v,d as w}from"../chunk-7T5CUI2H.mjs";import"../chunk-TJDC5PWD.mjs";import{a as q,b as r}from"../chunk-FOLCONSQ.mjs";import{a as s}from"../chunk-QP2A5ISX.mjs";import{a as g,b as h,c as i,d as j,e as k,f as l,g as m,h as n,i as o,j as p}from"../chunk-LR65XHSF.mjs";import{a as f}from"../chunk-3CE63FFN.mjs";import{a as d,b as e}from"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import{a as b,b as c}from"../chunk-AOCNYMMX.mjs";import{a}from"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{h as APTOS_BIP44_REGEX,g as APTOS_HARDENED_REGEX,e as AccountAddress,r as AccountPublicKey,d as AddressInvalidReason,V as AnyPublicKey,W as AnySignature,f as AuthenticationKey,n as CKDPriv,E as EPK_HORIZON_SECS,v as Ed25519PrivateKey,u as Ed25519PublicKey,w as Ed25519Signature,O as EphemeralCertificate,C as EphemeralPublicKey,D as EphemeralSignature,U as FederatedKeylessPublicKey,P as Groth16Zkp,j as HARDENED_OFFSET,c as Hex,b as HexInvalidReason,i as KeyType,S as KeylessConfiguration,M as KeylessPublicKey,N as KeylessSignature,F as MAX_AUD_VAL_BYTES,L as MAX_COMMITED_EPK_BYTES,J as MAX_EXTRA_FIELD_BYTES,I as MAX_ISS_VAL_BYTES,K as MAX_JWT_HEADER_B64_BYTES,G as MAX_UID_KEY_BYTES,H as MAX_UID_VAL_BYTES,x as MultiEd25519PublicKey,y as MultiEd25519Signature,X as MultiKey,Y as MultiKeySignature,a as ParsingError,q as PublicKey,A as Secp256k1PrivateKey,z as Secp256k1PublicKey,B as Secp256k1Signature,s as Signature,R as ZeroKnowledgeSig,Q as ZkProof,Z as createObjectAddress,_ as createResourceAddress,$ as createTokenAddress,m as deriveKey,T as getKeylessConfig,t as isCanonicalEd25519Signature,k as isValidBIP44Path,l as isValidHardenedPath,p as mnemonicToSeed,o as splitPath};
1
+ import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import{a as Z,b as _,c as $}from"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import{a as x,b as y}from"../chunk-XFG6LGA6.mjs";import{a as X,b as Y}from"../chunk-XY3VSUZX.mjs";import{a as V,b as W}from"../chunk-HY5RVZLG.mjs";import{a as z,b as A,c as B}from"../chunk-76QOH2OW.mjs";import"../chunk-KUX6GQ2E.mjs";import{a as U}from"../chunk-7YJ43PCR.mjs";import{a as E,b as F,c as G,d as H,e as I,f as J,g as K,h as L,i as M,j as N,k as O,l as P,m as Q,n as R,o as S,p as T}from"../chunk-SBCXYFC4.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import{a as C,b as D}from"../chunk-6BXB4PLA.mjs";import{a as t,b as u,c as v,d as w}from"../chunk-G76BSSWS.mjs";import{a as q,b as r}from"../chunk-FOLCONSQ.mjs";import{a as s}from"../chunk-QP2A5ISX.mjs";import"../chunk-TJDC5PWD.mjs";import{a as g,b as h,c as i,d as j,e as k,f as l,g as m,h as n,i as o,j as p}from"../chunk-LR65XHSF.mjs";import{a as f}from"../chunk-3CE63FFN.mjs";import{a as d,b as e}from"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import{a as b,b as c}from"../chunk-AOCNYMMX.mjs";import{a}from"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{h as APTOS_BIP44_REGEX,g as APTOS_HARDENED_REGEX,e as AccountAddress,r as AccountPublicKey,d as AddressInvalidReason,V as AnyPublicKey,W as AnySignature,f as AuthenticationKey,n as CKDPriv,E as EPK_HORIZON_SECS,v as Ed25519PrivateKey,u as Ed25519PublicKey,w as Ed25519Signature,O as EphemeralCertificate,C as EphemeralPublicKey,D as EphemeralSignature,U as FederatedKeylessPublicKey,P as Groth16Zkp,j as HARDENED_OFFSET,c as Hex,b as HexInvalidReason,i as KeyType,S as KeylessConfiguration,M as KeylessPublicKey,N as KeylessSignature,F as MAX_AUD_VAL_BYTES,L as MAX_COMMITED_EPK_BYTES,J as MAX_EXTRA_FIELD_BYTES,I as MAX_ISS_VAL_BYTES,K as MAX_JWT_HEADER_B64_BYTES,G as MAX_UID_KEY_BYTES,H as MAX_UID_VAL_BYTES,x as MultiEd25519PublicKey,y as MultiEd25519Signature,X as MultiKey,Y as MultiKeySignature,a as ParsingError,q as PublicKey,A as Secp256k1PrivateKey,z as Secp256k1PublicKey,B as Secp256k1Signature,s as Signature,R as ZeroKnowledgeSig,Q as ZkProof,Z as createObjectAddress,_ as createResourceAddress,$ as createTokenAddress,m as deriveKey,T as getKeylessConfig,t as isCanonicalEd25519Signature,k as isValidBIP44Path,l as isValidHardenedPath,p as mnemonicToSeed,o as splitPath};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import"./chunk-RMMOF53Q.mjs";import{a as Nf}from"./chunk-WM2GFECU.mjs";import"./chunk-QUTP2ACU.mjs";import"./chunk-AWQNX3RT.mjs";import"./chunk-OVI2RY5L.mjs";import"./chunk-DJVPIZ2I.mjs";import"./chunk-Z25D7JG2.mjs";import"./chunk-IHYTP2EW.mjs";import{a as Kf,b as Lf,c as Mf}from"./chunk-34RQZPSM.mjs";import{a as Jf}from"./chunk-YSVXROOO.mjs";import"./chunk-U6Z4FNB7.mjs";import"./chunk-AERLYJPT.mjs";import"./chunk-BJJBW6WH.mjs";import"./chunk-6EMN3BOV.mjs";import"./chunk-7V6TRMEJ.mjs";import"./chunk-HUDDA4FG.mjs";import"./chunk-I3ZR4HXK.mjs";import"./chunk-S7KCJQOA.mjs";import"./chunk-TKQEC2WD.mjs";import"./chunk-MYRN7MDF.mjs";import"./chunk-VVWBJKEA.mjs";import"./chunk-CFTY4P5C.mjs";import"./chunk-V6ZSRYXI.mjs";import"./chunk-TC3CMU7D.mjs";import"./chunk-TV62D5OU.mjs";import"./chunk-74EWOTWQ.mjs";import"./chunk-J3PN353M.mjs";import"./chunk-S3I4THN5.mjs";import"./chunk-O3SVNTWW.mjs";import"./chunk-RLGIYYI7.mjs";import"./chunk-HK3FJVVM.mjs";import"./chunk-ZSHSL3US.mjs";import"./chunk-6B65YWGD.mjs";import{a as If}from"./chunk-AE5KXM2X.mjs";import"./chunk-Q5BCQFS2.mjs";import"./chunk-4WAH2Y5E.mjs";import"./chunk-LICJI4D2.mjs";import"./chunk-I5OYNCZS.mjs";import"./chunk-JXCZTOYC.mjs";import{a as wf,b as yf,c as zf,d as Af,e as Bf,f as Cf,g as Df,h as Ef,i as Ff,j as Gf,k as Hf}from"./chunk-MVTR6HU6.mjs";import{a as lf,b as nf,c as qf,d as sf,e as uf,f as vf}from"./chunk-5HWJ3SN4.mjs";import{a as hf,b as jf,c as kf}from"./chunk-AZ642ORV.mjs";import{a as Ue,b as Ve,c as We,d as Xe,e as Ye,f as Ze,g as _e,h as $e,i as of,j as rf,k as ef,l as ff,m as mf,n as pf,o as tf,p as xf,q as af,r as bf,s as cf,t as df,u as gf}from"./chunk-BQPQLOIW.mjs";import"./chunk-BSCOVLWS.mjs";import"./chunk-V3MBJJTL.mjs";import"./chunk-K7ZPRL7C.mjs";import"./chunk-GX2II7H4.mjs";import"./chunk-G6HZPSZ3.mjs";import"./chunk-J45FMNYT.mjs";import"./chunk-VHNX2NUR.mjs";import"./chunk-GAEAYY44.mjs";import{a as Te}from"./chunk-W2KQ2TSH.mjs";import{a as Ne}from"./chunk-5RNKD3GW.mjs";import{a as Me}from"./chunk-NOVJ2ROD.mjs";import{a as Le}from"./chunk-NGIPNL7N.mjs";import{a as Se}from"./chunk-PEYLPXU6.mjs";import{a as Re}from"./chunk-PBMXWRZG.mjs";import{a as Oe}from"./chunk-YBZI6U43.mjs";import{a as Pe,b as Qe}from"./chunk-UYYQZDVB.mjs";import{a as He,b as Ie,c as Je,d as Ke}from"./chunk-E2WOZVJX.mjs";import"./chunk-4NMDYPUD.mjs";import{a as Ee}from"./chunk-OOVNFKA6.mjs";import{a as Fe}from"./chunk-GKRIMGKW.mjs";import"./chunk-UYVPNUH3.mjs";import{a as Ge}from"./chunk-7BPKOPP7.mjs";import{a as qe,b as se,c as ue,d as ve}from"./chunk-ND23H3AK.mjs";import{a as ce,b as de,c as ge,d as he,e as ie,f as je,g as ke,h as le,i as ne}from"./chunk-SVO6PVAX.mjs";import{a as Tr,b as Ur,c as Vr,d as Wr,e as Xr,f as Yr,g as Zr,h as _r,i as $r,j as oe,k as re,l as ee,m as fe,n as me,o as pe,p as te,q as xe,r as ae,s as be}from"./chunk-5FPWLBZT.mjs";import{a as Nr}from"./chunk-UW5TIZFE.mjs";import{a as Sr}from"./chunk-SP4PT77Z.mjs";import{a as Or}from"./chunk-5HI4R3A2.mjs";import{a as we}from"./chunk-YACGA3YS.mjs";import{a as ye,b as ze,c as Ae,d as Be,e as Ce,f as De}from"./chunk-ZASN3QQQ.mjs";import{a as Ir,b as Jr,c as Kr,d as Lr,e as Mr}from"./chunk-BC5BEOKM.mjs";import"./chunk-E7FWVXGX.mjs";import"./chunk-NECL5FCQ.mjs";import"./chunk-4QMXOWHP.mjs";import{a as Pr,b as Qr,c as Rr}from"./chunk-SHOPSMRK.mjs";import"./chunk-IA4RELOH.mjs";import{a as uo,b as vo}from"./chunk-FDD6WNN6.mjs";import{a as Gr,b as Hr}from"./chunk-FDTLBR6D.mjs";import{a as Er,b as Fr}from"./chunk-ASQIKTEF.mjs";import"./chunk-KUX6GQ2E.mjs";import{a as wo,b as yo,c as zo}from"./chunk-QTTDBQAJ.mjs";import{a as Dr}from"./chunk-ZAHUEAGT.mjs";import{a as hr,b as ir,c as jr,d as kr,e as lr,f as nr,g as qr,h as sr,i as ur,j as vr,k as wr,l as yr,m as zr,n as Ar,o as Br,p as Cr}from"./chunk-DYMN66K5.mjs";import"./chunk-IVVWQKCF.mjs";import"./chunk-N6EC72OZ.mjs";import{a as Ao,b as Bo}from"./chunk-4I6IUAHQ.mjs";import{a as lo,b as no,c as qo,d as so}from"./chunk-7T5CUI2H.mjs";import"./chunk-TJDC5PWD.mjs";import{a as io,b as jo}from"./chunk-FOLCONSQ.mjs";import{a as ko}from"./chunk-QP2A5ISX.mjs";import{a as fo,b as mo,c as po,d as to,e as xo,f as ao,g as bo,h as co,i as go,j as ho}from"./chunk-LR65XHSF.mjs";import{a as eo}from"./chunk-3CE63FFN.mjs";import{a as oo,b as ro}from"./chunk-EDVGFSB5.mjs";import"./chunk-AH44UPM4.mjs";import"./chunk-N2FKVZ4D.mjs";import{a as fr,b as mr,c as pr,d as tr}from"./chunk-H3TJNBHX.mjs";import{a as xr,b as ar,c as br,d as cr,e as dr,f as gr}from"./chunk-FTBXTZM2.mjs";import{a as rr,b as er}from"./chunk-AT2A7OZD.mjs";import"./chunk-HGLO5LDS.mjs";import{a as Uo}from"./chunk-BSUYPXRD.mjs";import{a as Vo,b as Wo,c as Xo,d as Yo,e as Zo,f as _o,g as $o,h as or}from"./chunk-UAL27G6B.mjs";import{a as Lo}from"./chunk-3TSO6PDV.mjs";import"./chunk-FZY4PMEE.mjs";import{a as Y,b as Z,c as _,d as $}from"./chunk-YELQZVBK.mjs";import{a as c}from"./chunk-CDIKSNSU.mjs";import{a as b}from"./chunk-TVWAYKEP.mjs";import{a as R,b as S,c as T,d as U,e as V,f as W,g as X}from"./chunk-E7VSBBQM.mjs";import{A as L,B as M,C as N,D as O,E as P,F as Q,a as d,b as g,c as h,d as i,e as j,f as k,g as l,h as n,i as q,j as s,k as u,l as v,m as w,n as y,o as z,p as A,q as B,r as C,s as D,t as E,u as F,v as G,w as H,x as I,y as J,z as K}from"./chunk-23J256KA.mjs";import"./chunk-4WPQQPUF.mjs";import{a as o}from"./chunk-KEYAPEAX.mjs";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-ZZIMFLVT.mjs";import{a as e,b as f}from"./chunk-AOCNYMMX.mjs";import{a as r}from"./chunk-FBPNHF54.mjs";import"./chunk-56CNRT2K.mjs";import{a as Mo,b as No,c as Oo,d as Po,e as Qo,f as Ro,g as So,h as To}from"./chunk-C5JQQTMI.mjs";import{a as Co,b as Do,c as Eo,d as Fo,e as Go,f as Ho,g as Io,h as Jo,i as Ko}from"./chunk-EXP5STXZ.mjs";import"./chunk-ZXVQ2OBJ.mjs";import"./chunk-FVA2OPG4.mjs";export{mo as APTOS_BIP44_REGEX,Go as APTOS_COIN,Ho as APTOS_FA,fo as APTOS_HARDENED_REGEX,Ne as Account,ro as AccountAddress,Ir as AccountAuthenticator,Jr as AccountAuthenticatorEd25519,Kr as AccountAuthenticatorMultiEd25519,Mr as AccountAuthenticatorMultiKey,Lr as AccountAuthenticatorSingleKey,l as AccountAuthenticatorVariant,jo as AccountPublicKey,Jf as AccountSequenceNumber,oo as AddressInvalidReason,Er as AnyPublicKey,n as AnyPublicKeyVariant,Fr as AnySignature,q as AnySignatureVariant,Nf as Aptos,Lo as AptosApiError,Co as AptosApiType,If as AptosConfig,eo as AuthenticationKey,R as Bool,co as CKDPriv,Nr as ChainId,Do as DEFAULT_MAX_GAS_AMOUNT,Eo as DEFAULT_TXN_EXP_SEC_FROM_NOW,Fo as DEFAULT_TXN_TIMEOUT_SEC,Q as DeriveScheme,o as Deserializer,hr as EPK_HORIZON_SECS,Le as Ed25519Account,qo as Ed25519PrivateKey,no as Ed25519PublicKey,so as Ed25519Signature,je as EntryFunction,c as EntryFunctionBytes,wr as EphemeralCertificate,v as EphemeralCertificateVariant,Oe as EphemeralKeyPair,Ao as EphemeralPublicKey,s as EphemeralPublicKeyVariant,Bo as EphemeralSignature,u as EphemeralSignatureVariant,Se as FederatedKeylessAccount,Dr as FederatedKeylessPublicKey,ve as FeePayerRawTransaction,b as FixedBytes,yr as Groth16Zkp,to as HARDENED_OFFSET,f as Hex,e as HexInvalidReason,Or as Identifier,po as KeyType,Re as KeylessAccount,Pe as KeylessAccountCommon,Br as KeylessConfiguration,ur as KeylessPublicKey,vr as KeylessSignature,ir as MAX_AUD_VAL_BYTES,sr as MAX_COMMITED_EPK_BYTES,nr as MAX_EXTRA_FIELD_BYTES,lr as MAX_ISS_VAL_BYTES,qr as MAX_JWT_HEADER_B64_BYTES,jr as MAX_UID_KEY_BYTES,kr as MAX_UID_VAL_BYTES,d as MimeType,Sr as ModuleId,M as MoveAbility,L as MoveFunctionVisibility,$ as MoveOption,_ as MoveString,Y as MoveVector,ue as MultiAgentRawTransaction,Ge as MultiAgentTransaction,uo as MultiEd25519PublicKey,vo as MultiEd25519Signature,Gr as MultiKey,Te as MultiKeyAccount,Hr as MultiKeySignature,le as MultiSig,ne as MultiSigTransactionPayload,Ro as Network,So as NetworkToChainId,Oo as NetworkToFaucetAPI,Mo as NetworkToIndexerAPI,To as NetworkToNetworkName,No as NetworkToNodeAPI,Po as NetworkToPepperAPI,Qo as NetworkToProverAPI,r as ParsingError,Ko as ProcessorType,io as PublicKey,Io as RAW_TRANSACTION_SALT,Jo as RAW_TRANSACTION_WITH_DATA_SALT,qe as RawTransaction,se as RawTransactionWithData,N as RoleType,we as RotationProofChallenge,ke as Script,h as ScriptTransactionArgumentVariants,yo as Secp256k1PrivateKey,wo as Secp256k1PublicKey,zo as Secp256k1Signature,m as Serializable,Z as Serialized,p as Serializer,ko as Signature,Ee as SignedTransaction,O as SigningScheme,P as SigningSchemeInput,Fe as SimpleTransaction,Me as SingleKeyAccount,pe as StructTag,Qe as TransactionAndProof,ye as TransactionAuthenticator,ze as TransactionAuthenticatorEd25519,Ce as TransactionAuthenticatorFeePayer,Be as TransactionAuthenticatorMultiAgent,Ae as TransactionAuthenticatorMultiEd25519,De as TransactionAuthenticatorSingleSender,k as TransactionAuthenticatorVariant,de as TransactionPayload,he as TransactionPayloadEntryFunction,ie as TransactionPayloadMultiSig,ge as TransactionPayloadScript,i as TransactionPayloadVariants,y as TransactionResponseType,j as TransactionVariants,Mf as TransactionWorker,Lf as TransactionWorkerEventsEnum,Tr as TypeTag,$r as TypeTagAddress,Ur as TypeTagBool,ee as TypeTagGeneric,jf as TypeTagParserError,hf as TypeTagParserErrorType,re as TypeTagReference,oe as TypeTagSigner,me as TypeTagStruct,Zr as TypeTagU128,Wr as TypeTagU16,_r as TypeTagU256,Xr as TypeTagU32,Yr as TypeTagU64,Vr as TypeTagU8,g as TypeTagVariants,fe as TypeTagVector,W as U128,T as U16,X as U256,U as U32,V as U64,S as U8,Ar as ZeroKnowledgeSig,zr as ZkProof,w as ZkpVariant,te as aptosCoinStructTag,er as aptosRequest,Yo as base64UrlDecode,Cf as buildTransaction,vf as checkOrConvertArgument,Zo as convertAmountFromHumanReadableToOnChain,_o as convertAmountFromOnChainToHumanReadable,uf as convertArgument,Xe as convertNumber,Pr as createObjectAddress,Qr as createResourceAddress,Rr as createTokenAddress,bo as deriveKey,He as deriveTransactionType,ce as deserializeFromScriptArgument,t as ensureBoolean,qf as fetchEntryFunctionAbi,nf as fetchFunctionAbi,sf as fetchViewFunctionAbi,df as findFirstNonSignerArg,Xo as floorToWholeHour,Bf as generateRawTransaction,Ff as generateSignedTransaction,Df as generateSignedTransactionForSimulation,Ie as generateSigningMessage,Je as generateSigningMessageForSerializable,Ke as generateSigningMessageForTransaction,wf as generateTransactionPayload,yf as generateTransactionPayloadWithABI,Hf as generateUserTransactionHash,zf as generateViewFunctionPayload,Af as generateViewFunctionPayloadWithABI,fr as get,mr as getAptosFullNode,pr as getAptosPepperService,Ef as getAuthenticatorForSimulation,gf as getFunctionParts,Cr as getKeylessConfig,Gf as hashValues,of as isBcsAddress,$e as isBcsBool,ef as isBcsFixedBytes,rf as isBcsString,xf as isBcsU128,mf as isBcsU16,af as isBcsU256,pf as isBcsU32,tf as isBcsU64,ff as isBcsU8,F as isBlockEpilogueTransactionResponse,C as isBlockMetadataTransactionResponse,Ue as isBool,lo as isCanonicalEd25519Signature,G as isEd25519Signature,Ze as isEmptyOption,_e as isEncodedEntryFunctionArgument,or as isEncodedStruct,J as isFeePayerSignature,B as isGenesisTransactionResponse,Ye as isLargeNumber,I as isMultiAgentSignature,K as isMultiEd25519Signature,We as isNumber,z as isPendingTransactionResponse,bf as isScriptDataInput,H as isSecp256k1Signature,D as isStateCheckpointTransactionResponse,Ve as isString,A as isUserTransactionResponse,xo as isValidBIP44Path,ao as isValidHardenedPath,E as isValidatorTransactionResponse,ho as mnemonicToSeed,Uo as normalizeBundle,Wo as nowInSeconds,be as objectStructTag,ae as optionStructTag,x as outOfRangeErrorMessage,tr as paginateWithCursor,$o as parseEncodedStruct,kf as parseTypeTag,xr as post,cr as postAptosFaucet,ar as postAptosFullNode,br as postAptosIndexer,dr as postAptosPepperService,gr as postAptosProvingService,Kf as promiseFulfilledStatus,rr as request,Vo as sleep,go as splitPath,lf as standardizeTypeTags,xe as stringStructTag,cf as throwTypeMismatch,a as validateNumberInRange};
1
+ import"./chunk-RMMOF53Q.mjs";import{a as Nf}from"./chunk-MPGNWYFV.mjs";import"./chunk-QUTP2ACU.mjs";import"./chunk-AWQNX3RT.mjs";import"./chunk-OVI2RY5L.mjs";import"./chunk-Y6C7HIGN.mjs";import"./chunk-2ENDRRQP.mjs";import"./chunk-IHYTP2EW.mjs";import{a as Kf,b as Lf,c as Mf}from"./chunk-LELN4SW3.mjs";import"./chunk-U6Z4FNB7.mjs";import{a as Jf}from"./chunk-57RGYHII.mjs";import"./chunk-UWEWPHGU.mjs";import"./chunk-JWB6XL55.mjs";import"./chunk-6EMN3BOV.mjs";import"./chunk-6JVWNPEL.mjs";import"./chunk-Z7TYJI5C.mjs";import"./chunk-TZAQMHQF.mjs";import"./chunk-S7KCJQOA.mjs";import"./chunk-TKQEC2WD.mjs";import"./chunk-MYRN7MDF.mjs";import"./chunk-VVWBJKEA.mjs";import"./chunk-DTTYNUPV.mjs";import"./chunk-QJAEQM4L.mjs";import"./chunk-AOPF5ASG.mjs";import"./chunk-V5XTHER2.mjs";import"./chunk-V7U3LLZC.mjs";import"./chunk-J3PN353M.mjs";import"./chunk-S3I4THN5.mjs";import"./chunk-2JVFBTDG.mjs";import"./chunk-RLGIYYI7.mjs";import"./chunk-GS6IWQ3H.mjs";import"./chunk-IK6O3OUD.mjs";import"./chunk-J3QYWBXE.mjs";import{a as If}from"./chunk-AE5KXM2X.mjs";import"./chunk-2BCWFFPM.mjs";import"./chunk-VHZ46B6V.mjs";import"./chunk-I3ZYHDRZ.mjs";import"./chunk-I5OYNCZS.mjs";import"./chunk-JXCZTOYC.mjs";import{a as wf,b as yf,c as zf,d as Af,e as Bf,f as Cf,g as Df,h as Ef,i as Ff,j as Gf,k as Hf}from"./chunk-VHKCYWZD.mjs";import{a as lf,b as nf,c as qf,d as sf,e as uf,f as vf}from"./chunk-DFECJJPK.mjs";import{a as Ue,b as Ve,c as We,d as Xe,e as Ye,f as Ze,g as _e,h as $e,i as of,j as rf,k as ef,l as ff,m as mf,n as pf,o as tf,p as xf,q as af,r as bf,s as cf,t as df,u as gf}from"./chunk-BQPQLOIW.mjs";import{a as hf,b as jf,c as kf}from"./chunk-AZ642ORV.mjs";import"./chunk-BSCOVLWS.mjs";import"./chunk-V3MBJJTL.mjs";import"./chunk-FCQHPMOT.mjs";import"./chunk-GX2II7H4.mjs";import"./chunk-G6HZPSZ3.mjs";import"./chunk-J45FMNYT.mjs";import"./chunk-VHNX2NUR.mjs";import"./chunk-GAEAYY44.mjs";import{a as Te}from"./chunk-ZIBH5YJK.mjs";import{a as Ne}from"./chunk-5RDMM73L.mjs";import{a as Me}from"./chunk-QWSGJVQW.mjs";import{a as Le}from"./chunk-Q6J7FG6J.mjs";import{a as Se}from"./chunk-HLOUR2K3.mjs";import{a as Re}from"./chunk-43Q5ETMN.mjs";import{a as Oe}from"./chunk-L2EW7RS5.mjs";import{a as Pe,b as Qe}from"./chunk-FSBSLPY3.mjs";import{a as He,b as Ie,c as Je,d as Ke}from"./chunk-E2WOZVJX.mjs";import"./chunk-4NMDYPUD.mjs";import{a as Ge}from"./chunk-7BPKOPP7.mjs";import{a as we}from"./chunk-YACGA3YS.mjs";import{a as Ee}from"./chunk-T3ZU4BDV.mjs";import{a as Fe}from"./chunk-GKRIMGKW.mjs";import{a as qe,b as se,c as ue,d as ve}from"./chunk-ND23H3AK.mjs";import"./chunk-UYVPNUH3.mjs";import{a as ce,b as de,c as ge,d as he,e as ie,f as je,g as ke,h as le,i as ne}from"./chunk-SVO6PVAX.mjs";import{a as Tr,b as Ur,c as Vr,d as Wr,e as Xr,f as Yr,g as Zr,h as _r,i as $r,j as oe,k as re,l as ee,m as fe,n as me,o as pe,p as te,q as xe,r as ae,s as be}from"./chunk-5FPWLBZT.mjs";import{a as Sr}from"./chunk-SP4PT77Z.mjs";import{a as Nr}from"./chunk-UW5TIZFE.mjs";import{a as Or}from"./chunk-5HI4R3A2.mjs";import{a as ye,b as ze,c as Ae,d as Be,e as Ce,f as De}from"./chunk-BX6Y4BSO.mjs";import{a as Ir,b as Jr,c as Kr,d as Lr,e as Mr}from"./chunk-O2IHHH7H.mjs";import"./chunk-E7FWVXGX.mjs";import"./chunk-NECL5FCQ.mjs";import"./chunk-4QMXOWHP.mjs";import{a as Pr,b as Qr,c as Rr}from"./chunk-SHOPSMRK.mjs";import"./chunk-IA4RELOH.mjs";import{a as uo,b as vo}from"./chunk-XFG6LGA6.mjs";import{a as Gr,b as Hr}from"./chunk-XY3VSUZX.mjs";import{a as Er,b as Fr}from"./chunk-HY5RVZLG.mjs";import{a as wo,b as yo,c as zo}from"./chunk-76QOH2OW.mjs";import"./chunk-KUX6GQ2E.mjs";import{a as Dr}from"./chunk-7YJ43PCR.mjs";import{a as hr,b as ir,c as jr,d as kr,e as lr,f as nr,g as qr,h as sr,i as ur,j as vr,k as wr,l as yr,m as zr,n as Ar,o as Br,p as Cr}from"./chunk-SBCXYFC4.mjs";import"./chunk-IVVWQKCF.mjs";import"./chunk-N6EC72OZ.mjs";import{a as Ao,b as Bo}from"./chunk-6BXB4PLA.mjs";import{a as lo,b as no,c as qo,d as so}from"./chunk-G76BSSWS.mjs";import{a as io,b as jo}from"./chunk-FOLCONSQ.mjs";import{a as ko}from"./chunk-QP2A5ISX.mjs";import"./chunk-TJDC5PWD.mjs";import{a as fo,b as mo,c as po,d as to,e as xo,f as ao,g as bo,h as co,i as go,j as ho}from"./chunk-LR65XHSF.mjs";import{a as eo}from"./chunk-3CE63FFN.mjs";import{a as oo,b as ro}from"./chunk-EDVGFSB5.mjs";import"./chunk-AH44UPM4.mjs";import"./chunk-N2FKVZ4D.mjs";import{a as fr,b as mr,c as pr,d as tr}from"./chunk-H3TJNBHX.mjs";import{a as xr,b as ar,c as br,d as cr,e as dr,f as gr}from"./chunk-FTBXTZM2.mjs";import{a as rr,b as er}from"./chunk-AT2A7OZD.mjs";import"./chunk-HGLO5LDS.mjs";import{a as Uo}from"./chunk-BSUYPXRD.mjs";import{a as Vo,b as Wo,c as Xo,d as Yo,e as Zo,f as _o,g as $o,h as or}from"./chunk-UAL27G6B.mjs";import{a as Lo}from"./chunk-3TSO6PDV.mjs";import"./chunk-FZY4PMEE.mjs";import{a as Y,b as Z,c as _,d as $}from"./chunk-YELQZVBK.mjs";import{a as c}from"./chunk-CDIKSNSU.mjs";import{a as b}from"./chunk-TVWAYKEP.mjs";import{a as R,b as S,c as T,d as U,e as V,f as W,g as X}from"./chunk-E7VSBBQM.mjs";import{A as L,B as M,C as N,D as O,E as P,F as Q,a as d,b as g,c as h,d as i,e as j,f as k,g as l,h as n,i as q,j as s,k as u,l as v,m as w,n as y,o as z,p as A,q as B,r as C,s as D,t as E,u as F,v as G,w as H,x as I,y as J,z as K}from"./chunk-23J256KA.mjs";import"./chunk-4WPQQPUF.mjs";import{a as o}from"./chunk-KEYAPEAX.mjs";import{a as m,b as p,c as t,d as x,e as a}from"./chunk-ZZIMFLVT.mjs";import{a as e,b as f}from"./chunk-AOCNYMMX.mjs";import{a as r}from"./chunk-FBPNHF54.mjs";import"./chunk-56CNRT2K.mjs";import{a as Mo,b as No,c as Oo,d as Po,e as Qo,f as Ro,g as So,h as To}from"./chunk-C5JQQTMI.mjs";import{a as Co,b as Do,c as Eo,d as Fo,e as Go,f as Ho,g as Io,h as Jo,i as Ko}from"./chunk-EXP5STXZ.mjs";import"./chunk-ZXVQ2OBJ.mjs";import"./chunk-FVA2OPG4.mjs";export{mo as APTOS_BIP44_REGEX,Go as APTOS_COIN,Ho as APTOS_FA,fo as APTOS_HARDENED_REGEX,Ne as Account,ro as AccountAddress,Ir as AccountAuthenticator,Jr as AccountAuthenticatorEd25519,Kr as AccountAuthenticatorMultiEd25519,Mr as AccountAuthenticatorMultiKey,Lr as AccountAuthenticatorSingleKey,l as AccountAuthenticatorVariant,jo as AccountPublicKey,Jf as AccountSequenceNumber,oo as AddressInvalidReason,Er as AnyPublicKey,n as AnyPublicKeyVariant,Fr as AnySignature,q as AnySignatureVariant,Nf as Aptos,Lo as AptosApiError,Co as AptosApiType,If as AptosConfig,eo as AuthenticationKey,R as Bool,co as CKDPriv,Nr as ChainId,Do as DEFAULT_MAX_GAS_AMOUNT,Eo as DEFAULT_TXN_EXP_SEC_FROM_NOW,Fo as DEFAULT_TXN_TIMEOUT_SEC,Q as DeriveScheme,o as Deserializer,hr as EPK_HORIZON_SECS,Le as Ed25519Account,qo as Ed25519PrivateKey,no as Ed25519PublicKey,so as Ed25519Signature,je as EntryFunction,c as EntryFunctionBytes,wr as EphemeralCertificate,v as EphemeralCertificateVariant,Oe as EphemeralKeyPair,Ao as EphemeralPublicKey,s as EphemeralPublicKeyVariant,Bo as EphemeralSignature,u as EphemeralSignatureVariant,Se as FederatedKeylessAccount,Dr as FederatedKeylessPublicKey,ve as FeePayerRawTransaction,b as FixedBytes,yr as Groth16Zkp,to as HARDENED_OFFSET,f as Hex,e as HexInvalidReason,Or as Identifier,po as KeyType,Re as KeylessAccount,Pe as KeylessAccountCommon,Br as KeylessConfiguration,ur as KeylessPublicKey,vr as KeylessSignature,ir as MAX_AUD_VAL_BYTES,sr as MAX_COMMITED_EPK_BYTES,nr as MAX_EXTRA_FIELD_BYTES,lr as MAX_ISS_VAL_BYTES,qr as MAX_JWT_HEADER_B64_BYTES,jr as MAX_UID_KEY_BYTES,kr as MAX_UID_VAL_BYTES,d as MimeType,Sr as ModuleId,M as MoveAbility,L as MoveFunctionVisibility,$ as MoveOption,_ as MoveString,Y as MoveVector,ue as MultiAgentRawTransaction,Ge as MultiAgentTransaction,uo as MultiEd25519PublicKey,vo as MultiEd25519Signature,Gr as MultiKey,Te as MultiKeyAccount,Hr as MultiKeySignature,le as MultiSig,ne as MultiSigTransactionPayload,Ro as Network,So as NetworkToChainId,Oo as NetworkToFaucetAPI,Mo as NetworkToIndexerAPI,To as NetworkToNetworkName,No as NetworkToNodeAPI,Po as NetworkToPepperAPI,Qo as NetworkToProverAPI,r as ParsingError,Ko as ProcessorType,io as PublicKey,Io as RAW_TRANSACTION_SALT,Jo as RAW_TRANSACTION_WITH_DATA_SALT,qe as RawTransaction,se as RawTransactionWithData,N as RoleType,we as RotationProofChallenge,ke as Script,h as ScriptTransactionArgumentVariants,yo as Secp256k1PrivateKey,wo as Secp256k1PublicKey,zo as Secp256k1Signature,m as Serializable,Z as Serialized,p as Serializer,ko as Signature,Ee as SignedTransaction,O as SigningScheme,P as SigningSchemeInput,Fe as SimpleTransaction,Me as SingleKeyAccount,pe as StructTag,Qe as TransactionAndProof,ye as TransactionAuthenticator,ze as TransactionAuthenticatorEd25519,Ce as TransactionAuthenticatorFeePayer,Be as TransactionAuthenticatorMultiAgent,Ae as TransactionAuthenticatorMultiEd25519,De as TransactionAuthenticatorSingleSender,k as TransactionAuthenticatorVariant,de as TransactionPayload,he as TransactionPayloadEntryFunction,ie as TransactionPayloadMultiSig,ge as TransactionPayloadScript,i as TransactionPayloadVariants,y as TransactionResponseType,j as TransactionVariants,Mf as TransactionWorker,Lf as TransactionWorkerEventsEnum,Tr as TypeTag,$r as TypeTagAddress,Ur as TypeTagBool,ee as TypeTagGeneric,jf as TypeTagParserError,hf as TypeTagParserErrorType,re as TypeTagReference,oe as TypeTagSigner,me as TypeTagStruct,Zr as TypeTagU128,Wr as TypeTagU16,_r as TypeTagU256,Xr as TypeTagU32,Yr as TypeTagU64,Vr as TypeTagU8,g as TypeTagVariants,fe as TypeTagVector,W as U128,T as U16,X as U256,U as U32,V as U64,S as U8,Ar as ZeroKnowledgeSig,zr as ZkProof,w as ZkpVariant,te as aptosCoinStructTag,er as aptosRequest,Yo as base64UrlDecode,Cf as buildTransaction,vf as checkOrConvertArgument,Zo as convertAmountFromHumanReadableToOnChain,_o as convertAmountFromOnChainToHumanReadable,uf as convertArgument,Xe as convertNumber,Pr as createObjectAddress,Qr as createResourceAddress,Rr as createTokenAddress,bo as deriveKey,He as deriveTransactionType,ce as deserializeFromScriptArgument,t as ensureBoolean,qf as fetchEntryFunctionAbi,nf as fetchFunctionAbi,sf as fetchViewFunctionAbi,df as findFirstNonSignerArg,Xo as floorToWholeHour,Bf as generateRawTransaction,Ff as generateSignedTransaction,Df as generateSignedTransactionForSimulation,Ie as generateSigningMessage,Je as generateSigningMessageForSerializable,Ke as generateSigningMessageForTransaction,wf as generateTransactionPayload,yf as generateTransactionPayloadWithABI,Hf as generateUserTransactionHash,zf as generateViewFunctionPayload,Af as generateViewFunctionPayloadWithABI,fr as get,mr as getAptosFullNode,pr as getAptosPepperService,Ef as getAuthenticatorForSimulation,gf as getFunctionParts,Cr as getKeylessConfig,Gf as hashValues,of as isBcsAddress,$e as isBcsBool,ef as isBcsFixedBytes,rf as isBcsString,xf as isBcsU128,mf as isBcsU16,af as isBcsU256,pf as isBcsU32,tf as isBcsU64,ff as isBcsU8,F as isBlockEpilogueTransactionResponse,C as isBlockMetadataTransactionResponse,Ue as isBool,lo as isCanonicalEd25519Signature,G as isEd25519Signature,Ze as isEmptyOption,_e as isEncodedEntryFunctionArgument,or as isEncodedStruct,J as isFeePayerSignature,B as isGenesisTransactionResponse,Ye as isLargeNumber,I as isMultiAgentSignature,K as isMultiEd25519Signature,We as isNumber,z as isPendingTransactionResponse,bf as isScriptDataInput,H as isSecp256k1Signature,D as isStateCheckpointTransactionResponse,Ve as isString,A as isUserTransactionResponse,xo as isValidBIP44Path,ao as isValidHardenedPath,E as isValidatorTransactionResponse,ho as mnemonicToSeed,Uo as normalizeBundle,Wo as nowInSeconds,be as objectStructTag,ae as optionStructTag,x as outOfRangeErrorMessage,tr as paginateWithCursor,$o as parseEncodedStruct,kf as parseTypeTag,xr as post,cr as postAptosFaucet,ar as postAptosFullNode,br as postAptosIndexer,dr as postAptosPepperService,gr as postAptosProvingService,Kf as promiseFulfilledStatus,rr as request,Vo as sleep,go as splitPath,lf as standardizeTypeTags,xe as stringStructTag,cf as throwTypeMismatch,a as validateNumberInRange};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"../chunk-K7ZPRL7C.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-W2KQ2TSH.mjs";import"../chunk-5RNKD3GW.mjs";import"../chunk-NOVJ2ROD.mjs";import"../chunk-NGIPNL7N.mjs";import"../chunk-PEYLPXU6.mjs";import"../chunk-PBMXWRZG.mjs";import"../chunk-YBZI6U43.mjs";import"../chunk-UYYQZDVB.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-OOVNFKA6.mjs";import"../chunk-GKRIMGKW.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-7BPKOPP7.mjs";import"../chunk-ND23H3AK.mjs";import"../chunk-SVO6PVAX.mjs";import"../chunk-5FPWLBZT.mjs";import"../chunk-UW5TIZFE.mjs";import"../chunk-SP4PT77Z.mjs";import"../chunk-5HI4R3A2.mjs";import"../chunk-YACGA3YS.mjs";import"../chunk-ZASN3QQQ.mjs";import"../chunk-BC5BEOKM.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import"../chunk-FDD6WNN6.mjs";import"../chunk-FDTLBR6D.mjs";import"../chunk-ASQIKTEF.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-QTTDBQAJ.mjs";import"../chunk-ZAHUEAGT.mjs";import"../chunk-DYMN66K5.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import"../chunk-4I6IUAHQ.mjs";import"../chunk-7T5CUI2H.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-FOLCONSQ.mjs";import"../chunk-QP2A5ISX.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-3CE63FFN.mjs";import"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{q as deriveAccountFromPrivateKey,m as getAccountCoinAmount,o as getAccountCoinsCount,n as getAccountCoinsData,k as getAccountCollectionsWithOwnedTokens,p as getAccountOwnedObjects,i as getAccountOwnedTokens,j as getAccountOwnedTokensFromCollectionAddress,h as getAccountTokensCount,l as getAccountTransactionsCount,a as getInfo,c as getModule,b as getModules,f as getResource,e as getResources,d as getTransactions,r as isAccountExist,g as lookupOriginalAccountAddress};
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r}from"../chunk-FCQHPMOT.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-ZIBH5YJK.mjs";import"../chunk-5RDMM73L.mjs";import"../chunk-QWSGJVQW.mjs";import"../chunk-Q6J7FG6J.mjs";import"../chunk-HLOUR2K3.mjs";import"../chunk-43Q5ETMN.mjs";import"../chunk-L2EW7RS5.mjs";import"../chunk-FSBSLPY3.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-7BPKOPP7.mjs";import"../chunk-YACGA3YS.mjs";import"../chunk-T3ZU4BDV.mjs";import"../chunk-GKRIMGKW.mjs";import"../chunk-ND23H3AK.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-SVO6PVAX.mjs";import"../chunk-5FPWLBZT.mjs";import"../chunk-SP4PT77Z.mjs";import"../chunk-UW5TIZFE.mjs";import"../chunk-5HI4R3A2.mjs";import"../chunk-BX6Y4BSO.mjs";import"../chunk-O2IHHH7H.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import"../chunk-XFG6LGA6.mjs";import"../chunk-XY3VSUZX.mjs";import"../chunk-HY5RVZLG.mjs";import"../chunk-76QOH2OW.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-7YJ43PCR.mjs";import"../chunk-SBCXYFC4.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import"../chunk-6BXB4PLA.mjs";import"../chunk-G76BSSWS.mjs";import"../chunk-FOLCONSQ.mjs";import"../chunk-QP2A5ISX.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-3CE63FFN.mjs";import"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{q as deriveAccountFromPrivateKey,m as getAccountCoinAmount,o as getAccountCoinsCount,n as getAccountCoinsData,k as getAccountCollectionsWithOwnedTokens,p as getAccountOwnedObjects,i as getAccountOwnedTokens,j as getAccountOwnedTokensFromCollectionAddress,h as getAccountTokensCount,l as getAccountTransactionsCount,a as getInfo,c as getModule,b as getModules,f as getResource,e as getResources,d as getTransactions,r as isAccountExist,g as lookupOriginalAccountAddress};
2
2
  //# sourceMappingURL=account.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t}from"../chunk-ZSHSL3US.mjs";import"../chunk-6B65YWGD.mjs";import"../chunk-LICJI4D2.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-JXCZTOYC.mjs";import"../chunk-MVTR6HU6.mjs";import"../chunk-5HWJ3SN4.mjs";import"../chunk-AZ642ORV.mjs";import"../chunk-BQPQLOIW.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-K7ZPRL7C.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-G6HZPSZ3.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-W2KQ2TSH.mjs";import"../chunk-5RNKD3GW.mjs";import"../chunk-NOVJ2ROD.mjs";import"../chunk-NGIPNL7N.mjs";import"../chunk-PEYLPXU6.mjs";import"../chunk-PBMXWRZG.mjs";import"../chunk-YBZI6U43.mjs";import"../chunk-UYYQZDVB.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-OOVNFKA6.mjs";import"../chunk-GKRIMGKW.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-7BPKOPP7.mjs";import"../chunk-ND23H3AK.mjs";import"../chunk-SVO6PVAX.mjs";import"../chunk-5FPWLBZT.mjs";import"../chunk-UW5TIZFE.mjs";import"../chunk-SP4PT77Z.mjs";import"../chunk-5HI4R3A2.mjs";import"../chunk-YACGA3YS.mjs";import"../chunk-ZASN3QQQ.mjs";import"../chunk-BC5BEOKM.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import"../chunk-FDD6WNN6.mjs";import"../chunk-FDTLBR6D.mjs";import"../chunk-ASQIKTEF.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-QTTDBQAJ.mjs";import"../chunk-ZAHUEAGT.mjs";import"../chunk-DYMN66K5.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import"../chunk-4I6IUAHQ.mjs";import"../chunk-7T5CUI2H.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-FOLCONSQ.mjs";import"../chunk-QP2A5ISX.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-3CE63FFN.mjs";import"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{g as LOCAL_ANS_ACCOUNT_ADDRESS,f as LOCAL_ANS_ACCOUNT_PK,d as SubdomainExpirationPolicy,a as VALIDATION_RULES_DESCRIPTION,q as getAccountDomains,p as getAccountNames,r as getAccountSubdomains,s as getDomainSubdomains,j as getExpiration,o as getName,h as getOwnerAddress,k as getPrimaryName,m as getTargetAddress,e as isActiveANSName,c as isValidANSName,b as isValidANSSegment,i as registerName,t as renewDomain,l as setPrimaryName,n as setTargetAddress};
1
+ import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t}from"../chunk-IK6O3OUD.mjs";import"../chunk-J3QYWBXE.mjs";import"../chunk-I3ZYHDRZ.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-JXCZTOYC.mjs";import"../chunk-VHKCYWZD.mjs";import"../chunk-DFECJJPK.mjs";import"../chunk-BQPQLOIW.mjs";import"../chunk-AZ642ORV.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-FCQHPMOT.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-G6HZPSZ3.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-ZIBH5YJK.mjs";import"../chunk-5RDMM73L.mjs";import"../chunk-QWSGJVQW.mjs";import"../chunk-Q6J7FG6J.mjs";import"../chunk-HLOUR2K3.mjs";import"../chunk-43Q5ETMN.mjs";import"../chunk-L2EW7RS5.mjs";import"../chunk-FSBSLPY3.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-7BPKOPP7.mjs";import"../chunk-YACGA3YS.mjs";import"../chunk-T3ZU4BDV.mjs";import"../chunk-GKRIMGKW.mjs";import"../chunk-ND23H3AK.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-SVO6PVAX.mjs";import"../chunk-5FPWLBZT.mjs";import"../chunk-SP4PT77Z.mjs";import"../chunk-UW5TIZFE.mjs";import"../chunk-5HI4R3A2.mjs";import"../chunk-BX6Y4BSO.mjs";import"../chunk-O2IHHH7H.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import"../chunk-XFG6LGA6.mjs";import"../chunk-XY3VSUZX.mjs";import"../chunk-HY5RVZLG.mjs";import"../chunk-76QOH2OW.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-7YJ43PCR.mjs";import"../chunk-SBCXYFC4.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import"../chunk-6BXB4PLA.mjs";import"../chunk-G76BSSWS.mjs";import"../chunk-FOLCONSQ.mjs";import"../chunk-QP2A5ISX.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-3CE63FFN.mjs";import"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{g as LOCAL_ANS_ACCOUNT_ADDRESS,f as LOCAL_ANS_ACCOUNT_PK,d as SubdomainExpirationPolicy,a as VALIDATION_RULES_DESCRIPTION,q as getAccountDomains,p as getAccountNames,r as getAccountSubdomains,s as getDomainSubdomains,j as getExpiration,o as getName,h as getOwnerAddress,k as getPrimaryName,m as getTargetAddress,e as isActiveANSName,c as isValidANSName,b as isValidANSSegment,i as registerName,t as renewDomain,l as setPrimaryName,n as setTargetAddress};
2
2
  //# sourceMappingURL=ans.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-4WAH2Y5E.mjs";import"../chunk-LICJI4D2.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-JXCZTOYC.mjs";import"../chunk-MVTR6HU6.mjs";import"../chunk-5HWJ3SN4.mjs";import"../chunk-AZ642ORV.mjs";import"../chunk-BQPQLOIW.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-K7ZPRL7C.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-G6HZPSZ3.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-W2KQ2TSH.mjs";import"../chunk-5RNKD3GW.mjs";import"../chunk-NOVJ2ROD.mjs";import"../chunk-NGIPNL7N.mjs";import"../chunk-PEYLPXU6.mjs";import"../chunk-PBMXWRZG.mjs";import"../chunk-YBZI6U43.mjs";import"../chunk-UYYQZDVB.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-OOVNFKA6.mjs";import"../chunk-GKRIMGKW.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-7BPKOPP7.mjs";import"../chunk-ND23H3AK.mjs";import"../chunk-SVO6PVAX.mjs";import"../chunk-5FPWLBZT.mjs";import"../chunk-UW5TIZFE.mjs";import"../chunk-SP4PT77Z.mjs";import"../chunk-5HI4R3A2.mjs";import"../chunk-YACGA3YS.mjs";import"../chunk-ZASN3QQQ.mjs";import"../chunk-BC5BEOKM.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import"../chunk-FDD6WNN6.mjs";import"../chunk-FDTLBR6D.mjs";import"../chunk-ASQIKTEF.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-QTTDBQAJ.mjs";import"../chunk-ZAHUEAGT.mjs";import"../chunk-DYMN66K5.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import"../chunk-4I6IUAHQ.mjs";import"../chunk-7T5CUI2H.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-FOLCONSQ.mjs";import"../chunk-QP2A5ISX.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-3CE63FFN.mjs";import"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{a as transferCoinTransaction};
1
+ import{a}from"../chunk-VHZ46B6V.mjs";import"../chunk-I3ZYHDRZ.mjs";import"../chunk-I5OYNCZS.mjs";import"../chunk-JXCZTOYC.mjs";import"../chunk-VHKCYWZD.mjs";import"../chunk-DFECJJPK.mjs";import"../chunk-BQPQLOIW.mjs";import"../chunk-AZ642ORV.mjs";import"../chunk-BSCOVLWS.mjs";import"../chunk-V3MBJJTL.mjs";import"../chunk-FCQHPMOT.mjs";import"../chunk-GX2II7H4.mjs";import"../chunk-G6HZPSZ3.mjs";import"../chunk-J45FMNYT.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-GAEAYY44.mjs";import"../chunk-ZIBH5YJK.mjs";import"../chunk-5RDMM73L.mjs";import"../chunk-QWSGJVQW.mjs";import"../chunk-Q6J7FG6J.mjs";import"../chunk-HLOUR2K3.mjs";import"../chunk-43Q5ETMN.mjs";import"../chunk-L2EW7RS5.mjs";import"../chunk-FSBSLPY3.mjs";import"../chunk-E2WOZVJX.mjs";import"../chunk-4NMDYPUD.mjs";import"../chunk-7BPKOPP7.mjs";import"../chunk-YACGA3YS.mjs";import"../chunk-T3ZU4BDV.mjs";import"../chunk-GKRIMGKW.mjs";import"../chunk-ND23H3AK.mjs";import"../chunk-UYVPNUH3.mjs";import"../chunk-SVO6PVAX.mjs";import"../chunk-5FPWLBZT.mjs";import"../chunk-SP4PT77Z.mjs";import"../chunk-UW5TIZFE.mjs";import"../chunk-5HI4R3A2.mjs";import"../chunk-BX6Y4BSO.mjs";import"../chunk-O2IHHH7H.mjs";import"../chunk-E7FWVXGX.mjs";import"../chunk-NECL5FCQ.mjs";import"../chunk-4QMXOWHP.mjs";import"../chunk-SHOPSMRK.mjs";import"../chunk-IA4RELOH.mjs";import"../chunk-XFG6LGA6.mjs";import"../chunk-XY3VSUZX.mjs";import"../chunk-HY5RVZLG.mjs";import"../chunk-76QOH2OW.mjs";import"../chunk-KUX6GQ2E.mjs";import"../chunk-7YJ43PCR.mjs";import"../chunk-SBCXYFC4.mjs";import"../chunk-IVVWQKCF.mjs";import"../chunk-N6EC72OZ.mjs";import"../chunk-6BXB4PLA.mjs";import"../chunk-G76BSSWS.mjs";import"../chunk-FOLCONSQ.mjs";import"../chunk-QP2A5ISX.mjs";import"../chunk-TJDC5PWD.mjs";import"../chunk-LR65XHSF.mjs";import"../chunk-3CE63FFN.mjs";import"../chunk-EDVGFSB5.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-H3TJNBHX.mjs";import"../chunk-FTBXTZM2.mjs";import"../chunk-AT2A7OZD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-3TSO6PDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-YELQZVBK.mjs";import"../chunk-CDIKSNSU.mjs";import"../chunk-TVWAYKEP.mjs";import"../chunk-E7VSBBQM.mjs";import"../chunk-23J256KA.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-ZZIMFLVT.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-C5JQQTMI.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-ZXVQ2OBJ.mjs";import"../chunk-FVA2OPG4.mjs";export{a as transferCoinTransaction};
2
2
  //# sourceMappingURL=coin.mjs.map