@aptos-labs/ts-sdk 1.17.0-zeta.0 → 1.17.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 (471) hide show
  1. package/dist/common/{accountAddress-jP2Ua0t9.d.ts → accountAddress-ccLvlUQe.d.ts} +5 -97
  2. package/dist/common/chunk-KSEUZTKY.js +2 -0
  3. package/dist/common/chunk-KSEUZTKY.js.map +1 -0
  4. package/dist/common/cli/index.d.ts +1 -1
  5. package/dist/common/cli/index.js +1 -1
  6. package/dist/common/index.d.ts +117 -837
  7. package/dist/common/index.js +28 -28
  8. package/dist/common/index.js.map +1 -1
  9. package/dist/esm/{Ed25519Account-9zBaZEnp.d.mts → Ed25519Account-B1VMJOY2.d.mts} +1 -1
  10. package/dist/esm/account/Account.d.mts +2 -2
  11. package/dist/esm/account/Account.mjs +1 -1
  12. package/dist/esm/account/Ed25519Account.d.mts +2 -2
  13. package/dist/esm/account/Ed25519Account.mjs +1 -1
  14. package/dist/esm/account/MultiKeyAccount.d.mts +7 -13
  15. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  16. package/dist/esm/account/SingleKeyAccount.d.mts +2 -2
  17. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  18. package/dist/esm/account/index.d.mts +2 -9
  19. package/dist/esm/account/index.mjs +1 -1
  20. package/dist/esm/api/account.d.mts +3 -3
  21. package/dist/esm/api/account.mjs +1 -1
  22. package/dist/esm/api/ans.d.mts +4 -4
  23. package/dist/esm/api/ans.mjs +1 -1
  24. package/dist/esm/api/aptos.d.mts +3 -12
  25. package/dist/esm/api/aptos.mjs +1 -1
  26. package/dist/esm/api/aptosConfig.d.mts +0 -20
  27. package/dist/esm/api/aptosConfig.mjs +1 -1
  28. package/dist/esm/api/coin.d.mts +3 -3
  29. package/dist/esm/api/coin.mjs +1 -1
  30. package/dist/esm/api/digitalAsset.d.mts +4 -4
  31. package/dist/esm/api/digitalAsset.mjs +1 -1
  32. package/dist/esm/api/event.mjs +1 -1
  33. package/dist/esm/api/faucet.mjs +1 -1
  34. package/dist/esm/api/fungibleAsset.d.mts +2 -2
  35. package/dist/esm/api/fungibleAsset.mjs +1 -1
  36. package/dist/esm/api/general.d.mts +1 -1
  37. package/dist/esm/api/general.mjs +1 -1
  38. package/dist/esm/api/index.d.mts +2 -10
  39. package/dist/esm/api/index.mjs +1 -1
  40. package/dist/esm/api/staking.mjs +1 -1
  41. package/dist/esm/api/table.mjs +1 -1
  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 +3 -3
  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 +4 -4
  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 +3 -3
  52. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  53. package/dist/esm/api/transactionSubmission/submit.d.mts +3 -3
  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 -32
  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 -42
  64. package/dist/esm/bcs/serializer.mjs +1 -1
  65. package/dist/esm/{chunk-HXYZECGS.mjs → chunk-2HF2XEHO.mjs} +2 -2
  66. package/dist/esm/{chunk-BO44HPGU.mjs → chunk-2X7A4HUS.mjs} +2 -2
  67. package/dist/esm/{chunk-LDQJ5S77.mjs → chunk-337U6Q6K.mjs} +2 -2
  68. package/dist/esm/{chunk-TUCCV62K.mjs → chunk-35EWRSDK.mjs} +2 -2
  69. package/dist/esm/{chunk-UMLUOYFK.mjs → chunk-36QXVFR5.mjs} +2 -2
  70. package/dist/esm/{chunk-UMLUOYFK.mjs.map → chunk-36QXVFR5.mjs.map} +1 -1
  71. package/dist/esm/{chunk-64VPA7CM.mjs → chunk-3BNA74V5.mjs} +2 -2
  72. package/dist/esm/chunk-3JPVQHOR.mjs +2 -0
  73. package/dist/esm/chunk-3JPVQHOR.mjs.map +1 -0
  74. package/dist/esm/chunk-3N6N3KOS.mjs +2 -0
  75. package/dist/esm/{chunk-HP6YVTTT.mjs.map → chunk-3N6N3KOS.mjs.map} +1 -1
  76. package/dist/esm/{chunk-LIT6V2A6.mjs → chunk-3SPIFLBZ.mjs} +2 -2
  77. package/dist/esm/{chunk-GQC73XWZ.mjs → chunk-3XFID2N4.mjs} +2 -2
  78. package/dist/esm/{chunk-IPFITPKC.mjs → chunk-47IIBESV.mjs} +2 -2
  79. package/dist/esm/{chunk-T5YEMU53.mjs → chunk-4GWNWSZP.mjs} +2 -2
  80. package/dist/esm/chunk-4NHWV5AI.mjs +2 -0
  81. package/dist/esm/chunk-53INTTOI.mjs +2 -0
  82. package/dist/esm/{chunk-EFMAZTIM.mjs → chunk-5EN52MUT.mjs} +2 -2
  83. package/dist/esm/{chunk-QFVQSFBZ.mjs → chunk-5UKBTF7N.mjs} +2 -2
  84. package/dist/esm/chunk-6IFMQ5AS.mjs +2 -0
  85. package/dist/esm/chunk-6IFMQ5AS.mjs.map +1 -0
  86. package/dist/esm/{chunk-UHZWZWJ7.mjs → chunk-6YV3366Z.mjs} +2 -2
  87. package/dist/esm/{chunk-DJPYZIJY.mjs → chunk-73QJNN7O.mjs} +2 -2
  88. package/dist/esm/chunk-746MU2AB.mjs +2 -0
  89. package/dist/esm/chunk-746MU2AB.mjs.map +1 -0
  90. package/dist/esm/chunk-AF5WNJOP.mjs +2 -0
  91. package/dist/esm/{chunk-YRUF6N3U.mjs → chunk-AHW3SKT7.mjs} +2 -2
  92. package/dist/esm/chunk-AQAH67IV.mjs +2 -0
  93. package/dist/esm/chunk-B7X6PSE7.mjs +2 -0
  94. package/dist/esm/{chunk-64CUEMFI.mjs → chunk-BBVIJO6X.mjs} +2 -2
  95. package/dist/esm/{chunk-AOCNYMMX.mjs → chunk-BCUSI3N6.mjs} +2 -2
  96. package/dist/esm/{chunk-WIYDJE6F.mjs → chunk-BEVXJJJF.mjs} +2 -2
  97. package/dist/esm/chunk-BRVWHCP3.mjs +2 -0
  98. package/dist/esm/{chunk-2G4IGSGM.mjs.map → chunk-BRVWHCP3.mjs.map} +1 -1
  99. package/dist/esm/chunk-BSVNV6SJ.mjs +2 -0
  100. package/dist/esm/{chunk-SYRND55P.mjs → chunk-CE65OKFI.mjs} +2 -2
  101. package/dist/esm/chunk-CEHCDA3G.mjs +2 -0
  102. package/dist/esm/{chunk-GBQU2OCK.mjs → chunk-CT2BQQTZ.mjs} +2 -2
  103. package/dist/esm/chunk-CYNQRMO5.mjs +2 -0
  104. package/dist/esm/chunk-CYNQRMO5.mjs.map +1 -0
  105. package/dist/esm/{chunk-YA4XTZNZ.mjs → chunk-CZOD4SCZ.mjs} +2 -2
  106. package/dist/esm/chunk-D2LNQMKD.mjs +2 -0
  107. package/dist/esm/chunk-D2LNQMKD.mjs.map +1 -0
  108. package/dist/esm/chunk-DLAIJ2UM.mjs +2 -0
  109. package/dist/esm/chunk-DLAIJ2UM.mjs.map +1 -0
  110. package/dist/esm/chunk-F7EMGK4M.mjs +2 -0
  111. package/dist/esm/{chunk-O7VXANBW.mjs → chunk-FAFJKSVZ.mjs} +2 -2
  112. package/dist/esm/{chunk-7G3RSOWE.mjs → chunk-G2UPF44Z.mjs} +2 -2
  113. package/dist/esm/{chunk-ZIDLP5MI.mjs → chunk-G2XVNF2T.mjs} +2 -2
  114. package/dist/esm/{chunk-FGGRPEQ3.mjs → chunk-G56GPLTB.mjs} +2 -2
  115. package/dist/esm/{chunk-6FBKUTGF.mjs → chunk-GHYE26Q5.mjs} +2 -2
  116. package/dist/esm/{chunk-IXFYYWAC.mjs → chunk-GM56MMNJ.mjs} +2 -2
  117. package/dist/esm/{chunk-S5ABQH5R.mjs → chunk-HLC4HAYY.mjs} +2 -2
  118. package/dist/esm/chunk-HYCGMFC2.mjs +2 -0
  119. package/dist/esm/chunk-HYCGMFC2.mjs.map +1 -0
  120. package/dist/esm/chunk-IENCDVPF.mjs +2 -0
  121. package/dist/esm/chunk-IENCDVPF.mjs.map +1 -0
  122. package/dist/esm/{chunk-FNFQA7NS.mjs → chunk-ISIUQQMV.mjs} +2 -2
  123. package/dist/esm/{chunk-JZOTXY77.mjs → chunk-J4VNDDKJ.mjs} +2 -2
  124. package/dist/esm/{chunk-MNTLX37G.mjs → chunk-J4Z6XR5D.mjs} +2 -2
  125. package/dist/esm/{chunk-5WFKJO5L.mjs → chunk-J5I4OZAS.mjs} +2 -2
  126. package/dist/esm/{chunk-X4X5H6NC.mjs → chunk-J6HKAEKY.mjs} +2 -2
  127. package/dist/esm/{chunk-YDNOKWV3.mjs → chunk-JX75UKJX.mjs} +2 -2
  128. package/dist/esm/{chunk-DPWEHSHH.mjs → chunk-KAGLWBIJ.mjs} +2 -2
  129. package/dist/esm/{chunk-X3HGM2KT.mjs → chunk-KZZWY4YI.mjs} +2 -2
  130. package/dist/esm/chunk-LG7RJQ57.mjs +2 -0
  131. package/dist/esm/{chunk-FSO54CI4.mjs → chunk-LGNSPATO.mjs} +2 -2
  132. package/dist/esm/{chunk-SNDFJWYM.mjs → chunk-MCRRHBFQ.mjs} +2 -2
  133. package/dist/esm/chunk-MM5VMKFE.mjs +2 -0
  134. package/dist/esm/chunk-MM5VMKFE.mjs.map +1 -0
  135. package/dist/esm/chunk-N3U47Y6Y.mjs +2 -0
  136. package/dist/esm/{chunk-GPWSPT44.mjs → chunk-ND6OMSQU.mjs} +2 -2
  137. package/dist/esm/{chunk-BT6IM25V.mjs → chunk-NUK6JT5I.mjs} +2 -2
  138. package/dist/esm/chunk-OWW6SIDP.mjs +2 -0
  139. package/dist/esm/chunk-OWW6SIDP.mjs.map +1 -0
  140. package/dist/esm/chunk-PF57EOJY.mjs +2 -0
  141. package/dist/esm/{chunk-ZV5MKFV7.mjs → chunk-PIVZMT5D.mjs} +2 -2
  142. package/dist/esm/{chunk-FR6UGCOX.mjs → chunk-PZ4SAXY7.mjs} +2 -2
  143. package/dist/esm/chunk-PZ4SAXY7.mjs.map +1 -0
  144. package/dist/esm/{chunk-F3ZVWLDH.mjs → chunk-QRS4DGP3.mjs} +2 -2
  145. package/dist/esm/{chunk-F3ZVWLDH.mjs.map → chunk-QRS4DGP3.mjs.map} +1 -1
  146. package/dist/esm/{chunk-W63KIXLK.mjs → chunk-R5VVKRJ2.mjs} +2 -2
  147. package/dist/esm/{chunk-7M4C4OZN.mjs → chunk-RNL5TAQT.mjs} +2 -2
  148. package/dist/esm/chunk-ROXFCLDT.mjs +2 -0
  149. package/dist/esm/{chunk-B2RYTKNN.mjs → chunk-RPND23OR.mjs} +2 -2
  150. package/dist/esm/chunk-RTSWVT2Q.mjs +2 -0
  151. package/dist/esm/chunk-RTSWVT2Q.mjs.map +1 -0
  152. package/dist/esm/{chunk-XH33BXEY.mjs → chunk-RWXHA4QZ.mjs} +2 -2
  153. package/dist/esm/chunk-SRDIYE3M.mjs +2 -0
  154. package/dist/esm/{chunk-IBN7ETCB.mjs.map → chunk-SRDIYE3M.mjs.map} +1 -1
  155. package/dist/esm/chunk-SUAMDMAA.mjs +2 -0
  156. package/dist/esm/{chunk-3SACE4I2.mjs.map → chunk-SUAMDMAA.mjs.map} +1 -1
  157. package/dist/esm/{chunk-XVZBWW46.mjs → chunk-T2AGN5YT.mjs} +2 -2
  158. package/dist/esm/{chunk-HGJMVOBH.mjs → chunk-TQLED4KC.mjs} +2 -2
  159. package/dist/esm/{chunk-MLX6DFMR.mjs → chunk-U3YYSIIT.mjs} +2 -2
  160. package/dist/esm/chunk-UGPALAPN.mjs +2 -0
  161. package/dist/esm/chunk-UO3NZ5AH.mjs +1 -0
  162. package/dist/esm/chunk-UTKM2WYS.mjs +2 -0
  163. package/dist/esm/chunk-UTKM2WYS.mjs.map +1 -0
  164. package/dist/esm/chunk-UVSRX4SV.mjs +1 -0
  165. package/dist/esm/chunk-W33BZ6IQ.mjs +2 -0
  166. package/dist/esm/chunk-W33BZ6IQ.mjs.map +1 -0
  167. package/dist/esm/{chunk-UVTJEMV4.mjs → chunk-YR7JRJ25.mjs} +2 -2
  168. package/dist/esm/{chunk-7UKBRLGM.mjs → chunk-ZHCSSCC5.mjs} +2 -2
  169. package/dist/esm/{chunk-L5ZHZWHI.mjs → chunk-ZRKXS7XG.mjs} +2 -2
  170. package/dist/esm/cli/index.mjs +1 -1
  171. package/dist/esm/cli/localNode.mjs +1 -1
  172. package/dist/esm/client/core.mjs +1 -1
  173. package/dist/esm/client/get.d.mts +1 -8
  174. package/dist/esm/client/get.mjs +1 -1
  175. package/dist/esm/client/index.d.mts +2 -2
  176. package/dist/esm/client/index.mjs +1 -1
  177. package/dist/esm/client/post.d.mts +1 -9
  178. package/dist/esm/client/post.mjs +1 -1
  179. package/dist/esm/client/types.mjs +1 -1
  180. package/dist/esm/core/account/index.mjs +1 -1
  181. package/dist/esm/core/account/utils/address.mjs +1 -1
  182. package/dist/esm/core/account/utils/index.mjs +1 -1
  183. package/dist/esm/core/accountAddress.mjs +1 -1
  184. package/dist/esm/core/authenticationKey.d.mts +1 -1
  185. package/dist/esm/core/authenticationKey.mjs +1 -1
  186. package/dist/esm/core/common.mjs +1 -1
  187. package/dist/esm/core/crypto/ed25519.d.mts +1 -1
  188. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  189. package/dist/esm/core/crypto/index.d.mts +1 -7
  190. package/dist/esm/core/crypto/index.mjs +1 -1
  191. package/dist/esm/core/crypto/multiEd25519.d.mts +1 -1
  192. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  193. package/dist/esm/core/crypto/multiKey.d.mts +1 -1
  194. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  195. package/dist/esm/core/crypto/privateKey.d.mts +1 -1
  196. package/dist/esm/core/crypto/publicKey.d.mts +1 -1
  197. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  198. package/dist/esm/core/crypto/secp256k1.d.mts +1 -1
  199. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  200. package/dist/esm/core/crypto/signature.mjs +1 -1
  201. package/dist/esm/core/crypto/singleKey.d.mts +1 -1
  202. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  203. package/dist/esm/core/crypto/utils.mjs +1 -1
  204. package/dist/esm/core/hex.mjs +1 -1
  205. package/dist/esm/core/index.d.mts +1 -7
  206. package/dist/esm/core/index.mjs +1 -1
  207. package/dist/esm/index.d.mts +6 -14
  208. package/dist/esm/index.mjs +1 -1
  209. package/dist/esm/internal/account.d.mts +2 -2
  210. package/dist/esm/internal/account.mjs +1 -1
  211. package/dist/esm/internal/ans.d.mts +2 -2
  212. package/dist/esm/internal/ans.mjs +1 -1
  213. package/dist/esm/internal/coin.d.mts +1 -1
  214. package/dist/esm/internal/coin.mjs +1 -1
  215. package/dist/esm/internal/digitalAsset.d.mts +2 -2
  216. package/dist/esm/internal/digitalAsset.mjs +1 -1
  217. package/dist/esm/internal/event.mjs +1 -1
  218. package/dist/esm/internal/faucet.mjs +1 -1
  219. package/dist/esm/internal/fungibleAsset.d.mts +2 -2
  220. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  221. package/dist/esm/internal/general.mjs +1 -1
  222. package/dist/esm/internal/staking.mjs +1 -1
  223. package/dist/esm/internal/table.mjs +1 -1
  224. package/dist/esm/internal/transaction.mjs +1 -1
  225. package/dist/esm/internal/transactionSubmission.d.mts +2 -2
  226. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  227. package/dist/esm/internal/view.d.mts +1 -1
  228. package/dist/esm/internal/view.mjs +1 -1
  229. package/dist/esm/transactions/authenticator/account.d.mts +1 -1
  230. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  231. package/dist/esm/transactions/authenticator/index.d.mts +1 -1
  232. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  233. package/dist/esm/transactions/authenticator/transaction.d.mts +1 -1
  234. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  235. package/dist/esm/transactions/index.d.mts +1 -1
  236. package/dist/esm/transactions/index.mjs +1 -1
  237. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  238. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  239. package/dist/esm/transactions/instances/index.d.mts +1 -1
  240. package/dist/esm/transactions/instances/index.mjs +1 -1
  241. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  242. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  243. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  244. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +1 -1
  245. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  246. package/dist/esm/transactions/instances/signedTransaction.d.mts +1 -1
  247. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  248. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  249. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  250. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +2 -2
  251. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  252. package/dist/esm/transactions/management/index.d.mts +2 -2
  253. package/dist/esm/transactions/management/index.mjs +1 -1
  254. package/dist/esm/transactions/management/transactionWorker.d.mts +2 -2
  255. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  256. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +1 -1
  257. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  258. package/dist/esm/transactions/transactionBuilder/index.d.mts +1 -1
  259. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  260. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +1 -1
  261. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  262. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +1 -4
  263. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  264. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +1 -1
  265. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  266. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  267. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  268. package/dist/esm/transactions/types.d.mts +1 -1
  269. package/dist/esm/types/index.d.mts +5 -21
  270. package/dist/esm/types/index.mjs +1 -1
  271. package/dist/esm/utils/apiEndpoints.d.mts +1 -3
  272. package/dist/esm/utils/apiEndpoints.mjs +1 -1
  273. package/dist/esm/utils/const.d.mts +1 -3
  274. package/dist/esm/utils/const.mjs +1 -1
  275. package/dist/esm/utils/helpers.d.mts +1 -4
  276. package/dist/esm/utils/helpers.mjs +1 -1
  277. package/dist/esm/utils/index.d.mts +1 -1
  278. package/dist/esm/utils/index.mjs +1 -1
  279. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  280. package/package.json +4 -11
  281. package/src/account/MultiKeyAccount.ts +0 -11
  282. package/src/account/index.ts +0 -2
  283. package/src/api/aptos.ts +0 -6
  284. package/src/api/aptosConfig.ts +1 -46
  285. package/src/bcs/deserializer.ts +0 -46
  286. package/src/bcs/serializer.ts +0 -58
  287. package/src/client/core.ts +0 -4
  288. package/src/client/get.ts +0 -12
  289. package/src/client/post.ts +0 -18
  290. package/src/core/crypto/index.ts +0 -2
  291. package/src/core/crypto/singleKey.ts +0 -11
  292. package/src/internal/transactionSubmission.ts +1 -6
  293. package/src/transactions/management/accountSequenceNumber.ts +8 -5
  294. package/src/transactions/transactionBuilder/signingMessage.ts +1 -4
  295. package/src/transactions/transactionBuilder/transactionBuilder.ts +1 -17
  296. package/src/types/index.ts +2 -24
  297. package/src/utils/apiEndpoints.ts +0 -16
  298. package/src/utils/const.ts +0 -2
  299. package/src/utils/helpers.ts +0 -22
  300. package/dist/common/chunk-BHKSQXUZ.js +0 -2
  301. package/dist/common/chunk-BHKSQXUZ.js.map +0 -1
  302. package/dist/esm/account/EphemeralKeyPair.d.mts +0 -90
  303. package/dist/esm/account/EphemeralKeyPair.mjs +0 -2
  304. package/dist/esm/account/KeylessAccount.d.mts +0 -211
  305. package/dist/esm/account/KeylessAccount.mjs +0 -2
  306. package/dist/esm/api/keyless.d.mts +0 -85
  307. package/dist/esm/api/keyless.mjs +0 -2
  308. package/dist/esm/api/keyless.mjs.map +0 -1
  309. package/dist/esm/chunk-2G4IGSGM.mjs +0 -2
  310. package/dist/esm/chunk-37FFZSIM.mjs +0 -2
  311. package/dist/esm/chunk-37FFZSIM.mjs.map +0 -1
  312. package/dist/esm/chunk-3IFR6T3V.mjs +0 -2
  313. package/dist/esm/chunk-3IFR6T3V.mjs.map +0 -1
  314. package/dist/esm/chunk-3RJZNUCQ.mjs +0 -2
  315. package/dist/esm/chunk-3SACE4I2.mjs +0 -2
  316. package/dist/esm/chunk-472OGHMG.mjs +0 -2
  317. package/dist/esm/chunk-4CUDBBTC.mjs +0 -2
  318. package/dist/esm/chunk-4CUDBBTC.mjs.map +0 -1
  319. package/dist/esm/chunk-4VPCPASN.mjs +0 -2
  320. package/dist/esm/chunk-54LCK6EN.mjs +0 -2
  321. package/dist/esm/chunk-54LCK6EN.mjs.map +0 -1
  322. package/dist/esm/chunk-7BW2N4IE.mjs +0 -2
  323. package/dist/esm/chunk-7Z6DYLCA.mjs +0 -1
  324. package/dist/esm/chunk-7Z6DYLCA.mjs.map +0 -1
  325. package/dist/esm/chunk-AQ4I7VVB.mjs +0 -1
  326. package/dist/esm/chunk-AQ4I7VVB.mjs.map +0 -1
  327. package/dist/esm/chunk-BCZGONNO.mjs +0 -2
  328. package/dist/esm/chunk-BCZGONNO.mjs.map +0 -1
  329. package/dist/esm/chunk-BLWJZXAD.mjs +0 -2
  330. package/dist/esm/chunk-BLWJZXAD.mjs.map +0 -1
  331. package/dist/esm/chunk-CPDSBH23.mjs +0 -2
  332. package/dist/esm/chunk-CPDSBH23.mjs.map +0 -1
  333. package/dist/esm/chunk-EHL3WIK3.mjs +0 -2
  334. package/dist/esm/chunk-EHL3WIK3.mjs.map +0 -1
  335. package/dist/esm/chunk-FBPNHF54.mjs +0 -2
  336. package/dist/esm/chunk-FIG65OJD.mjs +0 -2
  337. package/dist/esm/chunk-FR6UGCOX.mjs.map +0 -1
  338. package/dist/esm/chunk-GRHLQDHF.mjs +0 -2
  339. package/dist/esm/chunk-GSCM444Z.mjs +0 -2
  340. package/dist/esm/chunk-HP6YVTTT.mjs +0 -2
  341. package/dist/esm/chunk-IBDBKQMF.mjs +0 -2
  342. package/dist/esm/chunk-IBDBKQMF.mjs.map +0 -1
  343. package/dist/esm/chunk-IBN7ETCB.mjs +0 -2
  344. package/dist/esm/chunk-IT7YNITU.mjs +0 -2
  345. package/dist/esm/chunk-IVVWQKCF.mjs +0 -2
  346. package/dist/esm/chunk-IVVWQKCF.mjs.map +0 -1
  347. package/dist/esm/chunk-J3DCBYOY.mjs +0 -2
  348. package/dist/esm/chunk-J3DCBYOY.mjs.map +0 -1
  349. package/dist/esm/chunk-L5CPAOUM.mjs +0 -2
  350. package/dist/esm/chunk-L5CPAOUM.mjs.map +0 -1
  351. package/dist/esm/chunk-NMD45OTM.mjs +0 -2
  352. package/dist/esm/chunk-NMD45OTM.mjs.map +0 -1
  353. package/dist/esm/chunk-NW3WUTTD.mjs +0 -2
  354. package/dist/esm/chunk-Q6LFIZ3L.mjs +0 -2
  355. package/dist/esm/chunk-Q6LFIZ3L.mjs.map +0 -1
  356. package/dist/esm/chunk-QSMVCD52.mjs +0 -2
  357. package/dist/esm/chunk-QSMVCD52.mjs.map +0 -1
  358. package/dist/esm/chunk-R2TZZVTU.mjs +0 -2
  359. package/dist/esm/chunk-R2TZZVTU.mjs.map +0 -1
  360. package/dist/esm/chunk-SCHZ67F3.mjs +0 -2
  361. package/dist/esm/chunk-SCHZ67F3.mjs.map +0 -1
  362. package/dist/esm/chunk-TJDC5PWD.mjs +0 -2
  363. package/dist/esm/chunk-U3S4AX6K.mjs +0 -2
  364. package/dist/esm/chunk-U3S4AX6K.mjs.map +0 -1
  365. package/dist/esm/chunk-U5F4NL24.mjs +0 -2
  366. package/dist/esm/chunk-VIX4BX35.mjs +0 -2
  367. package/dist/esm/chunk-VIX4BX35.mjs.map +0 -1
  368. package/dist/esm/chunk-WA2NTBYY.mjs +0 -2
  369. package/dist/esm/chunk-YD5IB4TH.mjs +0 -2
  370. package/dist/esm/chunk-YD5IB4TH.mjs.map +0 -1
  371. package/dist/esm/chunk-YE5B2S5L.mjs +0 -2
  372. package/dist/esm/chunk-YE5B2S5L.mjs.map +0 -1
  373. package/dist/esm/chunk-YTQVMLFD.mjs +0 -2
  374. package/dist/esm/chunk-YTQVMLFD.mjs.map +0 -1
  375. package/dist/esm/core/crypto/cryptoHashable.d.mts +0 -21
  376. package/dist/esm/core/crypto/cryptoHashable.mjs +0 -2
  377. package/dist/esm/core/crypto/cryptoHashable.mjs.map +0 -1
  378. package/dist/esm/core/crypto/ephemeral.d.mts +0 -73
  379. package/dist/esm/core/crypto/ephemeral.mjs +0 -2
  380. package/dist/esm/core/crypto/ephemeral.mjs.map +0 -1
  381. package/dist/esm/core/crypto/keyless.d.mts +0 -321
  382. package/dist/esm/core/crypto/keyless.mjs +0 -2
  383. package/dist/esm/core/crypto/keyless.mjs.map +0 -1
  384. package/dist/esm/core/crypto/poseidon.d.mts +0 -19
  385. package/dist/esm/core/crypto/poseidon.mjs +0 -2
  386. package/dist/esm/core/crypto/poseidon.mjs.map +0 -1
  387. package/dist/esm/core/crypto/proof.d.mts +0 -21
  388. package/dist/esm/core/crypto/proof.mjs +0 -2
  389. package/dist/esm/core/crypto/proof.mjs.map +0 -1
  390. package/dist/esm/internal/keyless.d.mts +0 -73
  391. package/dist/esm/internal/keyless.mjs +0 -2
  392. package/dist/esm/internal/keyless.mjs.map +0 -1
  393. package/dist/esm/types/keyless.d.mts +0 -52
  394. package/dist/esm/types/keyless.mjs +0 -1
  395. package/dist/esm/types/keyless.mjs.map +0 -1
  396. package/src/account/EphemeralKeyPair.ts +0 -158
  397. package/src/account/KeylessAccount.ts +0 -367
  398. package/src/api/keyless.ts +0 -51
  399. package/src/core/crypto/cryptoHashable.ts +0 -16
  400. package/src/core/crypto/ephemeral.ts +0 -138
  401. package/src/core/crypto/keyless.ts +0 -679
  402. package/src/core/crypto/poseidon.ts +0 -144
  403. package/src/core/crypto/proof.ts +0 -16
  404. package/src/internal/keyless.ts +0 -121
  405. package/src/types/keyless.ts +0 -42
  406. /package/dist/esm/{chunk-HXYZECGS.mjs.map → chunk-2HF2XEHO.mjs.map} +0 -0
  407. /package/dist/esm/{chunk-BO44HPGU.mjs.map → chunk-2X7A4HUS.mjs.map} +0 -0
  408. /package/dist/esm/{chunk-LDQJ5S77.mjs.map → chunk-337U6Q6K.mjs.map} +0 -0
  409. /package/dist/esm/{chunk-TUCCV62K.mjs.map → chunk-35EWRSDK.mjs.map} +0 -0
  410. /package/dist/esm/{chunk-64VPA7CM.mjs.map → chunk-3BNA74V5.mjs.map} +0 -0
  411. /package/dist/esm/{chunk-LIT6V2A6.mjs.map → chunk-3SPIFLBZ.mjs.map} +0 -0
  412. /package/dist/esm/{chunk-GQC73XWZ.mjs.map → chunk-3XFID2N4.mjs.map} +0 -0
  413. /package/dist/esm/{chunk-IPFITPKC.mjs.map → chunk-47IIBESV.mjs.map} +0 -0
  414. /package/dist/esm/{chunk-T5YEMU53.mjs.map → chunk-4GWNWSZP.mjs.map} +0 -0
  415. /package/dist/esm/{chunk-WA2NTBYY.mjs.map → chunk-4NHWV5AI.mjs.map} +0 -0
  416. /package/dist/esm/{chunk-472OGHMG.mjs.map → chunk-53INTTOI.mjs.map} +0 -0
  417. /package/dist/esm/{chunk-EFMAZTIM.mjs.map → chunk-5EN52MUT.mjs.map} +0 -0
  418. /package/dist/esm/{chunk-QFVQSFBZ.mjs.map → chunk-5UKBTF7N.mjs.map} +0 -0
  419. /package/dist/esm/{chunk-UHZWZWJ7.mjs.map → chunk-6YV3366Z.mjs.map} +0 -0
  420. /package/dist/esm/{chunk-DJPYZIJY.mjs.map → chunk-73QJNN7O.mjs.map} +0 -0
  421. /package/dist/esm/{chunk-FIG65OJD.mjs.map → chunk-AF5WNJOP.mjs.map} +0 -0
  422. /package/dist/esm/{chunk-YRUF6N3U.mjs.map → chunk-AHW3SKT7.mjs.map} +0 -0
  423. /package/dist/esm/{chunk-U5F4NL24.mjs.map → chunk-AQAH67IV.mjs.map} +0 -0
  424. /package/dist/esm/{chunk-GSCM444Z.mjs.map → chunk-B7X6PSE7.mjs.map} +0 -0
  425. /package/dist/esm/{chunk-64CUEMFI.mjs.map → chunk-BBVIJO6X.mjs.map} +0 -0
  426. /package/dist/esm/{chunk-AOCNYMMX.mjs.map → chunk-BCUSI3N6.mjs.map} +0 -0
  427. /package/dist/esm/{chunk-WIYDJE6F.mjs.map → chunk-BEVXJJJF.mjs.map} +0 -0
  428. /package/dist/esm/{chunk-IT7YNITU.mjs.map → chunk-BSVNV6SJ.mjs.map} +0 -0
  429. /package/dist/esm/{chunk-SYRND55P.mjs.map → chunk-CE65OKFI.mjs.map} +0 -0
  430. /package/dist/esm/{chunk-7BW2N4IE.mjs.map → chunk-CEHCDA3G.mjs.map} +0 -0
  431. /package/dist/esm/{chunk-GBQU2OCK.mjs.map → chunk-CT2BQQTZ.mjs.map} +0 -0
  432. /package/dist/esm/{chunk-YA4XTZNZ.mjs.map → chunk-CZOD4SCZ.mjs.map} +0 -0
  433. /package/dist/esm/{chunk-TJDC5PWD.mjs.map → chunk-F7EMGK4M.mjs.map} +0 -0
  434. /package/dist/esm/{chunk-O7VXANBW.mjs.map → chunk-FAFJKSVZ.mjs.map} +0 -0
  435. /package/dist/esm/{chunk-7G3RSOWE.mjs.map → chunk-G2UPF44Z.mjs.map} +0 -0
  436. /package/dist/esm/{chunk-ZIDLP5MI.mjs.map → chunk-G2XVNF2T.mjs.map} +0 -0
  437. /package/dist/esm/{chunk-FGGRPEQ3.mjs.map → chunk-G56GPLTB.mjs.map} +0 -0
  438. /package/dist/esm/{chunk-6FBKUTGF.mjs.map → chunk-GHYE26Q5.mjs.map} +0 -0
  439. /package/dist/esm/{chunk-IXFYYWAC.mjs.map → chunk-GM56MMNJ.mjs.map} +0 -0
  440. /package/dist/esm/{chunk-S5ABQH5R.mjs.map → chunk-HLC4HAYY.mjs.map} +0 -0
  441. /package/dist/esm/{chunk-FNFQA7NS.mjs.map → chunk-ISIUQQMV.mjs.map} +0 -0
  442. /package/dist/esm/{chunk-JZOTXY77.mjs.map → chunk-J4VNDDKJ.mjs.map} +0 -0
  443. /package/dist/esm/{chunk-MNTLX37G.mjs.map → chunk-J4Z6XR5D.mjs.map} +0 -0
  444. /package/dist/esm/{chunk-5WFKJO5L.mjs.map → chunk-J5I4OZAS.mjs.map} +0 -0
  445. /package/dist/esm/{chunk-X4X5H6NC.mjs.map → chunk-J6HKAEKY.mjs.map} +0 -0
  446. /package/dist/esm/{chunk-YDNOKWV3.mjs.map → chunk-JX75UKJX.mjs.map} +0 -0
  447. /package/dist/esm/{chunk-DPWEHSHH.mjs.map → chunk-KAGLWBIJ.mjs.map} +0 -0
  448. /package/dist/esm/{chunk-X3HGM2KT.mjs.map → chunk-KZZWY4YI.mjs.map} +0 -0
  449. /package/dist/esm/{chunk-FBPNHF54.mjs.map → chunk-LG7RJQ57.mjs.map} +0 -0
  450. /package/dist/esm/{chunk-FSO54CI4.mjs.map → chunk-LGNSPATO.mjs.map} +0 -0
  451. /package/dist/esm/{chunk-SNDFJWYM.mjs.map → chunk-MCRRHBFQ.mjs.map} +0 -0
  452. /package/dist/esm/{chunk-GRHLQDHF.mjs.map → chunk-N3U47Y6Y.mjs.map} +0 -0
  453. /package/dist/esm/{chunk-GPWSPT44.mjs.map → chunk-ND6OMSQU.mjs.map} +0 -0
  454. /package/dist/esm/{chunk-BT6IM25V.mjs.map → chunk-NUK6JT5I.mjs.map} +0 -0
  455. /package/dist/esm/{chunk-NW3WUTTD.mjs.map → chunk-PF57EOJY.mjs.map} +0 -0
  456. /package/dist/esm/{chunk-ZV5MKFV7.mjs.map → chunk-PIVZMT5D.mjs.map} +0 -0
  457. /package/dist/esm/{chunk-W63KIXLK.mjs.map → chunk-R5VVKRJ2.mjs.map} +0 -0
  458. /package/dist/esm/{chunk-7M4C4OZN.mjs.map → chunk-RNL5TAQT.mjs.map} +0 -0
  459. /package/dist/esm/{chunk-3RJZNUCQ.mjs.map → chunk-ROXFCLDT.mjs.map} +0 -0
  460. /package/dist/esm/{chunk-B2RYTKNN.mjs.map → chunk-RPND23OR.mjs.map} +0 -0
  461. /package/dist/esm/{chunk-XH33BXEY.mjs.map → chunk-RWXHA4QZ.mjs.map} +0 -0
  462. /package/dist/esm/{chunk-XVZBWW46.mjs.map → chunk-T2AGN5YT.mjs.map} +0 -0
  463. /package/dist/esm/{chunk-HGJMVOBH.mjs.map → chunk-TQLED4KC.mjs.map} +0 -0
  464. /package/dist/esm/{chunk-MLX6DFMR.mjs.map → chunk-U3YYSIIT.mjs.map} +0 -0
  465. /package/dist/esm/{chunk-4VPCPASN.mjs.map → chunk-UGPALAPN.mjs.map} +0 -0
  466. /package/dist/esm/{account/EphemeralKeyPair.mjs.map → chunk-UO3NZ5AH.mjs.map} +0 -0
  467. /package/dist/esm/{account/KeylessAccount.mjs.map → chunk-UVSRX4SV.mjs.map} +0 -0
  468. /package/dist/esm/{chunk-UVTJEMV4.mjs.map → chunk-YR7JRJ25.mjs.map} +0 -0
  469. /package/dist/esm/{chunk-7UKBRLGM.mjs.map → chunk-ZHCSSCC5.mjs.map} +0 -0
  470. /package/dist/esm/{chunk-L5ZHZWHI.mjs.map → chunk-ZRKXS7XG.mjs.map} +0 -0
  471. /package/dist/esm/{publicKey-lq5djCIY.d.mts → publicKey-B3XRNhHO.d.mts} +0 -0
@@ -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;
@@ -277,9 +261,9 @@ type GasEstimation = {
277
261
  */
278
262
  prioritized_gas_estimate?: number;
279
263
  };
280
- type MoveResource<T = {}> = {
264
+ type MoveResource = {
281
265
  type: MoveStructId;
282
- data: T;
266
+ data: {};
283
267
  };
284
268
  type AccountData = {
285
269
  sequence_number: string;
@@ -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-Q6LFIZ3L.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,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-SCHZ67F3.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
@@ -3,8 +3,5 @@
3
3
  * @param timeMs time in milliseconds to sleep
4
4
  */
5
5
  declare function sleep(timeMs: number): Promise<null>;
6
- declare const nowInSeconds: () => number;
7
- declare function floorToWholeHour(timestampInSeconds: number): number;
8
- declare function base64UrlDecode(base64Url: string): string;
9
6
 
10
- export { base64UrlDecode, floorToWholeHour, nowInSeconds, sleep };
7
+ export { sleep };
@@ -1,2 +1,2 @@
1
- import{a,b,c,d}from"../chunk-YTQVMLFD.mjs";import"../chunk-FVA2OPG4.mjs";export{d as base64UrlDecode,c as floorToWholeHour,b as nowInSeconds,a as sleep};
1
+ import{a}from"../chunk-3JPVQHOR.mjs";import"../chunk-FVA2OPG4.mjs";export{a as sleep};
2
2
  //# sourceMappingURL=helpers.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-3RJZNUCQ.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-GRHLQDHF.mjs";import"../chunk-7BW2N4IE.mjs";import"../chunk-FGGRPEQ3.mjs";import"../chunk-IBN7ETCB.mjs";import"../chunk-Q6LFIZ3L.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-3IFR6T3V.mjs";import"../chunk-UMLUOYFK.mjs";import"../chunk-AOCNYMMX.mjs";import"../chunk-FBPNHF54.mjs";import"../chunk-56CNRT2K.mjs";import{a,b,c,d,e,f,g,h}from"../chunk-SCHZ67F3.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-YE5B2S5L.mjs";import"../chunk-FVA2OPG4.mjs";export{m as APTOS_COIN,i as AptosApiType,j as DEFAULT_MAX_GAS_AMOUNT,k as DEFAULT_TXN_EXP_SEC_FROM_NOW,l as DEFAULT_TXN_TIMEOUT_SEC,f as Network,g as NetworkToChainId,c as NetworkToFaucetAPI,a as NetworkToIndexerAPI,h as NetworkToNetworkName,b as NetworkToNodeAPI,d as NetworkToPepperAPI,e as NetworkToProverAPI,p as ProcessorType,n as RAW_TRANSACTION_SALT,o 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-N3U47Y6Y.mjs";import"../chunk-CEHCDA3G.mjs";import"../chunk-G56GPLTB.mjs";import"../chunk-SRDIYE3M.mjs";import"../chunk-OWW6SIDP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-36QXVFR5.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-6IFMQ5AS.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-3RJZNUCQ.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-GRHLQDHF.mjs";import"../chunk-7BW2N4IE.mjs";import"../chunk-FGGRPEQ3.mjs";import"../chunk-IBN7ETCB.mjs";import"../chunk-Q6LFIZ3L.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-3IFR6T3V.mjs";import"../chunk-UMLUOYFK.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-N3U47Y6Y.mjs";import"../chunk-CEHCDA3G.mjs";import"../chunk-G56GPLTB.mjs";import"../chunk-SRDIYE3M.mjs";import"../chunk-OWW6SIDP.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-36QXVFR5.mjs";import"../chunk-BCUSI3N6.mjs";import"../chunk-LG7RJQ57.mjs";import"../chunk-6IFMQ5AS.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-FVA2OPG4.mjs";export{a as normalizeBundle};
2
2
  //# sourceMappingURL=normalizeBundle.mjs.map
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aptos-labs/ts-sdk",
3
3
  "description": "Aptos TypeScript SDK",
4
- "packageManager": "pnpm@9.1.4",
4
+ "packageManager": "pnpm@8.9.0",
5
5
  "license": "Apache-2.0",
6
6
  "engines": {
7
7
  "node": ">=11.0.0"
@@ -48,17 +48,13 @@
48
48
  },
49
49
  "dependencies": {
50
50
  "@aptos-labs/aptos-client": "^0.1.0",
51
- "@aptos-labs/aptos-cli": "^0.1.2",
51
+ "@aptos-labs/aptos-cli": "^0.1.8",
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
- "jwt-decode": "^4.0.0",
61
- "poseidon-lite": "^0.2.0"
57
+ "eventemitter3": "^5.0.1"
62
58
  },
63
59
  "devDependencies": {
64
60
  "@babel/traverse": "^7.23.6",
@@ -67,9 +63,7 @@
67
63
  "@graphql-codegen/typescript": "^4.0.1",
68
64
  "@graphql-codegen/typescript-graphql-request": "^6.0.1",
69
65
  "@graphql-codegen/typescript-operations": "^4.0.1",
70
- "@types/base-64": "^1.0.2",
71
66
  "@types/jest": "^29.5.11",
72
- "@types/jsonwebtoken": "^9.0.6",
73
67
  "@types/node": "^20.10.4",
74
68
  "@typescript-eslint/eslint-plugin": "^6.14.0",
75
69
  "@typescript-eslint/parser": "^6.14.0",
@@ -82,7 +76,6 @@
82
76
  "graphql": "^16.8.1",
83
77
  "graphql-request": "^6.1.0",
84
78
  "jest": "^29.7.0",
85
- "jsonwebtoken": "^9.0.2",
86
79
  "prettier": "^3.1.1",
87
80
  "tree-kill": "^1.2.2",
88
81
  "ts-jest": "^29.1.1",
@@ -92,5 +85,5 @@
92
85
  "typedoc": "^0.25.4",
93
86
  "typescript": "^5.3.3"
94
87
  },
95
- "version": "1.17.0-zeta.0"
88
+ "version": "1.17.0"
96
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,16 +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 on any KeylessAccount signers to be fetched. If the proof is fetched a syncronously, call this
129
- * to ensure signing with the KeylessAccount does not fail as the proof must be ready.
130
- * @return
131
- */
132
- async waitForProofFetch() {
133
- const keylessSigners = this.signers.filter((signer) => signer instanceof KeylessAccount) as KeylessAccount[];
134
- await Promise.all(keylessSigners.filter((signer) => signer.proof instanceof Promise).map((signer) => signer.proof));
135
- }
136
-
137
126
  /**
138
127
  * Sign the given message using the MultiKeyAccount's signers
139
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
@@ -13,7 +13,6 @@ import { ANS } from "./ans";
13
13
  import { Staking } from "./staking";
14
14
  import { Transaction } from "./transaction";
15
15
  import { Table } from "./table";
16
- import { Keyless } from "./keyless";
17
16
 
18
17
  /**
19
18
  * This class is the main entry point into Aptos's
@@ -51,8 +50,6 @@ export class Aptos {
51
50
 
52
51
  readonly table: Table;
53
52
 
54
- readonly keyless: Keyless;
55
-
56
53
  constructor(settings?: AptosConfig) {
57
54
  this.config = new AptosConfig(settings);
58
55
  this.account = new Account(this.config);
@@ -66,7 +63,6 @@ export class Aptos {
66
63
  this.staking = new Staking(this.config);
67
64
  this.transaction = new Transaction(this.config);
68
65
  this.table = new Table(this.config);
69
- this.keyless = new Keyless(this.config);
70
66
  }
71
67
  }
72
68
 
@@ -81,7 +77,6 @@ export interface Aptos
81
77
  Faucet,
82
78
  FungibleAsset,
83
79
  General,
84
- Keyless,
85
80
  Staking,
86
81
  Table,
87
82
  Omit<Transaction, "build" | "simulate" | "submit" | "batch"> {}
@@ -118,4 +113,3 @@ applyMixin(Aptos, General, "general");
118
113
  applyMixin(Aptos, Staking, "staking");
119
114
  applyMixin(Aptos, Transaction, "transaction");
120
115
  applyMixin(Aptos, Table, "table");
121
- applyMixin(Aptos, Keyless, "keyless");
@@ -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
  }
@@ -56,52 +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 deserializable class.
81
- *
82
- * BCS layout for Optional<T>: 0 if none, else 1 | bcs representation of class
83
- *
84
- * @example
85
- * const deserializer = new Deserializer(new Uint8Array([1, 2, 3]));
86
- * const value = deserializer.deserializeOption(MyClass); // where MyClass has a `deserialize` function
87
- * // value is now an instance of MyClass
88
- *
89
- * const deserializer = new Deserializer(new Uint8Array([0]));
90
- * const value = deserializer.deserializeOption(MyClass); // where MyClass has a `deserialize` function
91
- * // value is undefined
92
- *
93
- * @param cls The BCS-deserializable class to deserialize the buffered bytes into.
94
- *
95
- * @returns the deserialized value of class type T
96
- */
97
- deserializeOption<T>(cls: Deserializable<T>): T | undefined {
98
- const exists = this.deserializeUleb128AsU32();
99
- if (exists === 1) {
100
- return this.deserialize(cls);
101
- }
102
- return undefined;
103
- }
104
-
105
59
  /**
106
60
  * Deserializes an array of bytes.
107
61
  *
@@ -316,64 +316,6 @@ export class Serializer {
316
316
  item.serialize(this);
317
317
  });
318
318
  }
319
-
320
- /**
321
- * Serializes a BCS Serializable values into a serializer instance or undefined.
322
- * Note that this does not return anything. The bytes are added to the serializer instance's byte buffer.
323
- *
324
- * @param values The array of BCS Serializable values
325
- *
326
- * @example
327
- * ```ts
328
- * const serializer = new Serializer();
329
- * serializer.serializeOption(new AccountAddress(...));
330
- * const serializedBytes = serializer.toUint8Array();
331
- * // serializedBytes is now the BCS-serialized byte representation of AccountAddress
332
- *
333
- * const serializer = new Serializer();
334
- * serializer.serializeOption(undefined);
335
- * assert(serializer.toUint8Array() === new Uint8Array([0x00]));
336
- * ```
337
- */
338
- serializeOption<T extends Serializable>(value?: T): void {
339
- if (value === undefined) {
340
- this.serializeU32AsUleb128(0);
341
- } else {
342
- this.serializeU32AsUleb128(1);
343
- value.serialize(this);
344
- }
345
- }
346
-
347
- /**
348
- * Serializes an optional string. UTF8 string is supported.
349
- *
350
- * The existence of the string is encoded first, 0 if undefined and 1 if it exists.
351
- * Them the number of bytes in the string content is serialized, as a uleb128-encoded u32 integer.
352
- * Then the string content is serialized as UTF8 encoded bytes.
353
- *
354
- * BCS layout for optional "string": 1 | string_length | string_content
355
- * where string_length is a u32 integer encoded as a uleb128 integer, equal to the number of bytes in string_content.
356
- *
357
- * BCS layout for undefined: 0
358
- * @example
359
- * ```ts
360
- * const serializer = new Serializer();
361
- * serializer.serializeOptionStr("1234abcd");
362
- * assert(serializer.toUint8Array() === new Uint8Array([1, 8, 49, 50, 51, 52, 97, 98, 99, 100]));
363
- *
364
- * const serializer = new Serializer();
365
- * serializer.serializeOptionStr(undefined);
366
- * assert(serializer.toUint8Array() === new Uint8Array([0]));
367
- * ```
368
- */
369
- serializeOptionStr(value?: string): void {
370
- if (value === undefined) {
371
- this.serializeU32AsUleb128(0);
372
- } else {
373
- this.serializeU32AsUleb128(1);
374
- this.serializeStr(value);
375
- }
376
- }
377
319
  }
378
320
 
379
321
  export function ensureBoolean(value: unknown): asserts value is boolean {
@@ -100,10 +100,6 @@ export async function aptosRequest<Req extends {}, Res extends {}>(
100
100
  );
101
101
  }
102
102
  result.data = indexerResponse.data as Res;
103
- } else if (apiType === AptosApiType.PEPPER || apiType === AptosApiType.PROVER) {
104
- if (result.status >= 400) {
105
- throw new AptosApiError(options, result, `${response.data}`);
106
- }
107
103
  }
108
104
 
109
105
  if (result.status >= 200 && result.status < 300) {
package/src/client/get.ts CHANGED
@@ -89,18 +89,6 @@ export async function getAptosFullNode<Req extends {}, Res extends {}>(
89
89
  });
90
90
  }
91
91
 
92
- /**
93
- * Makes a get request to the pepper service
94
- *
95
- * @param options GetAptosRequestOptions
96
- * @returns AptosResponse
97
- */
98
- export async function getAptosPepperService<Req extends {}, Res extends {}>(
99
- options: GetAptosRequestOptions,
100
- ): Promise<AptosResponse<Req, Res>> {
101
- return get<Req, Res>({ ...options, type: AptosApiType.PEPPER });
102
- }
103
-
104
92
  /// This function is a helper for paginating using a function wrapping an API
105
93
  export async function paginateWithCursor<Req extends Record<string, any>, Res extends Array<{}>>(
106
94
  options: GetAptosRequestOptions,
@@ -135,21 +135,3 @@ export async function postAptosFaucet<Req extends {}, Res extends {}>(
135
135
  },
136
136
  });
137
137
  }
138
-
139
- /**
140
- * Makes a post request to the pepper service
141
- *
142
- * @param options GetAptosRequestOptions
143
- * @returns AptosResponse
144
- */
145
- export async function postAptosPepperService<Req extends {}, Res extends {}>(
146
- options: PostAptosRequestOptions,
147
- ): Promise<AptosResponse<Req, Res>> {
148
- return post<Req, Res>({ ...options, type: AptosApiType.PEPPER });
149
- }
150
-
151
- export async function postAptosProvingService<Req extends {}, Res extends {}>(
152
- options: PostAptosRequestOptions,
153
- ): Promise<AptosResponse<Req, Res>> {
154
- return post<Req, Res>({ ...options, type: AptosApiType.PROVER });
155
- }
@@ -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
  }
@@ -8,7 +8,7 @@
8
8
  import { AptosConfig } from "../api/aptosConfig";
9
9
  import { MoveVector, U8 } from "../bcs";
10
10
  import { postAptosFullNode } from "../client";
11
- import { Account, KeylessAccount, MultiKeyAccount } from "../account";
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";
@@ -275,11 +275,6 @@ export async function signAndSubmitTransaction(args: {
275
275
  transaction: AnyRawTransaction;
276
276
  }): Promise<PendingTransactionResponse> {
277
277
  const { aptosConfig, signer, transaction } = args;
278
- // If the signer contains a KeylessAccount, await proof fetching in case the proof
279
- // was fetched asyncronously.
280
- if (signer instanceof KeylessAccount || signer instanceof MultiKeyAccount) {
281
- await signer.waitForProofFetch();
282
- }
283
278
  const authenticator = signTransaction({ signer, transaction });
284
279
  return submitTransaction({
285
280
  aptosConfig,
@@ -26,7 +26,10 @@
26
26
  import { AptosConfig } from "../../api/aptosConfig";
27
27
  import { Account } from "../../account";
28
28
  import { getInfo } from "../../internal/account";
29
- import { nowInSeconds, sleep } from "../../utils/helpers";
29
+ import { sleep } from "../../utils/helpers";
30
+
31
+ // returns `now` time in seconds
32
+ const now = () => Math.floor(Date.now() / 1000);
30
33
 
31
34
  export class AccountSequenceNumber {
32
35
  readonly aptosConfig: AptosConfig;
@@ -93,10 +96,10 @@ export class AccountSequenceNumber {
93
96
  if (this.currentNumber! - this.lastUncommintedNumber! >= this.maximumInFlight) {
94
97
  await this.update();
95
98
 
96
- const startTime = nowInSeconds();
99
+ const startTime = now();
97
100
  while (this.currentNumber! - this.lastUncommintedNumber! >= this.maximumInFlight) {
98
101
  await sleep(this.sleepTime);
99
- if (nowInSeconds() - startTime > this.maxWaitTime) {
102
+ if (now() - startTime > this.maxWaitTime) {
100
103
  /* eslint-disable no-console */
101
104
  console.warn(
102
105
  `Waited over 30 seconds for a transaction to commit, resyncing ${this.account.accountAddress.toString()}`,
@@ -161,9 +164,9 @@ export class AccountSequenceNumber {
161
164
 
162
165
  try {
163
166
  await this.update();
164
- const startTime = nowInSeconds();
167
+ const startTime = now();
165
168
  while (this.lastUncommintedNumber !== this.currentNumber) {
166
- if (nowInSeconds() - startTime > this.maxWaitTime) {
169
+ if (now() - startTime > this.maxWaitTime) {
167
170
  /* eslint-disable no-console */
168
171
  console.warn(
169
172
  `Waited over 30 seconds for a transaction to commit, resyncing ${this.account.accountAddress.toString()}`,