@aptos-labs/ts-sdk 5.2.0 → 6.0.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 (333) hide show
  1. package/README.md +18 -0
  2. package/dist/common/{account-DvGDel4s.d.ts → account-Dpz_N9h-.d.ts} +225 -7
  3. package/dist/common/chunk-4RHBBU7C.js +4 -0
  4. package/dist/common/chunk-4RHBBU7C.js.map +1 -0
  5. package/dist/common/cli/index.d.ts +1 -1
  6. package/dist/common/cli/index.js +1 -1
  7. package/dist/common/cli/index.js.map +1 -1
  8. package/dist/common/index.d.ts +228 -28
  9. package/dist/common/index.js +39 -34
  10. package/dist/common/index.js.map +1 -1
  11. package/dist/esm/{Ed25519Account-C25CwEJi.d.mts → Ed25519Account-BW_kXHC2.d.mts} +1 -1
  12. package/dist/esm/account/AbstractKeylessAccount.d.mts +3 -3
  13. package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
  14. package/dist/esm/account/AbstractedAccount.d.mts +2 -2
  15. package/dist/esm/account/AbstractedAccount.mjs +1 -1
  16. package/dist/esm/account/Account.d.mts +2 -2
  17. package/dist/esm/account/Account.mjs +1 -1
  18. package/dist/esm/account/AccountUtils.d.mts +3 -3
  19. package/dist/esm/account/AccountUtils.mjs +1 -1
  20. package/dist/esm/account/DerivableAbstractedAccount.d.mts +2 -2
  21. package/dist/esm/account/DerivableAbstractedAccount.mjs +1 -1
  22. package/dist/esm/account/Ed25519Account.d.mts +2 -2
  23. package/dist/esm/account/Ed25519Account.mjs +1 -1
  24. package/dist/esm/account/EphemeralKeyPair.d.mts +1 -1
  25. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  26. package/dist/esm/account/FederatedKeylessAccount.d.mts +3 -3
  27. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  28. package/dist/esm/account/KeylessAccount.d.mts +3 -3
  29. package/dist/esm/account/KeylessAccount.mjs +1 -1
  30. package/dist/esm/account/MultiEd25519Account.d.mts +2 -2
  31. package/dist/esm/account/MultiEd25519Account.mjs +1 -1
  32. package/dist/esm/account/MultiKeyAccount.d.mts +3 -3
  33. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  34. package/dist/esm/account/SingleKeyAccount.d.mts +2 -2
  35. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  36. package/dist/esm/account/index.d.mts +3 -3
  37. package/dist/esm/account/index.mjs +1 -1
  38. package/dist/esm/account/utils.d.mts +1 -1
  39. package/dist/esm/account/utils.mjs +1 -1
  40. package/dist/esm/{account-Bwu9vUe3.d.mts → account-CcxnCdYZ.d.mts} +220 -7
  41. package/dist/esm/api/account/abstraction.d.mts +1 -1
  42. package/dist/esm/api/account/abstraction.mjs +1 -1
  43. package/dist/esm/api/account.d.mts +2 -2
  44. package/dist/esm/api/account.mjs +1 -1
  45. package/dist/esm/api/ans.d.mts +92 -26
  46. package/dist/esm/api/ans.mjs +1 -1
  47. package/dist/esm/api/aptos.d.mts +4 -3
  48. package/dist/esm/api/aptos.mjs +1 -1
  49. package/dist/esm/api/aptosConfig.d.mts +1 -1
  50. package/dist/esm/api/coin.d.mts +1 -1
  51. package/dist/esm/api/coin.mjs +1 -1
  52. package/dist/esm/api/digitalAsset.d.mts +2 -2
  53. package/dist/esm/api/digitalAsset.mjs +1 -1
  54. package/dist/esm/api/faucet.d.mts +1 -1
  55. package/dist/esm/api/faucet.mjs +1 -1
  56. package/dist/esm/api/fungibleAsset.d.mts +2 -2
  57. package/dist/esm/api/fungibleAsset.mjs +1 -1
  58. package/dist/esm/api/general.d.mts +1 -1
  59. package/dist/esm/api/general.mjs +1 -1
  60. package/dist/esm/api/index.d.mts +4 -3
  61. package/dist/esm/api/index.mjs +1 -1
  62. package/dist/esm/api/keyless.d.mts +3 -3
  63. package/dist/esm/api/keyless.mjs +1 -1
  64. package/dist/esm/api/object.d.mts +1 -1
  65. package/dist/esm/api/object.mjs +1 -1
  66. package/dist/esm/api/staking.d.mts +1 -1
  67. package/dist/esm/api/staking.mjs +1 -1
  68. package/dist/esm/api/table.d.mts +1 -1
  69. package/dist/esm/api/table.mjs +1 -1
  70. package/dist/esm/api/transaction.d.mts +2 -2
  71. package/dist/esm/api/transaction.mjs +1 -1
  72. package/dist/esm/api/transactionSubmission/build.d.mts +1 -1
  73. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  74. package/dist/esm/api/transactionSubmission/helpers.d.mts +1 -1
  75. package/dist/esm/api/transactionSubmission/management.d.mts +2 -2
  76. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  77. package/dist/esm/api/transactionSubmission/sign.d.mts +2 -2
  78. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  79. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  80. package/dist/esm/api/transactionSubmission/simulate.d.mts +1 -1
  81. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  82. package/dist/esm/api/transactionSubmission/submit.d.mts +1 -1
  83. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  84. package/dist/esm/api/utils.d.mts +1 -1
  85. package/dist/esm/api/utils.mjs +1 -1
  86. package/dist/esm/bcs/consts.d.mts +1 -1
  87. package/dist/esm/bcs/deserializer.d.mts +1 -1
  88. package/dist/esm/bcs/index.d.mts +1 -1
  89. package/dist/esm/bcs/index.mjs +1 -1
  90. package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +1 -1
  91. package/dist/esm/bcs/serializable/fixedBytes.d.mts +1 -1
  92. package/dist/esm/bcs/serializable/movePrimitives.d.mts +1 -1
  93. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  94. package/dist/esm/bcs/serializable/moveStructs.d.mts +1 -1
  95. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  96. package/dist/esm/bcs/serializer.d.mts +1 -1
  97. package/dist/esm/chunk-2DPQMXUG.mjs +4 -0
  98. package/dist/esm/chunk-2DPQMXUG.mjs.map +1 -0
  99. package/dist/esm/chunk-54C2P534.mjs +2 -0
  100. package/dist/esm/chunk-54C2P534.mjs.map +1 -0
  101. package/dist/esm/{chunk-IKTH33UN.mjs → chunk-56IXVVXX.mjs} +2 -2
  102. package/dist/esm/{chunk-K2TQQFRV.mjs → chunk-76SVQZDX.mjs} +2 -2
  103. package/dist/esm/{chunk-A2G3V23K.mjs → chunk-BGZDJ5SM.mjs} +2 -2
  104. package/dist/esm/{chunk-TRIYATBI.mjs → chunk-CUXCVNES.mjs} +2 -2
  105. package/dist/esm/chunk-DE5K76I2.mjs +1 -0
  106. package/dist/esm/{chunk-UXUMXAUZ.mjs → chunk-F3NI6N7R.mjs} +2 -2
  107. package/dist/esm/chunk-FW6UHAQV.mjs +2 -0
  108. package/dist/esm/{chunk-VS5NYRHW.mjs.map → chunk-FW6UHAQV.mjs.map} +1 -1
  109. package/dist/esm/{chunk-J426EZGD.mjs → chunk-JN65XG2P.mjs} +2 -2
  110. package/dist/esm/{chunk-UL777LTI.mjs → chunk-LS2HRAVW.mjs} +24 -19
  111. package/dist/esm/chunk-LS2HRAVW.mjs.map +1 -0
  112. package/dist/esm/chunk-NK3Y3PV3.mjs +2 -0
  113. package/dist/esm/{chunk-5ABS6RDR.mjs.map → chunk-NK3Y3PV3.mjs.map} +1 -1
  114. package/dist/esm/chunk-NP2IAUME.mjs +2 -0
  115. package/dist/esm/chunk-NP2IAUME.mjs.map +1 -0
  116. package/dist/esm/{chunk-G2VFBYHG.mjs → chunk-NTLOKAPD.mjs} +2 -2
  117. package/dist/esm/{chunk-IFWE34P5.mjs → chunk-PXJEKGEG.mjs} +2 -2
  118. package/dist/esm/chunk-QEHKRR3I.mjs +2 -0
  119. package/dist/esm/chunk-QEHKRR3I.mjs.map +1 -0
  120. package/dist/esm/chunk-RQN6LA7E.mjs +2 -0
  121. package/dist/esm/{chunk-AEXYYFIZ.mjs.map → chunk-RQN6LA7E.mjs.map} +1 -1
  122. package/dist/esm/{chunk-HIAEKFG6.mjs → chunk-WZ6FL7CH.mjs} +2 -2
  123. package/dist/esm/{chunk-LND3GTJ3.mjs → chunk-X674XJNJ.mjs} +2 -2
  124. package/dist/esm/cli/index.d.mts +1 -1
  125. package/dist/esm/cli/index.mjs +1 -1
  126. package/dist/esm/cli/localNode.mjs +1 -1
  127. package/dist/esm/cli/move.d.mts +1 -1
  128. package/dist/esm/client/core.d.mts +1 -1
  129. package/dist/esm/client/core.mjs +1 -1
  130. package/dist/esm/client/get.d.mts +1 -1
  131. package/dist/esm/client/get.mjs +1 -1
  132. package/dist/esm/client/index.d.mts +1 -1
  133. package/dist/esm/client/index.mjs +1 -1
  134. package/dist/esm/client/post.d.mts +1 -1
  135. package/dist/esm/client/post.mjs +1 -1
  136. package/dist/esm/core/account/index.d.mts +1 -1
  137. package/dist/esm/core/account/index.mjs +1 -1
  138. package/dist/esm/core/account/utils/address.d.mts +1 -1
  139. package/dist/esm/core/account/utils/address.mjs +1 -1
  140. package/dist/esm/core/account/utils/index.d.mts +1 -1
  141. package/dist/esm/core/account/utils/index.mjs +1 -1
  142. package/dist/esm/core/accountAddress.d.mts +1 -1
  143. package/dist/esm/core/accountAddress.mjs +1 -1
  144. package/dist/esm/core/authenticationKey.d.mts +1 -1
  145. package/dist/esm/core/authenticationKey.mjs +1 -1
  146. package/dist/esm/core/crypto/abstraction.d.mts +1 -1
  147. package/dist/esm/core/crypto/abstraction.mjs +1 -1
  148. package/dist/esm/core/crypto/deserializationUtils.d.mts +1 -1
  149. package/dist/esm/core/crypto/deserializationUtils.mjs +1 -1
  150. package/dist/esm/core/crypto/ed25519.d.mts +1 -1
  151. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  152. package/dist/esm/core/crypto/ephemeral.d.mts +1 -1
  153. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  154. package/dist/esm/core/crypto/federatedKeyless.d.mts +2 -2
  155. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  156. package/dist/esm/core/crypto/index.d.mts +2 -2
  157. package/dist/esm/core/crypto/index.mjs +1 -1
  158. package/dist/esm/core/crypto/keyless.d.mts +2 -2
  159. package/dist/esm/core/crypto/keyless.mjs +1 -1
  160. package/dist/esm/core/crypto/multiEd25519.d.mts +1 -1
  161. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  162. package/dist/esm/core/crypto/multiKey.d.mts +1 -1
  163. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  164. package/dist/esm/core/crypto/privateKey.d.mts +1 -1
  165. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  166. package/dist/esm/core/crypto/proof.d.mts +1 -1
  167. package/dist/esm/core/crypto/proof.mjs +1 -1
  168. package/dist/esm/core/crypto/publicKey.d.mts +1 -1
  169. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  170. package/dist/esm/core/crypto/secp256k1.d.mts +1 -1
  171. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  172. package/dist/esm/core/crypto/secp256r1.d.mts +1 -1
  173. package/dist/esm/core/crypto/secp256r1.mjs +1 -1
  174. package/dist/esm/core/crypto/signature.d.mts +1 -1
  175. package/dist/esm/core/crypto/signature.mjs +1 -1
  176. package/dist/esm/core/crypto/singleKey.d.mts +1 -1
  177. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  178. package/dist/esm/core/crypto/types.d.mts +1 -1
  179. package/dist/esm/core/crypto/utils.d.mts +1 -1
  180. package/dist/esm/core/crypto/utils.mjs +1 -1
  181. package/dist/esm/core/hex.d.mts +1 -1
  182. package/dist/esm/core/index.d.mts +2 -2
  183. package/dist/esm/core/index.mjs +1 -1
  184. package/dist/esm/errors/index.d.mts +1 -1
  185. package/dist/esm/errors/index.mjs +1 -1
  186. package/dist/esm/{federatedKeyless-BfOrG2BM.d.mts → federatedKeyless-BzaYmP03.d.mts} +1 -1
  187. package/dist/esm/index.d.mts +5 -4
  188. package/dist/esm/index.mjs +1 -1
  189. package/dist/esm/internal/abstraction.d.mts +1 -1
  190. package/dist/esm/internal/abstraction.mjs +1 -1
  191. package/dist/esm/internal/account.d.mts +2 -2
  192. package/dist/esm/internal/account.mjs +1 -1
  193. package/dist/esm/internal/ans.d.mts +85 -33
  194. package/dist/esm/internal/ans.mjs +1 -1
  195. package/dist/esm/internal/coin.d.mts +1 -1
  196. package/dist/esm/internal/coin.mjs +1 -1
  197. package/dist/esm/internal/digitalAsset.d.mts +2 -2
  198. package/dist/esm/internal/digitalAsset.mjs +1 -1
  199. package/dist/esm/internal/faucet.d.mts +1 -1
  200. package/dist/esm/internal/faucet.mjs +1 -1
  201. package/dist/esm/internal/fungibleAsset.d.mts +2 -2
  202. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  203. package/dist/esm/internal/general.d.mts +1 -1
  204. package/dist/esm/internal/general.mjs +1 -1
  205. package/dist/esm/internal/keyless.d.mts +3 -3
  206. package/dist/esm/internal/keyless.mjs +1 -1
  207. package/dist/esm/internal/object.d.mts +1 -1
  208. package/dist/esm/internal/object.mjs +1 -1
  209. package/dist/esm/internal/staking.d.mts +1 -1
  210. package/dist/esm/internal/staking.mjs +1 -1
  211. package/dist/esm/internal/table.d.mts +1 -1
  212. package/dist/esm/internal/table.mjs +1 -1
  213. package/dist/esm/internal/transaction.d.mts +1 -1
  214. package/dist/esm/internal/transaction.mjs +1 -1
  215. package/dist/esm/internal/transactionSubmission.d.mts +2 -2
  216. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  217. package/dist/esm/internal/utils/index.d.mts +1 -1
  218. package/dist/esm/internal/utils/index.mjs +1 -1
  219. package/dist/esm/internal/utils/utils.d.mts +1 -1
  220. package/dist/esm/internal/utils/utils.mjs +1 -1
  221. package/dist/esm/internal/view.d.mts +1 -1
  222. package/dist/esm/internal/view.mjs +1 -1
  223. package/dist/esm/transactions/authenticator/account.d.mts +1 -1
  224. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  225. package/dist/esm/transactions/authenticator/index.d.mts +1 -1
  226. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  227. package/dist/esm/transactions/authenticator/transaction.d.mts +1 -1
  228. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  229. package/dist/esm/transactions/index.d.mts +2 -2
  230. package/dist/esm/transactions/index.mjs +1 -1
  231. package/dist/esm/transactions/instances/chainId.d.mts +1 -1
  232. package/dist/esm/transactions/instances/identifier.d.mts +1 -1
  233. package/dist/esm/transactions/instances/index.d.mts +1 -1
  234. package/dist/esm/transactions/instances/index.mjs +1 -1
  235. package/dist/esm/transactions/instances/moduleId.d.mts +1 -1
  236. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  237. package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +1 -1
  238. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  239. package/dist/esm/transactions/instances/rawTransaction.d.mts +1 -1
  240. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  241. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +1 -1
  242. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  243. package/dist/esm/transactions/instances/signedTransaction.d.mts +1 -1
  244. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  245. package/dist/esm/transactions/instances/simpleTransaction.d.mts +1 -1
  246. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  247. package/dist/esm/transactions/instances/transactionArgument.d.mts +1 -1
  248. package/dist/esm/transactions/instances/transactionPayload.d.mts +1 -1
  249. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  250. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +2 -2
  251. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  252. package/dist/esm/transactions/management/index.d.mts +2 -2
  253. package/dist/esm/transactions/management/index.mjs +1 -1
  254. package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
  255. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  256. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +32 -2
  257. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  258. package/dist/esm/transactions/transactionBuilder/index.d.mts +2 -2
  259. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  260. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +1 -1
  261. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  262. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +1 -1
  263. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  264. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +1 -1
  265. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  266. package/dist/esm/transactions/typeTag/index.d.mts +1 -1
  267. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  268. package/dist/esm/transactions/typeTag/parser.d.mts +1 -1
  269. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  270. package/dist/esm/transactions/types.d.mts +1 -1
  271. package/dist/esm/types/ans.d.mts +109 -0
  272. package/dist/esm/types/ans.mjs +2 -0
  273. package/dist/esm/types/ans.mjs.map +1 -0
  274. package/dist/esm/types/generated/operations.d.mts +5 -0
  275. package/dist/esm/types/generated/queries.d.mts +27 -27
  276. package/dist/esm/types/generated/queries.mjs +1 -1
  277. package/dist/esm/types/generated/types.d.mts +191 -7
  278. package/dist/esm/types/generated/types.mjs +1 -1
  279. package/dist/esm/types/generated/types.mjs.map +1 -1
  280. package/dist/esm/types/index.d.mts +2 -1
  281. package/dist/esm/types/index.mjs +1 -1
  282. package/dist/esm/types/types.d.mts +1 -1
  283. package/dist/esm/types/types.mjs +1 -1
  284. package/dist/esm/utils/helpers.d.mts +1 -1
  285. package/dist/esm/utils/helpers.mjs +1 -1
  286. package/dist/esm/utils/index.d.mts +1 -1
  287. package/dist/esm/utils/index.mjs +1 -1
  288. package/dist/esm/utils/normalizeBundle.d.mts +1 -1
  289. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  290. package/dist/esm/version.d.mts +1 -1
  291. package/dist/esm/version.mjs +1 -1
  292. package/package.json +2 -2
  293. package/src/api/ans.ts +70 -25
  294. package/src/bcs/serializable/movePrimitives.ts +12 -14
  295. package/src/bcs/serializable/moveStructs.ts +205 -1
  296. package/src/internal/ans.ts +279 -109
  297. package/src/internal/queries/getNames.graphql +5 -0
  298. package/src/transactions/instances/transactionPayload.ts +27 -1
  299. package/src/transactions/transactionBuilder/helpers.ts +67 -1
  300. package/src/transactions/transactionBuilder/remoteAbi.ts +124 -1
  301. package/src/transactions/transactionBuilder/transactionBuilder.ts +4 -4
  302. package/src/transactions/types.ts +20 -2
  303. package/src/types/ans.ts +110 -0
  304. package/src/types/generated/operations.ts +1 -0
  305. package/src/types/generated/queries.ts +163 -76
  306. package/src/types/generated/types.ts +216 -6
  307. package/src/types/index.ts +1 -0
  308. package/src/types/types.ts +58 -0
  309. package/src/version.ts +1 -1
  310. package/dist/common/chunk-JQCMXTY7.js +0 -4
  311. package/dist/common/chunk-JQCMXTY7.js.map +0 -1
  312. package/dist/esm/chunk-5ABS6RDR.mjs +0 -2
  313. package/dist/esm/chunk-6XLLQB5P.mjs +0 -2
  314. package/dist/esm/chunk-6XLLQB5P.mjs.map +0 -1
  315. package/dist/esm/chunk-76PXED26.mjs +0 -4
  316. package/dist/esm/chunk-76PXED26.mjs.map +0 -1
  317. package/dist/esm/chunk-AEXYYFIZ.mjs +0 -2
  318. package/dist/esm/chunk-BIQOJ3OK.mjs +0 -2
  319. package/dist/esm/chunk-BIQOJ3OK.mjs.map +0 -1
  320. package/dist/esm/chunk-FD6FGKYY.mjs +0 -1
  321. package/dist/esm/chunk-UL777LTI.mjs.map +0 -1
  322. package/dist/esm/chunk-VS5NYRHW.mjs +0 -2
  323. /package/dist/esm/{chunk-IKTH33UN.mjs.map → chunk-56IXVVXX.mjs.map} +0 -0
  324. /package/dist/esm/{chunk-K2TQQFRV.mjs.map → chunk-76SVQZDX.mjs.map} +0 -0
  325. /package/dist/esm/{chunk-A2G3V23K.mjs.map → chunk-BGZDJ5SM.mjs.map} +0 -0
  326. /package/dist/esm/{chunk-TRIYATBI.mjs.map → chunk-CUXCVNES.mjs.map} +0 -0
  327. /package/dist/esm/{chunk-FD6FGKYY.mjs.map → chunk-DE5K76I2.mjs.map} +0 -0
  328. /package/dist/esm/{chunk-UXUMXAUZ.mjs.map → chunk-F3NI6N7R.mjs.map} +0 -0
  329. /package/dist/esm/{chunk-J426EZGD.mjs.map → chunk-JN65XG2P.mjs.map} +0 -0
  330. /package/dist/esm/{chunk-G2VFBYHG.mjs.map → chunk-NTLOKAPD.mjs.map} +0 -0
  331. /package/dist/esm/{chunk-IFWE34P5.mjs.map → chunk-PXJEKGEG.mjs.map} +0 -0
  332. /package/dist/esm/{chunk-HIAEKFG6.mjs.map → chunk-WZ6FL7CH.mjs.map} +0 -0
  333. /package/dist/esm/{chunk-LND3GTJ3.mjs.map → chunk-X674XJNJ.mjs.map} +0 -0
@@ -6,7 +6,21 @@
6
6
  import { Deserializer } from "../../bcs/deserializer";
7
7
  import { Serializable, Serializer } from "../../bcs/serializer";
8
8
  import { EntryFunctionBytes } from "../../bcs/serializable/entryFunctionBytes";
9
- import { Bool, U128, U16, U256, U32, U64, U8 } from "../../bcs/serializable/movePrimitives";
9
+ import {
10
+ Bool,
11
+ U128,
12
+ U16,
13
+ U256,
14
+ U32,
15
+ U64,
16
+ U8,
17
+ I8,
18
+ I16,
19
+ I32,
20
+ I64,
21
+ I128,
22
+ I256,
23
+ } from "../../bcs/serializable/movePrimitives";
10
24
  import { MoveVector, Serialized } from "../../bcs/serializable/moveStructs";
11
25
  import { AccountAddress, Hex } from "../../core";
12
26
  import { Identifier } from "./identifier";
@@ -57,6 +71,18 @@ export function deserializeFromScriptArgument(deserializer: Deserializer): Trans
57
71
  return U256.deserialize(deserializer);
58
72
  case ScriptTransactionArgumentVariants.Serialized:
59
73
  return Serialized.deserialize(deserializer);
74
+ case ScriptTransactionArgumentVariants.I8:
75
+ return I8.deserialize(deserializer);
76
+ case ScriptTransactionArgumentVariants.I16:
77
+ return I16.deserialize(deserializer);
78
+ case ScriptTransactionArgumentVariants.I32:
79
+ return I32.deserialize(deserializer);
80
+ case ScriptTransactionArgumentVariants.I64:
81
+ return I64.deserialize(deserializer);
82
+ case ScriptTransactionArgumentVariants.I128:
83
+ return I128.deserialize(deserializer);
84
+ case ScriptTransactionArgumentVariants.I256:
85
+ return I256.deserialize(deserializer);
60
86
  default:
61
87
  throw new Error(`Unknown variant index for ScriptTransactionArgument: ${index}`);
62
88
  }
@@ -8,7 +8,25 @@ import {
8
8
  InputScriptData,
9
9
  SimpleEntryFunctionArgumentTypes,
10
10
  } from "../types";
11
- import { Bool, FixedBytes, MoveOption, MoveString, MoveVector, U128, U16, U256, U32, U64, U8 } from "../../bcs";
11
+ import {
12
+ Bool,
13
+ FixedBytes,
14
+ I128,
15
+ I16,
16
+ I256,
17
+ I32,
18
+ I64,
19
+ I8,
20
+ MoveOption,
21
+ MoveString,
22
+ MoveVector,
23
+ U128,
24
+ U16,
25
+ U256,
26
+ U32,
27
+ U64,
28
+ U8,
29
+ } from "../../bcs";
12
30
  import { AccountAddress } from "../../core";
13
31
  import { MoveFunction } from "../../types";
14
32
 
@@ -192,6 +210,12 @@ export function isEncodedEntryFunctionArgument(
192
210
  * @category Transactions
193
211
  */
194
212
  isBcsFixedBytes(arg) ||
213
+ isBcsI8(arg) ||
214
+ isBcsI16(arg) ||
215
+ isBcsI32(arg) ||
216
+ isBcsI64(arg) ||
217
+ isBcsI128(arg) ||
218
+ isBcsI256(arg) ||
195
219
  arg instanceof MoveVector ||
196
220
  arg instanceof MoveOption
197
221
  );
@@ -268,6 +292,48 @@ export function isBcsU128(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionA
268
292
  export function isBcsU256(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is U256 {
269
293
  return arg instanceof U256;
270
294
  }
295
+ /**
296
+ * @group Implementation
297
+ * @category Transactions
298
+ */
299
+ export function isBcsI8(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is I8 {
300
+ return arg instanceof I8;
301
+ }
302
+ /**
303
+ * @group Implementation
304
+ * @category Transactions
305
+ */
306
+ export function isBcsI16(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is I16 {
307
+ return arg instanceof I16;
308
+ }
309
+ /**
310
+ * @group Implementation
311
+ * @category Transactions
312
+ */
313
+ export function isBcsI32(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is I32 {
314
+ return arg instanceof I32;
315
+ }
316
+ /**
317
+ * @group Implementation
318
+ * @category Transactions
319
+ */
320
+ export function isBcsI64(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is I64 {
321
+ return arg instanceof I64;
322
+ }
323
+ /**
324
+ * @group Implementation
325
+ * @category Transactions
326
+ */
327
+ export function isBcsI128(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is I128 {
328
+ return arg instanceof I128;
329
+ }
330
+ /**
331
+ * @group Implementation
332
+ * @category Transactions
333
+ */
334
+ export function isBcsI256(arg: EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes): arg is I256 {
335
+ return arg instanceof I256;
336
+ }
271
337
 
272
338
  /**
273
339
  * Determines if the provided argument contains script data input by checking for the presence of bytecode.
@@ -6,6 +6,12 @@ import {
6
6
  TypeTag,
7
7
  TypeTagAddress,
8
8
  TypeTagBool,
9
+ TypeTagI128,
10
+ TypeTagI16,
11
+ TypeTagI256,
12
+ TypeTagI32,
13
+ TypeTagI64,
14
+ TypeTagI8,
9
15
  TypeTagStruct,
10
16
  TypeTagU128,
11
17
  TypeTagU16,
@@ -23,7 +29,25 @@ import {
23
29
  FunctionABI,
24
30
  TypeArgument,
25
31
  } from "../types";
26
- import { Bool, FixedBytes, MoveOption, MoveString, MoveVector, U128, U16, U256, U32, U64, U8 } from "../../bcs";
32
+ import {
33
+ Bool,
34
+ FixedBytes,
35
+ I128,
36
+ I16,
37
+ I256,
38
+ I32,
39
+ I64,
40
+ I8,
41
+ MoveOption,
42
+ MoveString,
43
+ MoveVector,
44
+ U128,
45
+ U16,
46
+ U256,
47
+ U32,
48
+ U64,
49
+ U8,
50
+ } from "../../bcs";
27
51
  import { AccountAddress } from "../../core";
28
52
  import { getModule } from "../../internal/account";
29
53
  import {
@@ -44,6 +68,12 @@ import {
44
68
  isString,
45
69
  throwTypeMismatch,
46
70
  convertNumber,
71
+ isBcsI8,
72
+ isBcsI16,
73
+ isBcsI32,
74
+ isBcsI64,
75
+ isBcsI128,
76
+ isBcsI256,
47
77
  } from "./helpers";
48
78
  import { MoveFunction, MoveModule } from "../../types";
49
79
 
@@ -420,6 +450,45 @@ function parseArg(
420
450
  }
421
451
  throwTypeMismatch("bigint | number | string", position);
422
452
  }
453
+ if (param.isI8()) {
454
+ const num = convertNumber(arg);
455
+ if (num !== undefined) {
456
+ return new I8(num);
457
+ }
458
+ throwTypeMismatch("number | string", position);
459
+ }
460
+ if (param.isI16()) {
461
+ const num = convertNumber(arg);
462
+ if (num !== undefined) {
463
+ return new I16(num);
464
+ }
465
+ throwTypeMismatch("number | string", position);
466
+ }
467
+ if (param.isI32()) {
468
+ const num = convertNumber(arg);
469
+ if (num !== undefined) {
470
+ return new I32(num);
471
+ }
472
+ throwTypeMismatch("number | string", position);
473
+ }
474
+ if (param.isI64()) {
475
+ if (isLargeNumber(arg)) {
476
+ return new I64(BigInt(arg));
477
+ }
478
+ throwTypeMismatch("bigint | number | string", position);
479
+ }
480
+ if (param.isI128()) {
481
+ if (isLargeNumber(arg)) {
482
+ return new I128(BigInt(arg));
483
+ }
484
+ throwTypeMismatch("bigint | number | string", position);
485
+ }
486
+ if (param.isI256()) {
487
+ if (isLargeNumber(arg)) {
488
+ return new I256(BigInt(arg));
489
+ }
490
+ throwTypeMismatch("bigint | number | string", position);
491
+ }
423
492
 
424
493
  // Generic needs to use the subtype
425
494
  if (param.isGeneric()) {
@@ -522,6 +591,24 @@ function parseArg(
522
591
  if (innerParam instanceof TypeTagU256) {
523
592
  return new MoveOption<U256>(null);
524
593
  }
594
+ if (innerParam instanceof TypeTagI8) {
595
+ return new MoveOption<I8>(null);
596
+ }
597
+ if (innerParam instanceof TypeTagI16) {
598
+ return new MoveOption<I16>(null);
599
+ }
600
+ if (innerParam instanceof TypeTagI32) {
601
+ return new MoveOption<I32>(null);
602
+ }
603
+ if (innerParam instanceof TypeTagI64) {
604
+ return new MoveOption<I64>(null);
605
+ }
606
+ if (innerParam instanceof TypeTagI128) {
607
+ return new MoveOption<I128>(null);
608
+ }
609
+ if (innerParam instanceof TypeTagI256) {
610
+ return new MoveOption<I256>(null);
611
+ }
525
612
 
526
613
  // In all other cases, we will use a placeholder, it doesn't actually matter what the type is, but it will be obvious
527
614
  // Note: This is a placeholder U8 type, and does not match the actual type, as that can't be dynamically grabbed
@@ -612,6 +699,42 @@ function checkType(param: TypeTag, arg: EntryFunctionArgumentTypes, position: nu
612
699
  }
613
700
  throwTypeMismatch("U256", position);
614
701
  }
702
+ if (param.isI8()) {
703
+ if (isBcsI8(arg)) {
704
+ return;
705
+ }
706
+ throwTypeMismatch("I8", position);
707
+ }
708
+ if (param.isI16()) {
709
+ if (isBcsI16(arg)) {
710
+ return;
711
+ }
712
+ throwTypeMismatch("I16", position);
713
+ }
714
+ if (param.isI32()) {
715
+ if (isBcsI32(arg)) {
716
+ return;
717
+ }
718
+ throwTypeMismatch("I32", position);
719
+ }
720
+ if (param.isI64()) {
721
+ if (isBcsI64(arg)) {
722
+ return;
723
+ }
724
+ throwTypeMismatch("I64", position);
725
+ }
726
+ if (param.isI128()) {
727
+ if (isBcsI128(arg)) {
728
+ return;
729
+ }
730
+ throwTypeMismatch("I128", position);
731
+ }
732
+ if (param.isI256()) {
733
+ if (isBcsI256(arg)) {
734
+ return;
735
+ }
736
+ throwTypeMismatch("I256", position);
737
+ }
615
738
  if (param.isVector()) {
616
739
  if (arg instanceof MoveVector) {
617
740
  // If there's anything in it, check that the inner types match
@@ -201,7 +201,7 @@ export function generateTransactionPayloadWithABI(
201
201
  }
202
202
 
203
203
  // Check all BCS types, and convert any non-BCS types
204
- const functionArguments: Array<EntryFunctionArgumentTypes> = args.functionArguments.map((arg, i) =>
204
+ const functionArguments: Array<EntryFunctionArgumentTypes> | undefined = args.functionArguments?.map((arg, i) =>
205
205
  /**
206
206
  * Converts the argument for a specified function using its ABI and type arguments.
207
207
  * This function helps ensure that the correct number of arguments is provided for the function call.
@@ -220,10 +220,10 @@ export function generateTransactionPayloadWithABI(
220
220
  );
221
221
 
222
222
  // Check that all arguments are accounted for
223
- if (functionArguments.length !== functionAbi.parameters.length) {
223
+ if ((functionArguments?.length ?? 0) !== functionAbi.parameters.length) {
224
224
  throw new Error(
225
225
  // eslint-disable-next-line max-len
226
- `Too few arguments for '${moduleAddress}::${moduleName}::${functionName}', expected ${functionAbi.parameters.length} but got ${functionArguments.length}`,
226
+ `Too few arguments for '${moduleAddress}::${moduleName}::${functionName}', expected ${functionAbi.parameters.length} but got ${functionArguments?.length ?? 0}`,
227
227
  );
228
228
  }
229
229
 
@@ -232,7 +232,7 @@ export function generateTransactionPayloadWithABI(
232
232
  `${moduleAddress}::${moduleName}`,
233
233
  functionName,
234
234
  typeArguments,
235
- functionArguments,
235
+ functionArguments ?? [],
236
236
  );
237
237
 
238
238
  // Send it as multi sig if it's a multisig payload
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { AptosConfig } from "../api/aptosConfig";
5
5
  import { MoveOption, MoveString, MoveVector } from "../bcs/serializable/moveStructs";
6
- import { Bool, U128, U16, U256, U32, U64, U8 } from "../bcs/serializable/movePrimitives";
6
+ import { Bool, I128, I16, I256, I32, I64, I8, U128, U16, U256, U32, U64, U8 } from "../bcs/serializable/movePrimitives";
7
7
  import { FixedBytes } from "../bcs/serializable/fixedBytes";
8
8
  import { AccountAddress, AccountAddressInput } from "../core";
9
9
  import { PublicKey } from "../core/crypto";
@@ -60,6 +60,12 @@ export type EntryFunctionArgumentTypes =
60
60
  | U64
61
61
  | U128
62
62
  | U256
63
+ | I8
64
+ | I16
65
+ | I32
66
+ | I64
67
+ | I128
68
+ | I256
63
69
  | AccountAddress
64
70
  | MoveVector<EntryFunctionArgumentTypes>
65
71
  | MoveOption<EntryFunctionArgumentTypes>
@@ -79,6 +85,12 @@ export type ScriptFunctionArgumentTypes =
79
85
  | U64
80
86
  | U128
81
87
  | U256
88
+ | I8
89
+ | I16
90
+ | I32
91
+ | I64
92
+ | I128
93
+ | I256
82
94
  | AccountAddress
83
95
  | MoveVector<ScriptFunctionArgumentTypes>
84
96
  | MoveString
@@ -97,6 +109,12 @@ export type ScriptFunctionArgumentTypes =
97
109
  * - u64
98
110
  * - u128
99
111
  * - u256
112
+ * - i8
113
+ * - i16
114
+ * - i32
115
+ * - i64
116
+ * - i128
117
+ * - i256
100
118
  * - bool
101
119
  * - address
102
120
  * - signer
@@ -186,7 +204,7 @@ export type InputGenerateTransactionPayloadDataWithRemoteABI =
186
204
  export type InputEntryFunctionData = {
187
205
  function: MoveFunctionId;
188
206
  typeArguments?: Array<TypeArgument>;
189
- functionArguments: Array<EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes>;
207
+ functionArguments?: Array<EntryFunctionArgumentTypes | SimpleEntryFunctionArgumentTypes>;
190
208
  abi?: EntryFunctionABI;
191
209
  };
192
210
 
@@ -0,0 +1,110 @@
1
+ import { type GetANSNameResponse } from "./indexer";
2
+
3
+ export type RawANSName = GetANSNameResponse[0];
4
+
5
+ /**
6
+ * The token standard for the ANS name. v1 is the original token standard, v2 is
7
+ * the new token standard. v1 has been deprecated.
8
+ */
9
+ export type AnsTokenStandard = "v1" | "v2";
10
+
11
+ /**
12
+ * Policy for determining how subdomains expire in relation to their parent domain.
13
+ */
14
+ export enum SubdomainExpirationPolicy {
15
+ /**
16
+ * The subdomain will expire independently of the domain. The owner of the
17
+ * domain can manually set when the subdomain expires.
18
+ */
19
+ Independent = 0,
20
+ /**
21
+ * The subdomain will expire at the same time as the domain.
22
+ */
23
+ FollowsDomain = 1,
24
+ }
25
+
26
+ /**
27
+ * The status of the name.
28
+ */
29
+ export enum ExpirationStatus {
30
+ /**
31
+ * The name no longer functions as a primary or target name. It is open to
32
+ * being claimed by the public.
33
+ */
34
+ Expired = "expired",
35
+ /**
36
+ * The name is past it's expiration date, but only claimable by the current
37
+ * owner of the name. It does not function as a primary or target name.
38
+ */
39
+ InGracePeriod = "in_grace_period",
40
+ /**
41
+ * The name is in good standing.
42
+ */
43
+ Active = "active",
44
+ }
45
+
46
+ export interface AnsName extends RawANSName {
47
+ /**
48
+ * The domain name. ie "aptos.apt" would have a domain of "aptos"
49
+ */
50
+ domain: string;
51
+ /**
52
+ * The subdomain name, if the name is a subdomain. ie "name.aptos.apt" would have a subdomain of "name"
53
+ */
54
+ subdomain?: string;
55
+ /**
56
+ * The expiration timestamp of the name in milliseconds since epoch. Note, if
57
+ * the name is not a subdomain, this will be the same as the domain expiration
58
+ * timestamp.
59
+ */
60
+ expiration_timestamp: string;
61
+ /**
62
+ * The expiration timestamp of the domain in milliseconds since epoch.
63
+ */
64
+ domain_expiration_timestamp: string;
65
+ /**
66
+ * This is a derived date value. It takes into consideration if the name is a
67
+ * subdomain and its expiration policy.
68
+ */
69
+ expiration: Date;
70
+
71
+ /**
72
+ * The status of the name's expiration.
73
+ *
74
+ * 1. Expired: The name has expired and is no longer resolvable.
75
+ * 2. InGracePeriod: The name is within the grace period and is still
76
+ * resolvable if it is renewed.
77
+ * 3. Active: The name is active and is resolvable.
78
+ *
79
+ * @see {@link ExpirationStatus}
80
+ */
81
+ expiration_status: ExpirationStatus;
82
+ /**
83
+ * The address that the name points to. For example, if you send a transaction
84
+ * to "aptos.apt" with a target address of "0x1", the registered_address will
85
+ * be "0x1".
86
+ */
87
+ registered_address?: string;
88
+ /**
89
+ * The token standard for the name. See {@link AnsTokenStandard} for more details.
90
+ */
91
+ token_standard: AnsTokenStandard;
92
+ /**
93
+ * If the name is registered as a primary name for _any_ account. It is
94
+ * possible to have multiple primary names returned in a single query.
95
+ */
96
+ is_primary: boolean;
97
+ /**
98
+ * The address of the wallet that owns the name.
99
+ */
100
+ owner_address?: string;
101
+ /**
102
+ * The expiration policy for the subdomain. See {@link SubdomainExpirationPolicy} for more details.
103
+ */
104
+ subdomain_expiration_policy: SubdomainExpirationPolicy;
105
+ /**
106
+ * Whether the name is in the renewable period. This incorporates leading time
107
+ * before the name expires and the grace period after the name expires.
108
+ */
109
+ isInRenewablePeriod: boolean;
110
+ }
@@ -545,6 +545,7 @@ export type GetNamesQuery = {
545
545
  subdomain_expiration_policy?: any | null;
546
546
  domain_expiration_timestamp?: any | null;
547
547
  }>;
548
+ current_aptos_names_aggregate: { aggregate?: { count: number } | null };
548
549
  };
549
550
 
550
551
  export type GetNumberOfDelegatorsQueryVariables = Types.Exact<{