@aptos-labs/ts-sdk 1.29.0-zeta.0 → 1.29.0-zeta.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 (274) hide show
  1. package/dist/common/index.d.ts +5 -0
  2. package/dist/common/index.js +3 -3
  3. package/dist/common/index.js.map +1 -1
  4. package/dist/esm/account/AbstractKeylessAccount.d.mts +1 -0
  5. package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
  6. package/dist/esm/account/Account.mjs +1 -1
  7. package/dist/esm/account/Ed25519Account.mjs +1 -1
  8. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  9. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  10. package/dist/esm/account/KeylessAccount.d.mts +5 -1
  11. package/dist/esm/account/KeylessAccount.mjs +1 -1
  12. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  13. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  14. package/dist/esm/account/index.mjs +1 -1
  15. package/dist/esm/api/account.mjs +1 -1
  16. package/dist/esm/api/ans.mjs +1 -1
  17. package/dist/esm/api/aptos.mjs +1 -1
  18. package/dist/esm/api/aptosConfig.mjs +1 -1
  19. package/dist/esm/api/coin.mjs +1 -1
  20. package/dist/esm/api/digitalAsset.mjs +1 -1
  21. package/dist/esm/api/event.mjs +1 -1
  22. package/dist/esm/api/faucet.mjs +1 -1
  23. package/dist/esm/api/fungibleAsset.mjs +1 -1
  24. package/dist/esm/api/general.mjs +1 -1
  25. package/dist/esm/api/index.mjs +1 -1
  26. package/dist/esm/api/keyless.mjs +1 -1
  27. package/dist/esm/api/object.mjs +1 -1
  28. package/dist/esm/api/staking.mjs +1 -1
  29. package/dist/esm/api/table.mjs +1 -1
  30. package/dist/esm/api/transaction.mjs +1 -1
  31. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  32. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  33. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  34. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  35. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  36. package/dist/esm/api/utils.mjs +1 -1
  37. package/dist/esm/bcs/index.mjs +1 -1
  38. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  39. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  40. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  41. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  42. package/dist/esm/bcs/serializer.mjs +1 -1
  43. package/dist/esm/{chunk-2AGCC7DU.mjs → chunk-33DMJ7SF.mjs} +2 -2
  44. package/dist/esm/{chunk-6VJ3HRHN.mjs → chunk-4BMEOXWL.mjs} +2 -2
  45. package/dist/esm/{chunk-TEM2STPT.mjs → chunk-4D6EDVZW.mjs} +2 -2
  46. package/dist/esm/{chunk-WVITQ3K7.mjs → chunk-5BUJ6N72.mjs} +2 -2
  47. package/dist/esm/{chunk-M2GJ6B3I.mjs → chunk-5GD2TVJW.mjs} +2 -2
  48. package/dist/esm/{chunk-G4JQEJQT.mjs → chunk-65JGB4JK.mjs} +2 -2
  49. package/dist/esm/{chunk-A3AGTDS6.mjs → chunk-6HOEJLTL.mjs} +2 -2
  50. package/dist/esm/{chunk-YPHH6CAO.mjs → chunk-6QGVRNV6.mjs} +2 -2
  51. package/dist/esm/{chunk-7PDF3O5A.mjs → chunk-6ZRARME6.mjs} +2 -2
  52. package/dist/esm/{chunk-VSMEQLV6.mjs → chunk-7KWFE3OU.mjs} +2 -2
  53. package/dist/esm/{chunk-LWRYJL3W.mjs → chunk-7YXNZTCS.mjs} +2 -2
  54. package/dist/esm/{chunk-XFT2EE4O.mjs → chunk-AN37GM4N.mjs} +2 -2
  55. package/dist/esm/{chunk-FL2G3JFQ.mjs → chunk-B3QK4FQY.mjs} +2 -2
  56. package/dist/esm/{chunk-MLDQ2TY2.mjs → chunk-BF4ZE37Q.mjs} +2 -2
  57. package/dist/esm/{chunk-KQYOM3J6.mjs → chunk-BJIICNRF.mjs} +2 -2
  58. package/dist/esm/{chunk-VWQQLTCH.mjs → chunk-BYZKUWCV.mjs} +2 -2
  59. package/dist/esm/{chunk-QQU4IQ27.mjs → chunk-CCMHWJ3Q.mjs} +2 -2
  60. package/dist/esm/{chunk-7NYFGX5Q.mjs → chunk-CG7SPTMT.mjs} +2 -2
  61. package/dist/esm/chunk-CHPQXBMJ.mjs +2 -0
  62. package/dist/esm/chunk-CHPQXBMJ.mjs.map +1 -0
  63. package/dist/esm/{chunk-XG57ULWZ.mjs → chunk-CKQQJXQL.mjs} +2 -2
  64. package/dist/esm/{chunk-B3XOTMTY.mjs → chunk-D72R4A35.mjs} +2 -2
  65. package/dist/esm/{chunk-ULQ4A44I.mjs → chunk-DLKFZIMC.mjs} +2 -2
  66. package/dist/esm/{chunk-SKBUDJFL.mjs → chunk-DWPMDONI.mjs} +2 -2
  67. package/dist/esm/{chunk-YUNDX5I7.mjs → chunk-E37YRKWK.mjs} +2 -2
  68. package/dist/esm/{chunk-KJBS5RFY.mjs → chunk-E65E4RJE.mjs} +2 -2
  69. package/dist/esm/{chunk-HCUQEDI6.mjs → chunk-EDI5UVKO.mjs} +2 -2
  70. package/dist/esm/{chunk-RONLES3F.mjs → chunk-EHANMHHZ.mjs} +2 -2
  71. package/dist/esm/{chunk-EDHO4MI7.mjs → chunk-EXCR5VKV.mjs} +2 -2
  72. package/dist/esm/{chunk-VTHJWK3M.mjs → chunk-FRG5RXIG.mjs} +2 -2
  73. package/dist/esm/{chunk-OGX4PXYG.mjs → chunk-G7EILN6D.mjs} +2 -2
  74. package/dist/esm/{chunk-O7PQILE3.mjs → chunk-G7NFBUOF.mjs} +2 -2
  75. package/dist/esm/{chunk-SCHZ67F3.mjs → chunk-GY6LFCB2.mjs} +2 -2
  76. package/dist/esm/{chunk-SCHZ67F3.mjs.map → chunk-GY6LFCB2.mjs.map} +1 -1
  77. package/dist/esm/{chunk-A63SMUOU.mjs → chunk-HPZ2S4FE.mjs} +2 -2
  78. package/dist/esm/{chunk-SSYYCQGU.mjs → chunk-HQUUESWW.mjs} +2 -2
  79. package/dist/esm/{chunk-VDSDMO5B.mjs → chunk-IAPQS7TH.mjs} +2 -2
  80. package/dist/esm/{chunk-76OH2Z4Q.mjs → chunk-IMGLHDIA.mjs} +2 -2
  81. package/dist/esm/{chunk-ZBDEBFLY.mjs → chunk-IV3FEGJJ.mjs} +2 -2
  82. package/dist/esm/chunk-JKTVSNFQ.mjs +2 -0
  83. package/dist/esm/chunk-JKTVSNFQ.mjs.map +1 -0
  84. package/dist/esm/{chunk-DUDSFTMJ.mjs → chunk-JVVK4K6H.mjs} +2 -2
  85. package/dist/esm/{chunk-G5MGSV7Y.mjs → chunk-KA6FZNWP.mjs} +2 -2
  86. package/dist/esm/{chunk-LZMZCQXB.mjs → chunk-LMO74K6V.mjs} +2 -2
  87. package/dist/esm/{chunk-BOYYQAB4.mjs → chunk-LXLISEQ4.mjs} +2 -2
  88. package/dist/esm/chunk-LYEUGID7.mjs +2 -0
  89. package/dist/esm/chunk-LYEUGID7.mjs.map +1 -0
  90. package/dist/esm/{chunk-MQGW234H.mjs → chunk-M2QV232A.mjs} +2 -2
  91. package/dist/esm/{chunk-UIWXJU6Z.mjs → chunk-MGTUMRQW.mjs} +2 -2
  92. package/dist/esm/{chunk-H6YNXJNF.mjs → chunk-MS4MRLGA.mjs} +2 -2
  93. package/dist/esm/{chunk-C26X2GLF.mjs → chunk-NFLXGKHO.mjs} +2 -2
  94. package/dist/esm/{chunk-POSSCOHV.mjs → chunk-NTTZKATR.mjs} +2 -2
  95. package/dist/esm/{chunk-UIM56NFQ.mjs → chunk-OGHATIRT.mjs} +2 -2
  96. package/dist/esm/{chunk-NMD45OTM.mjs → chunk-OJL36Q4H.mjs} +2 -2
  97. package/dist/esm/{chunk-NWOMSL6K.mjs → chunk-PKXEB7XP.mjs} +2 -2
  98. package/dist/esm/{chunk-SUJLWCRN.mjs → chunk-QDIKOQRK.mjs} +2 -2
  99. package/dist/esm/{chunk-YDZBU2DJ.mjs → chunk-QIW56MUH.mjs} +2 -2
  100. package/dist/esm/{chunk-OHRL766V.mjs → chunk-QPP6BX53.mjs} +2 -2
  101. package/dist/esm/{chunk-43AF5CUP.mjs → chunk-RG572OEH.mjs} +2 -2
  102. package/dist/esm/{chunk-WLZYSLHP.mjs → chunk-RNTXQYJQ.mjs} +2 -2
  103. package/dist/esm/{chunk-Z7G2ODBC.mjs → chunk-RQNQ5TUX.mjs} +2 -2
  104. package/dist/esm/{chunk-XP34ZZRH.mjs → chunk-SYTI5QO7.mjs} +2 -2
  105. package/dist/esm/{chunk-NJK4DINY.mjs → chunk-T4L7U65D.mjs} +2 -2
  106. package/dist/esm/{chunk-YZ2IE7W2.mjs → chunk-TJI233SP.mjs} +2 -2
  107. package/dist/esm/{chunk-GNJL4HRI.mjs → chunk-TPCG5W2G.mjs} +2 -2
  108. package/dist/esm/{chunk-URF3VICX.mjs → chunk-TVIQLBVA.mjs} +2 -2
  109. package/dist/esm/{chunk-SCHHDWWN.mjs → chunk-U4MIJ2SL.mjs} +2 -2
  110. package/dist/esm/{chunk-3VKFVU25.mjs → chunk-UH7ADIR7.mjs} +2 -2
  111. package/dist/esm/{chunk-Y35QNVIJ.mjs → chunk-UO5WQIIP.mjs} +2 -2
  112. package/dist/esm/{chunk-EG7QHK4U.mjs → chunk-VNTZZ7AM.mjs} +2 -2
  113. package/dist/esm/{chunk-OUZ7HH65.mjs → chunk-WFXL7LIC.mjs} +2 -2
  114. package/dist/esm/{chunk-WRRQ7L5K.mjs → chunk-WP7WF54Q.mjs} +2 -2
  115. package/dist/esm/{chunk-F3C6KUOA.mjs → chunk-WXHVXW5G.mjs} +2 -2
  116. package/dist/esm/{chunk-SPQKH5BG.mjs → chunk-XD4E5FEG.mjs} +2 -2
  117. package/dist/esm/{chunk-HUYDR6MY.mjs → chunk-XLLHYNH7.mjs} +2 -2
  118. package/dist/esm/{chunk-V2YXCX3Q.mjs → chunk-YFQSFUKY.mjs} +2 -2
  119. package/dist/esm/{chunk-P5V7OZNN.mjs → chunk-YJCZU6PR.mjs} +2 -2
  120. package/dist/esm/{chunk-VVHFK6WA.mjs → chunk-YRZQQJCW.mjs} +2 -2
  121. package/dist/esm/{chunk-HSIRO3LE.mjs → chunk-Z34TLNCN.mjs} +2 -2
  122. package/dist/esm/{chunk-MQTQWVKC.mjs → chunk-ZF3BOH6A.mjs} +2 -2
  123. package/dist/esm/{chunk-E2X3MVIQ.mjs → chunk-ZGOO4E6O.mjs} +2 -2
  124. package/dist/esm/{chunk-HXSCC3UV.mjs → chunk-ZRFOTNLQ.mjs} +2 -2
  125. package/dist/esm/client/core.mjs +1 -1
  126. package/dist/esm/client/get.mjs +1 -1
  127. package/dist/esm/client/index.mjs +1 -1
  128. package/dist/esm/client/post.mjs +1 -1
  129. package/dist/esm/core/account/index.mjs +1 -1
  130. package/dist/esm/core/account/utils/address.mjs +1 -1
  131. package/dist/esm/core/account/utils/index.mjs +1 -1
  132. package/dist/esm/core/accountAddress.mjs +1 -1
  133. package/dist/esm/core/authenticationKey.mjs +1 -1
  134. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  135. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  136. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  137. package/dist/esm/core/crypto/index.mjs +1 -1
  138. package/dist/esm/core/crypto/keyless.mjs +1 -1
  139. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  140. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  141. package/dist/esm/core/crypto/proof.mjs +1 -1
  142. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  143. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  144. package/dist/esm/core/crypto/signature.mjs +1 -1
  145. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  146. package/dist/esm/core/index.mjs +1 -1
  147. package/dist/esm/index.mjs +1 -1
  148. package/dist/esm/internal/account.mjs +1 -1
  149. package/dist/esm/internal/ans.mjs +1 -1
  150. package/dist/esm/internal/coin.mjs +1 -1
  151. package/dist/esm/internal/digitalAsset.mjs +1 -1
  152. package/dist/esm/internal/event.mjs +1 -1
  153. package/dist/esm/internal/faucet.mjs +1 -1
  154. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  155. package/dist/esm/internal/general.mjs +1 -1
  156. package/dist/esm/internal/keyless.mjs +1 -1
  157. package/dist/esm/internal/object.mjs +1 -1
  158. package/dist/esm/internal/staking.mjs +1 -1
  159. package/dist/esm/internal/table.mjs +1 -1
  160. package/dist/esm/internal/transaction.mjs +1 -1
  161. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  162. package/dist/esm/internal/view.mjs +1 -1
  163. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  164. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  165. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  166. package/dist/esm/transactions/index.mjs +1 -1
  167. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  168. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  169. package/dist/esm/transactions/instances/index.mjs +1 -1
  170. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  171. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  172. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  173. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  174. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  175. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  176. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  177. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  178. package/dist/esm/transactions/management/index.mjs +1 -1
  179. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  180. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  181. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  182. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  183. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  184. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  185. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  186. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  187. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  188. package/dist/esm/utils/index.mjs +1 -1
  189. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  190. package/package.json +1 -1
  191. package/src/account/AbstractKeylessAccount.ts +3 -2
  192. package/src/account/FederatedKeylessAccount.ts +3 -2
  193. package/src/account/KeylessAccount.ts +9 -2
  194. package/src/utils/apiEndpoints.ts +1 -1
  195. package/dist/esm/chunk-7YLVCZYN.mjs +0 -2
  196. package/dist/esm/chunk-7YLVCZYN.mjs.map +0 -1
  197. package/dist/esm/chunk-BHX5VMNA.mjs +0 -2
  198. package/dist/esm/chunk-BHX5VMNA.mjs.map +0 -1
  199. package/dist/esm/chunk-HR5XRRIH.mjs +0 -2
  200. package/dist/esm/chunk-HR5XRRIH.mjs.map +0 -1
  201. /package/dist/esm/{chunk-2AGCC7DU.mjs.map → chunk-33DMJ7SF.mjs.map} +0 -0
  202. /package/dist/esm/{chunk-6VJ3HRHN.mjs.map → chunk-4BMEOXWL.mjs.map} +0 -0
  203. /package/dist/esm/{chunk-TEM2STPT.mjs.map → chunk-4D6EDVZW.mjs.map} +0 -0
  204. /package/dist/esm/{chunk-WVITQ3K7.mjs.map → chunk-5BUJ6N72.mjs.map} +0 -0
  205. /package/dist/esm/{chunk-M2GJ6B3I.mjs.map → chunk-5GD2TVJW.mjs.map} +0 -0
  206. /package/dist/esm/{chunk-G4JQEJQT.mjs.map → chunk-65JGB4JK.mjs.map} +0 -0
  207. /package/dist/esm/{chunk-A3AGTDS6.mjs.map → chunk-6HOEJLTL.mjs.map} +0 -0
  208. /package/dist/esm/{chunk-YPHH6CAO.mjs.map → chunk-6QGVRNV6.mjs.map} +0 -0
  209. /package/dist/esm/{chunk-7PDF3O5A.mjs.map → chunk-6ZRARME6.mjs.map} +0 -0
  210. /package/dist/esm/{chunk-VSMEQLV6.mjs.map → chunk-7KWFE3OU.mjs.map} +0 -0
  211. /package/dist/esm/{chunk-LWRYJL3W.mjs.map → chunk-7YXNZTCS.mjs.map} +0 -0
  212. /package/dist/esm/{chunk-XFT2EE4O.mjs.map → chunk-AN37GM4N.mjs.map} +0 -0
  213. /package/dist/esm/{chunk-FL2G3JFQ.mjs.map → chunk-B3QK4FQY.mjs.map} +0 -0
  214. /package/dist/esm/{chunk-MLDQ2TY2.mjs.map → chunk-BF4ZE37Q.mjs.map} +0 -0
  215. /package/dist/esm/{chunk-KQYOM3J6.mjs.map → chunk-BJIICNRF.mjs.map} +0 -0
  216. /package/dist/esm/{chunk-VWQQLTCH.mjs.map → chunk-BYZKUWCV.mjs.map} +0 -0
  217. /package/dist/esm/{chunk-QQU4IQ27.mjs.map → chunk-CCMHWJ3Q.mjs.map} +0 -0
  218. /package/dist/esm/{chunk-7NYFGX5Q.mjs.map → chunk-CG7SPTMT.mjs.map} +0 -0
  219. /package/dist/esm/{chunk-XG57ULWZ.mjs.map → chunk-CKQQJXQL.mjs.map} +0 -0
  220. /package/dist/esm/{chunk-B3XOTMTY.mjs.map → chunk-D72R4A35.mjs.map} +0 -0
  221. /package/dist/esm/{chunk-ULQ4A44I.mjs.map → chunk-DLKFZIMC.mjs.map} +0 -0
  222. /package/dist/esm/{chunk-SKBUDJFL.mjs.map → chunk-DWPMDONI.mjs.map} +0 -0
  223. /package/dist/esm/{chunk-YUNDX5I7.mjs.map → chunk-E37YRKWK.mjs.map} +0 -0
  224. /package/dist/esm/{chunk-KJBS5RFY.mjs.map → chunk-E65E4RJE.mjs.map} +0 -0
  225. /package/dist/esm/{chunk-HCUQEDI6.mjs.map → chunk-EDI5UVKO.mjs.map} +0 -0
  226. /package/dist/esm/{chunk-RONLES3F.mjs.map → chunk-EHANMHHZ.mjs.map} +0 -0
  227. /package/dist/esm/{chunk-EDHO4MI7.mjs.map → chunk-EXCR5VKV.mjs.map} +0 -0
  228. /package/dist/esm/{chunk-VTHJWK3M.mjs.map → chunk-FRG5RXIG.mjs.map} +0 -0
  229. /package/dist/esm/{chunk-OGX4PXYG.mjs.map → chunk-G7EILN6D.mjs.map} +0 -0
  230. /package/dist/esm/{chunk-O7PQILE3.mjs.map → chunk-G7NFBUOF.mjs.map} +0 -0
  231. /package/dist/esm/{chunk-A63SMUOU.mjs.map → chunk-HPZ2S4FE.mjs.map} +0 -0
  232. /package/dist/esm/{chunk-SSYYCQGU.mjs.map → chunk-HQUUESWW.mjs.map} +0 -0
  233. /package/dist/esm/{chunk-VDSDMO5B.mjs.map → chunk-IAPQS7TH.mjs.map} +0 -0
  234. /package/dist/esm/{chunk-76OH2Z4Q.mjs.map → chunk-IMGLHDIA.mjs.map} +0 -0
  235. /package/dist/esm/{chunk-ZBDEBFLY.mjs.map → chunk-IV3FEGJJ.mjs.map} +0 -0
  236. /package/dist/esm/{chunk-DUDSFTMJ.mjs.map → chunk-JVVK4K6H.mjs.map} +0 -0
  237. /package/dist/esm/{chunk-G5MGSV7Y.mjs.map → chunk-KA6FZNWP.mjs.map} +0 -0
  238. /package/dist/esm/{chunk-LZMZCQXB.mjs.map → chunk-LMO74K6V.mjs.map} +0 -0
  239. /package/dist/esm/{chunk-BOYYQAB4.mjs.map → chunk-LXLISEQ4.mjs.map} +0 -0
  240. /package/dist/esm/{chunk-MQGW234H.mjs.map → chunk-M2QV232A.mjs.map} +0 -0
  241. /package/dist/esm/{chunk-UIWXJU6Z.mjs.map → chunk-MGTUMRQW.mjs.map} +0 -0
  242. /package/dist/esm/{chunk-H6YNXJNF.mjs.map → chunk-MS4MRLGA.mjs.map} +0 -0
  243. /package/dist/esm/{chunk-C26X2GLF.mjs.map → chunk-NFLXGKHO.mjs.map} +0 -0
  244. /package/dist/esm/{chunk-POSSCOHV.mjs.map → chunk-NTTZKATR.mjs.map} +0 -0
  245. /package/dist/esm/{chunk-UIM56NFQ.mjs.map → chunk-OGHATIRT.mjs.map} +0 -0
  246. /package/dist/esm/{chunk-NMD45OTM.mjs.map → chunk-OJL36Q4H.mjs.map} +0 -0
  247. /package/dist/esm/{chunk-NWOMSL6K.mjs.map → chunk-PKXEB7XP.mjs.map} +0 -0
  248. /package/dist/esm/{chunk-SUJLWCRN.mjs.map → chunk-QDIKOQRK.mjs.map} +0 -0
  249. /package/dist/esm/{chunk-YDZBU2DJ.mjs.map → chunk-QIW56MUH.mjs.map} +0 -0
  250. /package/dist/esm/{chunk-OHRL766V.mjs.map → chunk-QPP6BX53.mjs.map} +0 -0
  251. /package/dist/esm/{chunk-43AF5CUP.mjs.map → chunk-RG572OEH.mjs.map} +0 -0
  252. /package/dist/esm/{chunk-WLZYSLHP.mjs.map → chunk-RNTXQYJQ.mjs.map} +0 -0
  253. /package/dist/esm/{chunk-Z7G2ODBC.mjs.map → chunk-RQNQ5TUX.mjs.map} +0 -0
  254. /package/dist/esm/{chunk-XP34ZZRH.mjs.map → chunk-SYTI5QO7.mjs.map} +0 -0
  255. /package/dist/esm/{chunk-NJK4DINY.mjs.map → chunk-T4L7U65D.mjs.map} +0 -0
  256. /package/dist/esm/{chunk-YZ2IE7W2.mjs.map → chunk-TJI233SP.mjs.map} +0 -0
  257. /package/dist/esm/{chunk-GNJL4HRI.mjs.map → chunk-TPCG5W2G.mjs.map} +0 -0
  258. /package/dist/esm/{chunk-URF3VICX.mjs.map → chunk-TVIQLBVA.mjs.map} +0 -0
  259. /package/dist/esm/{chunk-SCHHDWWN.mjs.map → chunk-U4MIJ2SL.mjs.map} +0 -0
  260. /package/dist/esm/{chunk-3VKFVU25.mjs.map → chunk-UH7ADIR7.mjs.map} +0 -0
  261. /package/dist/esm/{chunk-Y35QNVIJ.mjs.map → chunk-UO5WQIIP.mjs.map} +0 -0
  262. /package/dist/esm/{chunk-EG7QHK4U.mjs.map → chunk-VNTZZ7AM.mjs.map} +0 -0
  263. /package/dist/esm/{chunk-OUZ7HH65.mjs.map → chunk-WFXL7LIC.mjs.map} +0 -0
  264. /package/dist/esm/{chunk-WRRQ7L5K.mjs.map → chunk-WP7WF54Q.mjs.map} +0 -0
  265. /package/dist/esm/{chunk-F3C6KUOA.mjs.map → chunk-WXHVXW5G.mjs.map} +0 -0
  266. /package/dist/esm/{chunk-SPQKH5BG.mjs.map → chunk-XD4E5FEG.mjs.map} +0 -0
  267. /package/dist/esm/{chunk-HUYDR6MY.mjs.map → chunk-XLLHYNH7.mjs.map} +0 -0
  268. /package/dist/esm/{chunk-V2YXCX3Q.mjs.map → chunk-YFQSFUKY.mjs.map} +0 -0
  269. /package/dist/esm/{chunk-P5V7OZNN.mjs.map → chunk-YJCZU6PR.mjs.map} +0 -0
  270. /package/dist/esm/{chunk-VVHFK6WA.mjs.map → chunk-YRZQQJCW.mjs.map} +0 -0
  271. /package/dist/esm/{chunk-HSIRO3LE.mjs.map → chunk-Z34TLNCN.mjs.map} +0 -0
  272. /package/dist/esm/{chunk-MQTQWVKC.mjs.map → chunk-ZF3BOH6A.mjs.map} +0 -0
  273. /package/dist/esm/{chunk-E2X3MVIQ.mjs.map → chunk-ZGOO4E6O.mjs.map} +0 -0
  274. /package/dist/esm/{chunk-HXSCC3UV.mjs.map → chunk-ZRFOTNLQ.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-KJBS5RFY.mjs";import"../../chunk-B3XOTMTY.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-OUZ7HH65.mjs";import"../../chunk-O7PQILE3.mjs";import"../../chunk-NWOMSL6K.mjs";import"../../chunk-EDHO4MI7.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-3VKFVU25.mjs";import"../../chunk-MHRQHVM3.mjs";import"../../chunk-R7FVBWBJ.mjs";import"../../chunk-QB4XTGDH.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-HCUQEDI6.mjs";import"../../chunk-HXSCC3UV.mjs";import"../../chunk-SCHHDWWN.mjs";import"../../chunk-HSIRO3LE.mjs";import"../../chunk-7YLVCZYN.mjs";import"../../chunk-BHX5VMNA.mjs";import"../../chunk-HR5XRRIH.mjs";import"../../chunk-XP34ZZRH.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-WLZYSLHP.mjs";import"../../chunk-KQYOM3J6.mjs";import"../../chunk-POSSCOHV.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-VTHJWK3M.mjs";import"../../chunk-WVITQ3K7.mjs";import"../../chunk-FL2G3JFQ.mjs";import"../../chunk-EG7QHK4U.mjs";import"../../chunk-G4JQEJQT.mjs";import"../../chunk-SUJLWCRN.mjs";import"../../chunk-BOYYQAB4.mjs";import"../../chunk-YDZBU2DJ.mjs";import"../../chunk-YUNDX5I7.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WRRQ7L5K.mjs";import"../../chunk-7PDF3O5A.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-XG57ULWZ.mjs";import"../../chunk-C26X2GLF.mjs";import"../../chunk-URF3VICX.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-LWRYJL3W.mjs";import"../../chunk-Z7G2ODBC.mjs";import"../../chunk-6VJ3HRHN.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-MQGW234H.mjs";import"../../chunk-VDSDMO5B.mjs";import"../../chunk-OGX4PXYG.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-76OH2Z4Q.mjs";import"../../chunk-MLDQ2TY2.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-G5MGSV7Y.mjs";import"../../chunk-OHRL766V.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-TDGQGILY.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-QQU4IQ27.mjs";import"../../chunk-YPHH6CAO.mjs";import"../../chunk-P5V7OZNN.mjs";import"../../chunk-H6YNXJNF.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-A63SMUOU.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-UAEODDZS.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Build};
1
+ import{a}from"../../chunk-E65E4RJE.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 Build};
2
2
  //# sourceMappingURL=build.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-SKBUDJFL.mjs";import"../../chunk-IHYTP2EW.mjs";import"../../chunk-ULQ4A44I.mjs";import"../../chunk-VVHFK6WA.mjs";import"../../chunk-U6Z4FNB7.mjs";import"../../chunk-B3XOTMTY.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-OUZ7HH65.mjs";import"../../chunk-O7PQILE3.mjs";import"../../chunk-NWOMSL6K.mjs";import"../../chunk-EDHO4MI7.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-3VKFVU25.mjs";import"../../chunk-MHRQHVM3.mjs";import"../../chunk-R7FVBWBJ.mjs";import"../../chunk-QB4XTGDH.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-HCUQEDI6.mjs";import"../../chunk-HXSCC3UV.mjs";import"../../chunk-SCHHDWWN.mjs";import"../../chunk-HSIRO3LE.mjs";import"../../chunk-7YLVCZYN.mjs";import"../../chunk-BHX5VMNA.mjs";import"../../chunk-HR5XRRIH.mjs";import"../../chunk-XP34ZZRH.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-WLZYSLHP.mjs";import"../../chunk-KQYOM3J6.mjs";import"../../chunk-POSSCOHV.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-VTHJWK3M.mjs";import"../../chunk-WVITQ3K7.mjs";import"../../chunk-FL2G3JFQ.mjs";import"../../chunk-EG7QHK4U.mjs";import"../../chunk-G4JQEJQT.mjs";import"../../chunk-SUJLWCRN.mjs";import"../../chunk-BOYYQAB4.mjs";import"../../chunk-YDZBU2DJ.mjs";import"../../chunk-YUNDX5I7.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WRRQ7L5K.mjs";import"../../chunk-7PDF3O5A.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-XG57ULWZ.mjs";import"../../chunk-C26X2GLF.mjs";import"../../chunk-URF3VICX.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-LWRYJL3W.mjs";import"../../chunk-Z7G2ODBC.mjs";import"../../chunk-6VJ3HRHN.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-MQGW234H.mjs";import"../../chunk-VDSDMO5B.mjs";import"../../chunk-OGX4PXYG.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-76OH2Z4Q.mjs";import"../../chunk-MLDQ2TY2.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-G5MGSV7Y.mjs";import"../../chunk-OHRL766V.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-TDGQGILY.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-QQU4IQ27.mjs";import"../../chunk-YPHH6CAO.mjs";import"../../chunk-P5V7OZNN.mjs";import"../../chunk-H6YNXJNF.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-A63SMUOU.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-UAEODDZS.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as TransactionManagement};
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};
2
2
  //# sourceMappingURL=management.mjs.map
@@ -1,2 +1,2 @@
1
- import{e as o}from"../../chunk-B3XOTMTY.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-OUZ7HH65.mjs";import"../../chunk-O7PQILE3.mjs";import"../../chunk-NWOMSL6K.mjs";import"../../chunk-EDHO4MI7.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-3VKFVU25.mjs";import"../../chunk-MHRQHVM3.mjs";import"../../chunk-R7FVBWBJ.mjs";import"../../chunk-QB4XTGDH.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-HCUQEDI6.mjs";import"../../chunk-HXSCC3UV.mjs";import"../../chunk-SCHHDWWN.mjs";import"../../chunk-HSIRO3LE.mjs";import"../../chunk-7YLVCZYN.mjs";import"../../chunk-BHX5VMNA.mjs";import"../../chunk-HR5XRRIH.mjs";import"../../chunk-XP34ZZRH.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-WLZYSLHP.mjs";import"../../chunk-KQYOM3J6.mjs";import"../../chunk-POSSCOHV.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-VTHJWK3M.mjs";import"../../chunk-WVITQ3K7.mjs";import"../../chunk-FL2G3JFQ.mjs";import"../../chunk-EG7QHK4U.mjs";import"../../chunk-G4JQEJQT.mjs";import"../../chunk-SUJLWCRN.mjs";import"../../chunk-BOYYQAB4.mjs";import"../../chunk-YDZBU2DJ.mjs";import"../../chunk-YUNDX5I7.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WRRQ7L5K.mjs";import"../../chunk-7PDF3O5A.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-XG57ULWZ.mjs";import"../../chunk-C26X2GLF.mjs";import"../../chunk-URF3VICX.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-LWRYJL3W.mjs";import"../../chunk-Z7G2ODBC.mjs";import"../../chunk-6VJ3HRHN.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-MQGW234H.mjs";import"../../chunk-VDSDMO5B.mjs";import"../../chunk-OGX4PXYG.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-76OH2Z4Q.mjs";import"../../chunk-MLDQ2TY2.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-G5MGSV7Y.mjs";import"../../chunk-OHRL766V.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-TDGQGILY.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-QQU4IQ27.mjs";import"../../chunk-YPHH6CAO.mjs";import"../../chunk-P5V7OZNN.mjs";import"../../chunk-H6YNXJNF.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-A63SMUOU.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-UAEODDZS.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-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};
2
2
  //# sourceMappingURL=sign.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-DUDSFTMJ.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-B3XOTMTY.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-OUZ7HH65.mjs";import"../../chunk-O7PQILE3.mjs";import"../../chunk-NWOMSL6K.mjs";import"../../chunk-EDHO4MI7.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-3VKFVU25.mjs";import"../../chunk-MHRQHVM3.mjs";import"../../chunk-R7FVBWBJ.mjs";import"../../chunk-QB4XTGDH.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-HCUQEDI6.mjs";import"../../chunk-HXSCC3UV.mjs";import"../../chunk-SCHHDWWN.mjs";import"../../chunk-HSIRO3LE.mjs";import"../../chunk-7YLVCZYN.mjs";import"../../chunk-BHX5VMNA.mjs";import"../../chunk-HR5XRRIH.mjs";import"../../chunk-XP34ZZRH.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-WLZYSLHP.mjs";import"../../chunk-KQYOM3J6.mjs";import"../../chunk-POSSCOHV.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-VTHJWK3M.mjs";import"../../chunk-WVITQ3K7.mjs";import"../../chunk-FL2G3JFQ.mjs";import"../../chunk-EG7QHK4U.mjs";import"../../chunk-G4JQEJQT.mjs";import"../../chunk-SUJLWCRN.mjs";import"../../chunk-BOYYQAB4.mjs";import"../../chunk-YDZBU2DJ.mjs";import"../../chunk-YUNDX5I7.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WRRQ7L5K.mjs";import"../../chunk-7PDF3O5A.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-XG57ULWZ.mjs";import"../../chunk-C26X2GLF.mjs";import"../../chunk-URF3VICX.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-LWRYJL3W.mjs";import"../../chunk-Z7G2ODBC.mjs";import"../../chunk-6VJ3HRHN.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-MQGW234H.mjs";import"../../chunk-VDSDMO5B.mjs";import"../../chunk-OGX4PXYG.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-76OH2Z4Q.mjs";import"../../chunk-MLDQ2TY2.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-G5MGSV7Y.mjs";import"../../chunk-OHRL766V.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-TDGQGILY.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-QQU4IQ27.mjs";import"../../chunk-YPHH6CAO.mjs";import"../../chunk-P5V7OZNN.mjs";import"../../chunk-H6YNXJNF.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-A63SMUOU.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-UAEODDZS.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Simulate};
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};
2
2
  //# sourceMappingURL=simulate.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-43AF5CUP.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-B3XOTMTY.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-JXCZTOYC.mjs";import"../../chunk-OUZ7HH65.mjs";import"../../chunk-O7PQILE3.mjs";import"../../chunk-NWOMSL6K.mjs";import"../../chunk-EDHO4MI7.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-3VKFVU25.mjs";import"../../chunk-MHRQHVM3.mjs";import"../../chunk-R7FVBWBJ.mjs";import"../../chunk-QB4XTGDH.mjs";import"../../chunk-VHNX2NUR.mjs";import"../../chunk-GAEAYY44.mjs";import"../../chunk-HCUQEDI6.mjs";import"../../chunk-HXSCC3UV.mjs";import"../../chunk-SCHHDWWN.mjs";import"../../chunk-HSIRO3LE.mjs";import"../../chunk-7YLVCZYN.mjs";import"../../chunk-BHX5VMNA.mjs";import"../../chunk-HR5XRRIH.mjs";import"../../chunk-XP34ZZRH.mjs";import"../../chunk-4NMDYPUD.mjs";import"../../chunk-WLZYSLHP.mjs";import"../../chunk-KQYOM3J6.mjs";import"../../chunk-POSSCOHV.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-VTHJWK3M.mjs";import"../../chunk-WVITQ3K7.mjs";import"../../chunk-FL2G3JFQ.mjs";import"../../chunk-EG7QHK4U.mjs";import"../../chunk-G4JQEJQT.mjs";import"../../chunk-SUJLWCRN.mjs";import"../../chunk-BOYYQAB4.mjs";import"../../chunk-YDZBU2DJ.mjs";import"../../chunk-YUNDX5I7.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-WRRQ7L5K.mjs";import"../../chunk-7PDF3O5A.mjs";import"../../chunk-HEZ2ZYZA.mjs";import"../../chunk-XG57ULWZ.mjs";import"../../chunk-C26X2GLF.mjs";import"../../chunk-URF3VICX.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-LWRYJL3W.mjs";import"../../chunk-Z7G2ODBC.mjs";import"../../chunk-6VJ3HRHN.mjs";import"../../chunk-SRPI2FFA.mjs";import"../../chunk-MQGW234H.mjs";import"../../chunk-VDSDMO5B.mjs";import"../../chunk-OGX4PXYG.mjs";import"../../chunk-Q4XR6QOZ.mjs";import"../../chunk-76OH2Z4Q.mjs";import"../../chunk-MLDQ2TY2.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-G5MGSV7Y.mjs";import"../../chunk-OHRL766V.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-TDGQGILY.mjs";import"../../chunk-SCHZ67F3.mjs";import"../../chunk-EXP5STXZ.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-QQU4IQ27.mjs";import"../../chunk-YPHH6CAO.mjs";import"../../chunk-P5V7OZNN.mjs";import"../../chunk-H6YNXJNF.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-A63SMUOU.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-UAEODDZS.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Submit};
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};
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-TDGQGILY.mjs";import"../chunk-SCHZ67F3.mjs";import"../chunk-EXP5STXZ.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-QQU4IQ27.mjs";import"../chunk-YPHH6CAO.mjs";import"../chunk-P5V7OZNN.mjs";import"../chunk-H6YNXJNF.mjs";import"../chunk-44GYWUSH.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-KEYAPEAX.mjs";import"../chunk-A63SMUOU.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-UAEODDZS.mjs";import"../chunk-FVA2OPG4.mjs";export{a as waitForIndexerOnVersion};
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};
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-QQU4IQ27.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-YPHH6CAO.mjs";import{a as h}from"../chunk-P5V7OZNN.mjs";import{a as g}from"../chunk-H6YNXJNF.mjs";import"../chunk-44GYWUSH.mjs";import"../chunk-4WPQQPUF.mjs";import{a}from"../chunk-KEYAPEAX.mjs";import{a as b,b as c,c as d,d as e,e as f}from"../chunk-A63SMUOU.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-56CNRT2K.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 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};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-P5V7OZNN.mjs";import"../../chunk-H6YNXJNF.mjs";import"../../chunk-A63SMUOU.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as EntryFunctionBytes};
1
+ import{a}from"../../chunk-YJCZU6PR.mjs";import"../../chunk-MS4MRLGA.mjs";import"../../chunk-HPZ2S4FE.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as EntryFunctionBytes};
2
2
  //# sourceMappingURL=entryFunctionBytes.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-H6YNXJNF.mjs";import"../../chunk-A63SMUOU.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as FixedBytes};
1
+ import{a}from"../../chunk-MS4MRLGA.mjs";import"../../chunk-HPZ2S4FE.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as FixedBytes};
2
2
  //# sourceMappingURL=fixedBytes.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g}from"../../chunk-YPHH6CAO.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-A63SMUOU.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Bool,f as U128,c as U16,g as U256,d as U32,e as U64,b as U8};
1
+ import{a,b,c,d,e,f,g}from"../../chunk-6QGVRNV6.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-FVA2OPG4.mjs";export{a as Bool,f as U128,c as U16,g as U256,d as U32,e as U64,b as U8};
2
2
  //# sourceMappingURL=movePrimitives.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d}from"../../chunk-QQU4IQ27.mjs";import"../../chunk-YPHH6CAO.mjs";import"../../chunk-44GYWUSH.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-KEYAPEAX.mjs";import"../../chunk-A63SMUOU.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-FVA2OPG4.mjs";export{d as MoveOption,c as MoveString,a as MoveVector,b as Serialized};
1
+ import{a,b,c,d}from"../../chunk-CCMHWJ3Q.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-FVA2OPG4.mjs";export{d as MoveOption,c as MoveString,a as MoveVector,b as Serialized};
2
2
  //# sourceMappingURL=moveStructs.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e}from"../chunk-A63SMUOU.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{a as Serializable,b as Serializer,c as ensureBoolean,d as outOfRangeErrorMessage,e as validateNumberInRange};
1
+ import{a,b,c,d,e}from"../chunk-HPZ2S4FE.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-FVA2OPG4.mjs";export{a as Serializable,b as Serializer,c as ensureBoolean,d as outOfRangeErrorMessage,e as validateNumberInRange};
2
2
  //# sourceMappingURL=serializer.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as o}from"./chunk-Y35QNVIJ.mjs";import{a as r}from"./chunk-MJ7K6MUZ.mjs";var t=class{constructor(e){this.config=e}async getObjectDataByObjectAddress(e){return await r({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"objects_processor"}),o({aptosConfig:this.config,...e})}};export{t as a};
2
- //# sourceMappingURL=chunk-2AGCC7DU.mjs.map
1
+ import{b as o}from"./chunk-UO5WQIIP.mjs";import{a as r}from"./chunk-MJ7K6MUZ.mjs";var t=class{constructor(e){this.config=e}async getObjectDataByObjectAddress(e){return await r({config:this.config,minimumLedgerVersion:e.minimumLedgerVersion,processorType:"objects_processor"}),o({aptosConfig:this.config,...e})}};export{t as a};
2
+ //# sourceMappingURL=chunk-33DMJ7SF.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as m,c as P,d as V,e as v}from"./chunk-SRPI2FFA.mjs";import{a as B}from"./chunk-MQGW234H.mjs";import{a as w,b as y}from"./chunk-VDSDMO5B.mjs";import{b as C,d as I}from"./chunk-OGX4PXYG.mjs";import{b as U}from"./chunk-76OH2Z4Q.mjs";import{a as d}from"./chunk-MLDQ2TY2.mjs";import{a as H}from"./chunk-G5MGSV7Y.mjs";import{b as x}from"./chunk-OHRL766V.mjs";import{a as T}from"./chunk-AH44UPM4.mjs";import{b}from"./chunk-3RBIEWVC.mjs";import{a as G}from"./chunk-KEYAPEAX.mjs";import{a as p,b as E}from"./chunk-A63SMUOU.mjs";import{b as u}from"./chunk-BCUSI3N6.mjs";import{jwtDecode as M}from"jwt-decode";var ye=1e7,R=120,k=30,F=330,me=120,he=350,ge=300,fe=93,o=class o extends U{constructor(e,t){super();let i=u.fromHexInput(t).toUint8Array();if(i.length!==o.ID_COMMITMENT_LENGTH)throw new Error(`Id Commitment length in bytes should be ${o.ID_COMMITMENT_LENGTH}`);this.iss=e,this.idCommitment=i}authKey(){let e=new E;return e.serializeU32AsUleb128(3),e.serializeFixedBytes(this.bcsToBytes()),H.fromSchemeAndBytes({scheme:2,input:e.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}toString(){return u.fromHexInput(this.toUint8Array()).toString()}verifySignature(e){throw new Error("Not yet implemented")}serialize(e){e.serializeStr(this.iss),e.serializeBytes(this.idCommitment)}static deserialize(e){let t=e.deserializeStr(),i=e.deserializeBytes();return new o(t,i)}static load(e){let t=e.deserializeStr(),i=e.deserializeBytes();return new o(t,i)}static isPublicKey(e){return e instanceof o}static create(e){return _(e),new o(e.iss,_(e))}static fromJwtAndPepper(e){let{jwt:t,pepper:i,uidKey:a="sub"}=e,n=M(t);if(typeof n.iss!="string")throw new Error("iss was not found");if(typeof n.aud!="string")throw new Error("aud was not found or an array of values");let s=n[a];return o.create({iss:n.iss,uidKey:a,uidVal:s,aud:n.aud,pepper:i})}static isInstance(e){return"iss"in e&&typeof e.iss=="string"&&"idCommitment"in e&&e.idCommitment instanceof Uint8Array}};o.ID_COMMITMENT_LENGTH=32;var A=o;function _(r){let{uidKey:e,uidVal:t,aud:i,pepper:a}=r,n=[P(u.fromHexInput(a).toUint8Array()),m(i,R),m(t,F),m(e,k)];return V(v(n),A.ID_COMMITMENT_LENGTH)}var D=class r extends d{constructor(e){super();let{jwtHeader:t,ephemeralCertificate:i,expiryDateSecs:a,ephemeralPublicKey:n,ephemeralSignature:s}=e;this.jwtHeader=t,this.ephemeralCertificate=i,this.expiryDateSecs=a,this.ephemeralPublicKey=n,this.ephemeralSignature=s}toUint8Array(){return this.bcsToBytes()}serialize(e){this.ephemeralCertificate.serialize(e),e.serializeStr(this.jwtHeader),e.serializeU64(this.expiryDateSecs),this.ephemeralPublicKey.serialize(e),this.ephemeralSignature.serialize(e)}static deserialize(e){let t=h.deserialize(e),i=e.deserializeStr(),a=e.deserializeU64(),n=w.deserialize(e),s=y.deserialize(e);return new r({jwtHeader:i,expiryDateSecs:Number(a),ephemeralCertificate:t,ephemeralPublicKey:n,ephemeralSignature:s})}static getSimulationSignature(){return new r({jwtHeader:"{}",ephemeralCertificate:new h(new S({proof:new f(new g({a:new Uint8Array(32),b:new Uint8Array(64),c:new Uint8Array(32)}),0),expHorizonSecs:0}),0),expiryDateSecs:0,ephemeralPublicKey:new w(new C(new Uint8Array(32))),ephemeralSignature:new y(new I(new Uint8Array(64)))})}static isSignature(e){return e instanceof r}},h=class r extends d{constructor(e,t){super(),this.signature=e,this.variant=t}toUint8Array(){return this.signature.toUint8Array()}serialize(e){e.serializeU32AsUleb128(this.variant),this.signature.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new r(S.deserialize(e),t);default:throw new Error(`Unknown variant index for EphemeralCertificate: ${t}`)}}},c=class r extends p{constructor(e){if(super(),this.data=u.fromHexInput(e).toUint8Array(),this.data.length!==32)throw new Error("Input needs to be 32 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(32);return new r(t)}},l=class r extends p{constructor(e){if(super(),this.data=u.fromHexInput(e).toUint8Array(),this.data.length!==64)throw new Error("Input needs to be 64 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(64);return new r(t)}},g=class r extends B{constructor(e){super();let{a:t,b:i,c:a}=e;this.a=new c(t),this.b=new l(i),this.c=new c(a)}serialize(e){this.a.serialize(e),this.b.serialize(e),this.c.serialize(e)}static deserialize(e){let t=c.deserialize(e).bcsToBytes(),i=l.deserialize(e).bcsToBytes(),a=c.deserialize(e).bcsToBytes();return new r({a:t,b:i,c:a})}},f=class r extends p{constructor(e,t){super(),this.proof=e,this.variant=t}serialize(e){e.serializeU32AsUleb128(this.variant),this.proof.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new r(g.deserialize(e),t);default:throw new Error(`Unknown variant index for ZkProof: ${t}`)}}},S=class r extends d{constructor(e){super();let{proof:t,expHorizonSecs:i,trainingWheelsSignature:a,extraField:n,overrideAudVal:s}=e;this.proof=t,this.expHorizonSecs=i,this.trainingWheelsSignature=a,this.extraField=n,this.overrideAudVal=s}toUint8Array(){return this.bcsToBytes()}static fromBytes(e){return r.deserialize(new G(e))}serialize(e){this.proof.serialize(e),e.serializeU64(this.expHorizonSecs),e.serializeOptionStr(this.extraField),e.serializeOptionStr(this.overrideAudVal),e.serializeOption(this.trainingWheelsSignature)}static deserialize(e){let t=f.deserialize(e),i=Number(e.deserializeU64()),a=e.deserializeOptionStr(),n=e.deserializeOptionStr(),s=e.deserializeOption(y);return new r({proof:t,expHorizonSecs:i,trainingWheelsSignature:s,extraField:a,overrideAudVal:n})}},z=class r{constructor(e,t){this.verficationKey=e,this.maxExpHorizonSecs=t}static create(e,t){return new r(new K({alphaG1:e.alpha_g1,betaG2:e.beta_g2,deltaG2:e.delta_g2,gammaAbcG1:e.gamma_abc_g1,gammaG2:e.gamma_g2}),t)}},K=class r{constructor(e){let{alphaG1:t,betaG2:i,deltaG2:a,gammaAbcG1:n,gammaG2:s}=e;this.alphaG1=new c(t),this.betaG2=new l(i),this.deltaG2=new l(a),this.gammaAbcG1=[new c(n[0]),new c(n[1])],this.gammaG2=new l(s)}static fromGroth16VerificationKeyResponse(e){return new r({alphaG1:e.alpha_g1,betaG2:e.beta_g2,deltaG2:e.delta_g2,gammaAbcG1:e.gamma_abc_g1,gammaG2:e.gamma_g2})}};async function Se(r){let{aptosConfig:e}=r;return T(async()=>{let t=await L(r),i=await N(r);return z.create(i,Number(t.max_exp_horizon_secs))},`keyless-configuration-${e.network}`,1e3*60*5)()}async function L(r){let{aptosConfig:e,options:t}=r,i="0x1::keyless_account::Configuration",{data:a}=await b({aptosConfig:e,originMethod:"getKeylessConfigurationResource",path:`accounts/${x.from("0x1").toString()}/resource/${i}`,params:{ledger_version:t?.ledgerVersion}});return a.data}async function N(r){let{aptosConfig:e,options:t}=r,i="0x1::keyless_account::Groth16VerificationKey",{data:a}=await b({aptosConfig:e,originMethod:"getGroth16VerificationKeyResource",path:`accounts/${x.from("0x1").toString()}/resource/${i}`,params:{ledger_version:t?.ledgerVersion}});return a.data}export{ye as a,R as b,k as c,F as d,me as e,he as f,ge as g,fe as h,A as i,D as j,h as k,g as l,f as m,S as n,z as o,Se as p};
2
- //# sourceMappingURL=chunk-6VJ3HRHN.mjs.map
1
+ import{a as m,c as P,d as V,e as v}from"./chunk-SRPI2FFA.mjs";import{a as B}from"./chunk-M2QV232A.mjs";import{a as w,b as y}from"./chunk-IAPQS7TH.mjs";import{b as C,d as I}from"./chunk-G7EILN6D.mjs";import{b as U}from"./chunk-IMGLHDIA.mjs";import{a as d}from"./chunk-BF4ZE37Q.mjs";import{a as H}from"./chunk-KA6FZNWP.mjs";import{b as x}from"./chunk-QPP6BX53.mjs";import{a as T}from"./chunk-AH44UPM4.mjs";import{b}from"./chunk-3RBIEWVC.mjs";import{a as G}from"./chunk-KEYAPEAX.mjs";import{a as p,b as E}from"./chunk-HPZ2S4FE.mjs";import{b as u}from"./chunk-BCUSI3N6.mjs";import{jwtDecode as M}from"jwt-decode";var ye=1e7,R=120,k=30,F=330,me=120,he=350,ge=300,fe=93,o=class o extends U{constructor(e,t){super();let i=u.fromHexInput(t).toUint8Array();if(i.length!==o.ID_COMMITMENT_LENGTH)throw new Error(`Id Commitment length in bytes should be ${o.ID_COMMITMENT_LENGTH}`);this.iss=e,this.idCommitment=i}authKey(){let e=new E;return e.serializeU32AsUleb128(3),e.serializeFixedBytes(this.bcsToBytes()),H.fromSchemeAndBytes({scheme:2,input:e.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}toString(){return u.fromHexInput(this.toUint8Array()).toString()}verifySignature(e){throw new Error("Not yet implemented")}serialize(e){e.serializeStr(this.iss),e.serializeBytes(this.idCommitment)}static deserialize(e){let t=e.deserializeStr(),i=e.deserializeBytes();return new o(t,i)}static load(e){let t=e.deserializeStr(),i=e.deserializeBytes();return new o(t,i)}static isPublicKey(e){return e instanceof o}static create(e){return _(e),new o(e.iss,_(e))}static fromJwtAndPepper(e){let{jwt:t,pepper:i,uidKey:a="sub"}=e,n=M(t);if(typeof n.iss!="string")throw new Error("iss was not found");if(typeof n.aud!="string")throw new Error("aud was not found or an array of values");let s=n[a];return o.create({iss:n.iss,uidKey:a,uidVal:s,aud:n.aud,pepper:i})}static isInstance(e){return"iss"in e&&typeof e.iss=="string"&&"idCommitment"in e&&e.idCommitment instanceof Uint8Array}};o.ID_COMMITMENT_LENGTH=32;var A=o;function _(r){let{uidKey:e,uidVal:t,aud:i,pepper:a}=r,n=[P(u.fromHexInput(a).toUint8Array()),m(i,R),m(t,F),m(e,k)];return V(v(n),A.ID_COMMITMENT_LENGTH)}var D=class r extends d{constructor(e){super();let{jwtHeader:t,ephemeralCertificate:i,expiryDateSecs:a,ephemeralPublicKey:n,ephemeralSignature:s}=e;this.jwtHeader=t,this.ephemeralCertificate=i,this.expiryDateSecs=a,this.ephemeralPublicKey=n,this.ephemeralSignature=s}toUint8Array(){return this.bcsToBytes()}serialize(e){this.ephemeralCertificate.serialize(e),e.serializeStr(this.jwtHeader),e.serializeU64(this.expiryDateSecs),this.ephemeralPublicKey.serialize(e),this.ephemeralSignature.serialize(e)}static deserialize(e){let t=h.deserialize(e),i=e.deserializeStr(),a=e.deserializeU64(),n=w.deserialize(e),s=y.deserialize(e);return new r({jwtHeader:i,expiryDateSecs:Number(a),ephemeralCertificate:t,ephemeralPublicKey:n,ephemeralSignature:s})}static getSimulationSignature(){return new r({jwtHeader:"{}",ephemeralCertificate:new h(new S({proof:new f(new g({a:new Uint8Array(32),b:new Uint8Array(64),c:new Uint8Array(32)}),0),expHorizonSecs:0}),0),expiryDateSecs:0,ephemeralPublicKey:new w(new C(new Uint8Array(32))),ephemeralSignature:new y(new I(new Uint8Array(64)))})}static isSignature(e){return e instanceof r}},h=class r extends d{constructor(e,t){super(),this.signature=e,this.variant=t}toUint8Array(){return this.signature.toUint8Array()}serialize(e){e.serializeU32AsUleb128(this.variant),this.signature.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new r(S.deserialize(e),t);default:throw new Error(`Unknown variant index for EphemeralCertificate: ${t}`)}}},c=class r extends p{constructor(e){if(super(),this.data=u.fromHexInput(e).toUint8Array(),this.data.length!==32)throw new Error("Input needs to be 32 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(32);return new r(t)}},l=class r extends p{constructor(e){if(super(),this.data=u.fromHexInput(e).toUint8Array(),this.data.length!==64)throw new Error("Input needs to be 64 bytes")}serialize(e){e.serializeFixedBytes(this.data)}static deserialize(e){let t=e.deserializeFixedBytes(64);return new r(t)}},g=class r extends B{constructor(e){super();let{a:t,b:i,c:a}=e;this.a=new c(t),this.b=new l(i),this.c=new c(a)}serialize(e){this.a.serialize(e),this.b.serialize(e),this.c.serialize(e)}static deserialize(e){let t=c.deserialize(e).bcsToBytes(),i=l.deserialize(e).bcsToBytes(),a=c.deserialize(e).bcsToBytes();return new r({a:t,b:i,c:a})}},f=class r extends p{constructor(e,t){super(),this.proof=e,this.variant=t}serialize(e){e.serializeU32AsUleb128(this.variant),this.proof.serialize(e)}static deserialize(e){let t=e.deserializeUleb128AsU32();switch(t){case 0:return new r(g.deserialize(e),t);default:throw new Error(`Unknown variant index for ZkProof: ${t}`)}}},S=class r extends d{constructor(e){super();let{proof:t,expHorizonSecs:i,trainingWheelsSignature:a,extraField:n,overrideAudVal:s}=e;this.proof=t,this.expHorizonSecs=i,this.trainingWheelsSignature=a,this.extraField=n,this.overrideAudVal=s}toUint8Array(){return this.bcsToBytes()}static fromBytes(e){return r.deserialize(new G(e))}serialize(e){this.proof.serialize(e),e.serializeU64(this.expHorizonSecs),e.serializeOptionStr(this.extraField),e.serializeOptionStr(this.overrideAudVal),e.serializeOption(this.trainingWheelsSignature)}static deserialize(e){let t=f.deserialize(e),i=Number(e.deserializeU64()),a=e.deserializeOptionStr(),n=e.deserializeOptionStr(),s=e.deserializeOption(y);return new r({proof:t,expHorizonSecs:i,trainingWheelsSignature:s,extraField:a,overrideAudVal:n})}},z=class r{constructor(e,t){this.verficationKey=e,this.maxExpHorizonSecs=t}static create(e,t){return new r(new K({alphaG1:e.alpha_g1,betaG2:e.beta_g2,deltaG2:e.delta_g2,gammaAbcG1:e.gamma_abc_g1,gammaG2:e.gamma_g2}),t)}},K=class r{constructor(e){let{alphaG1:t,betaG2:i,deltaG2:a,gammaAbcG1:n,gammaG2:s}=e;this.alphaG1=new c(t),this.betaG2=new l(i),this.deltaG2=new l(a),this.gammaAbcG1=[new c(n[0]),new c(n[1])],this.gammaG2=new l(s)}static fromGroth16VerificationKeyResponse(e){return new r({alphaG1:e.alpha_g1,betaG2:e.beta_g2,deltaG2:e.delta_g2,gammaAbcG1:e.gamma_abc_g1,gammaG2:e.gamma_g2})}};async function Se(r){let{aptosConfig:e}=r;return T(async()=>{let t=await L(r),i=await N(r);return z.create(i,Number(t.max_exp_horizon_secs))},`keyless-configuration-${e.network}`,1e3*60*5)()}async function L(r){let{aptosConfig:e,options:t}=r,i="0x1::keyless_account::Configuration",{data:a}=await b({aptosConfig:e,originMethod:"getKeylessConfigurationResource",path:`accounts/${x.from("0x1").toString()}/resource/${i}`,params:{ledger_version:t?.ledgerVersion}});return a.data}async function N(r){let{aptosConfig:e,options:t}=r,i="0x1::keyless_account::Groth16VerificationKey",{data:a}=await b({aptosConfig:e,originMethod:"getGroth16VerificationKeyResource",path:`accounts/${x.from("0x1").toString()}/resource/${i}`,params:{ledger_version:t?.ledgerVersion}});return a.data}export{ye as a,R as b,k as c,F as d,me as e,he as f,ge as g,fe as h,A as i,D as j,h as k,g as l,f as m,S as n,z as o,Se as p};
2
+ //# sourceMappingURL=chunk-4BMEOXWL.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as o,b as r,c as s}from"./chunk-MHRQHVM3.mjs";import{a as t}from"./chunk-MJ7K6MUZ.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-TEM2STPT.mjs.map
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,2 +1,2 @@
1
- import{a as d,b}from"./chunk-XG57ULWZ.mjs";import{a as h,b as z}from"./chunk-C26X2GLF.mjs";import{a as p,b as g}from"./chunk-URF3VICX.mjs";import{b as o,d as y}from"./chunk-OGX4PXYG.mjs";import{a as c}from"./chunk-A63SMUOU.mjs";var r=class extends c{static deserialize(i){let e=i.deserializeUleb128AsU32();switch(e){case 0:return u.load(i);case 1:return l.load(i);case 2:return n.load(i);case 3:return a.load(i);default:throw new Error(`Unknown variant index for AccountAuthenticator: ${e}`)}}isEd25519(){return this instanceof u}isMultiEd25519(){return this instanceof l}isSingleKey(){return this instanceof n}isMultiKey(){return this instanceof a}},u=class t extends r{constructor(i,e){super(),this.public_key=i,this.signature=e}serialize(i){i.serializeU32AsUleb128(0),this.public_key.serialize(i),this.signature.serialize(i)}static load(i){let e=o.deserialize(i),s=y.deserialize(i);return new t(e,s)}},l=class t extends r{constructor(i,e){super(),this.public_key=i,this.signature=e}serialize(i){i.serializeU32AsUleb128(1),this.public_key.serialize(i),this.signature.serialize(i)}static load(i){let e=d.deserialize(i),s=b.deserialize(i);return new t(e,s)}},n=class t extends r{constructor(i,e){super(),this.public_key=i,this.signature=e}serialize(i){i.serializeU32AsUleb128(2),this.public_key.serialize(i),this.signature.serialize(i)}static load(i){let e=p.deserialize(i),s=g.deserialize(i);return new t(e,s)}},a=class t extends r{constructor(i,e){super(),this.public_keys=i,this.signatures=e}serialize(i){i.serializeU32AsUleb128(3),this.public_keys.serialize(i),this.signatures.serialize(i)}static load(i){let e=h.deserialize(i),s=z.deserialize(i);return new t(e,s)}};export{r as a,u as b,l as c,n as d,a as e};
2
- //# sourceMappingURL=chunk-WVITQ3K7.mjs.map
1
+ import{a as d,b}from"./chunk-CKQQJXQL.mjs";import{a as h,b as z}from"./chunk-NFLXGKHO.mjs";import{a as p,b as g}from"./chunk-TVIQLBVA.mjs";import{b as o,d as y}from"./chunk-G7EILN6D.mjs";import{a as c}from"./chunk-HPZ2S4FE.mjs";var r=class extends c{static deserialize(i){let e=i.deserializeUleb128AsU32();switch(e){case 0:return u.load(i);case 1:return l.load(i);case 2:return n.load(i);case 3:return a.load(i);default:throw new Error(`Unknown variant index for AccountAuthenticator: ${e}`)}}isEd25519(){return this instanceof u}isMultiEd25519(){return this instanceof l}isSingleKey(){return this instanceof n}isMultiKey(){return this instanceof a}},u=class t extends r{constructor(i,e){super(),this.public_key=i,this.signature=e}serialize(i){i.serializeU32AsUleb128(0),this.public_key.serialize(i),this.signature.serialize(i)}static load(i){let e=o.deserialize(i),s=y.deserialize(i);return new t(e,s)}},l=class t extends r{constructor(i,e){super(),this.public_key=i,this.signature=e}serialize(i){i.serializeU32AsUleb128(1),this.public_key.serialize(i),this.signature.serialize(i)}static load(i){let e=d.deserialize(i),s=b.deserialize(i);return new t(e,s)}},n=class t extends r{constructor(i,e){super(),this.public_key=i,this.signature=e}serialize(i){i.serializeU32AsUleb128(2),this.public_key.serialize(i),this.signature.serialize(i)}static load(i){let e=p.deserialize(i),s=g.deserialize(i);return new t(e,s)}},a=class t extends r{constructor(i,e){super(),this.public_keys=i,this.signatures=e}serialize(i){i.serializeU32AsUleb128(3),this.public_keys.serialize(i),this.signatures.serialize(i)}static load(i){let e=h.deserialize(i),s=z.deserialize(i);return new t(e,s)}};export{r as a,u as b,l as c,n as d,a as e};
2
+ //# sourceMappingURL=chunk-5BUJ6N72.mjs.map
@@ -1,2 +1,2 @@
1
- import{c as d}from"./chunk-QB4XTGDH.mjs";import{p as c}from"./chunk-VHNX2NUR.mjs";import{b as i}from"./chunk-OHRL766V.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-M2GJ6B3I.mjs.map
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,2 +1,2 @@
1
- import{a as m}from"./chunk-SUJLWCRN.mjs";import{a as g}from"./chunk-YDZBU2DJ.mjs";import{a as p}from"./chunk-YUNDX5I7.mjs";import{b as y}from"./chunk-OHRL766V.mjs";import{a as v,b as M}from"./chunk-QQU4IQ27.mjs";import{a as F,b as d,c as T,d as x,e as E,f as _,g as w}from"./chunk-YPHH6CAO.mjs";import{a as S}from"./chunk-P5V7OZNN.mjs";import{a as u}from"./chunk-A63SMUOU.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-G4JQEJQT.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 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,2 +1,2 @@
1
- import{a as c}from"./chunk-B3XOTMTY.mjs";import{c as p}from"./chunk-NWOMSL6K.mjs";import{c as o}from"./chunk-QB4XTGDH.mjs";import{n as u,q as g,r as A}from"./chunk-VHNX2NUR.mjs";import{f as a,i as r}from"./chunk-SUJLWCRN.mjs";async function G(t){let{aptosConfig:s,options:e}=t,n={query:A,variables:{where_condition:e?.where,limit:e?.limit,offset:e?.offset}};return(await o({aptosConfig:s,query:n,originMethod:"getFungibleAssetMetadata"})).fungible_asset_metadata}async function h(t){let{aptosConfig:s,options:e}=t,n={query:g,variables:{where_condition:e?.where,limit:e?.limit,offset:e?.offset}};return(await o({aptosConfig:s,query:n,originMethod:"getFungibleAssetActivities"})).fungible_asset_activities}async function M(t){let{aptosConfig:s,options:e}=t,n={query:u,variables:{where_condition:e?.where,limit:e?.limit,offset:e?.offset}};return(await o({aptosConfig:s,query:n,originMethod:"getCurrentFungibleAssetBalances"})).current_fungible_asset_balances}var b={typeParameters:[{constraints:[]}],parameters:[p("0x1::object::Object"),new r,new a]};async function x(t){let{aptosConfig:s,sender:e,fungibleAssetMetadataAddress:n,recipient:i,amount:l,options:f}=t;return c({aptosConfig:s,sender:e.accountAddress,data:{function:"0x1::primary_fungible_store::transfer",typeArguments:["0x1::fungible_asset::Metadata"],functionArguments:[n,i,l],abi:b},options:f})}export{G as a,h as b,M as c,x as d};
2
- //# sourceMappingURL=chunk-A3AGTDS6.mjs.map
1
+ import{a as c}from"./chunk-D72R4A35.mjs";import{c as p}from"./chunk-PKXEB7XP.mjs";import{f as a,i as r}from"./chunk-QDIKOQRK.mjs";import{c as o}from"./chunk-QB4XTGDH.mjs";import{n as u,q as g,r as A}from"./chunk-VHNX2NUR.mjs";async function G(t){let{aptosConfig:s,options:e}=t,n={query:A,variables:{where_condition:e?.where,limit:e?.limit,offset:e?.offset}};return(await o({aptosConfig:s,query:n,originMethod:"getFungibleAssetMetadata"})).fungible_asset_metadata}async function h(t){let{aptosConfig:s,options:e}=t,n={query:g,variables:{where_condition:e?.where,limit:e?.limit,offset:e?.offset}};return(await o({aptosConfig:s,query:n,originMethod:"getFungibleAssetActivities"})).fungible_asset_activities}async function M(t){let{aptosConfig:s,options:e}=t,n={query:u,variables:{where_condition:e?.where,limit:e?.limit,offset:e?.offset}};return(await o({aptosConfig:s,query:n,originMethod:"getCurrentFungibleAssetBalances"})).current_fungible_asset_balances}var b={typeParameters:[{constraints:[]}],parameters:[p("0x1::object::Object"),new r,new a]};async function x(t){let{aptosConfig:s,sender:e,fungibleAssetMetadataAddress:n,recipient:i,amount:l,options:f}=t;return c({aptosConfig:s,sender:e.accountAddress,data:{function:"0x1::primary_fungible_store::transfer",typeArguments:["0x1::fungible_asset::Metadata"],functionArguments:[n,i,l],abi:b},options:f})}export{G as a,h as b,M as c,x as d};
2
+ //# sourceMappingURL=chunk-6HOEJLTL.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s,c as u,e as t}from"./chunk-A63SMUOU.mjs";import{a,b as l,c as n,d as o,e as c,f as z}from"./chunk-56CNRT2K.mjs";var d=class i extends s{constructor(e){super(),u(e),this.value=e}serialize(e){e.serializeBool(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(5),e.serialize(this)}static deserialize(e){return new i(e.deserializeBool())}},U=class i extends s{constructor(e){super(),t(e,0,a),this.value=e}serialize(e){e.serializeU8(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(0),e.serialize(this)}static deserialize(e){return new i(e.deserializeU8())}},p=class i extends s{constructor(e){super(),t(e,0,l),this.value=e}serialize(e){e.serializeU16(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(6),e.serialize(this)}static deserialize(e){return new i(e.deserializeU16())}},b=class i extends s{constructor(e){super(),t(e,0,n),this.value=e}serialize(e){e.serializeU32(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(7),e.serialize(this)}static deserialize(e){return new i(e.deserializeU32())}},y=class i extends s{constructor(e){super(),t(e,BigInt(0),o),this.value=BigInt(e)}serialize(e){e.serializeU64(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(1),e.serialize(this)}static deserialize(e){return new i(e.deserializeU64())}},m=class i extends s{constructor(e){super(),t(e,BigInt(0),c),this.value=BigInt(e)}serialize(e){e.serializeU128(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(2),e.serialize(this)}static deserialize(e){return new i(e.deserializeU128())}},B=class i extends s{constructor(e){super(),t(e,BigInt(0),z),this.value=BigInt(e)}serialize(e){e.serializeU256(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(8),e.serialize(this)}static deserialize(e){return new i(e.deserializeU256())}};export{d as a,U as b,p as c,b as d,y as e,m as f,B as g};
2
- //# sourceMappingURL=chunk-YPHH6CAO.mjs.map
1
+ import{a as s,c as u,e as t}from"./chunk-HPZ2S4FE.mjs";import{a,b as l,c as n,d as o,e as c,f as z}from"./chunk-56CNRT2K.mjs";var d=class i extends s{constructor(e){super(),u(e),this.value=e}serialize(e){e.serializeBool(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(5),e.serialize(this)}static deserialize(e){return new i(e.deserializeBool())}},U=class i extends s{constructor(e){super(),t(e,0,a),this.value=e}serialize(e){e.serializeU8(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(0),e.serialize(this)}static deserialize(e){return new i(e.deserializeU8())}},p=class i extends s{constructor(e){super(),t(e,0,l),this.value=e}serialize(e){e.serializeU16(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(6),e.serialize(this)}static deserialize(e){return new i(e.deserializeU16())}},b=class i extends s{constructor(e){super(),t(e,0,n),this.value=e}serialize(e){e.serializeU32(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(7),e.serialize(this)}static deserialize(e){return new i(e.deserializeU32())}},y=class i extends s{constructor(e){super(),t(e,BigInt(0),o),this.value=BigInt(e)}serialize(e){e.serializeU64(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(1),e.serialize(this)}static deserialize(e){return new i(e.deserializeU64())}},m=class i extends s{constructor(e){super(),t(e,BigInt(0),c),this.value=BigInt(e)}serialize(e){e.serializeU128(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(2),e.serialize(this)}static deserialize(e){return new i(e.deserializeU128())}},B=class i extends s{constructor(e){super(),t(e,BigInt(0),z),this.value=BigInt(e)}serialize(e){e.serializeU256(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){e.serializeU32AsUleb128(8),e.serialize(this)}static deserialize(e){return new i(e.deserializeU256())}};export{d as a,U as b,p as c,b as d,y as e,m as f,B as g};
2
+ //# sourceMappingURL=chunk-6QGVRNV6.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-VDSDMO5B.mjs";import{c as s}from"./chunk-OGX4PXYG.mjs";import{b,c as K}from"./chunk-UAL27G6B.mjs";import{a as l}from"./chunk-KEYAPEAX.mjs";import{a as c}from"./chunk-A63SMUOU.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-7PDF3O5A.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-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,2 +1,2 @@
1
- import{a as t,b as n,c as o,d as r}from"./chunk-A3AGTDS6.mjs";import{a as s}from"./chunk-MJ7K6MUZ.mjs";import{b as i}from"./chunk-OHRL766V.mjs";var a=class{constructor(e){this.config=e}async getFungibleAssetMetadata(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),t({aptosConfig:this.config,...e})}async getFungibleAssetMetadataByAssetType(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),(await t({aptosConfig:this.config,options:{where:{asset_type:{_eq:e.assetType}}}}))[0]}async getFungibleAssetMetadataByCreatorAddress(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),await t({aptosConfig:this.config,options:{where:{creator_address:{_eq:i.from(e.creatorAddress).toStringLong()}}}})}async getFungibleAssetActivities(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),n({aptosConfig:this.config,...e})}async getCurrentFungibleAssetBalances(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),o({aptosConfig:this.config,...e})}async transferFungibleAsset(e){return r({aptosConfig:this.config,...e})}};export{a};
2
- //# sourceMappingURL=chunk-VSMEQLV6.mjs.map
1
+ import{a as t,b as n,c as o,d as r}from"./chunk-6HOEJLTL.mjs";import{a as s}from"./chunk-MJ7K6MUZ.mjs";import{b as i}from"./chunk-QPP6BX53.mjs";var a=class{constructor(e){this.config=e}async getFungibleAssetMetadata(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),t({aptosConfig:this.config,...e})}async getFungibleAssetMetadataByAssetType(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),(await t({aptosConfig:this.config,options:{where:{asset_type:{_eq:e.assetType}}}}))[0]}async getFungibleAssetMetadataByCreatorAddress(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),await t({aptosConfig:this.config,options:{where:{creator_address:{_eq:i.from(e.creatorAddress).toStringLong()}}}})}async getFungibleAssetActivities(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),n({aptosConfig:this.config,...e})}async getCurrentFungibleAssetBalances(e){return await s({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"fungible_asset_processor"}),o({aptosConfig:this.config,...e})}async transferFungibleAsset(e){return r({aptosConfig:this.config,...e})}};export{a};
2
+ //# sourceMappingURL=chunk-7KWFE3OU.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c}from"./chunk-Q4XR6QOZ.mjs";import{a as d}from"./chunk-76OH2Z4Q.mjs";import{a as f}from"./chunk-MLDQ2TY2.mjs";import{e as g,j as h}from"./chunk-LR65XHSF.mjs";import{a as p}from"./chunk-A63SMUOU.mjs";import{b as s}from"./chunk-BCUSI3N6.mjs";import{sha3_256 as H}from"@noble/hashes/sha3";import{secp256k1 as o}from"@noble/curves/secp256k1";import{HDKey as S}from"@scure/bip32";var i=class i extends d{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,y=c(t),l=s.fromHexInput(y).toUint8Array(),A=H(l),x=n.toUint8Array();return o.verify(x,A,this.key.toUint8Array(),{lowS:!0})}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=65;var u=i,r=class r extends p{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==r.LENGTH)throw new Error(`PrivateKey length should be ${r.LENGTH}`);this.key=t}static generate(){let e=o.utils.randomPrivateKey();return new r(e)}static fromDerivationPath(e,t){if(!g(e))throw new Error(`Invalid derivation path ${e}`);return r.fromDerivationPathInner(e,h(t))}static fromDerivationPathInner(e,t){let{privateKey:n}=S.fromMasterSeed(t).derive(e);if(n===null)throw new Error("Invalid key");return new r(n)}sign(e){let t=c(e),n=s.fromHexInput(t),y=H(n.toUint8Array()),l=o.sign(y,this.key.toUint8Array(),{lowS:!0});return new m(l.toCompactRawBytes())}publicKey(){let e=o.getPublicKey(this.key.toUint8Array(),!1);return new u(e)}toUint8Array(){return this.key.toUint8Array()}toString(){return this.key.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;var v=r,a=class a extends f{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==a.LENGTH)throw new Error(`Signature length should be ${a.LENGTH}, received ${t.toUint8Array().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 m=a;export{u as a,v as b,m as c};
2
- //# sourceMappingURL=chunk-LWRYJL3W.mjs.map
1
+ import{a as c}from"./chunk-Q4XR6QOZ.mjs";import{a as d}from"./chunk-IMGLHDIA.mjs";import{a as f}from"./chunk-BF4ZE37Q.mjs";import{e as g,j as h}from"./chunk-LR65XHSF.mjs";import{a as p}from"./chunk-HPZ2S4FE.mjs";import{b as s}from"./chunk-BCUSI3N6.mjs";import{sha3_256 as H}from"@noble/hashes/sha3";import{secp256k1 as o}from"@noble/curves/secp256k1";import{HDKey as S}from"@scure/bip32";var i=class i extends d{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,y=c(t),l=s.fromHexInput(y).toUint8Array(),A=H(l),x=n.toUint8Array();return o.verify(x,A,this.key.toUint8Array(),{lowS:!0})}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=65;var u=i,r=class r extends p{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==r.LENGTH)throw new Error(`PrivateKey length should be ${r.LENGTH}`);this.key=t}static generate(){let e=o.utils.randomPrivateKey();return new r(e)}static fromDerivationPath(e,t){if(!g(e))throw new Error(`Invalid derivation path ${e}`);return r.fromDerivationPathInner(e,h(t))}static fromDerivationPathInner(e,t){let{privateKey:n}=S.fromMasterSeed(t).derive(e);if(n===null)throw new Error("Invalid key");return new r(n)}sign(e){let t=c(e),n=s.fromHexInput(t),y=H(n.toUint8Array()),l=o.sign(y,this.key.toUint8Array(),{lowS:!0});return new m(l.toCompactRawBytes())}publicKey(){let e=o.getPublicKey(this.key.toUint8Array(),!1);return new u(e)}toUint8Array(){return this.key.toUint8Array()}toString(){return this.key.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;var v=r,a=class a extends f{constructor(e){super();let t=s.fromHexInput(e);if(t.toUint8Array().length!==a.LENGTH)throw new Error(`Signature length should be ${a.LENGTH}, received ${t.toUint8Array().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 m=a;export{u as a,v as b,m as c};
2
+ //# sourceMappingURL=chunk-7YXNZTCS.mjs.map
@@ -1,2 +1,2 @@
1
- import{c as n}from"./chunk-QB4XTGDH.mjs";import{o as g,t as d}from"./chunk-VHNX2NUR.mjs";import{b as s}from"./chunk-OHRL766V.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-XFT2EE4O.mjs.map
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,2 +1,2 @@
1
- import{a as n}from"./chunk-EG7QHK4U.mjs";import{b as i}from"./chunk-OHRL766V.mjs";import{a as d}from"./chunk-A63SMUOU.mjs";var o=class t extends d{constructor(e,s,r){super(),this.rawTransaction=e,this.feePayerAddress=r,this.secondarySignerAddresses=s}serialize(e){this.rawTransaction.serialize(e),e.serializeVector(this.secondarySignerAddresses),this.feePayerAddress===void 0?e.serializeBool(!1):(e.serializeBool(!0),this.feePayerAddress.serialize(e))}static deserialize(e){let s=n.deserialize(e),r=e.deserializeVector(i),c=e.deserializeBool(),a;return c&&(a=i.deserialize(e)),new t(s,r,a)}};export{o as a};
2
- //# sourceMappingURL=chunk-FL2G3JFQ.mjs.map
1
+ import{a as n}from"./chunk-VNTZZ7AM.mjs";import{b as i}from"./chunk-QPP6BX53.mjs";import{a as d}from"./chunk-HPZ2S4FE.mjs";var o=class t extends d{constructor(e,s,r){super(),this.rawTransaction=e,this.feePayerAddress=r,this.secondarySignerAddresses=s}serialize(e){this.rawTransaction.serialize(e),e.serializeVector(this.secondarySignerAddresses),this.feePayerAddress===void 0?e.serializeBool(!1):(e.serializeBool(!0),this.feePayerAddress.serialize(e))}static deserialize(e){let s=n.deserialize(e),r=e.deserializeVector(i),c=e.deserializeBool(),a;return c&&(a=i.deserialize(e)),new t(s,r,a)}};export{o as a};
2
+ //# sourceMappingURL=chunk-B3QK4FQY.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-A63SMUOU.mjs";import{b as t}from"./chunk-BCUSI3N6.mjs";var o=class extends r{toString(){let i=this.toUint8Array();return t.fromHexInput(i).toString()}};export{o as a};
2
- //# sourceMappingURL=chunk-MLDQ2TY2.mjs.map
1
+ import{a as r}from"./chunk-HPZ2S4FE.mjs";import{b as t}from"./chunk-BCUSI3N6.mjs";var o=class extends r{toString(){let i=this.toUint8Array();return t.fromHexInput(i).toString()}};export{o as a};
2
+ //# sourceMappingURL=chunk-BF4ZE37Q.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-VTHJWK3M.mjs";import{a as i}from"./chunk-EG7QHK4U.mjs";import{a as r}from"./chunk-A63SMUOU.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-KQYOM3J6.mjs.map
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,2 +1,2 @@
1
- import{a as r,b as i,c as s}from"./chunk-XFT2EE4O.mjs";import{a as o}from"./chunk-MJ7K6MUZ.mjs";var t=class{constructor(e){this.config=e}async getNumberOfDelegators(e){return await o({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"stake_processor"}),r({aptosConfig:this.config,...e})}async getNumberOfDelegatorsForAllPools(e){return await o({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"stake_processor"}),i({aptosConfig:this.config,...e})}async getDelegatedStakingActivities(e){return await o({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"stake_processor"}),s({aptosConfig:this.config,...e})}};export{t as a};
2
- //# sourceMappingURL=chunk-VWQQLTCH.mjs.map
1
+ import{a as r,b as i,c as s}from"./chunk-AN37GM4N.mjs";import{a as o}from"./chunk-MJ7K6MUZ.mjs";var t=class{constructor(e){this.config=e}async getNumberOfDelegators(e){return await o({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"stake_processor"}),r({aptosConfig:this.config,...e})}async getNumberOfDelegatorsForAllPools(e){return await o({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"stake_processor"}),i({aptosConfig:this.config,...e})}async getDelegatedStakingActivities(e){return await o({config:this.config,minimumLedgerVersion:e?.minimumLedgerVersion,processorType:"stake_processor"}),s({aptosConfig:this.config,...e})}};export{t as a};
2
+ //# sourceMappingURL=chunk-BYZKUWCV.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c,b as o,c as d,d as m,e as z,f as U,g as y}from"./chunk-YPHH6CAO.mjs";import{a as b}from"./chunk-KEYAPEAX.mjs";import{a as s}from"./chunk-A63SMUOU.mjs";import{b as u}from"./chunk-BCUSI3N6.mjs";var t=class n extends s{constructor(e){super(),this.values=e}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){if(this.values[0]!==void 0&&!(this.values[0]instanceof o)){new p(this.bcsToBytes()).serializeForScriptFunction(e);return}e.serializeU32AsUleb128(4),e.serialize(this)}static U8(e){let r;if(Array.isArray(e)&&e.length===0)r=[];else if(Array.isArray(e)&&typeof e[0]=="number")r=e;else if(typeof e=="string"){let i=u.fromHexInput(e);r=Array.from(i.toUint8Array())}else if(e instanceof Uint8Array)r=Array.from(e);else throw new Error("Invalid input type, must be an number[], Uint8Array, or hex string");return new n(r.map(i=>new o(i)))}static U16(e){return new n(e.map(r=>new d(r)))}static U32(e){return new n(e.map(r=>new m(r)))}static U64(e){return new n(e.map(r=>new z(r)))}static U128(e){return new n(e.map(r=>new U(r)))}static U256(e){return new n(e.map(r=>new y(r)))}static Bool(e){return new n(e.map(r=>new c(r)))}static MoveString(e){return new n(e.map(r=>new a(r)))}serialize(e){e.serializeVector(this.values)}static deserialize(e,r){let i=e.deserializeUleb128AsU32(),l=new Array;for(let w=0;w<i;w+=1)l.push(r.deserialize(e));return new n(l)}},p=class n extends s{constructor(e){super(),this.value=u.fromHexInput(e).toUint8Array()}serialize(e){e.serializeBytes(this.value)}serializeForEntryFunction(e){this.serialize(e)}serializeForScriptFunction(e){e.serializeU32AsUleb128(9),this.serialize(e)}static deserialize(e){return new n(e.deserializeBytes())}toMoveVector(e){let r=new b(this.bcsToBytes());r.deserializeUleb128AsU32();let i=r.deserializeVector(e);return new t(i)}},a=class n extends s{constructor(e){super(),this.value=e}serialize(e){e.serializeStr(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){let i=new TextEncoder().encode(this.value);t.U8(i).serializeForScriptFunction(e)}static deserialize(e){return new n(e.deserializeStr())}},A=class n extends s{constructor(e){super(),typeof e<"u"&&e!==null?this.vec=new t([e]):this.vec=new t([]),[this.value]=this.vec.values}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}unwrap(){if(this.isSome())return this.vec.values[0];throw new Error("Called unwrap on a MoveOption with no value")}isSome(){return this.vec.values.length===1}serialize(e){this.vec.serialize(e)}static U8(e){return new n(e!=null?new o(e):void 0)}static U16(e){return new n(e!=null?new d(e):void 0)}static U32(e){return new n(e!=null?new m(e):void 0)}static U64(e){return new n(e!=null?new z(e):void 0)}static U128(e){return new n(e!=null?new U(e):void 0)}static U256(e){return new n(e!=null?new y(e):void 0)}static Bool(e){return new n(e!=null?new c(e):void 0)}static MoveString(e){return new n(e!=null?new a(e):void 0)}static deserialize(e,r){let i=t.deserialize(e,r);return new n(i.values[0])}};export{t as a,p as b,a as c,A as d};
2
- //# sourceMappingURL=chunk-QQU4IQ27.mjs.map
1
+ import{a as c,b as o,c as d,d as m,e as z,f as U,g as y}from"./chunk-6QGVRNV6.mjs";import{a as b}from"./chunk-KEYAPEAX.mjs";import{a as s}from"./chunk-HPZ2S4FE.mjs";import{b as u}from"./chunk-BCUSI3N6.mjs";var t=class n extends s{constructor(e){super(),this.values=e}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){if(this.values[0]!==void 0&&!(this.values[0]instanceof o)){new p(this.bcsToBytes()).serializeForScriptFunction(e);return}e.serializeU32AsUleb128(4),e.serialize(this)}static U8(e){let r;if(Array.isArray(e)&&e.length===0)r=[];else if(Array.isArray(e)&&typeof e[0]=="number")r=e;else if(typeof e=="string"){let i=u.fromHexInput(e);r=Array.from(i.toUint8Array())}else if(e instanceof Uint8Array)r=Array.from(e);else throw new Error("Invalid input type, must be an number[], Uint8Array, or hex string");return new n(r.map(i=>new o(i)))}static U16(e){return new n(e.map(r=>new d(r)))}static U32(e){return new n(e.map(r=>new m(r)))}static U64(e){return new n(e.map(r=>new z(r)))}static U128(e){return new n(e.map(r=>new U(r)))}static U256(e){return new n(e.map(r=>new y(r)))}static Bool(e){return new n(e.map(r=>new c(r)))}static MoveString(e){return new n(e.map(r=>new a(r)))}serialize(e){e.serializeVector(this.values)}static deserialize(e,r){let i=e.deserializeUleb128AsU32(),l=new Array;for(let w=0;w<i;w+=1)l.push(r.deserialize(e));return new n(l)}},p=class n extends s{constructor(e){super(),this.value=u.fromHexInput(e).toUint8Array()}serialize(e){e.serializeBytes(this.value)}serializeForEntryFunction(e){this.serialize(e)}serializeForScriptFunction(e){e.serializeU32AsUleb128(9),this.serialize(e)}static deserialize(e){return new n(e.deserializeBytes())}toMoveVector(e){let r=new b(this.bcsToBytes());r.deserializeUleb128AsU32();let i=r.deserializeVector(e);return new t(i)}},a=class n extends s{constructor(e){super(),this.value=e}serialize(e){e.serializeStr(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){let i=new TextEncoder().encode(this.value);t.U8(i).serializeForScriptFunction(e)}static deserialize(e){return new n(e.deserializeStr())}},A=class n extends s{constructor(e){super(),typeof e<"u"&&e!==null?this.vec=new t([e]):this.vec=new t([]),[this.value]=this.vec.values}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}unwrap(){if(this.isSome())return this.vec.values[0];throw new Error("Called unwrap on a MoveOption with no value")}isSome(){return this.vec.values.length===1}serialize(e){this.vec.serialize(e)}static U8(e){return new n(e!=null?new o(e):void 0)}static U16(e){return new n(e!=null?new d(e):void 0)}static U32(e){return new n(e!=null?new m(e):void 0)}static U64(e){return new n(e!=null?new z(e):void 0)}static U128(e){return new n(e!=null?new U(e):void 0)}static U256(e){return new n(e!=null?new y(e):void 0)}static Bool(e){return new n(e!=null?new c(e):void 0)}static MoveString(e){return new n(e!=null?new a(e):void 0)}static deserialize(e,r){let i=t.deserialize(e,r);return new n(i.values[0])}};export{t as a,p as b,a as c,A as d};
2
+ //# sourceMappingURL=chunk-CCMHWJ3Q.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as g}from"./chunk-NJK4DINY.mjs";import{a as u}from"./chunk-E2X3MVIQ.mjs";import{a as A}from"./chunk-2AGCC7DU.mjs";import{a as h}from"./chunk-VWQQLTCH.mjs";import{a as y}from"./chunk-TEM2STPT.mjs";import{a as m}from"./chunk-HUYDR6MY.mjs";import{a as p}from"./chunk-RONLES3F.mjs";import{a as d}from"./chunk-NMD45OTM.mjs";import{a as r}from"./chunk-MQTQWVKC.mjs";import{a}from"./chunk-YZ2IE7W2.mjs";import{a as c}from"./chunk-UIWXJU6Z.mjs";import{a as l}from"./chunk-LZMZCQXB.mjs";import{a as f}from"./chunk-VSMEQLV6.mjs";import{a as s}from"./chunk-SPQKH5BG.mjs";var t=class{constructor(n){this.config=new d(n),this.account=new s(this.config),this.ans=new p(this.config),this.coin=new r(this.config),this.digitalAsset=new a(this.config),this.event=new c(this.config),this.faucet=new l(this.config),this.fungibleAsset=new f(this.config),this.general=new g(this.config),this.staking=new h(this.config),this.transaction=new m(this.config),this.table=new y(this.config),this.keyless=new u(this.config),this.object=new A(this.config)}};function e(b,n,w){Object.getOwnPropertyNames(n.prototype).forEach(i=>{let o=Object.getOwnPropertyDescriptor(n.prototype,i);o&&(o.value=function(...j){return this[w][i](...j)},Object.defineProperty(b.prototype,i,o))})}e(t,s,"account");e(t,p,"ans");e(t,r,"coin");e(t,a,"digitalAsset");e(t,c,"event");e(t,l,"faucet");e(t,f,"fungibleAsset");e(t,g,"general");e(t,h,"staking");e(t,m,"transaction");e(t,y,"table");e(t,u,"keyless");e(t,A,"object");export{t as a};
2
- //# sourceMappingURL=chunk-7NYFGX5Q.mjs.map
1
+ import{a as y}from"./chunk-4D6EDVZW.mjs";import{a as m}from"./chunk-XLLHYNH7.mjs";import{a as c}from"./chunk-MGTUMRQW.mjs";import{a as l}from"./chunk-LMO74K6V.mjs";import{a as f}from"./chunk-7KWFE3OU.mjs";import{a as g}from"./chunk-T4L7U65D.mjs";import{a as u}from"./chunk-ZGOO4E6O.mjs";import{a as A}from"./chunk-33DMJ7SF.mjs";import{a as h}from"./chunk-BYZKUWCV.mjs";import{a as s}from"./chunk-XD4E5FEG.mjs";import{a as p}from"./chunk-EHANMHHZ.mjs";import{a as d}from"./chunk-OJL36Q4H.mjs";import{a as r}from"./chunk-ZF3BOH6A.mjs";import{a}from"./chunk-TJI233SP.mjs";var t=class{constructor(n){this.config=new d(n),this.account=new s(this.config),this.ans=new p(this.config),this.coin=new r(this.config),this.digitalAsset=new a(this.config),this.event=new c(this.config),this.faucet=new l(this.config),this.fungibleAsset=new f(this.config),this.general=new g(this.config),this.staking=new h(this.config),this.transaction=new m(this.config),this.table=new y(this.config),this.keyless=new u(this.config),this.object=new A(this.config)}};function e(b,n,w){Object.getOwnPropertyNames(n.prototype).forEach(i=>{let o=Object.getOwnPropertyDescriptor(n.prototype,i);o&&(o.value=function(...j){return this[w][i](...j)},Object.defineProperty(b.prototype,i,o))})}e(t,s,"account");e(t,p,"ans");e(t,r,"coin");e(t,a,"digitalAsset");e(t,c,"event");e(t,l,"faucet");e(t,f,"fungibleAsset");e(t,g,"general");e(t,h,"staking");e(t,m,"transaction");e(t,y,"table");e(t,u,"keyless");e(t,A,"object");export{t as a};
2
+ //# sourceMappingURL=chunk-CG7SPTMT.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as K,b as w}from"./chunk-SYTI5QO7.mjs";import{d as h}from"./chunk-5BUJ6N72.mjs";import{a,b as c}from"./chunk-TVIQLBVA.mjs";import{j as m,k as g,n as P}from"./chunk-4BMEOXWL.mjs";import{b as d}from"./chunk-QPP6BX53.mjs";import{d as y}from"./chunk-UAL27G6B.mjs";import{a as n}from"./chunk-HPZ2S4FE.mjs";import{b as f}from"./chunk-BCUSI3N6.mjs";import v from"eventemitter3";var o=class o extends n{constructor(e){super();let{address:r,ephemeralKeyPair:t,publicKey:i,uidKey:F,uidVal:b,aud:E,pepper:A,proof:s,proofFetchCallback:l,jwt:x}=e;if(this.ephemeralKeyPair=t,this.publicKey=i,this.accountAddress=r?d.from(r):this.publicKey.authKey().derivedAddress(),this.uidKey=F,this.uidVal=b,this.aud=E,this.jwt=x,this.emitter=new v,this.proofOrPromise=s,s instanceof P)this.proof=s;else{if(l===void 0)throw new Error("Must provide callback for async proof fetch");this.emitter.on("proofFetchFinish",async T=>{await l(T),this.emitter.removeAllListeners()}),this.init(s)}this.signingScheme=2;let u=f.fromHexInput(A).toUint8Array();if(u.length!==o.PEPPER_LENGTH)throw new Error(`Pepper length in bytes should be ${o.PEPPER_LENGTH}`);this.pepper=u}async init(e){try{this.proof=await e,this.emitter.emit("proofFetchFinish",{status:"Success"})}catch(r){r instanceof Error?this.emitter.emit("proofFetchFinish",{status:"Failed",error:r.toString()}):this.emitter.emit("proofFetchFinish",{status:"Failed",error:"Unknown"})}}serialize(e){if(e.serializeStr(this.jwt),e.serializeStr(this.uidKey),e.serializeFixedBytes(this.pepper),this.ephemeralKeyPair.serialize(e),this.proof===void 0)throw new Error("Cannot serialize - proof undefined");this.proof.serialize(e)}isExpired(){return this.ephemeralKeyPair.isExpired()}signWithAuthenticator(e){let r=new c(this.sign(e)),t=new a(this.publicKey);return new h(t,r)}signTransactionWithAuthenticator(e){let r=new c(this.signTransaction(e)),t=new a(this.publicKey);return new h(t,r)}async waitForProofFetch(){this.proofOrPromise instanceof Promise&&await this.proofOrPromise}sign(e){let{expiryDateSecs:r}=this.ephemeralKeyPair;if(this.isExpired())throw new Error("EphemeralKeyPair is expired");if(this.proof===void 0)throw new Error("Proof not found - make sure to call `await account.waitForProofFetch()` before signing.");let t=this.ephemeralKeyPair.getPublicKey(),i=this.ephemeralKeyPair.sign(e);return new m({jwtHeader:y(this.jwt.split(".")[0]),ephemeralCertificate:new g(this.proof,0),expiryDateSecs:r,ephemeralPublicKey:t,ephemeralSignature:i})}signTransaction(e){if(this.proof===void 0)throw new Error("Proof not found - make sure to call `await account.waitForProofFetch()` before signing.");let r=K(e),i=new p(r,this.proof.proof).hash();return this.sign(i)}verifySignature(e){let{message:r,signature:t}=e;return!(this.isExpired()||!this.ephemeralKeyPair.getPublicKey().verifySignature({message:r,signature:t.ephemeralSignature}))}};o.PEPPER_LENGTH=31;var S=o,p=class extends n{constructor(r,t){super();this.domainSeparator="APTOS::TransactionAndProof";this.transaction=r,this.proof=t}serialize(r){r.serializeFixedBytes(this.transaction.bcsToBytes()),r.serializeOption(this.proof)}hash(){return w(this.bcsToBytes(),this.domainSeparator)}};export{S as a,p as b};
2
+ //# sourceMappingURL=chunk-CHPQXBMJ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/account/AbstractKeylessAccount.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport EventEmitter from \"eventemitter3\";\nimport { EphemeralCertificateVariant, HexInput, SigningScheme } from \"../types\";\nimport { AccountAddress } from \"../core/accountAddress\";\nimport {\n AnyPublicKey,\n AnySignature,\n KeylessPublicKey,\n KeylessSignature,\n EphemeralCertificate,\n ZeroKnowledgeSig,\n ZkProof,\n} from \"../core/crypto\";\n\nimport { Account } from \"./Account\";\nimport { EphemeralKeyPair } from \"./EphemeralKeyPair\";\nimport { Hex } from \"../core/hex\";\nimport { AccountAuthenticatorSingleKey } from \"../transactions/authenticator/account\";\nimport { Serializable, Serializer } from \"../bcs\";\nimport { deriveTransactionType, generateSigningMessage } from \"../transactions/transactionBuilder/signingMessage\";\nimport { AnyRawTransaction, AnyRawTransactionInstance } from \"../transactions/types\";\nimport { base64UrlDecode } from \"../utils/helpers\";\nimport { FederatedKeylessPublicKey } from \"../core/crypto/federatedKeyless\";\n\n/**\n * Account implementation for the Keyless authentication scheme. This abstract class is used for standard Keyless Accounts\n * and Federated Keyless Accounts.\n */\nexport abstract class AbstractKeylessAccount extends Serializable implements Account {\n static readonly PEPPER_LENGTH: number = 31;\n\n /**\n * The KeylessPublicKey associated with the account\n */\n readonly publicKey: KeylessPublicKey | FederatedKeylessPublicKey;\n\n /**\n * The EphemeralKeyPair used to generate sign.\n */\n readonly ephemeralKeyPair: EphemeralKeyPair;\n\n /**\n * The claim on the JWT to identify a user. This is typically 'sub' or 'email'.\n */\n readonly uidKey: string;\n\n /**\n * The value of the uidKey claim on the JWT. This intended to be a stable user identifier.\n */\n readonly uidVal: string;\n\n /**\n * The value of the 'aud' claim on the JWT, also known as client ID. This is the identifier for the dApp's\n * OIDC registration with the identity provider.\n */\n readonly aud: string;\n\n /**\n * A value contains 31 bytes of entropy that preserves privacy of the account. Typically fetched from a pepper provider.\n */\n readonly pepper: Uint8Array;\n\n /**\n * Account address associated with the account\n */\n readonly accountAddress: AccountAddress;\n\n /**\n * The zero knowledge signature (if ready) which contains the proof used to validate the EphemeralKeyPair.\n */\n proof: ZeroKnowledgeSig | undefined;\n\n /**\n * The proof of the EphemeralKeyPair or a promise that provides the proof. This is used to allow for awaiting on\n * fetching the proof.\n */\n readonly proofOrPromise: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;\n\n /**\n * Signing scheme used to sign transactions\n */\n readonly signingScheme: SigningScheme;\n\n /**\n * The JWT token used to derive the account\n */\n readonly jwt: string;\n\n /**\n * An event emitter used to assist in handling asynchronous proof fetching.\n */\n private readonly emitter: EventEmitter<ProofFetchEvents>;\n\n // Use the static constructor 'create' instead.\n protected constructor(args: {\n address?: AccountAddress;\n publicKey: KeylessPublicKey | FederatedKeylessPublicKey;\n ephemeralKeyPair: EphemeralKeyPair;\n iss: string;\n uidKey: string;\n uidVal: string;\n aud: string;\n pepper: HexInput;\n proof: ZeroKnowledgeSig | Promise<ZeroKnowledgeSig>;\n proofFetchCallback?: ProofFetchCallback;\n jwt: string;\n }) {\n super();\n const { address, ephemeralKeyPair, publicKey, uidKey, uidVal, aud, pepper, proof, proofFetchCallback, jwt } = args;\n this.ephemeralKeyPair = ephemeralKeyPair;\n this.publicKey = publicKey;\n this.accountAddress = address ? AccountAddress.from(address) : this.publicKey.authKey().derivedAddress();\n this.uidKey = uidKey;\n this.uidVal = uidVal;\n this.aud = aud;\n this.jwt = jwt;\n this.emitter = new EventEmitter<ProofFetchEvents>();\n this.proofOrPromise = proof;\n if (proof instanceof ZeroKnowledgeSig) {\n this.proof = proof;\n } else {\n if (proofFetchCallback === undefined) {\n throw new Error(\"Must provide callback for async proof fetch\");\n }\n this.emitter.on(\"proofFetchFinish\", async (status) => {\n await proofFetchCallback(status);\n this.emitter.removeAllListeners();\n });\n this.init(proof);\n }\n this.signingScheme = SigningScheme.SingleKey;\n const pepperBytes = Hex.fromHexInput(pepper).toUint8Array();\n if (pepperBytes.length !== AbstractKeylessAccount.PEPPER_LENGTH) {\n throw new Error(`Pepper length in bytes should be ${AbstractKeylessAccount.PEPPER_LENGTH}`);\n }\n this.pepper = pepperBytes;\n }\n\n /**\n * This initializes the asyncronous proof fetch\n * @return\n */\n async init(promise: Promise<ZeroKnowledgeSig>) {\n try {\n this.proof = await promise;\n this.emitter.emit(\"proofFetchFinish\", { status: \"Success\" });\n } catch (error) {\n if (error instanceof Error) {\n this.emitter.emit(\"proofFetchFinish\", { status: \"Failed\", error: error.toString() });\n } else {\n this.emitter.emit(\"proofFetchFinish\", { status: \"Failed\", error: \"Unknown\" });\n }\n }\n }\n\n serialize(serializer: Serializer): void {\n serializer.serializeStr(this.jwt);\n serializer.serializeStr(this.uidKey);\n serializer.serializeFixedBytes(this.pepper);\n this.ephemeralKeyPair.serialize(serializer);\n if (this.proof === undefined) {\n throw new Error(\"Cannot serialize - proof undefined\");\n }\n this.proof.serialize(serializer);\n }\n\n /**\n * Checks if the proof is expired. If so the account must be rederived with a new EphemeralKeyPair\n * and JWT token.\n * @return boolean\n */\n isExpired(): boolean {\n return this.ephemeralKeyPair.isExpired();\n }\n\n /**\n * Sign a message using Keyless.\n * @param message the message to sign, as binary input\n * @return the AccountAuthenticator containing the signature, together with the account's public key\n */\n signWithAuthenticator(message: HexInput): AccountAuthenticatorSingleKey {\n const signature = new AnySignature(this.sign(message));\n const publicKey = new AnyPublicKey(this.publicKey);\n return new AccountAuthenticatorSingleKey(publicKey, signature);\n }\n\n /**\n * Sign a transaction using Keyless.\n * @param transaction the raw transaction\n * @return the AccountAuthenticator containing the signature of the transaction, together with the account's public key\n */\n signTransactionWithAuthenticator(transaction: AnyRawTransaction): AccountAuthenticatorSingleKey {\n const signature = new AnySignature(this.signTransaction(transaction));\n const publicKey = new AnyPublicKey(this.publicKey);\n return new AccountAuthenticatorSingleKey(publicKey, signature);\n }\n\n /**\n * Waits for asyncronous proof fetching to finish.\n * @return\n */\n async waitForProofFetch() {\n if (this.proofOrPromise instanceof Promise) {\n await this.proofOrPromise;\n }\n }\n\n /**\n * Sign the given message using Keyless.\n * @param message in HexInput format\n * @returns Signature\n */\n sign(message: HexInput): KeylessSignature {\n const { expiryDateSecs } = this.ephemeralKeyPair;\n if (this.isExpired()) {\n throw new Error(\"EphemeralKeyPair is expired\");\n }\n if (this.proof === undefined) {\n throw new Error(\"Proof not found - make sure to call `await account.waitForProofFetch()` before signing.\");\n }\n const ephemeralPublicKey = this.ephemeralKeyPair.getPublicKey();\n const ephemeralSignature = this.ephemeralKeyPair.sign(message);\n\n return new KeylessSignature({\n jwtHeader: base64UrlDecode(this.jwt.split(\".\")[0]),\n ephemeralCertificate: new EphemeralCertificate(this.proof, EphemeralCertificateVariant.ZkProof),\n expiryDateSecs,\n ephemeralPublicKey,\n ephemeralSignature,\n });\n }\n\n /**\n * Sign the given transaction with Keyless.\n * Signs the transaction and proof to guard against proof malleability.\n * @param transaction the transaction to be signed\n * @returns KeylessSignature\n */\n signTransaction(transaction: AnyRawTransaction): KeylessSignature {\n if (this.proof === undefined) {\n throw new Error(\"Proof not found - make sure to call `await account.waitForProofFetch()` before signing.\");\n }\n const raw = deriveTransactionType(transaction);\n const txnAndProof = new TransactionAndProof(raw, this.proof.proof);\n const signMess = txnAndProof.hash();\n return this.sign(signMess);\n }\n\n /**\n * Note - This function is currently incomplete and should only be used to verify ownership of the KeylessAccount\n *\n * Verifies a signature given the message.\n *\n * TODO: Groth16 proof verification\n *\n * @param args.message the message that was signed.\n * @param args.signature the KeylessSignature to verify\n * @returns boolean\n */\n verifySignature(args: { message: HexInput; signature: KeylessSignature }): boolean {\n const { message, signature } = args;\n if (this.isExpired()) {\n return false;\n }\n if (!this.ephemeralKeyPair.getPublicKey().verifySignature({ message, signature: signature.ephemeralSignature })) {\n return false;\n }\n return true;\n }\n}\n\n/**\n * A container class to hold a transaction and a proof. It implements CryptoHashable which is used to create\n * the signing message for Keyless transactions. We sign over the proof to ensure non-malleability.\n */\nexport class TransactionAndProof extends Serializable {\n /**\n * The transaction to sign.\n */\n transaction: AnyRawTransactionInstance;\n\n /**\n * The zero knowledge proof used in signing the transaction.\n */\n proof?: ZkProof;\n\n /**\n * The domain separator prefix used when hashing.\n */\n readonly domainSeparator = \"APTOS::TransactionAndProof\";\n\n constructor(transaction: AnyRawTransactionInstance, proof?: ZkProof) {\n super();\n this.transaction = transaction;\n this.proof = proof;\n }\n\n serialize(serializer: Serializer): void {\n serializer.serializeFixedBytes(this.transaction.bcsToBytes());\n serializer.serializeOption(this.proof);\n }\n\n /**\n * Hashes the bcs serialized from of the class. This is the typescript corollary to the BCSCryptoHash macro in aptos-core.\n *\n * @returns Uint8Array\n */\n hash(): Uint8Array {\n return generateSigningMessage(this.bcsToBytes(), this.domainSeparator);\n }\n}\n\nexport type ProofFetchSuccess = {\n status: \"Success\";\n};\n\nexport type ProofFetchFailure = {\n status: \"Failed\";\n error: string;\n};\n\nexport type ProofFetchStatus = ProofFetchSuccess | ProofFetchFailure;\n\nexport type ProofFetchCallback = (status: ProofFetchStatus) => Promise<void>;\n\nexport interface ProofFetchEvents {\n proofFetchFinish: (status: ProofFetchStatus) => void;\n}\n"],"mappings":"+VAGA,OAAOA,MAAkB,gBA2BlB,IAAeC,EAAf,MAAeA,UAA+BC,CAAgC,CAkEzE,YAAYC,EAYnB,CACD,MAAM,EACN,GAAM,CAAE,QAAAC,EAAS,iBAAAC,EAAkB,UAAAC,EAAW,OAAAC,EAAQ,OAAAC,EAAQ,IAAAC,EAAK,OAAAC,EAAQ,MAAAC,EAAO,mBAAAC,EAAoB,IAAAC,CAAI,EAAIV,EAU9G,GATA,KAAK,iBAAmBE,EACxB,KAAK,UAAYC,EACjB,KAAK,eAAiBF,EAAUU,EAAe,KAAKV,CAAO,EAAI,KAAK,UAAU,QAAQ,EAAE,eAAe,EACvG,KAAK,OAASG,EACd,KAAK,OAASC,EACd,KAAK,IAAMC,EACX,KAAK,IAAMI,EACX,KAAK,QAAU,IAAIE,EACnB,KAAK,eAAiBJ,EAClBA,aAAiBK,EACnB,KAAK,MAAQL,MACR,CACL,GAAIC,IAAuB,OACzB,MAAM,IAAI,MAAM,6CAA6C,EAE/D,KAAK,QAAQ,GAAG,mBAAoB,MAAOK,GAAW,CACpD,MAAML,EAAmBK,CAAM,EAC/B,KAAK,QAAQ,mBAAmB,CAClC,CAAC,EACD,KAAK,KAAKN,CAAK,CACjB,CACA,KAAK,cAAgB,EACrB,IAAMO,EAAcC,EAAI,aAAaT,CAAM,EAAE,aAAa,EAC1D,GAAIQ,EAAY,SAAWjB,EAAuB,cAChD,MAAM,IAAI,MAAM,oCAAoCA,EAAuB,aAAa,EAAE,EAE5F,KAAK,OAASiB,CAChB,CAMA,MAAM,KAAKE,EAAoC,CAC7C,GAAI,CACF,KAAK,MAAQ,MAAMA,EACnB,KAAK,QAAQ,KAAK,mBAAoB,CAAE,OAAQ,SAAU,CAAC,CAC7D,OAASC,EAAO,CACVA,aAAiB,MACnB,KAAK,QAAQ,KAAK,mBAAoB,CAAE,OAAQ,SAAU,MAAOA,EAAM,SAAS,CAAE,CAAC,EAEnF,KAAK,QAAQ,KAAK,mBAAoB,CAAE,OAAQ,SAAU,MAAO,SAAU,CAAC,CAEhF,CACF,CAEA,UAAUC,EAA8B,CAKtC,GAJAA,EAAW,aAAa,KAAK,GAAG,EAChCA,EAAW,aAAa,KAAK,MAAM,EACnCA,EAAW,oBAAoB,KAAK,MAAM,EAC1C,KAAK,iBAAiB,UAAUA,CAAU,EACtC,KAAK,QAAU,OACjB,MAAM,IAAI,MAAM,oCAAoC,EAEtD,KAAK,MAAM,UAAUA,CAAU,CACjC,CAOA,WAAqB,CACnB,OAAO,KAAK,iBAAiB,UAAU,CACzC,CAOA,sBAAsBC,EAAkD,CACtE,IAAMC,EAAY,IAAIC,EAAa,KAAK,KAAKF,CAAO,CAAC,EAC/CjB,EAAY,IAAIoB,EAAa,KAAK,SAAS,EACjD,OAAO,IAAIC,EAA8BrB,EAAWkB,CAAS,CAC/D,CAOA,iCAAiCI,EAA+D,CAC9F,IAAMJ,EAAY,IAAIC,EAAa,KAAK,gBAAgBG,CAAW,CAAC,EAC9DtB,EAAY,IAAIoB,EAAa,KAAK,SAAS,EACjD,OAAO,IAAIC,EAA8BrB,EAAWkB,CAAS,CAC/D,CAMA,MAAM,mBAAoB,CACpB,KAAK,0BAA0B,SACjC,MAAM,KAAK,cAEf,CAOA,KAAKD,EAAqC,CACxC,GAAM,CAAE,eAAAM,CAAe,EAAI,KAAK,iBAChC,GAAI,KAAK,UAAU,EACjB,MAAM,IAAI,MAAM,6BAA6B,EAE/C,GAAI,KAAK,QAAU,OACjB,MAAM,IAAI,MAAM,yFAAyF,EAE3G,IAAMC,EAAqB,KAAK,iBAAiB,aAAa,EACxDC,EAAqB,KAAK,iBAAiB,KAAKR,CAAO,EAE7D,OAAO,IAAIS,EAAiB,CAC1B,UAAWC,EAAgB,KAAK,IAAI,MAAM,GAAG,EAAE,CAAC,CAAC,EACjD,qBAAsB,IAAIC,EAAqB,KAAK,OAA0C,EAC9F,eAAAL,EACA,mBAAAC,EACA,mBAAAC,CACF,CAAC,CACH,CAQA,gBAAgBH,EAAkD,CAChE,GAAI,KAAK,QAAU,OACjB,MAAM,IAAI,MAAM,yFAAyF,EAE3G,IAAMO,EAAMC,EAAsBR,CAAW,EAEvCS,EADc,IAAIC,EAAoBH,EAAK,KAAK,MAAM,KAAK,EACpC,KAAK,EAClC,OAAO,KAAK,KAAKE,CAAQ,CAC3B,CAaA,gBAAgBlC,EAAmE,CACjF,GAAM,CAAE,QAAAoB,EAAS,UAAAC,CAAU,EAAIrB,EAI/B,MAHI,OAAK,UAAU,GAGf,CAAC,KAAK,iBAAiB,aAAa,EAAE,gBAAgB,CAAE,QAAAoB,EAAS,UAAWC,EAAU,kBAAmB,CAAC,EAIhH,CACF,EAjPsBvB,EACJ,cAAwB,GADnC,IAAesC,EAAftC,EAuPMqC,EAAN,cAAkCpC,CAAa,CAgBpD,YAAY0B,EAAwCjB,EAAiB,CACnE,MAAM,EAHR,KAAS,gBAAkB,6BAIzB,KAAK,YAAciB,EACnB,KAAK,MAAQjB,CACf,CAEA,UAAUW,EAA8B,CACtCA,EAAW,oBAAoB,KAAK,YAAY,WAAW,CAAC,EAC5DA,EAAW,gBAAgB,KAAK,KAAK,CACvC,CAOA,MAAmB,CACjB,OAAOkB,EAAuB,KAAK,WAAW,EAAG,KAAK,eAAe,CACvE,CACF","names":["EventEmitter","_AbstractKeylessAccount","Serializable","args","address","ephemeralKeyPair","publicKey","uidKey","uidVal","aud","pepper","proof","proofFetchCallback","jwt","AccountAddress","EventEmitter","ZeroKnowledgeSig","status","pepperBytes","Hex","promise","error","serializer","message","signature","AnySignature","AnyPublicKey","AccountAuthenticatorSingleKey","transaction","expiryDateSecs","ephemeralPublicKey","ephemeralSignature","KeylessSignature","base64UrlDecode","EphemeralCertificate","raw","deriveTransactionType","signMess","TransactionAndProof","AbstractKeylessAccount","generateSigningMessage"]}
@@ -1,2 +1,2 @@
1
- import{b as h,d as l}from"./chunk-OGX4PXYG.mjs";import{b as E}from"./chunk-76OH2Z4Q.mjs";import{a as p}from"./chunk-MLDQ2TY2.mjs";import{a as g}from"./chunk-G5MGSV7Y.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-XG57ULWZ.mjs.map
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,2 +1,2 @@
1
- import{a as y,f as P,g as C,i as b}from"./chunk-OUZ7HH65.mjs";import{a as I}from"./chunk-3VKFVU25.mjs";import{a as f}from"./chunk-HCUQEDI6.mjs";import{a as w}from"./chunk-HXSCC3UV.mjs";import{a as A}from"./chunk-HR5XRRIH.mjs";import{d as h}from"./chunk-XP34ZZRH.mjs";import{a as l}from"./chunk-WLZYSLHP.mjs";import{c as T,m as c}from"./chunk-SUJLWCRN.mjs";import{b as p}from"./chunk-OHRL766V.mjs";import{b as d}from"./chunk-SS4IPKAI.mjs";import{a as s}from"./chunk-QQU4IQ27.mjs";import{b as m}from"./chunk-YPHH6CAO.mjs";async function S(t){let e=await K(t);return U(t,e)}async function K(t){let{aptosConfig:e,data:n}=t,a,o;return"bytecode"in n?o=await y(n):"multisigAddress"in n?(a={aptosConfig:e,multisigAddress:n.multisigAddress,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},o=await y(a)):(a={aptosConfig:e,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},o=await y(a)),o}async function U(t,e){let{aptosConfig:n,sender:a,options:o}=t,i;if(_(t)&&(i=p.ZERO.toString()),B(t)){let{secondarySignerAddresses:r}=t;return P({aptosConfig:n,sender:a,payload:e,options:o,secondarySignerAddresses:r,feePayerAddress:i})}return P({aptosConfig:n,sender:a,payload:e,options:o,feePayerAddress:i})}function _(t){return t.withFeePayer===!0}function B(t){return"secondarySignerAddresses"in t}function Y(t){let{transaction:e}=t;return h(e)}function R(t){let{signer:e,transaction:n}=t;return e.signTransactionWithAuthenticator(n)}function x(t){let{signer:e,transaction:n}=t;if(!n.feePayerAddress)throw new Error(`Transaction ${n} is not a Fee Payer transaction`);return n.feePayerAddress=e.accountAddress,R({signer:e,transaction:n})}async function nn(t){let{aptosConfig:e,transaction:n,signerPublicKey:a,secondarySignersPublicKeys:o,feePayerPublicKey:i,options:r}=t,u=C({transaction:n,signerPublicKey:a,secondarySignersPublicKeys:o,feePayerPublicKey:i,options:r}),{data:g}=await d({aptosConfig:e,body:u,path:"transactions/simulate",params:{estimate_gas_unit_price:t.options?.estimateGasUnitPrice??!1,estimate_max_gas_amount:t.options?.estimateMaxGasAmount??!1,estimate_prioritized_gas_unit_price:t.options?.estimatePrioritizedGasUnitPrice??!1},originMethod:"simulateTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return g}async function F(t){let{aptosConfig:e}=t,n=b({...t}),{data:a}=await d({aptosConfig:e,body:n,path:"transactions",originMethod:"submitTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return a}async function M(t){let{aptosConfig:e,signer:n,feePayer:a,transaction:o}=t;(n instanceof A||n instanceof f)&&await n.waitForProofFetch(),(a instanceof A||a instanceof f)&&await a.waitForProofFetch();let i=t.feePayerAuthenticator||a&&x({signer:a,transaction:o}),r=R({signer:n,transaction:o});return F({aptosConfig:e,transaction:o,senderAuthenticator:r,feePayerAuthenticator:i})}async function tn(t){let{aptosConfig:e,senderAuthenticator:n,feePayer:a,transaction:o}=t;(a instanceof A||a instanceof f)&&await a.waitForProofFetch();let i=x({signer:a,transaction:o});return F({aptosConfig:e,transaction:o,senderAuthenticator:n,feePayerAuthenticator:i})}var v={typeParameters:[],parameters:[c.u8(),new c(c.u8())]};async function en(t){let{aptosConfig:e,account:n,metadataBytes:a,moduleBytecode:o,options:i}=t,r=o.map(u=>s.U8(u));return S({aptosConfig:e,sender:p.from(n),data:{function:"0x1::code::publish_package_txn",functionArguments:[s.U8(a),new s(r)],abi:v},options:i})}var N={typeParameters:[],parameters:[new T,c.u8(),new T,c.u8(),c.u8(),c.u8()]};async function an(t){let{aptosConfig:e,fromAccount:n,toNewPrivateKey:a}=t,o=await I({aptosConfig:e,accountAddress:n.accountAddress}),i=w.fromPrivateKey({privateKey:a,legacy:!0}),u=new l({sequenceNumber:BigInt(o.sequence_number),originator:n.accountAddress,currentAuthKey:p.from(o.authentication_key),newPublicKey:i.publicKey}).bcsToBytes(),g=n.sign(u),D=i.sign(u),G=await S({aptosConfig:e,sender:n.accountAddress,data:{function:"0x1::account::rotate_authentication_key",functionArguments:[new m(n.signingScheme),s.U8(n.publicKey.toUint8Array()),new m(i.signingScheme),s.U8(i.publicKey.toUint8Array()),s.U8(g.toUint8Array()),s.U8(D.toUint8Array())],abi:N}});return M({aptosConfig:e,signer:n,transaction:G})}export{S as a,K as b,U as c,Y as d,R as e,x as f,nn as g,F as h,M as i,tn as j,en as k,an as l};
2
- //# sourceMappingURL=chunk-B3XOTMTY.mjs.map
1
+ import{a as y,f as P,g as C,i as b}from"./chunk-WFXL7LIC.mjs";import{a as I}from"./chunk-UH7ADIR7.mjs";import{a as f}from"./chunk-EDI5UVKO.mjs";import{a as A}from"./chunk-CHPQXBMJ.mjs";import{a as w}from"./chunk-ZRFOTNLQ.mjs";import{d as h}from"./chunk-SYTI5QO7.mjs";import{a as l}from"./chunk-RNTXQYJQ.mjs";import{c as T,m as c}from"./chunk-QDIKOQRK.mjs";import{b as p}from"./chunk-QPP6BX53.mjs";import{b as d}from"./chunk-SS4IPKAI.mjs";import{a as s}from"./chunk-CCMHWJ3Q.mjs";import{b as m}from"./chunk-6QGVRNV6.mjs";async function S(t){let e=await K(t);return U(t,e)}async function K(t){let{aptosConfig:e,data:n}=t,a,o;return"bytecode"in n?o=await y(n):"multisigAddress"in n?(a={aptosConfig:e,multisigAddress:n.multisigAddress,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},o=await y(a)):(a={aptosConfig:e,function:n.function,functionArguments:n.functionArguments,typeArguments:n.typeArguments,abi:n.abi},o=await y(a)),o}async function U(t,e){let{aptosConfig:n,sender:a,options:o}=t,i;if(_(t)&&(i=p.ZERO.toString()),B(t)){let{secondarySignerAddresses:r}=t;return P({aptosConfig:n,sender:a,payload:e,options:o,secondarySignerAddresses:r,feePayerAddress:i})}return P({aptosConfig:n,sender:a,payload:e,options:o,feePayerAddress:i})}function _(t){return t.withFeePayer===!0}function B(t){return"secondarySignerAddresses"in t}function Y(t){let{transaction:e}=t;return h(e)}function R(t){let{signer:e,transaction:n}=t;return e.signTransactionWithAuthenticator(n)}function x(t){let{signer:e,transaction:n}=t;if(!n.feePayerAddress)throw new Error(`Transaction ${n} is not a Fee Payer transaction`);return n.feePayerAddress=e.accountAddress,R({signer:e,transaction:n})}async function nn(t){let{aptosConfig:e,transaction:n,signerPublicKey:a,secondarySignersPublicKeys:o,feePayerPublicKey:i,options:r}=t,u=C({transaction:n,signerPublicKey:a,secondarySignersPublicKeys:o,feePayerPublicKey:i,options:r}),{data:g}=await d({aptosConfig:e,body:u,path:"transactions/simulate",params:{estimate_gas_unit_price:t.options?.estimateGasUnitPrice??!1,estimate_max_gas_amount:t.options?.estimateMaxGasAmount??!1,estimate_prioritized_gas_unit_price:t.options?.estimatePrioritizedGasUnitPrice??!1},originMethod:"simulateTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return g}async function F(t){let{aptosConfig:e}=t,n=b({...t}),{data:a}=await d({aptosConfig:e,body:n,path:"transactions",originMethod:"submitTransaction",contentType:"application/x.aptos.signed_transaction+bcs"});return a}async function M(t){let{aptosConfig:e,signer:n,feePayer:a,transaction:o}=t;(n instanceof A||n instanceof f)&&await n.waitForProofFetch(),(a instanceof A||a instanceof f)&&await a.waitForProofFetch();let i=t.feePayerAuthenticator||a&&x({signer:a,transaction:o}),r=R({signer:n,transaction:o});return F({aptosConfig:e,transaction:o,senderAuthenticator:r,feePayerAuthenticator:i})}async function tn(t){let{aptosConfig:e,senderAuthenticator:n,feePayer:a,transaction:o}=t;(a instanceof A||a instanceof f)&&await a.waitForProofFetch();let i=x({signer:a,transaction:o});return F({aptosConfig:e,transaction:o,senderAuthenticator:n,feePayerAuthenticator:i})}var v={typeParameters:[],parameters:[c.u8(),new c(c.u8())]};async function en(t){let{aptosConfig:e,account:n,metadataBytes:a,moduleBytecode:o,options:i}=t,r=o.map(u=>s.U8(u));return S({aptosConfig:e,sender:p.from(n),data:{function:"0x1::code::publish_package_txn",functionArguments:[s.U8(a),new s(r)],abi:v},options:i})}var N={typeParameters:[],parameters:[new T,c.u8(),new T,c.u8(),c.u8(),c.u8()]};async function an(t){let{aptosConfig:e,fromAccount:n,toNewPrivateKey:a}=t,o=await I({aptosConfig:e,accountAddress:n.accountAddress}),i=w.fromPrivateKey({privateKey:a,legacy:!0}),u=new l({sequenceNumber:BigInt(o.sequence_number),originator:n.accountAddress,currentAuthKey:p.from(o.authentication_key),newPublicKey:i.publicKey}).bcsToBytes(),g=n.sign(u),D=i.sign(u),G=await S({aptosConfig:e,sender:n.accountAddress,data:{function:"0x1::account::rotate_authentication_key",functionArguments:[new m(n.signingScheme),s.U8(n.publicKey.toUint8Array()),new m(i.signingScheme),s.U8(i.publicKey.toUint8Array()),s.U8(g.toUint8Array()),s.U8(D.toUint8Array())],abi:N}});return M({aptosConfig:e,signer:n,transaction:G})}export{S as a,K as b,U as c,Y as d,R as e,x as f,nn as g,F as h,M as i,tn as j,en as k,an as l};
2
+ //# sourceMappingURL=chunk-D72R4A35.mjs.map