@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
@@ -135,15 +135,3 @@ export async function postAptosFaucet<Req extends {}, Res extends {}>(
135
135
  },
136
136
  });
137
137
  }
138
-
139
- export async function postAptosPepperService<Req extends {}, Res extends {}>(
140
- options: PostAptosRequestOptions,
141
- ): Promise<AptosResponse<Req, Res>> {
142
- return post<Req, Res>({ ...options, type: AptosApiType.PEPPER });
143
- }
144
-
145
- export async function postAptosProvingService<Req extends {}, Res extends {}>(
146
- options: PostAptosRequestOptions,
147
- ): Promise<AptosResponse<Req, Res>> {
148
- return post<Req, Res>({ ...options, type: AptosApiType.PROVER });
149
- }
@@ -41,7 +41,7 @@ export class AptosApiError extends Error {
41
41
 
42
42
  readonly statusText: string;
43
43
 
44
- readonly data: { message: string; error_code?: string; vm_error_code?: number };
44
+ readonly data: any;
45
45
 
46
46
  readonly request: AptosRequest;
47
47
 
@@ -5,8 +5,6 @@ export * from "./ed25519";
5
5
  export * from "./hdKey";
6
6
  export * from "./multiEd25519";
7
7
  export * from "./multiKey";
8
- export * from "./ephemeral";
9
- export * from "./keyless";
10
8
  export * from "./privateKey";
11
9
  export * from "./publicKey";
12
10
  export * from "./secp256k1";
@@ -4,7 +4,6 @@ import { AuthenticationKey } from "../authenticationKey";
4
4
  import { Ed25519PublicKey, Ed25519Signature } from "./ed25519";
5
5
  import { AccountPublicKey, PublicKey, VerifySignatureArgs } from "./publicKey";
6
6
  import { Secp256k1PublicKey, Secp256k1Signature } from "./secp256k1";
7
- import { KeylessPublicKey, KeylessSignature } from "./keyless";
8
7
  import { Signature } from "./signature";
9
8
 
10
9
  /**
@@ -35,8 +34,6 @@ export class AnyPublicKey extends AccountPublicKey {
35
34
  this.variant = AnyPublicKeyVariant.Ed25519;
36
35
  } else if (publicKey instanceof Secp256k1PublicKey) {
37
36
  this.variant = AnyPublicKeyVariant.Secp256k1;
38
- } else if (publicKey instanceof KeylessPublicKey) {
39
- this.variant = AnyPublicKeyVariant.Keyless;
40
37
  } else {
41
38
  throw new Error("Unsupported public key type");
42
39
  }
@@ -88,9 +85,6 @@ export class AnyPublicKey extends AccountPublicKey {
88
85
  case AnyPublicKeyVariant.Secp256k1:
89
86
  publicKey = Secp256k1PublicKey.deserialize(deserializer);
90
87
  break;
91
- case AnyPublicKeyVariant.Keyless:
92
- publicKey = KeylessPublicKey.deserialize(deserializer);
93
- break;
94
88
  default:
95
89
  throw new Error(`Unknown variant index for AnyPublicKey: ${variantIndex}`);
96
90
  }
@@ -144,8 +138,6 @@ export class AnySignature extends Signature {
144
138
  this.variant = AnySignatureVariant.Ed25519;
145
139
  } else if (signature instanceof Secp256k1Signature) {
146
140
  this.variant = AnySignatureVariant.Secp256k1;
147
- } else if (signature instanceof KeylessSignature) {
148
- this.variant = AnySignatureVariant.Keyless;
149
141
  } else {
150
142
  throw new Error("Unsupported signature type");
151
143
  }
@@ -178,9 +170,6 @@ export class AnySignature extends Signature {
178
170
  case AnySignatureVariant.Secp256k1:
179
171
  signature = Secp256k1Signature.deserialize(deserializer);
180
172
  break;
181
- case AnySignatureVariant.Keyless:
182
- signature = KeylessSignature.deserialize(deserializer);
183
- break;
184
173
  default:
185
174
  throw new Error(`Unknown variant index for AnySignature: ${variantIndex}`);
186
175
  }
@@ -13,7 +13,7 @@ import { AptosApiError, getAptosFullNode, paginateWithCursor } from "../client";
13
13
  import { AccountAddress, AccountAddressInput } from "../core/accountAddress";
14
14
  import { Account } from "../account";
15
15
  import { AnyPublicKey, Ed25519PublicKey, PrivateKey } from "../core/crypto";
16
- import { getTableItem, queryIndexer } from "./general";
16
+ import { queryIndexer } from "./general";
17
17
  import {
18
18
  AccountData,
19
19
  GetAccountCoinsDataResponse,
@@ -54,6 +54,7 @@ import {
54
54
  import { memoizeAsync } from "../utils/memoize";
55
55
  import { Secp256k1PrivateKey, AuthenticationKey, Ed25519PrivateKey } from "../core";
56
56
  import { CurrentFungibleAssetBalancesBoolExp } from "../types/generated/types";
57
+ import { getTableItem } from "./table";
57
58
 
58
59
  export async function getInfo(args: {
59
60
  aptosConfig: AptosConfig;
@@ -9,7 +9,7 @@
9
9
  */
10
10
 
11
11
  import { AptosConfig } from "../api/aptosConfig";
12
- import { getAptosFullNode, postAptosFullNode, postAptosIndexer } from "../client";
12
+ import { getAptosFullNode, postAptosIndexer } from "../client";
13
13
  import {
14
14
  AnyNumber,
15
15
  Block,
@@ -17,8 +17,6 @@ import {
17
17
  GetProcessorStatusResponse,
18
18
  GraphqlQuery,
19
19
  LedgerInfo,
20
- LedgerVersionArg,
21
- TableItemRequest,
22
20
  } from "../types";
23
21
  import { GetChainTopUserTransactionsQuery, GetProcessorStatusQuery } from "../types/generated/operations";
24
22
  import { GetChainTopUserTransactions, GetProcessorStatus } from "../types/generated/queries";
@@ -64,23 +62,6 @@ export async function getBlockByHeight(args: {
64
62
  return data;
65
63
  }
66
64
 
67
- export async function getTableItem<T>(args: {
68
- aptosConfig: AptosConfig;
69
- handle: string;
70
- data: TableItemRequest;
71
- options?: LedgerVersionArg;
72
- }): Promise<T> {
73
- const { aptosConfig, handle, data, options } = args;
74
- const response = await postAptosFullNode<TableItemRequest, any>({
75
- aptosConfig,
76
- originMethod: "getTableItem",
77
- path: `tables/${handle}/item`,
78
- params: { ledger_version: options?.ledgerVersion },
79
- body: data,
80
- });
81
- return response.data as T;
82
- }
83
-
84
65
  export async function getChainTopUserTransactions(args: {
85
66
  aptosConfig: AptosConfig;
86
67
  limit: number;
@@ -25,6 +25,7 @@ fragment CurrentTokenOwnershipFields on current_token_ownerships_v2 {
25
25
  token_properties
26
26
  token_standard
27
27
  token_uri
28
+ decimals
28
29
  current_collection {
29
30
  collection_id
30
31
  collection_name
@@ -0,0 +1,15 @@
1
+ query getTableItemsData(
2
+ $where_condition: table_items_bool_exp!
3
+ $offset: Int
4
+ $limit: Int
5
+ $order_by: [table_items_order_by!]
6
+ ) {
7
+ table_items(where: $where_condition, offset: $offset, limit: $limit, order_by: $order_by){
8
+ decoded_key
9
+ decoded_value
10
+ key
11
+ table_handle
12
+ transaction_version
13
+ write_set_change_index
14
+ }
15
+ }
@@ -0,0 +1,12 @@
1
+ query getTableItemsMetadata(
2
+ $where_condition: table_metadatas_bool_exp!
3
+ $offset: Int
4
+ $limit: Int
5
+ $order_by: [table_metadatas_order_by!]
6
+ ) {
7
+ table_metadatas(where: $where_condition, offset: $offset, limit: $limit, order_by: $order_by){
8
+ handle
9
+ key_type
10
+ value_type
11
+ }
12
+ }
@@ -0,0 +1,82 @@
1
+ import { AptosConfig } from "../api/aptosConfig";
2
+ import { postAptosFullNode } from "../client";
3
+ import {
4
+ TableItemRequest,
5
+ LedgerVersionArg,
6
+ PaginationArgs,
7
+ WhereArg,
8
+ OrderByArg,
9
+ GetTableItemsDataResponse,
10
+ GetTableItemsMetadataResponse,
11
+ } from "../types";
12
+ import { GetTableItemsDataQuery, GetTableItemsMetadataQuery } from "../types/generated/operations";
13
+ import { GetTableItemsData, GetTableItemsMetadata } from "../types/generated/queries";
14
+ import { TableItemsBoolExp, TableMetadatasBoolExp } from "../types/generated/types";
15
+ import { queryIndexer } from "./general";
16
+
17
+ export async function getTableItem<T>(args: {
18
+ aptosConfig: AptosConfig;
19
+ handle: string;
20
+ data: TableItemRequest;
21
+ options?: LedgerVersionArg;
22
+ }): Promise<T> {
23
+ const { aptosConfig, handle, data, options } = args;
24
+ const response = await postAptosFullNode<TableItemRequest, any>({
25
+ aptosConfig,
26
+ originMethod: "getTableItem",
27
+ path: `tables/${handle}/item`,
28
+ params: { ledger_version: options?.ledgerVersion },
29
+ body: data,
30
+ });
31
+ return response.data as T;
32
+ }
33
+
34
+ export async function getTableItemsData(args: {
35
+ aptosConfig: AptosConfig;
36
+ options?: PaginationArgs & WhereArg<TableItemsBoolExp> & OrderByArg<GetTableItemsDataResponse[0]>;
37
+ }) {
38
+ const { aptosConfig, options } = args;
39
+
40
+ const graphqlQuery = {
41
+ query: GetTableItemsData,
42
+ variables: {
43
+ where_condition: options?.where,
44
+ offset: options?.offset,
45
+ limit: options?.limit,
46
+ order_by: options?.orderBy,
47
+ },
48
+ };
49
+
50
+ const data = await queryIndexer<GetTableItemsDataQuery>({
51
+ aptosConfig,
52
+ query: graphqlQuery,
53
+ originMethod: "getTableItemsData",
54
+ });
55
+
56
+ return data.table_items;
57
+ }
58
+
59
+ export async function getTableItemsMetadata(args: {
60
+ aptosConfig: AptosConfig;
61
+ options?: PaginationArgs & WhereArg<TableMetadatasBoolExp> & OrderByArg<GetTableItemsMetadataResponse[0]>;
62
+ }): Promise<GetTableItemsMetadataResponse> {
63
+ const { aptosConfig, options } = args;
64
+
65
+ const graphqlQuery = {
66
+ query: GetTableItemsMetadata,
67
+ variables: {
68
+ where_condition: options?.where,
69
+ offset: options?.offset,
70
+ limit: options?.limit,
71
+ order_by: options?.orderBy,
72
+ },
73
+ };
74
+
75
+ const data = await queryIndexer<GetTableItemsMetadataQuery>({
76
+ aptosConfig,
77
+ query: graphqlQuery,
78
+ originMethod: "getTableItemsMetadata",
79
+ });
80
+
81
+ return data.table_metadatas;
82
+ }
@@ -7,8 +7,8 @@
7
7
 
8
8
  import { AptosConfig } from "../api/aptosConfig";
9
9
  import { MoveVector, U8 } from "../bcs";
10
- import { AptosApiError, postAptosFullNode } from "../client";
11
- import { Account, KeylessAccount, MultiKeyAccount } from "../account";
10
+ import { postAptosFullNode } from "../client";
11
+ import { Account } from "../account";
12
12
  import { AccountAddress, AccountAddressInput } from "../core/accountAddress";
13
13
  import { PrivateKey } from "../core/crypto";
14
14
  import { AccountAuthenticator } from "../transactions/authenticator/account";
@@ -36,7 +36,6 @@ import { UserTransactionResponse, PendingTransactionResponse, MimeType, HexInput
36
36
  import { TypeTagU8, TypeTagVector, generateSigningMessageForTransaction } from "../transactions";
37
37
  import { SimpleTransaction } from "../transactions/instances/simpleTransaction";
38
38
  import { MultiAgentTransaction } from "../transactions/instances/multiAgentTransaction";
39
- import { KeylessError } from "../types/keyless";
40
39
 
41
40
  /**
42
41
  * We are defining function signatures, each with its specific input and output.
@@ -276,24 +275,12 @@ export async function signAndSubmitTransaction(args: {
276
275
  transaction: AnyRawTransaction;
277
276
  }): Promise<PendingTransactionResponse> {
278
277
  const { aptosConfig, signer, transaction } = args;
279
- // If the signer contains a KeylessAccount, await proof fetching in case the proof
280
- // was fetched asyncronously.
281
- if (signer instanceof KeylessAccount || signer instanceof MultiKeyAccount) {
282
- await signer.waitForProofFetch();
283
- }
284
278
  const authenticator = signTransaction({ signer, transaction });
285
- try {
286
- return await submitTransaction({
287
- aptosConfig,
288
- transaction,
289
- senderAuthenticator: authenticator,
290
- });
291
- } catch (error) {
292
- if (error instanceof AptosApiError && signer instanceof KeylessAccount) {
293
- throw await KeylessError.fromAptosApiError(error, signer);
294
- }
295
- throw error;
296
- }
279
+ return submitTransaction({
280
+ aptosConfig,
281
+ transaction,
282
+ senderAuthenticator: authenticator,
283
+ });
297
284
  }
298
285
 
299
286
  const packagePublishAbi: EntryFunctionABI = {
@@ -9,13 +9,7 @@
9
9
  import { sha3_256 as sha3Hash } from "@noble/hashes/sha3";
10
10
  import { AptosConfig } from "../../api/aptosConfig";
11
11
  import { AccountAddress, AccountAddressInput, Hex, PublicKey } from "../../core";
12
- import {
13
- AnyPublicKey,
14
- AnySignature,
15
- KeylessPublicKey,
16
- Secp256k1PublicKey,
17
- Secp256k1Signature,
18
- } from "../../core/crypto";
12
+ import { AnyPublicKey, AnySignature, Secp256k1PublicKey, Secp256k1Signature } from "../../core/crypto";
19
13
  import { Ed25519PublicKey, Ed25519Signature } from "../../core/crypto/ed25519";
20
14
  import { getInfo } from "../../internal/account";
21
15
  import { getLedgerInfo } from "../../internal/general";
@@ -446,12 +440,7 @@ export function generateSignedTransactionForSimulation(args: InputSimulateTransa
446
440
  return new SignedTransaction(transaction.rawTransaction, transactionAuthenticator).bcsToBytes();
447
441
  }
448
442
 
449
- export function getAuthenticatorForSimulation(pk: PublicKey) {
450
- let publicKey = pk;
451
- if (publicKey instanceof KeylessPublicKey || publicKey instanceof Secp256k1PublicKey) {
452
- publicKey = new AnyPublicKey(publicKey);
453
- }
454
-
443
+ export function getAuthenticatorForSimulation(publicKey: PublicKey) {
455
444
  // TODO add support for AnyMultiKey
456
445
  if (publicKey instanceof AnyPublicKey) {
457
446
  if (publicKey.publicKey instanceof Ed25519PublicKey) {
@@ -460,9 +449,6 @@ export function getAuthenticatorForSimulation(pk: PublicKey) {
460
449
  if (publicKey.publicKey instanceof Secp256k1PublicKey) {
461
450
  return new AccountAuthenticatorSingleKey(publicKey, new AnySignature(new Secp256k1Signature(new Uint8Array(64))));
462
451
  }
463
- if (publicKey.publicKey instanceof KeylessPublicKey) {
464
- return new AccountAuthenticatorSingleKey(publicKey, new AnySignature(new Ed25519Signature(new Uint8Array(64))));
465
- }
466
452
  }
467
453
 
468
454
  // legacy code
@@ -535,6 +535,35 @@ export type GetProcessorStatusQuery = {
535
535
  processor_status: Array<{ last_success_version: any; processor: string; last_updated: any }>;
536
536
  };
537
537
 
538
+ export type GetTableItemsDataQueryVariables = Types.Exact<{
539
+ where_condition: Types.TableItemsBoolExp;
540
+ offset?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
541
+ limit?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
542
+ order_by?: Types.InputMaybe<Array<Types.TableItemsOrderBy> | Types.TableItemsOrderBy>;
543
+ }>;
544
+
545
+ export type GetTableItemsDataQuery = {
546
+ table_items: Array<{
547
+ decoded_key: any;
548
+ decoded_value?: any | null;
549
+ key: string;
550
+ table_handle: string;
551
+ transaction_version: any;
552
+ write_set_change_index: any;
553
+ }>;
554
+ };
555
+
556
+ export type GetTableItemsMetadataQueryVariables = Types.Exact<{
557
+ where_condition: Types.TableMetadatasBoolExp;
558
+ offset?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
559
+ limit?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
560
+ order_by?: Types.InputMaybe<Array<Types.TableMetadatasOrderBy> | Types.TableMetadatasOrderBy>;
561
+ }>;
562
+
563
+ export type GetTableItemsMetadataQuery = {
564
+ table_metadatas: Array<{ handle: string; key_type: string; value_type: string }>;
565
+ };
566
+
538
567
  export type GetTokenActivityQueryVariables = Types.Exact<{
539
568
  where_condition: Types.TokenActivitiesV2BoolExp;
540
569
  offset?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
@@ -389,6 +389,37 @@ export const GetProcessorStatus = `
389
389
  }
390
390
  }
391
391
  `;
392
+ export const GetTableItemsData = `
393
+ query getTableItemsData($where_condition: table_items_bool_exp!, $offset: Int, $limit: Int, $order_by: [table_items_order_by!]) {
394
+ table_items(
395
+ where: $where_condition
396
+ offset: $offset
397
+ limit: $limit
398
+ order_by: $order_by
399
+ ) {
400
+ decoded_key
401
+ decoded_value
402
+ key
403
+ table_handle
404
+ transaction_version
405
+ write_set_change_index
406
+ }
407
+ }
408
+ `;
409
+ export const GetTableItemsMetadata = `
410
+ query getTableItemsMetadata($where_condition: table_metadatas_bool_exp!, $offset: Int, $limit: Int, $order_by: [table_metadatas_order_by!]) {
411
+ table_metadatas(
412
+ where: $where_condition
413
+ offset: $offset
414
+ limit: $limit
415
+ order_by: $order_by
416
+ ) {
417
+ handle
418
+ key_type
419
+ value_type
420
+ }
421
+ }
422
+ `;
392
423
  export const GetTokenActivity = `
393
424
  query getTokenActivity($where_condition: token_activities_v2_bool_exp!, $offset: Int, $limit: Int, $order_by: [token_activities_v2_order_by!]) {
394
425
  token_activities_v2(
@@ -727,6 +758,34 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
727
758
  "query",
728
759
  );
729
760
  },
761
+ getTableItemsData(
762
+ variables: Types.GetTableItemsDataQueryVariables,
763
+ requestHeaders?: GraphQLClientRequestHeaders,
764
+ ): Promise<Types.GetTableItemsDataQuery> {
765
+ return withWrapper(
766
+ (wrappedRequestHeaders) =>
767
+ client.request<Types.GetTableItemsDataQuery>(GetTableItemsData, variables, {
768
+ ...requestHeaders,
769
+ ...wrappedRequestHeaders,
770
+ }),
771
+ "getTableItemsData",
772
+ "query",
773
+ );
774
+ },
775
+ getTableItemsMetadata(
776
+ variables: Types.GetTableItemsMetadataQueryVariables,
777
+ requestHeaders?: GraphQLClientRequestHeaders,
778
+ ): Promise<Types.GetTableItemsMetadataQuery> {
779
+ return withWrapper(
780
+ (wrappedRequestHeaders) =>
781
+ client.request<Types.GetTableItemsMetadataQuery>(GetTableItemsMetadata, variables, {
782
+ ...requestHeaders,
783
+ ...wrappedRequestHeaders,
784
+ }),
785
+ "getTableItemsMetadata",
786
+ "query",
787
+ );
788
+ },
730
789
  getTokenActivity(
731
790
  variables: Types.GetTokenActivityQueryVariables,
732
791
  requestHeaders?: GraphQLClientRequestHeaders,