@aptos-labs/ts-sdk 1.14.0-zeta.3 → 1.15.0-win.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 (492) hide show
  1. package/dist/common/{accountAddress-u9wEan9p.d.ts → accountAddress-ccLvlUQe.d.ts} +22 -49
  2. package/dist/common/cli/index.d.ts +1 -1
  3. package/dist/common/cli/index.js +1 -1
  4. package/dist/common/cli/index.js.map +1 -1
  5. package/dist/common/index.d.ts +103 -550
  6. package/dist/common/index.js +55 -26
  7. package/dist/common/index.js.map +1 -1
  8. package/dist/esm/{Ed25519Account-9zBaZEnp.d.mts → Ed25519Account-B1VMJOY2.d.mts} +1 -1
  9. package/dist/esm/account/Account.d.mts +2 -2
  10. package/dist/esm/account/Account.mjs +1 -1
  11. package/dist/esm/account/Ed25519Account.d.mts +2 -2
  12. package/dist/esm/account/Ed25519Account.mjs +1 -1
  13. package/dist/esm/account/MultiKeyAccount.d.mts +7 -12
  14. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  15. package/dist/esm/account/SingleKeyAccount.d.mts +2 -2
  16. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  17. package/dist/esm/account/index.d.mts +2 -8
  18. package/dist/esm/account/index.mjs +1 -1
  19. package/dist/esm/api/account.d.mts +2 -2
  20. package/dist/esm/api/account.mjs +1 -1
  21. package/dist/esm/api/ans.d.mts +2 -2
  22. package/dist/esm/api/ans.mjs +1 -1
  23. package/dist/esm/api/aptos.d.mts +5 -10
  24. package/dist/esm/api/aptos.mjs +1 -1
  25. package/dist/esm/api/aptosConfig.d.mts +0 -20
  26. package/dist/esm/api/aptosConfig.mjs +1 -1
  27. package/dist/esm/api/coin.d.mts +1 -1
  28. package/dist/esm/api/coin.mjs +1 -1
  29. package/dist/esm/api/digitalAsset.d.mts +2 -2
  30. package/dist/esm/api/digitalAsset.mjs +1 -1
  31. package/dist/esm/api/event.mjs +1 -1
  32. package/dist/esm/api/faucet.mjs +1 -1
  33. package/dist/esm/api/fungibleAsset.d.mts +2 -2
  34. package/dist/esm/api/fungibleAsset.mjs +1 -1
  35. package/dist/esm/api/general.d.mts +2 -27
  36. package/dist/esm/api/general.mjs +1 -1
  37. package/dist/esm/api/index.d.mts +3 -8
  38. package/dist/esm/api/index.mjs +1 -1
  39. package/dist/esm/api/staking.mjs +1 -1
  40. package/dist/esm/api/table.d.mts +84 -0
  41. package/dist/esm/api/table.mjs +2 -0
  42. package/dist/esm/api/transaction.d.mts +2 -2
  43. package/dist/esm/api/transaction.mjs +1 -1
  44. package/dist/esm/api/transactionSubmission/build.d.mts +1 -1
  45. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  46. package/dist/esm/api/transactionSubmission/management.d.mts +2 -2
  47. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  48. package/dist/esm/api/transactionSubmission/sign.d.mts +2 -2
  49. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  50. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  51. package/dist/esm/api/transactionSubmission/simulate.d.mts +1 -1
  52. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  53. package/dist/esm/api/transactionSubmission/submit.d.mts +1 -1
  54. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  55. package/dist/esm/api/utils.mjs +1 -1
  56. package/dist/esm/bcs/deserializer.d.mts +0 -26
  57. package/dist/esm/bcs/deserializer.mjs +1 -1
  58. package/dist/esm/bcs/index.mjs +1 -1
  59. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  60. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  61. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  62. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  63. package/dist/esm/bcs/serializer.d.mts +0 -2
  64. package/dist/esm/bcs/serializer.mjs +1 -1
  65. package/dist/esm/{chunk-3CUVYW32.mjs → chunk-2X7A4HUS.mjs} +2 -2
  66. package/dist/esm/chunk-2XK53QFA.mjs +2 -0
  67. package/dist/esm/{chunk-WM2NCYZL.mjs.map → chunk-2XK53QFA.mjs.map} +1 -1
  68. package/dist/esm/{chunk-Y4SSUCPJ.mjs → chunk-2YZSEM2G.mjs} +2 -2
  69. package/dist/esm/{chunk-ZNEBMSNC.mjs → chunk-35EWRSDK.mjs} +2 -2
  70. package/dist/esm/{chunk-TVRJ3M7B.mjs → chunk-36QXVFR5.mjs} +2 -2
  71. package/dist/esm/{chunk-TVRJ3M7B.mjs.map → chunk-36QXVFR5.mjs.map} +1 -1
  72. package/dist/esm/chunk-3HSXKDOC.mjs +2 -0
  73. package/dist/esm/chunk-3HSXKDOC.mjs.map +1 -0
  74. package/dist/esm/chunk-3N6N3KOS.mjs +2 -0
  75. package/dist/esm/{chunk-HYDDIAJ6.mjs.map → chunk-3N6N3KOS.mjs.map} +1 -1
  76. package/dist/esm/{chunk-SLI3KELH.mjs → chunk-477G7LHJ.mjs} +2 -2
  77. package/dist/esm/chunk-4NHWV5AI.mjs +2 -0
  78. package/dist/esm/{chunk-7STYQ5ZE.mjs → chunk-5EN52MUT.mjs} +2 -2
  79. package/dist/esm/{chunk-P7JMD7KZ.mjs → chunk-5VIESFOC.mjs} +2 -2
  80. package/dist/esm/{chunk-TE3WIJ26.mjs → chunk-5YLAWRI2.mjs} +2 -2
  81. package/dist/esm/chunk-6IFMQ5AS.mjs +2 -0
  82. package/dist/esm/chunk-6IFMQ5AS.mjs.map +1 -0
  83. package/dist/esm/{chunk-3CMS2KOX.mjs → chunk-6JLYD5Q2.mjs} +2 -2
  84. package/dist/esm/{chunk-HMFL7AOJ.mjs → chunk-6XWDDCQD.mjs} +2 -2
  85. package/dist/esm/{chunk-CS7B3FVO.mjs → chunk-7NEETXEA.mjs} +2 -2
  86. package/dist/esm/chunk-7VRZLDIJ.mjs +2 -0
  87. package/dist/esm/{chunk-24ZOKI52.mjs → chunk-ACG4ZGRQ.mjs} +2 -2
  88. package/dist/esm/chunk-AQAH67IV.mjs +2 -0
  89. package/dist/esm/chunk-B7X6PSE7.mjs +2 -0
  90. package/dist/esm/{chunk-AOCNYMMX.mjs → chunk-BCUSI3N6.mjs} +2 -2
  91. package/dist/esm/{chunk-HYU23YVP.mjs → chunk-BHLICYAI.mjs} +2 -2
  92. package/dist/esm/chunk-BO2TLWNT.mjs +2 -0
  93. package/dist/esm/chunk-CEHCDA3G.mjs +2 -0
  94. package/dist/esm/chunk-CJDEPZ4J.mjs +2 -0
  95. package/dist/esm/{chunk-NBEXLW7P.mjs.map → chunk-CJDEPZ4J.mjs.map} +1 -1
  96. package/dist/esm/{chunk-WWGROAKX.mjs → chunk-CWUH4PNH.mjs} +2 -2
  97. package/dist/esm/chunk-CYNQRMO5.mjs +2 -0
  98. package/dist/esm/chunk-CYNQRMO5.mjs.map +1 -0
  99. package/dist/esm/chunk-DLAIJ2UM.mjs +2 -0
  100. package/dist/esm/chunk-DLAIJ2UM.mjs.map +1 -0
  101. package/dist/esm/{chunk-DD2VWOMZ.mjs → chunk-E2NVC2VR.mjs} +2 -2
  102. package/dist/esm/chunk-F7EMGK4M.mjs +2 -0
  103. package/dist/esm/{chunk-EB7AI4B4.mjs → chunk-G56GPLTB.mjs} +2 -2
  104. package/dist/esm/{chunk-RKHPXZM6.mjs → chunk-GHYE26Q5.mjs} +2 -2
  105. package/dist/esm/{chunk-RKHPXZM6.mjs.map → chunk-GHYE26Q5.mjs.map} +1 -1
  106. package/dist/esm/{chunk-7IMWGGA6.mjs → chunk-GIAABV7R.mjs} +2 -2
  107. package/dist/esm/{chunk-KMKSA7LM.mjs → chunk-GKJ2NJG5.mjs} +2 -2
  108. package/dist/esm/{chunk-NC5HHEEM.mjs → chunk-GM56MMNJ.mjs} +2 -2
  109. package/dist/esm/{chunk-GQ6HIKZT.mjs → chunk-HMARHACL.mjs} +2 -2
  110. package/dist/esm/chunk-HNEAPYNI.mjs +2 -0
  111. package/dist/esm/{chunk-P2WALKSW.mjs → chunk-HSJTQLI2.mjs} +2 -2
  112. package/dist/esm/chunk-HYCGMFC2.mjs +2 -0
  113. package/dist/esm/chunk-HYCGMFC2.mjs.map +1 -0
  114. package/dist/esm/chunk-IENCDVPF.mjs +2 -0
  115. package/dist/esm/chunk-IENCDVPF.mjs.map +1 -0
  116. package/dist/esm/{chunk-23MNZ5LZ.mjs → chunk-IZQV2SU6.mjs} +2 -2
  117. package/dist/esm/chunk-J6OFSYUA.mjs +2 -0
  118. package/dist/esm/chunk-J6OFSYUA.mjs.map +1 -0
  119. package/dist/esm/chunk-JB5H65CE.mjs +2 -0
  120. package/dist/esm/chunk-JB5H65CE.mjs.map +1 -0
  121. package/dist/esm/{chunk-XZGQMZ2H.mjs → chunk-JFIAWBCK.mjs} +2 -2
  122. package/dist/esm/chunk-JQIGQMNZ.mjs +2 -0
  123. package/dist/esm/chunk-JQIGQMNZ.mjs.map +1 -0
  124. package/dist/esm/chunk-K7HX7JQH.mjs +2 -0
  125. package/dist/esm/chunk-K7HX7JQH.mjs.map +1 -0
  126. package/dist/esm/{chunk-HGZGTBA4.mjs → chunk-KAGLWBIJ.mjs} +2 -2
  127. package/dist/esm/chunk-LG7RJQ57.mjs +2 -0
  128. package/dist/esm/{chunk-HHVAU5HU.mjs → chunk-MCRRHBFQ.mjs} +2 -2
  129. package/dist/esm/{chunk-PFFAQZHT.mjs → chunk-MJPUASSD.mjs} +2 -2
  130. package/dist/esm/{chunk-7XYECSW6.mjs → chunk-MQI2IE6Y.mjs} +2 -2
  131. package/dist/esm/chunk-N3U47Y6Y.mjs +2 -0
  132. package/dist/esm/{chunk-L5WUYZ35.mjs → chunk-NZETF6Z4.mjs} +2 -2
  133. package/dist/esm/chunk-OWW6SIDP.mjs +2 -0
  134. package/dist/esm/chunk-OWW6SIDP.mjs.map +1 -0
  135. package/dist/esm/{chunk-CB6CNNM2.mjs → chunk-P6GWG2CY.mjs} +2 -2
  136. package/dist/esm/chunk-PF57EOJY.mjs +2 -0
  137. package/dist/esm/{chunk-JLWKIYHV.mjs → chunk-PIVZMT5D.mjs} +2 -2
  138. package/dist/esm/{chunk-R52BRP36.mjs → chunk-PLXGSUZA.mjs} +2 -2
  139. package/dist/esm/{chunk-AHNE2QA3.mjs → chunk-PPO4IXE4.mjs} +2 -2
  140. package/dist/esm/{chunk-PMPTAPM3.mjs → chunk-QIHR7HD6.mjs} +2 -2
  141. package/dist/esm/{chunk-BTLFW3YY.mjs → chunk-QQ5PHEJF.mjs} +2 -2
  142. package/dist/esm/{chunk-T23OVRNF.mjs → chunk-QRS4DGP3.mjs} +2 -2
  143. package/dist/esm/{chunk-T23OVRNF.mjs.map → chunk-QRS4DGP3.mjs.map} +1 -1
  144. package/dist/esm/{chunk-LDQ6JFEF.mjs → chunk-QSHLNSUP.mjs} +2 -2
  145. package/dist/esm/{chunk-LDQ6JFEF.mjs.map → chunk-QSHLNSUP.mjs.map} +1 -1
  146. package/dist/esm/chunk-ROXFCLDT.mjs +2 -0
  147. package/dist/esm/chunk-RTSWVT2Q.mjs +2 -0
  148. package/dist/esm/chunk-RTSWVT2Q.mjs.map +1 -0
  149. package/dist/esm/{chunk-Y33CIIZX.mjs → chunk-RVWYURXG.mjs} +2 -2
  150. package/dist/esm/{chunk-U5C2PXC6.mjs → chunk-RYD6HRW7.mjs} +2 -2
  151. package/dist/esm/chunk-S2VSJJRJ.mjs +2 -0
  152. package/dist/esm/chunk-S2VSJJRJ.mjs.map +1 -0
  153. package/dist/esm/{chunk-S4SEFF4K.mjs → chunk-S3EDNXZE.mjs} +46 -17
  154. package/dist/esm/chunk-S3EDNXZE.mjs.map +1 -0
  155. package/dist/esm/chunk-SRDIYE3M.mjs +2 -0
  156. package/dist/esm/{chunk-6RBUXB5I.mjs.map → chunk-SRDIYE3M.mjs.map} +1 -1
  157. package/dist/esm/{chunk-SI7MPP6G.mjs → chunk-T2AGN5YT.mjs} +2 -2
  158. package/dist/esm/chunk-TGQARO3F.mjs +2 -0
  159. package/dist/esm/chunk-TGQARO3F.mjs.map +1 -0
  160. package/dist/esm/chunk-TM7NDDT3.mjs +2 -0
  161. package/dist/esm/chunk-TM7NDDT3.mjs.map +1 -0
  162. package/dist/esm/{chunk-HSFG2AIK.mjs → chunk-TT2XR5ZI.mjs} +2 -2
  163. package/dist/esm/{chunk-3VGX3TXH.mjs → chunk-U3YYSIIT.mjs} +2 -2
  164. package/dist/esm/chunk-UGPALAPN.mjs +2 -0
  165. package/dist/esm/{chunk-7SIQDOYY.mjs → chunk-UKSRF2Q3.mjs} +2 -2
  166. package/dist/esm/chunk-UO3NZ5AH.mjs +1 -0
  167. package/dist/esm/{chunk-TICM455H.mjs → chunk-UPSCPEEE.mjs} +2 -2
  168. package/dist/esm/chunk-UVSRX4SV.mjs +1 -0
  169. package/dist/esm/chunk-WXWWYH73.mjs +2 -0
  170. package/dist/esm/chunk-WXWWYH73.mjs.map +1 -0
  171. package/dist/esm/{chunk-O3PLAAN7.mjs → chunk-XBHFMNYB.mjs} +2 -2
  172. package/dist/esm/{chunk-GNNNICLW.mjs → chunk-XD46HTI2.mjs} +2 -2
  173. package/dist/esm/{chunk-6WIB3GGF.mjs → chunk-XFSDV3ND.mjs} +2 -2
  174. package/dist/esm/chunk-YMB2XW2O.mjs +2 -0
  175. package/dist/esm/{chunk-YNNPWCF6.mjs.map → chunk-YMB2XW2O.mjs.map} +1 -1
  176. package/dist/esm/{chunk-ZPMS2Q37.mjs → chunk-ZBXOX3S7.mjs} +2 -2
  177. package/dist/esm/cli/index.mjs +1 -1
  178. package/dist/esm/cli/move.mjs +1 -1
  179. package/dist/esm/client/core.mjs +1 -1
  180. package/dist/esm/client/get.d.mts +1 -2
  181. package/dist/esm/client/get.mjs +1 -1
  182. package/dist/esm/client/index.d.mts +2 -2
  183. package/dist/esm/client/index.mjs +1 -1
  184. package/dist/esm/client/post.d.mts +1 -3
  185. package/dist/esm/client/post.mjs +1 -1
  186. package/dist/esm/client/types.d.mts +1 -5
  187. package/dist/esm/client/types.mjs +1 -1
  188. package/dist/esm/core/account/index.mjs +1 -1
  189. package/dist/esm/core/account/utils/address.mjs +1 -1
  190. package/dist/esm/core/account/utils/index.mjs +1 -1
  191. package/dist/esm/core/accountAddress.mjs +1 -1
  192. package/dist/esm/core/authenticationKey.d.mts +1 -1
  193. package/dist/esm/core/authenticationKey.mjs +1 -1
  194. package/dist/esm/core/common.mjs +1 -1
  195. package/dist/esm/core/crypto/ed25519.d.mts +1 -1
  196. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  197. package/dist/esm/core/crypto/index.d.mts +1 -4
  198. package/dist/esm/core/crypto/index.mjs +1 -1
  199. package/dist/esm/core/crypto/multiEd25519.d.mts +1 -1
  200. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  201. package/dist/esm/core/crypto/multiKey.d.mts +1 -1
  202. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  203. package/dist/esm/core/crypto/privateKey.d.mts +1 -1
  204. package/dist/esm/core/crypto/publicKey.d.mts +1 -1
  205. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  206. package/dist/esm/core/crypto/secp256k1.d.mts +1 -1
  207. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  208. package/dist/esm/core/crypto/signature.mjs +1 -1
  209. package/dist/esm/core/crypto/singleKey.d.mts +1 -1
  210. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  211. package/dist/esm/core/crypto/utils.mjs +1 -1
  212. package/dist/esm/core/hex.mjs +1 -1
  213. package/dist/esm/core/index.d.mts +1 -4
  214. package/dist/esm/core/index.mjs +1 -1
  215. package/dist/esm/index.d.mts +9 -14
  216. package/dist/esm/index.mjs +1 -1
  217. package/dist/esm/internal/account.d.mts +2 -2
  218. package/dist/esm/internal/account.mjs +1 -1
  219. package/dist/esm/internal/ans.d.mts +2 -2
  220. package/dist/esm/internal/ans.mjs +1 -1
  221. package/dist/esm/internal/coin.d.mts +1 -1
  222. package/dist/esm/internal/coin.mjs +1 -1
  223. package/dist/esm/internal/digitalAsset.d.mts +2 -2
  224. package/dist/esm/internal/digitalAsset.mjs +1 -1
  225. package/dist/esm/internal/event.mjs +1 -1
  226. package/dist/esm/internal/faucet.mjs +1 -1
  227. package/dist/esm/internal/fungibleAsset.d.mts +2 -2
  228. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  229. package/dist/esm/internal/general.d.mts +2 -8
  230. package/dist/esm/internal/general.mjs +1 -1
  231. package/dist/esm/internal/staking.mjs +1 -1
  232. package/dist/esm/internal/table.d.mts +31 -0
  233. package/dist/esm/internal/table.mjs +2 -0
  234. package/dist/esm/internal/transaction.mjs +1 -1
  235. package/dist/esm/internal/transactionSubmission.d.mts +2 -2
  236. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  237. package/dist/esm/internal/view.d.mts +1 -1
  238. package/dist/esm/internal/view.mjs +1 -1
  239. package/dist/esm/transactions/authenticator/account.d.mts +1 -1
  240. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  241. package/dist/esm/transactions/authenticator/index.d.mts +1 -1
  242. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  243. package/dist/esm/transactions/authenticator/transaction.d.mts +1 -1
  244. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  245. package/dist/esm/transactions/index.d.mts +1 -1
  246. package/dist/esm/transactions/index.mjs +1 -1
  247. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  248. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  249. package/dist/esm/transactions/instances/index.d.mts +1 -1
  250. package/dist/esm/transactions/instances/index.mjs +1 -1
  251. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  252. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  253. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  254. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +1 -1
  255. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  256. package/dist/esm/transactions/instances/signedTransaction.d.mts +1 -1
  257. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  258. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  259. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  260. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +2 -2
  261. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  262. package/dist/esm/transactions/management/index.d.mts +2 -2
  263. package/dist/esm/transactions/management/index.mjs +1 -1
  264. package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
  265. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  266. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +1 -1
  267. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  268. package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -1
  269. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  270. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +1 -1
  271. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  272. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +1 -1
  273. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  274. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +2 -2
  275. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  276. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  277. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  278. package/dist/esm/transactions/types.d.mts +1 -1
  279. package/dist/esm/types/generated/operations.d.mts +31 -2
  280. package/dist/esm/types/generated/queries.d.mts +6 -2
  281. package/dist/esm/types/generated/queries.mjs +1 -1
  282. package/dist/esm/types/generated/types.d.mts +212 -7
  283. package/dist/esm/types/generated/types.mjs +1 -1
  284. package/dist/esm/types/generated/types.mjs.map +1 -1
  285. package/dist/esm/types/index.d.mts +4 -20
  286. package/dist/esm/types/index.mjs +1 -1
  287. package/dist/esm/types/indexer.d.mts +4 -2
  288. package/dist/esm/utils/apiEndpoints.d.mts +1 -3
  289. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  290. package/dist/esm/utils/const.d.mts +1 -3
  291. package/dist/esm/utils/const.mjs +1 -1
  292. package/dist/esm/utils/index.d.mts +1 -1
  293. package/dist/esm/utils/index.mjs +1 -1
  294. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  295. package/dist/esm/version.d.mts +1 -1
  296. package/dist/esm/version.mjs +1 -1
  297. package/package.json +3 -11
  298. package/src/account/MultiKeyAccount.ts +0 -10
  299. package/src/account/index.ts +0 -2
  300. package/src/api/aptos.ts +5 -5
  301. package/src/api/aptosConfig.ts +1 -46
  302. package/src/api/general.ts +0 -26
  303. package/src/api/table.ts +108 -0
  304. package/src/bcs/deserializer.ts +0 -40
  305. package/src/bcs/serializer.ts +0 -18
  306. package/src/cli/move.ts +1 -1
  307. package/src/client/core.ts +0 -8
  308. package/src/client/get.ts +0 -6
  309. package/src/client/post.ts +0 -12
  310. package/src/client/types.ts +1 -1
  311. package/src/core/crypto/index.ts +0 -2
  312. package/src/core/crypto/singleKey.ts +0 -11
  313. package/src/internal/account.ts +2 -1
  314. package/src/internal/general.ts +1 -20
  315. package/src/internal/queries/currentTokenOwnershipFieldsFragment.graphql +1 -0
  316. package/src/internal/queries/getTableItemsData.graphql +15 -0
  317. package/src/internal/queries/getTableItemsMetadata.graphql +12 -0
  318. package/src/internal/table.ts +82 -0
  319. package/src/internal/transactionSubmission.ts +7 -20
  320. package/src/transactions/transactionBuilder/transactionBuilder.ts +2 -16
  321. package/src/types/generated/operations.ts +29 -0
  322. package/src/types/generated/queries.ts +59 -0
  323. package/src/types/generated/types.ts +223 -4
  324. package/src/types/index.ts +0 -22
  325. package/src/types/indexer.ts +4 -0
  326. package/src/utils/apiEndpoints.ts +0 -14
  327. package/src/utils/const.ts +0 -2
  328. package/src/version.ts +1 -1
  329. package/dist/esm/account/EphemeralKeyPair.d.mts +0 -80
  330. package/dist/esm/account/EphemeralKeyPair.mjs +0 -2
  331. package/dist/esm/account/KeylessAccount.d.mts +0 -145
  332. package/dist/esm/account/KeylessAccount.mjs +0 -2
  333. package/dist/esm/api/keyless.d.mts +0 -81
  334. package/dist/esm/api/keyless.mjs +0 -2
  335. package/dist/esm/chunk-25H3DXTL.mjs +0 -2
  336. package/dist/esm/chunk-25H3DXTL.mjs.map +0 -1
  337. package/dist/esm/chunk-2ECWQRBB.mjs +0 -2
  338. package/dist/esm/chunk-2HD2G4AH.mjs +0 -2
  339. package/dist/esm/chunk-2HD2G4AH.mjs.map +0 -1
  340. package/dist/esm/chunk-3COVJN6Z.mjs +0 -2
  341. package/dist/esm/chunk-3COVJN6Z.mjs.map +0 -1
  342. package/dist/esm/chunk-3FVRXELT.mjs +0 -2
  343. package/dist/esm/chunk-3S3GIUQY.mjs +0 -2
  344. package/dist/esm/chunk-5XOFEQWC.mjs +0 -2
  345. package/dist/esm/chunk-6RBUXB5I.mjs +0 -2
  346. package/dist/esm/chunk-75J7H3XD.mjs +0 -2
  347. package/dist/esm/chunk-75J7H3XD.mjs.map +0 -1
  348. package/dist/esm/chunk-7KOC7VNK.mjs +0 -2
  349. package/dist/esm/chunk-7KOC7VNK.mjs.map +0 -1
  350. package/dist/esm/chunk-7Z6DYLCA.mjs +0 -1
  351. package/dist/esm/chunk-AJ7UC2G3.mjs +0 -2
  352. package/dist/esm/chunk-AJ7UC2G3.mjs.map +0 -1
  353. package/dist/esm/chunk-AQ4I7VVB.mjs +0 -1
  354. package/dist/esm/chunk-AQ4I7VVB.mjs.map +0 -1
  355. package/dist/esm/chunk-C3L4ETUF.mjs +0 -2
  356. package/dist/esm/chunk-CO53EOHE.mjs +0 -2
  357. package/dist/esm/chunk-CO53EOHE.mjs.map +0 -1
  358. package/dist/esm/chunk-COW5IGYC.mjs +0 -2
  359. package/dist/esm/chunk-FBPNHF54.mjs +0 -2
  360. package/dist/esm/chunk-FLYEALDB.mjs +0 -2
  361. package/dist/esm/chunk-FLYEALDB.mjs.map +0 -1
  362. package/dist/esm/chunk-H62IKYXG.mjs +0 -2
  363. package/dist/esm/chunk-HYDDIAJ6.mjs +0 -2
  364. package/dist/esm/chunk-JM2B5E2I.mjs +0 -2
  365. package/dist/esm/chunk-JM2B5E2I.mjs.map +0 -1
  366. package/dist/esm/chunk-JM544NRW.mjs +0 -2
  367. package/dist/esm/chunk-JM544NRW.mjs.map +0 -1
  368. package/dist/esm/chunk-MGOHPDX4.mjs +0 -2
  369. package/dist/esm/chunk-MOKAU77C.mjs +0 -2
  370. package/dist/esm/chunk-MOKAU77C.mjs.map +0 -1
  371. package/dist/esm/chunk-MWUJCP27.mjs +0 -2
  372. package/dist/esm/chunk-N466X3S6.mjs +0 -2
  373. package/dist/esm/chunk-N466X3S6.mjs.map +0 -1
  374. package/dist/esm/chunk-NBEXLW7P.mjs +0 -2
  375. package/dist/esm/chunk-PGCBIU33.mjs +0 -2
  376. package/dist/esm/chunk-PGCBIU33.mjs.map +0 -1
  377. package/dist/esm/chunk-PYUWGGAW.mjs +0 -2
  378. package/dist/esm/chunk-PYUWGGAW.mjs.map +0 -1
  379. package/dist/esm/chunk-RKTM5GBP.mjs +0 -2
  380. package/dist/esm/chunk-RKTM5GBP.mjs.map +0 -1
  381. package/dist/esm/chunk-S4SEFF4K.mjs.map +0 -1
  382. package/dist/esm/chunk-STYDBDYL.mjs +0 -2
  383. package/dist/esm/chunk-TJDC5PWD.mjs +0 -2
  384. package/dist/esm/chunk-UTXJOB3O.mjs +0 -2
  385. package/dist/esm/chunk-VL6EYA53.mjs +0 -2
  386. package/dist/esm/chunk-VL6EYA53.mjs.map +0 -1
  387. package/dist/esm/chunk-VPKPQBKL.mjs +0 -2
  388. package/dist/esm/chunk-VPKPQBKL.mjs.map +0 -1
  389. package/dist/esm/chunk-VSD2AWUR.mjs +0 -2
  390. package/dist/esm/chunk-VSD2AWUR.mjs.map +0 -1
  391. package/dist/esm/chunk-VT6XJSRO.mjs +0 -2
  392. package/dist/esm/chunk-VT6XJSRO.mjs.map +0 -1
  393. package/dist/esm/chunk-WM2NCYZL.mjs +0 -2
  394. package/dist/esm/chunk-YE5B2S5L.mjs +0 -2
  395. package/dist/esm/chunk-YE5B2S5L.mjs.map +0 -1
  396. package/dist/esm/chunk-YGOJYDJA.mjs +0 -2
  397. package/dist/esm/chunk-YGOJYDJA.mjs.map +0 -1
  398. package/dist/esm/chunk-YNNPWCF6.mjs +0 -2
  399. package/dist/esm/chunk-YV7OBLK2.mjs +0 -2
  400. package/dist/esm/chunk-YV7OBLK2.mjs.map +0 -1
  401. package/dist/esm/chunk-ZKRG4C4U.mjs +0 -2
  402. package/dist/esm/chunk-ZKRG4C4U.mjs.map +0 -1
  403. package/dist/esm/core/crypto/ephemeral.d.mts +0 -73
  404. package/dist/esm/core/crypto/ephemeral.mjs +0 -2
  405. package/dist/esm/core/crypto/ephemeral.mjs.map +0 -1
  406. package/dist/esm/core/crypto/keyless.d.mts +0 -232
  407. package/dist/esm/core/crypto/keyless.mjs +0 -2
  408. package/dist/esm/core/crypto/keyless.mjs.map +0 -1
  409. package/dist/esm/core/crypto/poseidon.d.mts +0 -7
  410. package/dist/esm/core/crypto/poseidon.mjs +0 -2
  411. package/dist/esm/core/crypto/poseidon.mjs.map +0 -1
  412. package/dist/esm/core/crypto/proof.d.mts +0 -21
  413. package/dist/esm/core/crypto/proof.mjs +0 -2
  414. package/dist/esm/core/crypto/proof.mjs.map +0 -1
  415. package/dist/esm/internal/keyless.d.mts +0 -68
  416. package/dist/esm/internal/keyless.mjs +0 -2
  417. package/dist/esm/internal/keyless.mjs.map +0 -1
  418. package/dist/esm/types/keyless.d.mts +0 -69
  419. package/dist/esm/types/keyless.mjs +0 -2
  420. package/dist/esm/types/keyless.mjs.map +0 -1
  421. package/src/account/EphemeralKeyPair.ts +0 -161
  422. package/src/account/KeylessAccount.ts +0 -341
  423. package/src/api/keyless.ts +0 -48
  424. package/src/core/crypto/ephemeral.ts +0 -138
  425. package/src/core/crypto/keyless.ts +0 -453
  426. package/src/core/crypto/poseidon.ts +0 -134
  427. package/src/core/crypto/proof.ts +0 -16
  428. package/src/internal/keyless.ts +0 -119
  429. package/src/types/keyless.ts +0 -37
  430. /package/dist/esm/{account/EphemeralKeyPair.mjs.map → api/table.mjs.map} +0 -0
  431. /package/dist/esm/{chunk-3CUVYW32.mjs.map → chunk-2X7A4HUS.mjs.map} +0 -0
  432. /package/dist/esm/{chunk-Y4SSUCPJ.mjs.map → chunk-2YZSEM2G.mjs.map} +0 -0
  433. /package/dist/esm/{chunk-ZNEBMSNC.mjs.map → chunk-35EWRSDK.mjs.map} +0 -0
  434. /package/dist/esm/{chunk-SLI3KELH.mjs.map → chunk-477G7LHJ.mjs.map} +0 -0
  435. /package/dist/esm/{chunk-COW5IGYC.mjs.map → chunk-4NHWV5AI.mjs.map} +0 -0
  436. /package/dist/esm/{chunk-7STYQ5ZE.mjs.map → chunk-5EN52MUT.mjs.map} +0 -0
  437. /package/dist/esm/{chunk-P7JMD7KZ.mjs.map → chunk-5VIESFOC.mjs.map} +0 -0
  438. /package/dist/esm/{chunk-TE3WIJ26.mjs.map → chunk-5YLAWRI2.mjs.map} +0 -0
  439. /package/dist/esm/{chunk-3CMS2KOX.mjs.map → chunk-6JLYD5Q2.mjs.map} +0 -0
  440. /package/dist/esm/{chunk-HMFL7AOJ.mjs.map → chunk-6XWDDCQD.mjs.map} +0 -0
  441. /package/dist/esm/{chunk-CS7B3FVO.mjs.map → chunk-7NEETXEA.mjs.map} +0 -0
  442. /package/dist/esm/{chunk-H62IKYXG.mjs.map → chunk-7VRZLDIJ.mjs.map} +0 -0
  443. /package/dist/esm/{chunk-24ZOKI52.mjs.map → chunk-ACG4ZGRQ.mjs.map} +0 -0
  444. /package/dist/esm/{chunk-3S3GIUQY.mjs.map → chunk-AQAH67IV.mjs.map} +0 -0
  445. /package/dist/esm/{chunk-MGOHPDX4.mjs.map → chunk-B7X6PSE7.mjs.map} +0 -0
  446. /package/dist/esm/{chunk-AOCNYMMX.mjs.map → chunk-BCUSI3N6.mjs.map} +0 -0
  447. /package/dist/esm/{chunk-HYU23YVP.mjs.map → chunk-BHLICYAI.mjs.map} +0 -0
  448. /package/dist/esm/{chunk-2ECWQRBB.mjs.map → chunk-BO2TLWNT.mjs.map} +0 -0
  449. /package/dist/esm/{chunk-3FVRXELT.mjs.map → chunk-CEHCDA3G.mjs.map} +0 -0
  450. /package/dist/esm/{chunk-WWGROAKX.mjs.map → chunk-CWUH4PNH.mjs.map} +0 -0
  451. /package/dist/esm/{chunk-DD2VWOMZ.mjs.map → chunk-E2NVC2VR.mjs.map} +0 -0
  452. /package/dist/esm/{chunk-TJDC5PWD.mjs.map → chunk-F7EMGK4M.mjs.map} +0 -0
  453. /package/dist/esm/{chunk-EB7AI4B4.mjs.map → chunk-G56GPLTB.mjs.map} +0 -0
  454. /package/dist/esm/{chunk-7IMWGGA6.mjs.map → chunk-GIAABV7R.mjs.map} +0 -0
  455. /package/dist/esm/{chunk-KMKSA7LM.mjs.map → chunk-GKJ2NJG5.mjs.map} +0 -0
  456. /package/dist/esm/{chunk-NC5HHEEM.mjs.map → chunk-GM56MMNJ.mjs.map} +0 -0
  457. /package/dist/esm/{chunk-GQ6HIKZT.mjs.map → chunk-HMARHACL.mjs.map} +0 -0
  458. /package/dist/esm/{chunk-5XOFEQWC.mjs.map → chunk-HNEAPYNI.mjs.map} +0 -0
  459. /package/dist/esm/{chunk-P2WALKSW.mjs.map → chunk-HSJTQLI2.mjs.map} +0 -0
  460. /package/dist/esm/{chunk-23MNZ5LZ.mjs.map → chunk-IZQV2SU6.mjs.map} +0 -0
  461. /package/dist/esm/{chunk-XZGQMZ2H.mjs.map → chunk-JFIAWBCK.mjs.map} +0 -0
  462. /package/dist/esm/{chunk-HGZGTBA4.mjs.map → chunk-KAGLWBIJ.mjs.map} +0 -0
  463. /package/dist/esm/{chunk-FBPNHF54.mjs.map → chunk-LG7RJQ57.mjs.map} +0 -0
  464. /package/dist/esm/{chunk-HHVAU5HU.mjs.map → chunk-MCRRHBFQ.mjs.map} +0 -0
  465. /package/dist/esm/{chunk-PFFAQZHT.mjs.map → chunk-MJPUASSD.mjs.map} +0 -0
  466. /package/dist/esm/{chunk-7XYECSW6.mjs.map → chunk-MQI2IE6Y.mjs.map} +0 -0
  467. /package/dist/esm/{chunk-C3L4ETUF.mjs.map → chunk-N3U47Y6Y.mjs.map} +0 -0
  468. /package/dist/esm/{chunk-L5WUYZ35.mjs.map → chunk-NZETF6Z4.mjs.map} +0 -0
  469. /package/dist/esm/{chunk-CB6CNNM2.mjs.map → chunk-P6GWG2CY.mjs.map} +0 -0
  470. /package/dist/esm/{chunk-MWUJCP27.mjs.map → chunk-PF57EOJY.mjs.map} +0 -0
  471. /package/dist/esm/{chunk-JLWKIYHV.mjs.map → chunk-PIVZMT5D.mjs.map} +0 -0
  472. /package/dist/esm/{chunk-R52BRP36.mjs.map → chunk-PLXGSUZA.mjs.map} +0 -0
  473. /package/dist/esm/{chunk-AHNE2QA3.mjs.map → chunk-PPO4IXE4.mjs.map} +0 -0
  474. /package/dist/esm/{chunk-PMPTAPM3.mjs.map → chunk-QIHR7HD6.mjs.map} +0 -0
  475. /package/dist/esm/{chunk-BTLFW3YY.mjs.map → chunk-QQ5PHEJF.mjs.map} +0 -0
  476. /package/dist/esm/{chunk-UTXJOB3O.mjs.map → chunk-ROXFCLDT.mjs.map} +0 -0
  477. /package/dist/esm/{chunk-Y33CIIZX.mjs.map → chunk-RVWYURXG.mjs.map} +0 -0
  478. /package/dist/esm/{chunk-U5C2PXC6.mjs.map → chunk-RYD6HRW7.mjs.map} +0 -0
  479. /package/dist/esm/{chunk-SI7MPP6G.mjs.map → chunk-T2AGN5YT.mjs.map} +0 -0
  480. /package/dist/esm/{chunk-HSFG2AIK.mjs.map → chunk-TT2XR5ZI.mjs.map} +0 -0
  481. /package/dist/esm/{chunk-3VGX3TXH.mjs.map → chunk-U3YYSIIT.mjs.map} +0 -0
  482. /package/dist/esm/{chunk-STYDBDYL.mjs.map → chunk-UGPALAPN.mjs.map} +0 -0
  483. /package/dist/esm/{chunk-7SIQDOYY.mjs.map → chunk-UKSRF2Q3.mjs.map} +0 -0
  484. /package/dist/esm/{account/KeylessAccount.mjs.map → chunk-UO3NZ5AH.mjs.map} +0 -0
  485. /package/dist/esm/{chunk-TICM455H.mjs.map → chunk-UPSCPEEE.mjs.map} +0 -0
  486. /package/dist/esm/{api/keyless.mjs.map → chunk-UVSRX4SV.mjs.map} +0 -0
  487. /package/dist/esm/{chunk-O3PLAAN7.mjs.map → chunk-XBHFMNYB.mjs.map} +0 -0
  488. /package/dist/esm/{chunk-GNNNICLW.mjs.map → chunk-XD46HTI2.mjs.map} +0 -0
  489. /package/dist/esm/{chunk-6WIB3GGF.mjs.map → chunk-XFSDV3ND.mjs.map} +0 -0
  490. /package/dist/esm/{chunk-ZPMS2Q37.mjs.map → chunk-ZBXOX3S7.mjs.map} +0 -0
  491. /package/dist/esm/{chunk-7Z6DYLCA.mjs.map → internal/table.mjs.map} +0 -0
  492. /package/dist/esm/{publicKey-lq5djCIY.d.mts → publicKey-B3XRNhHO.d.mts} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { Network } from '../utils/apiEndpoints.mjs';
2
2
  import { TokenStandard, OrderBy } from './indexer.mjs';
3
- export { GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderByValue } from './indexer.mjs';
3
+ export { GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderByValue } from './indexer.mjs';
4
4
  import './generated/operations.mjs';
5
5
  import './generated/types.mjs';
6
6
 
@@ -97,25 +97,11 @@ declare enum AccountAuthenticatorVariant {
97
97
  }
98
98
  declare enum AnyPublicKeyVariant {
99
99
  Ed25519 = 0,
100
- Secp256k1 = 1,
101
- Keyless = 3
100
+ Secp256k1 = 1
102
101
  }
103
102
  declare enum AnySignatureVariant {
104
103
  Ed25519 = 0,
105
- Secp256k1 = 1,
106
- Keyless = 3
107
- }
108
- declare enum EphemeralPublicKeyVariant {
109
- Ed25519 = 0
110
- }
111
- declare enum EphemeralSignatureVariant {
112
- Ed25519 = 0
113
- }
114
- declare enum EphemeralCertificateVariant {
115
- ZkProof = 0
116
- }
117
- declare enum ZkpVariant {
118
- Groth16 = 0
104
+ Secp256k1 = 1
119
105
  }
120
106
  /**
121
107
  * BCS types
@@ -137,8 +123,6 @@ type AptosSettings = {
137
123
  readonly fullnode?: string;
138
124
  readonly faucet?: string;
139
125
  readonly indexer?: string;
140
- readonly pepper?: string;
141
- readonly prover?: string;
142
126
  readonly clientConfig?: ClientConfig;
143
127
  readonly client?: Client;
144
128
  readonly fullnodeConfig?: FullNodeConfig;
@@ -951,4 +935,4 @@ type GenerateAccountWithSingleSignerSecp256k1Key = {
951
935
  };
952
936
  type GenerateAccount = GenerateAccountWithEd25519 | GenerateAccountWithSingleSignerSecp256k1Key;
953
937
 
954
- export { AccountAuthenticatorVariant, type AccountData, type AccountSignature, type AnyNumber, AnyPublicKeyVariant, AnySignatureVariant, type AptosRequest, type AptosSettings, type AuthenticationKeyScheme, type Block, type BlockMetadataTransactionResponse, type Client, type ClientConfig, type ClientHeadersType, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, type DecodedTableData, type DeletedTableData, DeriveScheme, type DirectWriteSet, type EntryFunctionPayloadResponse, EphemeralCertificateVariant, EphemeralPublicKeyVariant, EphemeralSignatureVariant, type Event, type EventGuid, type FaucetConfig, type FullNodeConfig, type GasEstimation, type GenerateAccount, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenesisPayload, type GenesisTransactionResponse, type HexInput, type IndexerConfig, type LedgerInfo, type LedgerVersionArg, MimeType, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, type MoveOptionType, type MoveResource, type MoveScriptBytecode, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, type MultisigPayloadResponse, OrderBy, type OrderByArg, type PaginationArgs, type PendingTransactionResponse, RoleType, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, SigningScheme, SigningSchemeInput, type StateCheckpointTransactionResponse, type TableItemRequest, TokenStandard, type TokenStandardArg, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, type TransactionPayloadResponse, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TypeTagVariants, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, ZkpVariant, isBlockMetadataTransactionResponse, isEd25519Signature, isFeePayerSignature, isGenesisTransactionResponse, isMultiAgentSignature, isMultiEd25519Signature, isPendingTransactionResponse, isSecp256k1Signature, isStateCheckpointTransactionResponse, isUserTransactionResponse, isValidatorTransactionResponse };
938
+ export { AccountAuthenticatorVariant, type AccountData, type AccountSignature, type AnyNumber, AnyPublicKeyVariant, AnySignatureVariant, type AptosRequest, type AptosSettings, type AuthenticationKeyScheme, type Block, type BlockMetadataTransactionResponse, type Client, type ClientConfig, type ClientHeadersType, type ClientRequest, type ClientResponse, type CommittedTransactionResponse, type DecodedTableData, type DeletedTableData, DeriveScheme, type DirectWriteSet, type EntryFunctionPayloadResponse, type Event, type EventGuid, type FaucetConfig, type FullNodeConfig, type GasEstimation, type GenerateAccount, type GenerateAccountWithEd25519, type GenerateAccountWithSingleSignerSecp256k1Key, type GenesisPayload, type GenesisTransactionResponse, type HexInput, type IndexerConfig, type LedgerInfo, type LedgerVersionArg, MimeType, MoveAbility, type MoveAddressType, type MoveFunction, type MoveFunctionGenericTypeParam, type MoveFunctionId, MoveFunctionVisibility, type MoveModule, type MoveModuleBytecode, type MoveModuleId, type MoveObjectType, type MoveOptionType, type MoveResource, type MoveScriptBytecode, type MoveStruct, type MoveStructField, type MoveStructId, type MoveStructType, type MoveType, type MoveUint128Type, type MoveUint16Type, type MoveUint256Type, type MoveUint32Type, type MoveUint64Type, type MoveUint8Type, type MoveValue, type MultisigPayloadResponse, OrderBy, type OrderByArg, type PaginationArgs, type PendingTransactionResponse, RoleType, type ScriptPayloadResponse, ScriptTransactionArgumentVariants, type ScriptWriteSet, SigningScheme, SigningSchemeInput, type StateCheckpointTransactionResponse, type TableItemRequest, TokenStandard, type TokenStandardArg, TransactionAuthenticatorVariant, type TransactionEd25519Signature, type TransactionFeePayerSignature, type TransactionMultiAgentSignature, type TransactionMultiEd25519Signature, type TransactionPayloadResponse, TransactionPayloadVariants, type TransactionResponse, TransactionResponseType, type TransactionSecp256k1Signature, type TransactionSignature, TransactionVariants, TypeTagVariants, type Uint128, type Uint16, type Uint256, type Uint32, type Uint64, type Uint8, type UserTransactionResponse, type ValidatorTransactionResponse, type WaitForTransactionOptions, type WhereArg, type WriteSet, type WriteSetChange, type WriteSetChangeDeleteModule, type WriteSetChangeDeleteResource, type WriteSetChangeDeleteTableItem, type WriteSetChangeWriteModule, type WriteSetChangeWriteResource, type WriteSetChangeWriteTableItem, isBlockMetadataTransactionResponse, isEd25519Signature, isFeePayerSignature, isGenesisTransactionResponse, isMultiAgentSignature, isMultiEd25519Signature, isPendingTransactionResponse, isSecp256k1Signature, isStateCheckpointTransactionResponse, isUserTransactionResponse, isValidatorTransactionResponse };
@@ -1,2 +1,2 @@
1
- import{A,B,C,D,E,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-JM2B5E2I.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{g as AccountAuthenticatorVariant,h as AnyPublicKeyVariant,i as AnySignatureVariant,E as DeriveScheme,l as EphemeralCertificateVariant,j as EphemeralPublicKeyVariant,k as EphemeralSignatureVariant,a as MimeType,A as MoveAbility,z as MoveFunctionVisibility,B as RoleType,c as ScriptTransactionArgumentVariants,C as SigningScheme,D as SigningSchemeInput,f as TransactionAuthenticatorVariant,d as TransactionPayloadVariants,n as TransactionResponseType,e as TransactionVariants,b as TypeTagVariants,m as ZkpVariant,r as isBlockMetadataTransactionResponse,u as isEd25519Signature,x as isFeePayerSignature,q as isGenesisTransactionResponse,w as isMultiAgentSignature,y as isMultiEd25519Signature,o as isPendingTransactionResponse,v as isSecp256k1Signature,s as isStateCheckpointTransactionResponse,p as isUserTransactionResponse,t as isValidatorTransactionResponse};
1
+ import{A,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"../chunk-OWW6SIDP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-FVA2OPG4.mjs";export{g as AccountAuthenticatorVariant,h as AnyPublicKeyVariant,i as AnySignatureVariant,A as DeriveScheme,a as MimeType,w as MoveAbility,v as MoveFunctionVisibility,x as RoleType,c as ScriptTransactionArgumentVariants,y as SigningScheme,z as SigningSchemeInput,f as TransactionAuthenticatorVariant,d as TransactionPayloadVariants,j as TransactionResponseType,e as TransactionVariants,b as TypeTagVariants,n as isBlockMetadataTransactionResponse,q as isEd25519Signature,t as isFeePayerSignature,m as isGenesisTransactionResponse,s as isMultiAgentSignature,u as isMultiEd25519Signature,k as isPendingTransactionResponse,r as isSecp256k1Signature,o as isStateCheckpointTransactionResponse,l as isUserTransactionResponse,p as isValidatorTransactionResponse};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,4 +1,4 @@
1
- import { GetAccountOwnedObjectsQuery, GetAccountOwnedTokensQuery, GetAccountOwnedTokensFromCollectionQuery, GetAccountCollectionsWithOwnedTokensQuery, GetAccountCoinsDataQuery, GetChainTopUserTransactionsQuery, GetEventsQuery, GetNumberOfDelegatorsQuery, GetDelegatedStakingActivitiesQuery, GetCollectionDataQuery, GetTokenDataQuery, GetProcessorStatusQuery, GetFungibleAssetMetadataQuery, GetFungibleAssetActivitiesQuery, GetCurrentFungibleAssetBalancesQuery, GetTokenActivityQuery, GetCurrentTokenOwnershipQuery, GetNamesQuery } from './generated/operations.mjs';
1
+ import { GetAccountOwnedObjectsQuery, GetAccountOwnedTokensQuery, GetAccountOwnedTokensFromCollectionQuery, GetAccountCollectionsWithOwnedTokensQuery, GetAccountCoinsDataQuery, GetChainTopUserTransactionsQuery, GetEventsQuery, GetNumberOfDelegatorsQuery, GetDelegatedStakingActivitiesQuery, GetCollectionDataQuery, GetTokenDataQuery, GetProcessorStatusQuery, GetFungibleAssetMetadataQuery, GetFungibleAssetActivitiesQuery, GetCurrentFungibleAssetBalancesQuery, GetTokenActivityQuery, GetCurrentTokenOwnershipQuery, GetTableItemsDataQuery, GetTableItemsMetadataQuery, GetNamesQuery } from './generated/operations.mjs';
2
2
  import './generated/types.mjs';
3
3
 
4
4
  /**
@@ -39,6 +39,8 @@ type GetCurrentFungibleAssetBalancesResponse = GetCurrentFungibleAssetBalancesQu
39
39
  type GetTokenActivityResponse = GetTokenActivityQuery["token_activities_v2"];
40
40
  type GetCurrentTokenOwnershipResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"][0];
41
41
  type GetOwnedTokensResponse = GetCurrentTokenOwnershipQuery["current_token_ownerships_v2"];
42
+ type GetTableItemsDataResponse = GetTableItemsDataQuery["table_items"];
43
+ type GetTableItemsMetadataResponse = GetTableItemsMetadataQuery["table_metadatas"];
42
44
  type GetANSNameResponse = GetNamesQuery["current_aptos_names"];
43
45
  /**
44
46
  * A generic type that being passed by each function and holds an
@@ -60,4 +62,4 @@ type GraphqlQuery = {
60
62
  variables?: {};
61
63
  };
62
64
 
63
- export type { GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard };
65
+ export type { GetANSNameResponse, GetAccountCoinsDataResponse, GetAccountCollectionsWithOwnedTokenResponse, GetAccountOwnedObjectsResponse, GetAccountOwnedTokensFromCollectionResponse, GetAccountOwnedTokensQueryResponse, GetChainTopUserTransactionsResponse, GetCollectionDataResponse, GetCurrentFungibleAssetBalancesResponse, GetCurrentTokenOwnershipResponse, GetDelegatedStakingActivitiesResponse, GetEventsResponse, GetFungibleAssetActivitiesResponse, GetFungibleAssetMetadataResponse, GetNumberOfDelegatorsResponse, GetOwnedTokensResponse, GetProcessorStatusResponse, GetTableItemsDataResponse, GetTableItemsMetadataResponse, GetTokenActivityResponse, GetTokenDataResponse, GraphqlQuery, OrderBy, OrderByValue, TokenStandard };
@@ -1,8 +1,6 @@
1
1
  declare const NetworkToIndexerAPI: Record<string, string>;
2
2
  declare const NetworkToNodeAPI: Record<string, string>;
3
3
  declare const NetworkToFaucetAPI: Record<string, string>;
4
- declare const NetworkToPepperAPI: Record<string, string>;
5
- declare const NetworkToProverAPI: Record<string, string>;
6
4
  declare enum Network {
7
5
  MAINNET = "mainnet",
8
6
  TESTNET = "testnet",
@@ -13,4 +11,4 @@ declare enum Network {
13
11
  declare const NetworkToChainId: Record<string, number>;
14
12
  declare const NetworkToNetworkName: Record<string, Network>;
15
13
 
16
- export { Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, NetworkToPepperAPI, NetworkToProverAPI };
14
+ export { Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI };
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h}from"../chunk-JM544NRW.mjs";import"../chunk-FVA2OPG4.mjs";export{f as Network,g as NetworkToChainId,c as NetworkToFaucetAPI,a as NetworkToIndexerAPI,h as NetworkToNetworkName,b as NetworkToNodeAPI,d as NetworkToPepperAPI,e as NetworkToProverAPI};
1
+ import{a,b,c,d,e,f}from"../chunk-HYCGMFC2.mjs";import"../chunk-FVA2OPG4.mjs";export{d as Network,e as NetworkToChainId,c as NetworkToFaucetAPI,a as NetworkToIndexerAPI,f as NetworkToNetworkName,b as NetworkToNodeAPI};
2
2
  //# sourceMappingURL=apiEndpoints.mjs.map
@@ -4,9 +4,7 @@
4
4
  declare enum AptosApiType {
5
5
  FULLNODE = "Fullnode",
6
6
  INDEXER = "Indexer",
7
- FAUCET = "Faucet",
8
- PEPPER = "Pepper",
9
- PROVER = "Prover"
7
+ FAUCET = "Faucet"
10
8
  }
11
9
  /**
12
10
  * The default max gas amount when none is given.
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h}from"../chunk-YE5B2S5L.mjs";import"../chunk-FVA2OPG4.mjs";export{e as APTOS_COIN,a as AptosApiType,b as DEFAULT_MAX_GAS_AMOUNT,c as DEFAULT_TXN_EXP_SEC_FROM_NOW,d as DEFAULT_TXN_TIMEOUT_SEC,h as ProcessorType,f as RAW_TRANSACTION_SALT,g as RAW_TRANSACTION_WITH_DATA_SALT};
1
+ import{a,b,c,d,e,f,g,h}from"../chunk-CYNQRMO5.mjs";import"../chunk-FVA2OPG4.mjs";export{e as APTOS_COIN,a as AptosApiType,b as DEFAULT_MAX_GAS_AMOUNT,c as DEFAULT_TXN_EXP_SEC_FROM_NOW,d as DEFAULT_TXN_TIMEOUT_SEC,h as ProcessorType,f as RAW_TRANSACTION_SALT,g as RAW_TRANSACTION_WITH_DATA_SALT};
2
2
  //# sourceMappingURL=const.mjs.map
@@ -1,4 +1,4 @@
1
- export { Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI, NetworkToPepperAPI, NetworkToProverAPI } from './apiEndpoints.mjs';
1
+ export { Network, NetworkToChainId, NetworkToFaucetAPI, NetworkToIndexerAPI, NetworkToNetworkName, NetworkToNodeAPI } from './apiEndpoints.mjs';
2
2
  export { APTOS_COIN, AptosApiType, DEFAULT_MAX_GAS_AMOUNT, DEFAULT_TXN_EXP_SEC_FROM_NOW, DEFAULT_TXN_TIMEOUT_SEC, ProcessorType, RAW_TRANSACTION_SALT, RAW_TRANSACTION_WITH_DATA_SALT } from './const.mjs';
3
3
  export { DeserializableClass, normalizeBundle } from './normalizeBundle.mjs';
4
4
  import '../bcs/deserializer.mjs';
@@ -1,2 +1,2 @@
1
- import"../chunk-GED6IT3S.mjs";import{a as q}from"../chunk-UTXJOB3O.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-EB7AI4B4.mjs";import"../chunk-6RBUXB5I.mjs";import"../chunk-C3L4ETUF.mjs";import"../chunk-3FVRXELT.mjs";import"../chunk-JM2B5E2I.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-VT6XJSRO.mjs";import"../chunk-TVRJ3M7B.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n,g as o,h as p}from"../chunk-JM544NRW.mjs";import{a,b,c,d,e,f,g,h}from"../chunk-YE5B2S5L.mjs";import"../chunk-FVA2OPG4.mjs";export{e as APTOS_COIN,a as AptosApiType,b as DEFAULT_MAX_GAS_AMOUNT,c as DEFAULT_TXN_EXP_SEC_FROM_NOW,d as DEFAULT_TXN_TIMEOUT_SEC,n as Network,o as NetworkToChainId,k as NetworkToFaucetAPI,i as NetworkToIndexerAPI,p as NetworkToNetworkName,j as NetworkToNodeAPI,l as NetworkToPepperAPI,m as NetworkToProverAPI,h as ProcessorType,f as RAW_TRANSACTION_SALT,g as RAW_TRANSACTION_WITH_DATA_SALT,q as normalizeBundle};
1
+ import"../chunk-GED6IT3S.mjs";import{a as o}from"../chunk-ROXFCLDT.mjs";import{a as i,b as j,c as k,d as l,e as m,f as n}from"../chunk-HYCGMFC2.mjs";import{a,b,c,d,e,f,g,h}from"../chunk-CYNQRMO5.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-G56GPLTB.mjs";import"../chunk-SRDIYE3M.mjs";import"../chunk-N3U47Y6Y.mjs";import"../chunk-CEHCDA3G.mjs";import"../chunk-OWW6SIDP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-36QXVFR5.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{e as APTOS_COIN,a as AptosApiType,b as DEFAULT_MAX_GAS_AMOUNT,c as DEFAULT_TXN_EXP_SEC_FROM_NOW,d as DEFAULT_TXN_TIMEOUT_SEC,l as Network,m as NetworkToChainId,k as NetworkToFaucetAPI,i as NetworkToIndexerAPI,n as NetworkToNetworkName,j as NetworkToNodeAPI,h as ProcessorType,f as RAW_TRANSACTION_SALT,g as RAW_TRANSACTION_WITH_DATA_SALT,o as normalizeBundle};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-UTXJOB3O.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-EB7AI4B4.mjs";import"../chunk-6RBUXB5I.mjs";import"../chunk-C3L4ETUF.mjs";import"../chunk-3FVRXELT.mjs";import"../chunk-JM2B5E2I.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-VT6XJSRO.mjs";import"../chunk-TVRJ3M7B.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{a as normalizeBundle};
1
+ import{a}from"../chunk-ROXFCLDT.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-G56GPLTB.mjs";import"../chunk-SRDIYE3M.mjs";import"../chunk-N3U47Y6Y.mjs";import"../chunk-CEHCDA3G.mjs";import"../chunk-OWW6SIDP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-36QXVFR5.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{a as normalizeBundle};
2
2
  //# sourceMappingURL=normalizeBundle.mjs.map
@@ -3,6 +3,6 @@
3
3
  *
4
4
  * hardcoded for now, we would want to have it injected dynamically
5
5
  */
6
- declare const VERSION = "1.14.0-zeta.3";
6
+ declare const VERSION = "1.15.0";
7
7
 
8
8
  export { VERSION };
@@ -1,2 +1,2 @@
1
- import{a}from"./chunk-NBEXLW7P.mjs";import"./chunk-FVA2OPG4.mjs";export{a as VERSION};
1
+ import{a}from"./chunk-CJDEPZ4J.mjs";import"./chunk-FVA2OPG4.mjs";export{a as VERSION};
2
2
  //# sourceMappingURL=version.mjs.map
package/package.json CHANGED
@@ -47,19 +47,14 @@
47
47
  "update-version": "scripts/updateVersion.sh && pnpm doc"
48
48
  },
49
49
  "dependencies": {
50
- "@aptos-labs/aptos-cli": "^0.1.2",
51
50
  "@aptos-labs/aptos-client": "^0.1.0",
51
+ "@aptos-labs/aptos-cli": "^0.1.7",
52
52
  "@noble/curves": "^1.4.0",
53
53
  "@noble/hashes": "^1.4.0",
54
54
  "@scure/bip32": "^1.4.0",
55
55
  "@scure/bip39": "^1.3.0",
56
- "eventemitter3": "^5.0.1",
57
56
  "form-data": "^4.0.0",
58
- "jose": "^5.1.3",
59
- "js-base64": "^3.7.7",
60
- "jwks-rsa": "^3.1.0",
61
- "jwt-decode": "^4.0.0",
62
- "poseidon-lite": "^0.2.0"
57
+ "eventemitter3": "^5.0.1"
63
58
  },
64
59
  "devDependencies": {
65
60
  "@babel/traverse": "^7.23.6",
@@ -68,9 +63,7 @@
68
63
  "@graphql-codegen/typescript": "^4.0.1",
69
64
  "@graphql-codegen/typescript-graphql-request": "^6.0.1",
70
65
  "@graphql-codegen/typescript-operations": "^4.0.1",
71
- "@types/base-64": "^1.0.2",
72
66
  "@types/jest": "^29.5.11",
73
- "@types/jsonwebtoken": "^9.0.6",
74
67
  "@types/node": "^20.10.4",
75
68
  "@typescript-eslint/eslint-plugin": "^6.14.0",
76
69
  "@typescript-eslint/parser": "^6.14.0",
@@ -83,7 +76,6 @@
83
76
  "graphql": "^16.8.1",
84
77
  "graphql-request": "^6.1.0",
85
78
  "jest": "^29.7.0",
86
- "jsonwebtoken": "^9.0.2",
87
79
  "prettier": "^3.1.1",
88
80
  "tree-kill": "^1.2.2",
89
81
  "ts-jest": "^29.1.1",
@@ -93,5 +85,5 @@
93
85
  "typedoc": "^0.25.4",
94
86
  "typescript": "^5.3.3"
95
87
  },
96
- "version": "1.14.0-zeta.3"
88
+ "version": "1.15.0-win.0"
97
89
  }
@@ -7,7 +7,6 @@ import { AccountAddress } from "../core/accountAddress";
7
7
  import { HexInput, SigningScheme } from "../types";
8
8
  import { AccountAuthenticatorMultiKey } from "../transactions/authenticator/account";
9
9
  import { AnyRawTransaction } from "../transactions/types";
10
- import { KeylessAccount } from "./KeylessAccount";
11
10
 
12
11
  export interface VerifyMultiKeySignatureArgs {
13
12
  message: HexInput;
@@ -124,15 +123,6 @@ export class MultiKeyAccount implements Account {
124
123
  return new AccountAuthenticatorMultiKey(this.publicKey, this.signTransaction(transaction));
125
124
  }
126
125
 
127
- /**
128
- * Waits for any proofs to be fetched
129
- * @return
130
- */
131
- async waitForProofFetch() {
132
- const keylessSigners = this.signers.filter((signer) => signer instanceof KeylessAccount) as KeylessAccount[];
133
- await Promise.all(keylessSigners.filter((signer) => signer.proof instanceof Promise).map((signer) => signer.proof));
134
- }
135
-
136
126
  /**
137
127
  * Sign the given message using the MultiKeyAccount's signers
138
128
  * @param message in HexInput format
@@ -1,6 +1,4 @@
1
1
  export * from "./Ed25519Account";
2
2
  export * from "./Account";
3
3
  export * from "./SingleKeyAccount";
4
- export * from "./EphemeralKeyPair";
5
- export * from "./KeylessAccount";
6
4
  export * from "./MultiKeyAccount";
package/src/api/aptos.ts CHANGED
@@ -12,7 +12,7 @@ import { General } from "./general";
12
12
  import { ANS } from "./ans";
13
13
  import { Staking } from "./staking";
14
14
  import { Transaction } from "./transaction";
15
- import { Keyless } from "./keyless";
15
+ import { Table } from "./table";
16
16
 
17
17
  /**
18
18
  * This class is the main entry point into Aptos's
@@ -48,7 +48,7 @@ export class Aptos {
48
48
 
49
49
  readonly transaction: Transaction;
50
50
 
51
- readonly keyless: Keyless;
51
+ readonly table: Table;
52
52
 
53
53
  constructor(settings?: AptosConfig) {
54
54
  this.config = new AptosConfig(settings);
@@ -62,7 +62,7 @@ export class Aptos {
62
62
  this.general = new General(this.config);
63
63
  this.staking = new Staking(this.config);
64
64
  this.transaction = new Transaction(this.config);
65
- this.keyless = new Keyless(this.config);
65
+ this.table = new Table(this.config);
66
66
  }
67
67
  }
68
68
 
@@ -77,8 +77,8 @@ export interface Aptos
77
77
  Faucet,
78
78
  FungibleAsset,
79
79
  General,
80
- Keyless,
81
80
  Staking,
81
+ Table,
82
82
  Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {}
83
83
 
84
84
  /**
@@ -112,4 +112,4 @@ applyMixin(Aptos, FungibleAsset, "fungibleAsset");
112
112
  applyMixin(Aptos, General, "general");
113
113
  applyMixin(Aptos, Staking, "staking");
114
114
  applyMixin(Aptos, Transaction, "transaction");
115
- applyMixin(Aptos, Keyless, "keyless");
115
+ applyMixin(Aptos, Table, "table");
@@ -3,14 +3,7 @@
3
3
 
4
4
  import aptosClient from "@aptos-labs/aptos-client";
5
5
  import { AptosSettings, ClientConfig, Client, FullNodeConfig, IndexerConfig, FaucetConfig } from "../types";
6
- import {
7
- NetworkToNodeAPI,
8
- NetworkToFaucetAPI,
9
- NetworkToIndexerAPI,
10
- Network,
11
- NetworkToPepperAPI,
12
- NetworkToProverAPI,
13
- } from "../utils/apiEndpoints";
6
+ import { NetworkToNodeAPI, NetworkToFaucetAPI, NetworkToIndexerAPI, Network } from "../utils/apiEndpoints";
14
7
  import { AptosApiType } from "../utils/const";
15
8
 
16
9
  /**
@@ -41,16 +34,6 @@ export class AptosConfig {
41
34
  */
42
35
  readonly faucet?: string;
43
36
 
44
- /**
45
- * The optional hardcoded pepper service URL to send requests to instead of using the network
46
- */
47
- readonly pepper?: string;
48
-
49
- /**
50
- * The optional hardcoded prover service URL to send requests to instead of using the network
51
- */
52
- readonly prover?: string;
53
-
54
37
  /**
55
38
  * The optional hardcoded indexer URL to send requests to instead of using the network
56
39
  */
@@ -80,8 +63,6 @@ export class AptosConfig {
80
63
  this.network = settings?.network ?? Network.DEVNET;
81
64
  this.fullnode = settings?.fullnode;
82
65
  this.faucet = settings?.faucet;
83
- this.pepper = settings?.pepper;
84
- this.prover = settings?.prover;
85
66
  this.indexer = settings?.indexer;
86
67
  this.client = settings?.client ?? { provider: aptosClient };
87
68
  this.clientConfig = settings?.clientConfig ?? {};
@@ -114,34 +95,8 @@ export class AptosConfig {
114
95
  if (this.indexer !== undefined) return this.indexer;
115
96
  if (this.network === Network.CUSTOM) throw new Error("Please provide a custom indexer url");
116
97
  return NetworkToIndexerAPI[this.network];
117
- case AptosApiType.PEPPER:
118
- if (this.pepper !== undefined) return this.pepper;
119
- if (this.network === Network.CUSTOM) throw new Error("Please provide a custom pepper service url");
120
- return NetworkToPepperAPI[this.network];
121
- case AptosApiType.PROVER:
122
- if (this.prover !== undefined) return this.prover;
123
- if (this.network === Network.CUSTOM) throw new Error("Please provide a custom prover service url");
124
- return NetworkToProverAPI[this.network];
125
98
  default:
126
99
  throw Error(`apiType ${apiType} is not supported`);
127
100
  }
128
101
  }
129
-
130
- /**
131
- * Checks if the URL is a known pepper service endpoint
132
- *
133
- * @internal
134
- * */
135
- isPepperServiceRequest(url: string): boolean {
136
- return NetworkToPepperAPI[this.network] === url;
137
- }
138
-
139
- /**
140
- * Checks if the URL is a known prover service endpoint
141
- *
142
- * @internal
143
- * */
144
- isProverServiceRequest(url: string): boolean {
145
- return NetworkToProverAPI[this.network] === url;
146
- }
147
102
  }
@@ -9,7 +9,6 @@ import {
9
9
  getIndexerLastSuccessVersion,
10
10
  getLedgerInfo,
11
11
  getProcessorStatus,
12
- getTableItem,
13
12
  queryIndexer,
14
13
  } from "../internal/general";
15
14
  import { view } from "../internal/view";
@@ -22,7 +21,6 @@ import {
22
21
  LedgerInfo,
23
22
  LedgerVersionArg,
24
23
  MoveValue,
25
- TableItemRequest,
26
24
  } from "../types";
27
25
  import { ProcessorType } from "../utils/const";
28
26
  import { InputViewFunctionData } from "../transactions";
@@ -112,30 +110,6 @@ export class General {
112
110
  return getBlockByHeight({ aptosConfig: this.config, ...args });
113
111
  }
114
112
 
115
- /**
116
- * Queries for a table item for a table identified by the handle and the key for the item.
117
- * Key and value types need to be passed in to help with key serialization and value deserialization.
118
- *
119
- * @example https://api.devnet.aptoslabs.com/v1/accounts/0x1/resource/0x1::coin::CoinInfo%3C0x1::aptos_coin::AptosCoin%3E
120
- * const tableItem = await aptos.getTableItem({
121
- * handle: "0x123",
122
- * data: {
123
- * key_type: "address", // Move type of table key
124
- * value_type: "u128", // Move type of table value
125
- * key: "0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935" // Value of table key
126
- * },
127
- * })
128
- *
129
- * @param args.handle A pointer to where that table is stored
130
- * @param args.data Object that describes table item
131
- * @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
132
- *
133
- * @returns Table item value rendered in JSON
134
- */
135
- async getTableItem<T>(args: { handle: string; data: TableItemRequest; options?: LedgerVersionArg }): Promise<T> {
136
- return getTableItem<T>({ aptosConfig: this.config, ...args });
137
- }
138
-
139
113
  /**
140
114
  * Queries for a Move view function
141
115
  * @param args.payload Payload for the view function
@@ -0,0 +1,108 @@
1
+ import { getTableItem, getTableItemsData, getTableItemsMetadata } from "../internal/table";
2
+ import {
3
+ TableItemRequest,
4
+ LedgerVersionArg,
5
+ AnyNumber,
6
+ PaginationArgs,
7
+ WhereArg,
8
+ OrderByArg,
9
+ GetTableItemsDataResponse,
10
+ GetTableItemsMetadataResponse,
11
+ } from "../types";
12
+ import { TableItemsBoolExp, TableMetadatasBoolExp } from "../types/generated/types";
13
+ import { ProcessorType } from "../utils";
14
+ import { AptosConfig } from "./aptosConfig";
15
+ import { waitForIndexerOnVersion } from "./utils";
16
+
17
+ /**
18
+ * A class to query all `Table` Aptos related queries
19
+ */
20
+ export class Table {
21
+ readonly config: AptosConfig;
22
+
23
+ constructor(config: AptosConfig) {
24
+ this.config = config;
25
+ }
26
+
27
+ /**
28
+ * Queries for a table item for a table identified by the handle and the key for the item.
29
+ * Key and value types need to be passed in to help with key serialization and value deserialization.
30
+ *
31
+ * Note, this query calls the fullnode server
32
+ *
33
+ * @example https://api.devnet.aptoslabs.com/v1/accounts/0x1/resource/0x1::coin::CoinInfo%3C0x1::aptos_coin::AptosCoin%3E
34
+ * const tableItem = await aptos.getTableItem({
35
+ * handle: "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca",
36
+ * data: {
37
+ * key_type: "address", // Move type of table key
38
+ * value_type: "u128", // Move type of table value
39
+ * key: "0x619dc29a0aac8fa146714058e8dd6d2d0f3bdf5f6331907bf91f3acd81e6935" // Value of table key
40
+ * },
41
+ * })
42
+ *
43
+ * @param args.handle A pointer to where that table is stored
44
+ * @param args.data Object that describes table item
45
+ * @param args.options.ledgerVersion The ledger version to query, if not provided it will get the latest version
46
+ *
47
+ * @returns Table item value rendered in JSON
48
+ */
49
+ async getTableItem<T>(args: { handle: string; data: TableItemRequest; options?: LedgerVersionArg }): Promise<T> {
50
+ return getTableItem<T>({ aptosConfig: this.config, ...args });
51
+ }
52
+
53
+ /**
54
+ * Queries for a table items data.
55
+ *
56
+ * Optional `options.where` param can be passed to filter the response.
57
+ *
58
+ * Note, this query calls the indexer server
59
+ *
60
+ * @example
61
+ * const data = await aptos.getTableItemsData({
62
+ * options: { where: {
63
+ * table_handle: { _eq: "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca" },
64
+ * transaction_version: { _eq: "0" }
65
+ * }
66
+ * },
67
+ * });
68
+ *
69
+ * @returns GetTableItemsDataResponse
70
+ */
71
+ async getTableItemsData(args: {
72
+ minimumLedgerVersion?: AnyNumber;
73
+ options?: PaginationArgs & WhereArg<TableItemsBoolExp> & OrderByArg<GetTableItemsDataResponse[0]>;
74
+ }): Promise<GetTableItemsDataResponse> {
75
+ await waitForIndexerOnVersion({
76
+ config: this.config,
77
+ minimumLedgerVersion: args.minimumLedgerVersion,
78
+ processorType: ProcessorType.DEFAULT,
79
+ });
80
+ return getTableItemsData({ aptosConfig: this.config, ...args });
81
+ }
82
+
83
+ /**
84
+ * Queries for a table items metadata.
85
+ *
86
+ * Optional `options.where` param can be passed to filter the response.
87
+ *
88
+ * Note, this query calls the indexer server
89
+ *
90
+ * @example
91
+ * const data = await aptos.getTableItemsMetadata({
92
+ * options: { where: { handle: { _eq: "0x1b854694ae746cdbd8d44186ca4929b2b337df21d1c74633be19b2710552fdca" } } },
93
+ * });
94
+ *
95
+ * @returns GetTableItemsMetadataResponse
96
+ */
97
+ async getTableItemsMetadata(args: {
98
+ minimumLedgerVersion?: AnyNumber;
99
+ options?: PaginationArgs & WhereArg<TableMetadatasBoolExp> & OrderByArg<GetTableItemsMetadataResponse[0]>;
100
+ }): Promise<GetTableItemsMetadataResponse> {
101
+ await waitForIndexerOnVersion({
102
+ config: this.config,
103
+ minimumLedgerVersion: args.minimumLedgerVersion,
104
+ processorType: ProcessorType.DEFAULT,
105
+ });
106
+ return getTableItemsMetadata({ aptosConfig: this.config, ...args });
107
+ }
108
+ }
@@ -56,46 +56,6 @@ export class Deserializer {
56
56
  return textDecoder.decode(value);
57
57
  }
58
58
 
59
- /**
60
- * Deserializes a an optional string.
61
- *
62
- * BCS layout for Optional<String>: 0 if none, else 1 | string_length | string_content
63
- * @example
64
- * ```ts
65
- * const deserializer = new Deserializer(new Uint8Array([0x00]));
66
- * assert(deserializer.deserializeOptionStr() === undefined);
67
- * const deserializer = new Deserializer(new Uint8Array([1, 8, 49, 50, 51, 52, 97, 98, 99, 100]));
68
- * assert(deserializer.deserializeOptionStr() === "1234abcd");
69
- * ```
70
- */
71
- deserializeOptionStr(): string | undefined {
72
- const exists = this.deserializeUleb128AsU32();
73
- if (exists === 1) {
74
- return this.deserializeStr();
75
- }
76
- return undefined;
77
- }
78
-
79
- /**
80
- * Deserializes a an optional string.
81
- *
82
- * BCS layout for Optional<String>: 0 if none, else 1 | string_length | string_content
83
- * @example
84
- * ```ts
85
- * const deserializer = new Deserializer(new Uint8Array([0x00]));
86
- * assert(deserializer.deserializeOptionStr() === undefined);
87
- * const deserializer = new Deserializer(new Uint8Array([1, 8, 49, 50, 51, 52, 97, 98, 99, 100]));
88
- * assert(deserializer.deserializeOptionStr() === "1234abcd");
89
- * ```
90
- */
91
- deserializeOption<T>(cls: Deserializable<T>): T | undefined {
92
- const exists = this.deserializeUleb128AsU32();
93
- if (exists === 1) {
94
- return this.deserialize(cls);
95
- }
96
- return undefined;
97
- }
98
-
99
59
  /**
100
60
  * Deserializes an array of bytes.
101
61
  *
@@ -316,24 +316,6 @@ export class Serializer {
316
316
  item.serialize(this);
317
317
  });
318
318
  }
319
-
320
- serializeOption<T extends Serializable>(value?: T): void {
321
- if (value === undefined) {
322
- this.serializeU32AsUleb128(0);
323
- } else {
324
- this.serializeU32AsUleb128(1);
325
- value.serialize(this);
326
- }
327
- }
328
-
329
- serializeOptionStr(value?: string): void {
330
- if (value === undefined) {
331
- this.serializeU32AsUleb128(0);
332
- } else {
333
- this.serializeU32AsUleb128(1);
334
- this.serializeStr(value);
335
- }
336
- }
337
319
  }
338
320
 
339
321
  export function ensureBoolean(value: unknown): asserts value is boolean {
package/src/cli/move.ts CHANGED
@@ -114,7 +114,7 @@ export class Move {
114
114
  // eslint-disable-next-line class-methods-use-this
115
115
  private async runCommand(args: Array<string>): Promise<boolean> {
116
116
  return new Promise((resolve, reject) => {
117
- const childProcess = spawn("npx", args);
117
+ const childProcess = spawn("npx", args, { shell: true });
118
118
 
119
119
  childProcess.stdout.pipe(process.stdout);
120
120
  childProcess.stderr.pipe(process.stderr);
@@ -106,14 +106,6 @@ export async function aptosRequest<Req extends {}, Res extends {}>(
106
106
  return result;
107
107
  }
108
108
 
109
- if (result.status >= 500) {
110
- throw new AptosApiError(options, result, `${response.data}`);
111
- }
112
-
113
- if (aptosConfig.isPepperServiceRequest(url) || aptosConfig.isProverServiceRequest(url)) {
114
- throw new AptosApiError(options, result, `${response.data}`);
115
- }
116
-
117
109
  let errorMessage: string;
118
110
 
119
111
  if (result && result.data && "message" in result.data && "error_code" in result.data) {
package/src/client/get.ts CHANGED
@@ -89,12 +89,6 @@ export async function getAptosFullNode<Req extends {}, Res extends {}>(
89
89
  });
90
90
  }
91
91
 
92
- export async function getAptosPepperService<Req extends {}, Res extends {}>(
93
- options: GetAptosRequestOptions,
94
- ): Promise<AptosResponse<Req, Res>> {
95
- return get<Req, Res>({ ...options, type: AptosApiType.PEPPER });
96
- }
97
-
98
92
  /// This function is a helper for paginating using a function wrapping an API
99
93
  export async function paginateWithCursor<Req extends Record<string, any>, Res extends Array<{}>>(
100
94
  options: GetAptosRequestOptions,