@aptos-labs/ts-sdk 1.0.0 → 1.2.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 (350) hide show
  1. package/README.md +3 -3
  2. package/dist/browser/index.d.ts +516 -219
  3. package/dist/browser/index.global.js +53 -29
  4. package/dist/browser/index.global.js.map +1 -1
  5. package/dist/common/index.d.ts +516 -219
  6. package/dist/common/index.js +24 -24
  7. package/dist/common/index.js.map +1 -1
  8. package/dist/esm/api/account.mjs +1 -1
  9. package/dist/esm/api/ans.d.mts +9 -9
  10. package/dist/esm/api/ans.mjs +1 -1
  11. package/dist/esm/api/aptos.d.mts +4 -11
  12. package/dist/esm/api/aptos.mjs +1 -1
  13. package/dist/esm/api/aptosConfig.mjs +1 -1
  14. package/dist/esm/api/coin.d.mts +3 -3
  15. package/dist/esm/api/coin.mjs +1 -1
  16. package/dist/esm/api/digitalAsset.d.mts +300 -76
  17. package/dist/esm/api/digitalAsset.mjs +1 -1
  18. package/dist/esm/api/event.mjs +1 -1
  19. package/dist/esm/api/faucet.mjs +1 -1
  20. package/dist/esm/api/fungibleAsset.d.mts +3 -3
  21. package/dist/esm/api/fungibleAsset.mjs +1 -1
  22. package/dist/esm/api/general.d.mts +1 -1
  23. package/dist/esm/api/general.mjs +1 -1
  24. package/dist/esm/api/index.d.mts +0 -2
  25. package/dist/esm/api/index.mjs +1 -1
  26. package/dist/esm/api/staking.mjs +1 -1
  27. package/dist/esm/api/transaction.d.mts +118 -13
  28. package/dist/esm/api/transaction.mjs +1 -1
  29. package/dist/esm/api/transactionSubmission/build.d.mts +25 -4
  30. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  31. package/dist/esm/api/transactionSubmission/helpers.d.mts +4 -0
  32. package/dist/esm/api/transactionSubmission/helpers.mjs +2 -0
  33. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  34. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  35. package/dist/esm/api/transactionSubmission/simulate.d.mts +23 -2
  36. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  37. package/dist/esm/api/transactionSubmission/submit.d.mts +21 -2
  38. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  39. package/dist/esm/api/utils.d.mts +1 -1
  40. package/dist/esm/api/utils.mjs +1 -1
  41. package/dist/esm/bcs/consts.mjs +1 -1
  42. package/dist/esm/bcs/deserializer.d.mts +1 -1
  43. package/dist/esm/bcs/deserializer.mjs +1 -1
  44. package/dist/esm/bcs/index.mjs +1 -1
  45. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  46. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  47. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  48. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  49. package/dist/esm/bcs/serializer.mjs +1 -1
  50. package/dist/esm/{chunk-NMFS5KAE.mjs → chunk-3R3RC6HA.mjs} +2 -2
  51. package/dist/esm/{chunk-KVJ2KGMW.mjs → chunk-3TCHSIX5.mjs} +2 -2
  52. package/dist/esm/{chunk-UR5E2UDO.mjs → chunk-47UUK4Y5.mjs} +2 -2
  53. package/dist/esm/{chunk-3RMXGSHK.mjs → chunk-4DI53MOX.mjs} +2 -2
  54. package/dist/esm/{chunk-6DYNAFAP.mjs → chunk-4SUSQ6FW.mjs} +2 -2
  55. package/dist/esm/chunk-4TMEKWN2.mjs +2 -0
  56. package/dist/esm/chunk-4TMEKWN2.mjs.map +1 -0
  57. package/dist/esm/chunk-6EMN3BOV.mjs +2 -0
  58. package/dist/esm/chunk-6EMN3BOV.mjs.map +1 -0
  59. package/dist/esm/{chunk-IU5JZNH4.mjs → chunk-6GSEQAP3.mjs} +2 -2
  60. package/dist/esm/{chunk-32A35CPU.mjs → chunk-6P75FCI4.mjs} +2 -2
  61. package/dist/esm/{chunk-32A35CPU.mjs.map → chunk-6P75FCI4.mjs.map} +1 -1
  62. package/dist/esm/chunk-6ZC3SZE6.mjs +2 -0
  63. package/dist/esm/{chunk-W4JEP5GW.mjs.map → chunk-6ZC3SZE6.mjs.map} +1 -1
  64. package/dist/esm/{chunk-BDTDWLGO.mjs → chunk-7QI27CQO.mjs} +2 -2
  65. package/dist/esm/{chunk-5HZKDT5C.mjs → chunk-7SMTJUHH.mjs} +2 -2
  66. package/dist/esm/chunk-7YRPYQ7C.mjs +2 -0
  67. package/dist/esm/chunk-7YRPYQ7C.mjs.map +1 -0
  68. package/dist/esm/{chunk-GQI3HWOB.mjs → chunk-7YT7GFC2.mjs} +2 -2
  69. package/dist/esm/chunk-AEGZ42XG.mjs +2 -0
  70. package/dist/esm/chunk-AEGZ42XG.mjs.map +1 -0
  71. package/dist/esm/{chunk-2AMFCGJ3.mjs → chunk-AWEUIMRQ.mjs} +2 -2
  72. package/dist/esm/chunk-AWEUIMRQ.mjs.map +1 -0
  73. package/dist/esm/{chunk-5SRMD5C6.mjs → chunk-B5DL5P23.mjs} +2 -2
  74. package/dist/esm/{chunk-OXO3Z2MF.mjs → chunk-BCTD22UJ.mjs} +2 -2
  75. package/dist/esm/{chunk-MNFGMNYS.mjs → chunk-CFOIMAJF.mjs} +2 -2
  76. package/dist/esm/chunk-CFOIMAJF.mjs.map +1 -0
  77. package/dist/esm/{chunk-7QJYTQSU.mjs → chunk-D3U253BW.mjs} +2 -2
  78. package/dist/esm/{chunk-XKINEFAA.mjs → chunk-DIXTONIO.mjs} +2 -2
  79. package/dist/esm/chunk-DIXTONIO.mjs.map +1 -0
  80. package/dist/esm/{chunk-X7QBDRQR.mjs → chunk-DV6TMIRK.mjs} +2 -2
  81. package/dist/esm/{chunk-X7QBDRQR.mjs.map → chunk-DV6TMIRK.mjs.map} +1 -1
  82. package/dist/esm/{chunk-ELWWME6B.mjs → chunk-EX2EBRNH.mjs} +2 -2
  83. package/dist/esm/chunk-EX2EBRNH.mjs.map +1 -0
  84. package/dist/esm/{chunk-OWP2MKTX.mjs → chunk-EZGQODGD.mjs} +2 -2
  85. package/dist/esm/{chunk-ZWH2ESXT.mjs → chunk-FVA2OPG4.mjs} +1 -1
  86. package/dist/esm/{chunk-7IY2Y73Q.mjs → chunk-GSBXTPCS.mjs} +2 -2
  87. package/dist/esm/chunk-GSBXTPCS.mjs.map +1 -0
  88. package/dist/esm/{chunk-FGTQT7Q5.mjs → chunk-GTZAXATL.mjs} +2 -2
  89. package/dist/esm/chunk-HHJBCGAQ.mjs +2 -0
  90. package/dist/esm/{chunk-EOC4UI5B.mjs.map → chunk-HHJBCGAQ.mjs.map} +1 -1
  91. package/dist/esm/{chunk-C3Y52GHM.mjs → chunk-HXJHVTIU.mjs} +2 -2
  92. package/dist/esm/{chunk-F52GIFKT.mjs → chunk-I62T5OCN.mjs} +2 -2
  93. package/dist/esm/{chunk-ZKFDLJ2F.mjs → chunk-I77JNEEH.mjs} +2 -2
  94. package/dist/esm/{chunk-6F4ACCCZ.mjs → chunk-I7EF66RZ.mjs} +2 -2
  95. package/dist/esm/{chunk-PANYJULW.mjs → chunk-IA2CIVWP.mjs} +2 -2
  96. package/dist/esm/{chunk-NLONZHYT.mjs → chunk-J733CDF2.mjs} +2 -2
  97. package/dist/esm/chunk-J7VKEBBQ.mjs +2 -0
  98. package/dist/esm/chunk-J7VKEBBQ.mjs.map +1 -0
  99. package/dist/esm/chunk-JJDQALR6.mjs +2 -0
  100. package/dist/esm/chunk-JJDQALR6.mjs.map +1 -0
  101. package/dist/esm/{chunk-KR5JAN32.mjs → chunk-JXVSO6IA.mjs} +2 -2
  102. package/dist/esm/{chunk-Y5RQOXZH.mjs → chunk-K2LNHGV5.mjs} +2 -2
  103. package/dist/esm/chunk-KBWYFDSS.mjs +2 -0
  104. package/dist/esm/{chunk-5IVRKK5V.mjs → chunk-KEOLTOML.mjs} +2 -2
  105. package/dist/esm/{chunk-5IVRKK5V.mjs.map → chunk-KEOLTOML.mjs.map} +1 -1
  106. package/dist/esm/chunk-L6DJOGKE.mjs +2 -0
  107. package/dist/esm/chunk-L6DJOGKE.mjs.map +1 -0
  108. package/dist/esm/{chunk-VMCFN5CT.mjs → chunk-NANOXAUV.mjs} +2 -2
  109. package/dist/esm/{chunk-NFGAZSSK.mjs → chunk-NHB2SPSA.mjs} +2 -2
  110. package/dist/esm/{chunk-PRKZ2KJ4.mjs → chunk-NRGN7EFM.mjs} +2 -2
  111. package/dist/esm/chunk-NWEQD6JS.mjs +2 -0
  112. package/dist/esm/chunk-NWEQD6JS.mjs.map +1 -0
  113. package/dist/esm/{chunk-7B3VSBCX.mjs → chunk-O7HXE2B5.mjs} +2 -2
  114. package/dist/esm/chunk-OT6XSVB2.mjs +2 -0
  115. package/dist/esm/chunk-OT6XSVB2.mjs.map +1 -0
  116. package/dist/esm/{chunk-HQ4DGB7L.mjs → chunk-QJPQWNVJ.mjs} +2 -2
  117. package/dist/esm/chunk-QW2MOIZP.mjs +2 -0
  118. package/dist/esm/chunk-QW2MOIZP.mjs.map +1 -0
  119. package/dist/esm/chunk-R2PCVD75.mjs +2 -0
  120. package/dist/esm/chunk-R2PCVD75.mjs.map +1 -0
  121. package/dist/esm/{chunk-RCYWJZR4.mjs → chunk-RFYP3V47.mjs} +2 -2
  122. package/dist/esm/{chunk-PZ5JKQSP.mjs → chunk-SBIT6S4D.mjs} +2 -2
  123. package/dist/esm/chunk-SBIT6S4D.mjs.map +1 -0
  124. package/dist/esm/chunk-SGRMOG3X.mjs +2 -0
  125. package/dist/esm/chunk-SGRMOG3X.mjs.map +1 -0
  126. package/dist/esm/{chunk-N25GOEVL.mjs → chunk-SS7YTDGF.mjs} +2 -2
  127. package/dist/esm/chunk-TQ3QAVBU.mjs +2 -0
  128. package/dist/esm/chunk-TQ3QAVBU.mjs.map +1 -0
  129. package/dist/esm/chunk-ULKNPUPO.mjs +2 -0
  130. package/dist/esm/chunk-ULKNPUPO.mjs.map +1 -0
  131. package/dist/esm/chunk-UPQSJD25.mjs +2 -0
  132. package/dist/esm/chunk-UPQSJD25.mjs.map +1 -0
  133. package/dist/esm/{chunk-DBJTMCAG.mjs → chunk-UVAYKM6H.mjs} +2 -2
  134. package/dist/esm/{chunk-3QS3MFWJ.mjs → chunk-VJ3ZN43A.mjs} +2 -2
  135. package/dist/esm/chunk-WAUU2XNO.mjs +2 -0
  136. package/dist/esm/chunk-WAUU2XNO.mjs.map +1 -0
  137. package/dist/esm/{chunk-CBAVJ5EN.mjs → chunk-XE5NXBGH.mjs} +2 -2
  138. package/dist/esm/{chunk-F2GFSFPW.mjs → chunk-XWWW2V74.mjs} +2 -2
  139. package/dist/esm/chunk-YR3ZVJBF.mjs +2 -0
  140. package/dist/esm/chunk-YR3ZVJBF.mjs.map +1 -0
  141. package/dist/esm/{chunk-DYJVDOBH.mjs → chunk-ZOFYHCU4.mjs} +2 -2
  142. package/dist/esm/chunk-ZOFYHCU4.mjs.map +1 -0
  143. package/dist/esm/{chunk-4K252UDE.mjs → chunk-ZTNSWIML.mjs} +2 -2
  144. package/dist/esm/client/core.mjs +1 -1
  145. package/dist/esm/client/get.d.mts +1 -1
  146. package/dist/esm/client/get.mjs +1 -1
  147. package/dist/esm/client/index.mjs +1 -1
  148. package/dist/esm/client/post.d.mts +1 -1
  149. package/dist/esm/client/post.mjs +1 -1
  150. package/dist/esm/client/types.d.mts +1 -1
  151. package/dist/esm/client/types.mjs +1 -1
  152. package/dist/esm/core/account.d.mts +2 -2
  153. package/dist/esm/core/account.mjs +1 -1
  154. package/dist/esm/core/accountAddress.d.mts +1 -1
  155. package/dist/esm/core/accountAddress.mjs +1 -1
  156. package/dist/esm/core/authenticationKey.mjs +1 -1
  157. package/dist/esm/core/common.d.mts +1 -1
  158. package/dist/esm/core/common.mjs +1 -1
  159. package/dist/esm/core/crypto/anyPublicKey.mjs +1 -1
  160. package/dist/esm/core/crypto/anySignature.mjs +1 -1
  161. package/dist/esm/core/crypto/asymmetricCrypto.mjs +1 -1
  162. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  163. package/dist/esm/core/crypto/hdKey.d.mts +1 -1
  164. package/dist/esm/core/crypto/hdKey.mjs +1 -1
  165. package/dist/esm/core/crypto/index.mjs +1 -1
  166. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  167. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  168. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  169. package/dist/esm/core/hex.mjs +1 -1
  170. package/dist/esm/core/index.mjs +1 -1
  171. package/dist/esm/index.d.mts +1 -3
  172. package/dist/esm/index.mjs +1 -1
  173. package/dist/esm/internal/account.d.mts +1 -1
  174. package/dist/esm/internal/account.mjs +1 -1
  175. package/dist/esm/internal/ans.d.mts +6 -6
  176. package/dist/esm/internal/ans.mjs +1 -1
  177. package/dist/esm/internal/coin.d.mts +2 -2
  178. package/dist/esm/internal/coin.mjs +1 -1
  179. package/dist/esm/internal/digitalAsset.d.mts +144 -27
  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 +2 -2
  184. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  185. package/dist/esm/internal/general.d.mts +1 -1
  186. package/dist/esm/internal/general.mjs +1 -1
  187. package/dist/esm/internal/staking.mjs +1 -1
  188. package/dist/esm/internal/transaction.mjs +1 -1
  189. package/dist/esm/internal/transactionSubmission.d.mts +6 -6
  190. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  191. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  192. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  193. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  194. package/dist/esm/transactions/index.d.mts +1 -1
  195. package/dist/esm/transactions/index.mjs +1 -1
  196. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  197. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  198. package/dist/esm/transactions/instances/index.mjs +1 -1
  199. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  200. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  201. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  202. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  203. package/dist/esm/transactions/instances/transactionArgument.d.mts +1 -1
  204. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  205. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  206. package/dist/esm/transactions/management/asyncQueue.mjs +1 -1
  207. package/dist/esm/transactions/management/index.mjs +1 -1
  208. package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
  209. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  210. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  211. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  212. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  213. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
  214. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  215. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  216. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  217. package/dist/esm/transactions/types.d.mts +4 -4
  218. package/dist/esm/types/generated/operations.d.mts +1 -1
  219. package/dist/esm/types/generated/queries.d.mts +1 -1
  220. package/dist/esm/types/generated/queries.mjs +1 -1
  221. package/dist/esm/types/generated/types.d.mts +1 -1
  222. package/dist/esm/types/generated/types.mjs +1 -1
  223. package/dist/esm/types/index.d.mts +2 -2
  224. package/dist/esm/types/index.mjs +1 -1
  225. package/dist/esm/types/indexer.d.mts +1 -1
  226. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  227. package/dist/esm/utils/const.d.mts +0 -2
  228. package/dist/esm/utils/const.mjs +1 -1
  229. package/dist/esm/utils/helpers.mjs +1 -1
  230. package/dist/esm/utils/index.mjs +1 -1
  231. package/dist/esm/utils/memoize.mjs +1 -1
  232. package/dist/esm/version.d.mts +1 -1
  233. package/dist/esm/version.mjs +1 -1
  234. package/package.json +32 -30
  235. package/src/api/account.ts +10 -21
  236. package/src/api/ans.ts +9 -9
  237. package/src/api/aptos.ts +3 -28
  238. package/src/api/coin.ts +3 -3
  239. package/src/api/digitalAsset.ts +372 -115
  240. package/src/api/event.ts +3 -3
  241. package/src/api/fungibleAsset.ts +7 -7
  242. package/src/api/general.ts +1 -1
  243. package/src/api/staking.ts +3 -3
  244. package/src/api/transaction.ts +172 -2
  245. package/src/api/transactionSubmission/build.ts +25 -4
  246. package/src/api/transactionSubmission/helpers.ts +31 -0
  247. package/src/api/transactionSubmission/simulate.ts +26 -20
  248. package/src/api/transactionSubmission/submit.ts +24 -20
  249. package/src/api/utils.ts +6 -19
  250. package/src/client/core.ts +1 -1
  251. package/src/core/account.ts +2 -2
  252. package/src/internal/ans.ts +5 -5
  253. package/src/internal/coin.ts +2 -2
  254. package/src/internal/digitalAsset.ts +461 -61
  255. package/src/internal/fungibleAsset.ts +2 -2
  256. package/src/internal/general.ts +2 -2
  257. package/src/internal/transaction.ts +1 -1
  258. package/src/internal/transactionSubmission.ts +6 -6
  259. package/src/transactions/management/transactionWorker.ts +2 -9
  260. package/src/transactions/transactionBuilder/remoteAbi.ts +9 -7
  261. package/src/transactions/transactionBuilder/transactionBuilder.ts +2 -4
  262. package/src/transactions/types.ts +3 -2
  263. package/src/utils/const.ts +2 -2
  264. package/src/version.ts +1 -1
  265. package/dist/esm/api/transactionSubmission.d.mts +0 -113
  266. package/dist/esm/api/transactionSubmission.mjs +0 -2
  267. package/dist/esm/chunk-26GRNGPL.mjs +0 -2
  268. package/dist/esm/chunk-26GRNGPL.mjs.map +0 -1
  269. package/dist/esm/chunk-2AMFCGJ3.mjs.map +0 -1
  270. package/dist/esm/chunk-2X3FRUKX.mjs +0 -2
  271. package/dist/esm/chunk-2X3FRUKX.mjs.map +0 -1
  272. package/dist/esm/chunk-4FDIPWVB.mjs +0 -2
  273. package/dist/esm/chunk-4FDIPWVB.mjs.map +0 -1
  274. package/dist/esm/chunk-4XQ5IV6C.mjs +0 -2
  275. package/dist/esm/chunk-4XQ5IV6C.mjs.map +0 -1
  276. package/dist/esm/chunk-5X46HDCI.mjs +0 -2
  277. package/dist/esm/chunk-5X46HDCI.mjs.map +0 -1
  278. package/dist/esm/chunk-7IY2Y73Q.mjs.map +0 -1
  279. package/dist/esm/chunk-BA4TDBYB.mjs +0 -2
  280. package/dist/esm/chunk-BA4TDBYB.mjs.map +0 -1
  281. package/dist/esm/chunk-DYJVDOBH.mjs.map +0 -1
  282. package/dist/esm/chunk-EHJEK7FU.mjs +0 -2
  283. package/dist/esm/chunk-ELWWME6B.mjs.map +0 -1
  284. package/dist/esm/chunk-EOC4UI5B.mjs +0 -2
  285. package/dist/esm/chunk-GMOHGD73.mjs +0 -2
  286. package/dist/esm/chunk-GMOHGD73.mjs.map +0 -1
  287. package/dist/esm/chunk-LBNMY7EM.mjs +0 -2
  288. package/dist/esm/chunk-LBNMY7EM.mjs.map +0 -1
  289. package/dist/esm/chunk-MNFGMNYS.mjs.map +0 -1
  290. package/dist/esm/chunk-NBSXZKMQ.mjs +0 -2
  291. package/dist/esm/chunk-NBSXZKMQ.mjs.map +0 -1
  292. package/dist/esm/chunk-NZ36UN4C.mjs +0 -2
  293. package/dist/esm/chunk-NZ36UN4C.mjs.map +0 -1
  294. package/dist/esm/chunk-PEBXSNMJ.mjs +0 -2
  295. package/dist/esm/chunk-PEBXSNMJ.mjs.map +0 -1
  296. package/dist/esm/chunk-PLY7MQKE.mjs +0 -2
  297. package/dist/esm/chunk-PLY7MQKE.mjs.map +0 -1
  298. package/dist/esm/chunk-PZ5JKQSP.mjs.map +0 -1
  299. package/dist/esm/chunk-Q3R3KKKP.mjs +0 -2
  300. package/dist/esm/chunk-Q3R3KKKP.mjs.map +0 -1
  301. package/dist/esm/chunk-TNUGIBLO.mjs +0 -2
  302. package/dist/esm/chunk-TNUGIBLO.mjs.map +0 -1
  303. package/dist/esm/chunk-TTICPGX6.mjs +0 -2
  304. package/dist/esm/chunk-TTICPGX6.mjs.map +0 -1
  305. package/dist/esm/chunk-UES76WF2.mjs +0 -2
  306. package/dist/esm/chunk-UES76WF2.mjs.map +0 -1
  307. package/dist/esm/chunk-W44E6YAW.mjs +0 -2
  308. package/dist/esm/chunk-W44E6YAW.mjs.map +0 -1
  309. package/dist/esm/chunk-W4JEP5GW.mjs +0 -2
  310. package/dist/esm/chunk-WXISFVRU.mjs +0 -2
  311. package/dist/esm/chunk-WXISFVRU.mjs.map +0 -1
  312. package/dist/esm/chunk-XKINEFAA.mjs.map +0 -1
  313. package/src/api/transactionSubmission.ts +0 -121
  314. /package/dist/esm/api/{transactionSubmission.mjs.map → transactionSubmission/helpers.mjs.map} +0 -0
  315. /package/dist/esm/{chunk-NMFS5KAE.mjs.map → chunk-3R3RC6HA.mjs.map} +0 -0
  316. /package/dist/esm/{chunk-KVJ2KGMW.mjs.map → chunk-3TCHSIX5.mjs.map} +0 -0
  317. /package/dist/esm/{chunk-UR5E2UDO.mjs.map → chunk-47UUK4Y5.mjs.map} +0 -0
  318. /package/dist/esm/{chunk-3RMXGSHK.mjs.map → chunk-4DI53MOX.mjs.map} +0 -0
  319. /package/dist/esm/{chunk-6DYNAFAP.mjs.map → chunk-4SUSQ6FW.mjs.map} +0 -0
  320. /package/dist/esm/{chunk-IU5JZNH4.mjs.map → chunk-6GSEQAP3.mjs.map} +0 -0
  321. /package/dist/esm/{chunk-BDTDWLGO.mjs.map → chunk-7QI27CQO.mjs.map} +0 -0
  322. /package/dist/esm/{chunk-5HZKDT5C.mjs.map → chunk-7SMTJUHH.mjs.map} +0 -0
  323. /package/dist/esm/{chunk-GQI3HWOB.mjs.map → chunk-7YT7GFC2.mjs.map} +0 -0
  324. /package/dist/esm/{chunk-5SRMD5C6.mjs.map → chunk-B5DL5P23.mjs.map} +0 -0
  325. /package/dist/esm/{chunk-OXO3Z2MF.mjs.map → chunk-BCTD22UJ.mjs.map} +0 -0
  326. /package/dist/esm/{chunk-7QJYTQSU.mjs.map → chunk-D3U253BW.mjs.map} +0 -0
  327. /package/dist/esm/{chunk-OWP2MKTX.mjs.map → chunk-EZGQODGD.mjs.map} +0 -0
  328. /package/dist/esm/{chunk-ZWH2ESXT.mjs.map → chunk-FVA2OPG4.mjs.map} +0 -0
  329. /package/dist/esm/{chunk-FGTQT7Q5.mjs.map → chunk-GTZAXATL.mjs.map} +0 -0
  330. /package/dist/esm/{chunk-C3Y52GHM.mjs.map → chunk-HXJHVTIU.mjs.map} +0 -0
  331. /package/dist/esm/{chunk-F52GIFKT.mjs.map → chunk-I62T5OCN.mjs.map} +0 -0
  332. /package/dist/esm/{chunk-ZKFDLJ2F.mjs.map → chunk-I77JNEEH.mjs.map} +0 -0
  333. /package/dist/esm/{chunk-6F4ACCCZ.mjs.map → chunk-I7EF66RZ.mjs.map} +0 -0
  334. /package/dist/esm/{chunk-PANYJULW.mjs.map → chunk-IA2CIVWP.mjs.map} +0 -0
  335. /package/dist/esm/{chunk-NLONZHYT.mjs.map → chunk-J733CDF2.mjs.map} +0 -0
  336. /package/dist/esm/{chunk-KR5JAN32.mjs.map → chunk-JXVSO6IA.mjs.map} +0 -0
  337. /package/dist/esm/{chunk-Y5RQOXZH.mjs.map → chunk-K2LNHGV5.mjs.map} +0 -0
  338. /package/dist/esm/{chunk-EHJEK7FU.mjs.map → chunk-KBWYFDSS.mjs.map} +0 -0
  339. /package/dist/esm/{chunk-VMCFN5CT.mjs.map → chunk-NANOXAUV.mjs.map} +0 -0
  340. /package/dist/esm/{chunk-NFGAZSSK.mjs.map → chunk-NHB2SPSA.mjs.map} +0 -0
  341. /package/dist/esm/{chunk-PRKZ2KJ4.mjs.map → chunk-NRGN7EFM.mjs.map} +0 -0
  342. /package/dist/esm/{chunk-7B3VSBCX.mjs.map → chunk-O7HXE2B5.mjs.map} +0 -0
  343. /package/dist/esm/{chunk-HQ4DGB7L.mjs.map → chunk-QJPQWNVJ.mjs.map} +0 -0
  344. /package/dist/esm/{chunk-RCYWJZR4.mjs.map → chunk-RFYP3V47.mjs.map} +0 -0
  345. /package/dist/esm/{chunk-N25GOEVL.mjs.map → chunk-SS7YTDGF.mjs.map} +0 -0
  346. /package/dist/esm/{chunk-DBJTMCAG.mjs.map → chunk-UVAYKM6H.mjs.map} +0 -0
  347. /package/dist/esm/{chunk-3QS3MFWJ.mjs.map → chunk-VJ3ZN43A.mjs.map} +0 -0
  348. /package/dist/esm/{chunk-CBAVJ5EN.mjs.map → chunk-XE5NXBGH.mjs.map} +0 -0
  349. /package/dist/esm/{chunk-F2GFSFPW.mjs.map → chunk-XWWW2V74.mjs.map} +0 -0
  350. /package/dist/esm/{chunk-4K252UDE.mjs.map → chunk-ZTNSWIML.mjs.map} +0 -0
@@ -769,7 +769,7 @@ declare enum TypeTagVariants {
769
769
  U16 = 8,
770
770
  U32 = 9,
771
771
  U256 = 10,
772
- Reference = 254,
772
+ Reference = 254,// This is specifically a placeholder and does not represent a real type
773
773
  Generic = 255
774
774
  }
775
775
  /**
@@ -2885,8 +2885,8 @@ declare class Account$1 {
2885
2885
  *
2886
2886
  * @param args.privateKey PrivateKey - private key of the account
2887
2887
  * @param args.address AccountAddress - address of the account
2888
- * @param args.legacy optional. If set to true, the keypair authentication keys will be derived with a Legacy scheme.
2889
- * Defaults to deriving an authentication key with a Unified scheme
2888
+ * @param args.legacy optional. If set to false, the keypair authentication keys will be derived with a unified scheme.
2889
+ * Defaults to deriving an authentication key with the legacy scheme.
2890
2890
  *
2891
2891
  * This method is private because it should only be called by the factory static methods.
2892
2892
  * @returns Account
@@ -3647,12 +3647,10 @@ declare const RAW_TRANSACTION_WITH_DATA_SALT = "APTOS::RawTransactionWithData";
3647
3647
  */
3648
3648
  declare enum ProcessorType {
3649
3649
  ACCOUNT_TRANSACTION_PROCESSOR = "account_transactions_processor",
3650
- COIN_PROCESSOR = "coin_processor",
3651
3650
  DEFAULT = "default_processor",
3652
3651
  EVENTS_PROCESSOR = "events_processor",
3653
3652
  FUNGIBLE_ASSET_PROCESSOR = "fungible_asset_processor",
3654
3653
  STAKE_PROCESSOR = "stake_processor",
3655
- TOKEN_PROCESSOR = "token_processor",
3656
3654
  TOKEN_V2_PROCESSOR = "token_v2_processor",
3657
3655
  USER_TRANSACTION_PROCESSOR = "user_transaction_processor"
3658
3656
  }
@@ -4626,7 +4624,7 @@ declare class SignedTransaction extends Serializable {
4626
4624
  /**
4627
4625
  * Entry function arguments to be used when building a raw transaction using remote ABI
4628
4626
  */
4629
- type SimpleEntryFunctionArgumentTypes = boolean | number | bigint | string | null | undefined | Uint8Array | Array<SimpleEntryFunctionArgumentTypes | EntryFunctionArgumentTypes>;
4627
+ type SimpleEntryFunctionArgumentTypes = boolean | number | bigint | string | null | undefined | Uint8Array | ArrayBuffer | Array<SimpleEntryFunctionArgumentTypes | EntryFunctionArgumentTypes>;
4630
4628
  /**
4631
4629
  * Entry function arguments to be used when building a raw transaction using BCS serialized arguments
4632
4630
  */
@@ -4730,7 +4728,7 @@ type InputGenerateRawTransactionArgs = InputGenerateSingleSignerRawTransactionAr
4730
4728
  *
4731
4729
  * @param rawTransaction a bcs serialized raw transaction
4732
4730
  */
4733
- interface SingleSignerTransaction {
4731
+ interface SimpleTransaction {
4734
4732
  rawTransaction: RawTransaction;
4735
4733
  feePayerAddress?: AccountAddress;
4736
4734
  secondarySignerAddresses?: undefined;
@@ -4749,7 +4747,7 @@ interface MultiAgentTransaction {
4749
4747
  /**
4750
4748
  * Unified type that holds all the return interfaces when generating different transaction types
4751
4749
  */
4752
- type AnyRawTransaction = SingleSignerTransaction | MultiAgentTransaction;
4750
+ type AnyRawTransaction = SimpleTransaction | MultiAgentTransaction;
4753
4751
  type InputSimulateTransactionData = {
4754
4752
  /**
4755
4753
  * The transaction to simulate, probably generated by `generateTransaction()`
@@ -4822,7 +4820,7 @@ declare class Coin {
4822
4820
  * @param args.amount The amount to transfer
4823
4821
  * @param args.coinType optional. The coin struct type to transfer. Defaults to 0x1::aptos_coin::AptosCoin
4824
4822
  *
4825
- * @returns SingleSignerTransaction
4823
+ * @returns SimpleTransaction
4826
4824
  */
4827
4825
  transferCoinTransaction(args: {
4828
4826
  sender: Account$1;
@@ -4830,7 +4828,7 @@ declare class Coin {
4830
4828
  amount: AnyNumber;
4831
4829
  coinType?: MoveStructId;
4832
4830
  options?: InputGenerateTransactionOptions;
4833
- }): Promise<SingleSignerTransaction>;
4831
+ }): Promise<SimpleTransaction>;
4834
4832
  }
4835
4833
 
4836
4834
  /**
@@ -4840,6 +4838,19 @@ declare class Coin {
4840
4838
  * digitalAsset namespace and without having a dependency cycle error.
4841
4839
  */
4842
4840
 
4841
+ declare const PropertyTypeMap: {
4842
+ BOOLEAN: string;
4843
+ U8: string;
4844
+ U16: string;
4845
+ U32: string;
4846
+ U64: string;
4847
+ U128: string;
4848
+ U256: string;
4849
+ ADDRESS: string;
4850
+ STRING: string;
4851
+ };
4852
+ type PropertyType = keyof typeof PropertyTypeMap;
4853
+ type PropertyValue = boolean | number | bigint | string | AccountAddress | Array<PropertyValue>;
4843
4854
  interface CreateCollectionOptions {
4844
4855
  maxSupply?: AnyNumber;
4845
4856
  mutableDescription?: boolean;
@@ -4861,38 +4872,6 @@ interface CreateCollectionOptions {
4861
4872
  declare class DigitalAsset {
4862
4873
  readonly config: AptosConfig;
4863
4874
  constructor(config: AptosConfig);
4864
- /**
4865
- * Creates a new collection within the specified account
4866
- *
4867
- * @param args.creator the account of the collection's creator
4868
- * @param args.description the description of the collection
4869
- * @param args.name the name of the collection
4870
- * @param args.uri the URI to additional info about the collection
4871
- *
4872
- * The parameters below are optional.
4873
- * @param args.maxSupply controls the max supply of the tokens - defaults MAX_U64_BIG_INT
4874
- * @param args.mutableDescription controls mutability of the collection's description - defaults true
4875
- * @param args.mutableRoyalty controls mutability of the collection's description - defaults true
4876
- * @param args.mutableUri controls mutability of the collection's URI - defaults true
4877
- * @param args.mutableTokenDescription controls mutability of the token's description - defaults true
4878
- * @param args.mutableTokenName controls mutability of the token's name - defaults true
4879
- * @param args.mutableTokenProperties controls mutability of token's properties - defaults true
4880
- * @param args.mutableTokenUri controls mutability of the token's URI - defaults true
4881
- * @param args.tokensBurnableByCreator controls whether tokens can be burnable by the creator - defaults true
4882
- * @param args.tokensFreezableByCreator controls whether tokens can be frozen by the creator - defaults true
4883
- * @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when a token is transferred - defaults 0
4884
- * @param args.royaltyDenominator the denominator of the royalty to be paid to the creator when a token is transferred -
4885
- * defaults 1
4886
- *
4887
- * @returns A SingleSignerTransaction that when submitted will create the collection.
4888
- */
4889
- createCollectionTransaction(args: {
4890
- creator: Account$1;
4891
- description: string;
4892
- name: string;
4893
- uri: string;
4894
- options?: InputGenerateTransactionOptions;
4895
- } & CreateCollectionOptions): Promise<SingleSignerTransaction>;
4896
4875
  /**
4897
4876
  * Queries data of a specific collection by the collection creator address and the collection name.
4898
4877
  *
@@ -4930,90 +4909,346 @@ declare class DigitalAsset {
4930
4909
  options?: TokenStandardArg;
4931
4910
  }): Promise<string>;
4932
4911
  /**
4933
- * Create a transaction to mint a token into the creators account within an existing collection.
4934
- *
4935
- * @param args.creator the creator of the collection
4936
- * @param args.collection the name of the collection the token belongs to
4937
- * @param args.description the description of the token
4938
- * @param args.name the name of the token
4939
- * @param args.uri the URI to additional info about the token
4940
- *
4941
- * @returns A SingleSignerTransaction that can be simulated or submitted to chain
4942
- */
4943
- mintTokenTransaction(args: {
4944
- creator: Account$1;
4945
- collection: string;
4946
- description: string;
4947
- name: string;
4948
- uri: string;
4949
- options?: InputGenerateTransactionOptions;
4950
- }): Promise<SingleSignerTransaction>;
4951
- /**
4952
- * Gets token data given the address of a token.
4912
+ * Gets digital asset data given the address of a digital asset.
4953
4913
  *
4954
- * @param args.tokenAddress The address of the token
4914
+ * @param args.tokenAddress The address of the digital asset
4955
4915
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4956
- * @returns GetTokenDataResponse containing relevant data to the token.
4916
+ * @returns GetTokenDataResponse containing relevant data to the digital asset.
4957
4917
  */
4958
- getTokenData(args: {
4959
- tokenAddress: AccountAddressInput;
4918
+ getDigitalAssetData(args: {
4919
+ digitalAssetAddress: AccountAddressInput;
4960
4920
  minimumLedgerVersion?: AnyNumber;
4961
4921
  }): Promise<GetTokenDataResponse>;
4962
4922
  /**
4963
- * Gets token ownership data given the address of a token.
4923
+ * Gets digital asset ownership data given the address of a digital asset.
4964
4924
  *
4965
- * @param args.tokenAddress The address of the token
4925
+ * @param args.tokenAddress The address of the digital asset
4966
4926
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4967
- * @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the token.
4927
+ *
4928
+ * @returns GetCurrentTokenOwnershipResponse containing relevant ownership data of the digital asset.
4968
4929
  */
4969
- getCurrentTokenOwnership(args: {
4970
- tokenAddress: AccountAddressInput;
4930
+ getCurrentDigitalAssetOwnership(args: {
4931
+ digitalAssetAddress: AccountAddressInput;
4971
4932
  minimumLedgerVersion?: AnyNumber;
4972
4933
  }): Promise<GetCurrentTokenOwnershipResponse>;
4973
4934
  /**
4974
- * Gets the tokens that the given address owns.
4935
+ * Gets the digital assets that the given address owns.
4975
4936
  *
4976
4937
  * @param args.ownerAddress The address of the owner
4977
4938
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4978
- * @returns GetOwnedTokensResponse containing ownership data of the tokens belonging to the ownerAddresss.
4939
+ *
4940
+ * @returns GetOwnedTokensResponse containing ownership data of the digital assets belonging to the ownerAddresss.
4979
4941
  */
4980
- getOwnedTokens(args: {
4942
+ getOwnedDigitalAssets(args: {
4981
4943
  ownerAddress: AccountAddressInput;
4982
4944
  minimumLedgerVersion?: AnyNumber;
4983
4945
  options?: PaginationArgs & OrderByArg<GetOwnedTokensResponse[0]>;
4984
4946
  }): Promise<GetOwnedTokensResponse>;
4985
4947
  /**
4986
- * Gets the activity data given the address of a token.
4948
+ * Gets the activity data given the address of a digital asset.
4987
4949
  *
4988
- * @param args.tokenAddress The address of the token
4950
+ * @param args.tokenAddress The address of the digital asset
4989
4951
  * @param args.minimumLedgerVersion Optional ledger version to sync up to, before querying
4990
- * @returns GetTokenActivityResponse containing relevant activity data to the token.
4952
+ *
4953
+ * @returns GetTokenActivityResponse containing relevant activity data to the digital asset.
4991
4954
  */
4992
- getTokenActivity(args: {
4993
- tokenAddress: AccountAddressInput;
4955
+ getDigitalAssetActivity(args: {
4956
+ digitalAssetAddress: AccountAddressInput;
4994
4957
  minimumLedgerVersion?: AnyNumber;
4995
4958
  options?: PaginationArgs & OrderByArg<GetTokenActivityResponse[0]>;
4996
4959
  }): Promise<GetTokenActivityResponse>;
4997
4960
  /**
4998
- * Transfer a digital asset (non fungible token) ownership.
4961
+ * Creates a new collection within the specified account
4962
+ *
4963
+ * @param args.creator the account of the collection's creator
4964
+ * @param args.description the description of the collection
4965
+ * @param args.name the name of the collection
4966
+ * @param args.uri the URI to additional info about the collection
4967
+ *
4968
+ * The parameters below are optional.
4969
+ * @param args.maxSupply controls the max supply of the digital assets - defaults MAX_U64_BIG_INT
4970
+ * @param args.mutableDescription controls mutability of the collection's description - defaults true
4971
+ * @param args.mutableRoyalty controls mutability of the collection's description - defaults true
4972
+ * @param args.mutableUri controls mutability of the collection's URI - defaults true
4973
+ * @param args.mutableTokenDescription controls mutability of the digital asset's description - defaults true
4974
+ * @param args.mutableTokenName controls mutability of the digital asset's name - defaults true
4975
+ * @param args.mutableTokenProperties controls mutability of digital asset's properties - defaults true
4976
+ * @param args.mutableTokenUri controls mutability of the digital asset's URI - defaults true
4977
+ * @param args.tokensBurnableByCreator controls whether digital assets can be burnable by the creator - defaults true
4978
+ * @param args.tokensFreezableByCreator controls whether digital assets can be frozen by the creator - defaults true
4979
+ * @param args.royaltyNumerator the numerator of the royalty to be paid to the creator when
4980
+ * a digital asset is transferred - defaults 0
4981
+ * @param args.royaltyDenominator the denominator of the royalty to be paid to the creator
4982
+ * when a digital asset is transferred - defaults 1
4983
+ *
4984
+ * @returns A SimpleTransaction that when submitted will create the collection.
4985
+ */
4986
+ createCollectionTransaction(args: {
4987
+ creator: Account$1;
4988
+ description: string;
4989
+ name: string;
4990
+ uri: string;
4991
+ options?: InputGenerateTransactionOptions;
4992
+ } & CreateCollectionOptions): Promise<SimpleTransaction>;
4993
+ /**
4994
+ * Create a transaction to mint a digital asset into the creators account within an existing collection.
4995
+ *
4996
+ * @param args.creator the creator of the collection
4997
+ * @param args.collection the name of the collection the digital asset belongs to
4998
+ * @param args.description the description of the digital asset
4999
+ * @param args.name the name of the digital asset
5000
+ * @param args.uri the URI to additional info about the digital asset
5001
+ *
5002
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5003
+ */
5004
+ mintDigitalAssetTransaction(args: {
5005
+ creator: Account$1;
5006
+ collection: string;
5007
+ description: string;
5008
+ name: string;
5009
+ uri: string;
5010
+ propertyKeys?: Array<string>;
5011
+ propertyTypes?: Array<PropertyType>;
5012
+ propertyValues?: Array<PropertyValue>;
5013
+ options?: InputGenerateTransactionOptions;
5014
+ }): Promise<SimpleTransaction>;
5015
+ /**
5016
+ * Transfer a digital asset (non fungible digital asset) ownership.
4999
5017
  *
5000
5018
  * We can transfer a digital asset only when the digital asset is not frozen
5001
- * (i.e. owner transfer is not disabled such as for soul bound tokens)
5019
+ * (i.e. owner transfer is not disabled such as for soul bound digital assets)
5002
5020
  *
5003
5021
  * @param args.sender The sender account of the current digital asset owner
5004
5022
  * @param args.digitalAssetAddress The digital asset address
5005
5023
  * @param args.recipient The recipient account address
5006
5024
  * @param args.digitalAssetType optional. The digital asset type, default to "0x4::token::Token"
5007
5025
  *
5008
- * @returns A SingleSignerTransaction that can be simulated or submitted to chain
5026
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5009
5027
  */
5010
- transferDigitalAsset(args: {
5028
+ transferDigitalAssetTransaction(args: {
5011
5029
  sender: Account$1;
5012
5030
  digitalAssetAddress: AccountAddressInput;
5013
5031
  recipient: AccountAddress;
5014
5032
  digitalAssetType?: MoveStructId;
5015
5033
  options?: InputGenerateTransactionOptions;
5016
- }): Promise<SingleSignerTransaction>;
5034
+ }): Promise<SimpleTransaction>;
5035
+ /**
5036
+ * Mint a soul bound digital asset into a recipient's account
5037
+ *
5038
+ * @param args.account The account that mints the digital asset
5039
+ * @param args.collection The collection name that the digital asset belongs to
5040
+ * @param args.description The digital asset description
5041
+ * @param args.name The digital asset name
5042
+ * @param args.uri The digital asset URL
5043
+ * @param args.recipient The account address where the digital asset will be created
5044
+ * @param args.propertyKeys The property keys for storing on-chain properties
5045
+ * @param args.propertyTypes The type of property values
5046
+ * @param args.propertyValues The property values to be stored on-chain
5047
+ *
5048
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5049
+ */
5050
+ mintSoulBoundTransaction(args: {
5051
+ account: Account$1;
5052
+ collection: string;
5053
+ description: string;
5054
+ name: string;
5055
+ uri: string;
5056
+ recipient: AccountAddress;
5057
+ propertyKeys?: Array<string>;
5058
+ propertyTypes?: Array<PropertyType>;
5059
+ propertyValues?: Array<PropertyValue>;
5060
+ options?: InputGenerateTransactionOptions;
5061
+ }): Promise<SimpleTransaction>;
5062
+ /**
5063
+ * Burn a digital asset by its creator
5064
+ *
5065
+ * @param args.creator The creator account
5066
+ * @param args.digitalAssetAddress The digital asset address
5067
+ *
5068
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5069
+ */
5070
+ burnDigitalAssetTransaction(args: {
5071
+ creator: Account$1;
5072
+ digitalAssetAddress: AccountAddressInput;
5073
+ digitalAssetType?: MoveStructId;
5074
+ options?: InputGenerateTransactionOptions;
5075
+ }): Promise<SimpleTransaction>;
5076
+ /**
5077
+ * Freeze digital asset transfer ability
5078
+ *
5079
+ * @param args.creator The creator account
5080
+ * @param args.digitalAssetAddress The digital asset address
5081
+ *
5082
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5083
+ */
5084
+ freezeDigitalAssetTransaferTransaction(args: {
5085
+ creator: Account$1;
5086
+ digitalAssetAddress: AccountAddressInput;
5087
+ digitalAssetType?: MoveStructId;
5088
+ options?: InputGenerateTransactionOptions;
5089
+ }): Promise<SimpleTransaction>;
5090
+ /**
5091
+ * Unfreeze digital asset transfer ability
5092
+ *
5093
+ * @param args.creator The creator account
5094
+ * @param args.digitalAssetAddress The digital asset address
5095
+ *
5096
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5097
+ */
5098
+ unfreezeDigitalAssetTransaferTransaction(args: {
5099
+ creator: Account$1;
5100
+ digitalAssetAddress: AccountAddressInput;
5101
+ digitalAssetType?: MoveStructId;
5102
+ options?: InputGenerateTransactionOptions;
5103
+ }): Promise<SimpleTransaction>;
5104
+ /**
5105
+ * Set the digital asset description
5106
+ *
5107
+ * @param args.creator The creator account
5108
+ * @param args.description The digital asset description
5109
+ * @param args.digitalAssetAddress The digital asset address
5110
+ *
5111
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5112
+ */
5113
+ setDigitalAssetDescriptionTransaction(args: {
5114
+ creator: Account$1;
5115
+ description: string;
5116
+ digitalAssetAddress: AccountAddressInput;
5117
+ digitalAssetType?: MoveStructId;
5118
+ options?: InputGenerateTransactionOptions;
5119
+ }): Promise<SimpleTransaction>;
5120
+ /**
5121
+ * Set the digital asset name
5122
+ *
5123
+ * @param args.creator The creator account
5124
+ * @param args.name The digital asset name
5125
+ * @param args.digitalAssetAddress The digital asset address
5126
+ *
5127
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5128
+ */
5129
+ setDigitalAssetNameTransaction(args: {
5130
+ creator: Account$1;
5131
+ name: string;
5132
+ digitalAssetAddress: AccountAddressInput;
5133
+ digitalAssetType?: MoveStructId;
5134
+ options?: InputGenerateTransactionOptions;
5135
+ }): Promise<SimpleTransaction>;
5136
+ /**
5137
+ * Set the digital asset name
5138
+ *
5139
+ * @param args.creator The creator account
5140
+ * @param args.uri The digital asset uri
5141
+ * @param args.digitalAssetAddress The digital asset address
5142
+ *
5143
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5144
+ */
5145
+ setDigitalAssetURITransaction(args: {
5146
+ creator: Account$1;
5147
+ uri: string;
5148
+ digitalAssetAddress: AccountAddressInput;
5149
+ digitalAssetType?: MoveStructId;
5150
+ options?: InputGenerateTransactionOptions;
5151
+ }): Promise<SimpleTransaction>;
5152
+ /**
5153
+ * Add a digital asset property
5154
+ *
5155
+ * @param args.account The account that mints the digital asset
5156
+ * @param args.digitalAssetAddress The digital asset address
5157
+ * @param args.propertyKey The property key for storing on-chain properties
5158
+ * @param args.propertyType The type of property value
5159
+ * @param args.propertyValue The property value to be stored on-chain
5160
+ *
5161
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5162
+ */
5163
+ addDigitalAssetPropertyTransaction(args: {
5164
+ creator: Account$1;
5165
+ propertyKey: string;
5166
+ propertyType: PropertyType;
5167
+ propertyValue: PropertyValue;
5168
+ digitalAssetAddress: AccountAddressInput;
5169
+ digitalAssetType?: MoveStructId;
5170
+ options?: InputGenerateTransactionOptions;
5171
+ }): Promise<SimpleTransaction>;
5172
+ /**
5173
+ * Remove a digital asset property
5174
+ *
5175
+ * @param args.account The account that mints the digital asset
5176
+ * @param args.digitalAssetAddress The digital asset address
5177
+ * @param args.propertyKey The property key for storing on-chain properties
5178
+ * @param args.propertyType The type of property value
5179
+ * @param args.propertyValue The property value to be stored on-chain
5180
+ *
5181
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5182
+ */
5183
+ removeDigitalAssetPropertyTransaction(args: {
5184
+ creator: Account$1;
5185
+ propertyKey: string;
5186
+ propertyType: PropertyType;
5187
+ propertyValue: PropertyValue;
5188
+ digitalAssetAddress: AccountAddressInput;
5189
+ digitalAssetType?: MoveStructId;
5190
+ options?: InputGenerateTransactionOptions;
5191
+ }): Promise<SimpleTransaction>;
5192
+ /**
5193
+ * Update a digital asset property
5194
+ *
5195
+ * @param args.account The account that mints the digital asset
5196
+ * @param args.digitalAssetAddress The digital asset address
5197
+ * @param args.propertyKey The property key for storing on-chain properties
5198
+ * @param args.propertyType The type of property value
5199
+ * @param args.propertyValue The property value to be stored on-chain
5200
+ *
5201
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5202
+ */
5203
+ updateDigitalAssetPropertyTransaction(args: {
5204
+ creator: Account$1;
5205
+ propertyKey: string;
5206
+ propertyType: PropertyType;
5207
+ propertyValue: PropertyValue;
5208
+ digitalAssetAddress: AccountAddressInput;
5209
+ digitalAssetType?: MoveStructId;
5210
+ options?: InputGenerateTransactionOptions;
5211
+ }): Promise<SimpleTransaction>;
5212
+ /**
5213
+ * Add a typed digital asset property
5214
+ *
5215
+ * @param args.account The account that mints the digital asset
5216
+ * @param args.digitalAssetAddress The digital asset address
5217
+ * @param args.propertyKey The property key for storing on-chain properties
5218
+ * @param args.propertyType The type of property value
5219
+ * @param args.propertyValue The property value to be stored on-chain
5220
+ *
5221
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5222
+ */
5223
+ addDigitalAssetTypedPropertyTransaction(args: {
5224
+ creator: Account$1;
5225
+ propertyKey: string;
5226
+ propertyType: PropertyType;
5227
+ propertyValue: PropertyValue;
5228
+ digitalAssetAddress: AccountAddressInput;
5229
+ digitalAssetType?: MoveStructId;
5230
+ options?: InputGenerateTransactionOptions;
5231
+ }): Promise<SimpleTransaction>;
5232
+ /**
5233
+ * Update a typed digital asset property
5234
+ *
5235
+ * @param args.account The account that mints the digital asset
5236
+ * @param args.digitalAssetAddress The digital asset address
5237
+ * @param args.propertyKey The property key for storing on-chain properties
5238
+ * @param args.propertyType The type of property value
5239
+ * @param args.propertyValue The property value to be stored on-chain
5240
+ *
5241
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
5242
+ */
5243
+ updateDigitalAssetTypedPropertyTransaction(args: {
5244
+ creator: Account$1;
5245
+ propertyKey: string;
5246
+ propertyType: PropertyType;
5247
+ propertyValue: PropertyValue;
5248
+ digitalAssetAddress: AccountAddressInput;
5249
+ digitalAssetType?: MoveStructId;
5250
+ options?: InputGenerateTransactionOptions;
5251
+ }): Promise<SimpleTransaction>;
5017
5252
  }
5018
5253
 
5019
5254
  /**
@@ -5159,7 +5394,7 @@ declare function generateRawTransaction(args: {
5159
5394
  * When we call our `generateTransaction` function with the relevant type properties,
5160
5395
  * Typescript can infer the return type based on the appropriate function overload.
5161
5396
  */
5162
- declare function buildTransaction(args: InputGenerateSingleSignerRawTransactionArgs): Promise<SingleSignerTransaction>;
5397
+ declare function buildTransaction(args: InputGenerateSingleSignerRawTransactionArgs): Promise<SimpleTransaction>;
5163
5398
  declare function buildTransaction(args: InputGenerateMultiAgentRawTransactionArgs): Promise<MultiAgentTransaction>;
5164
5399
  /**
5165
5400
  * Simulate a transaction before signing and submit to chain
@@ -5339,7 +5574,7 @@ declare class FungibleAsset {
5339
5574
  * @param recipient The recipient account address
5340
5575
  * @param amount Number of assets to transfer
5341
5576
  *
5342
- * @returns A SingleSignerTransaction that can be simulated or submitted to chain.
5577
+ * @returns A SimpleTransaction that can be simulated or submitted to chain.
5343
5578
  */
5344
5579
  transferFungibleAsset(args: {
5345
5580
  sender: Account$1;
@@ -5347,7 +5582,7 @@ declare class FungibleAsset {
5347
5582
  recipient: AccountAddress;
5348
5583
  amount: AnyNumber;
5349
5584
  options?: InputGenerateTransactionOptions;
5350
- }): Promise<SingleSignerTransaction>;
5585
+ }): Promise<SimpleTransaction>;
5351
5586
  }
5352
5587
 
5353
5588
  /**
@@ -5488,7 +5723,7 @@ declare class General {
5488
5723
  *
5489
5724
  * This is useful to tell what ledger version the indexer is updated to, as it can be behind the full nodes.
5490
5725
  */
5491
- getIndexerLastSuccessVersion(): Promise<number>;
5726
+ getIndexerLastSuccessVersion(): Promise<bigint>;
5492
5727
  /**
5493
5728
  * Query the processor status for a specific processor type.
5494
5729
  *
@@ -5608,14 +5843,14 @@ declare class ANS {
5608
5843
  * @param args.name - A string of the name: test.aptos.apt, test.apt, test, test.aptos, etc.
5609
5844
  * @param args.address - A AccountAddressInput of the address to set the domain or subdomain to
5610
5845
  *
5611
- * @returns SingleSignerTransaction
5846
+ * @returns SimpleTransaction
5612
5847
  */
5613
5848
  setTargetAddress(args: {
5614
5849
  sender: Account$1;
5615
5850
  name: string;
5616
5851
  address: AccountAddressInput;
5617
5852
  options?: InputGenerateTransactionOptions;
5618
- }): Promise<SingleSignerTransaction>;
5853
+ }): Promise<SimpleTransaction>;
5619
5854
  /**
5620
5855
  * Retrieve the primary name for an account. An account can have
5621
5856
  * multiple names that target it, but only a single name that is primary. An
@@ -5647,13 +5882,13 @@ declare class ANS {
5647
5882
  * @param args.sender - The sender account
5648
5883
  * @param args.name - A string of the name: test, test.apt, test.aptos, test.aptos.apt, etc.
5649
5884
  *
5650
- * @returns SingleSignerTransaction
5885
+ * @returns SimpleTransaction
5651
5886
  */
5652
5887
  setPrimaryName(args: {
5653
5888
  sender: Account$1;
5654
5889
  name?: string;
5655
5890
  options?: InputGenerateTransactionOptions;
5656
- }): Promise<SingleSignerTransaction>;
5891
+ }): Promise<SimpleTransaction>;
5657
5892
  /**
5658
5893
  * Registers a new name
5659
5894
  *
@@ -5687,9 +5922,9 @@ declare class ANS {
5687
5922
  * @param args.toAddress optional - The address to send the domain name to. If not provided,
5688
5923
  * the transaction will be sent to the router.
5689
5924
  *
5690
- * @returns SingleSignerTransaction
5925
+ * @returns SimpleTransaction
5691
5926
  */
5692
- registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<SingleSignerTransaction>;
5927
+ registerName(args: Omit<RegisterNameParameters, "aptosConfig">): Promise<SimpleTransaction>;
5693
5928
  /**
5694
5929
  * Renews a domain name
5695
5930
  *
@@ -5705,14 +5940,14 @@ declare class ANS {
5705
5940
  * Subdomains cannot be renewed.
5706
5941
  * @param args.years - The number of years to renew the name. Currently only one year is permitted.
5707
5942
  *
5708
- * @returns SingleSignerTransaction
5943
+ * @returns SimpleTransaction
5709
5944
  */
5710
5945
  renewDomain(args: {
5711
5946
  sender: Account$1;
5712
5947
  name: string;
5713
5948
  years?: 1;
5714
5949
  options?: InputGenerateTransactionOptions;
5715
- }): Promise<SingleSignerTransaction>;
5950
+ }): Promise<SimpleTransaction>;
5716
5951
  /**
5717
5952
  * Fetches a single name from the indexer
5718
5953
  * @param args.name - A string of the name to retrieve, e.g. "test.aptos.apt"
@@ -5820,8 +6055,133 @@ declare class Staking {
5820
6055
  }): Promise<GetDelegatedStakingActivitiesResponse>;
5821
6056
  }
5822
6057
 
6058
+ /**
6059
+ * A class to handle all `Build` transaction operations
6060
+ */
6061
+ declare class Build {
6062
+ readonly config: AptosConfig;
6063
+ constructor(config: AptosConfig);
6064
+ /**
6065
+ * Build a simple transaction
6066
+ *
6067
+ * @param args.sender The sender account address
6068
+ * @param args.data The transaction data
6069
+ * @param args.options optional. Optional transaction configurations
6070
+ * @param args.withFeePayer optional. Whether there is a fee payer for the transaction
6071
+ *
6072
+ * @returns SimpleTransaction
6073
+ */
6074
+ simple(args: {
6075
+ sender: AccountAddressInput;
6076
+ data: InputGenerateTransactionPayloadData;
6077
+ options?: InputGenerateTransactionOptions;
6078
+ withFeePayer?: boolean;
6079
+ }): Promise<SimpleTransaction>;
6080
+ /**
6081
+ * Build a multi agent transaction
6082
+ *
6083
+ * @param args.sender The sender account address
6084
+ * @param args.data The transaction data
6085
+ * @param args.secondarySignerAddresses An array of the secondary signers account addresses
6086
+ * @param args.options optional. Optional transaction configurations
6087
+ * @param args.withFeePayer optional. Whether there is a fee payer for the transaction
6088
+ *
6089
+ * @returns MultiAgentTransaction
6090
+ */
6091
+ multiAgent(args: {
6092
+ sender: AccountAddressInput;
6093
+ data: InputGenerateTransactionPayloadData;
6094
+ secondarySignerAddresses: AccountAddressInput[];
6095
+ options?: InputGenerateTransactionOptions;
6096
+ withFeePayer?: boolean;
6097
+ }): Promise<MultiAgentTransaction>;
6098
+ }
6099
+
6100
+ /**
6101
+ * A class to handle all `Simulate` transaction operations
6102
+ */
6103
+ declare class Simulate {
6104
+ readonly config: AptosConfig;
6105
+ constructor(config: AptosConfig);
6106
+ /**
6107
+ * Simulate a simple transaction
6108
+ *
6109
+ * @param args.signerPublicKey The signer public key
6110
+ * @param args.transaction An instance of a raw transaction
6111
+ * @param args.options optional. Optional transaction configurations
6112
+ * @param args.feePayerPublicKey optional. The fee payer public key if it is a fee payer transaction
6113
+ *
6114
+ * @returns Array<UserTransactionResponse>
6115
+ */
6116
+ simple(args: {
6117
+ signerPublicKey: PublicKey;
6118
+ transaction: AnyRawTransaction;
6119
+ feePayerPublicKey?: PublicKey;
6120
+ options?: InputSimulateTransactionOptions;
6121
+ }): Promise<Array<UserTransactionResponse>>;
6122
+ /**
6123
+ * Simulate a multi agent transaction
6124
+ *
6125
+ * @param args.signerPublicKey The signer public key
6126
+ * @param args.transaction An instance of a raw transaction
6127
+ * @param args.secondarySignersPublicKeys An array of the secondary signers public keys
6128
+ * @param args.options optional. Optional transaction configurations
6129
+ * @param args.feePayerPublicKey optional. The fee payer public key if it is a fee payer transaction
6130
+ *
6131
+ * @returns Array<UserTransactionResponse>
6132
+ */
6133
+ multiAgent(args: {
6134
+ signerPublicKey: PublicKey;
6135
+ transaction: AnyRawTransaction;
6136
+ secondarySignersPublicKeys: Array<PublicKey>;
6137
+ feePayerPublicKey?: PublicKey;
6138
+ options?: InputSimulateTransactionOptions;
6139
+ }): Promise<Array<UserTransactionResponse>>;
6140
+ }
6141
+
6142
+ /**
6143
+ * A class to handle all `Submit` transaction operations
6144
+ */
6145
+ declare class Submit {
6146
+ readonly config: AptosConfig;
6147
+ constructor(config: AptosConfig);
6148
+ /**
6149
+ * Submit a simple transaction
6150
+ *
6151
+ * @param args.transaction An instance of a raw transaction
6152
+ * @param args.senderAuthenticator optional. The sender account authenticator
6153
+ * @param args.feePayerAuthenticator optional. The fee payer account authenticator if it is a fee payer transaction
6154
+ *
6155
+ * @returns PendingTransactionResponse
6156
+ */
6157
+ simple(args: {
6158
+ transaction: AnyRawTransaction;
6159
+ senderAuthenticator: AccountAuthenticator;
6160
+ feePayerAuthenticator?: AccountAuthenticator;
6161
+ }): Promise<PendingTransactionResponse>;
6162
+ /**
6163
+ * Submit a multi agent transaction
6164
+ *
6165
+ * @param args.transaction An instance of a raw transaction
6166
+ * @param args.senderAuthenticator optional. The sender account authenticator
6167
+ * @param args.additionalSignersAuthenticators An array of the secondary signers account authenticators
6168
+ * @param args.feePayerAuthenticator optional. The fee payer account authenticator if it is a fee payer transaction
6169
+ *
6170
+ * @returns PendingTransactionResponse
6171
+ */
6172
+ multiAgent(args: {
6173
+ transaction: AnyRawTransaction;
6174
+ senderAuthenticator: AccountAuthenticator;
6175
+ additionalSignersAuthenticators: Array<AccountAuthenticator>;
6176
+ feePayerAuthenticator?: AccountAuthenticator;
6177
+ }): Promise<PendingTransactionResponse>;
6178
+ }
6179
+
5823
6180
  declare class Transaction {
5824
6181
  readonly config: AptosConfig;
6182
+ readonly build: Build;
6183
+ readonly simulate: Simulate;
6184
+ readonly submit: Submit;
5825
6185
  constructor(config: AptosConfig);
5826
6186
  /**
5827
6187
  * Queries on-chain transactions. This function will not return pending
@@ -5920,11 +6280,63 @@ declare class Transaction {
5920
6280
  getSigningMessage(args: {
5921
6281
  transaction: AnyRawTransaction;
5922
6282
  }): Uint8Array;
5923
- }
5924
-
5925
- declare class TransactionSubmission {
5926
- readonly config: AptosConfig;
5927
- constructor(config: AptosConfig);
6283
+ /**
6284
+ * Generates a transaction to publish a move package to chain.
6285
+ *
6286
+ * To get the `metadataBytes` and `byteCode`, can compile using Aptos CLI with command
6287
+ * `aptos move compile --save-metadata ...`,
6288
+ * For more info {@link https://aptos.dev/tutorials/your-first-dapp/#step-4-publish-a-move-module}
6289
+ *
6290
+ * @param args.account The publisher account
6291
+ * @param args.metadataBytes The package metadata bytes
6292
+ * @param args.moduleBytecode An array of the bytecode of each module in the package in compiler output order
6293
+ *
6294
+ * @returns A SimpleTransaction that can be simulated or submitted to chain
6295
+ */
6296
+ publishPackageTransaction(args: {
6297
+ account: AccountAddressInput;
6298
+ metadataBytes: HexInput;
6299
+ moduleBytecode: Array<HexInput>;
6300
+ options?: InputGenerateTransactionOptions;
6301
+ }): Promise<SimpleTransaction>;
6302
+ /**
6303
+ * Rotate an account's auth key. After rotation, only the new private key can be used to sign txns for
6304
+ * the account.
6305
+ * Note: Only legacy Ed25519 scheme is supported for now.
6306
+ * More info: {@link https://aptos.dev/guides/account-management/key-rotation/}
6307
+ * @param args.fromAccount The account to rotate the auth key for
6308
+ * @param args.toNewPrivateKey The new private key to rotate to
6309
+ *
6310
+ * @returns PendingTransactionResponse
6311
+ */
6312
+ rotateAuthKey(args: {
6313
+ fromAccount: Account$1;
6314
+ toNewPrivateKey: PrivateKey;
6315
+ }): Promise<TransactionResponse>;
6316
+ /**
6317
+ * Sign a transaction that can later be submitted to chain
6318
+ *
6319
+ * @param args.signer The signer account
6320
+ * @param args.transaction A raw transaction to sign on
6321
+ *
6322
+ * @returns AccountAuthenticator
6323
+ */
6324
+ sign(args: {
6325
+ signer: Account$1;
6326
+ transaction: AnyRawTransaction;
6327
+ }): AccountAuthenticator;
6328
+ /**
6329
+ * Sign a transaction as a fee payer that can later be submitted to chain
6330
+ *
6331
+ * @param args.signer The fee payer signer account
6332
+ * @param args.transaction A raw transaction to sign on
6333
+ *
6334
+ * @returns AccountAuthenticator
6335
+ */
6336
+ signAsFeePayer(args: {
6337
+ signer: Account$1;
6338
+ transaction: AnyRawTransaction;
6339
+ }): AccountAuthenticator;
5928
6340
  /**
5929
6341
  * Batch transactions for a single account.
5930
6342
  *
@@ -5965,116 +6377,6 @@ declare class TransactionSubmission {
5965
6377
  signer: Account$1;
5966
6378
  transaction: AnyRawTransaction;
5967
6379
  }): Promise<PendingTransactionResponse>;
5968
- /**
5969
- * Generates a transaction to publish a move package to chain.
5970
- *
5971
- * To get the `metadataBytes` and `byteCode`, can compile using Aptos CLI with command
5972
- * `aptos move compile --save-metadata ...`,
5973
- * For more info {@link https://aptos.dev/tutorials/your-first-dapp/#step-4-publish-a-move-module}
5974
- *
5975
- * @param args.account The publisher account
5976
- * @param args.metadataBytes The package metadata bytes
5977
- * @param args.moduleBytecode An array of the bytecode of each module in the package in compiler output order
5978
- *
5979
- * @returns A SingleSignerTransaction that can be simulated or submitted to chain
5980
- */
5981
- publishPackageTransaction(args: {
5982
- account: AccountAddressInput;
5983
- metadataBytes: HexInput;
5984
- moduleBytecode: Array<HexInput>;
5985
- options?: InputGenerateTransactionOptions;
5986
- }): Promise<SingleSignerTransaction>;
5987
- /**
5988
- * Rotate an account's auth key. After rotation, only the new private key can be used to sign txns for
5989
- * the account.
5990
- * Note: Only legacy Ed25519 scheme is supported for now.
5991
- * More info: {@link https://aptos.dev/guides/account-management/key-rotation/}
5992
- * @param args.fromAccount The account to rotate the auth key for
5993
- * @param args.toNewPrivateKey The new private key to rotate to
5994
- *
5995
- * @returns PendingTransactionResponse
5996
- */
5997
- rotateAuthKey(args: {
5998
- fromAccount: Account$1;
5999
- toNewPrivateKey: PrivateKey;
6000
- }): Promise<TransactionResponse>;
6001
- }
6002
-
6003
- /**
6004
- * A class to handle all `Build` transaction operations
6005
- */
6006
- declare class Build {
6007
- readonly config: AptosConfig;
6008
- constructor(config: AptosConfig);
6009
- transaction(args: {
6010
- sender: AccountAddressInput;
6011
- data: InputGenerateTransactionPayloadData;
6012
- options?: InputGenerateTransactionOptions;
6013
- withFeePayer?: boolean;
6014
- }): Promise<SingleSignerTransaction>;
6015
- multiAgentTransaction(args: {
6016
- sender: AccountAddressInput;
6017
- data: InputGenerateTransactionPayloadData;
6018
- secondarySignerAddresses: AccountAddressInput[];
6019
- options?: InputGenerateTransactionOptions;
6020
- withFeePayer?: boolean;
6021
- }): Promise<MultiAgentTransaction>;
6022
- }
6023
-
6024
- /**
6025
- * A class to handle all `Sign` transaction operations
6026
- */
6027
- declare class Sign {
6028
- readonly config: AptosConfig;
6029
- constructor(config: AptosConfig);
6030
- transaction(args: {
6031
- signer: Account$1;
6032
- transaction: AnyRawTransaction;
6033
- }): AccountAuthenticator;
6034
- transactionAsFeePayer(args: {
6035
- signer: Account$1;
6036
- transaction: AnyRawTransaction;
6037
- }): AccountAuthenticator;
6038
- }
6039
-
6040
- /**
6041
- * A class to handle all `Simulate` transaction operations
6042
- */
6043
- declare class Simulate {
6044
- readonly config: AptosConfig;
6045
- constructor(config: AptosConfig);
6046
- transaction(args: {
6047
- signerPublicKey: PublicKey;
6048
- transaction: AnyRawTransaction;
6049
- feePayerPublicKey?: PublicKey;
6050
- options?: InputSimulateTransactionOptions;
6051
- }): Promise<Array<UserTransactionResponse>>;
6052
- multiAgentTransaction(args: {
6053
- signerPublicKey: PublicKey;
6054
- transaction: AnyRawTransaction;
6055
- secondarySignersPublicKeys: Array<PublicKey>;
6056
- feePayerPublicKey?: PublicKey;
6057
- options?: InputSimulateTransactionOptions;
6058
- }): Promise<Array<UserTransactionResponse>>;
6059
- }
6060
-
6061
- /**
6062
- * A class to handle all `Submit` transaction operations
6063
- */
6064
- declare class Submit {
6065
- readonly config: AptosConfig;
6066
- constructor(config: AptosConfig);
6067
- transaction(args: {
6068
- transaction: AnyRawTransaction;
6069
- senderAuthenticator: AccountAuthenticator;
6070
- feePayerAuthenticator?: AccountAuthenticator;
6071
- }): Promise<PendingTransactionResponse>;
6072
- multiAgentTransaction(args: {
6073
- transaction: AnyRawTransaction;
6074
- senderAuthenticator: AccountAuthenticator;
6075
- additionalSignersAuthenticators: Array<AccountAuthenticator>;
6076
- feePayerAuthenticator?: AccountAuthenticator;
6077
- }): Promise<PendingTransactionResponse>;
6078
6380
  }
6079
6381
 
6080
6382
  /**
@@ -6096,14 +6398,9 @@ declare class Aptos {
6096
6398
  readonly general: General;
6097
6399
  readonly staking: Staking;
6098
6400
  readonly transaction: Transaction;
6099
- readonly transactionSubmission: TransactionSubmission;
6100
- readonly build: Build;
6101
- readonly sign: Sign;
6102
- readonly simulate: Simulate;
6103
- readonly submit: Submit;
6104
6401
  constructor(settings?: AptosConfig);
6105
6402
  }
6106
- interface Aptos extends Account, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction, ANS, TransactionSubmission {
6403
+ interface Aptos extends Account, ANS, Coin, DigitalAsset, Event, Faucet, FungibleAsset, General, Staking, Transaction {
6107
6404
  }
6108
6405
 
6109
6406
  /**
@@ -6463,7 +6760,7 @@ declare class TransactionWorker {
6463
6760
  * @param sequenceNumber a sequence number the transaction will be generated with
6464
6761
  * @returns
6465
6762
  */
6466
- generateNextTransaction(account: Account$1, sequenceNumber: bigint): Promise<SingleSignerTransaction | undefined>;
6763
+ generateNextTransaction(account: Account$1, sequenceNumber: bigint): Promise<SimpleTransaction | undefined>;
6467
6764
  /**
6468
6765
  * Starts transaction submission and transaction processing.
6469
6766
  */
@@ -6478,4 +6775,4 @@ declare class TransactionWorker {
6478
6775
  stop(): void;
6479
6776
  }
6480
6777
 
6481
- export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, AccountData, AccountSequenceNumber, AccountSignature, AddressInvalidReason, AnyNumber, AnyPublicKey, AnyPublicKeyVariant, AnyRawTransaction, AnyRawTransactionInstance, AnySignature, AnySignatureVariant, AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, AptosRequest, AptosResponse, AptosSettings, AuthenticationKey, AuthenticationKeyScheme, Block, BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, Client, ClientConfig, ClientRequest, ClientResponse, CommittedTransactionResponse, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_NETWORK, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, DecodedTableData, DeletedTableData, DeriveScheme, DerivedKeys, Deserializable, Deserializer, DirectWriteSet, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, EntryFunction, EntryFunctionABI, EntryFunctionArgument, EntryFunctionArgumentTypes, EntryFunctionBytes, EntryFunctionPayloadResponse, Event$1 as Event, EventGuid, FeePayerRawTransaction, FixedBytes, GasEstimation, GenerateAccount, GenerateAccountWithEd25519, GenerateAccountWithSingleSignerSecp256k1Key, GenesisPayload, GenesisTransactionResponse, GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetAptosRequestOptions, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetRequestOptions, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, HARDENED_OFFSET, Hex, HexInput, HexInvalidReason, Identifier, InputEntryFunctionData, InputEntryFunctionDataWithRemoteABI, InputGenerateMultiAgentRawTransactionArgs, InputGenerateMultiAgentRawTransactionData, InputGenerateRawTransactionArgs, InputGenerateSingleSignerRawTransactionArgs, InputGenerateSingleSignerRawTransactionData, InputGenerateTransactionData, InputGenerateTransactionOptions, InputGenerateTransactionPayloadData, InputGenerateTransactionPayloadDataWithRemoteABI, InputMultiSigData, InputMultiSigDataWithRemoteABI, InputScriptData, InputSimulateTransactionData, InputSimulateTransactionOptions, InputSubmitTransactionData, InputViewRequestData, KeyType, LedgerInfo, LedgerVersionArg, MimeType, ModuleId, MoveAbility, MoveAddressType, MoveFunction, MoveFunctionGenericTypeParam, MoveFunctionId, MoveFunctionVisibility, MoveModule, MoveModuleBytecode, MoveModuleId, MoveObjectType, MoveOption, MoveOptionType, MoveResource, MoveScriptBytecode, MoveString, MoveStruct, MoveStructField, MoveStructId, MoveStructType, MoveType, MoveUint128Type, MoveUint16Type, MoveUint256Type, MoveUint32Type, MoveUint64Type, MoveUint8Type, MoveValue, MoveVector, MultiAgentRawTransaction, MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, MultisigPayloadResponse, MultisigTransactionPayload, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, OrderBy, OrderByArg, OrderByValue, PaginationArgs, ParsingError, ParsingResult, PendingTransactionResponse, PostAptosRequestOptions, PostRequestOptions, PrivateKey, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, ScriptFunctionArgument, ScriptFunctionArgumentTypes, ScriptPayloadResponse, ScriptTransactionArgumentVariants, ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, SimpleEntryFunctionArgumentTypes, SingleSignerTransaction, StateCheckpointTransactionResponse, StructTag, TableItemRequest, TokenStandard, TokenStandardArg, TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, TransactionEd25519Signature, TransactionFeePayerSignature, TransactionMultiAgentSignature, TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultisig, TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, TransactionResponse, TransactionResponseType, TransactionSecp256k1Signature, TransactionSignature, TransactionVariants, TransactionWorker, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, Uint128, Uint16, Uint256, Uint32, Uint64, Uint8, UserTransactionResponse, ViewRequest, WaitForTransactionOptions, WhereArg, WriteSet, WriteSetChange, WriteSetChangeDeleteModule, WriteSetChangeDeleteResource, WriteSetChangeDeleteTableItem, WriteSetChangeWriteModule, WriteSetChangeWriteResource, WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };
6778
+ export { APTOS_BIP44_REGEX, APTOS_COIN, APTOS_HARDENED_REGEX, Account$1 as Account, AccountAddress, type AccountAddressInput, AccountAuthenticator, AccountAuthenticatorEd25519, AccountAuthenticatorMultiEd25519, AccountAuthenticatorMultiKey, AccountAuthenticatorSingleKey, AccountAuthenticatorVariant, type AccountData, AccountSequenceNumber, type AccountSignature, AddressInvalidReason, type AnyNumber, AnyPublicKey, AnyPublicKeyVariant, type AnyRawTransaction, type AnyRawTransactionInstance, AnySignature, AnySignatureVariant, type AnyTransactionPayloadInstance, Aptos, AptosApiError, AptosApiType, AptosConfig, type AptosRequest, type AptosResponse, type AptosSettings, AuthenticationKey, type AuthenticationKeyScheme, type Block, type BlockMetadataTransactionResponse, Bool, CKDPriv, ChainId, type Client, type ClientConfig, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_NETWORK, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, type DecodedTableData, type DeletedTableData, DeriveScheme, type DerivedKeys, type Deserializable, Deserializer, type DirectWriteSet, Ed25519PrivateKey, Ed25519PublicKey, Ed25519Signature, EntryFunction, type EntryFunctionABI, type EntryFunctionArgument, type EntryFunctionArgumentTypes, EntryFunctionBytes, type EntryFunctionPayloadResponse, type Event$1 as Event, type EventGuid, FeePayerRawTransaction, FixedBytes, type GasEstimation, type GenerateAccount, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenesisPayload, type GenesisTransactionResponse, type GetANSNameResponse, type GetAccountCoinsDataResponse, type GetAccountCollectionsWithOwnedTokenResponse, type GetAccountOwnedObjectsResponse, type GetAccountOwnedTokensFromCollectionResponse, type GetAccountOwnedTokensQueryResponse, type GetAptosRequestOptions, type GetChainTopUserTransactionsResponse, type GetCollectionDataResponse, type GetCurrentFungibleAssetBalancesResponse, type GetCurrentTokenOwnershipResponse, type GetDelegatedStakingActivitiesResponse, type GetEventsResponse, type GetFungibleAssetActivitiesResponse, type GetFungibleAssetMetadataResponse, type GetNumberOfDelegatorsResponse, type GetOwnedTokensResponse, type GetProcessorStatusResponse, type GetRequestOptions, type GetTokenActivityResponse, type GetTokenDataResponse, type GraphqlQuery, HARDENED_OFFSET, Hex, type HexInput, HexInvalidReason, Identifier, type InputEntryFunctionData, type InputEntryFunctionDataWithRemoteABI, type InputGenerateMultiAgentRawTransactionArgs, type InputGenerateMultiAgentRawTransactionData, type InputGenerateRawTransactionArgs, type InputGenerateSingleSignerRawTransactionArgs, type InputGenerateSingleSignerRawTransactionData, type InputGenerateTransactionData, type InputGenerateTransactionOptions, type InputGenerateTransactionPayloadData, type InputGenerateTransactionPayloadDataWithRemoteABI, type InputMultiSigData, type InputMultiSigDataWithRemoteABI, type InputScriptData, type InputSimulateTransactionData, type InputSimulateTransactionOptions, type InputSubmitTransactionData, type InputViewRequestData, KeyType, type LedgerInfo, type LedgerVersionArg, MimeType, ModuleId, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, MoveOption, type MoveOptionType, type MoveResource, type MoveScriptBytecode, MoveString, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, MoveVector, MultiAgentRawTransaction, type MultiAgentTransaction, MultiEd25519PublicKey, MultiEd25519Signature, MultiKey, MultiSig, type MultisigPayloadResponse, MultisigTransactionPayload, Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, type OrderBy, type OrderByArg, type OrderByValue, type PaginationArgs, ParsingError, type ParsingResult, type PendingTransactionResponse, type PostAptosRequestOptions, type PostRequestOptions, PrivateKey, ProcessorType, PublicKey, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT, RawTransaction, RawTransactionWithData, RoleType, RotationProofChallenge, Script, type ScriptFunctionArgument, type ScriptFunctionArgumentTypes, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, Secp256k1PrivateKey, Secp256k1PublicKey, Secp256k1Signature, Serializable, Serializer, Signature, SignedTransaction, SigningScheme, SigningSchemeInput, type SimpleEntryFunctionArgumentTypes, type SimpleTransaction, type StateCheckpointTransactionResponse, StructTag, type TableItemRequest, type TokenStandard, type TokenStandardArg, type TransactionArgument, TransactionAuthenticator, TransactionAuthenticatorEd25519, TransactionAuthenticatorFeePayer, TransactionAuthenticatorMultiAgent, TransactionAuthenticatorMultiEd25519, TransactionAuthenticatorSingleSender, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, TransactionPayload, TransactionPayloadEntryFunction, TransactionPayloadMultisig, type TransactionPayloadResponse, TransactionPayloadScript, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TransactionWorker, TypeTag, TypeTagAddress, TypeTagBool, TypeTagGeneric, TypeTagParserError, TypeTagParserErrorType, TypeTagReference, TypeTagSigner, TypeTagStruct, TypeTagU128, TypeTagU16, TypeTagU256, TypeTagU32, TypeTagU64, TypeTagU8, TypeTagVariants, TypeTagVector, U128, U16, U256, U32, U64, U8, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ViewRequest, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, aptosCoinStructTag, aptosRequest, buildTransaction, checkOrConvertArgument, convertArgument, deriveKey, deriveTransactionType, deserializeFromScriptArgument, ensureBoolean, fetchEntryFunctionAbi, findFirstNonSignerArg, generateMultiSignersSignedTransaction, generateRawTransaction, generateSignedTransaction, generateSignedTransactionForSimulation, generateSigningMessage, generateTransactionPayload, generateTransactionPayloadWithABI, get, getAptosFullNode, getAuthenticatorForSimulation, getFunctionParts, isBcsAddress, isBcsBool, isBcsFixedBytes, isBcsString, isBcsU128, isBcsU16, isBcsU256, isBcsU32, isBcsU64, isBcsU8, isBlockMetadataTransactionResponse, isBool, isEd25519Signature, isEncodedEntryFunctionArgument, isFeePayerSignature, isGenesisTransactionResponse, isLargeNumber, isMultiAgentSignature, isMultiEd25519Signature, isNull, isNumber, isPendingTransactionResponse, isScriptDataInput, isSecp256k1Signature, isStateCheckpointTransactionResponse, isString, isUserTransactionResponse, isValidBIP44Path, isValidHardenedPath, mnemonicToSeed, objectStructTag, optionStructTag, outOfRangeErrorMessage, paginateWithCursor, parseTypeTag, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, request, sign, splitPath, standardizeTypeTags, stringStructTag, throwTypeMismatch, validateNumberInRange };