@aptos-labs/ts-sdk 1.29.0-zeta.1 → 1.29.1

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 (238) hide show
  1. package/dist/common/index.js +1 -1
  2. package/dist/common/index.js.map +1 -1
  3. package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
  4. package/dist/esm/account/Account.mjs +1 -1
  5. package/dist/esm/account/Ed25519Account.mjs +1 -1
  6. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  7. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  8. package/dist/esm/account/KeylessAccount.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/aptosConfig.mjs +1 -1
  16. package/dist/esm/api/coin.mjs +1 -1
  17. package/dist/esm/api/digitalAsset.mjs +1 -1
  18. package/dist/esm/api/event.mjs +1 -1
  19. package/dist/esm/api/faucet.mjs +1 -1
  20. package/dist/esm/api/fungibleAsset.mjs +1 -1
  21. package/dist/esm/api/general.mjs +1 -1
  22. package/dist/esm/api/index.mjs +1 -1
  23. package/dist/esm/api/keyless.mjs +1 -1
  24. package/dist/esm/api/object.mjs +1 -1
  25. package/dist/esm/api/staking.mjs +1 -1
  26. package/dist/esm/api/table.mjs +1 -1
  27. package/dist/esm/api/transaction.mjs +1 -1
  28. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  29. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  30. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  31. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  32. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  33. package/dist/esm/api/utils.mjs +1 -1
  34. package/dist/esm/bcs/index.mjs +1 -1
  35. package/dist/esm/{chunk-ZF3BOH6A.mjs → chunk-25NSCK4Q.mjs} +2 -2
  36. package/dist/esm/{chunk-RG572OEH.mjs → chunk-25TIHDS6.mjs} +2 -2
  37. package/dist/esm/{chunk-65JGB4JK.mjs → chunk-2TQIU7CG.mjs} +2 -2
  38. package/dist/esm/{chunk-IAPQS7TH.mjs → chunk-3MCYLML2.mjs} +2 -2
  39. package/dist/esm/{chunk-EXCR5VKV.mjs → chunk-3YKAGVHZ.mjs} +2 -2
  40. package/dist/esm/{chunk-EDI5UVKO.mjs → chunk-46D5QX3G.mjs} +2 -2
  41. package/dist/esm/chunk-555I4YHP.mjs +2 -0
  42. package/dist/esm/{chunk-UAEODDZS.mjs.map → chunk-555I4YHP.mjs.map} +1 -1
  43. package/dist/esm/{chunk-VNTZZ7AM.mjs → chunk-5655UVIK.mjs} +2 -2
  44. package/dist/esm/{chunk-LYEUGID7.mjs → chunk-6RZZIOGH.mjs} +2 -2
  45. package/dist/esm/{chunk-SS4IPKAI.mjs → chunk-7V6DEA7G.mjs} +2 -2
  46. package/dist/esm/{chunk-OGHATIRT.mjs → chunk-7ZLBJUVZ.mjs} +2 -2
  47. package/dist/esm/{chunk-5GD2TVJW.mjs → chunk-AFOPNDOJ.mjs} +2 -2
  48. package/dist/esm/{chunk-6ZRARME6.mjs → chunk-B2CXRZL5.mjs} +2 -2
  49. package/dist/esm/{chunk-U4MIJ2SL.mjs → chunk-B6M7QBUO.mjs} +2 -2
  50. package/dist/esm/{chunk-CKQQJXQL.mjs → chunk-BD6BJETG.mjs} +2 -2
  51. package/dist/esm/{chunk-UH7ADIR7.mjs → chunk-BKEJMQQ6.mjs} +2 -2
  52. package/dist/esm/{chunk-JVVK4K6H.mjs → chunk-BRFHAO2Y.mjs} +2 -2
  53. package/dist/esm/{chunk-TJI233SP.mjs → chunk-CPPBQDHB.mjs} +2 -2
  54. package/dist/esm/{chunk-BJIICNRF.mjs → chunk-CVDR5SJR.mjs} +2 -2
  55. package/dist/esm/{chunk-G7EILN6D.mjs → chunk-DAJOX4PL.mjs} +2 -2
  56. package/dist/esm/{chunk-4D6EDVZW.mjs → chunk-DAXKRXRK.mjs} +2 -2
  57. package/dist/esm/{chunk-XD4E5FEG.mjs → chunk-DF4WKSTK.mjs} +2 -2
  58. package/dist/esm/{chunk-AN37GM4N.mjs → chunk-ECWOLU5T.mjs} +2 -2
  59. package/dist/esm/{chunk-3RBIEWVC.mjs → chunk-EV2USF7B.mjs} +2 -2
  60. package/dist/esm/{chunk-MJ7K6MUZ.mjs → chunk-EWZ2M5BW.mjs} +2 -2
  61. package/dist/esm/{chunk-ZRFOTNLQ.mjs → chunk-FRGXKOU5.mjs} +2 -2
  62. package/dist/esm/{chunk-YFQSFUKY.mjs → chunk-G7MWTE2J.mjs} +2 -2
  63. package/dist/esm/{chunk-QB4XTGDH.mjs → chunk-GFGX3QDP.mjs} +2 -2
  64. package/dist/esm/{chunk-NFLXGKHO.mjs → chunk-GGR3P2TG.mjs} +2 -2
  65. package/dist/esm/{chunk-MGTUMRQW.mjs → chunk-HSPBA2TZ.mjs} +2 -2
  66. package/dist/esm/{chunk-WXHVXW5G.mjs → chunk-IYQISVDX.mjs} +2 -2
  67. package/dist/esm/{chunk-CHPQXBMJ.mjs → chunk-K2O24YLZ.mjs} +2 -2
  68. package/dist/esm/{chunk-SYTI5QO7.mjs → chunk-KXBIA4KR.mjs} +2 -2
  69. package/dist/esm/{chunk-Z34TLNCN.mjs → chunk-KYSDF3CA.mjs} +2 -2
  70. package/dist/esm/{chunk-DLKFZIMC.mjs → chunk-L5NY7TMI.mjs} +2 -2
  71. package/dist/esm/{chunk-7KWFE3OU.mjs → chunk-LDFTE4MM.mjs} +2 -2
  72. package/dist/esm/{chunk-4BMEOXWL.mjs → chunk-LG3DAAPD.mjs} +2 -2
  73. package/dist/esm/{chunk-7YXNZTCS.mjs → chunk-LGD5KU56.mjs} +2 -2
  74. package/dist/esm/{chunk-WFXL7LIC.mjs → chunk-MEWFJJJN.mjs} +2 -2
  75. package/dist/esm/{chunk-R7FVBWBJ.mjs → chunk-MO4IZXLK.mjs} +2 -2
  76. package/dist/esm/{chunk-FRG5RXIG.mjs → chunk-N5JNKD5F.mjs} +2 -2
  77. package/dist/esm/{chunk-DWPMDONI.mjs → chunk-NH2S6SB2.mjs} +2 -2
  78. package/dist/esm/{chunk-OJL36Q4H.mjs → chunk-NMD45OTM.mjs} +2 -2
  79. package/dist/esm/{chunk-G7NFBUOF.mjs → chunk-NNRAQP36.mjs} +2 -2
  80. package/dist/esm/{chunk-6HOEJLTL.mjs → chunk-OY2IX7HW.mjs} +2 -2
  81. package/dist/esm/{chunk-RQNQ5TUX.mjs → chunk-PNXUYOYI.mjs} +2 -2
  82. package/dist/esm/{chunk-E6O72G24.mjs → chunk-PUZ25PTD.mjs} +2 -2
  83. package/dist/esm/{chunk-ZGOO4E6O.mjs → chunk-QCUFTD7K.mjs} +2 -2
  84. package/dist/esm/{chunk-33DMJ7SF.mjs → chunk-QLN2URFX.mjs} +2 -2
  85. package/dist/esm/{chunk-CG7SPTMT.mjs → chunk-SAPUZZEU.mjs} +2 -2
  86. package/dist/esm/{chunk-GY6LFCB2.mjs → chunk-SCHZ67F3.mjs} +2 -2
  87. package/dist/esm/{chunk-GY6LFCB2.mjs.map → chunk-SCHZ67F3.mjs.map} +1 -1
  88. package/dist/esm/{chunk-E65E4RJE.mjs → chunk-SR24OGHJ.mjs} +2 -2
  89. package/dist/esm/{chunk-MHRQHVM3.mjs → chunk-STGYDB5E.mjs} +2 -2
  90. package/dist/esm/{chunk-TPCG5W2G.mjs → chunk-SWHLSREF.mjs} +2 -2
  91. package/dist/esm/{chunk-NTTZKATR.mjs → chunk-TL7DR54X.mjs} +2 -2
  92. package/dist/esm/{chunk-5BUJ6N72.mjs → chunk-TMW2HIXC.mjs} +2 -2
  93. package/dist/esm/{chunk-T4L7U65D.mjs → chunk-TS3PYRAT.mjs} +2 -2
  94. package/dist/esm/{chunk-XLLHYNH7.mjs → chunk-TVFIUUVY.mjs} +2 -2
  95. package/dist/esm/{chunk-TVIQLBVA.mjs → chunk-U67PFBTL.mjs} +2 -2
  96. package/dist/esm/{chunk-YRZQQJCW.mjs → chunk-WS4RPKL6.mjs} +2 -2
  97. package/dist/esm/{chunk-D72R4A35.mjs → chunk-WWZ3METZ.mjs} +2 -2
  98. package/dist/esm/{chunk-EHANMHHZ.mjs → chunk-X4KEZTUQ.mjs} +2 -2
  99. package/dist/esm/{chunk-UO5WQIIP.mjs → chunk-XH7YKEYR.mjs} +2 -2
  100. package/dist/esm/{chunk-BYZKUWCV.mjs → chunk-XK3JFCP3.mjs} +2 -2
  101. package/dist/esm/{chunk-B3QK4FQY.mjs → chunk-XONG5JZ4.mjs} +2 -2
  102. package/dist/esm/{chunk-LMO74K6V.mjs → chunk-XXHW3ZT3.mjs} +2 -2
  103. package/dist/esm/{chunk-HQUUESWW.mjs → chunk-Y7F2V3R6.mjs} +2 -2
  104. package/dist/esm/{chunk-JKTVSNFQ.mjs → chunk-YHAPZP5A.mjs} +2 -2
  105. package/dist/esm/{chunk-IV3FEGJJ.mjs → chunk-ZGO2SK6F.mjs} +2 -2
  106. package/dist/esm/cli/index.mjs +1 -1
  107. package/dist/esm/client/core.mjs +1 -1
  108. package/dist/esm/client/get.mjs +1 -1
  109. package/dist/esm/client/index.mjs +1 -1
  110. package/dist/esm/client/post.mjs +1 -1
  111. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  112. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  113. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  114. package/dist/esm/core/crypto/index.mjs +1 -1
  115. package/dist/esm/core/crypto/keyless.mjs +1 -1
  116. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  117. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  118. package/dist/esm/core/crypto/proof.mjs +1 -1
  119. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  120. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  121. package/dist/esm/core/crypto/signature.mjs +1 -1
  122. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  123. package/dist/esm/core/index.mjs +1 -1
  124. package/dist/esm/index.mjs +1 -1
  125. package/dist/esm/internal/account.mjs +1 -1
  126. package/dist/esm/internal/ans.mjs +1 -1
  127. package/dist/esm/internal/coin.mjs +1 -1
  128. package/dist/esm/internal/digitalAsset.mjs +1 -1
  129. package/dist/esm/internal/event.mjs +1 -1
  130. package/dist/esm/internal/faucet.mjs +1 -1
  131. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  132. package/dist/esm/internal/general.mjs +1 -1
  133. package/dist/esm/internal/keyless.mjs +1 -1
  134. package/dist/esm/internal/object.mjs +1 -1
  135. package/dist/esm/internal/staking.mjs +1 -1
  136. package/dist/esm/internal/table.mjs +1 -1
  137. package/dist/esm/internal/transaction.mjs +1 -1
  138. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  139. package/dist/esm/internal/view.mjs +1 -1
  140. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  141. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  142. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  143. package/dist/esm/transactions/index.mjs +1 -1
  144. package/dist/esm/transactions/instances/index.mjs +1 -1
  145. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  146. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  147. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  148. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  149. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  150. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  151. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  152. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  153. package/dist/esm/transactions/management/index.mjs +1 -1
  154. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  155. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  156. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  157. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  158. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  159. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
  160. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  161. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  162. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  163. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  164. package/dist/esm/utils/index.mjs +1 -1
  165. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  166. package/dist/esm/version.d.mts +1 -1
  167. package/dist/esm/version.mjs +1 -1
  168. package/package.json +1 -1
  169. package/src/utils/apiEndpoints.ts +1 -1
  170. package/src/version.ts +1 -1
  171. package/dist/esm/chunk-UAEODDZS.mjs +0 -2
  172. /package/dist/esm/{chunk-ZF3BOH6A.mjs.map → chunk-25NSCK4Q.mjs.map} +0 -0
  173. /package/dist/esm/{chunk-RG572OEH.mjs.map → chunk-25TIHDS6.mjs.map} +0 -0
  174. /package/dist/esm/{chunk-65JGB4JK.mjs.map → chunk-2TQIU7CG.mjs.map} +0 -0
  175. /package/dist/esm/{chunk-IAPQS7TH.mjs.map → chunk-3MCYLML2.mjs.map} +0 -0
  176. /package/dist/esm/{chunk-EXCR5VKV.mjs.map → chunk-3YKAGVHZ.mjs.map} +0 -0
  177. /package/dist/esm/{chunk-EDI5UVKO.mjs.map → chunk-46D5QX3G.mjs.map} +0 -0
  178. /package/dist/esm/{chunk-VNTZZ7AM.mjs.map → chunk-5655UVIK.mjs.map} +0 -0
  179. /package/dist/esm/{chunk-LYEUGID7.mjs.map → chunk-6RZZIOGH.mjs.map} +0 -0
  180. /package/dist/esm/{chunk-SS4IPKAI.mjs.map → chunk-7V6DEA7G.mjs.map} +0 -0
  181. /package/dist/esm/{chunk-OGHATIRT.mjs.map → chunk-7ZLBJUVZ.mjs.map} +0 -0
  182. /package/dist/esm/{chunk-5GD2TVJW.mjs.map → chunk-AFOPNDOJ.mjs.map} +0 -0
  183. /package/dist/esm/{chunk-6ZRARME6.mjs.map → chunk-B2CXRZL5.mjs.map} +0 -0
  184. /package/dist/esm/{chunk-U4MIJ2SL.mjs.map → chunk-B6M7QBUO.mjs.map} +0 -0
  185. /package/dist/esm/{chunk-CKQQJXQL.mjs.map → chunk-BD6BJETG.mjs.map} +0 -0
  186. /package/dist/esm/{chunk-UH7ADIR7.mjs.map → chunk-BKEJMQQ6.mjs.map} +0 -0
  187. /package/dist/esm/{chunk-JVVK4K6H.mjs.map → chunk-BRFHAO2Y.mjs.map} +0 -0
  188. /package/dist/esm/{chunk-TJI233SP.mjs.map → chunk-CPPBQDHB.mjs.map} +0 -0
  189. /package/dist/esm/{chunk-BJIICNRF.mjs.map → chunk-CVDR5SJR.mjs.map} +0 -0
  190. /package/dist/esm/{chunk-G7EILN6D.mjs.map → chunk-DAJOX4PL.mjs.map} +0 -0
  191. /package/dist/esm/{chunk-4D6EDVZW.mjs.map → chunk-DAXKRXRK.mjs.map} +0 -0
  192. /package/dist/esm/{chunk-XD4E5FEG.mjs.map → chunk-DF4WKSTK.mjs.map} +0 -0
  193. /package/dist/esm/{chunk-AN37GM4N.mjs.map → chunk-ECWOLU5T.mjs.map} +0 -0
  194. /package/dist/esm/{chunk-3RBIEWVC.mjs.map → chunk-EV2USF7B.mjs.map} +0 -0
  195. /package/dist/esm/{chunk-MJ7K6MUZ.mjs.map → chunk-EWZ2M5BW.mjs.map} +0 -0
  196. /package/dist/esm/{chunk-ZRFOTNLQ.mjs.map → chunk-FRGXKOU5.mjs.map} +0 -0
  197. /package/dist/esm/{chunk-YFQSFUKY.mjs.map → chunk-G7MWTE2J.mjs.map} +0 -0
  198. /package/dist/esm/{chunk-QB4XTGDH.mjs.map → chunk-GFGX3QDP.mjs.map} +0 -0
  199. /package/dist/esm/{chunk-NFLXGKHO.mjs.map → chunk-GGR3P2TG.mjs.map} +0 -0
  200. /package/dist/esm/{chunk-MGTUMRQW.mjs.map → chunk-HSPBA2TZ.mjs.map} +0 -0
  201. /package/dist/esm/{chunk-WXHVXW5G.mjs.map → chunk-IYQISVDX.mjs.map} +0 -0
  202. /package/dist/esm/{chunk-CHPQXBMJ.mjs.map → chunk-K2O24YLZ.mjs.map} +0 -0
  203. /package/dist/esm/{chunk-SYTI5QO7.mjs.map → chunk-KXBIA4KR.mjs.map} +0 -0
  204. /package/dist/esm/{chunk-Z34TLNCN.mjs.map → chunk-KYSDF3CA.mjs.map} +0 -0
  205. /package/dist/esm/{chunk-DLKFZIMC.mjs.map → chunk-L5NY7TMI.mjs.map} +0 -0
  206. /package/dist/esm/{chunk-7KWFE3OU.mjs.map → chunk-LDFTE4MM.mjs.map} +0 -0
  207. /package/dist/esm/{chunk-4BMEOXWL.mjs.map → chunk-LG3DAAPD.mjs.map} +0 -0
  208. /package/dist/esm/{chunk-7YXNZTCS.mjs.map → chunk-LGD5KU56.mjs.map} +0 -0
  209. /package/dist/esm/{chunk-WFXL7LIC.mjs.map → chunk-MEWFJJJN.mjs.map} +0 -0
  210. /package/dist/esm/{chunk-R7FVBWBJ.mjs.map → chunk-MO4IZXLK.mjs.map} +0 -0
  211. /package/dist/esm/{chunk-FRG5RXIG.mjs.map → chunk-N5JNKD5F.mjs.map} +0 -0
  212. /package/dist/esm/{chunk-DWPMDONI.mjs.map → chunk-NH2S6SB2.mjs.map} +0 -0
  213. /package/dist/esm/{chunk-OJL36Q4H.mjs.map → chunk-NMD45OTM.mjs.map} +0 -0
  214. /package/dist/esm/{chunk-G7NFBUOF.mjs.map → chunk-NNRAQP36.mjs.map} +0 -0
  215. /package/dist/esm/{chunk-6HOEJLTL.mjs.map → chunk-OY2IX7HW.mjs.map} +0 -0
  216. /package/dist/esm/{chunk-RQNQ5TUX.mjs.map → chunk-PNXUYOYI.mjs.map} +0 -0
  217. /package/dist/esm/{chunk-E6O72G24.mjs.map → chunk-PUZ25PTD.mjs.map} +0 -0
  218. /package/dist/esm/{chunk-ZGOO4E6O.mjs.map → chunk-QCUFTD7K.mjs.map} +0 -0
  219. /package/dist/esm/{chunk-33DMJ7SF.mjs.map → chunk-QLN2URFX.mjs.map} +0 -0
  220. /package/dist/esm/{chunk-CG7SPTMT.mjs.map → chunk-SAPUZZEU.mjs.map} +0 -0
  221. /package/dist/esm/{chunk-E65E4RJE.mjs.map → chunk-SR24OGHJ.mjs.map} +0 -0
  222. /package/dist/esm/{chunk-MHRQHVM3.mjs.map → chunk-STGYDB5E.mjs.map} +0 -0
  223. /package/dist/esm/{chunk-TPCG5W2G.mjs.map → chunk-SWHLSREF.mjs.map} +0 -0
  224. /package/dist/esm/{chunk-NTTZKATR.mjs.map → chunk-TL7DR54X.mjs.map} +0 -0
  225. /package/dist/esm/{chunk-5BUJ6N72.mjs.map → chunk-TMW2HIXC.mjs.map} +0 -0
  226. /package/dist/esm/{chunk-T4L7U65D.mjs.map → chunk-TS3PYRAT.mjs.map} +0 -0
  227. /package/dist/esm/{chunk-XLLHYNH7.mjs.map → chunk-TVFIUUVY.mjs.map} +0 -0
  228. /package/dist/esm/{chunk-TVIQLBVA.mjs.map → chunk-U67PFBTL.mjs.map} +0 -0
  229. /package/dist/esm/{chunk-YRZQQJCW.mjs.map → chunk-WS4RPKL6.mjs.map} +0 -0
  230. /package/dist/esm/{chunk-D72R4A35.mjs.map → chunk-WWZ3METZ.mjs.map} +0 -0
  231. /package/dist/esm/{chunk-EHANMHHZ.mjs.map → chunk-X4KEZTUQ.mjs.map} +0 -0
  232. /package/dist/esm/{chunk-UO5WQIIP.mjs.map → chunk-XH7YKEYR.mjs.map} +0 -0
  233. /package/dist/esm/{chunk-BYZKUWCV.mjs.map → chunk-XK3JFCP3.mjs.map} +0 -0
  234. /package/dist/esm/{chunk-B3QK4FQY.mjs.map → chunk-XONG5JZ4.mjs.map} +0 -0
  235. /package/dist/esm/{chunk-LMO74K6V.mjs.map → chunk-XXHW3ZT3.mjs.map} +0 -0
  236. /package/dist/esm/{chunk-HQUUESWW.mjs.map → chunk-Y7F2V3R6.mjs.map} +0 -0
  237. /package/dist/esm/{chunk-JKTVSNFQ.mjs.map → chunk-YHAPZP5A.mjs.map} +0 -0
  238. /package/dist/esm/{chunk-IV3FEGJJ.mjs.map → chunk-ZGO2SK6F.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-DWPMDONI.mjs";import"../../chunk-IHYTP2EW.mjs";import"../../chunk-DLKFZIMC.mjs";import"../../chunk-YRZQQJCW.mjs";import"../../chunk-U6Z4FNB7.mjs";import"../../chunk-D72R4A35.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-WFXL7LIC.mjs";import"../../chunk-G7NFBUOF.mjs";import"../../chunk-PKXEB7XP.mjs";import"../../chunk-EXCR5VKV.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-UH7ADIR7.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-LYEUGID7.mjs";import"../../chunk-JKTVSNFQ.mjs";import"../../chunk-EDI5UVKO.mjs";import"../../chunk-CHPQXBMJ.mjs";import"../../chunk-ZRFOTNLQ.mjs";import"../../chunk-U4MIJ2SL.mjs";import"../../chunk-Z34TLNCN.mjs";import"../../chunk-SYTI5QO7.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-NTTZKATR.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-B3QK4FQY.mjs";import"../../chunk-RNTXQYJQ.mjs";import"../../chunk-BJIICNRF.mjs";import"../../chunk-VNTZZ7AM.mjs";import"../../chunk-65JGB4JK.mjs";import"../../chunk-QDIKOQRK.mjs";import"../../chunk-LXLISEQ4.mjs";import"../../chunk-QIW56MUH.mjs";import"../../chunk-E37YRKWK.mjs";import"../../chunk-FRG5RXIG.mjs";import"../../chunk-5BUJ6N72.mjs";import"../../chunk-6ZRARME6.mjs";import"../../chunk-MHRQHVM3.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WP7WF54Q.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-CKQQJXQL.mjs";import"../../chunk-NFLXGKHO.mjs";import"../../chunk-TVIQLBVA.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-7YXNZTCS.mjs";import"../../chunk-RQNQ5TUX.mjs";import"../../chunk-4BMEOXWL.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-M2QV232A.mjs";import"../../chunk-IAPQS7TH.mjs";import"../../chunk-G7EILN6D.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-IMGLHDIA.mjs";import"../../chunk-BF4ZE37Q.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-KA6FZNWP.mjs";import"../../chunk-QPP6BX53.mjs";import"../../chunk-R7FVBWBJ.mjs";import"../../chunk-QB4XTGDH.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-3RBIEWVC.mjs";import"../../chunk-SS4IPKAI.mjs";import"../../chunk-E6O72G24.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-CCMHWJ3Q.mjs";import"../../chunk-YJCZU6PR.mjs";import"../../chunk-MS4MRLGA.mjs";import"../../chunk-6QGVRNV6.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-HPZ2S4FE.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-TDGQGILY.mjs";import"../../chunk-UAEODDZS.mjs";import"../../chunk-GY6LFCB2.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as TransactionManagement};
1
+ import{a}from"../../chunk-NH2S6SB2.mjs";import"../../chunk-IHYTP2EW.mjs";import"../../chunk-L5NY7TMI.mjs";import"../../chunk-WS4RPKL6.mjs";import"../../chunk-U6Z4FNB7.mjs";import"../../chunk-WWZ3METZ.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-MEWFJJJN.mjs";import"../../chunk-NNRAQP36.mjs";import"../../chunk-3YKAGVHZ.mjs";import"../../chunk-PKXEB7XP.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-BKEJMQQ6.mjs";import"../../chunk-STGYDB5E.mjs";import"../../chunk-MO4IZXLK.mjs";import"../../chunk-GFGX3QDP.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-46D5QX3G.mjs";import"../../chunk-FRGXKOU5.mjs";import"../../chunk-B6M7QBUO.mjs";import"../../chunk-KYSDF3CA.mjs";import"../../chunk-6RZZIOGH.mjs";import"../../chunk-YHAPZP5A.mjs";import"../../chunk-K2O24YLZ.mjs";import"../../chunk-KXBIA4KR.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-XONG5JZ4.mjs";import"../../chunk-RNTXQYJQ.mjs";import"../../chunk-CVDR5SJR.mjs";import"../../chunk-TL7DR54X.mjs";import"../../chunk-5655UVIK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-2TQIU7CG.mjs";import"../../chunk-QDIKOQRK.mjs";import"../../chunk-QIW56MUH.mjs";import"../../chunk-LXLISEQ4.mjs";import"../../chunk-E37YRKWK.mjs";import"../../chunk-N5JNKD5F.mjs";import"../../chunk-TMW2HIXC.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WP7WF54Q.mjs";import"../../chunk-B2CXRZL5.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-BD6BJETG.mjs";import"../../chunk-GGR3P2TG.mjs";import"../../chunk-U67PFBTL.mjs";import"../../chunk-LGD5KU56.mjs";import"../../chunk-PNXUYOYI.mjs";import"../../chunk-LG3DAAPD.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-M2QV232A.mjs";import"../../chunk-3MCYLML2.mjs";import"../../chunk-DAJOX4PL.mjs";import"../../chunk-IMGLHDIA.mjs";import"../../chunk-BF4ZE37Q.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-KA6FZNWP.mjs";import"../../chunk-QPP6BX53.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-EV2USF7B.mjs";import"../../chunk-7V6DEA7G.mjs";import"../../chunk-PUZ25PTD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-CCMHWJ3Q.mjs";import"../../chunk-6QGVRNV6.mjs";import"../../chunk-YJCZU6PR.mjs";import"../../chunk-MS4MRLGA.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-TDGQGILY.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-HPZ2S4FE.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-555I4YHP.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as TransactionManagement};
2
2
  //# sourceMappingURL=management.mjs.map
@@ -1,2 +1,2 @@
1
- import{e as o}from"../../chunk-D72R4A35.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-WFXL7LIC.mjs";import"../../chunk-G7NFBUOF.mjs";import"../../chunk-PKXEB7XP.mjs";import"../../chunk-EXCR5VKV.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-UH7ADIR7.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-LYEUGID7.mjs";import"../../chunk-JKTVSNFQ.mjs";import"../../chunk-EDI5UVKO.mjs";import"../../chunk-CHPQXBMJ.mjs";import"../../chunk-ZRFOTNLQ.mjs";import"../../chunk-U4MIJ2SL.mjs";import"../../chunk-Z34TLNCN.mjs";import"../../chunk-SYTI5QO7.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-NTTZKATR.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-B3QK4FQY.mjs";import"../../chunk-RNTXQYJQ.mjs";import"../../chunk-BJIICNRF.mjs";import"../../chunk-VNTZZ7AM.mjs";import"../../chunk-65JGB4JK.mjs";import"../../chunk-QDIKOQRK.mjs";import"../../chunk-LXLISEQ4.mjs";import"../../chunk-QIW56MUH.mjs";import"../../chunk-E37YRKWK.mjs";import"../../chunk-FRG5RXIG.mjs";import"../../chunk-5BUJ6N72.mjs";import"../../chunk-6ZRARME6.mjs";import"../../chunk-MHRQHVM3.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WP7WF54Q.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-CKQQJXQL.mjs";import"../../chunk-NFLXGKHO.mjs";import"../../chunk-TVIQLBVA.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-7YXNZTCS.mjs";import"../../chunk-RQNQ5TUX.mjs";import"../../chunk-4BMEOXWL.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-M2QV232A.mjs";import"../../chunk-IAPQS7TH.mjs";import"../../chunk-G7EILN6D.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-IMGLHDIA.mjs";import"../../chunk-BF4ZE37Q.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-KA6FZNWP.mjs";import"../../chunk-QPP6BX53.mjs";import"../../chunk-R7FVBWBJ.mjs";import"../../chunk-QB4XTGDH.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-3RBIEWVC.mjs";import"../../chunk-SS4IPKAI.mjs";import"../../chunk-E6O72G24.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-CCMHWJ3Q.mjs";import"../../chunk-YJCZU6PR.mjs";import"../../chunk-MS4MRLGA.mjs";import"../../chunk-6QGVRNV6.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-HPZ2S4FE.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-TDGQGILY.mjs";import"../../chunk-UAEODDZS.mjs";import"../../chunk-GY6LFCB2.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FVA2OPG4.mjs";var a=class{constructor(n){this.config=n}transaction(n){return o({...n})}transactionAsFeePayer(n){let{signer:r,transaction:t}=n;if(!t.feePayerAddress)throw new Error(`Transaction ${t} is not a Fee Payer transaction`);return t.feePayerAddress=r.accountAddress,o({signer:r,transaction:t})}};export{a as Sign};
1
+ import{e as o}from"../../chunk-WWZ3METZ.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-MEWFJJJN.mjs";import"../../chunk-NNRAQP36.mjs";import"../../chunk-3YKAGVHZ.mjs";import"../../chunk-PKXEB7XP.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-BKEJMQQ6.mjs";import"../../chunk-STGYDB5E.mjs";import"../../chunk-MO4IZXLK.mjs";import"../../chunk-GFGX3QDP.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-46D5QX3G.mjs";import"../../chunk-FRGXKOU5.mjs";import"../../chunk-B6M7QBUO.mjs";import"../../chunk-KYSDF3CA.mjs";import"../../chunk-6RZZIOGH.mjs";import"../../chunk-YHAPZP5A.mjs";import"../../chunk-K2O24YLZ.mjs";import"../../chunk-KXBIA4KR.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-XONG5JZ4.mjs";import"../../chunk-RNTXQYJQ.mjs";import"../../chunk-CVDR5SJR.mjs";import"../../chunk-TL7DR54X.mjs";import"../../chunk-5655UVIK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-2TQIU7CG.mjs";import"../../chunk-QDIKOQRK.mjs";import"../../chunk-QIW56MUH.mjs";import"../../chunk-LXLISEQ4.mjs";import"../../chunk-E37YRKWK.mjs";import"../../chunk-N5JNKD5F.mjs";import"../../chunk-TMW2HIXC.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WP7WF54Q.mjs";import"../../chunk-B2CXRZL5.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-BD6BJETG.mjs";import"../../chunk-GGR3P2TG.mjs";import"../../chunk-U67PFBTL.mjs";import"../../chunk-LGD5KU56.mjs";import"../../chunk-PNXUYOYI.mjs";import"../../chunk-LG3DAAPD.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-M2QV232A.mjs";import"../../chunk-3MCYLML2.mjs";import"../../chunk-DAJOX4PL.mjs";import"../../chunk-IMGLHDIA.mjs";import"../../chunk-BF4ZE37Q.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-KA6FZNWP.mjs";import"../../chunk-QPP6BX53.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-EV2USF7B.mjs";import"../../chunk-7V6DEA7G.mjs";import"../../chunk-PUZ25PTD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-CCMHWJ3Q.mjs";import"../../chunk-6QGVRNV6.mjs";import"../../chunk-YJCZU6PR.mjs";import"../../chunk-MS4MRLGA.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-TDGQGILY.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-HPZ2S4FE.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-555I4YHP.mjs";import"../../chunk-FVA2OPG4.mjs";var a=class{constructor(n){this.config=n}transaction(n){return o({...n})}transactionAsFeePayer(n){let{signer:r,transaction:t}=n;if(!t.feePayerAddress)throw new Error(`Transaction ${t} is not a Fee Payer transaction`);return t.feePayerAddress=r.accountAddress,o({signer:r,transaction:t})}};export{a as Sign};
2
2
  //# sourceMappingURL=sign.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-JVVK4K6H.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-D72R4A35.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-WFXL7LIC.mjs";import"../../chunk-G7NFBUOF.mjs";import"../../chunk-PKXEB7XP.mjs";import"../../chunk-EXCR5VKV.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-UH7ADIR7.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-LYEUGID7.mjs";import"../../chunk-JKTVSNFQ.mjs";import"../../chunk-EDI5UVKO.mjs";import"../../chunk-CHPQXBMJ.mjs";import"../../chunk-ZRFOTNLQ.mjs";import"../../chunk-U4MIJ2SL.mjs";import"../../chunk-Z34TLNCN.mjs";import"../../chunk-SYTI5QO7.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-NTTZKATR.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-B3QK4FQY.mjs";import"../../chunk-RNTXQYJQ.mjs";import"../../chunk-BJIICNRF.mjs";import"../../chunk-VNTZZ7AM.mjs";import"../../chunk-65JGB4JK.mjs";import"../../chunk-QDIKOQRK.mjs";import"../../chunk-LXLISEQ4.mjs";import"../../chunk-QIW56MUH.mjs";import"../../chunk-E37YRKWK.mjs";import"../../chunk-FRG5RXIG.mjs";import"../../chunk-5BUJ6N72.mjs";import"../../chunk-6ZRARME6.mjs";import"../../chunk-MHRQHVM3.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WP7WF54Q.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-CKQQJXQL.mjs";import"../../chunk-NFLXGKHO.mjs";import"../../chunk-TVIQLBVA.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-7YXNZTCS.mjs";import"../../chunk-RQNQ5TUX.mjs";import"../../chunk-4BMEOXWL.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-M2QV232A.mjs";import"../../chunk-IAPQS7TH.mjs";import"../../chunk-G7EILN6D.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-IMGLHDIA.mjs";import"../../chunk-BF4ZE37Q.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-KA6FZNWP.mjs";import"../../chunk-QPP6BX53.mjs";import"../../chunk-R7FVBWBJ.mjs";import"../../chunk-QB4XTGDH.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-3RBIEWVC.mjs";import"../../chunk-SS4IPKAI.mjs";import"../../chunk-E6O72G24.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-CCMHWJ3Q.mjs";import"../../chunk-YJCZU6PR.mjs";import"../../chunk-MS4MRLGA.mjs";import"../../chunk-6QGVRNV6.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-HPZ2S4FE.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-TDGQGILY.mjs";import"../../chunk-UAEODDZS.mjs";import"../../chunk-GY6LFCB2.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Simulate};
1
+ import{a}from"../../chunk-BRFHAO2Y.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-WWZ3METZ.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-MEWFJJJN.mjs";import"../../chunk-NNRAQP36.mjs";import"../../chunk-3YKAGVHZ.mjs";import"../../chunk-PKXEB7XP.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-BKEJMQQ6.mjs";import"../../chunk-STGYDB5E.mjs";import"../../chunk-MO4IZXLK.mjs";import"../../chunk-GFGX3QDP.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-46D5QX3G.mjs";import"../../chunk-FRGXKOU5.mjs";import"../../chunk-B6M7QBUO.mjs";import"../../chunk-KYSDF3CA.mjs";import"../../chunk-6RZZIOGH.mjs";import"../../chunk-YHAPZP5A.mjs";import"../../chunk-K2O24YLZ.mjs";import"../../chunk-KXBIA4KR.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-XONG5JZ4.mjs";import"../../chunk-RNTXQYJQ.mjs";import"../../chunk-CVDR5SJR.mjs";import"../../chunk-TL7DR54X.mjs";import"../../chunk-5655UVIK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-2TQIU7CG.mjs";import"../../chunk-QDIKOQRK.mjs";import"../../chunk-QIW56MUH.mjs";import"../../chunk-LXLISEQ4.mjs";import"../../chunk-E37YRKWK.mjs";import"../../chunk-N5JNKD5F.mjs";import"../../chunk-TMW2HIXC.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WP7WF54Q.mjs";import"../../chunk-B2CXRZL5.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-BD6BJETG.mjs";import"../../chunk-GGR3P2TG.mjs";import"../../chunk-U67PFBTL.mjs";import"../../chunk-LGD5KU56.mjs";import"../../chunk-PNXUYOYI.mjs";import"../../chunk-LG3DAAPD.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-M2QV232A.mjs";import"../../chunk-3MCYLML2.mjs";import"../../chunk-DAJOX4PL.mjs";import"../../chunk-IMGLHDIA.mjs";import"../../chunk-BF4ZE37Q.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-KA6FZNWP.mjs";import"../../chunk-QPP6BX53.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-EV2USF7B.mjs";import"../../chunk-7V6DEA7G.mjs";import"../../chunk-PUZ25PTD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-CCMHWJ3Q.mjs";import"../../chunk-6QGVRNV6.mjs";import"../../chunk-YJCZU6PR.mjs";import"../../chunk-MS4MRLGA.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-TDGQGILY.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-HPZ2S4FE.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-555I4YHP.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Simulate};
2
2
  //# sourceMappingURL=simulate.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-RG572OEH.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-D72R4A35.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-WFXL7LIC.mjs";import"../../chunk-G7NFBUOF.mjs";import"../../chunk-PKXEB7XP.mjs";import"../../chunk-EXCR5VKV.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-UH7ADIR7.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-LYEUGID7.mjs";import"../../chunk-JKTVSNFQ.mjs";import"../../chunk-EDI5UVKO.mjs";import"../../chunk-CHPQXBMJ.mjs";import"../../chunk-ZRFOTNLQ.mjs";import"../../chunk-U4MIJ2SL.mjs";import"../../chunk-Z34TLNCN.mjs";import"../../chunk-SYTI5QO7.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-NTTZKATR.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-B3QK4FQY.mjs";import"../../chunk-RNTXQYJQ.mjs";import"../../chunk-BJIICNRF.mjs";import"../../chunk-VNTZZ7AM.mjs";import"../../chunk-65JGB4JK.mjs";import"../../chunk-QDIKOQRK.mjs";import"../../chunk-LXLISEQ4.mjs";import"../../chunk-QIW56MUH.mjs";import"../../chunk-E37YRKWK.mjs";import"../../chunk-FRG5RXIG.mjs";import"../../chunk-5BUJ6N72.mjs";import"../../chunk-6ZRARME6.mjs";import"../../chunk-MHRQHVM3.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WP7WF54Q.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-CKQQJXQL.mjs";import"../../chunk-NFLXGKHO.mjs";import"../../chunk-TVIQLBVA.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-7YXNZTCS.mjs";import"../../chunk-RQNQ5TUX.mjs";import"../../chunk-4BMEOXWL.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-M2QV232A.mjs";import"../../chunk-IAPQS7TH.mjs";import"../../chunk-G7EILN6D.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-IMGLHDIA.mjs";import"../../chunk-BF4ZE37Q.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-KA6FZNWP.mjs";import"../../chunk-QPP6BX53.mjs";import"../../chunk-R7FVBWBJ.mjs";import"../../chunk-QB4XTGDH.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-3RBIEWVC.mjs";import"../../chunk-SS4IPKAI.mjs";import"../../chunk-E6O72G24.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-CCMHWJ3Q.mjs";import"../../chunk-YJCZU6PR.mjs";import"../../chunk-MS4MRLGA.mjs";import"../../chunk-6QGVRNV6.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-HPZ2S4FE.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-TDGQGILY.mjs";import"../../chunk-UAEODDZS.mjs";import"../../chunk-GY6LFCB2.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Submit};
1
+ import{a}from"../../chunk-25TIHDS6.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-WWZ3METZ.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-MEWFJJJN.mjs";import"../../chunk-NNRAQP36.mjs";import"../../chunk-3YKAGVHZ.mjs";import"../../chunk-PKXEB7XP.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-BKEJMQQ6.mjs";import"../../chunk-STGYDB5E.mjs";import"../../chunk-MO4IZXLK.mjs";import"../../chunk-GFGX3QDP.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-46D5QX3G.mjs";import"../../chunk-FRGXKOU5.mjs";import"../../chunk-B6M7QBUO.mjs";import"../../chunk-KYSDF3CA.mjs";import"../../chunk-6RZZIOGH.mjs";import"../../chunk-YHAPZP5A.mjs";import"../../chunk-K2O24YLZ.mjs";import"../../chunk-KXBIA4KR.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-XONG5JZ4.mjs";import"../../chunk-RNTXQYJQ.mjs";import"../../chunk-CVDR5SJR.mjs";import"../../chunk-TL7DR54X.mjs";import"../../chunk-5655UVIK.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-2TQIU7CG.mjs";import"../../chunk-QDIKOQRK.mjs";import"../../chunk-QIW56MUH.mjs";import"../../chunk-LXLISEQ4.mjs";import"../../chunk-E37YRKWK.mjs";import"../../chunk-N5JNKD5F.mjs";import"../../chunk-TMW2HIXC.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WP7WF54Q.mjs";import"../../chunk-B2CXRZL5.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-BD6BJETG.mjs";import"../../chunk-GGR3P2TG.mjs";import"../../chunk-U67PFBTL.mjs";import"../../chunk-LGD5KU56.mjs";import"../../chunk-PNXUYOYI.mjs";import"../../chunk-LG3DAAPD.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-M2QV232A.mjs";import"../../chunk-3MCYLML2.mjs";import"../../chunk-DAJOX4PL.mjs";import"../../chunk-IMGLHDIA.mjs";import"../../chunk-BF4ZE37Q.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-KA6FZNWP.mjs";import"../../chunk-QPP6BX53.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-EV2USF7B.mjs";import"../../chunk-7V6DEA7G.mjs";import"../../chunk-PUZ25PTD.mjs";import"../../chunk-HGLO5LDS.mjs";import"../../chunk-BSUYPXRD.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-CCMHWJ3Q.mjs";import"../../chunk-6QGVRNV6.mjs";import"../../chunk-YJCZU6PR.mjs";import"../../chunk-MS4MRLGA.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-TDGQGILY.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-HPZ2S4FE.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-UAL27G6B.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-555I4YHP.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Submit};
2
2
  //# sourceMappingURL=submit.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-MJ7K6MUZ.mjs";import"../chunk-R7FVBWBJ.mjs";import"../chunk-QB4XTGDH.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-3RBIEWVC.mjs";import"../chunk-SS4IPKAI.mjs";import"../chunk-E6O72G24.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-CCMHWJ3Q.mjs";import"../chunk-YJCZU6PR.mjs";import"../chunk-MS4MRLGA.mjs";import"../chunk-6QGVRNV6.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-44GYWUSH.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-HPZ2S4FE.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-TDGQGILY.mjs";import"../chunk-UAEODDZS.mjs";import"../chunk-GY6LFCB2.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-FVA2OPG4.mjs";export{a as waitForIndexerOnVersion};
1
+ import{a}from"../chunk-EWZ2M5BW.mjs";import"../chunk-MO4IZXLK.mjs";import"../chunk-GFGX3QDP.mjs";import"../chunk-VHNX2NUR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-EV2USF7B.mjs";import"../chunk-7V6DEA7G.mjs";import"../chunk-PUZ25PTD.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BSUYPXRD.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-CCMHWJ3Q.mjs";import"../chunk-6QGVRNV6.mjs";import"../chunk-YJCZU6PR.mjs";import"../chunk-MS4MRLGA.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-TDGQGILY.mjs";import"../chunk-44GYWUSH.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-HPZ2S4FE.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-UAL27G6B.mjs";import"../chunk-SCHZ67F3.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-555I4YHP.mjs";import"../chunk-FVA2OPG4.mjs";export{a as waitForIndexerOnVersion};
2
2
  //# sourceMappingURL=utils.mjs.map
@@ -1,2 +1,2 @@
1
- import"../chunk-FZY4PMEE.mjs";import{a as p,b as q,c as r,d as s}from"../chunk-CCMHWJ3Q.mjs";import{a as h}from"../chunk-YJCZU6PR.mjs";import{a as g}from"../chunk-MS4MRLGA.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n,g as o}from"../chunk-6QGVRNV6.mjs";import{a}from"../chunk-KEYAPEAX.mjs";import"../chunk-44GYWUSH.mjs";import"../chunk-4WPQQPUF.mjs";import{a as b,b as c,c as d,d as e,e as f}from"../chunk-HPZ2S4FE.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-FVA2OPG4.mjs";export{i as Bool,a as Deserializer,h as EntryFunctionBytes,g as FixedBytes,s as MoveOption,r as MoveString,p as MoveVector,b as Serializable,q as Serialized,c as Serializer,n as U128,k as U16,o as U256,l as U32,m as U64,j as U8,d as ensureBoolean,e as outOfRangeErrorMessage,f as validateNumberInRange};
1
+ import"../chunk-FZY4PMEE.mjs";import{a as p,b as q,c as r,d as s}from"../chunk-CCMHWJ3Q.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n,g as o}from"../chunk-6QGVRNV6.mjs";import{a as h}from"../chunk-YJCZU6PR.mjs";import{a as g}from"../chunk-MS4MRLGA.mjs";import{a}from"../chunk-KEYAPEAX.mjs";import"../chunk-44GYWUSH.mjs";import"../chunk-4WPQQPUF.mjs";import{a as b,b as c,c as d,d as e,e as f}from"../chunk-HPZ2S4FE.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-FVA2OPG4.mjs";export{i as Bool,a as Deserializer,h as EntryFunctionBytes,g as FixedBytes,s as MoveOption,r as MoveString,p as MoveVector,b as Serializable,q as Serialized,c as Serializer,n as U128,k as U16,o as U256,l as U32,m as U64,j as U8,d as ensureBoolean,e as outOfRangeErrorMessage,f as validateNumberInRange};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o}from"./chunk-IV3FEGJJ.mjs";var t=class{constructor(n){this.config=n}async transferCoinTransaction(n){return o({aptosConfig:this.config,...n})}};export{t as a};
2
- //# sourceMappingURL=chunk-ZF3BOH6A.mjs.map
1
+ import{a as o}from"./chunk-ZGO2SK6F.mjs";var t=class{constructor(n){this.config=n}async transferCoinTransaction(n){return o({aptosConfig:this.config,...n})}};export{t as a};
2
+ //# sourceMappingURL=chunk-25NSCK4Q.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-6EMN3BOV.mjs";import{h as a}from"./chunk-D72R4A35.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var n=class{constructor(t){this.config=t}async simple(t){return a({aptosConfig:this.config,...t})}async multiAgent(t){return a({aptosConfig:this.config,...t})}};o([i],n.prototype,"simple",1),o([i],n.prototype,"multiAgent",1);export{n as a};
2
- //# sourceMappingURL=chunk-RG572OEH.mjs.map
1
+ import{a as i}from"./chunk-6EMN3BOV.mjs";import{h as a}from"./chunk-WWZ3METZ.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var n=class{constructor(t){this.config=t}async simple(t){return a({aptosConfig:this.config,...t})}async multiAgent(t){return a({aptosConfig:this.config,...t})}};o([i],n.prototype,"simple",1),o([i],n.prototype,"multiAgent",1);export{n as a};
2
+ //# sourceMappingURL=chunk-25TIHDS6.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as m}from"./chunk-QDIKOQRK.mjs";import{a as g}from"./chunk-QIW56MUH.mjs";import{a as p}from"./chunk-E37YRKWK.mjs";import{b as y}from"./chunk-QPP6BX53.mjs";import{a as v,b as M}from"./chunk-CCMHWJ3Q.mjs";import{a as S}from"./chunk-YJCZU6PR.mjs";import{a as F,b as d,c as T,d as x,e as E,f as _,g as w}from"./chunk-6QGVRNV6.mjs";import{a as u}from"./chunk-HPZ2S4FE.mjs";function I(t){let e=t.deserializeUleb128AsU32();switch(e){case 0:return d.deserialize(t);case 1:return E.deserialize(t);case 2:return _.deserialize(t);case 3:return y.deserialize(t);case 4:return v.deserialize(t,d);case 5:return F.deserialize(t);case 6:return T.deserialize(t);case 7:return x.deserialize(t);case 8:return w.deserialize(t);case 9:return M.deserialize(t);default:throw new Error(`Unknown variant index for ScriptTransactionArgument: ${e}`)}}var a=class extends u{static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return A.load(e);case 2:return z.load(e);case 3:return h.load(e);default:throw new Error(`Unknown variant index for TransactionPayload: ${r}`)}}},A=class t extends a{constructor(e){super(),this.script=e}serialize(e){e.serializeU32AsUleb128(0),this.script.serialize(e)}static load(e){let r=U.deserialize(e);return new t(r)}},z=class t extends a{constructor(e){super(),this.entryFunction=e}serialize(e){e.serializeU32AsUleb128(2),this.entryFunction.serialize(e)}static load(e){let r=l.deserialize(e);return new t(r)}},h=class t extends a{constructor(e){super(),this.multiSig=e}serialize(e){e.serializeU32AsUleb128(3),this.multiSig.serialize(e)}static load(e){let r=f.deserialize(e);return new t(r)}},l=class t{constructor(e,r,i,n){this.module_name=e,this.function_name=r,this.type_args=i,this.args=n}static build(e,r,i,n){return new t(g.fromStr(e),new p(r),i,n)}serialize(e){this.module_name.serialize(e),this.function_name.serialize(e),e.serializeVector(this.type_args),e.serializeU32AsUleb128(this.args.length),this.args.forEach(r=>{r.serializeForEntryFunction(e)})}static deserialize(e){let r=g.deserialize(e),i=p.deserialize(e),n=e.deserializeVector(m),o=e.deserializeUleb128AsU32(),s=new Array;for(let c=0;c<o;c+=1){let B=e.deserializeUleb128AsU32(),D=S.deserialize(e,B);s.push(D)}return new t(r,i,n,s)}},U=class t{constructor(e,r,i){this.bytecode=e,this.type_args=r,this.args=i}serialize(e){e.serializeBytes(this.bytecode),e.serializeVector(this.type_args),e.serializeU32AsUleb128(this.args.length),this.args.forEach(r=>{r.serializeForScriptFunction(e)})}static deserialize(e){let r=e.deserializeBytes(),i=e.deserializeVector(m),n=e.deserializeUleb128AsU32(),o=new Array;for(let s=0;s<n;s+=1){let c=I(e);o.push(c)}return new t(r,i,o)}},f=class t{constructor(e,r){this.multisig_address=e,this.transaction_payload=r}serialize(e){this.multisig_address.serialize(e),this.transaction_payload===void 0?e.serializeBool(!1):(e.serializeBool(!0),this.transaction_payload.serialize(e))}static deserialize(e){let r=y.deserialize(e),i=e.deserializeBool(),n;return i&&(n=b.deserialize(e)),new t(r,n)}},b=class t extends u{constructor(e){super(),this.transaction_payload=e}serialize(e){e.serializeU32AsUleb128(0),this.transaction_payload.serialize(e)}static deserialize(e){return e.deserializeUleb128AsU32(),new t(l.deserialize(e))}};export{I as a,a as b,A as c,z as d,h as e,l as f,U as g,f as h,b as i};
2
- //# sourceMappingURL=chunk-65JGB4JK.mjs.map
1
+ import{a as m}from"./chunk-QDIKOQRK.mjs";import{a as g}from"./chunk-QIW56MUH.mjs";import{a as p}from"./chunk-E37YRKWK.mjs";import{b as y}from"./chunk-QPP6BX53.mjs";import{a as v,b as M}from"./chunk-CCMHWJ3Q.mjs";import{a as F,b as d,c as T,d as x,e as E,f as _,g as w}from"./chunk-6QGVRNV6.mjs";import{a as S}from"./chunk-YJCZU6PR.mjs";import{a as u}from"./chunk-HPZ2S4FE.mjs";function I(t){let e=t.deserializeUleb128AsU32();switch(e){case 0:return d.deserialize(t);case 1:return E.deserialize(t);case 2:return _.deserialize(t);case 3:return y.deserialize(t);case 4:return v.deserialize(t,d);case 5:return F.deserialize(t);case 6:return T.deserialize(t);case 7:return x.deserialize(t);case 8:return w.deserialize(t);case 9:return M.deserialize(t);default:throw new Error(`Unknown variant index for ScriptTransactionArgument: ${e}`)}}var a=class extends u{static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return A.load(e);case 2:return z.load(e);case 3:return h.load(e);default:throw new Error(`Unknown variant index for TransactionPayload: ${r}`)}}},A=class t extends a{constructor(e){super(),this.script=e}serialize(e){e.serializeU32AsUleb128(0),this.script.serialize(e)}static load(e){let r=U.deserialize(e);return new t(r)}},z=class t extends a{constructor(e){super(),this.entryFunction=e}serialize(e){e.serializeU32AsUleb128(2),this.entryFunction.serialize(e)}static load(e){let r=l.deserialize(e);return new t(r)}},h=class t extends a{constructor(e){super(),this.multiSig=e}serialize(e){e.serializeU32AsUleb128(3),this.multiSig.serialize(e)}static load(e){let r=f.deserialize(e);return new t(r)}},l=class t{constructor(e,r,i,n){this.module_name=e,this.function_name=r,this.type_args=i,this.args=n}static build(e,r,i,n){return new t(g.fromStr(e),new p(r),i,n)}serialize(e){this.module_name.serialize(e),this.function_name.serialize(e),e.serializeVector(this.type_args),e.serializeU32AsUleb128(this.args.length),this.args.forEach(r=>{r.serializeForEntryFunction(e)})}static deserialize(e){let r=g.deserialize(e),i=p.deserialize(e),n=e.deserializeVector(m),o=e.deserializeUleb128AsU32(),s=new Array;for(let c=0;c<o;c+=1){let B=e.deserializeUleb128AsU32(),D=S.deserialize(e,B);s.push(D)}return new t(r,i,n,s)}},U=class t{constructor(e,r,i){this.bytecode=e,this.type_args=r,this.args=i}serialize(e){e.serializeBytes(this.bytecode),e.serializeVector(this.type_args),e.serializeU32AsUleb128(this.args.length),this.args.forEach(r=>{r.serializeForScriptFunction(e)})}static deserialize(e){let r=e.deserializeBytes(),i=e.deserializeVector(m),n=e.deserializeUleb128AsU32(),o=new Array;for(let s=0;s<n;s+=1){let c=I(e);o.push(c)}return new t(r,i,o)}},f=class t{constructor(e,r){this.multisig_address=e,this.transaction_payload=r}serialize(e){this.multisig_address.serialize(e),this.transaction_payload===void 0?e.serializeBool(!1):(e.serializeBool(!0),this.transaction_payload.serialize(e))}static deserialize(e){let r=y.deserialize(e),i=e.deserializeBool(),n;return i&&(n=b.deserialize(e)),new t(r,n)}},b=class t extends u{constructor(e){super(),this.transaction_payload=e}serialize(e){e.serializeU32AsUleb128(0),this.transaction_payload.serialize(e)}static deserialize(e){return e.deserializeUleb128AsU32(),new t(l.deserialize(e))}};export{I as a,a as b,A as c,z as d,h as e,l as f,U as g,f as h,b as i};
2
+ //# sourceMappingURL=chunk-2TQIU7CG.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as t,d as n}from"./chunk-G7EILN6D.mjs";import{a as u}from"./chunk-IMGLHDIA.mjs";import{a as l}from"./chunk-BF4ZE37Q.mjs";import{a as s}from"./chunk-KEYAPEAX.mjs";import{b as o}from"./chunk-BCUSI3N6.mjs";var c=class i extends u{constructor(e){super();let r=e.constructor.name;switch(r){case t.name:this.publicKey=e,this.variant=0;break;default:throw new Error(`Unsupported key for EphemeralPublicKey - ${r}`)}}toUint8Array(){return this.bcsToBytes()}verifySignature(e){let{message:r,signature:a}=e;return this.publicKey.verifySignature({message:r,signature:a.signature})}serialize(e){if(this.publicKey instanceof t)e.serializeU32AsUleb128(0),this.publicKey.serialize(e);else throw new Error("Unknown public key type")}static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return new i(t.deserialize(e));default:throw new Error(`Unknown variant index for EphemeralPublicKey: ${r}`)}}static isPublicKey(e){return e instanceof i}},p=class i extends l{constructor(e){super();let r=e.constructor.name;switch(r){case n.name:this.signature=e;break;default:throw new Error(`Unsupported signature for EphemeralSignature - ${r}`)}}toUint8Array(){return this.bcsToBytes()}static fromHex(e){let r=o.fromHexInput(e),a=new s(r.toUint8Array());return i.deserialize(a)}serialize(e){if(this.signature instanceof n)e.serializeU32AsUleb128(0),this.signature.serialize(e);else throw new Error("Unknown signature type")}static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return new i(n.deserialize(e));default:throw new Error(`Unknown variant index for EphemeralSignature: ${r}`)}}};export{c as a,p as b};
2
- //# sourceMappingURL=chunk-IAPQS7TH.mjs.map
1
+ import{b as t,d as n}from"./chunk-DAJOX4PL.mjs";import{a as u}from"./chunk-IMGLHDIA.mjs";import{a as l}from"./chunk-BF4ZE37Q.mjs";import{a as s}from"./chunk-KEYAPEAX.mjs";import{b as o}from"./chunk-BCUSI3N6.mjs";var c=class i extends u{constructor(e){super();let r=e.constructor.name;switch(r){case t.name:this.publicKey=e,this.variant=0;break;default:throw new Error(`Unsupported key for EphemeralPublicKey - ${r}`)}}toUint8Array(){return this.bcsToBytes()}verifySignature(e){let{message:r,signature:a}=e;return this.publicKey.verifySignature({message:r,signature:a.signature})}serialize(e){if(this.publicKey instanceof t)e.serializeU32AsUleb128(0),this.publicKey.serialize(e);else throw new Error("Unknown public key type")}static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return new i(t.deserialize(e));default:throw new Error(`Unknown variant index for EphemeralPublicKey: ${r}`)}}static isPublicKey(e){return e instanceof i}},p=class i extends l{constructor(e){super();let r=e.constructor.name;switch(r){case n.name:this.signature=e;break;default:throw new Error(`Unsupported signature for EphemeralSignature - ${r}`)}}toUint8Array(){return this.bcsToBytes()}static fromHex(e){let r=o.fromHexInput(e),a=new s(r.toUint8Array());return i.deserialize(a)}serialize(e){if(this.signature instanceof n)e.serializeU32AsUleb128(0),this.signature.serialize(e);else throw new Error("Unknown signature type")}static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return new i(n.deserialize(e));default:throw new Error(`Unknown variant index for EphemeralSignature: ${r}`)}}};export{c as a,p as b};
2
+ //# sourceMappingURL=chunk-3MCYLML2.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as g}from"./chunk-QPP6BX53.mjs";import{a as y,c as a,d as f}from"./chunk-CCMHWJ3Q.mjs";import{a as r}from"./chunk-MS4MRLGA.mjs";import{a as i,b as o,c as u,d as s,e as c,f as p,g as m}from"./chunk-6QGVRNV6.mjs";function D(n){return typeof n=="boolean"}function l(n){return typeof n=="string"}function d(n){return typeof n=="number"}function P(n){if(d(n))return n;if(l(n)&&n!=="")return Number.parseInt(n,10)}function w(n){return typeof n=="number"||typeof n=="bigint"||typeof n=="string"}function G(n){return n==null}function $(n){return T(n)||B(n)||U(n)||b(n)||I(n)||v(n)||h(n)||E(n)||x(n)||S(n)||n instanceof y||n instanceof f}function T(n){return n instanceof i}function E(n){return n instanceof g}function x(n){return n instanceof a}function S(n){return n instanceof r}function B(n){return n instanceof o}function U(n){return n instanceof u}function b(n){return n instanceof s}function I(n){return n instanceof c}function v(n){return n instanceof p}function h(n){return n instanceof m}function O(n){return"bytecode"in n}function R(n,t){throw new Error(`Type mismatch for argument ${t}, expected '${n}'`)}function W(n){let t=n.params.findIndex(e=>e!=="signer"&&e!=="&signer");return t<0?n.params.length:t}function L(n){let t=n.split("::");if(t.length!==3)throw new Error(`Invalid function ${n}`);let e=t[0],F=t[1],A=t[2];return{moduleAddress:e,moduleName:F,functionName:A}}export{D as a,l as b,d as c,P as d,w as e,G as f,$ as g,T as h,E as i,x as j,S as k,B as l,U as m,b as n,I as o,v as p,h as q,O as r,R as s,W as t,L as u};
2
- //# sourceMappingURL=chunk-EXCR5VKV.mjs.map
1
+ import{b as g}from"./chunk-QPP6BX53.mjs";import{a as y,c as a,d as f}from"./chunk-CCMHWJ3Q.mjs";import{a as i,b as o,c as u,d as s,e as c,f as p,g as m}from"./chunk-6QGVRNV6.mjs";import{a as r}from"./chunk-MS4MRLGA.mjs";function D(n){return typeof n=="boolean"}function l(n){return typeof n=="string"}function d(n){return typeof n=="number"}function P(n){if(d(n))return n;if(l(n)&&n!=="")return Number.parseInt(n,10)}function w(n){return typeof n=="number"||typeof n=="bigint"||typeof n=="string"}function G(n){return n==null}function $(n){return T(n)||B(n)||U(n)||b(n)||I(n)||v(n)||h(n)||E(n)||x(n)||S(n)||n instanceof y||n instanceof f}function T(n){return n instanceof i}function E(n){return n instanceof g}function x(n){return n instanceof a}function S(n){return n instanceof r}function B(n){return n instanceof o}function U(n){return n instanceof u}function b(n){return n instanceof s}function I(n){return n instanceof c}function v(n){return n instanceof p}function h(n){return n instanceof m}function O(n){return"bytecode"in n}function R(n,t){throw new Error(`Type mismatch for argument ${t}, expected '${n}'`)}function W(n){let t=n.params.findIndex(e=>e!=="signer"&&e!=="&signer");return t<0?n.params.length:t}function L(n){let t=n.split("::");if(t.length!==3)throw new Error(`Invalid function ${n}`);let e=t[0],F=t[1],A=t[2];return{moduleAddress:e,moduleName:F,functionName:A}}export{D as a,l as b,d as c,P as d,w as e,G as f,$ as g,T as h,E as i,x as j,S as k,B as l,U as m,b as n,I as o,v as p,h as q,O as r,R as s,W as t,L as u};
2
+ //# sourceMappingURL=chunk-3YKAGVHZ.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as p}from"./chunk-CHPQXBMJ.mjs";import{e as a}from"./chunk-5BUJ6N72.mjs";import{a as l,b as o}from"./chunk-NFLXGKHO.mjs";import{b as y}from"./chunk-QPP6BX53.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-EDI5UVKO.mjs.map
1
+ import{a as p}from"./chunk-K2O24YLZ.mjs";import{e as a}from"./chunk-TMW2HIXC.mjs";import{a as l,b as o}from"./chunk-GGR3P2TG.mjs";import{b as y}from"./chunk-QPP6BX53.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-46D5QX3G.mjs.map
@@ -0,0 +1,2 @@
1
+ var o="1.29.1";export{o as a};
2
+ //# sourceMappingURL=chunk-555I4YHP.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/version.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * The current version of the SDK\n *\n * hardcoded for now, we would want to have it injected dynamically\n */\nexport const VERSION = \"1.29.0\";\n"],"mappings":"AAQO,IAAMA,EAAU","names":["VERSION"]}
1
+ {"version":3,"sources":["../../src/version.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * The current version of the SDK\n *\n * hardcoded for now, we would want to have it injected dynamically\n */\nexport const VERSION = \"1.29.1\";\n"],"mappings":"AAQO,IAAMA,EAAU","names":["VERSION"]}
@@ -1,2 +1,2 @@
1
- import{b as h}from"./chunk-65JGB4JK.mjs";import{a as y}from"./chunk-LXLISEQ4.mjs";import{b as n}from"./chunk-QPP6BX53.mjs";import{a as _}from"./chunk-HPZ2S4FE.mjs";var t=class i extends _{constructor(e,s,a,r,c,d,l){super(),this.sender=e,this.sequence_number=s,this.payload=a,this.max_gas_amount=r,this.gas_unit_price=c,this.expiration_timestamp_secs=d,this.chain_id=l}serialize(e){this.sender.serialize(e),e.serializeU64(this.sequence_number),this.payload.serialize(e),e.serializeU64(this.max_gas_amount),e.serializeU64(this.gas_unit_price),e.serializeU64(this.expiration_timestamp_secs),this.chain_id.serialize(e)}static deserialize(e){let s=n.deserialize(e),a=e.deserializeU64(),r=h.deserialize(e),c=e.deserializeU64(),d=e.deserializeU64(),l=e.deserializeU64(),m=y.deserialize(e);return new i(s,a,r,c,d,l,m)}},o=class extends _{static deserialize(e){let s=e.deserializeUleb128AsU32();switch(s){case 0:return u.load(e);case 1:return p.load(e);default:throw new Error(`Unknown variant index for RawTransactionWithData: ${s}`)}}},u=class i extends o{constructor(e,s){super(),this.raw_txn=e,this.secondary_signer_addresses=s}serialize(e){e.serializeU32AsUleb128(0),this.raw_txn.serialize(e),e.serializeVector(this.secondary_signer_addresses)}static load(e){let s=t.deserialize(e),a=e.deserializeVector(n);return new i(s,a)}},p=class i extends o{constructor(e,s,a){super(),this.raw_txn=e,this.secondary_signer_addresses=s,this.fee_payer_address=a}serialize(e){e.serializeU32AsUleb128(1),this.raw_txn.serialize(e),e.serializeVector(this.secondary_signer_addresses),this.fee_payer_address.serialize(e)}static load(e){let s=t.deserialize(e),a=e.deserializeVector(n),r=n.deserialize(e);return new i(s,a,r)}};export{t as a,o as b,u as c,p as d};
2
- //# sourceMappingURL=chunk-VNTZZ7AM.mjs.map
1
+ import{b as h}from"./chunk-2TQIU7CG.mjs";import{a as y}from"./chunk-LXLISEQ4.mjs";import{b as n}from"./chunk-QPP6BX53.mjs";import{a as _}from"./chunk-HPZ2S4FE.mjs";var t=class i extends _{constructor(e,s,a,r,c,d,l){super(),this.sender=e,this.sequence_number=s,this.payload=a,this.max_gas_amount=r,this.gas_unit_price=c,this.expiration_timestamp_secs=d,this.chain_id=l}serialize(e){this.sender.serialize(e),e.serializeU64(this.sequence_number),this.payload.serialize(e),e.serializeU64(this.max_gas_amount),e.serializeU64(this.gas_unit_price),e.serializeU64(this.expiration_timestamp_secs),this.chain_id.serialize(e)}static deserialize(e){let s=n.deserialize(e),a=e.deserializeU64(),r=h.deserialize(e),c=e.deserializeU64(),d=e.deserializeU64(),l=e.deserializeU64(),m=y.deserialize(e);return new i(s,a,r,c,d,l,m)}},o=class extends _{static deserialize(e){let s=e.deserializeUleb128AsU32();switch(s){case 0:return u.load(e);case 1:return p.load(e);default:throw new Error(`Unknown variant index for RawTransactionWithData: ${s}`)}}},u=class i extends o{constructor(e,s){super(),this.raw_txn=e,this.secondary_signer_addresses=s}serialize(e){e.serializeU32AsUleb128(0),this.raw_txn.serialize(e),e.serializeVector(this.secondary_signer_addresses)}static load(e){let s=t.deserialize(e),a=e.deserializeVector(n);return new i(s,a)}},p=class i extends o{constructor(e,s,a){super(),this.raw_txn=e,this.secondary_signer_addresses=s,this.fee_payer_address=a}serialize(e){e.serializeU32AsUleb128(1),this.raw_txn.serialize(e),e.serializeVector(this.secondary_signer_addresses),this.fee_payer_address.serialize(e)}static load(e){let s=t.deserialize(e),a=e.deserializeVector(n),r=n.deserialize(e);return new i(s,a,r)}};export{t as a,o as b,u as c,p as d};
2
+ //# sourceMappingURL=chunk-5655UVIK.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as w}from"./chunk-CHPQXBMJ.mjs";import{a as f}from"./chunk-6ZRARME6.mjs";import{a as y}from"./chunk-RQNQ5TUX.mjs";import{n as u}from"./chunk-4BMEOXWL.mjs";import{b as c}from"./chunk-QPP6BX53.mjs";import{a as l}from"./chunk-KEYAPEAX.mjs";import{jwtDecode as A}from"jwt-decode";var K=class o extends w{constructor(e){let r=y.create(e);super({publicKey:r,...e}),this.publicKey=r}serialize(e){if(this.proof===void 0)throw new Error("Cannot serialize - proof undefined");e.serializeStr(this.jwt),e.serializeStr(this.uidKey),e.serializeFixedBytes(this.pepper),this.publicKey.jwkAddress.serialize(e),this.ephemeralKeyPair.serialize(e),this.proof.serialize(e)}static deserialize(e){let r=e.deserializeStr(),i=e.deserializeStr(),s=e.deserializeFixedBytes(31),a=c.deserialize(e),d=f.deserialize(e),n=u.deserialize(e);return o.create({proof:n,pepper:s,jwkAddress:a,uidKey:i,jwt:r,ephemeralKeyPair:d})}static fromBytes(e){return o.deserialize(new l(e))}static create(e){let{address:r,proof:i,jwt:s,ephemeralKeyPair:a,pepper:d,jwkAddress:n,uidKey:p="sub",proofFetchCallback:m}=e,t=A(s);if(typeof t.iss!="string")throw new Error("iss was not found");if(typeof t.aud!="string")throw new Error("aud was not found or an array of values");let h=t[p];return new o({address:r,proof:i,ephemeralKeyPair:a,iss:t.iss,uidKey:p,uidVal:h,aud:t.aud,pepper:d,jwkAddress:c.from(n),jwt:s,proofFetchCallback:m})}};export{K as a};
2
- //# sourceMappingURL=chunk-LYEUGID7.mjs.map
1
+ import{a as w}from"./chunk-K2O24YLZ.mjs";import{a as f}from"./chunk-B2CXRZL5.mjs";import{a as y}from"./chunk-PNXUYOYI.mjs";import{n as u}from"./chunk-LG3DAAPD.mjs";import{b as c}from"./chunk-QPP6BX53.mjs";import{a as l}from"./chunk-KEYAPEAX.mjs";import{jwtDecode as A}from"jwt-decode";var K=class o extends w{constructor(e){let r=y.create(e);super({publicKey:r,...e}),this.publicKey=r}serialize(e){if(this.proof===void 0)throw new Error("Cannot serialize - proof undefined");e.serializeStr(this.jwt),e.serializeStr(this.uidKey),e.serializeFixedBytes(this.pepper),this.publicKey.jwkAddress.serialize(e),this.ephemeralKeyPair.serialize(e),this.proof.serialize(e)}static deserialize(e){let r=e.deserializeStr(),i=e.deserializeStr(),s=e.deserializeFixedBytes(31),a=c.deserialize(e),d=f.deserialize(e),n=u.deserialize(e);return o.create({proof:n,pepper:s,jwkAddress:a,uidKey:i,jwt:r,ephemeralKeyPair:d})}static fromBytes(e){return o.deserialize(new l(e))}static create(e){let{address:r,proof:i,jwt:s,ephemeralKeyPair:a,pepper:d,jwkAddress:n,uidKey:p="sub",proofFetchCallback:m}=e,t=A(s);if(typeof t.iss!="string")throw new Error("iss was not found");if(typeof t.aud!="string")throw new Error("aud was not found or an array of values");let h=t[p];return new o({address:r,proof:i,ephemeralKeyPair:a,iss:t.iss,uidKey:p,uidVal:h,aud:t.aud,pepper:d,jwkAddress:c.from(n),jwt:s,proofFetchCallback:m})}};export{K as a};
2
+ //# sourceMappingURL=chunk-6RZZIOGH.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as p}from"./chunk-E6O72G24.mjs";async function o(e){let{type:t,originMethod:s,path:i,body:r,acceptType:R,contentType:f,params:c,aptosConfig:n,overrides:A}=e,d=n.getRequestUrl(t);return p({url:d,method:"POST",originMethod:s,path:i,body:r,contentType:f,acceptType:R,params:c,overrides:A},n,e.type)}async function q(e){let{aptosConfig:t}=e;return o({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function C(e){let{aptosConfig:t}=e;return o({...e,type:"Indexer",overrides:{...t.clientConfig,...t.indexerConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.indexerConfig?.HEADERS}}})}async function m(e){let{aptosConfig:t}=e,s={...t,clientConfig:{...t.clientConfig}};return delete s?.clientConfig?.API_KEY,o({...e,type:"Faucet",overrides:{...s.clientConfig,...s.faucetConfig,...e.overrides,HEADERS:{...s.clientConfig?.HEADERS,...s.faucetConfig?.HEADERS}}})}async function E(e){return o({...e,type:"Pepper"})}async function a(e){return o({...e,type:"Prover"})}export{o as a,q as b,C as c,m as d,E as e,a as f};
2
- //# sourceMappingURL=chunk-SS4IPKAI.mjs.map
1
+ import{b as p}from"./chunk-PUZ25PTD.mjs";async function o(e){let{type:t,originMethod:s,path:i,body:r,acceptType:R,contentType:f,params:c,aptosConfig:n,overrides:A}=e,d=n.getRequestUrl(t);return p({url:d,method:"POST",originMethod:s,path:i,body:r,contentType:f,acceptType:R,params:c,overrides:A},n,e.type)}async function q(e){let{aptosConfig:t}=e;return o({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function C(e){let{aptosConfig:t}=e;return o({...e,type:"Indexer",overrides:{...t.clientConfig,...t.indexerConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.indexerConfig?.HEADERS}}})}async function m(e){let{aptosConfig:t}=e,s={...t,clientConfig:{...t.clientConfig}};return delete s?.clientConfig?.API_KEY,o({...e,type:"Faucet",overrides:{...s.clientConfig,...s.faucetConfig,...e.overrides,HEADERS:{...s.clientConfig?.HEADERS,...s.faucetConfig?.HEADERS}}})}async function E(e){return o({...e,type:"Pepper"})}async function a(e){return o({...e,type:"Prover"})}export{o as a,q as b,C as c,m as d,E as e,a as f};
2
+ //# sourceMappingURL=chunk-7V6DEA7G.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-YFQSFUKY.mjs";import{a as m}from"./chunk-D72R4A35.mjs";import{b as w}from"./chunk-QPP6BX53.mjs";import{c as A}from"./chunk-QB4XTGDH.mjs";import{s as f}from"./chunk-VHNX2NUR.mjs";var T=["A name must be between 3 and 63 characters long,","and can only contain lowercase a-z, 0-9, and hyphens.","A name may not start or end with a hyphen."].join(" ");function D(e){return!(!e||e.length<3||e.length>63||!/^[a-z\d][a-z\d-]{1,61}[a-z\d]$/.test(e))}function c(e){let[t,n,...o]=e.replace(/\.apt$/,"").split(".");if(o.length>0)throw new Error(`${e} is invalid. A name can only have two parts, a domain and a subdomain separated by a "."`);if(!D(t))throw new Error(`${t} is not valid. ${T}`);if(n&&!D(n))throw new Error(`${n} is not valid. ${T}`);return{domainName:n||t,subdomainName:n?t:void 0}}var I=(n=>(n[n.Independent=0]="Independent",n[n.FollowsDomain=1]="FollowsDomain",n))(I||{});function E(e){if(!e)return!1;let t=new Date(e.domain_expiration_timestamp).getTime()<Date.now(),n=new Date(e.expiration_timestamp).getTime()<Date.now();return e.subdomain&&t?!1:e.subdomain&&e.subdomain_expiration_policy===1?!0:!n}var j="0x37368b46ce665362562c6d1d4ec01a08c8644c488690df5a17e13ba163e20221",O="0x585fc9f0f0c54183b039ffc770ca282ebd87307916c215a3e692f2f8e4305e82",v={testnet:"0x5f8fd2347449685cf41d4db97926ec3a096eaf381332be4f1318ad4d16a8497c",mainnet:"0x867ed1f6bf916171b1de3ee92849b8978b7d1b9e0a8cc982a3d19d535dfd9c0c",local:O,custom:null,devnet:null};function d(e){let t=v[e.network];if(!t)throw new Error(`The ANS contract is not deployed to ${e.network}`);return t}var b=e=>{if(e&&typeof e=="object"&&"vec"in e&&Array.isArray(e.vec))return e.vec[0]};async function F(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n),i=await g({aptosConfig:t,payload:{function:`${o}::router::get_owner_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function Y(e){let{aptosConfig:t,expiration:n,name:o,sender:r,targetAddress:s,toAddress:i,options:a,transferable:u}=e,p=d(t),{domainName:y,subdomainName:N}=c(o),x=n.policy==="subdomain:independent"||n.policy==="subdomain:follow-domain";if(N&&!x)throw new Error("Subdomains must have an expiration policy of either 'subdomain:independent' or 'subdomain:follow-domain'");if(x&&!N)throw new Error(`Policy is set to ${n.policy} but no subdomain was provided`);if(n.policy==="domain"){let h=n.years??1;if(h!==1)throw new Error("For now, names can only be registered for 1 year at a time");let G=h*31536e3;return await m({aptosConfig:t,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_domain`,functionArguments:[y,G,s,i]},options:a})}if(!N)throw new Error(`${n.policy} requires a subdomain to be provided.`);let _=await P({aptosConfig:t,name:y});if(!_)throw new Error("The domain does not exist");let S=n.policy==="subdomain:independent"?n.expirationDate:_;if(S>_)throw new Error("The subdomain expiration time cannot be greater than the domain expiration time");return await m({aptosConfig:t,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_subdomain`,functionArguments:[y,N,Math.round(S/1e3),n.policy==="subdomain:follow-domain"?1:0,!!u,s,i]},options:a})}async function P(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n);try{let i=await g({aptosConfig:t,payload:{function:`${o}::router::get_expiration`,functionArguments:[r,s]}});return Number(i[0])*1e3}catch{return}}async function K(e){let{aptosConfig:t,address:n}=e,o=d(t),r=await g({aptosConfig:t,payload:{function:`${o}::router::get_primary_name`,functionArguments:[w.from(n).toString()]}}),s=b(r[1]),i=b(r[0]);if(s)return[i,s].filter(Boolean).join(".")}async function W(e){let{aptosConfig:t,sender:n,name:o,options:r}=e,s=d(t);if(!o)return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${s}::router::clear_primary_name`,functionArguments:[]},options:r});let{domainName:i,subdomainName:a}=c(o);return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${s}::router::set_primary_name`,functionArguments:[i,a]},options:r})}async function H(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n),i=await g({aptosConfig:t,payload:{function:`${o}::router::get_target_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function J(e){let{aptosConfig:t,sender:n,name:o,address:r,options:s}=e,i=d(t),{domainName:a,subdomainName:u}=c(o);return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${i}::router::set_target_addr`,functionArguments:[a,u,r]},options:s})}async function X(e){let{aptosConfig:t,name:n}=e,{domainName:o,subdomainName:r=""}=c(n),a=(await A({aptosConfig:t,query:{query:f,variables:{where_condition:{domain:{_eq:o},subdomain:{_eq:r}},limit:1}},originMethod:"getName"})).current_aptos_names[0];return a&&(a=l(a)),E(a)?a:void 0}async function Z(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountNames",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r}}}}})).current_aptos_names.map(l)}async function ee(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountDomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_eq:""}}}}})).current_aptos_names.map(l)}async function ne(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountSubdomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_neq:""}}}}})).current_aptos_names.map(l)}async function te(e){let{aptosConfig:t,options:n,domain:o}=e;return(await A({aptosConfig:t,originMethod:"getDomainSubdomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},domain:{_eq:o},subdomain:{_neq:""}}}}})).current_aptos_names.map(l).filter(E)}async function C(e){let{aptosConfig:t}=e,n=d(t),[o]=await g({aptosConfig:t,payload:{function:`${n}::config::reregistration_grace_sec`,functionArguments:[]}}),r=o/60/60/24,s=()=>new Date;return new Date(s().setDate(s().getDate()-r)).toISOString()}async function oe(e){let{aptosConfig:t,sender:n,name:o,years:r=1,options:s}=e,i=d(t),a=r*31536e3,{domainName:u,subdomainName:p}=c(o);if(p)throw new Error("Subdomains cannot be renewed");if(r!==1)throw new Error("Currently, only 1 year renewals are supported");return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${i}::router::renew_domain`,functionArguments:[u,a]},options:s})}function l(e){return{...e,expiration_timestamp:new Date(e.expiration_timestamp).getTime()}}export{T as a,D as b,c,I as d,E as e,j as f,O as g,F as h,Y as i,P as j,K as k,W as l,H as m,J as n,X as o,Z as p,ee as q,ne as r,te as s,oe as t};
2
- //# sourceMappingURL=chunk-OGHATIRT.mjs.map
1
+ import{a as g}from"./chunk-G7MWTE2J.mjs";import{a as m}from"./chunk-WWZ3METZ.mjs";import{c as A}from"./chunk-GFGX3QDP.mjs";import{s as f}from"./chunk-VHNX2NUR.mjs";import{b as w}from"./chunk-QPP6BX53.mjs";var T=["A name must be between 3 and 63 characters long,","and can only contain lowercase a-z, 0-9, and hyphens.","A name may not start or end with a hyphen."].join(" ");function D(e){return!(!e||e.length<3||e.length>63||!/^[a-z\d][a-z\d-]{1,61}[a-z\d]$/.test(e))}function c(e){let[t,n,...o]=e.replace(/\.apt$/,"").split(".");if(o.length>0)throw new Error(`${e} is invalid. A name can only have two parts, a domain and a subdomain separated by a "."`);if(!D(t))throw new Error(`${t} is not valid. ${T}`);if(n&&!D(n))throw new Error(`${n} is not valid. ${T}`);return{domainName:n||t,subdomainName:n?t:void 0}}var I=(n=>(n[n.Independent=0]="Independent",n[n.FollowsDomain=1]="FollowsDomain",n))(I||{});function E(e){if(!e)return!1;let t=new Date(e.domain_expiration_timestamp).getTime()<Date.now(),n=new Date(e.expiration_timestamp).getTime()<Date.now();return e.subdomain&&t?!1:e.subdomain&&e.subdomain_expiration_policy===1?!0:!n}var j="0x37368b46ce665362562c6d1d4ec01a08c8644c488690df5a17e13ba163e20221",O="0x585fc9f0f0c54183b039ffc770ca282ebd87307916c215a3e692f2f8e4305e82",v={testnet:"0x5f8fd2347449685cf41d4db97926ec3a096eaf381332be4f1318ad4d16a8497c",mainnet:"0x867ed1f6bf916171b1de3ee92849b8978b7d1b9e0a8cc982a3d19d535dfd9c0c",local:O,custom:null,devnet:null};function d(e){let t=v[e.network];if(!t)throw new Error(`The ANS contract is not deployed to ${e.network}`);return t}var b=e=>{if(e&&typeof e=="object"&&"vec"in e&&Array.isArray(e.vec))return e.vec[0]};async function F(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n),i=await g({aptosConfig:t,payload:{function:`${o}::router::get_owner_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function Y(e){let{aptosConfig:t,expiration:n,name:o,sender:r,targetAddress:s,toAddress:i,options:a,transferable:u}=e,p=d(t),{domainName:y,subdomainName:N}=c(o),x=n.policy==="subdomain:independent"||n.policy==="subdomain:follow-domain";if(N&&!x)throw new Error("Subdomains must have an expiration policy of either 'subdomain:independent' or 'subdomain:follow-domain'");if(x&&!N)throw new Error(`Policy is set to ${n.policy} but no subdomain was provided`);if(n.policy==="domain"){let h=n.years??1;if(h!==1)throw new Error("For now, names can only be registered for 1 year at a time");let G=h*31536e3;return await m({aptosConfig:t,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_domain`,functionArguments:[y,G,s,i]},options:a})}if(!N)throw new Error(`${n.policy} requires a subdomain to be provided.`);let _=await P({aptosConfig:t,name:y});if(!_)throw new Error("The domain does not exist");let S=n.policy==="subdomain:independent"?n.expirationDate:_;if(S>_)throw new Error("The subdomain expiration time cannot be greater than the domain expiration time");return await m({aptosConfig:t,sender:r.accountAddress.toString(),data:{function:`${p}::router::register_subdomain`,functionArguments:[y,N,Math.round(S/1e3),n.policy==="subdomain:follow-domain"?1:0,!!u,s,i]},options:a})}async function P(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n);try{let i=await g({aptosConfig:t,payload:{function:`${o}::router::get_expiration`,functionArguments:[r,s]}});return Number(i[0])*1e3}catch{return}}async function K(e){let{aptosConfig:t,address:n}=e,o=d(t),r=await g({aptosConfig:t,payload:{function:`${o}::router::get_primary_name`,functionArguments:[w.from(n).toString()]}}),s=b(r[1]),i=b(r[0]);if(s)return[i,s].filter(Boolean).join(".")}async function W(e){let{aptosConfig:t,sender:n,name:o,options:r}=e,s=d(t);if(!o)return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${s}::router::clear_primary_name`,functionArguments:[]},options:r});let{domainName:i,subdomainName:a}=c(o);return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${s}::router::set_primary_name`,functionArguments:[i,a]},options:r})}async function H(e){let{aptosConfig:t,name:n}=e,o=d(t),{domainName:r,subdomainName:s}=c(n),i=await g({aptosConfig:t,payload:{function:`${o}::router::get_target_addr`,functionArguments:[r,s]}}),a=b(i[0]);return a?w.from(a):void 0}async function J(e){let{aptosConfig:t,sender:n,name:o,address:r,options:s}=e,i=d(t),{domainName:a,subdomainName:u}=c(o);return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${i}::router::set_target_addr`,functionArguments:[a,u,r]},options:s})}async function X(e){let{aptosConfig:t,name:n}=e,{domainName:o,subdomainName:r=""}=c(n),a=(await A({aptosConfig:t,query:{query:f,variables:{where_condition:{domain:{_eq:o},subdomain:{_eq:r}},limit:1}},originMethod:"getName"})).current_aptos_names[0];return a&&(a=l(a)),E(a)?a:void 0}async function Z(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountNames",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r}}}}})).current_aptos_names.map(l)}async function ee(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountDomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_eq:""}}}}})).current_aptos_names.map(l)}async function ne(e){let{aptosConfig:t,options:n,accountAddress:o}=e,r=await C({aptosConfig:t});return(await A({aptosConfig:t,originMethod:"getAccountSubdomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},owner_address:{_eq:o.toString()},expiration_timestamp:{_gte:r},subdomain:{_neq:""}}}}})).current_aptos_names.map(l)}async function te(e){let{aptosConfig:t,options:n,domain:o}=e;return(await A({aptosConfig:t,originMethod:"getDomainSubdomains",query:{query:f,variables:{limit:n?.limit,offset:n?.offset,order_by:n?.orderBy,where_condition:{...e.options?.where??{},domain:{_eq:o},subdomain:{_neq:""}}}}})).current_aptos_names.map(l).filter(E)}async function C(e){let{aptosConfig:t}=e,n=d(t),[o]=await g({aptosConfig:t,payload:{function:`${n}::config::reregistration_grace_sec`,functionArguments:[]}}),r=o/60/60/24,s=()=>new Date;return new Date(s().setDate(s().getDate()-r)).toISOString()}async function oe(e){let{aptosConfig:t,sender:n,name:o,years:r=1,options:s}=e,i=d(t),a=r*31536e3,{domainName:u,subdomainName:p}=c(o);if(p)throw new Error("Subdomains cannot be renewed");if(r!==1)throw new Error("Currently, only 1 year renewals are supported");return await m({aptosConfig:t,sender:n.accountAddress.toString(),data:{function:`${i}::router::renew_domain`,functionArguments:[u,a]},options:s})}function l(e){return{...e,expiration_timestamp:new Date(e.expiration_timestamp).getTime()}}export{T as a,D as b,c,I as d,E as e,j as f,O as g,F as h,Y as i,P as j,K as k,W as l,H as m,J as n,X as o,Z as p,ee as q,ne as r,te as s,oe as t};
2
+ //# sourceMappingURL=chunk-7ZLBJUVZ.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as i}from"./chunk-QPP6BX53.mjs";import{c as d}from"./chunk-QB4XTGDH.mjs";import{p as c}from"./chunk-VHNX2NUR.mjs";var a=300,g=t=>{if(t&&t.length>a)throw new Error(`Event type length exceeds the maximum length of ${a}`)};async function m(t){let{aptosConfig:o,eventType:e,options:n}=t,s={_or:[{account_address:{_eq:e.split("::")[0]}},{account_address:{_eq:"0x0000000000000000000000000000000000000000000000000000000000000000"},sequence_number:{_eq:0},creation_number:{_eq:0}}],indexed_type:{_eq:e}};return p({aptosConfig:o,options:{...n,where:s}})}async function f(t){let{accountAddress:o,aptosConfig:e,creationNumber:n,options:s}=t,r={account_address:{_eq:i.from(o).toStringLong()},creation_number:{_eq:n}};return p({aptosConfig:e,options:{...s,where:r}})}async function _(t){let{accountAddress:o,aptosConfig:e,eventType:n,options:s}=t,r={account_address:{_eq:i.from(o).toStringLong()},indexed_type:{_eq:n}};return p({aptosConfig:e,options:{...s,where:r}})}async function p(t){let{aptosConfig:o,options:e}=t;g(e?.where?.indexed_type?._eq);let n={query:c,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await d({aptosConfig:o,query:n,originMethod:"getEvents"})).events}export{m as a,f as b,_ as c,p as d};
2
- //# sourceMappingURL=chunk-5GD2TVJW.mjs.map
1
+ import{c as d}from"./chunk-GFGX3QDP.mjs";import{p as c}from"./chunk-VHNX2NUR.mjs";import{b as i}from"./chunk-QPP6BX53.mjs";var a=300,g=t=>{if(t&&t.length>a)throw new Error(`Event type length exceeds the maximum length of ${a}`)};async function m(t){let{aptosConfig:o,eventType:e,options:n}=t,s={_or:[{account_address:{_eq:e.split("::")[0]}},{account_address:{_eq:"0x0000000000000000000000000000000000000000000000000000000000000000"},sequence_number:{_eq:0},creation_number:{_eq:0}}],indexed_type:{_eq:e}};return p({aptosConfig:o,options:{...n,where:s}})}async function f(t){let{accountAddress:o,aptosConfig:e,creationNumber:n,options:s}=t,r={account_address:{_eq:i.from(o).toStringLong()},creation_number:{_eq:n}};return p({aptosConfig:e,options:{...s,where:r}})}async function _(t){let{accountAddress:o,aptosConfig:e,eventType:n,options:s}=t,r={account_address:{_eq:i.from(o).toStringLong()},indexed_type:{_eq:n}};return p({aptosConfig:e,options:{...s,where:r}})}async function p(t){let{aptosConfig:o,options:e}=t;g(e?.where?.indexed_type?._eq);let n={query:c,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await d({aptosConfig:o,query:n,originMethod:"getEvents"})).events}export{m as a,f as b,_ as c,p as d};
2
+ //# sourceMappingURL=chunk-AFOPNDOJ.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as h,c as d,e as m}from"./chunk-SRPI2FFA.mjs";import{a as p,b as u}from"./chunk-IAPQS7TH.mjs";import{c as s}from"./chunk-G7EILN6D.mjs";import{b,c as K}from"./chunk-UAL27G6B.mjs";import{a as l}from"./chunk-KEYAPEAX.mjs";import{a as c}from"./chunk-HPZ2S4FE.mjs";import{b as y}from"./chunk-BCUSI3N6.mjs";import{randomBytes as E}from"@noble/hashes/utils";var S=1209600,i=class i extends c{constructor(e){super();let{privateKey:r,expiryDateSecs:a,blinder:n}=e;this.privateKey=r,this.publicKey=new p(r.publicKey()),this.expiryDateSecs=a||K(b()+S),this.blinder=n!==void 0?y.fromHexInput(n).toUint8Array():v();let t=h(this.publicKey.bcsToBytes(),93);t.push(BigInt(this.expiryDateSecs)),t.push(d(this.blinder));let x=m(t);this.nonce=x.toString()}getPublicKey(){return this.publicKey}isExpired(){return Math.floor(Date.now()/1e3)>this.expiryDateSecs}serialize(e){e.serializeU32AsUleb128(this.publicKey.variant),e.serializeBytes(this.privateKey.toUint8Array()),e.serializeU64(this.expiryDateSecs),e.serializeFixedBytes(this.blinder)}static deserialize(e){let r=e.deserializeUleb128AsU32(),a;switch(r){case 0:a=s.deserialize(e);break;default:throw new Error(`Unknown variant index for EphemeralPublicKey: ${r}`)}let n=e.deserializeU64(),t=e.deserializeFixedBytes(31);return new i({privateKey:a,expiryDateSecs:Number(n),blinder:t})}static fromBytes(e){return i.deserialize(new l(e))}static generate(e){let r;switch(e?.scheme){case 0:default:r=s.generate()}return new i({privateKey:r,expiryDateSecs:e?.expiryDateSecs})}sign(e){if(this.isExpired())throw new Error("EphemeralKeyPair has expired");return new u(this.privateKey.sign(e))}};i.BLINDER_LENGTH=31;var o=i;function v(){return E(o.BLINDER_LENGTH)}export{o as a};
2
- //# sourceMappingURL=chunk-6ZRARME6.mjs.map
1
+ import{b as h,c as d,e as m}from"./chunk-SRPI2FFA.mjs";import{a as p,b as u}from"./chunk-3MCYLML2.mjs";import{c as s}from"./chunk-DAJOX4PL.mjs";import{a as l}from"./chunk-KEYAPEAX.mjs";import{a as c}from"./chunk-HPZ2S4FE.mjs";import{b as y}from"./chunk-BCUSI3N6.mjs";import{b,c as K}from"./chunk-UAL27G6B.mjs";import{randomBytes as E}from"@noble/hashes/utils";var S=1209600,i=class i extends c{constructor(e){super();let{privateKey:r,expiryDateSecs:a,blinder:n}=e;this.privateKey=r,this.publicKey=new p(r.publicKey()),this.expiryDateSecs=a||K(b()+S),this.blinder=n!==void 0?y.fromHexInput(n).toUint8Array():v();let t=h(this.publicKey.bcsToBytes(),93);t.push(BigInt(this.expiryDateSecs)),t.push(d(this.blinder));let x=m(t);this.nonce=x.toString()}getPublicKey(){return this.publicKey}isExpired(){return Math.floor(Date.now()/1e3)>this.expiryDateSecs}serialize(e){e.serializeU32AsUleb128(this.publicKey.variant),e.serializeBytes(this.privateKey.toUint8Array()),e.serializeU64(this.expiryDateSecs),e.serializeFixedBytes(this.blinder)}static deserialize(e){let r=e.deserializeUleb128AsU32(),a;switch(r){case 0:a=s.deserialize(e);break;default:throw new Error(`Unknown variant index for EphemeralPublicKey: ${r}`)}let n=e.deserializeU64(),t=e.deserializeFixedBytes(31);return new i({privateKey:a,expiryDateSecs:Number(n),blinder:t})}static fromBytes(e){return i.deserialize(new l(e))}static generate(e){let r;switch(e?.scheme){case 0:default:r=s.generate()}return new i({privateKey:r,expiryDateSecs:e?.expiryDateSecs})}sign(e){if(this.isExpired())throw new Error("EphemeralKeyPair has expired");return new u(this.privateKey.sign(e))}};i.BLINDER_LENGTH=31;var o=i;function v(){return E(o.BLINDER_LENGTH)}export{o as a};
2
+ //# sourceMappingURL=chunk-B2CXRZL5.mjs.map
@@ -1,2 +1,2 @@
1
- import{d as p}from"./chunk-SYTI5QO7.mjs";import{d as s}from"./chunk-5BUJ6N72.mjs";import{a as u,b as y}from"./chunk-TVIQLBVA.mjs";import{b as a}from"./chunk-7YXNZTCS.mjs";import{c as i}from"./chunk-G7EILN6D.mjs";import{b as g}from"./chunk-QPP6BX53.mjs";var h=class c{constructor(e){this.signingScheme=2;let{privateKey:r,address:t}=e;this.privateKey=r,this.publicKey=new u(r.publicKey()),this.accountAddress=t?g.from(t):this.publicKey.authKey().derivedAddress()}static generate(e={}){let{scheme:r=0}=e,t;switch(r){case 0:t=i.generate();break;case 2:t=a.generate();break;default:throw new Error(`Unsupported signature scheme ${r}`)}return new c({privateKey:t})}static fromDerivationPath(e){let{scheme:r=0,path:t,mnemonic:o}=e,n;switch(r){case 0:n=i.fromDerivationPath(t,o);break;case 2:n=a.fromDerivationPath(t,o);break;default:throw new Error(`Unsupported signature scheme ${r}`)}return new c({privateKey:n})}verifySignature(e){return this.publicKey.verifySignature(e)}signWithAuthenticator(e){return new s(this.publicKey,this.sign(e))}signTransactionWithAuthenticator(e){return new s(this.publicKey,this.signTransaction(e))}sign(e){return new y(this.privateKey.sign(e))}signTransaction(e){return this.sign(p(e))}};export{h as a};
2
- //# sourceMappingURL=chunk-U4MIJ2SL.mjs.map
1
+ import{d as p}from"./chunk-KXBIA4KR.mjs";import{d as s}from"./chunk-TMW2HIXC.mjs";import{a as u,b as y}from"./chunk-U67PFBTL.mjs";import{b as a}from"./chunk-LGD5KU56.mjs";import{c as i}from"./chunk-DAJOX4PL.mjs";import{b as g}from"./chunk-QPP6BX53.mjs";var h=class c{constructor(e){this.signingScheme=2;let{privateKey:r,address:t}=e;this.privateKey=r,this.publicKey=new u(r.publicKey()),this.accountAddress=t?g.from(t):this.publicKey.authKey().derivedAddress()}static generate(e={}){let{scheme:r=0}=e,t;switch(r){case 0:t=i.generate();break;case 2:t=a.generate();break;default:throw new Error(`Unsupported signature scheme ${r}`)}return new c({privateKey:t})}static fromDerivationPath(e){let{scheme:r=0,path:t,mnemonic:o}=e,n;switch(r){case 0:n=i.fromDerivationPath(t,o);break;case 2:n=a.fromDerivationPath(t,o);break;default:throw new Error(`Unsupported signature scheme ${r}`)}return new c({privateKey:n})}verifySignature(e){return this.publicKey.verifySignature(e)}signWithAuthenticator(e){return new s(this.publicKey,this.sign(e))}signTransactionWithAuthenticator(e){return new s(this.publicKey,this.signTransaction(e))}sign(e){return new y(this.privateKey.sign(e))}signTransaction(e){return this.sign(p(e))}};export{h as a};
2
+ //# sourceMappingURL=chunk-B6M7QBUO.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as h,d as l}from"./chunk-G7EILN6D.mjs";import{b as E}from"./chunk-IMGLHDIA.mjs";import{a as p}from"./chunk-BF4ZE37Q.mjs";import{a as g}from"./chunk-KA6FZNWP.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-CKQQJXQL.mjs.map
1
+ import{b as h,d as l}from"./chunk-DAJOX4PL.mjs";import{b as E}from"./chunk-IMGLHDIA.mjs";import{a as p}from"./chunk-BF4ZE37Q.mjs";import{a as g}from"./chunk-KA6FZNWP.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-BD6BJETG.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as f}from"./chunk-ZRFOTNLQ.mjs";import{a as P}from"./chunk-MHRQHVM3.mjs";import{a as C}from"./chunk-TVIQLBVA.mjs";import{b as y}from"./chunk-7YXNZTCS.mjs";import{c as l}from"./chunk-G7EILN6D.mjs";import{a as g}from"./chunk-KA6FZNWP.mjs";import{b as a}from"./chunk-QPP6BX53.mjs";import{c as d}from"./chunk-QB4XTGDH.mjs";import{d as h,e as w,f as k,g as T,i as b,j as q,k as v,u as O}from"./chunk-VHNX2NUR.mjs";import{a as _}from"./chunk-AH44UPM4.mjs";import{b as A,d as p}from"./chunk-3RBIEWVC.mjs";import{a as m}from"./chunk-TDGQGILY.mjs";async function S(e){let{aptosConfig:n,accountAddress:t}=e,{data:o}=await A({aptosConfig:n,originMethod:"getInfo",path:`accounts/${a.from(t).toString()}`});return o}async function z(e){let{aptosConfig:n,accountAddress:t,options:o}=e;return p({aptosConfig:n,originMethod:"getModules",path:`accounts/${a.from(t).toString()}/modules`,params:{ledger_version:o?.ledgerVersion,start:o?.offset,limit:o?.limit??1e3}})}async function H(e){return e.options?.ledgerVersion!==void 0?G(e):_(async()=>G(e),`module-${e.accountAddress}-${e.moduleName}`,1e3*60*5)()}async function G(e){let{aptosConfig:n,accountAddress:t,moduleName:o,options:s}=e,{data:r}=await A({aptosConfig:n,originMethod:"getModule",path:`accounts/${a.from(t).toString()}/module/${o}`,params:{ledger_version:s?.ledgerVersion}});return r}async function J(e){let{aptosConfig:n,accountAddress:t,options:o}=e;return p({aptosConfig:n,originMethod:"getTransactions",path:`accounts/${a.from(t).toString()}/transactions`,params:{start:o?.offset,limit:o?.limit}})}async function U(e){let{aptosConfig:n,accountAddress:t,options:o}=e;return p({aptosConfig:n,originMethod:"getResources",path:`accounts/${a.from(t).toString()}/resources`,params:{ledger_version:o?.ledgerVersion,start:o?.offset,limit:o?.limit??999}})}async function K(e){let{aptosConfig:n,accountAddress:t,resourceType:o,options:s}=e,{data:r}=await A({aptosConfig:n,originMethod:"getResource",path:`accounts/${a.from(t).toString()}/resource/${o}`,params:{ledger_version:s?.ledgerVersion}});return r.data}async function Q(e){let{aptosConfig:n,authenticationKey:t,options:o}=e,s=await K({aptosConfig:n,accountAddress:"0x1",resourceType:"0x1::account::OriginatingAddress",options:o}),{address_map:{handle:r}}=s,c=a.from(t);try{let i=await P({aptosConfig:n,handle:r,data:{key:c.toString(),key_type:"address",value_type:"address"},options:o});return a.from(i)}catch(i){if(i instanceof m&&i.data.error_code==="table_item_not_found")return c;throw i}}async function X(e){let{aptosConfig:n,accountAddress:t}=e,s={owner_address:{_eq:a.from(t).toStringLong()},amount:{_gt:0}},c=await d({aptosConfig:n,query:{query:q,variables:{where_condition:s}},originMethod:"getAccountTokensCount"});return c.current_token_ownerships_v2_aggregate.aggregate?c.current_token_ownerships_v2_aggregate.aggregate.count:0}async function Y(e){let{aptosConfig:n,accountAddress:t,options:o}=e,r={owner_address:{_eq:a.from(t).toStringLong()},amount:{_gt:0}};o?.tokenStandard&&(r.token_standard={_eq:o?.tokenStandard});let c={query:T,variables:{where_condition:r,offset:o?.offset,limit:o?.limit,order_by:o?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountOwnedTokens"})).current_token_ownerships_v2}async function Z(e){let{aptosConfig:n,accountAddress:t,collectionAddress:o,options:s}=e,r=a.from(t).toStringLong(),c=a.from(o).toStringLong(),i={owner_address:{_eq:r},current_token_data:{collection_id:{_eq:c}},amount:{_gt:0}};s?.tokenStandard&&(i.token_standard={_eq:s?.tokenStandard});let u={query:b,variables:{where_condition:i,offset:s?.offset,limit:s?.limit,order_by:s?.orderBy}};return(await d({aptosConfig:n,query:u,originMethod:"getAccountOwnedTokensFromCollectionAddress"})).current_token_ownerships_v2}async function oo(e){let{aptosConfig:n,accountAddress:t,options:o}=e,r={owner_address:{_eq:a.from(t).toStringLong()}};o?.tokenStandard&&(r.current_collection={token_standard:{_eq:o?.tokenStandard}});let c={query:k,variables:{where_condition:r,offset:o?.offset,limit:o?.limit,order_by:o?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountCollectionsWithOwnedTokens"})).current_collection_ownership_v2_view}async function eo(e){let{aptosConfig:n,accountAddress:t}=e,o=a.from(t).toStringLong(),r=await d({aptosConfig:n,query:{query:v,variables:{address:o}},originMethod:"getAccountTransactionsCount"});return r.account_transactions_aggregate.aggregate?r.account_transactions_aggregate.aggregate.count:0}async function to(e){let{aptosConfig:n,accountAddress:t,options:o}=e,s=a.from(t).toStringLong(),r={...o?.where,owner_address:{_eq:s}},c={query:w,variables:{where_condition:r,offset:o?.offset,limit:o?.limit,order_by:o?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountCoinsData"})).current_fungible_asset_balances}async function no(e){let{aptosConfig:n,accountAddress:t}=e,o=a.from(t).toStringLong(),r=await d({aptosConfig:n,query:{query:h,variables:{address:o}},originMethod:"getAccountCoinsCount"});if(!r.current_fungible_asset_balances_aggregate.aggregate)throw Error("Failed to get the count of account coins");return r.current_fungible_asset_balances_aggregate.aggregate.count}async function ro(e){let{aptosConfig:n,accountAddress:t,options:o}=e,r={owner_address:{_eq:a.from(t).toStringLong()}},c={query:O,variables:{where_condition:r,offset:o?.offset,limit:o?.limit,order_by:o?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountOwnedObjects"})).current_objects}async function so(e){let{aptosConfig:n,privateKey:t}=e,o=new C(t.publicKey());if(t instanceof y){let r=g.fromPublicKey({publicKey:o}).derivedAddress();return f.fromPrivateKey({privateKey:t,address:r})}if(t instanceof l){let s=g.fromPublicKey({publicKey:o});if(await M({authKey:s,aptosConfig:n})){let u=s.derivedAddress();return f.fromPrivateKey({privateKey:t,address:u,legacy:!1})}let c=g.fromPublicKey({publicKey:o.publicKey});if(await M({authKey:c,aptosConfig:n})){let u=c.derivedAddress();return f.fromPrivateKey({privateKey:t,address:u,legacy:!0})}}throw new Error(`Can't derive account from private key ${t}`)}async function M(e){let{aptosConfig:n,authKey:t}=e,o=await Q({aptosConfig:n,authenticationKey:t.derivedAddress()});try{return await S({aptosConfig:n,accountAddress:o}),!0}catch(s){if(s.status===404)return!1;throw new Error(`Error while looking for an account info ${o.toString()}`)}}export{S as a,z as b,H as c,J as d,U as e,K as f,Q as g,X as h,Y as i,Z as j,oo as k,eo as l,to as m,no as n,ro as o,so as p,M as q};
2
- //# sourceMappingURL=chunk-UH7ADIR7.mjs.map
1
+ import{a as P}from"./chunk-STGYDB5E.mjs";import{c as d}from"./chunk-GFGX3QDP.mjs";import{d as h,e as w,f as k,g as T,i as b,j as q,k as v,u as O}from"./chunk-VHNX2NUR.mjs";import{a as f}from"./chunk-FRGXKOU5.mjs";import{a as C}from"./chunk-U67PFBTL.mjs";import{b as y}from"./chunk-LGD5KU56.mjs";import{c as l}from"./chunk-DAJOX4PL.mjs";import{a as g}from"./chunk-KA6FZNWP.mjs";import{b as a}from"./chunk-QPP6BX53.mjs";import{a as _}from"./chunk-AH44UPM4.mjs";import{b as A,d as p}from"./chunk-EV2USF7B.mjs";import{a as m}from"./chunk-TDGQGILY.mjs";async function S(e){let{aptosConfig:n,accountAddress:t}=e,{data:o}=await A({aptosConfig:n,originMethod:"getInfo",path:`accounts/${a.from(t).toString()}`});return o}async function z(e){let{aptosConfig:n,accountAddress:t,options:o}=e;return p({aptosConfig:n,originMethod:"getModules",path:`accounts/${a.from(t).toString()}/modules`,params:{ledger_version:o?.ledgerVersion,start:o?.offset,limit:o?.limit??1e3}})}async function H(e){return e.options?.ledgerVersion!==void 0?G(e):_(async()=>G(e),`module-${e.accountAddress}-${e.moduleName}`,1e3*60*5)()}async function G(e){let{aptosConfig:n,accountAddress:t,moduleName:o,options:s}=e,{data:r}=await A({aptosConfig:n,originMethod:"getModule",path:`accounts/${a.from(t).toString()}/module/${o}`,params:{ledger_version:s?.ledgerVersion}});return r}async function J(e){let{aptosConfig:n,accountAddress:t,options:o}=e;return p({aptosConfig:n,originMethod:"getTransactions",path:`accounts/${a.from(t).toString()}/transactions`,params:{start:o?.offset,limit:o?.limit}})}async function U(e){let{aptosConfig:n,accountAddress:t,options:o}=e;return p({aptosConfig:n,originMethod:"getResources",path:`accounts/${a.from(t).toString()}/resources`,params:{ledger_version:o?.ledgerVersion,start:o?.offset,limit:o?.limit??999}})}async function K(e){let{aptosConfig:n,accountAddress:t,resourceType:o,options:s}=e,{data:r}=await A({aptosConfig:n,originMethod:"getResource",path:`accounts/${a.from(t).toString()}/resource/${o}`,params:{ledger_version:s?.ledgerVersion}});return r.data}async function Q(e){let{aptosConfig:n,authenticationKey:t,options:o}=e,s=await K({aptosConfig:n,accountAddress:"0x1",resourceType:"0x1::account::OriginatingAddress",options:o}),{address_map:{handle:r}}=s,c=a.from(t);try{let i=await P({aptosConfig:n,handle:r,data:{key:c.toString(),key_type:"address",value_type:"address"},options:o});return a.from(i)}catch(i){if(i instanceof m&&i.data.error_code==="table_item_not_found")return c;throw i}}async function X(e){let{aptosConfig:n,accountAddress:t}=e,s={owner_address:{_eq:a.from(t).toStringLong()},amount:{_gt:0}},c=await d({aptosConfig:n,query:{query:q,variables:{where_condition:s}},originMethod:"getAccountTokensCount"});return c.current_token_ownerships_v2_aggregate.aggregate?c.current_token_ownerships_v2_aggregate.aggregate.count:0}async function Y(e){let{aptosConfig:n,accountAddress:t,options:o}=e,r={owner_address:{_eq:a.from(t).toStringLong()},amount:{_gt:0}};o?.tokenStandard&&(r.token_standard={_eq:o?.tokenStandard});let c={query:T,variables:{where_condition:r,offset:o?.offset,limit:o?.limit,order_by:o?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountOwnedTokens"})).current_token_ownerships_v2}async function Z(e){let{aptosConfig:n,accountAddress:t,collectionAddress:o,options:s}=e,r=a.from(t).toStringLong(),c=a.from(o).toStringLong(),i={owner_address:{_eq:r},current_token_data:{collection_id:{_eq:c}},amount:{_gt:0}};s?.tokenStandard&&(i.token_standard={_eq:s?.tokenStandard});let u={query:b,variables:{where_condition:i,offset:s?.offset,limit:s?.limit,order_by:s?.orderBy}};return(await d({aptosConfig:n,query:u,originMethod:"getAccountOwnedTokensFromCollectionAddress"})).current_token_ownerships_v2}async function oo(e){let{aptosConfig:n,accountAddress:t,options:o}=e,r={owner_address:{_eq:a.from(t).toStringLong()}};o?.tokenStandard&&(r.current_collection={token_standard:{_eq:o?.tokenStandard}});let c={query:k,variables:{where_condition:r,offset:o?.offset,limit:o?.limit,order_by:o?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountCollectionsWithOwnedTokens"})).current_collection_ownership_v2_view}async function eo(e){let{aptosConfig:n,accountAddress:t}=e,o=a.from(t).toStringLong(),r=await d({aptosConfig:n,query:{query:v,variables:{address:o}},originMethod:"getAccountTransactionsCount"});return r.account_transactions_aggregate.aggregate?r.account_transactions_aggregate.aggregate.count:0}async function to(e){let{aptosConfig:n,accountAddress:t,options:o}=e,s=a.from(t).toStringLong(),r={...o?.where,owner_address:{_eq:s}},c={query:w,variables:{where_condition:r,offset:o?.offset,limit:o?.limit,order_by:o?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountCoinsData"})).current_fungible_asset_balances}async function no(e){let{aptosConfig:n,accountAddress:t}=e,o=a.from(t).toStringLong(),r=await d({aptosConfig:n,query:{query:h,variables:{address:o}},originMethod:"getAccountCoinsCount"});if(!r.current_fungible_asset_balances_aggregate.aggregate)throw Error("Failed to get the count of account coins");return r.current_fungible_asset_balances_aggregate.aggregate.count}async function ro(e){let{aptosConfig:n,accountAddress:t,options:o}=e,r={owner_address:{_eq:a.from(t).toStringLong()}},c={query:O,variables:{where_condition:r,offset:o?.offset,limit:o?.limit,order_by:o?.orderBy}};return(await d({aptosConfig:n,query:c,originMethod:"getAccountOwnedObjects"})).current_objects}async function so(e){let{aptosConfig:n,privateKey:t}=e,o=new C(t.publicKey());if(t instanceof y){let r=g.fromPublicKey({publicKey:o}).derivedAddress();return f.fromPrivateKey({privateKey:t,address:r})}if(t instanceof l){let s=g.fromPublicKey({publicKey:o});if(await M({authKey:s,aptosConfig:n})){let u=s.derivedAddress();return f.fromPrivateKey({privateKey:t,address:u,legacy:!1})}let c=g.fromPublicKey({publicKey:o.publicKey});if(await M({authKey:c,aptosConfig:n})){let u=c.derivedAddress();return f.fromPrivateKey({privateKey:t,address:u,legacy:!0})}}throw new Error(`Can't derive account from private key ${t}`)}async function M(e){let{aptosConfig:n,authKey:t}=e,o=await Q({aptosConfig:n,authenticationKey:t.derivedAddress()});try{return await S({aptosConfig:n,accountAddress:o}),!0}catch(s){if(s.status===404)return!1;throw new Error(`Error while looking for an account info ${o.toString()}`)}}export{S as a,z as b,H as c,J as d,U as e,K as f,Q as g,X as h,Y as i,Z as j,oo as k,eo as l,to as m,no as n,ro as o,so as p,M as q};
2
+ //# sourceMappingURL=chunk-BKEJMQQ6.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-6EMN3BOV.mjs";import{g as r}from"./chunk-D72R4A35.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-JVVK4K6H.mjs.map
1
+ import{b as s}from"./chunk-6EMN3BOV.mjs";import{g as r}from"./chunk-WWZ3METZ.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-BRFHAO2Y.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-WXHVXW5G.mjs";import{a as e}from"./chunk-MJ7K6MUZ.mjs";import{b as s}from"./chunk-QPP6BX53.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-TJI233SP.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-IYQISVDX.mjs";import{a as e}from"./chunk-EWZ2M5BW.mjs";import{b as s}from"./chunk-QPP6BX53.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-CPPBQDHB.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-VNTZZ7AM.mjs";import{a as e}from"./chunk-FRG5RXIG.mjs";import{a as r}from"./chunk-HPZ2S4FE.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-BJIICNRF.mjs.map
1
+ import{a as i}from"./chunk-5655UVIK.mjs";import{a as e}from"./chunk-N5JNKD5F.mjs";import{a as r}from"./chunk-HPZ2S4FE.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-CVDR5SJR.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-Q4XR6QOZ.mjs";import{b as S}from"./chunk-IMGLHDIA.mjs";import{a as b}from"./chunk-BF4ZE37Q.mjs";import{d as K,f as A,g as v,h as E,i as H,j as P}from"./chunk-LR65XHSF.mjs";import{a as p}from"./chunk-KA6FZNWP.mjs";import{a as f}from"./chunk-HPZ2S4FE.mjs";import{b as s}from"./chunk-BCUSI3N6.mjs";import{ed25519 as y}from"@noble/curves/ed25519";var d=[237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16];function w(z){let e=z.toUint8Array().slice(32);for(let t=d.length-1;t>=0;t-=1){if(e[t]<d[t])return!0;if(e[t]>d[t])return!1}return!1}var i=class i extends S{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==i.LENGTH)throw new Error(`PublicKey length should be ${i.LENGTH}`);this.key=t}verifySignature(e){let{message:t,signature:n}=e;if(!w(n))return!1;let o=g(t),c=s.fromHexInput(o).toUint8Array(),u=n.toUint8Array(),l=this.key.toUint8Array();return y.verify(u,c,l)}authKey(){return p.fromSchemeAndBytes({scheme:0,input:this.toUint8Array()})}toUint8Array(){return this.key.toUint8Array()}serialize(e){e.serializeBytes(this.key.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new i(t)}static isPublicKey(e){return e instanceof i}static isInstance(e){return"key"in e&&e.key?.data?.length===i.LENGTH}};i.LENGTH=32;var m=i,r=class r extends f{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==r.LENGTH)throw new Error(`PrivateKey length should be ${r.LENGTH}`);this.signingKey=t}static generate(){let e=y.utils.randomPrivateKey();return new r(e)}static fromDerivationPath(e,t){if(!A(e))throw new Error(`Invalid derivation path ${e}`);return r.fromDerivationPathInner(e,P(t))}static fromDerivationPathInner(e,t,n=K){let{key:o,chainCode:c}=v(r.SLIP_0010_SEED,t),u=H(e).map(x=>parseInt(x,10)),{key:l}=u.reduce((x,I)=>E(x,I+n),{key:o,chainCode:c});return new r(l)}publicKey(){let e=y.getPublicKey(this.signingKey.toUint8Array());return new m(e)}sign(e){let t=g(e),n=s.fromHexInput(t).toUint8Array(),o=y.sign(n,this.signingKey.toUint8Array());return new h(o)}toUint8Array(){return this.signingKey.toUint8Array()}toString(){return this.signingKey.toString()}serialize(e){e.serializeBytes(this.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new r(t)}static isPrivateKey(e){return e instanceof r}};r.LENGTH=32,r.SLIP_0010_SEED="ed25519 seed";var U=r,a=class a extends b{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==a.LENGTH)throw new Error(`Signature length should be ${a.LENGTH}`);this.data=t}toUint8Array(){return this.data.toUint8Array()}serialize(e){e.serializeBytes(this.data.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new a(t)}};a.LENGTH=64;var h=a;export{w as a,m as b,U as c,h as d};
2
- //# sourceMappingURL=chunk-G7EILN6D.mjs.map
1
+ import{b as S}from"./chunk-IMGLHDIA.mjs";import{a as b}from"./chunk-BF4ZE37Q.mjs";import{a as g}from"./chunk-Q4XR6QOZ.mjs";import{d as K,f as A,g as v,h as E,i as H,j as P}from"./chunk-LR65XHSF.mjs";import{a as p}from"./chunk-KA6FZNWP.mjs";import{a as f}from"./chunk-HPZ2S4FE.mjs";import{b as s}from"./chunk-BCUSI3N6.mjs";import{ed25519 as y}from"@noble/curves/ed25519";var d=[237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16];function w(z){let e=z.toUint8Array().slice(32);for(let t=d.length-1;t>=0;t-=1){if(e[t]<d[t])return!0;if(e[t]>d[t])return!1}return!1}var i=class i extends S{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==i.LENGTH)throw new Error(`PublicKey length should be ${i.LENGTH}`);this.key=t}verifySignature(e){let{message:t,signature:n}=e;if(!w(n))return!1;let o=g(t),c=s.fromHexInput(o).toUint8Array(),u=n.toUint8Array(),l=this.key.toUint8Array();return y.verify(u,c,l)}authKey(){return p.fromSchemeAndBytes({scheme:0,input:this.toUint8Array()})}toUint8Array(){return this.key.toUint8Array()}serialize(e){e.serializeBytes(this.key.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new i(t)}static isPublicKey(e){return e instanceof i}static isInstance(e){return"key"in e&&e.key?.data?.length===i.LENGTH}};i.LENGTH=32;var m=i,r=class r extends f{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==r.LENGTH)throw new Error(`PrivateKey length should be ${r.LENGTH}`);this.signingKey=t}static generate(){let e=y.utils.randomPrivateKey();return new r(e)}static fromDerivationPath(e,t){if(!A(e))throw new Error(`Invalid derivation path ${e}`);return r.fromDerivationPathInner(e,P(t))}static fromDerivationPathInner(e,t,n=K){let{key:o,chainCode:c}=v(r.SLIP_0010_SEED,t),u=H(e).map(x=>parseInt(x,10)),{key:l}=u.reduce((x,I)=>E(x,I+n),{key:o,chainCode:c});return new r(l)}publicKey(){let e=y.getPublicKey(this.signingKey.toUint8Array());return new m(e)}sign(e){let t=g(e),n=s.fromHexInput(t).toUint8Array(),o=y.sign(n,this.signingKey.toUint8Array());return new h(o)}toUint8Array(){return this.signingKey.toUint8Array()}toString(){return this.signingKey.toString()}serialize(e){e.serializeBytes(this.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new r(t)}static isPrivateKey(e){return e instanceof r}};r.LENGTH=32,r.SLIP_0010_SEED="ed25519 seed";var U=r,a=class a extends b{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==a.LENGTH)throw new Error(`Signature length should be ${a.LENGTH}`);this.data=t}toUint8Array(){return this.data.toUint8Array()}serialize(e){e.serializeBytes(this.data.toUint8Array())}static deserialize(e){let t=e.deserializeBytes();return new a(t)}};a.LENGTH=64;var h=a;export{w as a,m as b,U as c,h as d};
2
+ //# sourceMappingURL=chunk-DAJOX4PL.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-MJ7K6MUZ.mjs";import{a as o,b as r,c as s}from"./chunk-MHRQHVM3.mjs";var a=class{constructor(e){this.config=e}async getTableItem(e){return o({aptosConfig:this.config,...e})}async getTableItemsData(e){return await t({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"default_processor"}),r({aptosConfig:this.config,...e})}async getTableItemsMetadata(e){return await t({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"default_processor"}),s({aptosConfig:this.config,...e})}};export{a};
2
- //# sourceMappingURL=chunk-4D6EDVZW.mjs.map
1
+ import{a as t}from"./chunk-EWZ2M5BW.mjs";import{a as o,b as r,c as s}from"./chunk-STGYDB5E.mjs";var a=class{constructor(e){this.config=e}async getTableItem(e){return o({aptosConfig:this.config,...e})}async getTableItemsData(e){return await t({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"default_processor"}),r({aptosConfig:this.config,...e})}async getTableItemsMetadata(e){return await t({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"default_processor"}),s({aptosConfig:this.config,...e})}};export{a};
2
+ //# sourceMappingURL=chunk-DAXKRXRK.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as d}from"./chunk-YFQSFUKY.mjs";import{a as o}from"./chunk-MJ7K6MUZ.mjs";import{a as y,b as C,c as l,d as T,e as O,f as P,g as h,h as S,i as L,j as R,k as V,l as I,m as b,n as w,o as v,p as M}from"./chunk-UH7ADIR7.mjs";import{a as f}from"./chunk-WP7WF54Q.mjs";import{b as r}from"./chunk-QPP6BX53.mjs";import{a as p}from"./chunk-AH44UPM4.mjs";import{g,h as m}from"./chunk-UAL27G6B.mjs";import{e as u,f as A}from"./chunk-EXP5STXZ.mjs";var N=class{constructor(e){this.config=e}async getAccountInfo(e){return y({aptosConfig:this.config,...e})}async getAccountModules(e){return C({aptosConfig:this.config,...e})}async getAccountModule(e){return l({aptosConfig:this.config,...e})}async getAccountTransactions(e){return T({aptosConfig:this.config,...e})}async getAccountResources(e){return O({aptosConfig:this.config,...e})}async getAccountResource(e){return P({aptosConfig:this.config,...e})}async lookupOriginalAccountAddress(e){return h({aptosConfig:this.config,...e})}async getAccountTokensCount(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"account_transactions_processor"}),S({aptosConfig:this.config,...e})}async getAccountOwnedTokens(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"token_v2_processor"}),L({aptosConfig:this.config,...e})}async getAccountOwnedTokensFromCollectionAddress(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"token_v2_processor"}),R({aptosConfig:this.config,...e})}async getAccountCollectionsWithOwnedTokens(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"token_v2_processor"}),V({aptosConfig:this.config,...e})}async getAccountTransactionsCount(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"account_transactions_processor"}),I({aptosConfig:this.config,...e})}async getAccountCoinsData(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"fungible_asset_processor"}),b({aptosConfig:this.config,...e})}async getAccountCoinsCount(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"fungible_asset_processor"}),w({aptosConfig:this.config,...e})}async getAccountAPTAmount(e){return this.getAccountCoinAmount({coinType:u,faMetadataAddress:A,...e})}async getAccountCoinAmount(e){let{accountAddress:a,coinType:s,faMetadataAddress:t}=e,c=s;s===void 0&&t!==void 0&&(c=await p(async()=>{try{let n=(await d({aptosConfig:this.config,payload:{function:"0x1::coin::paired_coin",functionArguments:[t]}})).at(0);if(n.vec.length>0&&m(n.vec[0]))return g(n.vec[0])}catch{}},`coin-mapping-${t.toString()}`,1e3*60*5)());let i;if(s!==void 0&&t!==void 0)i=r.from(t).toStringLong();else if(s!==void 0&&t===void 0)s===u?i=r.A.toStringLong():i=f(r.A,s).toStringLong();else if(s===void 0&&t!==void 0){let n=r.from(t);i=n.toStringLong(),n===r.A&&(c=u)}else throw new Error("Either coinType, faMetadataAddress, or both must be provided");if(c!==void 0){let[n]=await d({aptosConfig:this.config,payload:{function:"0x1::coin::balance",typeArguments:[c],functionArguments:[a]}});return parseInt(n,10)}let[k]=await d({aptosConfig:this.config,payload:{function:"0x1::primary_fungible_store::balance",typeArguments:["0x1::object::ObjectCore"],functionArguments:[a,i]}});return parseInt(k,10)}async getAccountOwnedObjects(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"default_processor"}),v({aptosConfig:this.config,...e})}async deriveAccountFromPrivateKey(e){return M({aptosConfig:this.config,...e})}};export{N as a};
2
- //# sourceMappingURL=chunk-XD4E5FEG.mjs.map
1
+ import{a as o}from"./chunk-EWZ2M5BW.mjs";import{a as d}from"./chunk-G7MWTE2J.mjs";import{a as y,b as C,c as l,d as T,e as O,f as P,g as h,h as S,i as L,j as R,k as V,l as I,m as b,n as w,o as v,p as M}from"./chunk-BKEJMQQ6.mjs";import{a as f}from"./chunk-WP7WF54Q.mjs";import{b as r}from"./chunk-QPP6BX53.mjs";import{a as p}from"./chunk-AH44UPM4.mjs";import{g,h as m}from"./chunk-UAL27G6B.mjs";import{e as u,f as A}from"./chunk-EXP5STXZ.mjs";var N=class{constructor(e){this.config=e}async getAccountInfo(e){return y({aptosConfig:this.config,...e})}async getAccountModules(e){return C({aptosConfig:this.config,...e})}async getAccountModule(e){return l({aptosConfig:this.config,...e})}async getAccountTransactions(e){return T({aptosConfig:this.config,...e})}async getAccountResources(e){return O({aptosConfig:this.config,...e})}async getAccountResource(e){return P({aptosConfig:this.config,...e})}async lookupOriginalAccountAddress(e){return h({aptosConfig:this.config,...e})}async getAccountTokensCount(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"account_transactions_processor"}),S({aptosConfig:this.config,...e})}async getAccountOwnedTokens(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"token_v2_processor"}),L({aptosConfig:this.config,...e})}async getAccountOwnedTokensFromCollectionAddress(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"token_v2_processor"}),R({aptosConfig:this.config,...e})}async getAccountCollectionsWithOwnedTokens(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"token_v2_processor"}),V({aptosConfig:this.config,...e})}async getAccountTransactionsCount(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"account_transactions_processor"}),I({aptosConfig:this.config,...e})}async getAccountCoinsData(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"fungible_asset_processor"}),b({aptosConfig:this.config,...e})}async getAccountCoinsCount(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"fungible_asset_processor"}),w({aptosConfig:this.config,...e})}async getAccountAPTAmount(e){return this.getAccountCoinAmount({coinType:u,faMetadataAddress:A,...e})}async getAccountCoinAmount(e){let{accountAddress:a,coinType:s,faMetadataAddress:t}=e,c=s;s===void 0&&t!==void 0&&(c=await p(async()=>{try{let n=(await d({aptosConfig:this.config,payload:{function:"0x1::coin::paired_coin",functionArguments:[t]}})).at(0);if(n.vec.length>0&&m(n.vec[0]))return g(n.vec[0])}catch{}},`coin-mapping-${t.toString()}`,1e3*60*5)());let i;if(s!==void 0&&t!==void 0)i=r.from(t).toStringLong();else if(s!==void 0&&t===void 0)s===u?i=r.A.toStringLong():i=f(r.A,s).toStringLong();else if(s===void 0&&t!==void 0){let n=r.from(t);i=n.toStringLong(),n===r.A&&(c=u)}else throw new Error("Either coinType, faMetadataAddress, or both must be provided");if(c!==void 0){let[n]=await d({aptosConfig:this.config,payload:{function:"0x1::coin::balance",typeArguments:[c],functionArguments:[a]}});return parseInt(n,10)}let[k]=await d({aptosConfig:this.config,payload:{function:"0x1::primary_fungible_store::balance",typeArguments:["0x1::object::ObjectCore"],functionArguments:[a,i]}});return parseInt(k,10)}async getAccountOwnedObjects(e){return await o({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"default_processor"}),v({aptosConfig:this.config,...e})}async deriveAccountFromPrivateKey(e){return M({aptosConfig:this.config,...e})}};export{N as a};
2
+ //# sourceMappingURL=chunk-DF4WKSTK.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-QPP6BX53.mjs";import{c as n}from"./chunk-QB4XTGDH.mjs";import{o as g,t as d}from"./chunk-VHNX2NUR.mjs";async function m(e){let{aptosConfig:t,poolAddress:o}=e,r=s.from(o).toStringLong(),i=await n({aptosConfig:t,query:{query:d,variables:{where_condition:{pool_address:{_eq:r}}}}});return i.num_active_delegator_per_pool[0]?i.num_active_delegator_per_pool[0].num_active_delegator:0}async function f(e){let{aptosConfig:t,options:o}=e,r={query:d,variables:{order_by:o?.orderBy}};return(await n({aptosConfig:t,query:r})).num_active_delegator_per_pool}async function A(e){let{aptosConfig:t,delegatorAddress:o,poolAddress:r}=e,a={query:g,variables:{delegatorAddress:s.from(o).toStringLong(),poolAddress:s.from(r).toStringLong()}};return(await n({aptosConfig:t,query:a})).delegated_staking_activities}export{m as a,f as b,A as c};
2
- //# sourceMappingURL=chunk-AN37GM4N.mjs.map
1
+ import{c as n}from"./chunk-GFGX3QDP.mjs";import{o as g,t as d}from"./chunk-VHNX2NUR.mjs";import{b as s}from"./chunk-QPP6BX53.mjs";async function m(e){let{aptosConfig:t,poolAddress:o}=e,r=s.from(o).toStringLong(),i=await n({aptosConfig:t,query:{query:d,variables:{where_condition:{pool_address:{_eq:r}}}}});return i.num_active_delegator_per_pool[0]?i.num_active_delegator_per_pool[0].num_active_delegator:0}async function f(e){let{aptosConfig:t,options:o}=e,r={query:d,variables:{order_by:o?.orderBy}};return(await n({aptosConfig:t,query:r})).num_active_delegator_per_pool}async function A(e){let{aptosConfig:t,delegatorAddress:o,poolAddress:r}=e,a={query:g,variables:{delegatorAddress:s.from(o).toStringLong(),poolAddress:s.from(r).toStringLong()}};return(await n({aptosConfig:t,query:a})).delegated_staking_activities}export{m as a,f as b,A as c};
2
+ //# sourceMappingURL=chunk-ECWOLU5T.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as p}from"./chunk-E6O72G24.mjs";async function r(e){let{aptosConfig:t,overrides:s,params:n,contentType:o,acceptType:i,path:a,originMethod:R,type:d}=e,u=t.getRequestUrl(d);return p({url:u,method:"GET",originMethod:R,path:a,contentType:o,acceptType:i,params:n,overrides:{...t.clientConfig,...s}},t,e.type)}async function m(e){let{aptosConfig:t}=e;return r({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function y(e){return r({...e,type:"Pepper"})}async function A(e){let t=[],s,n=e.params;do{let o=await r({type:"Fullnode",aptosConfig:e.aptosConfig,originMethod:e.originMethod,path:e.path,params:n,overrides:e.overrides});s=o.headers["x-aptos-cursor"],delete o.headers,t.push(...o.data),n.start=s}while(s!=null);return t}export{r as a,m as b,y as c,A as d};
2
- //# sourceMappingURL=chunk-3RBIEWVC.mjs.map
1
+ import{b as p}from"./chunk-PUZ25PTD.mjs";async function r(e){let{aptosConfig:t,overrides:s,params:n,contentType:o,acceptType:i,path:a,originMethod:R,type:d}=e,u=t.getRequestUrl(d);return p({url:u,method:"GET",originMethod:R,path:a,contentType:o,acceptType:i,params:n,overrides:{...t.clientConfig,...s}},t,e.type)}async function m(e){let{aptosConfig:t}=e;return r({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function y(e){return r({...e,type:"Pepper"})}async function A(e){let t=[],s,n=e.params;do{let o=await r({type:"Fullnode",aptosConfig:e.aptosConfig,originMethod:e.originMethod,path:e.path,params:n,overrides:e.overrides});s=o.headers["x-aptos-cursor"],delete o.headers,t.push(...o.data),n.start=s}while(s!=null);return t}export{r as a,m as b,y as c,A as d};
2
+ //# sourceMappingURL=chunk-EV2USF7B.mjs.map
@@ -1,2 +1,2 @@
1
- import{h as e}from"./chunk-R7FVBWBJ.mjs";async function i(o){o.minimumLedgerVersion!==void 0&&await e({aptosConfig:o.config,minimumLedgerVersion:o.minimumLedgerVersion,processorType:o.processorType})}export{i as a};
2
- //# sourceMappingURL=chunk-MJ7K6MUZ.mjs.map
1
+ import{h as e}from"./chunk-MO4IZXLK.mjs";async function i(o){o.minimumLedgerVersion!==void 0&&await e({aptosConfig:o.config,minimumLedgerVersion:o.minimumLedgerVersion,processorType:o.processorType})}export{i as a};
2
+ //# sourceMappingURL=chunk-EWZ2M5BW.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-U4MIJ2SL.mjs";import{a as n}from"./chunk-Z34TLNCN.mjs";import{c as i}from"./chunk-G7EILN6D.mjs";var o=class{static generate(e={}){let{scheme:t=0,legacy:r=!0}=e;return t===0&&r?n.generate():c.generate({scheme:t})}static fromPrivateKey(e){let{privateKey:t,address:r,legacy:a=!0}=e;return t instanceof i&&a?new n({privateKey:t,address:r}):new c({privateKey:t,address:r})}static fromPrivateKeyAndAddress(e){return this.fromPrivateKey(e)}static fromDerivationPath(e){let{scheme:t=0,mnemonic:r,path:a,legacy:s=!0}=e;return t===0&&s?n.fromDerivationPath({mnemonic:r,path:a}):c.fromDerivationPath({scheme:t,mnemonic:r,path:a})}static authKey(e){let{publicKey:t}=e;return t.authKey()}verifySignature(e){return this.publicKey.verifySignature(e)}};export{o as a};
2
- //# sourceMappingURL=chunk-ZRFOTNLQ.mjs.map
1
+ import{a as c}from"./chunk-B6M7QBUO.mjs";import{a as n}from"./chunk-KYSDF3CA.mjs";import{c as i}from"./chunk-DAJOX4PL.mjs";var o=class{static generate(e={}){let{scheme:t=0,legacy:r=!0}=e;return t===0&&r?n.generate():c.generate({scheme:t})}static fromPrivateKey(e){let{privateKey:t,address:r,legacy:a=!0}=e;return t instanceof i&&a?new n({privateKey:t,address:r}):new c({privateKey:t,address:r})}static fromPrivateKeyAndAddress(e){return this.fromPrivateKey(e)}static fromDerivationPath(e){let{scheme:t=0,mnemonic:r,path:a,legacy:s=!0}=e;return t===0&&s?n.fromDerivationPath({mnemonic:r,path:a}):c.fromDerivationPath({scheme:t,mnemonic:r,path:a})}static authKey(e){let{publicKey:t}=e;return t.authKey()}verifySignature(e){return this.publicKey.verifySignature(e)}};export{o as a};
2
+ //# sourceMappingURL=chunk-FRGXKOU5.mjs.map
@@ -1,2 +1,2 @@
1
- import{c as p}from"./chunk-WFXL7LIC.mjs";import{b as a}from"./chunk-SS4IPKAI.mjs";import{b as s}from"./chunk-HPZ2S4FE.mjs";async function F(n){let{aptosConfig:e,payload:o,options:t}=n,i=await p({...o,aptosConfig:e}),r=new s;i.serialize(r);let u=r.toUint8Array(),{data:d}=await a({aptosConfig:e,path:"view",originMethod:"view",contentType:"application/x.aptos.view_function+bcs",params:{ledger_version:t?.ledgerVersion},body:u});return d}async function M(n){let{aptosConfig:e,payload:o,options:t}=n,{data:i}=await a({aptosConfig:e,originMethod:"viewJson",path:"view",params:{ledger_version:t?.ledgerVersion},body:{function:o.function,type_arguments:o.typeArguments??[],arguments:o.functionArguments??[]}});return i}export{F as a,M as b};
2
- //# sourceMappingURL=chunk-YFQSFUKY.mjs.map
1
+ import{c as p}from"./chunk-MEWFJJJN.mjs";import{b as a}from"./chunk-7V6DEA7G.mjs";import{b as s}from"./chunk-HPZ2S4FE.mjs";async function F(n){let{aptosConfig:e,payload:o,options:t}=n,i=await p({...o,aptosConfig:e}),r=new s;i.serialize(r);let u=r.toUint8Array(),{data:d}=await a({aptosConfig:e,path:"view",originMethod:"view",contentType:"application/x.aptos.view_function+bcs",params:{ledger_version:t?.ledgerVersion},body:u});return d}async function M(n){let{aptosConfig:e,payload:o,options:t}=n,{data:i}=await a({aptosConfig:e,originMethod:"viewJson",path:"view",params:{ledger_version:t?.ledgerVersion},body:{function:o.function,type_arguments:o.typeArguments??[],arguments:o.functionArguments??[]}});return i}export{F as a,M as b};
2
+ //# sourceMappingURL=chunk-G7MWTE2J.mjs.map
@@ -1,2 +1,2 @@
1
- import{l as c,v as n}from"./chunk-VHNX2NUR.mjs";import{b as i}from"./chunk-3RBIEWVC.mjs";import{c as p}from"./chunk-SS4IPKAI.mjs";async function d(o){let{aptosConfig:s}=o,{data:e}=await i({aptosConfig:s,originMethod:"getLedgerInfo",path:""});return e}async function C(o){let{aptosConfig:s,limit:e}=o;return(await a({aptosConfig:s,query:{query:c,variables:{limit:e}},originMethod:"getChainTopUserTransactions"})).user_transactions}async function a(o){let{aptosConfig:s,query:e,originMethod:t}=o,{data:r}=await p({aptosConfig:s,originMethod:t??"queryIndexer",path:"",body:e,overrides:{WITH_CREDENTIALS:!1}});return r}async function u(o){let{aptosConfig:s}=o;return(await a({aptosConfig:s,query:{query:n},originMethod:"getProcessorStatuses"})).processor_status}async function h(o){let s=await u({aptosConfig:o.aptosConfig});return BigInt(s[0].last_success_version)}async function T(o){let{aptosConfig:s,processorType:e}=o;return(await a({aptosConfig:s,query:{query:n,variables:{where_condition:{processor:{_eq:e}}}},originMethod:"getProcessorStatus"})).processor_status[0]}export{d as a,C as b,a as c,u as d,h as e,T as f};
2
- //# sourceMappingURL=chunk-QB4XTGDH.mjs.map
1
+ import{l as c,v as n}from"./chunk-VHNX2NUR.mjs";import{b as i}from"./chunk-EV2USF7B.mjs";import{c as p}from"./chunk-7V6DEA7G.mjs";async function d(o){let{aptosConfig:s}=o,{data:e}=await i({aptosConfig:s,originMethod:"getLedgerInfo",path:""});return e}async function C(o){let{aptosConfig:s,limit:e}=o;return(await a({aptosConfig:s,query:{query:c,variables:{limit:e}},originMethod:"getChainTopUserTransactions"})).user_transactions}async function a(o){let{aptosConfig:s,query:e,originMethod:t}=o,{data:r}=await p({aptosConfig:s,originMethod:t??"queryIndexer",path:"",body:e,overrides:{WITH_CREDENTIALS:!1}});return r}async function u(o){let{aptosConfig:s}=o;return(await a({aptosConfig:s,query:{query:n},originMethod:"getProcessorStatuses"})).processor_status}async function h(o){let s=await u({aptosConfig:o.aptosConfig});return BigInt(s[0].last_success_version)}async function T(o){let{aptosConfig:s,processorType:e}=o;return(await a({aptosConfig:s,query:{query:n,variables:{where_condition:{processor:{_eq:e}}}},originMethod:"getProcessorStatus"})).processor_status[0]}export{d as a,C as b,a as c,u as d,h as e,T as f};
2
+ //# sourceMappingURL=chunk-GFGX3QDP.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o,b as h}from"./chunk-TVIQLBVA.mjs";import{b as m}from"./chunk-IMGLHDIA.mjs";import{a as g}from"./chunk-BF4ZE37Q.mjs";import{a as b}from"./chunk-KA6FZNWP.mjs";function d(l){let e=l;return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}var f=class l extends m{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 o?i:new o(i)),this.signaturesRequired=t}verifySignature(e){throw new Error("not implemented")}authKey(){return b.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(o),t=e.deserializeU8();return new l({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,u)=>{if(u+1>this.publicKeys.length)throw new Error(`Signature index ${u+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 c=Math.floor(n/8),y=i[c];y|=t>>n%8,i[c]=y}),i}getIndex(e){let r=e instanceof o?e:new o(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 g{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 h?a:new h(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+d(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 u=Math.floor(n/8),c=i[u];c|=t>>n%8,i[u]=c}),i}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.signatures),e.serializeBytes(this.bitmap)}static deserialize(e){let r=e.deserializeVector(h),t=e.deserializeBytes();return new s({signatures:r,bitmap:t})}};s.BITMAP_LEN=4,s.MAX_SIGNATURES_SUPPORTED=s.BITMAP_LEN*8;var p=s;export{f as a,p as b};
2
- //# sourceMappingURL=chunk-NFLXGKHO.mjs.map
1
+ import{a as o,b as h}from"./chunk-U67PFBTL.mjs";import{b as m}from"./chunk-IMGLHDIA.mjs";import{a as g}from"./chunk-BF4ZE37Q.mjs";import{a as b}from"./chunk-KA6FZNWP.mjs";function d(l){let e=l;return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}var f=class l extends m{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 o?i:new o(i)),this.signaturesRequired=t}verifySignature(e){throw new Error("not implemented")}authKey(){return b.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(o),t=e.deserializeU8();return new l({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,u)=>{if(u+1>this.publicKeys.length)throw new Error(`Signature index ${u+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 c=Math.floor(n/8),y=i[c];y|=t>>n%8,i[c]=y}),i}getIndex(e){let r=e instanceof o?e:new o(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 g{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 h?a:new h(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+d(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 u=Math.floor(n/8),c=i[u];c|=t>>n%8,i[u]=c}),i}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.signatures),e.serializeBytes(this.bitmap)}static deserialize(e){let r=e.deserializeVector(h),t=e.deserializeBytes();return new s({signatures:r,bitmap:t})}};s.BITMAP_LEN=4,s.MAX_SIGNATURES_SUPPORTED=s.BITMAP_LEN*8;var p=s;export{f as a,p as b};
2
+ //# sourceMappingURL=chunk-GGR3P2TG.mjs.map