@aptos-labs/ts-sdk 1.35.0-zeta.1 → 1.35.0-zeta.2

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 (277) hide show
  1. package/dist/common/index.d.ts +31 -17
  2. package/dist/common/index.js +1044 -1026
  3. package/dist/common/index.js.map +1 -1
  4. package/dist/esm/account/AbstractKeylessAccount.mjs +19 -19
  5. package/dist/esm/account/AbstractedAccount.mjs +21 -21
  6. package/dist/esm/account/Account.mjs +20 -20
  7. package/dist/esm/account/AccountUtils.mjs +25 -25
  8. package/dist/esm/account/Ed25519Account.mjs +18 -18
  9. package/dist/esm/account/EphemeralKeyPair.mjs +12 -12
  10. package/dist/esm/account/FederatedKeylessAccount.mjs +20 -20
  11. package/dist/esm/account/KeylessAccount.mjs +20 -20
  12. package/dist/esm/account/MultiEd25519Account.mjs +18 -18
  13. package/dist/esm/account/MultiKeyAccount.d.mts +1 -0
  14. package/dist/esm/account/MultiKeyAccount.mjs +22 -22
  15. package/dist/esm/account/SingleKeyAccount.mjs +18 -18
  16. package/dist/esm/account/index.mjs +28 -28
  17. package/dist/esm/account/utils.mjs +11 -11
  18. package/dist/esm/api/account/abstraction.mjs +39 -39
  19. package/dist/esm/api/account.mjs +43 -41
  20. package/dist/esm/api/ans.mjs +39 -39
  21. package/dist/esm/api/aptos.d.mts +0 -1
  22. package/dist/esm/api/aptos.mjs +73 -70
  23. package/dist/esm/api/coin.mjs +38 -37
  24. package/dist/esm/api/digitalAsset.mjs +39 -39
  25. package/dist/esm/api/event.mjs +16 -16
  26. package/dist/esm/api/experimental.mjs +26 -40
  27. package/dist/esm/api/faucet.mjs +15 -15
  28. package/dist/esm/api/fungibleAsset.mjs +39 -39
  29. package/dist/esm/api/general.d.mts +2 -2
  30. package/dist/esm/api/general.mjs +26 -40
  31. package/dist/esm/api/index.d.mts +0 -1
  32. package/dist/esm/api/index.mjs +73 -70
  33. package/dist/esm/api/keyless.mjs +40 -38
  34. package/dist/esm/api/object.mjs +16 -16
  35. package/dist/esm/api/staking.mjs +16 -16
  36. package/dist/esm/api/table.mjs +7 -7
  37. package/dist/esm/api/transaction.d.mts +30 -18
  38. package/dist/esm/api/transaction.mjs +45 -43
  39. package/dist/esm/api/transactionSubmission/build.mjs +37 -37
  40. package/dist/esm/api/transactionSubmission/management.mjs +41 -39
  41. package/dist/esm/api/transactionSubmission/sign.mjs +36 -36
  42. package/dist/esm/api/transactionSubmission/simulate.mjs +37 -37
  43. package/dist/esm/api/transactionSubmission/submit.mjs +37 -37
  44. package/dist/esm/api/utils.mjs +5 -5
  45. package/dist/esm/bcs/index.mjs +1 -1
  46. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  47. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  48. package/dist/esm/{chunk-JJ6MU2DV.mjs → chunk-2FTF6J7F.mjs} +3 -3
  49. package/dist/esm/{chunk-54XJAHWK.mjs → chunk-2HL7JEFC.mjs} +9 -9
  50. package/dist/esm/{chunk-TZZZNGQI.mjs → chunk-2WBJAKBO.mjs} +2 -2
  51. package/dist/esm/{chunk-3E2SXJXZ.mjs → chunk-3DAVHDK4.mjs} +2 -2
  52. package/dist/esm/{chunk-F65QGYVD.mjs → chunk-3TUV6YMI.mjs} +3 -3
  53. package/dist/esm/{chunk-KZFQOE4N.mjs → chunk-5ORUQZAR.mjs} +3 -3
  54. package/dist/esm/{chunk-RTNVJKNX.mjs → chunk-62LC4PPC.mjs} +3 -3
  55. package/dist/esm/{chunk-OOQS6BEP.mjs → chunk-6OFCIXWS.mjs} +2 -2
  56. package/dist/esm/chunk-6OFCIXWS.mjs.map +1 -0
  57. package/dist/esm/{chunk-YD3KHXBD.mjs → chunk-6SNGKTWE.mjs} +2 -2
  58. package/dist/esm/{chunk-2SIDNRJH.mjs → chunk-7F32C225.mjs} +4 -4
  59. package/dist/esm/{chunk-TFDBSPIQ.mjs → chunk-7WW735TU.mjs} +3 -3
  60. package/dist/esm/{chunk-SFF4FJUD.mjs → chunk-A33OBGVN.mjs} +3 -3
  61. package/dist/esm/{chunk-J32AERDF.mjs → chunk-A7LYGPFL.mjs} +3 -3
  62. package/dist/esm/{chunk-BADWWRLN.mjs → chunk-AGKEC2IM.mjs} +5 -5
  63. package/dist/esm/{chunk-GUEJH55K.mjs → chunk-BU43ZFDJ.mjs} +2 -2
  64. package/dist/esm/{chunk-PP2U5UMC.mjs → chunk-C7EEG6SW.mjs} +4 -4
  65. package/dist/esm/{chunk-HTC3Q5JN.mjs → chunk-D4MW64RH.mjs} +4 -4
  66. package/dist/esm/{chunk-YMHFUSKX.mjs → chunk-D6RXVCE3.mjs} +3 -3
  67. package/dist/esm/{chunk-7J37IHNP.mjs → chunk-DGDZNHUJ.mjs} +5 -3
  68. package/dist/esm/{chunk-7J37IHNP.mjs.map → chunk-DGDZNHUJ.mjs.map} +1 -1
  69. package/dist/esm/{chunk-NFBLI3BS.mjs → chunk-DMFRIING.mjs} +2 -2
  70. package/dist/esm/{chunk-CPZPXG7O.mjs → chunk-ECTX2FGD.mjs} +4 -4
  71. package/dist/esm/{chunk-CDJNQ7CS.mjs → chunk-FDMI4BUL.mjs} +29 -22
  72. package/dist/esm/chunk-FDMI4BUL.mjs.map +1 -0
  73. package/dist/esm/chunk-FRLS4GRM.mjs +62 -0
  74. package/dist/esm/chunk-FRLS4GRM.mjs.map +1 -0
  75. package/dist/esm/chunk-G3MHXDYA.mjs +1 -0
  76. package/dist/esm/chunk-G3MHXDYA.mjs.map +1 -0
  77. package/dist/esm/{chunk-OVZOE4GS.mjs → chunk-G6R77JKO.mjs} +16 -16
  78. package/dist/esm/{chunk-XHQMSKZP.mjs → chunk-G7BB6K4B.mjs} +5 -5
  79. package/dist/esm/{chunk-XB4SVKZP.mjs → chunk-GCQK2S5Q.mjs} +2 -2
  80. package/dist/esm/{chunk-2WTIMHGC.mjs → chunk-HBXBODME.mjs} +3 -3
  81. package/dist/esm/{chunk-D3IWXA33.mjs → chunk-HKQY5GXT.mjs} +7 -191
  82. package/dist/esm/chunk-HKQY5GXT.mjs.map +1 -0
  83. package/dist/esm/{chunk-WSI6NVQD.mjs → chunk-HL337SEM.mjs} +3 -3
  84. package/dist/esm/{chunk-V66UC6YI.mjs → chunk-HQDHSKVS.mjs} +2 -2
  85. package/dist/esm/{chunk-ZATMRCFV.mjs → chunk-I5G7XFGT.mjs} +3 -3
  86. package/dist/esm/{chunk-MC4OOX6X.mjs → chunk-IJ7XCPP3.mjs} +36 -31
  87. package/dist/esm/chunk-IJ7XCPP3.mjs.map +1 -0
  88. package/dist/esm/{chunk-SW4ASQPY.mjs → chunk-ILTEOGFF.mjs} +6 -6
  89. package/dist/esm/{chunk-KK7SBRDQ.mjs → chunk-IP7GATDH.mjs} +6 -6
  90. package/dist/esm/{chunk-KK7SBRDQ.mjs.map → chunk-IP7GATDH.mjs.map} +1 -1
  91. package/dist/esm/{chunk-RGHKUKOX.mjs → chunk-IPUAVRGL.mjs} +5 -5
  92. package/dist/esm/{chunk-MLGROHE6.mjs → chunk-IQVHXOD3.mjs} +10 -10
  93. package/dist/esm/{chunk-IEM26R5Q.mjs → chunk-JAZJE3OR.mjs} +2 -2
  94. package/dist/esm/{chunk-VJ2Z7GO3.mjs → chunk-JEVGHYEP.mjs} +2 -2
  95. package/dist/esm/{chunk-WPJUSJJQ.mjs → chunk-JFMFZ2IL.mjs} +3 -3
  96. package/dist/esm/{chunk-IORAMQ2Y.mjs → chunk-K5OCDM3W.mjs} +8 -8
  97. package/dist/esm/{chunk-IORAMQ2Y.mjs.map → chunk-K5OCDM3W.mjs.map} +1 -1
  98. package/dist/esm/{chunk-ESGBNVCA.mjs → chunk-ORCQEMJL.mjs} +2 -2
  99. package/dist/esm/{chunk-PYLTV3KI.mjs → chunk-QYNYDQE3.mjs} +4 -4
  100. package/dist/esm/{chunk-F2EFNUWD.mjs → chunk-R45SPK6Q.mjs} +4 -4
  101. package/dist/esm/{chunk-UKYATVYK.mjs → chunk-RCXGTN36.mjs} +2 -2
  102. package/dist/esm/{chunk-6DJZITWL.mjs → chunk-SPI2HO3E.mjs} +2 -2
  103. package/dist/esm/{chunk-YGFWUFZY.mjs → chunk-SPVJXZL5.mjs} +186 -62
  104. package/dist/esm/chunk-SPVJXZL5.mjs.map +1 -0
  105. package/dist/esm/{chunk-BVBIBMAE.mjs → chunk-SRXIHVZE.mjs} +2 -2
  106. package/dist/esm/{chunk-ZAPXD4FC.mjs → chunk-T4BFWV46.mjs} +2 -2
  107. package/dist/esm/{chunk-ZZWD23YW.mjs → chunk-T573PCIR.mjs} +3 -3
  108. package/dist/esm/{chunk-AEMQUDMU.mjs → chunk-TDLL7QX5.mjs} +11 -11
  109. package/dist/esm/{chunk-HRUI6AWF.mjs → chunk-TFW6N66T.mjs} +4 -4
  110. package/dist/esm/{chunk-LK4HGGAJ.mjs → chunk-TJDF4CXI.mjs} +2 -2
  111. package/dist/esm/{chunk-U7K7AJMC.mjs → chunk-TL4Z4KHK.mjs} +2 -2
  112. package/dist/esm/{chunk-IARAGRKO.mjs → chunk-UGFIWCJQ.mjs} +4 -4
  113. package/dist/esm/{chunk-Y25NJOOO.mjs → chunk-UK7SPHIE.mjs} +4 -4
  114. package/dist/esm/{chunk-MX2R6BBJ.mjs → chunk-UOHCJOXI.mjs} +2 -2
  115. package/dist/esm/{chunk-S5JIXUS6.mjs → chunk-WHSS6I7T.mjs} +4 -4
  116. package/dist/esm/{chunk-2ZX5PHCY.mjs → chunk-WLTQHGIJ.mjs} +5 -5
  117. package/dist/esm/{chunk-MD4TZ4HA.mjs → chunk-WUM247HF.mjs} +3 -3
  118. package/dist/esm/{chunk-IY2ASLSP.mjs → chunk-WXQUBQK4.mjs} +2 -2
  119. package/dist/esm/{chunk-3T7G4OUL.mjs → chunk-X4N5BN3S.mjs} +2 -2
  120. package/dist/esm/{chunk-TQLOZKH4.mjs → chunk-XIBOO3WF.mjs} +3 -3
  121. package/dist/esm/{chunk-2JLHWA2G.mjs → chunk-Y3M32DIB.mjs} +2 -2
  122. package/dist/esm/{chunk-IKEPH7D2.mjs → chunk-YK66QBML.mjs} +4 -4
  123. package/dist/esm/{chunk-PITSYZA7.mjs → chunk-YT7V6AVJ.mjs} +2 -2
  124. package/dist/esm/chunk-ZRBUAZZD.mjs +36 -0
  125. package/dist/esm/chunk-ZRBUAZZD.mjs.map +1 -0
  126. package/dist/esm/cli/index.mjs +1 -1
  127. package/dist/esm/cli/localNode.mjs +1 -1
  128. package/dist/esm/client/core.mjs +1 -1
  129. package/dist/esm/client/get.mjs +1 -1
  130. package/dist/esm/client/index.mjs +10 -10
  131. package/dist/esm/client/post.mjs +1 -1
  132. package/dist/esm/core/account/index.mjs +1 -1
  133. package/dist/esm/core/account/utils/address.mjs +1 -1
  134. package/dist/esm/core/account/utils/index.mjs +1 -1
  135. package/dist/esm/core/accountAddress.mjs +1 -1
  136. package/dist/esm/core/authenticationKey.mjs +1 -1
  137. package/dist/esm/core/crypto/abstraction.mjs +1 -1
  138. package/dist/esm/core/crypto/ed25519.mjs +3 -3
  139. package/dist/esm/core/crypto/ephemeral.mjs +4 -4
  140. package/dist/esm/core/crypto/federatedKeyless.mjs +7 -7
  141. package/dist/esm/core/crypto/index.mjs +13 -13
  142. package/dist/esm/core/crypto/keyless.mjs +6 -6
  143. package/dist/esm/core/crypto/multiEd25519.mjs +11 -11
  144. package/dist/esm/core/crypto/multiKey.mjs +10 -10
  145. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  146. package/dist/esm/core/crypto/proof.mjs +1 -1
  147. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  148. package/dist/esm/core/crypto/secp256k1.mjs +3 -3
  149. package/dist/esm/core/crypto/signature.mjs +1 -1
  150. package/dist/esm/core/crypto/singleKey.mjs +9 -9
  151. package/dist/esm/core/index.mjs +13 -13
  152. package/dist/esm/errors/index.mjs +1 -1
  153. package/dist/esm/index.mjs +102 -99
  154. package/dist/esm/internal/abstraction.mjs +37 -37
  155. package/dist/esm/internal/account.d.mts +45 -5
  156. package/dist/esm/internal/account.mjs +48 -34
  157. package/dist/esm/internal/ans.mjs +38 -38
  158. package/dist/esm/internal/coin.mjs +37 -36
  159. package/dist/esm/internal/digitalAsset.mjs +37 -37
  160. package/dist/esm/internal/event.mjs +13 -13
  161. package/dist/esm/internal/experimental.mjs +25 -39
  162. package/dist/esm/internal/faucet.mjs +14 -14
  163. package/dist/esm/internal/fungibleAsset.mjs +37 -37
  164. package/dist/esm/internal/general.mjs +3 -3
  165. package/dist/esm/internal/keyless.mjs +39 -37
  166. package/dist/esm/internal/object.mjs +13 -13
  167. package/dist/esm/internal/staking.mjs +13 -13
  168. package/dist/esm/internal/table.mjs +4 -4
  169. package/dist/esm/internal/transaction.mjs +4 -4
  170. package/dist/esm/internal/transactionSubmission.d.mts +6 -36
  171. package/dist/esm/internal/transactionSubmission.mjs +36 -42
  172. package/dist/esm/internal/utils/index.d.mts +15 -0
  173. package/dist/esm/internal/utils/index.mjs +39 -0
  174. package/dist/esm/internal/utils/index.mjs.map +1 -0
  175. package/dist/esm/internal/utils/utils.d.mts +65 -0
  176. package/dist/esm/internal/utils/utils.mjs +38 -0
  177. package/dist/esm/internal/utils/utils.mjs.map +1 -0
  178. package/dist/esm/internal/view.mjs +25 -39
  179. package/dist/esm/transactions/authenticator/account.mjs +12 -12
  180. package/dist/esm/transactions/authenticator/index.mjs +13 -13
  181. package/dist/esm/transactions/authenticator/transaction.mjs +13 -13
  182. package/dist/esm/transactions/index.mjs +43 -57
  183. package/dist/esm/transactions/instances/index.mjs +21 -21
  184. package/dist/esm/transactions/instances/moduleId.mjs +11 -11
  185. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +12 -12
  186. package/dist/esm/transactions/instances/rawTransaction.mjs +12 -12
  187. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  188. package/dist/esm/transactions/instances/signedTransaction.mjs +15 -15
  189. package/dist/esm/transactions/instances/simpleTransaction.mjs +12 -12
  190. package/dist/esm/transactions/instances/transactionPayload.mjs +11 -11
  191. package/dist/esm/transactions/management/accountSequenceNumber.mjs +45 -33
  192. package/dist/esm/transactions/management/index.mjs +40 -38
  193. package/dist/esm/transactions/management/transactionWorker.mjs +40 -38
  194. package/dist/esm/transactions/scriptComposer/index.mjs +24 -38
  195. package/dist/esm/transactions/transactionBuilder/helpers.mjs +11 -11
  196. package/dist/esm/transactions/transactionBuilder/index.mjs +23 -37
  197. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +14 -45
  198. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +17 -17
  199. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +23 -38
  200. package/dist/esm/transactions/typeTag/index.mjs +11 -11
  201. package/dist/esm/transactions/typeTag/parser.mjs +11 -11
  202. package/dist/esm/types/index.mjs +1 -1
  203. package/dist/esm/utils/helpers.mjs +1 -1
  204. package/dist/esm/utils/index.mjs +1 -1
  205. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  206. package/package.json +25 -24
  207. package/src/account/MultiKeyAccount.ts +3 -2
  208. package/src/api/general.ts +2 -2
  209. package/src/api/transaction.ts +30 -29
  210. package/src/internal/account.ts +202 -61
  211. package/src/internal/transactionSubmission.ts +4 -202
  212. package/src/internal/utils/index.ts +4 -0
  213. package/src/internal/utils/utils.ts +116 -0
  214. package/src/transactions/scriptComposer/index.ts +3 -1
  215. package/src/transactions/transactionBuilder/remoteAbi.ts +1 -1
  216. package/src/transactions/transactionBuilder/transactionBuilder.ts +7 -2
  217. package/dist/esm/chunk-CDJNQ7CS.mjs.map +0 -1
  218. package/dist/esm/chunk-D3IWXA33.mjs.map +0 -1
  219. package/dist/esm/chunk-MC4OOX6X.mjs.map +0 -1
  220. package/dist/esm/chunk-OOQS6BEP.mjs.map +0 -1
  221. package/dist/esm/chunk-YGFWUFZY.mjs.map +0 -1
  222. /package/dist/esm/{chunk-JJ6MU2DV.mjs.map → chunk-2FTF6J7F.mjs.map} +0 -0
  223. /package/dist/esm/{chunk-54XJAHWK.mjs.map → chunk-2HL7JEFC.mjs.map} +0 -0
  224. /package/dist/esm/{chunk-TZZZNGQI.mjs.map → chunk-2WBJAKBO.mjs.map} +0 -0
  225. /package/dist/esm/{chunk-3E2SXJXZ.mjs.map → chunk-3DAVHDK4.mjs.map} +0 -0
  226. /package/dist/esm/{chunk-F65QGYVD.mjs.map → chunk-3TUV6YMI.mjs.map} +0 -0
  227. /package/dist/esm/{chunk-KZFQOE4N.mjs.map → chunk-5ORUQZAR.mjs.map} +0 -0
  228. /package/dist/esm/{chunk-RTNVJKNX.mjs.map → chunk-62LC4PPC.mjs.map} +0 -0
  229. /package/dist/esm/{chunk-YD3KHXBD.mjs.map → chunk-6SNGKTWE.mjs.map} +0 -0
  230. /package/dist/esm/{chunk-2SIDNRJH.mjs.map → chunk-7F32C225.mjs.map} +0 -0
  231. /package/dist/esm/{chunk-TFDBSPIQ.mjs.map → chunk-7WW735TU.mjs.map} +0 -0
  232. /package/dist/esm/{chunk-SFF4FJUD.mjs.map → chunk-A33OBGVN.mjs.map} +0 -0
  233. /package/dist/esm/{chunk-J32AERDF.mjs.map → chunk-A7LYGPFL.mjs.map} +0 -0
  234. /package/dist/esm/{chunk-BADWWRLN.mjs.map → chunk-AGKEC2IM.mjs.map} +0 -0
  235. /package/dist/esm/{chunk-GUEJH55K.mjs.map → chunk-BU43ZFDJ.mjs.map} +0 -0
  236. /package/dist/esm/{chunk-PP2U5UMC.mjs.map → chunk-C7EEG6SW.mjs.map} +0 -0
  237. /package/dist/esm/{chunk-HTC3Q5JN.mjs.map → chunk-D4MW64RH.mjs.map} +0 -0
  238. /package/dist/esm/{chunk-YMHFUSKX.mjs.map → chunk-D6RXVCE3.mjs.map} +0 -0
  239. /package/dist/esm/{chunk-NFBLI3BS.mjs.map → chunk-DMFRIING.mjs.map} +0 -0
  240. /package/dist/esm/{chunk-CPZPXG7O.mjs.map → chunk-ECTX2FGD.mjs.map} +0 -0
  241. /package/dist/esm/{chunk-OVZOE4GS.mjs.map → chunk-G6R77JKO.mjs.map} +0 -0
  242. /package/dist/esm/{chunk-XHQMSKZP.mjs.map → chunk-G7BB6K4B.mjs.map} +0 -0
  243. /package/dist/esm/{chunk-XB4SVKZP.mjs.map → chunk-GCQK2S5Q.mjs.map} +0 -0
  244. /package/dist/esm/{chunk-2WTIMHGC.mjs.map → chunk-HBXBODME.mjs.map} +0 -0
  245. /package/dist/esm/{chunk-WSI6NVQD.mjs.map → chunk-HL337SEM.mjs.map} +0 -0
  246. /package/dist/esm/{chunk-V66UC6YI.mjs.map → chunk-HQDHSKVS.mjs.map} +0 -0
  247. /package/dist/esm/{chunk-ZATMRCFV.mjs.map → chunk-I5G7XFGT.mjs.map} +0 -0
  248. /package/dist/esm/{chunk-SW4ASQPY.mjs.map → chunk-ILTEOGFF.mjs.map} +0 -0
  249. /package/dist/esm/{chunk-RGHKUKOX.mjs.map → chunk-IPUAVRGL.mjs.map} +0 -0
  250. /package/dist/esm/{chunk-MLGROHE6.mjs.map → chunk-IQVHXOD3.mjs.map} +0 -0
  251. /package/dist/esm/{chunk-IEM26R5Q.mjs.map → chunk-JAZJE3OR.mjs.map} +0 -0
  252. /package/dist/esm/{chunk-VJ2Z7GO3.mjs.map → chunk-JEVGHYEP.mjs.map} +0 -0
  253. /package/dist/esm/{chunk-WPJUSJJQ.mjs.map → chunk-JFMFZ2IL.mjs.map} +0 -0
  254. /package/dist/esm/{chunk-ESGBNVCA.mjs.map → chunk-ORCQEMJL.mjs.map} +0 -0
  255. /package/dist/esm/{chunk-PYLTV3KI.mjs.map → chunk-QYNYDQE3.mjs.map} +0 -0
  256. /package/dist/esm/{chunk-F2EFNUWD.mjs.map → chunk-R45SPK6Q.mjs.map} +0 -0
  257. /package/dist/esm/{chunk-UKYATVYK.mjs.map → chunk-RCXGTN36.mjs.map} +0 -0
  258. /package/dist/esm/{chunk-6DJZITWL.mjs.map → chunk-SPI2HO3E.mjs.map} +0 -0
  259. /package/dist/esm/{chunk-BVBIBMAE.mjs.map → chunk-SRXIHVZE.mjs.map} +0 -0
  260. /package/dist/esm/{chunk-ZAPXD4FC.mjs.map → chunk-T4BFWV46.mjs.map} +0 -0
  261. /package/dist/esm/{chunk-ZZWD23YW.mjs.map → chunk-T573PCIR.mjs.map} +0 -0
  262. /package/dist/esm/{chunk-AEMQUDMU.mjs.map → chunk-TDLL7QX5.mjs.map} +0 -0
  263. /package/dist/esm/{chunk-HRUI6AWF.mjs.map → chunk-TFW6N66T.mjs.map} +0 -0
  264. /package/dist/esm/{chunk-LK4HGGAJ.mjs.map → chunk-TJDF4CXI.mjs.map} +0 -0
  265. /package/dist/esm/{chunk-U7K7AJMC.mjs.map → chunk-TL4Z4KHK.mjs.map} +0 -0
  266. /package/dist/esm/{chunk-IARAGRKO.mjs.map → chunk-UGFIWCJQ.mjs.map} +0 -0
  267. /package/dist/esm/{chunk-Y25NJOOO.mjs.map → chunk-UK7SPHIE.mjs.map} +0 -0
  268. /package/dist/esm/{chunk-MX2R6BBJ.mjs.map → chunk-UOHCJOXI.mjs.map} +0 -0
  269. /package/dist/esm/{chunk-S5JIXUS6.mjs.map → chunk-WHSS6I7T.mjs.map} +0 -0
  270. /package/dist/esm/{chunk-2ZX5PHCY.mjs.map → chunk-WLTQHGIJ.mjs.map} +0 -0
  271. /package/dist/esm/{chunk-MD4TZ4HA.mjs.map → chunk-WUM247HF.mjs.map} +0 -0
  272. /package/dist/esm/{chunk-IY2ASLSP.mjs.map → chunk-WXQUBQK4.mjs.map} +0 -0
  273. /package/dist/esm/{chunk-3T7G4OUL.mjs.map → chunk-X4N5BN3S.mjs.map} +0 -0
  274. /package/dist/esm/{chunk-TQLOZKH4.mjs.map → chunk-XIBOO3WF.mjs.map} +0 -0
  275. /package/dist/esm/{chunk-2JLHWA2G.mjs.map → chunk-Y3M32DIB.mjs.map} +0 -0
  276. /package/dist/esm/{chunk-IKEPH7D2.mjs.map → chunk-YK66QBML.mjs.map} +0 -0
  277. /package/dist/esm/{chunk-PITSYZA7.mjs.map → chunk-YT7V6AVJ.mjs.map} +0 -0
@@ -1,77 +1,77 @@
1
1
  import {
2
2
  Submit
3
- } from "../../chunk-ZAPXD4FC.mjs";
3
+ } from "../../chunk-T4BFWV46.mjs";
4
4
  import "../../chunk-ZWCTF3NQ.mjs";
5
- import "../../chunk-D3IWXA33.mjs";
5
+ import "../../chunk-HKQY5GXT.mjs";
6
6
  import "../../chunk-UIRAXHDH.mjs";
7
- import "../../chunk-7J37IHNP.mjs";
7
+ import "../../chunk-DGDZNHUJ.mjs";
8
8
  import "../../chunk-JXCZTOYC.mjs";
9
- import "../../chunk-MC4OOX6X.mjs";
10
- import "../../chunk-OOQS6BEP.mjs";
9
+ import "../../chunk-IJ7XCPP3.mjs";
10
+ import "../../chunk-6OFCIXWS.mjs";
11
11
  import "../../chunk-BMM72IIP.mjs";
12
12
  import "../../chunk-JQIRRM7G.mjs";
13
+ import "../../chunk-G3MHXDYA.mjs";
14
+ import "../../chunk-FRLS4GRM.mjs";
13
15
  import "../../chunk-BSCOVLWS.mjs";
14
16
  import "../../chunk-V3MBJJTL.mjs";
15
- import "../../chunk-YGFWUFZY.mjs";
16
- import "../../chunk-PITSYZA7.mjs";
17
- import "../../chunk-GUEJH55K.mjs";
18
- import "../../chunk-IKEPH7D2.mjs";
17
+ import "../../chunk-BU43ZFDJ.mjs";
18
+ import "../../chunk-YK66QBML.mjs";
19
19
  import "../../chunk-EPTUAWRA.mjs";
20
20
  import "../../chunk-GFPEB22G.mjs";
21
- import "../../chunk-KZFQOE4N.mjs";
22
- import "../../chunk-2WTIMHGC.mjs";
21
+ import "../../chunk-5ORUQZAR.mjs";
22
+ import "../../chunk-HBXBODME.mjs";
23
23
  import "../../chunk-AKXCFBYF.mjs";
24
- import "../../chunk-S5JIXUS6.mjs";
25
- import "../../chunk-AEMQUDMU.mjs";
26
- import "../../chunk-IARAGRKO.mjs";
27
- import "../../chunk-MD4TZ4HA.mjs";
28
- import "../../chunk-IORAMQ2Y.mjs";
24
+ import "../../chunk-WHSS6I7T.mjs";
25
+ import "../../chunk-TDLL7QX5.mjs";
26
+ import "../../chunk-UGFIWCJQ.mjs";
27
+ import "../../chunk-WUM247HF.mjs";
28
+ import "../../chunk-K5OCDM3W.mjs";
29
29
  import "../../chunk-56UCIGTO.mjs";
30
- import "../../chunk-SW4ASQPY.mjs";
31
- import "../../chunk-XHQMSKZP.mjs";
32
- import "../../chunk-RTNVJKNX.mjs";
30
+ import "../../chunk-ILTEOGFF.mjs";
31
+ import "../../chunk-G7BB6K4B.mjs";
32
+ import "../../chunk-62LC4PPC.mjs";
33
33
  import "../../chunk-F4VI7BNX.mjs";
34
34
  import "../../chunk-4NMDYPUD.mjs";
35
+ import "../../chunk-KW64NP2F.mjs";
35
36
  import "../../chunk-QJ6CGH7N.mjs";
36
- import "../../chunk-F2EFNUWD.mjs";
37
+ import "../../chunk-R45SPK6Q.mjs";
37
38
  import "../../chunk-EBFKT35C.mjs";
38
- import "../../chunk-UYVPNUH3.mjs";
39
- import "../../chunk-HTC3Q5JN.mjs";
40
- import "../../chunk-BADWWRLN.mjs";
41
- import "../../chunk-KW64NP2F.mjs";
42
39
  import "../../chunk-XX6C2QGI.mjs";
43
40
  import "../../chunk-UGKZQUGE.mjs";
44
41
  import "../../chunk-DDZGHA66.mjs";
45
- import "../../chunk-MYEYZ7PF.mjs";
46
42
  import "../../chunk-FMNMYKYH.mjs";
43
+ import "../../chunk-UYVPNUH3.mjs";
44
+ import "../../chunk-MYEYZ7PF.mjs";
47
45
  import "../../chunk-MFFBZ43D.mjs";
46
+ import "../../chunk-D4MW64RH.mjs";
47
+ import "../../chunk-AGKEC2IM.mjs";
48
48
  import "../../chunk-LJRNGZMY.mjs";
49
49
  import "../../chunk-E7FWVXGX.mjs";
50
50
  import "../../chunk-NECL5FCQ.mjs";
51
51
  import "../../chunk-4QMXOWHP.mjs";
52
52
  import "../../chunk-6I37A76G.mjs";
53
- import "../../chunk-TQLOZKH4.mjs";
53
+ import "../../chunk-XIBOO3WF.mjs";
54
54
  import "../../chunk-HEZ2ZYZA.mjs";
55
- import "../../chunk-F65QGYVD.mjs";
56
- import "../../chunk-NFBLI3BS.mjs";
57
- import "../../chunk-RGHKUKOX.mjs";
58
- import "../../chunk-CPZPXG7O.mjs";
59
- import "../../chunk-YD3KHXBD.mjs";
60
- import "../../chunk-ZZWD23YW.mjs";
55
+ import "../../chunk-3TUV6YMI.mjs";
56
+ import "../../chunk-DMFRIING.mjs";
57
+ import "../../chunk-IPUAVRGL.mjs";
58
+ import "../../chunk-ECTX2FGD.mjs";
59
+ import "../../chunk-6SNGKTWE.mjs";
60
+ import "../../chunk-T573PCIR.mjs";
61
61
  import "../../chunk-APM7OSLS.mjs";
62
62
  import "../../chunk-3IWV2Q3K.mjs";
63
- import "../../chunk-MX2R6BBJ.mjs";
64
- import "../../chunk-HRUI6AWF.mjs";
65
- import "../../chunk-YU65LNIC.mjs";
63
+ import "../../chunk-UOHCJOXI.mjs";
64
+ import "../../chunk-TFW6N66T.mjs";
66
65
  import "../../chunk-THWEBWUC.mjs";
67
66
  import "../../chunk-F7W7KS5C.mjs";
67
+ import "../../chunk-YU65LNIC.mjs";
68
68
  import "../../chunk-R4JTQQBX.mjs";
69
69
  import "../../chunk-KLUO6XPE.mjs";
70
70
  import "../../chunk-PKUXOBIV.mjs";
71
71
  import "../../chunk-BEYIOC2H.mjs";
72
72
  import "../../chunk-7ECCT6PK.mjs";
73
- import "../../chunk-XQFUKBY7.mjs";
74
73
  import "../../chunk-6T3V5LXK.mjs";
74
+ import "../../chunk-XQFUKBY7.mjs";
75
75
  import "../../chunk-G34CJDST.mjs";
76
76
  import "../../chunk-HGLO5LDS.mjs";
77
77
  import "../../chunk-MWXBQ6HR.mjs";
@@ -84,8 +84,8 @@ import "../../chunk-QSYWLSSN.mjs";
84
84
  import "../../chunk-6ASWESA2.mjs";
85
85
  import "../../chunk-Y3ENAKRC.mjs";
86
86
  import "../../chunk-G4NBRMZ2.mjs";
87
- import "../../chunk-4WPQQPUF.mjs";
88
87
  import "../../chunk-SQNS4SFV.mjs";
88
+ import "../../chunk-4WPQQPUF.mjs";
89
89
  import "../../chunk-NUT2VOX2.mjs";
90
90
  import "../../chunk-C7T6GW5P.mjs";
91
91
  import "../../chunk-BDM6FBUO.mjs";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  waitForIndexerOnVersion
3
- } from "../chunk-IY2ASLSP.mjs";
4
- import "../chunk-GUEJH55K.mjs";
5
- import "../chunk-IKEPH7D2.mjs";
3
+ } from "../chunk-WXQUBQK4.mjs";
4
+ import "../chunk-BU43ZFDJ.mjs";
5
+ import "../chunk-YK66QBML.mjs";
6
6
  import "../chunk-EPTUAWRA.mjs";
7
7
  import "../chunk-BEYIOC2H.mjs";
8
8
  import "../chunk-7ECCT6PK.mjs";
9
- import "../chunk-XQFUKBY7.mjs";
10
9
  import "../chunk-6T3V5LXK.mjs";
10
+ import "../chunk-XQFUKBY7.mjs";
11
11
  import "../chunk-G34CJDST.mjs";
12
12
  import "../chunk-HGLO5LDS.mjs";
13
13
  import "../chunk-MWXBQ6HR.mjs";
@@ -20,8 +20,8 @@ import "../chunk-QSYWLSSN.mjs";
20
20
  import "../chunk-6ASWESA2.mjs";
21
21
  import "../chunk-Y3ENAKRC.mjs";
22
22
  import "../chunk-G4NBRMZ2.mjs";
23
- import "../chunk-4WPQQPUF.mjs";
24
23
  import "../chunk-SQNS4SFV.mjs";
24
+ import "../chunk-4WPQQPUF.mjs";
25
25
  import "../chunk-NUT2VOX2.mjs";
26
26
  import "../chunk-C7T6GW5P.mjs";
27
27
  import "../chunk-BDM6FBUO.mjs";
@@ -21,8 +21,8 @@ import {
21
21
  FixedBytes
22
22
  } from "../chunk-Y3ENAKRC.mjs";
23
23
  import "../chunk-G4NBRMZ2.mjs";
24
- import "../chunk-4WPQQPUF.mjs";
25
24
  import "../chunk-SQNS4SFV.mjs";
25
+ import "../chunk-4WPQQPUF.mjs";
26
26
  import {
27
27
  Deserializer
28
28
  } from "../chunk-NUT2VOX2.mjs";
@@ -8,8 +8,8 @@ import {
8
8
  U8
9
9
  } from "../../chunk-QSYWLSSN.mjs";
10
10
  import "../../chunk-G4NBRMZ2.mjs";
11
- import "../../chunk-4WPQQPUF.mjs";
12
11
  import "../../chunk-SQNS4SFV.mjs";
12
+ import "../../chunk-4WPQQPUF.mjs";
13
13
  import "../../chunk-C7T6GW5P.mjs";
14
14
  import "../../chunk-BDM6FBUO.mjs";
15
15
  import "../../chunk-QPT4BSAB.mjs";
@@ -6,8 +6,8 @@ import {
6
6
  } from "../../chunk-KSK3XIGF.mjs";
7
7
  import "../../chunk-QSYWLSSN.mjs";
8
8
  import "../../chunk-G4NBRMZ2.mjs";
9
- import "../../chunk-4WPQQPUF.mjs";
10
9
  import "../../chunk-SQNS4SFV.mjs";
10
+ import "../../chunk-4WPQQPUF.mjs";
11
11
  import "../../chunk-NUT2VOX2.mjs";
12
12
  import "../../chunk-C7T6GW5P.mjs";
13
13
  import "../../chunk-BDM6FBUO.mjs";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  generateTransaction
3
- } from "./chunk-D3IWXA33.mjs";
3
+ } from "./chunk-HKQY5GXT.mjs";
4
4
  import {
5
5
  parseTypeTag
6
6
  } from "./chunk-BMM72IIP.mjs";
7
7
  import {
8
8
  queryIndexer
9
- } from "./chunk-IKEPH7D2.mjs";
9
+ } from "./chunk-YK66QBML.mjs";
10
10
  import {
11
11
  GetCurrentFungibleAssetBalances,
12
12
  GetFungibleAssetActivities,
@@ -94,4 +94,4 @@ export {
94
94
  getCurrentFungibleAssetBalances,
95
95
  transferFungibleAsset
96
96
  };
97
- //# sourceMappingURL=chunk-JJ6MU2DV.mjs.map
97
+ //# sourceMappingURL=chunk-2FTF6J7F.mjs.map
@@ -1,12 +1,6 @@
1
1
  import {
2
2
  AccountAbstraction
3
- } from "./chunk-WSI6NVQD.mjs";
4
- import {
5
- view
6
- } from "./chunk-ESGBNVCA.mjs";
7
- import {
8
- waitForIndexerOnVersion
9
- } from "./chunk-IY2ASLSP.mjs";
3
+ } from "./chunk-HL337SEM.mjs";
10
4
  import {
11
5
  deriveAccountFromPrivateKey,
12
6
  getAccountCoinsCount,
@@ -26,7 +20,13 @@ import {
26
20
  getResources,
27
21
  getTransactions,
28
22
  lookupOriginalAccountAddress
29
- } from "./chunk-YGFWUFZY.mjs";
23
+ } from "./chunk-SPVJXZL5.mjs";
24
+ import {
25
+ view
26
+ } from "./chunk-ORCQEMJL.mjs";
27
+ import {
28
+ waitForIndexerOnVersion
29
+ } from "./chunk-WXQUBQK4.mjs";
30
30
  import {
31
31
  createObjectAddress
32
32
  } from "./chunk-6I37A76G.mjs";
@@ -826,4 +826,4 @@ var Account = class {
826
826
  export {
827
827
  Account
828
828
  };
829
- //# sourceMappingURL=chunk-54XJAHWK.mjs.map
829
+ //# sourceMappingURL=chunk-2HL7JEFC.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  queryIndexer
3
- } from "./chunk-IKEPH7D2.mjs";
3
+ } from "./chunk-YK66QBML.mjs";
4
4
  import {
5
5
  GetDelegatedStakingActivities,
6
6
  GetNumberOfDelegators
@@ -50,4 +50,4 @@ export {
50
50
  getNumberOfDelegatorsForAllPools,
51
51
  getDelegatedStakingActivities
52
52
  };
53
- //# sourceMappingURL=chunk-TZZZNGQI.mjs.map
53
+ //# sourceMappingURL=chunk-2WBJAKBO.mjs.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TransactionWorker
3
- } from "./chunk-PYLTV3KI.mjs";
3
+ } from "./chunk-QYNYDQE3.mjs";
4
4
 
5
5
  // src/api/transactionSubmission/management.ts
6
6
  import EventEmitter from "eventemitter3";
@@ -192,4 +192,4 @@ var TransactionManagement = class extends EventEmitter {
192
192
  export {
193
193
  TransactionManagement
194
194
  };
195
- //# sourceMappingURL=chunk-3E2SXJXZ.mjs.map
195
+ //# sourceMappingURL=chunk-3DAVHDK4.mjs.map
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  AbstractMultiKey
3
- } from "./chunk-NFBLI3BS.mjs";
3
+ } from "./chunk-DMFRIING.mjs";
4
4
  import {
5
5
  Ed25519PublicKey,
6
6
  Ed25519Signature
7
- } from "./chunk-HRUI6AWF.mjs";
7
+ } from "./chunk-TFW6N66T.mjs";
8
8
  import {
9
9
  Signature
10
10
  } from "./chunk-KLUO6XPE.mjs";
@@ -302,4 +302,4 @@ export {
302
302
  MultiEd25519PublicKey,
303
303
  MultiEd25519Signature
304
304
  };
305
- //# sourceMappingURL=chunk-F65QGYVD.mjs.map
305
+ //# sourceMappingURL=chunk-3TUV6YMI.mjs.map
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-F4VI7BNX.mjs";
4
4
  import {
5
5
  AccountAuthenticatorMultiEd25519
6
- } from "./chunk-BADWWRLN.mjs";
6
+ } from "./chunk-AGKEC2IM.mjs";
7
7
  import {
8
8
  MultiEd25519Signature
9
- } from "./chunk-F65QGYVD.mjs";
9
+ } from "./chunk-3TUV6YMI.mjs";
10
10
  import {
11
11
  AccountAddress
12
12
  } from "./chunk-CXLXUSCG.mjs";
@@ -97,4 +97,4 @@ var MultiEd25519Account = class {
97
97
  export {
98
98
  MultiEd25519Account
99
99
  };
100
- //# sourceMappingURL=chunk-KZFQOE4N.mjs.map
100
+ //# sourceMappingURL=chunk-5ORUQZAR.mjs.map
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-F4VI7BNX.mjs";
4
4
  import {
5
5
  AccountAuthenticatorEd25519
6
- } from "./chunk-BADWWRLN.mjs";
6
+ } from "./chunk-AGKEC2IM.mjs";
7
7
  import {
8
8
  Ed25519PrivateKey
9
- } from "./chunk-HRUI6AWF.mjs";
9
+ } from "./chunk-TFW6N66T.mjs";
10
10
  import {
11
11
  AccountAddress
12
12
  } from "./chunk-CXLXUSCG.mjs";
@@ -125,4 +125,4 @@ var Ed25519Account = class _Ed25519Account {
125
125
  export {
126
126
  Ed25519Account
127
127
  };
128
- //# sourceMappingURL=chunk-RTNVJKNX.mjs.map
128
+ //# sourceMappingURL=chunk-62LC4PPC.mjs.map
@@ -22,7 +22,7 @@ import {
22
22
  } from "./chunk-JQIRRM7G.mjs";
23
23
  import {
24
24
  getModule
25
- } from "./chunk-YGFWUFZY.mjs";
25
+ } from "./chunk-FRLS4GRM.mjs";
26
26
  import {
27
27
  TypeTagAddress,
28
28
  TypeTagBool,
@@ -376,4 +376,4 @@ export {
376
376
  convertArgument,
377
377
  checkOrConvertArgument
378
378
  };
379
- //# sourceMappingURL=chunk-OOQS6BEP.mjs.map
379
+ //# sourceMappingURL=chunk-6OFCIXWS.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/transactions/transactionBuilder/remoteAbi.ts"],"sourcesContent":["// Copyright © Aptos Foundation\n// SPDX-License-Identifier: Apache-2.0\n\nimport { parseTypeTag } from \"../typeTag/parser\";\nimport {\n TypeTag,\n TypeTagAddress,\n TypeTagBool,\n TypeTagStruct,\n TypeTagU128,\n TypeTagU16,\n TypeTagU256,\n TypeTagU32,\n TypeTagU64,\n TypeTagU8,\n} from \"../typeTag\";\nimport { AptosConfig } from \"../../api/aptosConfig\";\nimport {\n EntryFunctionArgumentTypes,\n SimpleEntryFunctionArgumentTypes,\n EntryFunctionABI,\n ViewFunctionABI,\n FunctionABI,\n TypeArgument,\n} from \"../types\";\nimport { Bool, MoveOption, MoveString, MoveVector, U128, U16, U256, U32, U64, U8 } from \"../../bcs\";\nimport { AccountAddress } from \"../../core\";\nimport { getModule } from \"../../internal/utils\";\nimport {\n findFirstNonSignerArg,\n isBcsAddress,\n isBcsBool,\n isBcsString,\n isBcsU128,\n isBcsU16,\n isBcsU256,\n isBcsU32,\n isBcsU64,\n isBcsU8,\n isBool,\n isEncodedEntryFunctionArgument,\n isLargeNumber,\n isEmptyOption,\n isString,\n throwTypeMismatch,\n convertNumber,\n} from \"./helpers\";\nimport { CallArgument, MoveFunction } from \"../../types\";\n\nconst TEXT_ENCODER = new TextEncoder();\n\n/**\n * Convert type arguments to only type tags, allowing for string representations of type tags.\n *\n * @param typeArguments - An optional array of type arguments that may include string representations.\n * @returns An array of TypeTag objects derived from the provided type arguments.\n * @group Implementation\n * @category Transactions\n */\nexport function standardizeTypeTags(typeArguments?: Array<TypeArgument>): Array<TypeTag> {\n return (\n typeArguments?.map((typeArg: TypeArgument): TypeTag => {\n // Convert to TypeTag if it's a string representation\n if (isString(typeArg)) {\n return parseTypeTag(typeArg);\n }\n return typeArg;\n }) ?? []\n );\n}\n\n/**\n * Fetches the ABI of a specified function from the on-chain module ABI. This function allows you to access the details of a\n * specific function within a module.\n *\n * @param moduleAddress - The address of the module from which to fetch the function ABI.\n * @param moduleName - The name of the module containing the function.\n * @param functionName - The name of the function whose ABI is to be fetched.\n * @param aptosConfig - The configuration settings for Aptos.\n * @group Implementation\n * @category Transactions\n */\nexport async function fetchFunctionAbi(\n moduleAddress: string,\n moduleName: string,\n functionName: string,\n aptosConfig: AptosConfig,\n): Promise<MoveFunction | undefined> {\n // This fetch from the API is currently cached\n const module = await getModule({ aptosConfig, accountAddress: moduleAddress, moduleName });\n\n if (module.abi) {\n return module.abi.exposed_functions.find((func) => func.name === functionName);\n }\n\n return undefined;\n}\n\n/**\n * Fetches a function ABI from the on-chain module ABI. It doesn't validate whether it's a view or entry function.\n * @param moduleAddress\n * @param moduleName\n * @param functionName\n * @param aptosConfig\n */\nexport async function fetchMoveFunctionAbi(\n moduleAddress: string,\n moduleName: string,\n functionName: string,\n aptosConfig: AptosConfig,\n): Promise<FunctionABI> {\n const functionAbi = await fetchFunctionAbi(moduleAddress, moduleName, functionName, aptosConfig);\n if (!functionAbi) {\n throw new Error(`Could not find function ABI for '${moduleAddress}::${moduleName}::${functionName}'`);\n }\n const params: TypeTag[] = [];\n for (let i = 0; i < functionAbi.params.length; i += 1) {\n params.push(parseTypeTag(functionAbi.params[i], { allowGenerics: true }));\n }\n\n return {\n typeParameters: functionAbi.generic_type_params,\n parameters: params,\n };\n}\n\n/**\n * Fetches the ABI for an entry function from the specified module address.\n * This function validates if the ABI corresponds to an entry function and retrieves its parameters.\n *\n * @param moduleAddress - The address of the module containing the entry function.\n * @param moduleName - The name of the module containing the entry function.\n * @param functionName - The name of the entry function to fetch the ABI for.\n * @param aptosConfig - The configuration settings for Aptos.\n * @returns An object containing the number of signers, type parameters, and function parameters.\n * @throws Error if the ABI cannot be found or if the function is not an entry function.\n * @group Implementation\n * @category Transactions\n */\nexport async function fetchEntryFunctionAbi(\n moduleAddress: string,\n moduleName: string,\n functionName: string,\n aptosConfig: AptosConfig,\n): Promise<EntryFunctionABI> {\n const functionAbi = await fetchFunctionAbi(moduleAddress, moduleName, functionName, aptosConfig);\n\n // If there's no ABI, then the function is invalid\n if (!functionAbi) {\n throw new Error(`Could not find entry function ABI for '${moduleAddress}::${moduleName}::${functionName}'`);\n }\n\n // Non-entry functions also can't be used\n if (!functionAbi.is_entry) {\n throw new Error(`'${moduleAddress}::${moduleName}::${functionName}' is not an entry function`);\n }\n\n // Remove the signer arguments\n const numSigners = findFirstNonSignerArg(functionAbi);\n const params: TypeTag[] = [];\n for (let i = numSigners; i < functionAbi.params.length; i += 1) {\n params.push(parseTypeTag(functionAbi.params[i], { allowGenerics: true }));\n }\n\n return {\n signers: numSigners,\n typeParameters: functionAbi.generic_type_params,\n parameters: params,\n };\n}\n\n/**\n * Fetches the ABI for a view function from the specified module address.\n * This function ensures that the ABI is valid and retrieves the type parameters, parameters, and return types for the view function.\n *\n * @param moduleAddress - The address of the module containing the view function.\n * @param moduleName - The name of the module containing the view function.\n * @param functionName - The name of the view function for which to fetch the ABI.\n * @param aptosConfig - The configuration settings for Aptos.\n * @returns An object containing the type parameters, parameters, and return types of the view function.\n * @throws Error if the ABI cannot be found or if the function is not a view function.\n * @group Implementation\n * @category Transactions\n */\nexport async function fetchViewFunctionAbi(\n moduleAddress: string,\n moduleName: string,\n functionName: string,\n aptosConfig: AptosConfig,\n): Promise<ViewFunctionABI> {\n const functionAbi = await fetchFunctionAbi(moduleAddress, moduleName, functionName, aptosConfig);\n\n // If there's no ABI, then the function is invalid\n if (!functionAbi) {\n throw new Error(`Could not find view function ABI for '${moduleAddress}::${moduleName}::${functionName}'`);\n }\n\n // Non-view functions can't be used\n if (!functionAbi.is_view) {\n throw new Error(`'${moduleAddress}::${moduleName}::${functionName}' is not an view function`);\n }\n\n // Type tag parameters for the function\n const params: TypeTag[] = [];\n for (let i = 0; i < functionAbi.params.length; i += 1) {\n params.push(parseTypeTag(functionAbi.params[i], { allowGenerics: true }));\n }\n\n // The return types of the view function\n const returnTypes: TypeTag[] = [];\n for (let i = 0; i < functionAbi.return.length; i += 1) {\n returnTypes.push(parseTypeTag(functionAbi.return[i], { allowGenerics: true }));\n }\n\n return {\n typeParameters: functionAbi.generic_type_params,\n parameters: params,\n returnTypes,\n };\n}\n\n/**\n * Converts a entry function argument into CallArgument, if necessary.\n * This function checks the provided argument against the expected parameter type and converts it accordingly.\n *\n * @param functionName - The name of the function for which the argument is being converted.\n * @param functionAbi - The ABI (Application Binary Interface) of the function, which defines its parameters.\n * @param argument - The argument to be converted, which can be of various types. If the argument is already\n * CallArgument returned from TransactionComposer it would be returned immediately.\n * @param position - The index of the argument in the function's parameter list.\n * @param genericTypeParams - An array of type tags for any generic type parameters.\n */\nexport function convertCallArgument(\n argument: CallArgument | EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes,\n functionName: string,\n functionAbi: FunctionABI,\n position: number,\n genericTypeParams: Array<TypeTag>,\n): CallArgument {\n if (argument instanceof CallArgument) {\n return argument;\n }\n return CallArgument.newBytes(\n convertArgument(functionName, functionAbi, argument, position, genericTypeParams).bcsToBytes(),\n );\n}\n\n/**\n * Converts a non-BCS encoded argument into BCS encoded, if necessary.\n * This function checks the provided argument against the expected parameter type and converts it accordingly.\n *\n * @param functionName - The name of the function for which the argument is being converted.\n * @param functionAbi - The ABI (Application Binary Interface) of the function, which defines its parameters.\n * @param arg - The argument to be converted, which can be of various types.\n * @param position - The index of the argument in the function's parameter list.\n * @param genericTypeParams - An array of type tags for any generic type parameters.\n * @group Implementation\n * @category Transactions\n */\nexport function convertArgument(\n functionName: string,\n functionAbi: FunctionABI,\n arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes,\n position: number,\n genericTypeParams: Array<TypeTag>,\n) {\n // Ensure not too many arguments\n if (position >= functionAbi.parameters.length) {\n throw new Error(`Too many arguments for '${functionName}', expected ${functionAbi.parameters.length}`);\n }\n\n const param = functionAbi.parameters[position];\n return checkOrConvertArgument(arg, param, position, genericTypeParams);\n}\n\n/**\n * Checks if the provided argument is BCS encoded and converts it if necessary, ensuring type compatibility with the ABI.\n * This function helps in validating and converting arguments for entry functions based on their expected types.\n *\n * @param arg - The argument to check or convert, which can be either a simple or entry function argument type.\n * @param param - The expected type tag for the argument.\n * @param position - The position of the argument in the function call.\n * @param genericTypeParams - An array of generic type parameters that may be used for conversion.\n * @group Implementation\n * @category Transactions\n */\nexport function checkOrConvertArgument(\n arg: SimpleEntryFunctionArgumentTypes | EntryFunctionArgumentTypes,\n param: TypeTag,\n position: number,\n genericTypeParams: Array<TypeTag>,\n) {\n // If the argument is bcs encoded, we can just use it directly\n if (isEncodedEntryFunctionArgument(arg)) {\n // Ensure the type matches the ABI\n\n /**\n * Checks the type of the provided argument against the expected type.\n * This function helps validate that the argument conforms to the specified type requirements.\n *\n * @param typeArgs - The expected type arguments.\n * @param arg - The argument to be checked.\n * @param position - The position of the argument in the context of the check.\n * @group Implementation\n * @category Transactions\n */\n checkType(param, arg, position);\n return arg;\n }\n\n // If it is not BCS encoded, we will need to convert it with the ABI\n return parseArg(arg, param, position, genericTypeParams);\n}\n\n/**\n * Parses a non-BCS encoded argument into a BCS encoded argument recursively.\n * This function helps convert various types of input arguments into their corresponding BCS encoded formats based on the\n * specified parameter type.\n *\n * @param arg - The argument to be parsed, which can be of various types.\n * @param param - The type tag that defines the expected type of the argument.\n * @param position - The position of the argument in the function call, used for error reporting.\n * @param genericTypeParams - An array of type tags for generic type parameters, used when the parameter type is generic.\n * @group Implementation\n * @category Transactions\n */\nfunction parseArg(\n arg: SimpleEntryFunctionArgumentTypes,\n param: TypeTag,\n position: number,\n genericTypeParams: Array<TypeTag>,\n): EntryFunctionArgumentTypes {\n if (param.isBool()) {\n if (isBool(arg)) {\n return new Bool(arg);\n }\n if (isString(arg)) {\n if (arg === \"true\") return new Bool(true);\n if (arg === \"false\") return new Bool(false);\n }\n\n /**\n * Throws a type mismatch error for the specified move option.\n *\n * @param moveOption - The name of the move option that caused the type mismatch.\n * @param position - The position where the error occurred.\n * @group Implementation\n * @category Transactions\n */\n throwTypeMismatch(\"boolean\", position);\n }\n // TODO: support uint8array?\n if (param.isAddress()) {\n if (isString(arg)) {\n return AccountAddress.fromString(arg);\n }\n throwTypeMismatch(\"string | AccountAddress\", position);\n }\n if (param.isU8()) {\n const num = convertNumber(arg);\n if (num !== undefined) {\n return new U8(num);\n }\n throwTypeMismatch(\"number | string\", position);\n }\n if (param.isU16()) {\n const num = convertNumber(arg);\n if (num !== undefined) {\n return new U16(num);\n }\n throwTypeMismatch(\"number | string\", position);\n }\n if (param.isU32()) {\n const num = convertNumber(arg);\n if (num !== undefined) {\n return new U32(num);\n }\n throwTypeMismatch(\"number | string\", position);\n }\n if (param.isU64()) {\n if (isLargeNumber(arg)) {\n return new U64(BigInt(arg));\n }\n throwTypeMismatch(\"bigint | number | string\", position);\n }\n if (param.isU128()) {\n if (isLargeNumber(arg)) {\n return new U128(BigInt(arg));\n }\n throwTypeMismatch(\"bigint | number | string\", position);\n }\n if (param.isU256()) {\n if (isLargeNumber(arg)) {\n return new U256(BigInt(arg));\n }\n throwTypeMismatch(\"bigint | number | string\", position);\n }\n\n // Generic needs to use the subtype\n if (param.isGeneric()) {\n const genericIndex = param.value;\n if (genericIndex < 0 || genericIndex >= genericTypeParams.length) {\n throw new Error(`Generic argument ${param.toString()} is invalid for argument ${position}`);\n }\n\n return checkOrConvertArgument(arg, genericTypeParams[genericIndex], position, genericTypeParams);\n }\n\n // We have to special case some vectors for Vector<u8>\n if (param.isVector()) {\n // Check special case for Vector<u8>\n if (param.value.isU8()) {\n // We don't allow vector<u8>, but we convert strings to UTF8 Uint8Array\n // This is legacy behavior from the original SDK\n if (isString(arg)) {\n return MoveVector.U8(TEXT_ENCODER.encode(arg));\n }\n if (arg instanceof Uint8Array) {\n return MoveVector.U8(arg);\n }\n if (arg instanceof ArrayBuffer) {\n return MoveVector.U8(new Uint8Array(arg));\n }\n }\n\n if (isString(arg)) {\n // In a web env, arguments are passing as strings\n if (arg.startsWith(\"[\")) {\n return checkOrConvertArgument(JSON.parse(arg), param, position, genericTypeParams);\n }\n }\n\n // TODO: Support Uint16Array, Uint32Array, BigUint64Array?\n\n if (Array.isArray(arg)) {\n return new MoveVector(arg.map((item) => checkOrConvertArgument(item, param.value, position, genericTypeParams)));\n }\n\n throw new Error(`Type mismatch for argument ${position}, type '${param.toString()}'`);\n }\n\n // Handle structs as they're more complex\n if (param.isStruct()) {\n if (param.isString()) {\n if (isString(arg)) {\n return new MoveString(arg);\n }\n throwTypeMismatch(\"string\", position);\n }\n if (param.isObject()) {\n // The inner type of Object doesn't matter, since it's just syntactic sugar\n if (isString(arg)) {\n return AccountAddress.fromString(arg);\n }\n throwTypeMismatch(\"string | AccountAddress\", position);\n }\n\n if (param.isOption()) {\n if (isEmptyOption(arg)) {\n // Here we attempt to reconstruct the underlying type\n // Note, for some reason the `isBool` etc. does not work with the compiler\n const innerParam = param.value.typeArgs[0];\n if (innerParam instanceof TypeTagBool) {\n return new MoveOption<Bool>(null);\n }\n if (innerParam instanceof TypeTagAddress) {\n return new MoveOption<AccountAddress>(null);\n }\n if (innerParam instanceof TypeTagU8) {\n return new MoveOption<U8>(null);\n }\n if (innerParam instanceof TypeTagU16) {\n return new MoveOption<U16>(null);\n }\n if (innerParam instanceof TypeTagU32) {\n return new MoveOption<U32>(null);\n }\n if (innerParam instanceof TypeTagU64) {\n return new MoveOption<U64>(null);\n }\n if (innerParam instanceof TypeTagU128) {\n return new MoveOption<U128>(null);\n }\n if (innerParam instanceof TypeTagU256) {\n return new MoveOption<U256>(null);\n }\n\n // In all other cases, we will use a placeholder, it doesn't actually matter what the type is, but it will be obvious\n // Note: This is a placeholder U8 type, and does not match the actual type, as that can't be dynamically grabbed\n return new MoveOption<MoveString>(null);\n }\n\n return new MoveOption(checkOrConvertArgument(arg, param.value.typeArgs[0], position, genericTypeParams));\n }\n\n throw new Error(`Unsupported struct input type for argument ${position}, type '${param.toString()}'`);\n }\n\n throw new Error(`Type mismatch for argument ${position}, type '${param.toString()}'`);\n}\n\n/**\n * Checks that the type of the BCS encoded argument matches the ABI\n * @param param\n * @param arg\n * @param position\n * @group Implementation\n * @category Transactions\n */\nfunction checkType(param: TypeTag, arg: EntryFunctionArgumentTypes, position: number) {\n if (param.isBool()) {\n if (isBcsBool(arg)) {\n return;\n }\n throwTypeMismatch(\"Bool\", position);\n }\n if (param.isAddress()) {\n if (isBcsAddress(arg)) {\n return;\n }\n throwTypeMismatch(\"AccountAddress\", position);\n }\n if (param.isU8()) {\n if (isBcsU8(arg)) {\n return;\n }\n throwTypeMismatch(\"U8\", position);\n }\n if (param.isU16()) {\n if (isBcsU16(arg)) {\n return;\n }\n throwTypeMismatch(\"U16\", position);\n }\n if (param.isU32()) {\n if (isBcsU32(arg)) {\n return;\n }\n throwTypeMismatch(\"U32\", position);\n }\n if (param.isU64()) {\n if (isBcsU64(arg)) {\n return;\n }\n throwTypeMismatch(\"U64\", position);\n }\n if (param.isU128()) {\n if (isBcsU128(arg)) {\n return;\n }\n throwTypeMismatch(\"U128\", position);\n }\n if (param.isU256()) {\n if (isBcsU256(arg)) {\n return;\n }\n throwTypeMismatch(\"U256\", position);\n }\n if (param.isVector()) {\n if (arg instanceof MoveVector) {\n // If there's anything in it, check that the inner types match\n // Note that since it's typed, the first item should be the same as the rest\n if (arg.values.length > 0) {\n checkType(param.value, arg.values[0], position);\n }\n\n return;\n }\n throwTypeMismatch(\"MoveVector\", position);\n }\n\n // Handle structs as they're more complex\n if (param instanceof TypeTagStruct) {\n if (param.isString()) {\n if (isBcsString(arg)) {\n return;\n }\n throwTypeMismatch(\"MoveString\", position);\n }\n if (param.isObject()) {\n if (isBcsAddress(arg)) {\n return;\n }\n throwTypeMismatch(\"AccountAddress\", position);\n }\n if (param.isOption()) {\n if (arg instanceof MoveOption) {\n // If there's a value, we can check the inner type (otherwise it doesn't really matter)\n if (arg.value !== undefined) {\n checkType(param.value.typeArgs[0], arg.value, position);\n }\n return;\n }\n throwTypeMismatch(\"MoveOption\", position);\n }\n }\n\n throw new Error(`Type mismatch for argument ${position}, expected '${param.toString()}'`);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA,IAAM,eAAe,IAAI,YAAY;AAU9B,SAAS,oBAAoB,eAAqD;AACvF,SACE,eAAe,IAAI,CAAC,YAAmC;AAErD,QAAI,SAAS,OAAO,GAAG;AACrB,aAAO,aAAa,OAAO;AAAA,IAC7B;AACA,WAAO;AAAA,EACT,CAAC,KAAK,CAAC;AAEX;AAaA,eAAsB,iBACpB,eACA,YACA,cACA,aACmC;AAEnC,QAAM,SAAS,MAAM,UAAU,EAAE,aAAa,gBAAgB,eAAe,WAAW,CAAC;AAEzF,MAAI,OAAO,KAAK;AACd,WAAO,OAAO,IAAI,kBAAkB,KAAK,CAAC,SAAS,KAAK,SAAS,YAAY;AAAA,EAC/E;AAEA,SAAO;AACT;AASA,eAAsB,qBACpB,eACA,YACA,cACA,aACsB;AACtB,QAAM,cAAc,MAAM,iBAAiB,eAAe,YAAY,cAAc,WAAW;AAC/F,MAAI,CAAC,aAAa;AAChB,UAAM,IAAI,MAAM,oCAAoC,aAAa,KAAK,UAAU,KAAK,YAAY,GAAG;AAAA,EACtG;AACA,QAAM,SAAoB,CAAC;AAC3B,WAAS,IAAI,GAAG,IAAI,YAAY,OAAO,QAAQ,KAAK,GAAG;AACrD,WAAO,KAAK,aAAa,YAAY,OAAO,CA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AAG,IAAI,OAAO,QAAQ;AAAA,QACxD;AACA;AAAA,MACF;AACA,wBAAkB,cAAc,QAAQ;AAAA,IAC1C;AAAA,EACF;AAEA,QAAM,IAAI,MAAM,8BAA8B,QAAQ,eAAe,MAAM,SAAS,CAAC,GAAG;AAC1F;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  KeylessPublicKey
3
- } from "./chunk-ZZWD23YW.mjs";
3
+ } from "./chunk-T573PCIR.mjs";
4
4
  import {
5
5
  AccountPublicKey
6
6
  } from "./chunk-R4JTQQBX.mjs";
@@ -88,4 +88,4 @@ var FederatedKeylessPublicKey = class _FederatedKeylessPublicKey extends Account
88
88
  export {
89
89
  FederatedKeylessPublicKey
90
90
  };
91
- //# sourceMappingURL=chunk-YD3KHXBD.mjs.map
91
+ //# sourceMappingURL=chunk-6SNGKTWE.mjs.map
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  generateTransaction
3
- } from "./chunk-D3IWXA33.mjs";
3
+ } from "./chunk-HKQY5GXT.mjs";
4
4
  import {
5
5
  AptosScriptComposer
6
- } from "./chunk-7J37IHNP.mjs";
6
+ } from "./chunk-DGDZNHUJ.mjs";
7
7
  import {
8
8
  generateRawTransaction
9
- } from "./chunk-MC4OOX6X.mjs";
9
+ } from "./chunk-IJ7XCPP3.mjs";
10
10
  import {
11
11
  SimpleTransaction
12
12
  } from "./chunk-EBFKT35C.mjs";
@@ -216,4 +216,4 @@ var Build = class {
216
216
  export {
217
217
  Build
218
218
  };
219
- //# sourceMappingURL=chunk-2SIDNRJH.mjs.map
219
+ //# sourceMappingURL=chunk-7F32C225.mjs.map
@@ -3,10 +3,10 @@ import {
3
3
  getFungibleAssetActivities,
4
4
  getFungibleAssetMetadata,
5
5
  transferFungibleAsset
6
- } from "./chunk-JJ6MU2DV.mjs";
6
+ } from "./chunk-2FTF6J7F.mjs";
7
7
  import {
8
8
  waitForIndexerOnVersion
9
- } from "./chunk-IY2ASLSP.mjs";
9
+ } from "./chunk-WXQUBQK4.mjs";
10
10
  import {
11
11
  AccountAddress
12
12
  } from "./chunk-CXLXUSCG.mjs";
@@ -273,4 +273,4 @@ var FungibleAsset = class {
273
273
  export {
274
274
  FungibleAsset
275
275
  };
276
- //# sourceMappingURL=chunk-TFDBSPIQ.mjs.map
276
+ //# sourceMappingURL=chunk-7WW735TU.mjs.map
@@ -23,10 +23,10 @@ import {
23
23
  unfreezeDigitalAssetTransferTransaction,
24
24
  updateDigitalAssetPropertyTransaction,
25
25
  updateDigitalAssetTypedPropertyTransaction
26
- } from "./chunk-PP2U5UMC.mjs";
26
+ } from "./chunk-C7EEG6SW.mjs";
27
27
  import {
28
28
  waitForIndexerOnVersion
29
- } from "./chunk-IY2ASLSP.mjs";
29
+ } from "./chunk-WXQUBQK4.mjs";
30
30
  import {
31
31
  AccountAddress
32
32
  } from "./chunk-CXLXUSCG.mjs";
@@ -1011,4 +1011,4 @@ var DigitalAsset = class {
1011
1011
  export {
1012
1012
  DigitalAsset
1013
1013
  };
1014
- //# sourceMappingURL=chunk-SFF4FJUD.mjs.map
1014
+ //# sourceMappingURL=chunk-A33OBGVN.mjs.map
@@ -3,10 +3,10 @@ import {
3
3
  getAccountEventsByEventType,
4
4
  getEvents,
5
5
  getModuleEventsByEventType
6
- } from "./chunk-2JLHWA2G.mjs";
6
+ } from "./chunk-Y3M32DIB.mjs";
7
7
  import {
8
8
  waitForIndexerOnVersion
9
- } from "./chunk-IY2ASLSP.mjs";
9
+ } from "./chunk-WXQUBQK4.mjs";
10
10
 
11
11
  // src/api/event.ts
12
12
  var Event = class {
@@ -205,4 +205,4 @@ var Event = class {
205
205
  export {
206
206
  Event
207
207
  };
208
- //# sourceMappingURL=chunk-J32AERDF.mjs.map
208
+ //# sourceMappingURL=chunk-A7LYGPFL.mjs.map
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  MultiEd25519PublicKey,
3
3
  MultiEd25519Signature
4
- } from "./chunk-F65QGYVD.mjs";
4
+ } from "./chunk-3TUV6YMI.mjs";
5
5
  import {
6
6
  MultiKey,
7
7
  MultiKeySignature
8
- } from "./chunk-NFBLI3BS.mjs";
8
+ } from "./chunk-DMFRIING.mjs";
9
9
  import {
10
10
  AnyPublicKey,
11
11
  AnySignature
12
- } from "./chunk-RGHKUKOX.mjs";
12
+ } from "./chunk-IPUAVRGL.mjs";
13
13
  import {
14
14
  Ed25519PublicKey,
15
15
  Ed25519Signature
16
- } from "./chunk-HRUI6AWF.mjs";
16
+ } from "./chunk-TFW6N66T.mjs";
17
17
  import {
18
18
  getFunctionParts,
19
19
  isValidFunctionInfo
@@ -247,4 +247,4 @@ export {
247
247
  AccountAuthenticatorNoAccountAuthenticator,
248
248
  AccountAuthenticatorAbstraction
249
249
  };
250
- //# sourceMappingURL=chunk-BADWWRLN.mjs.map
250
+ //# sourceMappingURL=chunk-AGKEC2IM.mjs.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getIndexerLastSuccessVersion,
3
3
  getProcessorStatus
4
- } from "./chunk-IKEPH7D2.mjs";
4
+ } from "./chunk-YK66QBML.mjs";
5
5
  import {
6
6
  memoizeAsync
7
7
  } from "./chunk-BEYIOC2H.mjs";
@@ -278,4 +278,4 @@ export {
278
278
  getBlockByVersion,
279
279
  getBlockByHeight
280
280
  };
281
- //# sourceMappingURL=chunk-GUEJH55K.mjs.map
281
+ //# sourceMappingURL=chunk-BU43ZFDJ.mjs.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  generateTransaction
3
- } from "./chunk-D3IWXA33.mjs";
3
+ } from "./chunk-HKQY5GXT.mjs";
4
4
  import {
5
5
  checkOrConvertArgument
6
- } from "./chunk-OOQS6BEP.mjs";
6
+ } from "./chunk-6OFCIXWS.mjs";
7
7
  import {
8
8
  parseTypeTag
9
9
  } from "./chunk-BMM72IIP.mjs";
10
10
  import {
11
11
  queryIndexer
12
- } from "./chunk-IKEPH7D2.mjs";
12
+ } from "./chunk-YK66QBML.mjs";
13
13
  import {
14
14
  GetCollectionData,
15
15
  GetCurrentTokenOwnership,
@@ -686,4 +686,4 @@ export {
686
686
  addDigitalAssetTypedPropertyTransaction,
687
687
  updateDigitalAssetTypedPropertyTransaction
688
688
  };
689
- //# sourceMappingURL=chunk-PP2U5UMC.mjs.map
689
+ //# sourceMappingURL=chunk-C7EEG6SW.mjs.map
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  AccountAuthenticator
3
- } from "./chunk-BADWWRLN.mjs";
3
+ } from "./chunk-AGKEC2IM.mjs";
4
4
  import {
5
5
  MultiEd25519PublicKey,
6
6
  MultiEd25519Signature
7
- } from "./chunk-F65QGYVD.mjs";
7
+ } from "./chunk-3TUV6YMI.mjs";
8
8
  import {
9
9
  Ed25519PublicKey,
10
10
  Ed25519Signature
11
- } from "./chunk-HRUI6AWF.mjs";
11
+ } from "./chunk-TFW6N66T.mjs";
12
12
  import {
13
13
  AccountAddress
14
14
  } from "./chunk-CXLXUSCG.mjs";
@@ -185,4 +185,4 @@ export {
185
185
  TransactionAuthenticatorFeePayer,
186
186
  TransactionAuthenticatorSingleSender
187
187
  };
188
- //# sourceMappingURL=chunk-HTC3Q5JN.mjs.map
188
+ //# sourceMappingURL=chunk-D4MW64RH.mjs.map
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getObjectDataByObjectAddress
3
- } from "./chunk-XB4SVKZP.mjs";
3
+ } from "./chunk-GCQK2S5Q.mjs";
4
4
  import {
5
5
  waitForIndexerOnVersion
6
- } from "./chunk-IY2ASLSP.mjs";
6
+ } from "./chunk-WXQUBQK4.mjs";
7
7
 
8
8
  // src/api/object.ts
9
9
  var AptosObject = class {
@@ -83,4 +83,4 @@ var AptosObject = class {
83
83
  export {
84
84
  AptosObject
85
85
  };
86
- //# sourceMappingURL=chunk-YMHFUSKX.mjs.map
86
+ //# sourceMappingURL=chunk-D6RXVCE3.mjs.map
@@ -2,7 +2,7 @@ import {
2
2
  convertCallArgument,
3
3
  fetchMoveFunctionAbi,
4
4
  standardizeTypeTags
5
- } from "./chunk-OOQS6BEP.mjs";
5
+ } from "./chunk-6OFCIXWS.mjs";
6
6
  import {
7
7
  getFunctionParts
8
8
  } from "./chunk-RQS33JAS.mjs";
@@ -40,7 +40,9 @@ var AptosScriptComposer = class _AptosScriptComposer {
40
40
  const nodeUrl = this.config.getRequestUrl("Fullnode" /* FULLNODE */);
41
41
  await this.builder.load_module(nodeUrl, `${moduleAddress}::${moduleName}`);
42
42
  if (input.typeArguments !== void 0) {
43
- await Promise.all(input.typeArguments.map((typeTag) => this.builder.load_type_tag(nodeUrl, typeTag.toString())));
43
+ for (const typeArgument of input.typeArguments) {
44
+ await this.builder.load_type_tag(nodeUrl, typeArgument.toString());
45
+ }
44
46
  }
45
47
  const typeArguments = standardizeTypeTags(input.typeArguments);
46
48
  const functionAbi = await fetchMoveFunctionAbi(moduleAddress, moduleName, functionName, this.config);
@@ -67,4 +69,4 @@ var AptosScriptComposer = class _AptosScriptComposer {
67
69
  export {
68
70
  AptosScriptComposer
69
71
  };
70
- //# sourceMappingURL=chunk-7J37IHNP.mjs.map
72
+ //# sourceMappingURL=chunk-DGDZNHUJ.mjs.map