@aptos-labs/ts-sdk 1.11.0 → 1.12.0

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 (332) hide show
  1. package/README.md +5 -6
  2. package/dist/common/index.d.ts +73 -31
  3. package/dist/common/index.js +26 -26
  4. package/dist/common/index.js.map +1 -1
  5. package/dist/esm/api/account.mjs +1 -1
  6. package/dist/esm/api/ans.d.mts +13 -11
  7. package/dist/esm/api/ans.mjs +1 -1
  8. package/dist/esm/api/aptos.d.mts +6 -4
  9. package/dist/esm/api/aptos.mjs +1 -1
  10. package/dist/esm/api/coin.d.mts +9 -7
  11. package/dist/esm/api/coin.mjs +1 -1
  12. package/dist/esm/api/digitalAsset.d.mts +3 -1
  13. package/dist/esm/api/digitalAsset.mjs +1 -1
  14. package/dist/esm/api/event.mjs +1 -1
  15. package/dist/esm/api/faucet.mjs +1 -1
  16. package/dist/esm/api/fungibleAsset.d.mts +6 -4
  17. package/dist/esm/api/fungibleAsset.mjs +1 -1
  18. package/dist/esm/api/general.d.mts +2 -0
  19. package/dist/esm/api/general.mjs +1 -1
  20. package/dist/esm/api/index.d.mts +6 -4
  21. package/dist/esm/api/index.mjs +1 -1
  22. package/dist/esm/api/staking.mjs +1 -1
  23. package/dist/esm/api/transaction.d.mts +6 -4
  24. package/dist/esm/api/transaction.mjs +1 -1
  25. package/dist/esm/api/transactionSubmission/build.d.mts +9 -7
  26. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  27. package/dist/esm/api/transactionSubmission/management.d.mts +5 -3
  28. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  29. package/dist/esm/api/transactionSubmission/sign.d.mts +2 -0
  30. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  31. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  32. package/dist/esm/api/transactionSubmission/simulate.d.mts +2 -0
  33. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  34. package/dist/esm/api/transactionSubmission/submit.d.mts +2 -0
  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-VNNLHEJ4.mjs → chunk-2MRYBOYC.mjs} +2 -2
  44. package/dist/esm/{chunk-TTM66JZ4.mjs → chunk-2XVDVF5C.mjs} +2 -2
  45. package/dist/esm/chunk-3D7GOEFD.mjs +2 -0
  46. package/dist/esm/chunk-3D7GOEFD.mjs.map +1 -0
  47. package/dist/esm/{chunk-3RRZ4MSV.mjs → chunk-3GTT6K3X.mjs} +2 -2
  48. package/dist/esm/{chunk-Y3CHPF6X.mjs → chunk-4J5V4M3P.mjs} +2 -2
  49. package/dist/esm/{chunk-VKWPCOZA.mjs → chunk-4KMISR2H.mjs} +2 -2
  50. package/dist/esm/{chunk-BWG5NCHC.mjs → chunk-5LI6PUQN.mjs} +2 -2
  51. package/dist/esm/{chunk-QDD2MDJZ.mjs → chunk-5NSXEM3O.mjs} +2 -2
  52. package/dist/esm/{chunk-Q5GNCAA6.mjs → chunk-6F7X2C22.mjs} +2 -2
  53. package/dist/esm/{chunk-XXKA2GO7.mjs → chunk-6MLNYBCP.mjs} +2 -2
  54. package/dist/esm/chunk-6MLNYBCP.mjs.map +1 -0
  55. package/dist/esm/{chunk-U5CKFPSM.mjs → chunk-6X6G2RC3.mjs} +2 -2
  56. package/dist/esm/chunk-6X6G2RC3.mjs.map +1 -0
  57. package/dist/esm/{chunk-T43CJS4C.mjs → chunk-7JZWCHLH.mjs} +2 -2
  58. package/dist/esm/{chunk-W5PK4QCX.mjs → chunk-7PNFDDIG.mjs} +2 -2
  59. package/dist/esm/chunk-AFTMLXYT.mjs +2 -0
  60. package/dist/esm/chunk-BCUSI3N6.mjs +2 -0
  61. package/dist/esm/chunk-BCUSI3N6.mjs.map +1 -0
  62. package/dist/esm/{chunk-HSITRYZ5.mjs → chunk-C67SYOXM.mjs} +2 -2
  63. package/dist/esm/{chunk-HYQSORWM.mjs → chunk-CHVWOPVA.mjs} +2 -2
  64. package/dist/esm/{chunk-JKXSSRNT.mjs → chunk-CPQPVRKV.mjs} +2 -2
  65. package/dist/esm/{chunk-P434YHBQ.mjs → chunk-D5Q7BI3J.mjs} +2 -2
  66. package/dist/esm/chunk-DAC5J2BG.mjs +2 -0
  67. package/dist/esm/chunk-DAC5J2BG.mjs.map +1 -0
  68. package/dist/esm/{chunk-O5L7WGNH.mjs → chunk-EIXGNR6D.mjs} +2 -2
  69. package/dist/esm/{chunk-OWEAY3N3.mjs → chunk-EOQOTFO7.mjs} +2 -2
  70. package/dist/esm/chunk-F7EMGK4M.mjs +2 -0
  71. package/dist/esm/chunk-F7EMGK4M.mjs.map +1 -0
  72. package/dist/esm/chunk-F7J7ZW4H.mjs +2 -0
  73. package/dist/esm/{chunk-2BGOMPDV.mjs → chunk-FNKDXPPQ.mjs} +2 -2
  74. package/dist/esm/{chunk-VBSAEAWA.mjs → chunk-HOTGXRPG.mjs} +2 -2
  75. package/dist/esm/{chunk-O22J7RER.mjs → chunk-HTTPFWYL.mjs} +2 -2
  76. package/dist/esm/chunk-HTWJVZZ5.mjs +2 -0
  77. package/dist/esm/chunk-HTWJVZZ5.mjs.map +1 -0
  78. package/dist/esm/chunk-ICXA3DZH.mjs +1 -0
  79. package/dist/esm/{chunk-2NC32JRF.mjs → chunk-IQSAG5Y5.mjs} +2 -2
  80. package/dist/esm/{chunk-4P6KFDXF.mjs → chunk-J43BXPJ3.mjs} +2 -2
  81. package/dist/esm/chunk-J43BXPJ3.mjs.map +1 -0
  82. package/dist/esm/{chunk-JX3IRXNX.mjs → chunk-JE7INUQ2.mjs} +2 -2
  83. package/dist/esm/chunk-JNDRFTEA.mjs +2 -0
  84. package/dist/esm/chunk-JNDRFTEA.mjs.map +1 -0
  85. package/dist/esm/{chunk-27ML4NFD.mjs → chunk-JV2PBG6G.mjs} +2 -2
  86. package/dist/esm/{chunk-3EKNELIS.mjs → chunk-JV2UOHGR.mjs} +2 -2
  87. package/dist/esm/{chunk-43QJL2AV.mjs → chunk-JVBXZ6OJ.mjs} +2 -2
  88. package/dist/esm/{chunk-RWBAKP5G.mjs → chunk-KJI5PY5Z.mjs} +2 -2
  89. package/dist/esm/chunk-KPDWT3LC.mjs +2 -0
  90. package/dist/esm/chunk-KPDWT3LC.mjs.map +1 -0
  91. package/dist/esm/{chunk-PAY4TBCF.mjs → chunk-L54P6EGN.mjs} +2 -2
  92. package/dist/esm/{chunk-PAY4TBCF.mjs.map → chunk-L54P6EGN.mjs.map} +1 -1
  93. package/dist/esm/{chunk-Y3R5DLBS.mjs → chunk-L6KXN3YD.mjs} +2 -2
  94. package/dist/esm/{chunk-SQW7K56J.mjs → chunk-LF6IQT54.mjs} +2 -2
  95. package/dist/esm/{chunk-JF4E53MH.mjs → chunk-LSKVPMOF.mjs} +2 -2
  96. package/dist/esm/{chunk-JF4E53MH.mjs.map → chunk-LSKVPMOF.mjs.map} +1 -1
  97. package/dist/esm/{chunk-Y7G5W2QZ.mjs → chunk-MS76A6LX.mjs} +2 -2
  98. package/dist/esm/{chunk-JLDOXN33.mjs → chunk-MV7RDJFK.mjs} +2 -2
  99. package/dist/esm/{chunk-LD7YBNH5.mjs → chunk-NLMMCXLR.mjs} +2 -2
  100. package/dist/esm/{chunk-A5ACWD7S.mjs → chunk-NLPPL42P.mjs} +2 -2
  101. package/dist/esm/chunk-NMASPJTH.mjs +2 -0
  102. package/dist/esm/chunk-NMASPJTH.mjs.map +1 -0
  103. package/dist/esm/{chunk-OH6HD5SF.mjs → chunk-O3YFW4T3.mjs} +2 -2
  104. package/dist/esm/chunk-O3YFW4T3.mjs.map +1 -0
  105. package/dist/esm/{chunk-4LQNMXX3.mjs → chunk-P2CIREOD.mjs} +2 -2
  106. package/dist/esm/{chunk-H4Q7YQD3.mjs → chunk-PE6R6XQV.mjs} +2 -2
  107. package/dist/esm/chunk-QAMK2MSI.mjs +2 -0
  108. package/dist/esm/chunk-QAMK2MSI.mjs.map +1 -0
  109. package/dist/esm/{chunk-AVQSQJUO.mjs → chunk-QMFBU2CG.mjs} +2 -2
  110. package/dist/esm/{chunk-HEDMDM2U.mjs → chunk-R3ELNYY5.mjs} +2 -2
  111. package/dist/esm/chunk-R3ELNYY5.mjs.map +1 -0
  112. package/dist/esm/{chunk-C62XI6VN.mjs → chunk-R4ERAOCM.mjs} +2 -2
  113. package/dist/esm/{chunk-2TRSGKMS.mjs → chunk-RP66QS6R.mjs} +2 -2
  114. package/dist/esm/chunk-RVUPGO4R.mjs +2 -0
  115. package/dist/esm/chunk-RVUPGO4R.mjs.map +1 -0
  116. package/dist/esm/{chunk-WHNLDDPT.mjs → chunk-S5AGI7RQ.mjs} +2 -2
  117. package/dist/esm/{chunk-NDV4GZ5U.mjs → chunk-UCDLUHVW.mjs} +2 -2
  118. package/dist/esm/chunk-UCDLUHVW.mjs.map +1 -0
  119. package/dist/esm/{chunk-GHMYWL3R.mjs → chunk-UEI62FBQ.mjs} +2 -2
  120. package/dist/esm/chunk-VU2W3ZLX.mjs +2 -0
  121. package/dist/esm/{chunk-LNS5RI5S.mjs.map → chunk-VU2W3ZLX.mjs.map} +1 -1
  122. package/dist/esm/{chunk-AT2HAXSH.mjs → chunk-VUZDLGDK.mjs} +2 -2
  123. package/dist/esm/{chunk-XDZF5IUF.mjs → chunk-WNVUG2UF.mjs} +2 -2
  124. package/dist/esm/{chunk-CIMZIZY3.mjs → chunk-WXXASZQ4.mjs} +2 -2
  125. package/dist/esm/{chunk-EBCIZ4D6.mjs → chunk-WZSVQBPA.mjs} +2 -2
  126. package/dist/esm/{chunk-HYOPI6T2.mjs → chunk-X3QW43I2.mjs} +2 -2
  127. package/dist/esm/{chunk-VK3H7DMJ.mjs → chunk-XMJEWG3I.mjs} +2 -2
  128. package/dist/esm/{chunk-JEQSSMDK.mjs → chunk-XQMUVQI3.mjs} +2 -2
  129. package/dist/esm/chunk-Y2AFC3E6.mjs +2 -0
  130. package/dist/esm/chunk-Y2AFC3E6.mjs.map +1 -0
  131. package/dist/esm/{chunk-AE2K65NN.mjs → chunk-Y52TZMRO.mjs} +2 -2
  132. package/dist/esm/chunk-Y52TZMRO.mjs.map +1 -0
  133. package/dist/esm/{chunk-RP4FMC6O.mjs → chunk-YJIRT3GJ.mjs} +2 -2
  134. package/dist/esm/{chunk-CJLZV5JK.mjs → chunk-YMFCBU4L.mjs} +2 -2
  135. package/dist/esm/{chunk-NHVLEE5G.mjs → chunk-ZPS4RIFU.mjs} +2 -2
  136. package/dist/esm/chunk-ZPS4RIFU.mjs.map +1 -0
  137. package/dist/esm/cli/index.mjs +1 -1
  138. package/dist/esm/cli/localNode.d.mts +1 -1
  139. package/dist/esm/cli/localNode.mjs +1 -1
  140. package/dist/esm/client/core.mjs +1 -1
  141. package/dist/esm/client/get.mjs +1 -1
  142. package/dist/esm/client/index.mjs +1 -1
  143. package/dist/esm/client/post.mjs +1 -1
  144. package/dist/esm/core/account/Account.mjs +1 -1
  145. package/dist/esm/core/account/Ed25519Account.mjs +1 -1
  146. package/dist/esm/core/account/SingleKeyAccount.mjs +1 -1
  147. package/dist/esm/core/account/index.d.mts +1 -1
  148. package/dist/esm/core/account/index.mjs +1 -1
  149. package/dist/esm/core/account/utils/address.d.mts +10 -1
  150. package/dist/esm/core/account/utils/address.mjs +1 -1
  151. package/dist/esm/core/account/utils/index.d.mts +1 -1
  152. package/dist/esm/core/account/utils/index.mjs +1 -1
  153. package/dist/esm/core/accountAddress.mjs +1 -1
  154. package/dist/esm/core/authenticationKey.mjs +1 -1
  155. package/dist/esm/core/crypto/ed25519.d.mts +2 -2
  156. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  157. package/dist/esm/core/crypto/index.mjs +1 -1
  158. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  159. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  160. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  161. package/dist/esm/core/crypto/secp256k1.d.mts +1 -1
  162. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  163. package/dist/esm/core/crypto/signature.mjs +1 -1
  164. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  165. package/dist/esm/core/crypto/utils.d.mts +16 -0
  166. package/dist/esm/core/crypto/utils.mjs +2 -0
  167. package/dist/esm/core/crypto/utils.mjs.map +1 -0
  168. package/dist/esm/core/hex.d.mts +2 -2
  169. package/dist/esm/core/hex.mjs +1 -1
  170. package/dist/esm/core/index.d.mts +1 -1
  171. package/dist/esm/core/index.mjs +1 -1
  172. package/dist/esm/index.d.mts +5 -3
  173. package/dist/esm/index.mjs +1 -1
  174. package/dist/esm/internal/account.mjs +1 -1
  175. package/dist/esm/internal/ans.d.mts +7 -5
  176. package/dist/esm/internal/ans.mjs +1 -1
  177. package/dist/esm/internal/coin.d.mts +3 -1
  178. package/dist/esm/internal/coin.mjs +1 -1
  179. package/dist/esm/internal/digitalAsset.d.mts +3 -1
  180. package/dist/esm/internal/digitalAsset.mjs +1 -1
  181. package/dist/esm/internal/event.mjs +1 -1
  182. package/dist/esm/internal/faucet.mjs +1 -1
  183. package/dist/esm/internal/fungibleAsset.d.mts +6 -4
  184. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  185. package/dist/esm/internal/general.mjs +1 -1
  186. package/dist/esm/internal/staking.mjs +1 -1
  187. package/dist/esm/internal/transaction.mjs +1 -1
  188. package/dist/esm/internal/transactionSubmission.d.mts +3 -1
  189. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  190. package/dist/esm/internal/view.d.mts +2 -0
  191. package/dist/esm/internal/view.mjs +1 -1
  192. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  193. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  194. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  195. package/dist/esm/transactions/index.d.mts +4 -2
  196. package/dist/esm/transactions/index.mjs +1 -1
  197. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  198. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  199. package/dist/esm/transactions/instances/index.d.mts +1 -0
  200. package/dist/esm/transactions/instances/index.mjs +1 -1
  201. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  202. package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +41 -0
  203. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +2 -0
  204. package/dist/esm/transactions/instances/multiAgentTransaction.mjs.map +1 -0
  205. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  206. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  207. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  208. package/dist/esm/transactions/instances/simpleTransaction.d.mts +41 -0
  209. package/dist/esm/transactions/instances/simpleTransaction.mjs +2 -0
  210. package/dist/esm/transactions/instances/simpleTransaction.mjs.map +1 -0
  211. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  212. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  213. package/dist/esm/transactions/management/index.d.mts +2 -0
  214. package/dist/esm/transactions/management/index.mjs +1 -1
  215. package/dist/esm/transactions/management/transactionWorker.d.mts +3 -1
  216. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  217. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +2 -0
  218. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  219. package/dist/esm/transactions/transactionBuilder/index.d.mts +3 -1
  220. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  221. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +2 -0
  222. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  223. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +14 -2
  224. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  225. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  226. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  227. package/dist/esm/transactions/types.d.mts +3 -22
  228. package/dist/esm/version.d.mts +1 -1
  229. package/dist/esm/version.mjs +1 -1
  230. package/package.json +1 -1
  231. package/src/api/ans.ts +8 -7
  232. package/src/api/coin.ts +2 -1
  233. package/src/api/digitalAsset.ts +2 -1
  234. package/src/api/fungibleAsset.ts +2 -1
  235. package/src/api/transaction.ts +1 -1
  236. package/src/api/transactionSubmission/build.ts +3 -6
  237. package/src/cli/localNode.ts +1 -1
  238. package/src/core/account/utils/address.ts +18 -0
  239. package/src/core/crypto/ed25519.ts +7 -5
  240. package/src/core/crypto/secp256k1.ts +6 -4
  241. package/src/core/crypto/utils.ts +24 -0
  242. package/src/core/hex.ts +4 -4
  243. package/src/internal/ans.ts +9 -5
  244. package/src/internal/coin.ts +2 -1
  245. package/src/internal/digitalAsset.ts +2 -1
  246. package/src/internal/fungibleAsset.ts +1 -1
  247. package/src/internal/transactionSubmission.ts +2 -2
  248. package/src/transactions/instances/index.ts +1 -0
  249. package/src/transactions/instances/multiAgentTransaction.ts +68 -0
  250. package/src/transactions/instances/simpleTransaction.ts +60 -0
  251. package/src/transactions/management/transactionWorker.ts +2 -1
  252. package/src/transactions/transactionBuilder/transactionBuilder.ts +38 -11
  253. package/src/transactions/types.ts +2 -23
  254. package/src/version.ts +1 -1
  255. package/dist/esm/chunk-3OOOAQJG.mjs +0 -2
  256. package/dist/esm/chunk-3OOOAQJG.mjs.map +0 -1
  257. package/dist/esm/chunk-4P6KFDXF.mjs.map +0 -1
  258. package/dist/esm/chunk-4UMTUJL5.mjs +0 -2
  259. package/dist/esm/chunk-4UMTUJL5.mjs.map +0 -1
  260. package/dist/esm/chunk-AE2K65NN.mjs.map +0 -1
  261. package/dist/esm/chunk-BZMO6Q6L.mjs +0 -2
  262. package/dist/esm/chunk-BZMO6Q6L.mjs.map +0 -1
  263. package/dist/esm/chunk-D2XKVVEN.mjs +0 -2
  264. package/dist/esm/chunk-D2XKVVEN.mjs.map +0 -1
  265. package/dist/esm/chunk-EXX55N2B.mjs +0 -2
  266. package/dist/esm/chunk-EXX55N2B.mjs.map +0 -1
  267. package/dist/esm/chunk-GQTC6QIS.mjs +0 -2
  268. package/dist/esm/chunk-GQTC6QIS.mjs.map +0 -1
  269. package/dist/esm/chunk-HEDMDM2U.mjs.map +0 -1
  270. package/dist/esm/chunk-HTZTTZQJ.mjs +0 -1
  271. package/dist/esm/chunk-IWPVPIKD.mjs +0 -2
  272. package/dist/esm/chunk-LG6SZTWR.mjs +0 -2
  273. package/dist/esm/chunk-LG6SZTWR.mjs.map +0 -1
  274. package/dist/esm/chunk-LNS5RI5S.mjs +0 -2
  275. package/dist/esm/chunk-NDV4GZ5U.mjs.map +0 -1
  276. package/dist/esm/chunk-NHVLEE5G.mjs.map +0 -1
  277. package/dist/esm/chunk-OH5ADEJO.mjs +0 -2
  278. package/dist/esm/chunk-OH6HD5SF.mjs.map +0 -1
  279. package/dist/esm/chunk-TBSPLLCB.mjs +0 -2
  280. package/dist/esm/chunk-TBSPLLCB.mjs.map +0 -1
  281. package/dist/esm/chunk-U5CKFPSM.mjs.map +0 -1
  282. package/dist/esm/chunk-XXKA2GO7.mjs.map +0 -1
  283. /package/dist/esm/{chunk-VNNLHEJ4.mjs.map → chunk-2MRYBOYC.mjs.map} +0 -0
  284. /package/dist/esm/{chunk-TTM66JZ4.mjs.map → chunk-2XVDVF5C.mjs.map} +0 -0
  285. /package/dist/esm/{chunk-3RRZ4MSV.mjs.map → chunk-3GTT6K3X.mjs.map} +0 -0
  286. /package/dist/esm/{chunk-Y3CHPF6X.mjs.map → chunk-4J5V4M3P.mjs.map} +0 -0
  287. /package/dist/esm/{chunk-VKWPCOZA.mjs.map → chunk-4KMISR2H.mjs.map} +0 -0
  288. /package/dist/esm/{chunk-BWG5NCHC.mjs.map → chunk-5LI6PUQN.mjs.map} +0 -0
  289. /package/dist/esm/{chunk-QDD2MDJZ.mjs.map → chunk-5NSXEM3O.mjs.map} +0 -0
  290. /package/dist/esm/{chunk-Q5GNCAA6.mjs.map → chunk-6F7X2C22.mjs.map} +0 -0
  291. /package/dist/esm/{chunk-T43CJS4C.mjs.map → chunk-7JZWCHLH.mjs.map} +0 -0
  292. /package/dist/esm/{chunk-W5PK4QCX.mjs.map → chunk-7PNFDDIG.mjs.map} +0 -0
  293. /package/dist/esm/{chunk-OH5ADEJO.mjs.map → chunk-AFTMLXYT.mjs.map} +0 -0
  294. /package/dist/esm/{chunk-HSITRYZ5.mjs.map → chunk-C67SYOXM.mjs.map} +0 -0
  295. /package/dist/esm/{chunk-HYQSORWM.mjs.map → chunk-CHVWOPVA.mjs.map} +0 -0
  296. /package/dist/esm/{chunk-JKXSSRNT.mjs.map → chunk-CPQPVRKV.mjs.map} +0 -0
  297. /package/dist/esm/{chunk-P434YHBQ.mjs.map → chunk-D5Q7BI3J.mjs.map} +0 -0
  298. /package/dist/esm/{chunk-O5L7WGNH.mjs.map → chunk-EIXGNR6D.mjs.map} +0 -0
  299. /package/dist/esm/{chunk-OWEAY3N3.mjs.map → chunk-EOQOTFO7.mjs.map} +0 -0
  300. /package/dist/esm/{chunk-IWPVPIKD.mjs.map → chunk-F7J7ZW4H.mjs.map} +0 -0
  301. /package/dist/esm/{chunk-2BGOMPDV.mjs.map → chunk-FNKDXPPQ.mjs.map} +0 -0
  302. /package/dist/esm/{chunk-VBSAEAWA.mjs.map → chunk-HOTGXRPG.mjs.map} +0 -0
  303. /package/dist/esm/{chunk-O22J7RER.mjs.map → chunk-HTTPFWYL.mjs.map} +0 -0
  304. /package/dist/esm/{chunk-HTZTTZQJ.mjs.map → chunk-ICXA3DZH.mjs.map} +0 -0
  305. /package/dist/esm/{chunk-2NC32JRF.mjs.map → chunk-IQSAG5Y5.mjs.map} +0 -0
  306. /package/dist/esm/{chunk-JX3IRXNX.mjs.map → chunk-JE7INUQ2.mjs.map} +0 -0
  307. /package/dist/esm/{chunk-27ML4NFD.mjs.map → chunk-JV2PBG6G.mjs.map} +0 -0
  308. /package/dist/esm/{chunk-3EKNELIS.mjs.map → chunk-JV2UOHGR.mjs.map} +0 -0
  309. /package/dist/esm/{chunk-43QJL2AV.mjs.map → chunk-JVBXZ6OJ.mjs.map} +0 -0
  310. /package/dist/esm/{chunk-RWBAKP5G.mjs.map → chunk-KJI5PY5Z.mjs.map} +0 -0
  311. /package/dist/esm/{chunk-Y3R5DLBS.mjs.map → chunk-L6KXN3YD.mjs.map} +0 -0
  312. /package/dist/esm/{chunk-SQW7K56J.mjs.map → chunk-LF6IQT54.mjs.map} +0 -0
  313. /package/dist/esm/{chunk-Y7G5W2QZ.mjs.map → chunk-MS76A6LX.mjs.map} +0 -0
  314. /package/dist/esm/{chunk-JLDOXN33.mjs.map → chunk-MV7RDJFK.mjs.map} +0 -0
  315. /package/dist/esm/{chunk-LD7YBNH5.mjs.map → chunk-NLMMCXLR.mjs.map} +0 -0
  316. /package/dist/esm/{chunk-A5ACWD7S.mjs.map → chunk-NLPPL42P.mjs.map} +0 -0
  317. /package/dist/esm/{chunk-4LQNMXX3.mjs.map → chunk-P2CIREOD.mjs.map} +0 -0
  318. /package/dist/esm/{chunk-H4Q7YQD3.mjs.map → chunk-PE6R6XQV.mjs.map} +0 -0
  319. /package/dist/esm/{chunk-AVQSQJUO.mjs.map → chunk-QMFBU2CG.mjs.map} +0 -0
  320. /package/dist/esm/{chunk-C62XI6VN.mjs.map → chunk-R4ERAOCM.mjs.map} +0 -0
  321. /package/dist/esm/{chunk-2TRSGKMS.mjs.map → chunk-RP66QS6R.mjs.map} +0 -0
  322. /package/dist/esm/{chunk-WHNLDDPT.mjs.map → chunk-S5AGI7RQ.mjs.map} +0 -0
  323. /package/dist/esm/{chunk-GHMYWL3R.mjs.map → chunk-UEI62FBQ.mjs.map} +0 -0
  324. /package/dist/esm/{chunk-AT2HAXSH.mjs.map → chunk-VUZDLGDK.mjs.map} +0 -0
  325. /package/dist/esm/{chunk-XDZF5IUF.mjs.map → chunk-WNVUG2UF.mjs.map} +0 -0
  326. /package/dist/esm/{chunk-CIMZIZY3.mjs.map → chunk-WXXASZQ4.mjs.map} +0 -0
  327. /package/dist/esm/{chunk-EBCIZ4D6.mjs.map → chunk-WZSVQBPA.mjs.map} +0 -0
  328. /package/dist/esm/{chunk-HYOPI6T2.mjs.map → chunk-X3QW43I2.mjs.map} +0 -0
  329. /package/dist/esm/{chunk-VK3H7DMJ.mjs.map → chunk-XMJEWG3I.mjs.map} +0 -0
  330. /package/dist/esm/{chunk-JEQSSMDK.mjs.map → chunk-XQMUVQI3.mjs.map} +0 -0
  331. /package/dist/esm/{chunk-RP4FMC6O.mjs.map → chunk-YJIRT3GJ.mjs.map} +0 -0
  332. /package/dist/esm/{chunk-CJLZV5JK.mjs.map → chunk-YMFCBU4L.mjs.map} +0 -0
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-3RRZ4MSV.mjs";import"../../chunk-IHYTP2EW.mjs";import"../../chunk-XXKA2GO7.mjs";import"../../chunk-JLDOXN33.mjs";import"../../chunk-U6Z4FNB7.mjs";import"../../chunk-JF4E53MH.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-R7G3CLRI.mjs";import"../../chunk-TBSPLLCB.mjs";import"../../chunk-LD7YBNH5.mjs";import"../../chunk-JX3IRXNX.mjs";import"../../chunk-P434YHBQ.mjs";import"../../chunk-HTZTTZQJ.mjs";import"../../chunk-2TRSGKMS.mjs";import"../../chunk-C62XI6VN.mjs";import"../../chunk-W5PK4QCX.mjs";import"../../chunk-Y7G5W2QZ.mjs";import"../../chunk-WHNLDDPT.mjs";import"../../chunk-4LQNMXX3.mjs";import"../../chunk-SQW7K56J.mjs";import"../../chunk-EBCIZ4D6.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-RWBAKP5G.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-27ML4NFD.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-MLWIHWNH.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-4UMTUJL5.mjs";import"../../chunk-Y3CHPF6X.mjs";import"../../chunk-Q5GNCAA6.mjs";import"../../chunk-CJLZV5JK.mjs";import"../../chunk-2NC32JRF.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-BWG5NCHC.mjs";import"../../chunk-HYQSORWM.mjs";import"../../chunk-AVQSQJUO.mjs";import"../../chunk-LG6SZTWR.mjs";import"../../chunk-EXX55N2B.mjs";import"../../chunk-IWPVPIKD.mjs";import"../../chunk-OH5ADEJO.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-2BGOMPDV.mjs";import"../../chunk-TTM66JZ4.mjs";import"../../chunk-RP4FMC6O.mjs";import"../../chunk-QDD2MDJZ.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-XDZF5IUF.mjs";import"../../chunk-GHMYWL3R.mjs";import"../../chunk-VKWPCOZA.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-VNNLHEJ4.mjs";import"../../chunk-3JPVQHOR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-JKXSSRNT.mjs";import"../../chunk-S4SEFF4K.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-T43CJS4C.mjs";import"../../chunk-O5L7WGNH.mjs";import"../../chunk-H4Q7YQD3.mjs";import"../../chunk-CYDWEPFL.mjs";import"../../chunk-GHYE26Q5.mjs";import"../../chunk-NJRNZEHX.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-LNS5RI5S.mjs";import"../../chunk-C67BKZND.mjs";import"../../chunk-CYNQRMO5.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as TransactionManagement};
1
+ import{a}from"../../chunk-3GTT6K3X.mjs";import"../../chunk-IHYTP2EW.mjs";import"../../chunk-6MLNYBCP.mjs";import"../../chunk-MV7RDJFK.mjs";import"../../chunk-U6Z4FNB7.mjs";import"../../chunk-LSKVPMOF.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-R7G3CLRI.mjs";import"../../chunk-NMASPJTH.mjs";import"../../chunk-NLMMCXLR.mjs";import"../../chunk-D5Q7BI3J.mjs";import"../../chunk-JE7INUQ2.mjs";import"../../chunk-DAC5J2BG.mjs";import"../../chunk-ICXA3DZH.mjs";import"../../chunk-RP66QS6R.mjs";import"../../chunk-R4ERAOCM.mjs";import"../../chunk-HTWJVZZ5.mjs";import"../../chunk-7PNFDDIG.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-MS76A6LX.mjs";import"../../chunk-S5AGI7RQ.mjs";import"../../chunk-LF6IQT54.mjs";import"../../chunk-P2CIREOD.mjs";import"../../chunk-WZSVQBPA.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-KJI5PY5Z.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-JV2PBG6G.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-MLWIHWNH.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-JNDRFTEA.mjs";import"../../chunk-4J5V4M3P.mjs";import"../../chunk-6F7X2C22.mjs";import"../../chunk-YMFCBU4L.mjs";import"../../chunk-IQSAG5Y5.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-5LI6PUQN.mjs";import"../../chunk-CHVWOPVA.mjs";import"../../chunk-QMFBU2CG.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-QAMK2MSI.mjs";import"../../chunk-Y2AFC3E6.mjs";import"../../chunk-F7EMGK4M.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-F7J7ZW4H.mjs";import"../../chunk-AFTMLXYT.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YJIRT3GJ.mjs";import"../../chunk-FNKDXPPQ.mjs";import"../../chunk-2XVDVF5C.mjs";import"../../chunk-5NSXEM3O.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-WNVUG2UF.mjs";import"../../chunk-UEI62FBQ.mjs";import"../../chunk-4KMISR2H.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-2MRYBOYC.mjs";import"../../chunk-3JPVQHOR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-CPQPVRKV.mjs";import"../../chunk-S4SEFF4K.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-7JZWCHLH.mjs";import"../../chunk-EIXGNR6D.mjs";import"../../chunk-PE6R6XQV.mjs";import"../../chunk-CYDWEPFL.mjs";import"../../chunk-GHYE26Q5.mjs";import"../../chunk-NJRNZEHX.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-VU2W3ZLX.mjs";import"../../chunk-C67BKZND.mjs";import"../../chunk-CYNQRMO5.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as TransactionManagement};
2
2
  //# sourceMappingURL=management.mjs.map
@@ -29,6 +29,8 @@ import '../../transactions/instances/transactionPayload.mjs';
29
29
  import '../../transactions/instances/identifier.mjs';
30
30
  import '../../transactions/instances/moduleId.mjs';
31
31
  import '../../transactions/typeTag/index.mjs';
32
+ import '../../transactions/instances/simpleTransaction.mjs';
33
+ import '../../transactions/instances/multiAgentTransaction.mjs';
32
34
  import '../../utils/const.mjs';
33
35
 
34
36
  /**
@@ -1,2 +1,2 @@
1
- import{e as o}from"../../chunk-JF4E53MH.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-R7G3CLRI.mjs";import"../../chunk-TBSPLLCB.mjs";import"../../chunk-LD7YBNH5.mjs";import"../../chunk-JX3IRXNX.mjs";import"../../chunk-P434YHBQ.mjs";import"../../chunk-HTZTTZQJ.mjs";import"../../chunk-2TRSGKMS.mjs";import"../../chunk-C62XI6VN.mjs";import"../../chunk-W5PK4QCX.mjs";import"../../chunk-Y7G5W2QZ.mjs";import"../../chunk-WHNLDDPT.mjs";import"../../chunk-4LQNMXX3.mjs";import"../../chunk-SQW7K56J.mjs";import"../../chunk-EBCIZ4D6.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-RWBAKP5G.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-27ML4NFD.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-MLWIHWNH.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-4UMTUJL5.mjs";import"../../chunk-Y3CHPF6X.mjs";import"../../chunk-Q5GNCAA6.mjs";import"../../chunk-CJLZV5JK.mjs";import"../../chunk-2NC32JRF.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-BWG5NCHC.mjs";import"../../chunk-HYQSORWM.mjs";import"../../chunk-AVQSQJUO.mjs";import"../../chunk-LG6SZTWR.mjs";import"../../chunk-EXX55N2B.mjs";import"../../chunk-IWPVPIKD.mjs";import"../../chunk-OH5ADEJO.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-2BGOMPDV.mjs";import"../../chunk-TTM66JZ4.mjs";import"../../chunk-RP4FMC6O.mjs";import"../../chunk-QDD2MDJZ.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-XDZF5IUF.mjs";import"../../chunk-GHMYWL3R.mjs";import"../../chunk-VKWPCOZA.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-VNNLHEJ4.mjs";import"../../chunk-3JPVQHOR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-JKXSSRNT.mjs";import"../../chunk-S4SEFF4K.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-T43CJS4C.mjs";import"../../chunk-O5L7WGNH.mjs";import"../../chunk-H4Q7YQD3.mjs";import"../../chunk-CYDWEPFL.mjs";import"../../chunk-GHYE26Q5.mjs";import"../../chunk-NJRNZEHX.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-LNS5RI5S.mjs";import"../../chunk-C67BKZND.mjs";import"../../chunk-CYNQRMO5.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-LSKVPMOF.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-R7G3CLRI.mjs";import"../../chunk-NMASPJTH.mjs";import"../../chunk-NLMMCXLR.mjs";import"../../chunk-D5Q7BI3J.mjs";import"../../chunk-JE7INUQ2.mjs";import"../../chunk-DAC5J2BG.mjs";import"../../chunk-ICXA3DZH.mjs";import"../../chunk-RP66QS6R.mjs";import"../../chunk-R4ERAOCM.mjs";import"../../chunk-HTWJVZZ5.mjs";import"../../chunk-7PNFDDIG.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-MS76A6LX.mjs";import"../../chunk-S5AGI7RQ.mjs";import"../../chunk-LF6IQT54.mjs";import"../../chunk-P2CIREOD.mjs";import"../../chunk-WZSVQBPA.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-KJI5PY5Z.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-JV2PBG6G.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-MLWIHWNH.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-JNDRFTEA.mjs";import"../../chunk-4J5V4M3P.mjs";import"../../chunk-6F7X2C22.mjs";import"../../chunk-YMFCBU4L.mjs";import"../../chunk-IQSAG5Y5.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-5LI6PUQN.mjs";import"../../chunk-CHVWOPVA.mjs";import"../../chunk-QMFBU2CG.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-QAMK2MSI.mjs";import"../../chunk-Y2AFC3E6.mjs";import"../../chunk-F7EMGK4M.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-F7J7ZW4H.mjs";import"../../chunk-AFTMLXYT.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YJIRT3GJ.mjs";import"../../chunk-FNKDXPPQ.mjs";import"../../chunk-2XVDVF5C.mjs";import"../../chunk-5NSXEM3O.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-WNVUG2UF.mjs";import"../../chunk-UEI62FBQ.mjs";import"../../chunk-4KMISR2H.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-2MRYBOYC.mjs";import"../../chunk-3JPVQHOR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-CPQPVRKV.mjs";import"../../chunk-S4SEFF4K.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-7JZWCHLH.mjs";import"../../chunk-EIXGNR6D.mjs";import"../../chunk-PE6R6XQV.mjs";import"../../chunk-CYDWEPFL.mjs";import"../../chunk-GHYE26Q5.mjs";import"../../chunk-NJRNZEHX.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-VU2W3ZLX.mjs";import"../../chunk-C67BKZND.mjs";import"../../chunk-CYNQRMO5.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 +1 @@
1
- {"version":3,"sources":["../../../../src/api/transactionSubmission/sign.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Account } from \"../../core\";\nimport { signTransaction } from \"../../internal/transactionSubmission\";\nimport { AccountAuthenticator, AnyRawTransaction } from \"../../transactions\";\nimport { AptosConfig } from \"../aptosConfig\";\n\n/**\n * A class to handle all `Sign` transaction operations\n */\nexport class Sign {\n readonly config: AptosConfig;\n\n constructor(config: AptosConfig) {\n this.config = config;\n }\n\n // eslint-disable-next-line class-methods-use-this\n transaction(args: { signer: Account; transaction: AnyRawTransaction }): AccountAuthenticator {\n return signTransaction({\n ...args,\n });\n }\n\n // eslint-disable-next-line class-methods-use-this\n transactionAsFeePayer(args: { signer: Account; transaction: AnyRawTransaction }): AccountAuthenticator {\n const { signer, transaction } = args;\n\n // if transaction doesnt hold a \"feePayerAddress\" prop it means\n // this is not a fee payer transaction\n if (!transaction.feePayerAddress) {\n throw new Error(`Transaction ${transaction} is not a Fee Payer transaction`);\n }\n\n // Set the feePayerAddress to the signer account address\n transaction.feePayerAddress = signer.accountAddress;\n\n return signTransaction({\n signer,\n transaction,\n });\n }\n}\n"],"mappings":"gtEAWO,IAAMA,EAAN,KAAW,CAGhB,YAAYC,EAAqB,CAC/B,KAAK,OAASA,CAChB,CAGA,YAAYC,EAAiF,CAC3F,OAAOC,EAAgB,CACrB,GAAGD,CACL,CAAC,CACH,CAGA,sBAAsBA,EAAiF,CACrG,GAAM,CAAE,OAAAE,EAAQ,YAAAC,CAAY,EAAIH,EAIhC,GAAI,CAACG,EAAY,gBACf,MAAM,IAAI,MAAM,eAAeA,CAAW,iCAAiC,EAI7E,OAAAA,EAAY,gBAAkBD,EAAO,eAE9BD,EAAgB,CACrB,OAAAC,EACA,YAAAC,CACF,CAAC,CACH,CACF","names":["Sign","config","args","signTransaction","signer","transaction"]}
1
+ {"version":3,"sources":["../../../../src/api/transactionSubmission/sign.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Account } from \"../../core\";\nimport { signTransaction } from \"../../internal/transactionSubmission\";\nimport { AccountAuthenticator, AnyRawTransaction } from \"../../transactions\";\nimport { AptosConfig } from \"../aptosConfig\";\n\n/**\n * A class to handle all `Sign` transaction operations\n */\nexport class Sign {\n readonly config: AptosConfig;\n\n constructor(config: AptosConfig) {\n this.config = config;\n }\n\n // eslint-disable-next-line class-methods-use-this\n transaction(args: { signer: Account; transaction: AnyRawTransaction }): AccountAuthenticator {\n return signTransaction({\n ...args,\n });\n }\n\n // eslint-disable-next-line class-methods-use-this\n transactionAsFeePayer(args: { signer: Account; transaction: AnyRawTransaction }): AccountAuthenticator {\n const { signer, transaction } = args;\n\n // if transaction doesnt hold a \"feePayerAddress\" prop it means\n // this is not a fee payer transaction\n if (!transaction.feePayerAddress) {\n throw new Error(`Transaction ${transaction} is not a Fee Payer transaction`);\n }\n\n // Set the feePayerAddress to the signer account address\n transaction.feePayerAddress = signer.accountAddress;\n\n return signTransaction({\n signer,\n transaction,\n });\n }\n}\n"],"mappings":"mzEAWO,IAAMA,EAAN,KAAW,CAGhB,YAAYC,EAAqB,CAC/B,KAAK,OAASA,CAChB,CAGA,YAAYC,EAAiF,CAC3F,OAAOC,EAAgB,CACrB,GAAGD,CACL,CAAC,CACH,CAGA,sBAAsBA,EAAiF,CACrG,GAAM,CAAE,OAAAE,EAAQ,YAAAC,CAAY,EAAIH,EAIhC,GAAI,CAACG,EAAY,gBACf,MAAM,IAAI,MAAM,eAAeA,CAAW,iCAAiC,EAI7E,OAAAA,EAAY,gBAAkBD,EAAO,eAE9BD,EAAgB,CACrB,OAAAC,EACA,YAAAC,CACF,CAAC,CACH,CACF","names":["Sign","config","args","signTransaction","signer","transaction"]}
@@ -28,6 +28,8 @@ import '../../transactions/instances/transactionPayload.mjs';
28
28
  import '../../transactions/instances/identifier.mjs';
29
29
  import '../../transactions/instances/moduleId.mjs';
30
30
  import '../../transactions/typeTag/index.mjs';
31
+ import '../../transactions/instances/simpleTransaction.mjs';
32
+ import '../../transactions/instances/multiAgentTransaction.mjs';
31
33
  import '../../utils/const.mjs';
32
34
 
33
35
  /**
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-HSITRYZ5.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-JF4E53MH.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-R7G3CLRI.mjs";import"../../chunk-TBSPLLCB.mjs";import"../../chunk-LD7YBNH5.mjs";import"../../chunk-JX3IRXNX.mjs";import"../../chunk-P434YHBQ.mjs";import"../../chunk-HTZTTZQJ.mjs";import"../../chunk-2TRSGKMS.mjs";import"../../chunk-C62XI6VN.mjs";import"../../chunk-W5PK4QCX.mjs";import"../../chunk-Y7G5W2QZ.mjs";import"../../chunk-WHNLDDPT.mjs";import"../../chunk-4LQNMXX3.mjs";import"../../chunk-SQW7K56J.mjs";import"../../chunk-EBCIZ4D6.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-RWBAKP5G.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-27ML4NFD.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-MLWIHWNH.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-4UMTUJL5.mjs";import"../../chunk-Y3CHPF6X.mjs";import"../../chunk-Q5GNCAA6.mjs";import"../../chunk-CJLZV5JK.mjs";import"../../chunk-2NC32JRF.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-BWG5NCHC.mjs";import"../../chunk-HYQSORWM.mjs";import"../../chunk-AVQSQJUO.mjs";import"../../chunk-LG6SZTWR.mjs";import"../../chunk-EXX55N2B.mjs";import"../../chunk-IWPVPIKD.mjs";import"../../chunk-OH5ADEJO.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-2BGOMPDV.mjs";import"../../chunk-TTM66JZ4.mjs";import"../../chunk-RP4FMC6O.mjs";import"../../chunk-QDD2MDJZ.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-XDZF5IUF.mjs";import"../../chunk-GHMYWL3R.mjs";import"../../chunk-VKWPCOZA.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-VNNLHEJ4.mjs";import"../../chunk-3JPVQHOR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-JKXSSRNT.mjs";import"../../chunk-S4SEFF4K.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-T43CJS4C.mjs";import"../../chunk-O5L7WGNH.mjs";import"../../chunk-H4Q7YQD3.mjs";import"../../chunk-CYDWEPFL.mjs";import"../../chunk-GHYE26Q5.mjs";import"../../chunk-NJRNZEHX.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-LNS5RI5S.mjs";import"../../chunk-C67BKZND.mjs";import"../../chunk-CYNQRMO5.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Simulate};
1
+ import{a}from"../../chunk-C67SYOXM.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-LSKVPMOF.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-R7G3CLRI.mjs";import"../../chunk-NMASPJTH.mjs";import"../../chunk-NLMMCXLR.mjs";import"../../chunk-D5Q7BI3J.mjs";import"../../chunk-JE7INUQ2.mjs";import"../../chunk-DAC5J2BG.mjs";import"../../chunk-ICXA3DZH.mjs";import"../../chunk-RP66QS6R.mjs";import"../../chunk-R4ERAOCM.mjs";import"../../chunk-HTWJVZZ5.mjs";import"../../chunk-7PNFDDIG.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-MS76A6LX.mjs";import"../../chunk-S5AGI7RQ.mjs";import"../../chunk-LF6IQT54.mjs";import"../../chunk-P2CIREOD.mjs";import"../../chunk-WZSVQBPA.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-KJI5PY5Z.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-JV2PBG6G.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-MLWIHWNH.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-JNDRFTEA.mjs";import"../../chunk-4J5V4M3P.mjs";import"../../chunk-6F7X2C22.mjs";import"../../chunk-YMFCBU4L.mjs";import"../../chunk-IQSAG5Y5.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-5LI6PUQN.mjs";import"../../chunk-CHVWOPVA.mjs";import"../../chunk-QMFBU2CG.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-QAMK2MSI.mjs";import"../../chunk-Y2AFC3E6.mjs";import"../../chunk-F7EMGK4M.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-F7J7ZW4H.mjs";import"../../chunk-AFTMLXYT.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YJIRT3GJ.mjs";import"../../chunk-FNKDXPPQ.mjs";import"../../chunk-2XVDVF5C.mjs";import"../../chunk-5NSXEM3O.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-WNVUG2UF.mjs";import"../../chunk-UEI62FBQ.mjs";import"../../chunk-4KMISR2H.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-2MRYBOYC.mjs";import"../../chunk-3JPVQHOR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-CPQPVRKV.mjs";import"../../chunk-S4SEFF4K.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-7JZWCHLH.mjs";import"../../chunk-EIXGNR6D.mjs";import"../../chunk-PE6R6XQV.mjs";import"../../chunk-CYDWEPFL.mjs";import"../../chunk-GHYE26Q5.mjs";import"../../chunk-NJRNZEHX.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-VU2W3ZLX.mjs";import"../../chunk-C67BKZND.mjs";import"../../chunk-CYNQRMO5.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Simulate};
2
2
  //# sourceMappingURL=simulate.mjs.map
@@ -28,6 +28,8 @@ import '../../transactions/instances/transactionPayload.mjs';
28
28
  import '../../transactions/instances/identifier.mjs';
29
29
  import '../../transactions/instances/moduleId.mjs';
30
30
  import '../../transactions/typeTag/index.mjs';
31
+ import '../../transactions/instances/simpleTransaction.mjs';
32
+ import '../../transactions/instances/multiAgentTransaction.mjs';
31
33
  import '../../utils/const.mjs';
32
34
 
33
35
  /**
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-Y3R5DLBS.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-JF4E53MH.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-R7G3CLRI.mjs";import"../../chunk-TBSPLLCB.mjs";import"../../chunk-LD7YBNH5.mjs";import"../../chunk-JX3IRXNX.mjs";import"../../chunk-P434YHBQ.mjs";import"../../chunk-HTZTTZQJ.mjs";import"../../chunk-2TRSGKMS.mjs";import"../../chunk-C62XI6VN.mjs";import"../../chunk-W5PK4QCX.mjs";import"../../chunk-Y7G5W2QZ.mjs";import"../../chunk-WHNLDDPT.mjs";import"../../chunk-4LQNMXX3.mjs";import"../../chunk-SQW7K56J.mjs";import"../../chunk-EBCIZ4D6.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-RWBAKP5G.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-27ML4NFD.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-MLWIHWNH.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-4UMTUJL5.mjs";import"../../chunk-Y3CHPF6X.mjs";import"../../chunk-Q5GNCAA6.mjs";import"../../chunk-CJLZV5JK.mjs";import"../../chunk-2NC32JRF.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-BWG5NCHC.mjs";import"../../chunk-HYQSORWM.mjs";import"../../chunk-AVQSQJUO.mjs";import"../../chunk-LG6SZTWR.mjs";import"../../chunk-EXX55N2B.mjs";import"../../chunk-IWPVPIKD.mjs";import"../../chunk-OH5ADEJO.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-2BGOMPDV.mjs";import"../../chunk-TTM66JZ4.mjs";import"../../chunk-RP4FMC6O.mjs";import"../../chunk-QDD2MDJZ.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-XDZF5IUF.mjs";import"../../chunk-GHMYWL3R.mjs";import"../../chunk-VKWPCOZA.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-VNNLHEJ4.mjs";import"../../chunk-3JPVQHOR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-JKXSSRNT.mjs";import"../../chunk-S4SEFF4K.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-T43CJS4C.mjs";import"../../chunk-O5L7WGNH.mjs";import"../../chunk-H4Q7YQD3.mjs";import"../../chunk-CYDWEPFL.mjs";import"../../chunk-GHYE26Q5.mjs";import"../../chunk-NJRNZEHX.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-LNS5RI5S.mjs";import"../../chunk-C67BKZND.mjs";import"../../chunk-CYNQRMO5.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Submit};
1
+ import{a}from"../../chunk-L6KXN3YD.mjs";import"../../chunk-6EMN3BOV.mjs";import"../../chunk-LSKVPMOF.mjs";import"../../chunk-I5OYNCZS.mjs";import"../../chunk-R7G3CLRI.mjs";import"../../chunk-NMASPJTH.mjs";import"../../chunk-NLMMCXLR.mjs";import"../../chunk-D5Q7BI3J.mjs";import"../../chunk-JE7INUQ2.mjs";import"../../chunk-DAC5J2BG.mjs";import"../../chunk-ICXA3DZH.mjs";import"../../chunk-RP66QS6R.mjs";import"../../chunk-R4ERAOCM.mjs";import"../../chunk-HTWJVZZ5.mjs";import"../../chunk-7PNFDDIG.mjs";import"../../chunk-UYVPNUH3.mjs";import"../../chunk-MS76A6LX.mjs";import"../../chunk-S5AGI7RQ.mjs";import"../../chunk-LF6IQT54.mjs";import"../../chunk-P2CIREOD.mjs";import"../../chunk-WZSVQBPA.mjs";import"../../chunk-BSCOVLWS.mjs";import"../../chunk-KJI5PY5Z.mjs";import"../../chunk-V3MBJJTL.mjs";import"../../chunk-JV2PBG6G.mjs";import"../../chunk-E7FWVXGX.mjs";import"../../chunk-MLWIHWNH.mjs";import"../../chunk-4QMXOWHP.mjs";import"../../chunk-JNDRFTEA.mjs";import"../../chunk-4J5V4M3P.mjs";import"../../chunk-6F7X2C22.mjs";import"../../chunk-YMFCBU4L.mjs";import"../../chunk-IQSAG5Y5.mjs";import"../../chunk-UVSRX4SV.mjs";import"../../chunk-5LI6PUQN.mjs";import"../../chunk-CHVWOPVA.mjs";import"../../chunk-QMFBU2CG.mjs";import"../../chunk-KUX6GQ2E.mjs";import"../../chunk-QAMK2MSI.mjs";import"../../chunk-Y2AFC3E6.mjs";import"../../chunk-F7EMGK4M.mjs";import"../../chunk-LR65XHSF.mjs";import"../../chunk-F7J7ZW4H.mjs";import"../../chunk-AFTMLXYT.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-YJIRT3GJ.mjs";import"../../chunk-FNKDXPPQ.mjs";import"../../chunk-2XVDVF5C.mjs";import"../../chunk-5NSXEM3O.mjs";import"../../chunk-6IFMQ5AS.mjs";import"../../chunk-WNVUG2UF.mjs";import"../../chunk-UEI62FBQ.mjs";import"../../chunk-4KMISR2H.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-2MRYBOYC.mjs";import"../../chunk-3JPVQHOR.mjs";import"../../chunk-AH44UPM4.mjs";import"../../chunk-CPQPVRKV.mjs";import"../../chunk-S4SEFF4K.mjs";import"../../chunk-N2FKVZ4D.mjs";import"../../chunk-7JZWCHLH.mjs";import"../../chunk-EIXGNR6D.mjs";import"../../chunk-PE6R6XQV.mjs";import"../../chunk-CYDWEPFL.mjs";import"../../chunk-GHYE26Q5.mjs";import"../../chunk-NJRNZEHX.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-VU2W3ZLX.mjs";import"../../chunk-C67BKZND.mjs";import"../../chunk-CYNQRMO5.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as Submit};
2
2
  //# sourceMappingURL=submit.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-AT2HAXSH.mjs";import"../chunk-VNNLHEJ4.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-JKXSSRNT.mjs";import"../chunk-S4SEFF4K.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-T43CJS4C.mjs";import"../chunk-O5L7WGNH.mjs";import"../chunk-H4Q7YQD3.mjs";import"../chunk-CYDWEPFL.mjs";import"../chunk-GHYE26Q5.mjs";import"../chunk-NJRNZEHX.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-LNS5RI5S.mjs";import"../chunk-C67BKZND.mjs";import"../chunk-CYNQRMO5.mjs";import"../chunk-FVA2OPG4.mjs";export{a as waitForIndexerOnVersion};
1
+ import{a}from"../chunk-VUZDLGDK.mjs";import"../chunk-2MRYBOYC.mjs";import"../chunk-3JPVQHOR.mjs";import"../chunk-AH44UPM4.mjs";import"../chunk-CPQPVRKV.mjs";import"../chunk-S4SEFF4K.mjs";import"../chunk-N2FKVZ4D.mjs";import"../chunk-7JZWCHLH.mjs";import"../chunk-EIXGNR6D.mjs";import"../chunk-PE6R6XQV.mjs";import"../chunk-CYDWEPFL.mjs";import"../chunk-GHYE26Q5.mjs";import"../chunk-NJRNZEHX.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-VU2W3ZLX.mjs";import"../chunk-C67BKZND.mjs";import"../chunk-CYNQRMO5.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 h}from"../chunk-2BGOMPDV.mjs";import{a as g}from"../chunk-TTM66JZ4.mjs";import{a as p,b as q,c as r}from"../chunk-RP4FMC6O.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-QDD2MDJZ.mjs";import{a as f}from"../chunk-6IFMQ5AS.mjs";import{a,b,c,d,e}from"../chunk-VKWPCOZA.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-BZMO6Q6L.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-NJRNZEHX.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{i as Bool,f as Deserializer,h as EntryFunctionBytes,g as FixedBytes,r as MoveOption,q as MoveString,p as MoveVector,a as Serializable,b as Serializer,n as U128,k as U16,o as U256,l as U32,m as U64,j as U8,c as ensureBoolean,d as outOfRangeErrorMessage,e as validateNumberInRange};
1
+ import"../chunk-FZY4PMEE.mjs";import{a as p,b as q,c as r}from"../chunk-YJIRT3GJ.mjs";import{a as h}from"../chunk-FNKDXPPQ.mjs";import{a as g}from"../chunk-2XVDVF5C.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-5NSXEM3O.mjs";import{a as f}from"../chunk-6IFMQ5AS.mjs";import{a,b,c,d,e}from"../chunk-4KMISR2H.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-NJRNZEHX.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{i as Bool,f as Deserializer,h as EntryFunctionBytes,g as FixedBytes,r as MoveOption,q as MoveString,p as MoveVector,a as Serializable,b as Serializer,n as U128,k as U16,o as U256,l as U32,m as U64,j as U8,c as ensureBoolean,d as outOfRangeErrorMessage,e as validateNumberInRange};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../../chunk-2BGOMPDV.mjs";import"../../chunk-TTM66JZ4.mjs";import"../../chunk-VKWPCOZA.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as EntryFunctionBytes};
1
+ import{a}from"../../chunk-FNKDXPPQ.mjs";import"../../chunk-2XVDVF5C.mjs";import"../../chunk-4KMISR2H.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-TTM66JZ4.mjs";import"../../chunk-VKWPCOZA.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-FVA2OPG4.mjs";export{a as FixedBytes};
1
+ import{a}from"../../chunk-2XVDVF5C.mjs";import"../../chunk-4KMISR2H.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-QDD2MDJZ.mjs";import"../../chunk-VKWPCOZA.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-NJRNZEHX.mjs";import"../../chunk-4WPQQPUF.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-5NSXEM3O.mjs";import"../../chunk-4KMISR2H.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-NJRNZEHX.mjs";import"../../chunk-4WPQQPUF.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}from"../../chunk-RP4FMC6O.mjs";import"../../chunk-QDD2MDJZ.mjs";import"../../chunk-VKWPCOZA.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BZMO6Q6L.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-NJRNZEHX.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-FVA2OPG4.mjs";export{c as MoveOption,b as MoveString,a as MoveVector};
1
+ import{a,b,c}from"../../chunk-YJIRT3GJ.mjs";import"../../chunk-5NSXEM3O.mjs";import"../../chunk-4KMISR2H.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-BCUSI3N6.mjs";import"../../chunk-LG7RJQ57.mjs";import"../../chunk-NJRNZEHX.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-FVA2OPG4.mjs";export{c as MoveOption,b as MoveString,a as MoveVector};
2
2
  //# sourceMappingURL=moveStructs.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e}from"../chunk-VKWPCOZA.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-BZMO6Q6L.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};
1
+ import{a,b,c,d,e}from"../chunk-4KMISR2H.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{a as d}from"./chunk-3JPVQHOR.mjs";import{a as A}from"./chunk-AH44UPM4.mjs";import{h as w,i as C}from"./chunk-JKXSSRNT.mjs";import{b as c,c as l}from"./chunk-T43CJS4C.mjs";import{a as h}from"./chunk-GHYE26Q5.mjs";import{d as y}from"./chunk-CYNQRMO5.mjs";async function F(s){let{aptosConfig:n,options:t}=s;return l({aptosConfig:n,originMethod:"getTransactions",path:"transactions",params:{start:t?.offset,limit:t?.limit}})}async function L(s){let{aptosConfig:n}=s;return A(async()=>{let{data:t}=await c({aptosConfig:n,originMethod:"getGasPriceEstimation",path:"estimate_gas_price"});return t},`gas-price-${n.network}`,1e3*60*5)()}async function v(s){let{aptosConfig:n,ledgerVersion:t}=s,{data:o}=await c({aptosConfig:n,originMethod:"getTransactionByVersion",path:`transactions/by_version/${t}`});return o}async function x(s){let{aptosConfig:n,transactionHash:t}=s,{data:o}=await c({aptosConfig:n,path:`transactions/by_hash/${t}`,originMethod:"getTransactionByHash"});return o}async function N(s){let{aptosConfig:n,transactionHash:t}=s;try{return(await x({aptosConfig:n,transactionHash:t})).type==="pending_transaction"}catch(o){if(o?.status===404)return!0;throw o}}async function G(s){let{aptosConfig:n,transactionHash:t,options:o}=s,r=o?.timeoutSecs??20,f=o?.checkSuccess??!0,i=!0,u=0,e,g,m=200,P=1.5;for(;i&&!(u>=r);){try{if(e=await x({aptosConfig:n,transactionHash:t}),i=e.type==="pending_transaction",!i)break}catch(a){if(!(a instanceof h)||(g=a,a.status!==404&&a.status>=400&&a.status<500))throw a}await d(m),u+=m/1e3,m*=P}if(e===void 0)throw g||new p(`Fetching transaction ${t} failed and timed out after ${r} seconds`,e);if(e.type==="pending_transaction")throw new p(`Transaction ${t} timed out in pending state after ${r} seconds`,e);if(!f)return e;if(!e.success)throw new T(`Transaction ${t} failed with an error: ${e.vm_status}`,e);return e}async function D(s){let{aptosConfig:n,processorType:t}=s,o=BigInt(s.minimumLedgerVersion),r=3e3,f=new Date().getTime(),i=BigInt(-1);for(;i<o;){if(new Date().getTime()-f>r)throw new Error("waitForLastSuccessIndexerVersionSync timeout");if(t===void 0?i=await w({aptosConfig:n}):i=(await C({aptosConfig:n,processorType:t})).last_success_version,i>=o)break;await d(200)}}var p=class extends Error{constructor(n,t){super(n),this.lastSubmittedTransaction=t}},T=class extends Error{constructor(n,t){super(n),this.transaction=t}};export{F as a,L as b,v as c,x as d,N as e,G as f,D as g,p as h,T as i};
2
- //# sourceMappingURL=chunk-VNNLHEJ4.mjs.map
1
+ import{a as d}from"./chunk-3JPVQHOR.mjs";import{a as A}from"./chunk-AH44UPM4.mjs";import{h as w,i as C}from"./chunk-CPQPVRKV.mjs";import{b as c,c as l}from"./chunk-7JZWCHLH.mjs";import{a as h}from"./chunk-GHYE26Q5.mjs";import{d as y}from"./chunk-CYNQRMO5.mjs";async function F(s){let{aptosConfig:n,options:t}=s;return l({aptosConfig:n,originMethod:"getTransactions",path:"transactions",params:{start:t?.offset,limit:t?.limit}})}async function L(s){let{aptosConfig:n}=s;return A(async()=>{let{data:t}=await c({aptosConfig:n,originMethod:"getGasPriceEstimation",path:"estimate_gas_price"});return t},`gas-price-${n.network}`,1e3*60*5)()}async function v(s){let{aptosConfig:n,ledgerVersion:t}=s,{data:o}=await c({aptosConfig:n,originMethod:"getTransactionByVersion",path:`transactions/by_version/${t}`});return o}async function x(s){let{aptosConfig:n,transactionHash:t}=s,{data:o}=await c({aptosConfig:n,path:`transactions/by_hash/${t}`,originMethod:"getTransactionByHash"});return o}async function N(s){let{aptosConfig:n,transactionHash:t}=s;try{return(await x({aptosConfig:n,transactionHash:t})).type==="pending_transaction"}catch(o){if(o?.status===404)return!0;throw o}}async function G(s){let{aptosConfig:n,transactionHash:t,options:o}=s,r=o?.timeoutSecs??20,f=o?.checkSuccess??!0,i=!0,u=0,e,g,m=200,P=1.5;for(;i&&!(u>=r);){try{if(e=await x({aptosConfig:n,transactionHash:t}),i=e.type==="pending_transaction",!i)break}catch(a){if(!(a instanceof h)||(g=a,a.status!==404&&a.status>=400&&a.status<500))throw a}await d(m),u+=m/1e3,m*=P}if(e===void 0)throw g||new p(`Fetching transaction ${t} failed and timed out after ${r} seconds`,e);if(e.type==="pending_transaction")throw new p(`Transaction ${t} timed out in pending state after ${r} seconds`,e);if(!f)return e;if(!e.success)throw new T(`Transaction ${t} failed with an error: ${e.vm_status}`,e);return e}async function D(s){let{aptosConfig:n,processorType:t}=s,o=BigInt(s.minimumLedgerVersion),r=3e3,f=new Date().getTime(),i=BigInt(-1);for(;i<o;){if(new Date().getTime()-f>r)throw new Error("waitForLastSuccessIndexerVersionSync timeout");if(t===void 0?i=await w({aptosConfig:n}):i=(await C({aptosConfig:n,processorType:t})).last_success_version,i>=o)break;await d(200)}}var p=class extends Error{constructor(n,t){super(n),this.lastSubmittedTransaction=t}},T=class extends Error{constructor(n,t){super(n),this.transaction=t}};export{F as a,L as b,v as c,x as d,N as e,G as f,D as g,p as h,T as i};
2
+ //# sourceMappingURL=chunk-2MRYBOYC.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as r}from"./chunk-VKWPCOZA.mjs";import{b as i}from"./chunk-BZMO6Q6L.mjs";var t=class a extends r{constructor(e){super(),this.value=i.fromHexInput(e).toUint8Array()}serialize(e){e.serializeFixedBytes(this.value)}serializeForEntryFunction(e){e.serialize(this)}serializeForScriptFunction(e){e.serialize(this)}static deserialize(e,s){let o=e.deserializeFixedBytes(s);return new a(o)}};export{t as a};
2
- //# sourceMappingURL=chunk-TTM66JZ4.mjs.map
1
+ import{a as r}from"./chunk-4KMISR2H.mjs";import{b as i}from"./chunk-BCUSI3N6.mjs";var t=class a extends r{constructor(e){super(),this.value=i.fromHexInput(e).toUint8Array()}serialize(e){e.serializeFixedBytes(this.value)}serializeForEntryFunction(e){e.serialize(this)}serializeForScriptFunction(e){e.serialize(this)}static deserialize(e,s){let o=e.deserializeFixedBytes(s);return new a(o)}};export{t as a};
2
+ //# sourceMappingURL=chunk-2XVDVF5C.mjs.map
@@ -0,0 +1,2 @@
1
+ import{f as e,g as s,h as t,i as o,j as r,k as i,l as a,m as c,n as m,o as g,p as u,q as d,r as p}from"./chunk-KPDWT3LC.mjs";var A=class{constructor(n){this.config=n}async getOwnerAddress(n){return e({aptosConfig:this.config,...n})}async getExpiration(n){return t({aptosConfig:this.config,...n})}async getTargetAddress(n){return i({aptosConfig:this.config,...n})}async setTargetAddress(n){return a({aptosConfig:this.config,...n})}async getPrimaryName(n){return o({aptosConfig:this.config,...n})}async setPrimaryName(n){return r({aptosConfig:this.config,...n})}async registerName(n){return s({aptosConfig:this.config,...n})}async renewDomain(n){return p({aptosConfig:this.config,...n})}async getName(n){return c({aptosConfig:this.config,...n})}async getAccountNames(n){return m({aptosConfig:this.config,...n})}async getAccountDomains(n){return g({aptosConfig:this.config,...n})}async getAccountSubdomains(n){return u({aptosConfig:this.config,...n})}async getDomainSubdomains(n){return d({aptosConfig:this.config,...n})}};export{A as a};
2
+ //# sourceMappingURL=chunk-3D7GOEFD.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/api/ans.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { Account, AccountAddress, AccountAddressInput } from \"../core\";\nimport {\n RegisterNameParameters,\n getExpiration,\n getOwnerAddress,\n registerName,\n getPrimaryName,\n setPrimaryName,\n getTargetAddress,\n setTargetAddress,\n renewDomain,\n getName,\n getAccountDomains,\n GetAccountDomainsArgs,\n GetAccountSubdomainsArgs,\n getAccountSubdomains,\n getAccountNames,\n GetAccountNamesArgs,\n getDomainSubdomains,\n GetDomainSubdomainsArgs,\n} from \"../internal/ans\";\nimport { GetANSNameResponse } from \"../types\";\nimport { InputGenerateTransactionOptions } from \"../transactions/types\";\nimport { AptosConfig } from \"./aptosConfig\";\nimport { SimpleTransaction } from \"../transactions/instances/simpleTransaction\";\n\n/**\n * A class to handle all `ANS` operations\n */\nexport class ANS {\n constructor(readonly config: AptosConfig) {}\n\n /**\n * Retrieve the owner address of a domain name or subdomain name from the contract.\n *\n * ```ts\n * // Will return the owner address of \"test.aptos.apt\" or undefined\n * const owner = await aptos.getOwnerAddress({name: \"test.aptos\"})\n * // owner = 0x123...\n * ```\n *\n * @param args.name - A string of the name to retrieve\n *\n * @returns AccountAddress if the name is owned, undefined otherwise\n */\n async getOwnerAddress(args: { name: string }): Promise<AccountAddress | undefined> {\n return getOwnerAddress({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Retrieve the expiration time of a domain name or subdomain name from the contract.\n *\n * ```ts\n * // Will return the expiration of \"test.aptos.apt\" or undefined\n * const exp = await aptos.getExpiration({name: \"test.aptos\"})\n * // new Date(exp) would give you the date in question: 2021-01-01T00:00:00.000Z\n * ```\n *\n * @param args.name - A string of the name to retrieve\n *\n * @returns number as a unix timestamp in milliseconds.\n */\n async getExpiration(args: { name: string }): Promise<number | undefined> {\n return getExpiration({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Retrieve the target address of a domain or subdomain name. This is the\n * address the name points to for use on chain. Note, the target address can\n * point to addresses that are not the owner of the name\n *\n * ```ts\n * const targetAddr = await aptos.getTargetAddress({name: \"test.aptos\"})\n * // targetAddr = 0x123...\n * ```\n *\n * @param args.name - A string of the name: primary, primary.apt, secondary.primary, secondary.primary.apt, etc.\n *\n * @returns AccountAddress if the name has a target, undefined otherwise\n */\n async getTargetAddress(args: { name: string }): Promise<AccountAddress | undefined> {\n return getTargetAddress({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Sets the target address of a domain or subdomain name. This is the\n * address the name points to for use on chain. Note, the target address can\n * point to addresses that are not the owner of the name\n *\n * ```ts\n * await aptos.setTargetAddress({sender: alice, name: \"test.aptos\", address: bob.accountAddress})\n * const address = await aptos.getTargetAddress({name: \"test.aptos\"})\n * // address = bob.accountAddress\n * ```\n *\n * @param args.name - A string of the name: test.aptos.apt, test.apt, test, test.aptos, etc.\n * @param args.address - A AccountAddressInput of the address to set the domain or subdomain to\n *\n * @returns SimpleTransaction\n */\n async setTargetAddress(args: {\n sender: Account;\n name: string;\n address: AccountAddressInput;\n options?: InputGenerateTransactionOptions;\n }): Promise<SimpleTransaction> {\n return setTargetAddress({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Retrieve the primary name for an account. An account can have\n * multiple names that target it, but only a single name that is primary. An\n * account also may not have a primary name.\n *\n * ```ts\n * const name = await aptos.getPrimaryName({address: alice.accountAddress})\n * // name = test.aptos\n * ```\n *\n * @param args.address - A AccountAddressInput (address) of the account\n *\n * @returns a string if the account has a primary name, undefined otherwise\n */\n async getPrimaryName(args: { address: AccountAddressInput }): Promise<string | undefined> {\n return getPrimaryName({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Sets the primary name for the sender. An account can have\n * multiple names that target it, but only a single name that is primary. An\n * account also may not have a primary name.\n *\n * ```ts\n * await aptos.setPrimaryName({sender: alice, name: \"test.aptos\"})\n * const primaryName = await aptos.getPrimaryName({address: alice.accountAddress})\n * // primaryName = test.aptos\n * ```\n *\n * @param args.sender - The sender account\n * @param args.name - A string of the name: test, test.apt, test.aptos, test.aptos.apt, etc.\n *\n * @returns SimpleTransaction\n */\n async setPrimaryName(args: {\n sender: Account;\n name?: string;\n options?: InputGenerateTransactionOptions;\n }): Promise<SimpleTransaction> {\n return setPrimaryName({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Registers a new name\n *\n * ```ts\n * // An example of registering a subdomain name assuming def.apt is already registered\n * // and belongs to the sender alice.\n * const txn = aptos.registerName({\n * sender: alice,\n * name: \"test.aptos.apt\",\n * expiration: {\n * policy: \"subdomain:independent\",\n * expirationDate: Date.now() + 30 * 24 * 60 * 60 * 1000,\n * },\n * });\n * ```\n *\n * @param args.sender - The sender account\n * @param args.name - A string of the name to register. This can be inclusive or exclusive of the .apt suffix.\n * Examples include: \"test\", \"test.apt\", \"test.aptos.apt\", etc.\n * @param args.expiration - An object with the expiration policy of the name.\n * @param args.expiration.policy - 'domain' | 'subdomain:follow-domain' | 'subdomain:independent'\n * - domain: Years is required and the name will expire after the given number of years.\n * - subdomain:follow-domain: The name will expire at the same time as the domain name.\n * - subdomain:independent: The name will expire at the given date.\n * @param args.expiration.expirationDate - An epoch number in milliseconds of\n * the date when the subdomain will expire. Only applicable when the policy is\n * set to 'subdomain:independent'.\n * @param args.transferable - Determines if the subdomain being minted is soul-bound. Applicable only to subdomains.\n * @param args.targetAddress optional - The address the domain name will resolve to. If not provided,\n * the sender's address will be used.\n * @param args.toAddress optional - The address to send the domain name to. If not provided,\n * the transaction will be sent to the router.\n *\n * @returns SimpleTransaction\n */\n async registerName(args: Omit<RegisterNameParameters, \"aptosConfig\">): Promise<SimpleTransaction> {\n return registerName({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Renews a domain name\n *\n * Note: If a domain name was minted with V1 of the contract, it will automatically be upgraded to V2 via this transaction.\n *\n * ```ts\n * await aptos.renewDomain({sender: alice, name: \"test\"})\n * // test.apt will be renewed for one year\n * ```\n *\n * @param args.sender - The sender account\n * @param args.name - A string of the domain the subdomain will be under. The signer must be the domain owner.\n * Subdomains cannot be renewed.\n * @param args.years - The number of years to renew the name. Currently only one year is permitted.\n *\n * @returns SimpleTransaction\n */\n async renewDomain(args: {\n sender: Account;\n name: string;\n years?: 1;\n options?: InputGenerateTransactionOptions;\n }): Promise<SimpleTransaction> {\n return renewDomain({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Fetches a single name from the indexer\n * @param args.name - A string of the name to retrieve, e.g. \"test.aptos.apt\"\n * or \"test.apt\" or \"test\". Can be inclusive or exclusive of the .apt suffix.\n * Can be a subdomain.\n *\n * @returns A promise of an ANSName or undefined\n */\n async getName(args: { name: string }): Promise<GetANSNameResponse[0] | undefined> {\n return getName({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Fetches all names for an account (both top level domains and subdomains)\n *\n * @param args\n * @param args.accountAddress - A AccountAddressInput of the address to retrieve names for.\n * @param args.options.offset - Optional, the offset to start from when fetching names\n * @param args.options.limit - Optional, A number of the names to fetch per request\n * @param args.options.orderBy - The order to sort the names by\n * @param args.options.where - Additional filters to apply to the query\n *\n * @returns a promise of an array of ANSName\n */\n async getAccountNames(args: GetAccountNamesArgs): Promise<GetANSNameResponse> {\n return getAccountNames({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Fetches all top level domain names for an account\n *\n * @param args\n * @param args.accountAddress - A AccountAddressInput of the address to retrieve domain names for.\n * @param args.options.offset - Optional, the offset to start from when fetching names\n * @param args.options.limit - Optional, A number of the names to fetch per request\n * @param args.options.orderBy - The order to sort the names by\n * @param args.options.where - Additional filters to apply to the query\n *\n * @returns a promise of an array of ANSName\n */\n async getAccountDomains(args: GetAccountDomainsArgs): Promise<GetANSNameResponse> {\n return getAccountDomains({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Fetches all subdomains names for an account\n *\n * @param args\n * @param args.accountAddress - A AccountAddressInput of the address to retrieve subdomains names for.\n * @param args.options.offset - Optional, the offset to start from when fetching names\n * @param args.options.limit - Optional, A number of the names to fetch per request\n * @param args.options.orderBy - The order to sort the names by\n * @param args.options.where - Additional filters to apply to the query\n *\n * @returns a promise of an array of ANSName\n */\n async getAccountSubdomains(args: GetAccountSubdomainsArgs): Promise<GetANSNameResponse> {\n return getAccountSubdomains({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Fetches all subdomains names for a given domain. Note, this will not return the domain itself.\n *\n * @param args\n * @param args.domain - A string of the domain name: eg. \"test.apt\" or \"test\" (without the suffix of .apt)\n * @param args.options.offset - Optional, the offset to start from when fetching names\n * @param args.options.limit - Optional, A number of the names to fetch per request\n * @param args.options.orderBy - The order to sort the names by\n * @param args.options.where - Additional filters to apply to the query\n *\n * @returns a promise of an array of ANSName\n */\n async getDomainSubdomains(args: GetDomainSubdomainsArgs): Promise<GetANSNameResponse> {\n return getDomainSubdomains({ aptosConfig: this.config, ...args });\n }\n}\n"],"mappings":"6HAgCO,IAAMA,EAAN,KAAU,CACf,YAAqBC,EAAqB,CAArB,YAAAA,CAAsB,CAe3C,MAAM,gBAAgBC,EAA6D,CACjF,OAAOC,EAAgB,CAAE,YAAa,KAAK,OAAQ,GAAGD,CAAK,CAAC,CAC9D,CAeA,MAAM,cAAcA,EAAqD,CACvE,OAAOE,EAAc,CAAE,YAAa,KAAK,OAAQ,GAAGF,CAAK,CAAC,CAC5D,CAgBA,MAAM,iBAAiBA,EAA6D,CAClF,OAAOG,EAAiB,CAAE,YAAa,KAAK,OAAQ,GAAGH,CAAK,CAAC,CAC/D,CAkBA,MAAM,iBAAiBA,EAKQ,CAC7B,OAAOI,EAAiB,CAAE,YAAa,KAAK,OAAQ,GAAGJ,CAAK,CAAC,CAC/D,CAgBA,MAAM,eAAeA,EAAqE,CACxF,OAAOK,EAAe,CAAE,YAAa,KAAK,OAAQ,GAAGL,CAAK,CAAC,CAC7D,CAkBA,MAAM,eAAeA,EAIU,CAC7B,OAAOM,EAAe,CAAE,YAAa,KAAK,OAAQ,GAAGN,CAAK,CAAC,CAC7D,CAqCA,MAAM,aAAaA,EAA+E,CAChG,OAAOO,EAAa,CAAE,YAAa,KAAK,OAAQ,GAAGP,CAAK,CAAC,CAC3D,CAmBA,MAAM,YAAYA,EAKa,CAC7B,OAAOQ,EAAY,CAAE,YAAa,KAAK,OAAQ,GAAGR,CAAK,CAAC,CAC1D,CAUA,MAAM,QAAQA,EAAoE,CAChF,OAAOS,EAAQ,CAAE,YAAa,KAAK,OAAQ,GAAGT,CAAK,CAAC,CACtD,CAcA,MAAM,gBAAgBA,EAAwD,CAC5E,OAAOU,EAAgB,CAAE,YAAa,KAAK,OAAQ,GAAGV,CAAK,CAAC,CAC9D,CAcA,MAAM,kBAAkBA,EAA0D,CAChF,OAAOW,EAAkB,CAAE,YAAa,KAAK,OAAQ,GAAGX,CAAK,CAAC,CAChE,CAcA,MAAM,qBAAqBA,EAA6D,CACtF,OAAOY,EAAqB,CAAE,YAAa,KAAK,OAAQ,GAAGZ,CAAK,CAAC,CACnE,CAcA,MAAM,oBAAoBA,EAA4D,CACpF,OAAOa,EAAoB,CAAE,YAAa,KAAK,OAAQ,GAAGb,CAAK,CAAC,CAClE,CACF","names":["ANS","config","args","getOwnerAddress","getExpiration","getTargetAddress","setTargetAddress","getPrimaryName","setPrimaryName","registerName","renewDomain","getName","getAccountNames","getAccountDomains","getAccountSubdomains","getDomainSubdomains"]}
@@ -1,2 +1,2 @@
1
- import{c as a}from"./chunk-XXKA2GO7.mjs";import e from"eventemitter3";var i=class extends e{constructor(t){super(),this.config=t}start(t){let{sender:n}=t;this.account=n,this.transactionWorker=new a(this.config,n),this.transactionWorker.start(),this.registerToEvents()}push(t){let{data:n,options:o}=t;for(let r of n)this.transactionWorker.push(r,o)}registerToEvents(){this.transactionWorker.on("transactionSent",async t=>{this.emit("transactionSent",t)}),this.transactionWorker.on("transactionSendFailed",async t=>{this.emit("transactionSendFailed",t)}),this.transactionWorker.on("transactionExecuted",async t=>{this.emit("transactionExecuted",t)}),this.transactionWorker.on("transactionExecutionFailed",async t=>{this.emit("transactionExecutionFailed",t)}),this.transactionWorker.on("executionFinish",async t=>{this.emit("executionFinish",t)})}forSingleAccount(t){try{let{sender:n,data:o,options:r}=t;this.start({sender:n}),this.push({data:o,options:r})}catch(n){throw new Error(`failed to submit transactions with error: ${n}`)}}};export{i as a};
2
- //# sourceMappingURL=chunk-3RRZ4MSV.mjs.map
1
+ import{c as a}from"./chunk-6MLNYBCP.mjs";import e from"eventemitter3";var i=class extends e{constructor(t){super(),this.config=t}start(t){let{sender:n}=t;this.account=n,this.transactionWorker=new a(this.config,n),this.transactionWorker.start(),this.registerToEvents()}push(t){let{data:n,options:o}=t;for(let r of n)this.transactionWorker.push(r,o)}registerToEvents(){this.transactionWorker.on("transactionSent",async t=>{this.emit("transactionSent",t)}),this.transactionWorker.on("transactionSendFailed",async t=>{this.emit("transactionSendFailed",t)}),this.transactionWorker.on("transactionExecuted",async t=>{this.emit("transactionExecuted",t)}),this.transactionWorker.on("transactionExecutionFailed",async t=>{this.emit("transactionExecutionFailed",t)}),this.transactionWorker.on("executionFinish",async t=>{this.emit("executionFinish",t)})}forSingleAccount(t){try{let{sender:n,data:o,options:r}=t;this.start({sender:n}),this.push({data:o,options:r})}catch(n){throw new Error(`failed to submit transactions with error: ${n}`)}}};export{i as a};
2
+ //# sourceMappingURL=chunk-3GTT6K3X.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as n}from"./chunk-Q5GNCAA6.mjs";import{a as c}from"./chunk-CJLZV5JK.mjs";import{b as i}from"./chunk-EXX55N2B.mjs";var o=class{static generate(e={}){let{scheme:t=0,legacy:r=!0}=e;return t===0&&r?n.generate():c.generate({scheme:t})}static fromPrivateKey(e){let{privateKey:t,address:r,legacy:a=!0}=e;return t instanceof i&&a?new n({privateKey:t,address:r}):new c({privateKey:t,address:r})}static fromPrivateKeyAndAddress(e){return this.fromPrivateKey(e)}static fromDerivationPath(e){let{scheme:t=0,mnemonic:r,path:a,legacy:s=!0}=e;return t===0&&s?n.fromDerivationPath({mnemonic:r,path:a}):c.fromDerivationPath({scheme:t,mnemonic:r,path:a})}static authKey(e){let{publicKey:t}=e;return t.authKey()}verifySignature(e){return this.publicKey.verifySignature(e)}};export{o as a};
2
- //# sourceMappingURL=chunk-Y3CHPF6X.mjs.map
1
+ import{a as n}from"./chunk-6F7X2C22.mjs";import{a as c}from"./chunk-YMFCBU4L.mjs";import{b as i}from"./chunk-Y2AFC3E6.mjs";var o=class{static generate(e={}){let{scheme:t=0,legacy:r=!0}=e;return t===0&&r?n.generate():c.generate({scheme:t})}static fromPrivateKey(e){let{privateKey:t,address:r,legacy:a=!0}=e;return t instanceof i&&a?new n({privateKey:t,address:r}):new c({privateKey:t,address:r})}static fromPrivateKeyAndAddress(e){return this.fromPrivateKey(e)}static fromDerivationPath(e){let{scheme:t=0,mnemonic:r,path:a,legacy:s=!0}=e;return t===0&&s?n.fromDerivationPath({mnemonic:r,path:a}):c.fromDerivationPath({scheme:t,mnemonic:r,path:a})}static authKey(e){let{publicKey:t}=e;return t.authKey()}verifySignature(e){return this.publicKey.verifySignature(e)}};export{o as a};
2
+ //# sourceMappingURL=chunk-4J5V4M3P.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as U,b,c as f,d as u,e as h,f as y}from"./chunk-56CNRT2K.mjs";import{b as c}from"./chunk-BZMO6Q6L.mjs";import{a as s}from"./chunk-FVA2OPG4.mjs";var B=class{bcsToBytes(){let e=new n;return this.serialize(e),e.toUint8Array()}bcsToHex(){let e=this.bcsToBytes();return c.fromHexInput(e)}},n=class{constructor(e=64){if(e<=0)throw new Error("Length needs to be greater than 0");this.buffer=new ArrayBuffer(e),this.offset=0}ensureBufferWillHandleSize(e){for(;this.buffer.byteLength<this.offset+e;){let t=new ArrayBuffer(this.buffer.byteLength*2);new Uint8Array(t).set(new Uint8Array(this.buffer)),this.buffer=t}}appendToBuffer(e){this.ensureBufferWillHandleSize(e.length),new Uint8Array(this.buffer,this.offset).set(e),this.offset+=e.length}serializeWithFunction(e,t,i){this.ensureBufferWillHandleSize(t);let a=new DataView(this.buffer,this.offset);e.apply(a,[0,i,!0]),this.offset+=t}serializeStr(e){let t=new TextEncoder;this.serializeBytes(t.encode(e))}serializeBytes(e){this.serializeU32AsUleb128(e.length),this.appendToBuffer(e)}serializeFixedBytes(e){this.appendToBuffer(e)}serializeBool(e){A(e);let t=e?1:0;this.appendToBuffer(new Uint8Array([t]))}serializeU8(e){this.appendToBuffer(new Uint8Array([e]))}serializeU16(e){this.serializeWithFunction(DataView.prototype.setUint16,2,e)}serializeU32(e){this.serializeWithFunction(DataView.prototype.setUint32,4,e)}serializeU64(e){let t=BigInt(e)&BigInt(f),i=BigInt(e)>>BigInt(32);this.serializeU32(Number(t)),this.serializeU32(Number(i))}serializeU128(e){let t=BigInt(e)&u,i=BigInt(e)>>BigInt(64);this.serializeU64(t),this.serializeU64(i)}serializeU256(e){let t=BigInt(e)&h,i=BigInt(e)>>BigInt(128);this.serializeU128(t),this.serializeU128(i)}serializeU32AsUleb128(e){let t=e,i=[];for(;t>>>7;)i.push(t&127|128),t>>>=7;i.push(t),this.appendToBuffer(new Uint8Array(i))}toUint8Array(){return new Uint8Array(this.buffer).slice(0,this.offset)}serialize(e){e.serialize(this)}serializeVector(e){this.serializeU32AsUleb128(e.length),e.forEach(t=>{t.serialize(this)})}};s([o(0,U)],n.prototype,"serializeU8",1),s([o(0,b)],n.prototype,"serializeU16",1),s([o(0,f)],n.prototype,"serializeU32",1),s([o(BigInt(0),u)],n.prototype,"serializeU64",1),s([o(BigInt(0),h)],n.prototype,"serializeU128",1),s([o(BigInt(0),y)],n.prototype,"serializeU256",1),s([o(0,f)],n.prototype,"serializeU32AsUleb128",1);function A(r){if(typeof r!="boolean")throw new Error(`${r} is not a boolean value`)}var g=(r,e,t)=>`${r} is out of range: [${e}, ${t}]`;function w(r,e,t){let i=BigInt(r);if(i>BigInt(t)||i<BigInt(e))throw new Error(g(r,e,t))}function o(r,e){return(t,i,a)=>{let p=a.value;return a.value=function(l){return w(l,r,e),p.apply(this,[l])},a}}export{B as a,n as b,A as c,g as d,w as e};
2
- //# sourceMappingURL=chunk-VKWPCOZA.mjs.map
1
+ import{a as U,b,c as f,d as u,e as h,f as y}from"./chunk-56CNRT2K.mjs";import{b as c}from"./chunk-BCUSI3N6.mjs";import{a as s}from"./chunk-FVA2OPG4.mjs";var B=class{bcsToBytes(){let e=new n;return this.serialize(e),e.toUint8Array()}bcsToHex(){let e=this.bcsToBytes();return c.fromHexInput(e)}},n=class{constructor(e=64){if(e<=0)throw new Error("Length needs to be greater than 0");this.buffer=new ArrayBuffer(e),this.offset=0}ensureBufferWillHandleSize(e){for(;this.buffer.byteLength<this.offset+e;){let t=new ArrayBuffer(this.buffer.byteLength*2);new Uint8Array(t).set(new Uint8Array(this.buffer)),this.buffer=t}}appendToBuffer(e){this.ensureBufferWillHandleSize(e.length),new Uint8Array(this.buffer,this.offset).set(e),this.offset+=e.length}serializeWithFunction(e,t,i){this.ensureBufferWillHandleSize(t);let a=new DataView(this.buffer,this.offset);e.apply(a,[0,i,!0]),this.offset+=t}serializeStr(e){let t=new TextEncoder;this.serializeBytes(t.encode(e))}serializeBytes(e){this.serializeU32AsUleb128(e.length),this.appendToBuffer(e)}serializeFixedBytes(e){this.appendToBuffer(e)}serializeBool(e){A(e);let t=e?1:0;this.appendToBuffer(new Uint8Array([t]))}serializeU8(e){this.appendToBuffer(new Uint8Array([e]))}serializeU16(e){this.serializeWithFunction(DataView.prototype.setUint16,2,e)}serializeU32(e){this.serializeWithFunction(DataView.prototype.setUint32,4,e)}serializeU64(e){let t=BigInt(e)&BigInt(f),i=BigInt(e)>>BigInt(32);this.serializeU32(Number(t)),this.serializeU32(Number(i))}serializeU128(e){let t=BigInt(e)&u,i=BigInt(e)>>BigInt(64);this.serializeU64(t),this.serializeU64(i)}serializeU256(e){let t=BigInt(e)&h,i=BigInt(e)>>BigInt(128);this.serializeU128(t),this.serializeU128(i)}serializeU32AsUleb128(e){let t=e,i=[];for(;t>>>7;)i.push(t&127|128),t>>>=7;i.push(t),this.appendToBuffer(new Uint8Array(i))}toUint8Array(){return new Uint8Array(this.buffer).slice(0,this.offset)}serialize(e){e.serialize(this)}serializeVector(e){this.serializeU32AsUleb128(e.length),e.forEach(t=>{t.serialize(this)})}};s([o(0,U)],n.prototype,"serializeU8",1),s([o(0,b)],n.prototype,"serializeU16",1),s([o(0,f)],n.prototype,"serializeU32",1),s([o(BigInt(0),u)],n.prototype,"serializeU64",1),s([o(BigInt(0),h)],n.prototype,"serializeU128",1),s([o(BigInt(0),y)],n.prototype,"serializeU256",1),s([o(0,f)],n.prototype,"serializeU32AsUleb128",1);function A(r){if(typeof r!="boolean")throw new Error(`${r} is not a boolean value`)}var g=(r,e,t)=>`${r} is out of range: [${e}, ${t}]`;function w(r,e,t){let i=BigInt(r);if(i>BigInt(t)||i<BigInt(e))throw new Error(g(r,e,t))}function o(r,e){return(t,i,a)=>{let p=a.value;return a.value=function(l){return w(l,r,e),p.apply(this,[l])},a}}export{B as a,n as b,A as c,g as d,w as e};
2
+ //# sourceMappingURL=chunk-4KMISR2H.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as h,c as l}from"./chunk-EXX55N2B.mjs";import{b as E}from"./chunk-IWPVPIKD.mjs";import{a as p}from"./chunk-OH5ADEJO.mjs";import{a as g}from"./chunk-XDZF5IUF.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-BWG5NCHC.mjs.map
1
+ import{a as h,c as l}from"./chunk-Y2AFC3E6.mjs";import{b as E}from"./chunk-F7J7ZW4H.mjs";import{a as p}from"./chunk-AFTMLXYT.mjs";import{a as g}from"./chunk-WNVUG2UF.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-5LI6PUQN.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as s,c as u,e as t}from"./chunk-VKWPCOZA.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-QDD2MDJZ.mjs.map
1
+ import{a as s,c as u,e as t}from"./chunk-4KMISR2H.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-5NSXEM3O.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as o}from"./chunk-2NC32JRF.mjs";import{b as i}from"./chunk-EXX55N2B.mjs";import{b as s}from"./chunk-GHMYWL3R.mjs";var a=class n{constructor(e){this.signingScheme=0;let{privateKey:t,address:r}=e;this.privateKey=t,this.publicKey=t.publicKey(),this.accountAddress=r?s.from(r):this.publicKey.authKey().derivedAddress()}static generate(){let e=i.generate();return new n({privateKey:e})}static fromDerivationPath(e){let{path:t,mnemonic:r}=e,c=i.fromDerivationPath(t,r);return new n({privateKey:c})}verifySignature(e){return this.publicKey.verifySignature(e)}signWithAuthenticator(e){let t=this.privateKey.sign(e);return new o(this.publicKey,t)}sign(e){return this.signWithAuthenticator(e).signature}};export{a};
2
- //# sourceMappingURL=chunk-Q5GNCAA6.mjs.map
1
+ import{b as o}from"./chunk-IQSAG5Y5.mjs";import{b as i}from"./chunk-Y2AFC3E6.mjs";import{b as s}from"./chunk-UEI62FBQ.mjs";var a=class n{constructor(e){this.signingScheme=0;let{privateKey:t,address:r}=e;this.privateKey=t,this.publicKey=t.publicKey(),this.accountAddress=r?s.from(r):this.publicKey.authKey().derivedAddress()}static generate(){let e=i.generate();return new n({privateKey:e})}static fromDerivationPath(e){let{path:t,mnemonic:r}=e,c=i.fromDerivationPath(t,r);return new n({privateKey:c})}verifySignature(e){return this.publicKey.verifySignature(e)}signWithAuthenticator(e){let t=this.privateKey.sign(e);return new o(this.publicKey,t)}sign(e){return this.signWithAuthenticator(e).signature}};export{a};
2
+ //# sourceMappingURL=chunk-6F7X2C22.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as l}from"./chunk-JLDOXN33.mjs";import{a as o,b as c}from"./chunk-U6Z4FNB7.mjs";import{a as h,h as d}from"./chunk-JF4E53MH.mjs";import{f as u}from"./chunk-VNNLHEJ4.mjs";import g from"eventemitter3";var p="fulfilled",T=(n=>(n.TransactionSent="transactionSent",n.TransactionSendFailed="transactionSendFailed",n.TransactionExecuted="transactionExecuted",n.TransactionExecutionFailed="transactionExecutionFailed",n.ExecutionFinish="executionFinish",n))(T||{}),m=class extends g{constructor(t,e,a=30,n=100,i=10){super();this.taskQueue=new o;this.transactionsQueue=new o;this.outstandingTransactions=new o;this.sentTransactions=[];this.executedTransactions=[];this.aptosConfig=t,this.account=e,this.started=!1,this.accountSequnceNumber=new l(t,e,a,n,i)}async submitNextTransaction(){try{for(;;){let t=await this.accountSequnceNumber.nextSequenceNumber();if(t===null)return;let e=await this.generateNextTransaction(this.account,t);if(!e)return;let a=d({aptosConfig:this.aptosConfig,transaction:e,signer:this.account});await this.outstandingTransactions.enqueue([a,t])}}catch(t){if(t instanceof c)return;throw new Error(`Submit transaction failed for ${this.account.accountAddress.toString()} with error ${t}`)}}async processTransactions(){try{for(;;){let t=[],e=[],[a,n]=await this.outstandingTransactions.dequeue();for(t.push(a),e.push(n);!this.outstandingTransactions.isEmpty();)[a,n]=await this.outstandingTransactions.dequeue(),t.push(a),e.push(n);let i=await Promise.allSettled(t);for(let s=0;s<i.length&&s<e.length;s+=1){let r=i[s];n=e[s],r.status===p?(this.sentTransactions.push([r.value.hash,n,null]),this.emit("transactionSent",{message:`transaction hash ${r.value.hash} has been committed to chain`,transactionHash:r.value.hash}),await this.checkTransaction(r,n)):(this.sentTransactions.push([r.status,n,r.reason]),this.emit("transactionSendFailed",{message:`failed to commit transaction ${this.sentTransactions.length} with error ${r.reason}`,error:r.reason}))}this.emit("executionFinish",{message:`execute ${i.length} transactions finished`})}}catch(t){if(t instanceof c)return;throw new Error(`Process execution failed for ${this.account.accountAddress.toString()} with error ${t}`)}}async checkTransaction(t,e){try{let a=[];a.push(u({aptosConfig:this.aptosConfig,transactionHash:t.value.hash}));let n=await Promise.allSettled(a);for(let i=0;i<n.length;i+=1){let s=n[i];s.status===p?(this.executedTransactions.push([s.value.hash,e,null]),this.emit("transactionExecuted",{message:`transaction hash ${s.value.hash} has been executed on chain`,transactionHash:t.value.hash})):(this.executedTransactions.push([s.status,e,s.reason]),this.emit("transactionExecutionFailed",{message:`failed to execute transaction ${this.executedTransactions.length} with error ${s.reason}`,error:s.reason}))}}catch(a){throw new Error(`Check transaction failed for ${this.account.accountAddress.toString()} with error ${a}`)}}async push(t,e){this.transactionsQueue.enqueue([t,e])}async generateNextTransaction(t,e){if(this.transactionsQueue.isEmpty())return;let[a,n]=await this.transactionsQueue.dequeue();return h({aptosConfig:this.aptosConfig,sender:t.accountAddress,data:a,options:{...n,accountSequenceNumber:e}})}async run(){try{for(;!this.taskQueue.isCancelled();)await(await this.taskQueue.dequeue())()}catch(t){throw new Error(`Unable to start transaction batching: ${t}`)}}start(){if(this.started)throw new Error("worker has already started");this.started=!0,this.taskQueue.enqueue(()=>this.submitNextTransaction()),this.taskQueue.enqueue(()=>this.processTransactions()),this.run()}stop(){if(this.taskQueue.isCancelled())throw new Error("worker has already stopped");this.started=!1,this.taskQueue.cancel()}};export{p as a,T as b,m as c};
2
- //# sourceMappingURL=chunk-XXKA2GO7.mjs.map
1
+ import{a as l}from"./chunk-MV7RDJFK.mjs";import{a as o,b as c}from"./chunk-U6Z4FNB7.mjs";import{a as h,h as d}from"./chunk-LSKVPMOF.mjs";import{f as u}from"./chunk-2MRYBOYC.mjs";import g from"eventemitter3";var m="fulfilled",f=(n=>(n.TransactionSent="transactionSent",n.TransactionSendFailed="transactionSendFailed",n.TransactionExecuted="transactionExecuted",n.TransactionExecutionFailed="transactionExecutionFailed",n.ExecutionFinish="executionFinish",n))(f||{}),p=class extends g{constructor(t,e,a=30,n=100,i=10){super();this.taskQueue=new o;this.transactionsQueue=new o;this.outstandingTransactions=new o;this.sentTransactions=[];this.executedTransactions=[];this.aptosConfig=t,this.account=e,this.started=!1,this.accountSequnceNumber=new l(t,e,a,n,i)}async submitNextTransaction(){try{for(;;){let t=await this.accountSequnceNumber.nextSequenceNumber();if(t===null)return;let e=await this.generateNextTransaction(this.account,t);if(!e)return;let a=d({aptosConfig:this.aptosConfig,transaction:e,signer:this.account});await this.outstandingTransactions.enqueue([a,t])}}catch(t){if(t instanceof c)return;throw new Error(`Submit transaction failed for ${this.account.accountAddress.toString()} with error ${t}`)}}async processTransactions(){try{for(;;){let t=[],e=[],[a,n]=await this.outstandingTransactions.dequeue();for(t.push(a),e.push(n);!this.outstandingTransactions.isEmpty();)[a,n]=await this.outstandingTransactions.dequeue(),t.push(a),e.push(n);let i=await Promise.allSettled(t);for(let s=0;s<i.length&&s<e.length;s+=1){let r=i[s];n=e[s],r.status===m?(this.sentTransactions.push([r.value.hash,n,null]),this.emit("transactionSent",{message:`transaction hash ${r.value.hash} has been committed to chain`,transactionHash:r.value.hash}),await this.checkTransaction(r,n)):(this.sentTransactions.push([r.status,n,r.reason]),this.emit("transactionSendFailed",{message:`failed to commit transaction ${this.sentTransactions.length} with error ${r.reason}`,error:r.reason}))}this.emit("executionFinish",{message:`execute ${i.length} transactions finished`})}}catch(t){if(t instanceof c)return;throw new Error(`Process execution failed for ${this.account.accountAddress.toString()} with error ${t}`)}}async checkTransaction(t,e){try{let a=[];a.push(u({aptosConfig:this.aptosConfig,transactionHash:t.value.hash}));let n=await Promise.allSettled(a);for(let i=0;i<n.length;i+=1){let s=n[i];s.status===m?(this.executedTransactions.push([s.value.hash,e,null]),this.emit("transactionExecuted",{message:`transaction hash ${s.value.hash} has been executed on chain`,transactionHash:t.value.hash})):(this.executedTransactions.push([s.status,e,s.reason]),this.emit("transactionExecutionFailed",{message:`failed to execute transaction ${this.executedTransactions.length} with error ${s.reason}`,error:s.reason}))}}catch(a){throw new Error(`Check transaction failed for ${this.account.accountAddress.toString()} with error ${a}`)}}async push(t,e){this.transactionsQueue.enqueue([t,e])}async generateNextTransaction(t,e){if(this.transactionsQueue.isEmpty())return;let[a,n]=await this.transactionsQueue.dequeue();return h({aptosConfig:this.aptosConfig,sender:t.accountAddress,data:a,options:{...n,accountSequenceNumber:e}})}async run(){try{for(;!this.taskQueue.isCancelled();)await(await this.taskQueue.dequeue())()}catch(t){throw new Error(`Unable to start transaction batching: ${t}`)}}start(){if(this.started)throw new Error("worker has already started");this.started=!0,this.taskQueue.enqueue(()=>this.submitNextTransaction()),this.taskQueue.enqueue(()=>this.processTransactions()),this.run()}stop(){if(this.taskQueue.isCancelled())throw new Error("worker has already stopped");this.started=!1,this.taskQueue.cancel()}};export{m as a,f as b,p as c};
2
+ //# sourceMappingURL=chunk-6MLNYBCP.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/transactions/management/transactionWorker.ts"],"sourcesContent":["/* eslint-disable no-await-in-loop */\n\nimport EventEmitter from \"eventemitter3\";\nimport { AptosConfig } from \"../../api/aptosConfig\";\nimport { Account } from \"../../core\";\nimport { waitForTransaction } from \"../../internal/transaction\";\nimport { generateTransaction, signAndSubmitTransaction } from \"../../internal/transactionSubmission\";\nimport { PendingTransactionResponse, TransactionResponse } from \"../../types\";\nimport { InputGenerateTransactionOptions, InputGenerateTransactionPayloadData } from \"../types\";\nimport { AccountSequenceNumber } from \"./accountSequenceNumber\";\nimport { AsyncQueue, AsyncQueueCancelledError } from \"./asyncQueue\";\nimport { SimpleTransaction } from \"../instances/simpleTransaction\";\n\nexport const promiseFulfilledStatus = \"fulfilled\";\n\n// Event types the worker fires during execution and\n// the dapp can listen to\nexport enum TransactionWorkerEventsEnum {\n // fired after a transaction gets sent to the chain\n TransactionSent = \"transactionSent\",\n // fired if there is an error sending the transaction to the chain\n TransactionSendFailed = \"transactionSendFailed\",\n // fired when a single transaction has executed successfully\n TransactionExecuted = \"transactionExecuted\",\n // fired if a single transaction fails in execution\n TransactionExecutionFailed = \"transactionExecutionFailed\",\n // fired when the worker has finished its job / when the queue has been emptied\n ExecutionFinish = \"executionFinish\",\n}\n\n// Typed interface of the worker events\nexport interface TransactionWorkerEvents {\n transactionSent: (data: SuccessEventData) => void;\n transactionSendFailed: (data: FailureEventData) => void;\n transactionExecuted: (data: SuccessEventData) => void;\n transactionExecutionFailed: (data: FailureEventData) => void;\n executionFinish: (data: ExecutionFinishEventData) => void;\n}\n\n// Type for when the worker has finished its job\nexport type ExecutionFinishEventData = {\n message: string;\n};\n\n// Type for a success event\nexport type SuccessEventData = {\n message: string;\n transactionHash: string;\n};\n\n// Type for a failure event\nexport type FailureEventData = {\n message: string;\n error: string;\n};\n\n/**\n * TransactionWorker provides a simple framework for receiving payloads to be processed.\n *\n * Once one `start()` the process and pushes a new transaction, the worker acquires\n * the current account's next sequence number (by using the AccountSequenceNumber class),\n * generates a signed transaction and pushes an async submission process into the `outstandingTransactions` queue.\n * At the same time, the worker processes transactions by reading the `outstandingTransactions` queue\n * and submits the next transaction to chain, it\n * 1) waits for resolution of the submission process or get pre-execution validation error\n * and 2) waits for the resolution of the execution process or get an execution error.\n * The worker fires events for any submission and/or execution success and/or failure.\n */\nexport class TransactionWorker extends EventEmitter<TransactionWorkerEvents> {\n readonly aptosConfig: AptosConfig;\n\n readonly account: Account;\n\n // current account sequence number\n readonly accountSequnceNumber: AccountSequenceNumber;\n\n readonly taskQueue: AsyncQueue<() => Promise<void>> = new AsyncQueue<() => Promise<void>>();\n\n // process has started\n started: boolean;\n\n /**\n * transactions payloads waiting to be generated and signed\n *\n * TODO support entry function payload from ABI builder\n */\n transactionsQueue = new AsyncQueue<\n [InputGenerateTransactionPayloadData, InputGenerateTransactionOptions | undefined]\n >();\n\n /**\n * signed transactions waiting to be submitted\n */\n outstandingTransactions = new AsyncQueue<[Promise<PendingTransactionResponse>, bigint]>();\n\n /**\n * transactions that have been submitted to chain\n */\n sentTransactions: Array<[string, bigint, any]> = [];\n\n /**\n * transactions that have been committed to chain\n */\n executedTransactions: Array<[string, bigint, any]> = [];\n\n /**\n * Provides a simple framework for receiving payloads to be processed.\n *\n * @param aptosConfig - a config object\n * @param sender - a sender as Account\n * @param maxWaitTime - the max wait time to wait before resyncing the sequence number\n * to the current on-chain state, default to 30\n * @param maximumInFlight - submit up to `maximumInFlight` transactions per account.\n * Mempool limits the number of transactions per account to 100, hence why we default to 100.\n * @param sleepTime - If `maximumInFlight` are in flight, wait `sleepTime` seconds before re-evaluating, default to 10\n */\n constructor(\n aptosConfig: AptosConfig,\n account: Account,\n maxWaitTime: number = 30,\n maximumInFlight: number = 100,\n sleepTime: number = 10,\n ) {\n super();\n this.aptosConfig = aptosConfig;\n this.account = account;\n this.started = false;\n this.accountSequnceNumber = new AccountSequenceNumber(\n aptosConfig,\n account,\n maxWaitTime,\n maximumInFlight,\n sleepTime,\n );\n }\n\n /**\n * Gets the current account sequence number,\n * generates the transaction with the account sequence number,\n * adds the transaction to the outstanding transaction queue\n * to be processed later.\n */\n async submitNextTransaction() {\n try {\n /* eslint-disable no-constant-condition */\n while (true) {\n const sequenceNumber = await this.accountSequnceNumber.nextSequenceNumber();\n if (sequenceNumber === null) return;\n const transaction = await this.generateNextTransaction(this.account, sequenceNumber);\n if (!transaction) return;\n const pendingTransaction = signAndSubmitTransaction({\n aptosConfig: this.aptosConfig,\n transaction,\n signer: this.account,\n });\n await this.outstandingTransactions.enqueue([pendingTransaction, sequenceNumber]);\n }\n } catch (error: any) {\n if (error instanceof AsyncQueueCancelledError) {\n return;\n }\n throw new Error(`Submit transaction failed for ${this.account.accountAddress.toString()} with error ${error}`);\n }\n }\n\n /**\n * Reads the outstanding transaction queue and submits the transaction to chain.\n *\n * If the transaction has fulfilled, it pushes the transaction to the processed\n * transactions queue and fires a transactionsFulfilled event.\n *\n * If the transaction has failed, it pushes the transaction to the processed\n * transactions queue with the failure reason and fires a transactionsFailed event.\n */\n async processTransactions() {\n try {\n /* eslint-disable no-constant-condition */\n while (true) {\n const awaitingTransactions = [];\n const sequenceNumbers = [];\n let [pendingTransaction, sequenceNumber] = await this.outstandingTransactions.dequeue();\n\n awaitingTransactions.push(pendingTransaction);\n sequenceNumbers.push(sequenceNumber);\n\n while (!this.outstandingTransactions.isEmpty()) {\n [pendingTransaction, sequenceNumber] = await this.outstandingTransactions.dequeue();\n\n awaitingTransactions.push(pendingTransaction);\n sequenceNumbers.push(sequenceNumber);\n }\n // send awaiting transactions to chain\n const sentTransactions = await Promise.allSettled(awaitingTransactions);\n for (let i = 0; i < sentTransactions.length && i < sequenceNumbers.length; i += 1) {\n // check sent transaction status\n const sentTransaction = sentTransactions[i];\n sequenceNumber = sequenceNumbers[i];\n if (sentTransaction.status === promiseFulfilledStatus) {\n // transaction sent to chain\n this.sentTransactions.push([sentTransaction.value.hash, sequenceNumber, null]);\n // check sent transaction execution\n this.emit(TransactionWorkerEventsEnum.TransactionSent, {\n message: `transaction hash ${sentTransaction.value.hash} has been committed to chain`,\n transactionHash: sentTransaction.value.hash,\n });\n await this.checkTransaction(sentTransaction, sequenceNumber);\n } else {\n // send transaction failed\n this.sentTransactions.push([sentTransaction.status, sequenceNumber, sentTransaction.reason]);\n this.emit(TransactionWorkerEventsEnum.TransactionSendFailed, {\n message: `failed to commit transaction ${this.sentTransactions.length} with error ${sentTransaction.reason}`,\n error: sentTransaction.reason,\n });\n }\n }\n this.emit(TransactionWorkerEventsEnum.ExecutionFinish, {\n message: `execute ${sentTransactions.length} transactions finished`,\n });\n }\n } catch (error: any) {\n if (error instanceof AsyncQueueCancelledError) {\n return;\n }\n throw new Error(`Process execution failed for ${this.account.accountAddress.toString()} with error ${error}`);\n }\n }\n\n /**\n * Once transaction has been sent to chain, we check for its execution status.\n * @param sentTransaction transactions that were sent to chain and are now waiting to be executed\n * @param sequenceNumber the account's sequence number that was sent with the transaction\n */\n async checkTransaction(sentTransaction: PromiseFulfilledResult<PendingTransactionResponse>, sequenceNumber: bigint) {\n try {\n const waitFor: Array<Promise<TransactionResponse>> = [];\n waitFor.push(waitForTransaction({ aptosConfig: this.aptosConfig, transactionHash: sentTransaction.value.hash }));\n const sentTransactions = await Promise.allSettled(waitFor);\n\n for (let i = 0; i < sentTransactions.length; i += 1) {\n const executedTransaction = sentTransactions[i];\n if (executedTransaction.status === promiseFulfilledStatus) {\n // transaction executed to chain\n this.executedTransactions.push([executedTransaction.value.hash, sequenceNumber, null]);\n this.emit(TransactionWorkerEventsEnum.TransactionExecuted, {\n message: `transaction hash ${executedTransaction.value.hash} has been executed on chain`,\n transactionHash: sentTransaction.value.hash,\n });\n } else {\n // transaction execution failed\n this.executedTransactions.push([executedTransaction.status, sequenceNumber, executedTransaction.reason]);\n this.emit(TransactionWorkerEventsEnum.TransactionExecutionFailed, {\n message: `failed to execute transaction ${this.executedTransactions.length} with error ${executedTransaction.reason}`,\n error: executedTransaction.reason,\n });\n }\n }\n } catch (error: any) {\n throw new Error(`Check transaction failed for ${this.account.accountAddress.toString()} with error ${error}`);\n }\n }\n\n /**\n * Push transaction to the transactions queue\n *\n * @param transactionData Transaction payload\n * @param transactionData.abi For all entry function payloads, the ABI to skip remote ABI lookups\n * @param options.maxGasAmount Maximum gas amount for the transaction\n * @param options.gasUnitPrice Gas unit price for the transaction\n * @param options.expireTimestamp expiration timestamp on the transaction\n * @param options.accountSequenceNumber the sequence number for the transaction\n */\n async push(\n transactionData: InputGenerateTransactionPayloadData,\n options?: InputGenerateTransactionOptions,\n ): Promise<void> {\n this.transactionsQueue.enqueue([transactionData, options]);\n }\n\n /**\n * Generates a signed transaction that can be submitted to chain\n * @param account an Aptos account\n * @param sequenceNumber a sequence number the transaction will be generated with\n * @returns\n */\n async generateNextTransaction(account: Account, sequenceNumber: bigint): Promise<SimpleTransaction | undefined> {\n if (this.transactionsQueue.isEmpty()) return undefined;\n const [transactionData, options] = await this.transactionsQueue.dequeue();\n return generateTransaction({\n aptosConfig: this.aptosConfig,\n sender: account.accountAddress,\n data: transactionData,\n options: { ...options, accountSequenceNumber: sequenceNumber },\n });\n }\n\n /**\n * Starts transaction submission and transaction processing.\n */\n async run() {\n try {\n while (!this.taskQueue.isCancelled()) {\n const task = await this.taskQueue.dequeue();\n await task();\n }\n } catch (error: any) {\n throw new Error(`Unable to start transaction batching: ${error}`);\n }\n }\n\n /**\n * Starts the transaction management process.\n */\n start() {\n if (this.started) {\n throw new Error(\"worker has already started\");\n }\n this.started = true;\n this.taskQueue.enqueue(() => this.submitNextTransaction());\n this.taskQueue.enqueue(() => this.processTransactions());\n this.run();\n }\n\n /**\n * Stops the the transaction management process.\n */\n stop() {\n if (this.taskQueue.isCancelled()) {\n throw new Error(\"worker has already stopped\");\n }\n this.started = false;\n this.taskQueue.cancel();\n }\n}\n"],"mappings":"kLAEA,OAAOA,MAAkB,gBAWlB,IAAMC,EAAyB,YAI1BC,OAEVA,EAAA,gBAAkB,kBAElBA,EAAA,sBAAwB,wBAExBA,EAAA,oBAAsB,sBAEtBA,EAAA,2BAA6B,6BAE7BA,EAAA,gBAAkB,kBAVRA,OAAA,IAmDCC,EAAN,cAAgCC,CAAsC,CAgD3E,YACEC,EACAC,EACAC,EAAsB,GACtBC,EAA0B,IAC1BC,EAAoB,GACpB,CACA,MAAM,EA/CR,KAAS,UAA6C,IAAIC,EAU1D,uBAAoB,IAAIA,EAOxB,6BAA0B,IAAIA,EAK9B,sBAAiD,CAAC,EAKlD,0BAAqD,CAAC,EAqBpD,KAAK,YAAcL,EACnB,KAAK,QAAUC,EACf,KAAK,QAAU,GACf,KAAK,qBAAuB,IAAIK,EAC9BN,EACAC,EACAC,EACAC,EACAC,CACF,CACF,CAQA,MAAM,uBAAwB,CAC5B,GAAI,CAEF,OAAa,CACX,IAAMG,EAAiB,MAAM,KAAK,qBAAqB,mBAAmB,EAC1E,GAAIA,IAAmB,KAAM,OAC7B,IAAMC,EAAc,MAAM,KAAK,wBAAwB,KAAK,QAASD,CAAc,EACnF,GAAI,CAACC,EAAa,OAClB,IAAMC,EAAqBC,EAAyB,CAClD,YAAa,KAAK,YAClB,YAAAF,EACA,OAAQ,KAAK,OACf,CAAC,EACD,MAAM,KAAK,wBAAwB,QAAQ,CAACC,EAAoBF,CAAc,CAAC,CACjF,CACF,OAASI,EAAY,CACnB,GAAIA,aAAiBC,EACnB,OAEF,MAAM,IAAI,MAAM,iCAAiC,KAAK,QAAQ,eAAe,SAAS,CAAC,eAAeD,CAAK,EAAE,CAC/G,CACF,CAWA,MAAM,qBAAsB,CAC1B,GAAI,CAEF,OAAa,CACX,IAAME,EAAuB,CAAC,EACxBC,EAAkB,CAAC,EACrB,CAACL,EAAoBF,CAAc,EAAI,MAAM,KAAK,wBAAwB,QAAQ,EAKtF,IAHAM,EAAqB,KAAKJ,CAAkB,EAC5CK,EAAgB,KAAKP,CAAc,EAE5B,CAAC,KAAK,wBAAwB,QAAQ,GAC3C,CAACE,EAAoBF,CAAc,EAAI,MAAM,KAAK,wBAAwB,QAAQ,EAElFM,EAAqB,KAAKJ,CAAkB,EAC5CK,EAAgB,KAAKP,CAAc,EAGrC,IAAMQ,EAAmB,MAAM,QAAQ,WAAWF,CAAoB,EACtE,QAASG,EAAI,EAAGA,EAAID,EAAiB,QAAUC,EAAIF,EAAgB,OAAQE,GAAK,EAAG,CAEjF,IAAMC,EAAkBF,EAAiBC,CAAC,EAC1CT,EAAiBO,EAAgBE,CAAC,EAC9BC,EAAgB,SAAWrB,GAE7B,KAAK,iBAAiB,KAAK,CAACqB,EAAgB,MAAM,KAAMV,EAAgB,IAAI,CAAC,EAE7E,KAAK,KAAK,kBAA6C,CACrD,QAAS,oBAAoBU,EAAgB,MAAM,IAAI,+BACvD,gBAAiBA,EAAgB,MAAM,IACzC,CAAC,EACD,MAAM,KAAK,iBAAiBA,EAAiBV,CAAc,IAG3D,KAAK,iBAAiB,KAAK,CAACU,EAAgB,OAAQV,EAAgBU,EAAgB,MAAM,CAAC,EAC3F,KAAK,KAAK,wBAAmD,CAC3D,QAAS,gCAAgC,KAAK,iBAAiB,MAAM,eAAeA,EAAgB,MAAM,GAC1G,MAAOA,EAAgB,MACzB,CAAC,EAEL,CACA,KAAK,KAAK,kBAA6C,CACrD,QAAS,WAAWF,EAAiB,MAAM,wBAC7C,CAAC,CACH,CACF,OAASJ,EAAY,CACnB,GAAIA,aAAiBC,EACnB,OAEF,MAAM,IAAI,MAAM,gCAAgC,KAAK,QAAQ,eAAe,SAAS,CAAC,eAAeD,CAAK,EAAE,CAC9G,CACF,CAOA,MAAM,iBAAiBM,EAAqEV,EAAwB,CAClH,GAAI,CACF,IAAMW,EAA+C,CAAC,EACtDA,EAAQ,KAAKC,EAAmB,CAAE,YAAa,KAAK,YAAa,gBAAiBF,EAAgB,MAAM,IAAK,CAAC,CAAC,EAC/G,IAAMF,EAAmB,MAAM,QAAQ,WAAWG,CAAO,EAEzD,QAAS,EAAI,EAAG,EAAIH,EAAiB,OAAQ,GAAK,EAAG,CACnD,IAAMK,EAAsBL,EAAiB,CAAC,EAC1CK,EAAoB,SAAWxB,GAEjC,KAAK,qBAAqB,KAAK,CAACwB,EAAoB,MAAM,KAAMb,EAAgB,IAAI,CAAC,EACrF,KAAK,KAAK,sBAAiD,CACzD,QAAS,oBAAoBa,EAAoB,MAAM,IAAI,8BAC3D,gBAAiBH,EAAgB,MAAM,IACzC,CAAC,IAGD,KAAK,qBAAqB,KAAK,CAACG,EAAoB,OAAQb,EAAgBa,EAAoB,MAAM,CAAC,EACvG,KAAK,KAAK,6BAAwD,CAChE,QAAS,iCAAiC,KAAK,qBAAqB,MAAM,eAAeA,EAAoB,MAAM,GACnH,MAAOA,EAAoB,MAC7B,CAAC,EAEL,CACF,OAAST,EAAY,CACnB,MAAM,IAAI,MAAM,gCAAgC,KAAK,QAAQ,eAAe,SAAS,CAAC,eAAeA,CAAK,EAAE,CAC9G,CACF,CAYA,MAAM,KACJU,EACAC,EACe,CACf,KAAK,kBAAkB,QAAQ,CAACD,EAAiBC,CAAO,CAAC,CAC3D,CAQA,MAAM,wBAAwBrB,EAAkBM,EAAgE,CAC9G,GAAI,KAAK,kBAAkB,QAAQ,EAAG,OACtC,GAAM,CAACc,EAAiBC,CAAO,EAAI,MAAM,KAAK,kBAAkB,QAAQ,EACxE,OAAOC,EAAoB,CACzB,YAAa,KAAK,YAClB,OAAQtB,EAAQ,eAChB,KAAMoB,EACN,QAAS,CAAE,GAAGC,EAAS,sBAAuBf,CAAe,CAC/D,CAAC,CACH,CAKA,MAAM,KAAM,CACV,GAAI,CACF,KAAO,CAAC,KAAK,UAAU,YAAY,GAEjC,MADa,MAAM,KAAK,UAAU,QAAQ,GAC/B,CAEf,OAASI,EAAY,CACnB,MAAM,IAAI,MAAM,yCAAyCA,CAAK,EAAE,CAClE,CACF,CAKA,OAAQ,CACN,GAAI,KAAK,QACP,MAAM,IAAI,MAAM,4BAA4B,EAE9C,KAAK,QAAU,GACf,KAAK,UAAU,QAAQ,IAAM,KAAK,sBAAsB,CAAC,EACzD,KAAK,UAAU,QAAQ,IAAM,KAAK,oBAAoB,CAAC,EACvD,KAAK,IAAI,CACX,CAKA,MAAO,CACL,GAAI,KAAK,UAAU,YAAY,EAC7B,MAAM,IAAI,MAAM,4BAA4B,EAE9C,KAAK,QAAU,GACf,KAAK,UAAU,OAAO,CACxB,CACF","names":["EventEmitter","promiseFulfilledStatus","TransactionWorkerEventsEnum","TransactionWorker","EventEmitter","aptosConfig","account","maxWaitTime","maximumInFlight","sleepTime","AsyncQueue","AccountSequenceNumber","sequenceNumber","transaction","pendingTransaction","signAndSubmitTransaction","error","AsyncQueueCancelledError","awaitingTransactions","sequenceNumbers","sentTransactions","i","sentTransaction","waitFor","waitForTransaction","executedTransaction","transactionData","options","generateTransaction"]}
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-JF4E53MH.mjs";var o=class{constructor(n){this.config=n}async simple(n){return t({aptosConfig:this.config,...n})}async multiAgent(n){return t({aptosConfig:this.config,...n})}};export{o as a};
2
- //# sourceMappingURL=chunk-U5CKFPSM.mjs.map
1
+ import{a as t}from"./chunk-LSKVPMOF.mjs";var o=class{constructor(n){this.config=n}async simple(n){return t({aptosConfig:this.config,...n})}async multiAgent(n){return t({aptosConfig:this.config,...n})}};export{o as a};
2
+ //# sourceMappingURL=chunk-6X6G2RC3.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/api/transactionSubmission/build.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { AccountAddressInput } from \"../../core\";\nimport { generateTransaction } from \"../../internal/transactionSubmission\";\nimport { InputGenerateTransactionPayloadData, InputGenerateTransactionOptions } from \"../../transactions\";\nimport { MultiAgentTransaction } from \"../../transactions/instances/multiAgentTransaction\";\nimport { SimpleTransaction } from \"../../transactions/instances/simpleTransaction\";\nimport { AptosConfig } from \"../aptosConfig\";\n\n/**\n * A class to handle all `Build` transaction operations\n */\nexport class Build {\n readonly config: AptosConfig;\n\n constructor(config: AptosConfig) {\n this.config = config;\n }\n\n /**\n * Build a simple transaction\n *\n * @param args.sender The sender account address\n * @param args.data The transaction data\n * @param args.options optional. Optional transaction configurations\n * @param args.withFeePayer optional. Whether there is a fee payer for the transaction\n *\n * @returns SimpleTransaction\n */\n async simple(args: {\n sender: AccountAddressInput;\n data: InputGenerateTransactionPayloadData;\n options?: InputGenerateTransactionOptions;\n withFeePayer?: boolean;\n }): Promise<SimpleTransaction> {\n return generateTransaction({ aptosConfig: this.config, ...args });\n }\n\n /**\n * Build a multi agent transaction\n *\n * @param args.sender The sender account address\n * @param args.data The transaction data\n * @param args.secondarySignerAddresses An array of the secondary signers account addresses\n * @param args.options optional. Optional transaction configurations\n * @param args.withFeePayer optional. Whether there is a fee payer for the transaction\n *\n * @returns MultiAgentTransaction\n */\n async multiAgent(args: {\n sender: AccountAddressInput;\n data: InputGenerateTransactionPayloadData;\n secondarySignerAddresses: AccountAddressInput[];\n options?: InputGenerateTransactionOptions;\n withFeePayer?: boolean;\n }): Promise<MultiAgentTransaction> {\n return generateTransaction({ aptosConfig: this.config, ...args });\n }\n}\n"],"mappings":"yCAaO,IAAMA,EAAN,KAAY,CAGjB,YAAYC,EAAqB,CAC/B,KAAK,OAASA,CAChB,CAYA,MAAM,OAAOC,EAKkB,CAC7B,OAAOC,EAAoB,CAAE,YAAa,KAAK,OAAQ,GAAGD,CAAK,CAAC,CAClE,CAaA,MAAM,WAAWA,EAMkB,CACjC,OAAOC,EAAoB,CAAE,YAAa,KAAK,OAAQ,GAAGD,CAAK,CAAC,CAClE,CACF","names":["Build","config","args","generateTransaction"]}
@@ -1,2 +1,2 @@
1
- import{b as r}from"./chunk-H4Q7YQD3.mjs";async function i(e){let{aptosConfig:t,overrides:s,params:n,contentType:o,acceptType:p,path:a,originMethod:d,type:R}=e,u=t.getRequestUrl(R);return r({url:u,method:"GET",originMethod:d,path:a,contentType:o,acceptType:p,params:n,overrides:{...t.clientConfig,...s}},t,e.type)}async function c(e){let{aptosConfig:t}=e;return i({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function y(e){let t=[],s,n=e.params;do{let o=await i({type:"Fullnode",aptosConfig:e.aptosConfig,originMethod:e.originMethod,path:e.path,params:n,overrides:e.overrides});s=o.headers["x-aptos-cursor"],delete o.headers,t.push(...o.data),n.start=s}while(s!=null);return t}export{i as a,c as b,y as c};
2
- //# sourceMappingURL=chunk-T43CJS4C.mjs.map
1
+ import{b as r}from"./chunk-PE6R6XQV.mjs";async function i(e){let{aptosConfig:t,overrides:s,params:n,contentType:o,acceptType:p,path:a,originMethod:d,type:R}=e,u=t.getRequestUrl(R);return r({url:u,method:"GET",originMethod:d,path:a,contentType:o,acceptType:p,params:n,overrides:{...t.clientConfig,...s}},t,e.type)}async function c(e){let{aptosConfig:t}=e;return i({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function y(e){let t=[],s,n=e.params;do{let o=await i({type:"Fullnode",aptosConfig:e.aptosConfig,originMethod:e.originMethod,path:e.path,params:n,overrides:e.overrides});s=o.headers["x-aptos-cursor"],delete o.headers,t.push(...o.data),n.start=s}while(s!=null);return t}export{i as a,c as b,y as c};
2
+ //# sourceMappingURL=chunk-7JZWCHLH.mjs.map
@@ -1,2 +1,2 @@
1
- import{b as h}from"./chunk-Y7G5W2QZ.mjs";import{a as y}from"./chunk-4LQNMXX3.mjs";import{b as n}from"./chunk-GHMYWL3R.mjs";import{a as _}from"./chunk-VKWPCOZA.mjs";var t=class i extends _{constructor(e,s,a,r,c,d,l){super(),this.sender=e,this.sequence_number=s,this.payload=a,this.max_gas_amount=r,this.gas_unit_price=c,this.expiration_timestamp_secs=d,this.chain_id=l}serialize(e){this.sender.serialize(e),e.serializeU64(this.sequence_number),this.payload.serialize(e),e.serializeU64(this.max_gas_amount),e.serializeU64(this.gas_unit_price),e.serializeU64(this.expiration_timestamp_secs),this.chain_id.serialize(e)}static deserialize(e){let s=n.deserialize(e),a=e.deserializeU64(),r=h.deserialize(e),c=e.deserializeU64(),d=e.deserializeU64(),l=e.deserializeU64(),m=y.deserialize(e);return new i(s,a,r,c,d,l,m)}},o=class extends _{static deserialize(e){let s=e.deserializeUleb128AsU32();switch(s){case 0:return u.load(e);case 1:return p.load(e);default:throw new Error(`Unknown variant index for RawTransactionWithData: ${s}`)}}},u=class i extends o{constructor(e,s){super(),this.raw_txn=e,this.secondary_signer_addresses=s}serialize(e){e.serializeU32AsUleb128(0),this.raw_txn.serialize(e),e.serializeVector(this.secondary_signer_addresses)}static load(e){let s=t.deserialize(e),a=e.deserializeVector(n);return new i(s,a)}},p=class i extends o{constructor(e,s,a){super(),this.raw_txn=e,this.secondary_signer_addresses=s,this.fee_payer_address=a}serialize(e){e.serializeU32AsUleb128(1),this.raw_txn.serialize(e),e.serializeVector(this.secondary_signer_addresses),this.fee_payer_address.serialize(e)}static load(e){let s=t.deserialize(e),a=e.deserializeVector(n),r=n.deserialize(e);return new i(s,a,r)}};export{t as a,o as b,u as c,p as d};
2
- //# sourceMappingURL=chunk-W5PK4QCX.mjs.map
1
+ import{b as h}from"./chunk-MS76A6LX.mjs";import{a as y}from"./chunk-P2CIREOD.mjs";import{b as n}from"./chunk-UEI62FBQ.mjs";import{a as _}from"./chunk-4KMISR2H.mjs";var t=class i extends _{constructor(e,s,a,r,c,d,l){super(),this.sender=e,this.sequence_number=s,this.payload=a,this.max_gas_amount=r,this.gas_unit_price=c,this.expiration_timestamp_secs=d,this.chain_id=l}serialize(e){this.sender.serialize(e),e.serializeU64(this.sequence_number),this.payload.serialize(e),e.serializeU64(this.max_gas_amount),e.serializeU64(this.gas_unit_price),e.serializeU64(this.expiration_timestamp_secs),this.chain_id.serialize(e)}static deserialize(e){let s=n.deserialize(e),a=e.deserializeU64(),r=h.deserialize(e),c=e.deserializeU64(),d=e.deserializeU64(),l=e.deserializeU64(),m=y.deserialize(e);return new i(s,a,r,c,d,l,m)}},o=class extends _{static deserialize(e){let s=e.deserializeUleb128AsU32();switch(s){case 0:return u.load(e);case 1:return p.load(e);default:throw new Error(`Unknown variant index for RawTransactionWithData: ${s}`)}}},u=class i extends o{constructor(e,s){super(),this.raw_txn=e,this.secondary_signer_addresses=s}serialize(e){e.serializeU32AsUleb128(0),this.raw_txn.serialize(e),e.serializeVector(this.secondary_signer_addresses)}static load(e){let s=t.deserialize(e),a=e.deserializeVector(n);return new i(s,a)}},p=class i extends o{constructor(e,s,a){super(),this.raw_txn=e,this.secondary_signer_addresses=s,this.fee_payer_address=a}serialize(e){e.serializeU32AsUleb128(1),this.raw_txn.serialize(e),e.serializeVector(this.secondary_signer_addresses),this.fee_payer_address.serialize(e)}static load(e){let s=t.deserialize(e),a=e.deserializeVector(n),r=n.deserialize(e);return new i(s,a,r)}};export{t as a,o as b,u as c,p as d};
2
+ //# sourceMappingURL=chunk-7PNFDDIG.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as r}from"./chunk-4KMISR2H.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-AFTMLXYT.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a}from"./chunk-LG7RJQ57.mjs";import{bytesToHex as s,hexToBytes as o}from"@noble/hashes/utils";var l=(e=>(e.TOO_SHORT="too_short",e.INVALID_LENGTH="invalid_length",e.INVALID_HEX_CHARS="invalid_hex_chars",e))(l||{}),i=class n{constructor(t){this.data=t}toUint8Array(){return this.data}toStringWithoutPrefix(){return s(this.data)}toString(){return`0x${this.toStringWithoutPrefix()}`}static fromHexString(t){let r=t;if(r.startsWith("0x")&&(r=r.slice(2)),r.length===0)throw new a("Hex string is too short, must be at least 1 char long, excluding the optional leading 0x.","too_short");if(r.length%2!==0)throw new a("Hex string must be an even number of hex characters.","invalid_length");try{return new n(o(r))}catch(e){throw new a(`Hex string contains invalid hex characters: ${e?.message}`,"invalid_hex_chars")}}static fromHexInput(t){return t instanceof Uint8Array?new n(t):n.fromHexString(t)}static isValid(t){try{return n.fromHexString(t),{valid:!0}}catch(r){return{valid:!1,invalidReason:r?.invalidReason,invalidReasonMessage:r?.message}}}equals(t){return this.data.length!==t.data.length?!1:this.data.every((r,e)=>r===t.data[e])}};export{l as a,i as b};
2
+ //# sourceMappingURL=chunk-BCUSI3N6.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/core/hex.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { bytesToHex, hexToBytes } from \"@noble/hashes/utils\";\nimport { ParsingError, ParsingResult } from \"./common\";\nimport { HexInput } from \"../types\";\n\n/**\n * This enum is used to explain why parsing might have failed.\n */\nexport enum HexInvalidReason {\n TOO_SHORT = \"too_short\",\n INVALID_LENGTH = \"invalid_length\",\n INVALID_HEX_CHARS = \"invalid_hex_chars\",\n}\n\n/**\n * NOTE: Do not use this class when working with account addresses, use AccountAddress.\n *\n * NOTE: When accepting hex data as input to a function, prefer to accept HexInput and\n * then use the static helper methods of this class to convert it into the desired\n * format. This enables the greatest flexibility for the developer.\n *\n * Hex is a helper class for working with hex data. Hex data, when represented as a\n * string, generally looks like this, for example: 0xaabbcc, 45cd32, etc.\n *\n * You might use this class like this:\n *\n * ```ts\n * getTransactionByHash(txnHash: HexInput): Promise<Transaction> {\n * const txnHashString = Hex.fromHexInput(txnHash).toString();\n * return await getTransactionByHashInner(txnHashString);\n * }\n * ```\n *\n * This call to `Hex.fromHexInput().toString()` converts the HexInput to a hex string\n * with a leading 0x prefix, regardless of what the input format was.\n *\n * These are some other ways to chain the functions together:\n * - `Hex.fromHexString({ hexInput: \"0x1f\" }).toUint8Array()`\n * - `new Hex([1, 3]).toStringWithoutPrefix()`\n */\nexport class Hex {\n private readonly data: Uint8Array;\n\n /**\n * Create a new Hex instance from a Uint8Array.\n *\n * @param data Uint8Array\n */\n constructor(data: Uint8Array) {\n this.data = data;\n }\n\n // ===\n // Methods for representing an instance of Hex as other types.\n // ===\n\n /**\n * Get the inner hex data. The inner data is already a Uint8Array so no conversion\n * is taking place here, it just returns the inner data.\n *\n * @returns Hex data as Uint8Array\n */\n toUint8Array(): Uint8Array {\n return this.data;\n }\n\n /**\n * Get the hex data as a string without the 0x prefix.\n *\n * @returns Hex string without 0x prefix\n */\n toStringWithoutPrefix(): string {\n return bytesToHex(this.data);\n }\n\n /**\n * Get the hex data as a string with the 0x prefix.\n *\n * @returns Hex string with 0x prefix\n */\n toString(): string {\n return `0x${this.toStringWithoutPrefix()}`;\n }\n\n // ===\n // Methods for creating an instance of Hex from other types.\n // ===\n\n /**\n * Static method to convert a hex string to Hex\n *\n * @param str A hex string, with or without the 0x prefix\n *\n * @returns Hex\n */\n static fromHexString(str: string): Hex {\n let input = str;\n\n if (input.startsWith(\"0x\")) {\n input = input.slice(2);\n }\n\n if (input.length === 0) {\n throw new ParsingError(\n \"Hex string is too short, must be at least 1 char long, excluding the optional leading 0x.\",\n HexInvalidReason.TOO_SHORT,\n );\n }\n\n if (input.length % 2 !== 0) {\n throw new ParsingError(\"Hex string must be an even number of hex characters.\", HexInvalidReason.INVALID_LENGTH);\n }\n\n try {\n return new Hex(hexToBytes(input));\n } catch (error: any) {\n throw new ParsingError(\n `Hex string contains invalid hex characters: ${error?.message}`,\n HexInvalidReason.INVALID_HEX_CHARS,\n );\n }\n }\n\n /**\n * Static method to convert an instance of HexInput to Hex\n *\n * @param hexInput A HexInput (string or Uint8Array)\n *\n * @returns Hex\n */\n static fromHexInput(hexInput: HexInput): Hex {\n if (hexInput instanceof Uint8Array) return new Hex(hexInput);\n return Hex.fromHexString(hexInput);\n }\n\n // ===\n // Methods for checking validity.\n // ===\n\n /**\n * Check if the string is valid hex.\n *\n * @param str A hex string representing byte data.\n *\n * @returns valid = true if the string is valid, false if not. If the string is not\n * valid, invalidReason and invalidReasonMessage will be set explaining why it is\n * invalid.\n */\n static isValid(str: string): ParsingResult<HexInvalidReason> {\n try {\n Hex.fromHexString(str);\n return { valid: true };\n } catch (error: any) {\n return {\n valid: false,\n invalidReason: error?.invalidReason,\n invalidReasonMessage: error?.message,\n };\n }\n }\n\n /**\n * Return whether Hex instances are equal. Hex instances are considered equal if\n * their underlying byte data is identical.\n *\n * @param other The Hex instance to compare to.\n * @returns true if the Hex instances are equal, false if not.\n */\n equals(other: Hex): boolean {\n if (this.data.length !== other.data.length) return false;\n return this.data.every((value, index) => value === other.data[index]);\n }\n}\n"],"mappings":"oCAGA,OAAS,cAAAA,EAAY,cAAAC,MAAkB,sBAOhC,IAAKC,OACVA,EAAA,UAAY,YACZA,EAAA,eAAiB,iBACjBA,EAAA,kBAAoB,oBAHVA,OAAA,IAgCCC,EAAN,MAAMC,CAAI,CAQf,YAAYC,EAAkB,CAC5B,KAAK,KAAOA,CACd,CAYA,cAA2B,CACzB,OAAO,KAAK,IACd,CAOA,uBAAgC,CAC9B,OAAOC,EAAW,KAAK,IAAI,CAC7B,CAOA,UAAmB,CACjB,MAAO,KAAK,KAAK,sBAAsB,CAAC,EAC1C,CAaA,OAAO,cAAcC,EAAkB,CACrC,IAAIC,EAAQD,EAMZ,GAJIC,EAAM,WAAW,IAAI,IACvBA,EAAQA,EAAM,MAAM,CAAC,GAGnBA,EAAM,SAAW,EACnB,MAAM,IAAIC,EACR,4FACA,WACF,EAGF,GAAID,EAAM,OAAS,IAAM,EACvB,MAAM,IAAIC,EAAa,uDAAwD,gBAA+B,EAGhH,GAAI,CACF,OAAO,IAAIL,EAAIM,EAAWF,CAAK,CAAC,CAClC,OAASG,EAAY,CACnB,MAAM,IAAIF,EACR,+CAA+CE,GAAO,OAAO,GAC7D,mBACF,CACF,CACF,CASA,OAAO,aAAaC,EAAyB,CAC3C,OAAIA,aAAoB,WAAmB,IAAIR,EAAIQ,CAAQ,EACpDR,EAAI,cAAcQ,CAAQ,CACnC,CAeA,OAAO,QAAQL,EAA8C,CAC3D,GAAI,CACF,OAAAH,EAAI,cAAcG,CAAG,EACd,CAAE,MAAO,EAAK,CACvB,OAASI,EAAY,CACnB,MAAO,CACL,MAAO,GACP,cAAeA,GAAO,cACtB,qBAAsBA,GAAO,OAC/B,CACF,CACF,CASA,OAAOE,EAAqB,CAC1B,OAAI,KAAK,KAAK,SAAWA,EAAM,KAAK,OAAe,GAC5C,KAAK,KAAK,MAAM,CAACC,EAAOC,IAAUD,IAAUD,EAAM,KAAKE,CAAK,CAAC,CACtE,CACF","names":["bytesToHex","hexToBytes","HexInvalidReason","Hex","_Hex","data","bytesToHex","str","input","ParsingError","hexToBytes","error","hexInput","other","value","index"]}
@@ -1,2 +1,2 @@
1
- import{b as s}from"./chunk-6EMN3BOV.mjs";import{f as r}from"./chunk-JF4E53MH.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var i=class{constructor(n){this.config=n}async simple(n){return r({aptosConfig:this.config,...n})}async multiAgent(n){return r({aptosConfig:this.config,...n})}};o([s],i.prototype,"simple",1),o([s],i.prototype,"multiAgent",1);export{i as a};
2
- //# sourceMappingURL=chunk-HSITRYZ5.mjs.map
1
+ import{b as s}from"./chunk-6EMN3BOV.mjs";import{f as r}from"./chunk-LSKVPMOF.mjs";import{a as o}from"./chunk-FVA2OPG4.mjs";var i=class{constructor(n){this.config=n}async simple(n){return r({aptosConfig:this.config,...n})}async multiAgent(n){return r({aptosConfig:this.config,...n})}};o([s],i.prototype,"simple",1),o([s],i.prototype,"multiAgent",1);export{i as a};
2
+ //# sourceMappingURL=chunk-C67SYOXM.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as c,b as h}from"./chunk-AVQSQJUO.mjs";import{b as m}from"./chunk-IWPVPIKD.mjs";import{a as g}from"./chunk-OH5ADEJO.mjs";import{a as b}from"./chunk-XDZF5IUF.mjs";function p(l){let e=l;return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}var f=class l extends m{constructor(e){super();let{publicKeys:s,signaturesRequired:t}=e;if(t<1)throw new Error("The number of required signatures needs to be greater than 0");if(s.length<t)throw new Error(`Provided ${s.length} public keys is smaller than the ${t} required signatures`);this.publicKeys=s.map(r=>r instanceof c?r:new c(r)),this.signaturesRequired=t}verifySignature(e){throw new Error("not implemented")}authKey(){return b.fromSchemeAndBytes({scheme:3,input:this.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.publicKeys),e.serializeU8(this.signaturesRequired)}static deserialize(e){let s=e.deserializeVector(c),t=e.deserializeU8();return new l({publicKeys:s,signaturesRequired:t})}createBitmap(e){let{bits:s}=e,t=128,r=new Uint8Array([0,0,0,0]),n=new Set;return s.forEach((i,o)=>{if(o+1>this.publicKeys.length)throw new Error(`Signature index ${o+1} is out of public keys range, ${this.publicKeys.length}.`);if(n.has(i))throw new Error(`Duplicate bit ${i} detected.`);n.add(i);let u=Math.floor(i/8),y=r[u];y|=t>>i%8,r[u]=y}),r}},a=class a extends g{constructor(e){super();let{signatures:s,bitmap:t}=e;if(s.length>a.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${a.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=s.map(n=>n instanceof h?n:new h(n)),!(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}let r=this.bitmap.reduce((n,i)=>n+p(i),0);if(r!==this.signatures.length)throw new Error(`Expecting ${r} signatures from the bitmap, but got ${this.signatures.length}`)}static createBitmap(e){let{bits:s}=e,t=128,r=new Uint8Array([0,0,0,0]),n=new Set;return s.forEach(i=>{if(i>=a.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${a.MAX_SIGNATURES_SUPPORTED-1}.`);if(n.has(i))throw new Error("Duplicate bits detected.");n.add(i);let o=Math.floor(i/8),u=r[o];u|=t>>i%8,r[o]=u}),r}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.signatures),e.serializeBytes(this.bitmap)}static deserialize(e){let s=e.deserializeBytes(),t=s.reduce((n,i)=>n+p(i),0),r=[];for(let n=0;n<t;n+=1){let i=h.deserialize(e);r.push(i)}return new a({signatures:r,bitmap:s})}};a.BITMAP_LEN=4,a.MAX_SIGNATURES_SUPPORTED=a.BITMAP_LEN*8;var A=a;export{f as a,A as b};
2
- //# sourceMappingURL=chunk-HYQSORWM.mjs.map
1
+ import{a as c,b as h}from"./chunk-QMFBU2CG.mjs";import{b as m}from"./chunk-F7J7ZW4H.mjs";import{a as g}from"./chunk-AFTMLXYT.mjs";import{a as b}from"./chunk-WNVUG2UF.mjs";function p(l){let e=l;return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}var f=class l extends m{constructor(e){super();let{publicKeys:s,signaturesRequired:t}=e;if(t<1)throw new Error("The number of required signatures needs to be greater than 0");if(s.length<t)throw new Error(`Provided ${s.length} public keys is smaller than the ${t} required signatures`);this.publicKeys=s.map(r=>r instanceof c?r:new c(r)),this.signaturesRequired=t}verifySignature(e){throw new Error("not implemented")}authKey(){return b.fromSchemeAndBytes({scheme:3,input:this.toUint8Array()})}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.publicKeys),e.serializeU8(this.signaturesRequired)}static deserialize(e){let s=e.deserializeVector(c),t=e.deserializeU8();return new l({publicKeys:s,signaturesRequired:t})}createBitmap(e){let{bits:s}=e,t=128,r=new Uint8Array([0,0,0,0]),n=new Set;return s.forEach((i,o)=>{if(o+1>this.publicKeys.length)throw new Error(`Signature index ${o+1} is out of public keys range, ${this.publicKeys.length}.`);if(n.has(i))throw new Error(`Duplicate bit ${i} detected.`);n.add(i);let u=Math.floor(i/8),y=r[u];y|=t>>i%8,r[u]=y}),r}},a=class a extends g{constructor(e){super();let{signatures:s,bitmap:t}=e;if(s.length>a.MAX_SIGNATURES_SUPPORTED)throw new Error(`The number of signatures cannot be greater than ${a.MAX_SIGNATURES_SUPPORTED}`);if(this.signatures=s.map(n=>n instanceof h?n:new h(n)),!(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}let r=this.bitmap.reduce((n,i)=>n+p(i),0);if(r!==this.signatures.length)throw new Error(`Expecting ${r} signatures from the bitmap, but got ${this.signatures.length}`)}static createBitmap(e){let{bits:s}=e,t=128,r=new Uint8Array([0,0,0,0]),n=new Set;return s.forEach(i=>{if(i>=a.MAX_SIGNATURES_SUPPORTED)throw new Error(`Cannot have a signature larger than ${a.MAX_SIGNATURES_SUPPORTED-1}.`);if(n.has(i))throw new Error("Duplicate bits detected.");n.add(i);let o=Math.floor(i/8),u=r[o];u|=t>>i%8,r[o]=u}),r}toUint8Array(){return this.bcsToBytes()}serialize(e){e.serializeVector(this.signatures),e.serializeBytes(this.bitmap)}static deserialize(e){let s=e.deserializeBytes(),t=s.reduce((n,i)=>n+p(i),0),r=[];for(let n=0;n<t;n+=1){let i=h.deserialize(e);r.push(i)}return new a({signatures:r,bitmap:s})}};a.BITMAP_LEN=4,a.MAX_SIGNATURES_SUPPORTED=a.BITMAP_LEN*8;var A=a;export{f as a,A as b};
2
+ //# sourceMappingURL=chunk-CHVWOPVA.mjs.map
@@ -1,2 +1,2 @@
1
- import{m as g,v as a}from"./chunk-S4SEFF4K.mjs";import{b as n}from"./chunk-T43CJS4C.mjs";import{b as p,c}from"./chunk-O5L7WGNH.mjs";async function h(o){let{aptosConfig:t}=o,{data:e}=await n({aptosConfig:t,originMethod:"getLedgerInfo",path:""});return e}async function l(o){let{aptosConfig:t,ledgerVersion:e,options:s}=o,{data:r}=await n({aptosConfig:t,originMethod:"getBlockByVersion",path:`blocks/by_version/${e}`,params:{with_transactions:s?.withTransactions}});return r}async function C(o){let{aptosConfig:t,blockHeight:e,options:s}=o,{data:r}=await n({aptosConfig:t,originMethod:"getBlockByHeight",path:`blocks/by_height/${e}`,params:{with_transactions:s?.withTransactions}});return r}async function m(o){let{aptosConfig:t,handle:e,data:s,options:r}=o;return(await p({aptosConfig:t,originMethod:"getTableItem",path:`tables/${e}/item`,params:{ledger_version:r?.ledgerVersion},body:s})).data}async function T(o){let{aptosConfig:t,limit:e}=o;return(await i({aptosConfig:t,query:{query:g,variables:{limit:e}},originMethod:"getChainTopUserTransactions"})).user_transactions}async function i(o){let{aptosConfig:t,query:e,originMethod:s}=o,{data:r}=await c({aptosConfig:t,originMethod:s??"queryIndexer",path:"",body:e,overrides:{WITH_CREDENTIALS:!1}});return r}async function f(o){let{aptosConfig:t}=o;return(await i({aptosConfig:t,query:{query:a},originMethod:"getProcessorStatuses"})).processor_status}async function q(o){let t=await f({aptosConfig:o.aptosConfig});return BigInt(t[0].last_success_version)}async function b(o){let{aptosConfig:t,processorType:e}=o;return(await i({aptosConfig:t,query:{query:a,variables:{where_condition:{processor:{_eq:e}}}},originMethod:"getProcessorStatus"})).processor_status[0]}export{h as a,l as b,C as c,m as d,T as e,i as f,f as g,q as h,b as i};
2
- //# sourceMappingURL=chunk-JKXSSRNT.mjs.map
1
+ import{m as g,v as a}from"./chunk-S4SEFF4K.mjs";import{b as n}from"./chunk-7JZWCHLH.mjs";import{b as p,c}from"./chunk-EIXGNR6D.mjs";async function h(o){let{aptosConfig:t}=o,{data:e}=await n({aptosConfig:t,originMethod:"getLedgerInfo",path:""});return e}async function l(o){let{aptosConfig:t,ledgerVersion:e,options:s}=o,{data:r}=await n({aptosConfig:t,originMethod:"getBlockByVersion",path:`blocks/by_version/${e}`,params:{with_transactions:s?.withTransactions}});return r}async function C(o){let{aptosConfig:t,blockHeight:e,options:s}=o,{data:r}=await n({aptosConfig:t,originMethod:"getBlockByHeight",path:`blocks/by_height/${e}`,params:{with_transactions:s?.withTransactions}});return r}async function m(o){let{aptosConfig:t,handle:e,data:s,options:r}=o;return(await p({aptosConfig:t,originMethod:"getTableItem",path:`tables/${e}/item`,params:{ledger_version:r?.ledgerVersion},body:s})).data}async function T(o){let{aptosConfig:t,limit:e}=o;return(await i({aptosConfig:t,query:{query:g,variables:{limit:e}},originMethod:"getChainTopUserTransactions"})).user_transactions}async function i(o){let{aptosConfig:t,query:e,originMethod:s}=o,{data:r}=await c({aptosConfig:t,originMethod:s??"queryIndexer",path:"",body:e,overrides:{WITH_CREDENTIALS:!1}});return r}async function f(o){let{aptosConfig:t}=o;return(await i({aptosConfig:t,query:{query:a},originMethod:"getProcessorStatuses"})).processor_status}async function q(o){let t=await f({aptosConfig:o.aptosConfig});return BigInt(t[0].last_success_version)}async function b(o){let{aptosConfig:t,processorType:e}=o;return(await i({aptosConfig:t,query:{query:a,variables:{where_condition:{processor:{_eq:e}}}},originMethod:"getProcessorStatus"})).processor_status[0]}export{h as a,l as b,C as c,m as d,T as e,i as f,f as g,q as h,b as i};
2
+ //# sourceMappingURL=chunk-CPQPVRKV.mjs.map
@@ -1,2 +1,2 @@
1
- import{a as i}from"./chunk-TTM66JZ4.mjs";import{a,b as g,c as f}from"./chunk-RP4FMC6O.mjs";import{a as o,b as u,c as s,d as c,e as p,f as y,g as m}from"./chunk-QDD2MDJZ.mjs";import{b as r}from"./chunk-GHMYWL3R.mjs";function M(n){return typeof n=="boolean"}function D(n){return typeof n=="string"}function N(n){return typeof n=="number"}function P(n){return typeof n=="number"||typeof n=="bigint"||typeof n=="string"}function w(n){return n==null}function G(n){return A(n)||x(n)||S(n)||B(n)||U(n)||I(n)||b(n)||T(n)||E(n)||d(n)||n instanceof a||n instanceof f}function A(n){return n instanceof o}function T(n){return n instanceof r}function E(n){return n instanceof g}function d(n){return n instanceof i}function x(n){return n instanceof u}function S(n){return n instanceof s}function B(n){return n instanceof c}function U(n){return n instanceof p}function I(n){return n instanceof y}function b(n){return n instanceof m}function $(n){return"bytecode"in n}function R(n,t){throw new Error(`Type mismatch for argument ${t}, expected '${n}'`)}function W(n){let t=n.params.findIndex(e=>e!=="signer"&&e!=="&signer");return t<0?n.params.length:t}function L(n){let t=n.split("::");if(t.length!==3)throw new Error(`Invalid function ${n}`);let e=t[0],F=t[1],l=t[2];return{moduleAddress:e,moduleName:F,functionName:l}}export{M as a,D as b,N as c,P as d,w as e,G as f,A as g,T as h,E as i,d as j,x as k,S as l,B as m,U as n,I as o,b as p,$ as q,R as r,W as s,L as t};
2
- //# sourceMappingURL=chunk-P434YHBQ.mjs.map
1
+ import{a,b as g,c as f}from"./chunk-YJIRT3GJ.mjs";import{a as i}from"./chunk-2XVDVF5C.mjs";import{a as o,b as u,c as s,d as c,e as p,f as y,g as m}from"./chunk-5NSXEM3O.mjs";import{b as r}from"./chunk-UEI62FBQ.mjs";function M(n){return typeof n=="boolean"}function D(n){return typeof n=="string"}function N(n){return typeof n=="number"}function P(n){return typeof n=="number"||typeof n=="bigint"||typeof n=="string"}function w(n){return n==null}function G(n){return A(n)||x(n)||S(n)||B(n)||U(n)||I(n)||b(n)||T(n)||E(n)||d(n)||n instanceof a||n instanceof f}function A(n){return n instanceof o}function T(n){return n instanceof r}function E(n){return n instanceof g}function d(n){return n instanceof i}function x(n){return n instanceof u}function S(n){return n instanceof s}function B(n){return n instanceof c}function U(n){return n instanceof p}function I(n){return n instanceof y}function b(n){return n instanceof m}function $(n){return"bytecode"in n}function R(n,t){throw new Error(`Type mismatch for argument ${t}, expected '${n}'`)}function W(n){let t=n.params.findIndex(e=>e!=="signer"&&e!=="&signer");return t<0?n.params.length:t}function L(n){let t=n.split("::");if(t.length!==3)throw new Error(`Invalid function ${n}`);let e=t[0],F=t[1],l=t[2];return{moduleAddress:e,moduleName:F,functionName:l}}export{M as a,D as b,N as c,P as d,w as e,G as f,A as g,T as h,E as i,d as j,x as k,S as l,B as m,U as n,I as o,b as p,$ as q,R as r,W as s,L as t};
2
+ //# sourceMappingURL=chunk-D5Q7BI3J.mjs.map
@@ -0,0 +1,2 @@
1
+ import{a as n}from"./chunk-7PNFDDIG.mjs";import{b as i}from"./chunk-UEI62FBQ.mjs";import{a as d}from"./chunk-4KMISR2H.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-DAC5J2BG.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/transactions/instances/multiAgentTransaction.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\n/* eslint-disable @typescript-eslint/naming-convention */\n\nimport { Deserializer } from \"../../bcs/deserializer\";\nimport { Serializable, Serializer } from \"../../bcs/serializer\";\nimport { AccountAddress } from \"../../core\";\nimport { RawTransaction } from \"./rawTransaction\";\n\n/**\n * Representation of a Raw Transaction that can serialized and deserialized\n */\nexport class MultiAgentTransaction extends Serializable {\n public rawTransaction: RawTransaction;\n\n public feePayerAddress?: AccountAddress | undefined;\n\n public secondarySignerAddresses: AccountAddress[];\n\n /**\n * SimpleTransaction represents a simple transaction type of a single signer that\n * can be submitted to Aptos chain for execution.\n *\n * SimpleTransaction metadata contains the Raw Transaction and an optional\n * sponsor Account Address to pay the gas fees.\n *\n * @param rawTransaction The Raw Tranasaction\n * @param feePayerAddress The sponsor Account Address\n */\n constructor(\n rawTransaction: RawTransaction,\n secondarySignerAddresses: AccountAddress[],\n feePayerAddress?: AccountAddress,\n ) {\n super();\n this.rawTransaction = rawTransaction;\n this.feePayerAddress = feePayerAddress;\n this.secondarySignerAddresses = secondarySignerAddresses;\n }\n\n serialize(serializer: Serializer): void {\n this.rawTransaction.serialize(serializer);\n\n serializer.serializeVector<AccountAddress>(this.secondarySignerAddresses);\n\n if (this.feePayerAddress === undefined) {\n serializer.serializeBool(false);\n } else {\n serializer.serializeBool(true);\n this.feePayerAddress.serialize(serializer);\n }\n }\n\n static deserialize(deserializer: Deserializer): MultiAgentTransaction {\n const rawTransaction = RawTransaction.deserialize(deserializer);\n\n const secondarySignerAddresses = deserializer.deserializeVector(AccountAddress);\n\n const feepayerPresent = deserializer.deserializeBool();\n let feePayerAddress;\n if (feepayerPresent) {\n feePayerAddress = AccountAddress.deserialize(deserializer);\n }\n\n return new MultiAgentTransaction(rawTransaction, secondarySignerAddresses, feePayerAddress);\n }\n}\n"],"mappings":"2HAaO,IAAMA,EAAN,MAAMC,UAA8BC,CAAa,CAiBtD,YACEC,EACAC,EACAC,EACA,CACA,MAAM,EACN,KAAK,eAAiBF,EACtB,KAAK,gBAAkBE,EACvB,KAAK,yBAA2BD,CAClC,CAEA,UAAUE,EAA8B,CACtC,KAAK,eAAe,UAAUA,CAAU,EAExCA,EAAW,gBAAgC,KAAK,wBAAwB,EAEpE,KAAK,kBAAoB,OAC3BA,EAAW,cAAc,EAAK,GAE9BA,EAAW,cAAc,EAAI,EAC7B,KAAK,gBAAgB,UAAUA,CAAU,EAE7C,CAEA,OAAO,YAAYC,EAAmD,CACpE,IAAMJ,EAAiBK,EAAe,YAAYD,CAAY,EAExDH,EAA2BG,EAAa,kBAAkBE,CAAc,EAExEC,EAAkBH,EAAa,gBAAgB,EACjDF,EACJ,OAAIK,IACFL,EAAkBI,EAAe,YAAYF,CAAY,GAGpD,IAAIN,EAAsBE,EAAgBC,EAA0BC,CAAe,CAC5F,CACF","names":["MultiAgentTransaction","_MultiAgentTransaction","Serializable","rawTransaction","secondarySignerAddresses","feePayerAddress","serializer","deserializer","RawTransaction","AccountAddress","feepayerPresent"]}
@@ -1,2 +1,2 @@
1
- import{b as i}from"./chunk-H4Q7YQD3.mjs";async function s(e){let{type:t,originMethod:o,path:p,body:r,acceptType:R,contentType:f,params:c,aptosConfig:n,overrides:d}=e,g=n.getRequestUrl(t);return i({url:g,method:"POST",originMethod:o,path:p,body:r,contentType:f,acceptType:R,params:c,overrides:d},n,e.type)}async function y(e){let{aptosConfig:t}=e;return s({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function m(e){let{aptosConfig:t}=e;return s({...e,type:"Indexer",overrides:{...t.clientConfig,...t.indexerConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.indexerConfig?.HEADERS}}})}async function a(e){let{aptosConfig:t}=e,o={...t,clientConfig:{...t.clientConfig}};return delete o?.clientConfig?.API_KEY,s({...e,type:"Faucet",overrides:{...o.clientConfig,...o.faucetConfig,...e.overrides,HEADERS:{...o.clientConfig?.HEADERS,...o.faucetConfig?.HEADERS}}})}export{s as a,y as b,m as c,a as d};
2
- //# sourceMappingURL=chunk-O5L7WGNH.mjs.map
1
+ import{b as i}from"./chunk-PE6R6XQV.mjs";async function s(e){let{type:t,originMethod:o,path:p,body:r,acceptType:R,contentType:f,params:c,aptosConfig:n,overrides:d}=e,g=n.getRequestUrl(t);return i({url:g,method:"POST",originMethod:o,path:p,body:r,contentType:f,acceptType:R,params:c,overrides:d},n,e.type)}async function y(e){let{aptosConfig:t}=e;return s({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function m(e){let{aptosConfig:t}=e;return s({...e,type:"Indexer",overrides:{...t.clientConfig,...t.indexerConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.indexerConfig?.HEADERS}}})}async function a(e){let{aptosConfig:t}=e,o={...t,clientConfig:{...t.clientConfig}};return delete o?.clientConfig?.API_KEY,s({...e,type:"Faucet",overrides:{...o.clientConfig,...o.faucetConfig,...e.overrides,HEADERS:{...o.clientConfig?.HEADERS,...o.faucetConfig?.HEADERS}}})}export{s as a,y as b,m as c,a as d};
2
+ //# sourceMappingURL=chunk-EIXGNR6D.mjs.map