@aptos-labs/ts-sdk 1.36.0 → 1.37.1

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 (799) hide show
  1. package/dist/common/{accountAddress-jrha_M3l.d.ts → accountAddress-DU4ds4Bf.d.ts} +28 -1
  2. package/dist/common/chunk-MVCKMP5U.js +4 -0
  3. package/dist/common/chunk-MVCKMP5U.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/cli/index.js.map +1 -1
  7. package/dist/common/index.d.ts +9288 -8699
  8. package/dist/common/index.js +32 -32
  9. package/dist/common/index.js.map +1 -1
  10. package/dist/esm/{Ed25519Account-D4j3_WIS.d.mts → Ed25519Account-C-AS-Kgv.d.mts} +61 -5
  11. package/dist/esm/account/AbstractKeylessAccount.d.mts +23 -13
  12. package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
  13. package/dist/esm/account/AbstractedAccount.d.mts +10 -10
  14. package/dist/esm/account/AbstractedAccount.mjs +1 -1
  15. package/dist/esm/account/Account.d.mts +6 -6
  16. package/dist/esm/account/Account.mjs +1 -1
  17. package/dist/esm/account/AccountUtils.d.mts +11 -10
  18. package/dist/esm/account/AccountUtils.mjs +1 -1
  19. package/dist/esm/account/Ed25519Account.d.mts +5 -5
  20. package/dist/esm/account/Ed25519Account.mjs +1 -1
  21. package/dist/esm/account/EphemeralKeyPair.d.mts +3 -1
  22. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  23. package/dist/esm/account/FederatedKeylessAccount.d.mts +12 -11
  24. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  25. package/dist/esm/account/KeylessAccount.d.mts +12 -11
  26. package/dist/esm/account/KeylessAccount.mjs +1 -1
  27. package/dist/esm/account/MultiEd25519Account.d.mts +31 -9
  28. package/dist/esm/account/MultiEd25519Account.mjs +1 -1
  29. package/dist/esm/account/MultiKeyAccount.d.mts +38 -12
  30. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  31. package/dist/esm/account/SingleKeyAccount.d.mts +6 -6
  32. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  33. package/dist/esm/account/index.d.mts +7 -6
  34. package/dist/esm/account/index.mjs +1 -1
  35. package/dist/esm/account/utils.mjs +1 -1
  36. package/dist/esm/api/account/abstraction.d.mts +9 -9
  37. package/dist/esm/api/account/abstraction.mjs +1 -1
  38. package/dist/esm/api/account.d.mts +88 -9
  39. package/dist/esm/api/account.mjs +1 -1
  40. package/dist/esm/api/ans.d.mts +13 -13
  41. package/dist/esm/api/ans.mjs +1 -1
  42. package/dist/esm/api/aptos.d.mts +6 -5
  43. package/dist/esm/api/aptos.mjs +1 -1
  44. package/dist/esm/api/coin.d.mts +9 -9
  45. package/dist/esm/api/coin.mjs +1 -1
  46. package/dist/esm/api/digitalAsset.d.mts +5 -5
  47. package/dist/esm/api/digitalAsset.mjs +1 -1
  48. package/dist/esm/api/event.mjs +1 -1
  49. package/dist/esm/api/experimental.d.mts +7 -7
  50. package/dist/esm/api/experimental.mjs +1 -1
  51. package/dist/esm/api/faucet.mjs +1 -1
  52. package/dist/esm/api/fungibleAsset.d.mts +13 -13
  53. package/dist/esm/api/fungibleAsset.mjs +1 -1
  54. package/dist/esm/api/general.d.mts +7 -7
  55. package/dist/esm/api/general.mjs +1 -1
  56. package/dist/esm/api/index.d.mts +6 -5
  57. package/dist/esm/api/index.mjs +1 -1
  58. package/dist/esm/api/keyless.d.mts +20 -19
  59. package/dist/esm/api/keyless.mjs +1 -1
  60. package/dist/esm/api/object.mjs +1 -1
  61. package/dist/esm/api/staking.mjs +1 -1
  62. package/dist/esm/api/table.mjs +1 -1
  63. package/dist/esm/api/transaction.d.mts +4 -4
  64. package/dist/esm/api/transaction.mjs +1 -1
  65. package/dist/esm/api/transactionSubmission/build.d.mts +9 -9
  66. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  67. package/dist/esm/api/transactionSubmission/management.d.mts +8 -8
  68. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  69. package/dist/esm/api/transactionSubmission/sign.d.mts +3 -3
  70. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  71. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  72. package/dist/esm/api/transactionSubmission/simulate.d.mts +9 -9
  73. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  74. package/dist/esm/api/transactionSubmission/submit.d.mts +3 -3
  75. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  76. package/dist/esm/api/utils.mjs +1 -1
  77. package/dist/esm/bcs/deserializer.mjs +1 -1
  78. package/dist/esm/bcs/index.mjs +1 -1
  79. package/dist/esm/bcs/serializable/entryFunctionBytes.mjs +1 -1
  80. package/dist/esm/bcs/serializable/fixedBytes.mjs +1 -1
  81. package/dist/esm/bcs/serializable/movePrimitives.d.mts +1 -1
  82. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  83. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  84. package/dist/esm/bcs/serializer.mjs +1 -1
  85. package/dist/esm/{chunk-2P27DDVV.mjs → chunk-2DISMLR6.mjs} +2 -2
  86. package/dist/esm/{chunk-ACE3NEV6.mjs → chunk-2RBINVFA.mjs} +2 -2
  87. package/dist/esm/chunk-3AS5BVKL.mjs +2 -0
  88. package/dist/esm/chunk-3AS5BVKL.mjs.map +1 -0
  89. package/dist/esm/{chunk-TKXEVD7A.mjs → chunk-4FBUZY6C.mjs} +2 -2
  90. package/dist/esm/chunk-5WNHYEW2.mjs +2 -0
  91. package/dist/esm/{chunk-2SAOCLIU.mjs → chunk-6QJWFV2M.mjs} +2 -2
  92. package/dist/esm/{chunk-PDAWVDI7.mjs → chunk-7JRZLDWV.mjs} +2 -2
  93. package/dist/esm/chunk-7WPEGMD6.mjs +2 -0
  94. package/dist/esm/chunk-7WPEGMD6.mjs.map +1 -0
  95. package/dist/esm/{chunk-R6QCPXQG.mjs → chunk-B373VRCY.mjs} +2 -2
  96. package/dist/esm/chunk-B373VRCY.mjs.map +1 -0
  97. package/dist/esm/{chunk-ZD2TY5N3.mjs → chunk-BE3OXYYX.mjs} +2 -2
  98. package/dist/esm/{chunk-ZD2TY5N3.mjs.map → chunk-BE3OXYYX.mjs.map} +1 -1
  99. package/dist/esm/{chunk-A3VO773Q.mjs → chunk-BRGQM252.mjs} +2 -2
  100. package/dist/esm/{chunk-ZVYTHOS5.mjs → chunk-CICJRLYU.mjs} +2 -2
  101. package/dist/esm/{chunk-RXHER6EA.mjs → chunk-CZOZTNXJ.mjs} +2 -2
  102. package/dist/esm/chunk-DC5IVW4W.mjs +2 -0
  103. package/dist/esm/chunk-DC5IVW4W.mjs.map +1 -0
  104. package/dist/esm/chunk-DCVGWCZD.mjs +2 -0
  105. package/dist/esm/chunk-DCVGWCZD.mjs.map +1 -0
  106. package/dist/esm/chunk-DFRHNDOS.mjs +2 -0
  107. package/dist/esm/chunk-DFRHNDOS.mjs.map +1 -0
  108. package/dist/esm/{chunk-ERLDXTIY.mjs → chunk-DGH7NXHM.mjs} +2 -2
  109. package/dist/esm/{chunk-ZOY6N6UM.mjs → chunk-DH32UXHB.mjs} +2 -2
  110. package/dist/esm/chunk-EXXY72UN.mjs +2 -0
  111. package/dist/esm/{chunk-AIPHJFJL.mjs → chunk-F2GWK4YJ.mjs} +2 -2
  112. package/dist/esm/{chunk-LS3IDL2N.mjs → chunk-FU65NEDT.mjs} +2 -2
  113. package/dist/esm/{chunk-HHWJHOFZ.mjs → chunk-H3NZHL45.mjs} +2 -2
  114. package/dist/esm/chunk-HEYMZZRE.mjs +2 -0
  115. package/dist/esm/chunk-HEYMZZRE.mjs.map +1 -0
  116. package/dist/esm/chunk-KIMU5PYJ.mjs +2 -0
  117. package/dist/esm/chunk-KIMU5PYJ.mjs.map +1 -0
  118. package/dist/esm/{chunk-TTY5GFMN.mjs → chunk-L5C44K6H.mjs} +2 -2
  119. package/dist/esm/{chunk-KBC4ECVP.mjs → chunk-M7W6FZ5Z.mjs} +2 -2
  120. package/dist/esm/chunk-NDXMDJV4.mjs +2 -0
  121. package/dist/esm/{chunk-X5YB74NB.mjs.map → chunk-NDXMDJV4.mjs.map} +1 -1
  122. package/dist/esm/{chunk-AEGA5N2W.mjs → chunk-P5CIZZDK.mjs} +2 -2
  123. package/dist/esm/chunk-SZYA6IG4.mjs +4 -0
  124. package/dist/esm/chunk-SZYA6IG4.mjs.map +1 -0
  125. package/dist/esm/{chunk-HWMMVLTP.mjs → chunk-TORMKDQG.mjs} +2 -2
  126. package/dist/esm/{chunk-RIINVEZA.mjs → chunk-UQKQH5C7.mjs} +2 -2
  127. package/dist/esm/chunk-URNCRLHO.mjs +4 -0
  128. package/dist/esm/chunk-URNCRLHO.mjs.map +1 -0
  129. package/dist/esm/chunk-V5IPL4SJ.mjs +2 -0
  130. package/dist/esm/chunk-V5IPL4SJ.mjs.map +1 -0
  131. package/dist/esm/chunk-YVRPD7Z6.mjs +2 -0
  132. package/dist/esm/{chunk-JLZGYZBX.mjs.map → chunk-YVRPD7Z6.mjs.map} +1 -1
  133. package/dist/esm/chunk-ZKOF4KST.mjs +7 -0
  134. package/dist/esm/chunk-ZKOF4KST.mjs.map +1 -0
  135. package/dist/esm/cli/index.mjs +1 -1
  136. package/dist/esm/cli/localNode.mjs +1 -1
  137. package/dist/esm/client/core.mjs +1 -1
  138. package/dist/esm/client/get.d.mts +5 -1
  139. package/dist/esm/client/get.mjs +1 -1
  140. package/dist/esm/client/index.d.mts +1 -1
  141. package/dist/esm/client/index.mjs +1 -1
  142. package/dist/esm/client/post.mjs +1 -1
  143. package/dist/esm/core/account/index.mjs +1 -1
  144. package/dist/esm/core/account/utils/address.mjs +1 -1
  145. package/dist/esm/core/account/utils/index.mjs +1 -1
  146. package/dist/esm/core/accountAddress.d.mts +18 -0
  147. package/dist/esm/core/accountAddress.mjs +1 -1
  148. package/dist/esm/core/authenticationKey.d.mts +3 -1
  149. package/dist/esm/core/authenticationKey.mjs +1 -1
  150. package/dist/esm/core/crypto/abstraction.d.mts +4 -1
  151. package/dist/esm/core/crypto/abstraction.mjs +1 -1
  152. package/dist/esm/core/crypto/ed25519.d.mts +19 -2
  153. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  154. package/dist/esm/core/crypto/ephemeral.d.mts +8 -1
  155. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  156. package/dist/esm/core/crypto/federatedKeyless.d.mts +11 -87
  157. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  158. package/dist/esm/core/crypto/index.d.mts +8 -6
  159. package/dist/esm/core/crypto/index.mjs +1 -1
  160. package/dist/esm/core/crypto/keyless.d.mts +13 -586
  161. package/dist/esm/core/crypto/keyless.mjs +1 -1
  162. package/dist/esm/core/crypto/multiEd25519.d.mts +14 -4
  163. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  164. package/dist/esm/core/crypto/multiKey.d.mts +42 -3
  165. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  166. package/dist/esm/core/crypto/privateKey.d.mts +3 -1
  167. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  168. package/dist/esm/core/crypto/proof.mjs +1 -1
  169. package/dist/esm/core/crypto/publicKey.d.mts +3 -1
  170. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  171. package/dist/esm/core/crypto/secp256k1.d.mts +27 -3
  172. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  173. package/dist/esm/core/crypto/signature.mjs +1 -1
  174. package/dist/esm/core/crypto/singleKey.d.mts +28 -3
  175. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  176. package/dist/esm/core/index.d.mts +8 -6
  177. package/dist/esm/core/index.mjs +1 -1
  178. package/dist/esm/errors/index.d.mts +10 -2
  179. package/dist/esm/errors/index.mjs +1 -1
  180. package/dist/esm/federatedKeyless-DVfVovSR.d.mts +875 -0
  181. package/dist/esm/index.d.mts +10 -9
  182. package/dist/esm/index.mjs +1 -1
  183. package/dist/esm/internal/abstraction.d.mts +9 -9
  184. package/dist/esm/internal/abstraction.mjs +1 -1
  185. package/dist/esm/internal/account.d.mts +51 -8
  186. package/dist/esm/internal/account.mjs +1 -1
  187. package/dist/esm/internal/ans.d.mts +14 -14
  188. package/dist/esm/internal/ans.mjs +1 -1
  189. package/dist/esm/internal/coin.d.mts +11 -11
  190. package/dist/esm/internal/coin.mjs +1 -1
  191. package/dist/esm/internal/digitalAsset.d.mts +3 -3
  192. package/dist/esm/internal/digitalAsset.mjs +1 -1
  193. package/dist/esm/internal/event.mjs +1 -1
  194. package/dist/esm/internal/experimental.d.mts +7 -7
  195. package/dist/esm/internal/experimental.mjs +1 -1
  196. package/dist/esm/internal/faucet.mjs +1 -1
  197. package/dist/esm/internal/fungibleAsset.d.mts +2 -2
  198. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  199. package/dist/esm/internal/general.mjs +1 -1
  200. package/dist/esm/internal/keyless.d.mts +9 -8
  201. package/dist/esm/internal/keyless.mjs +1 -1
  202. package/dist/esm/internal/object.mjs +1 -1
  203. package/dist/esm/internal/staking.mjs +1 -1
  204. package/dist/esm/internal/table.mjs +1 -1
  205. package/dist/esm/internal/transaction.mjs +1 -1
  206. package/dist/esm/internal/transactionSubmission.d.mts +6 -6
  207. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  208. package/dist/esm/internal/utils/index.d.mts +1 -1
  209. package/dist/esm/internal/utils/index.mjs +1 -1
  210. package/dist/esm/internal/utils/utils.d.mts +2 -19
  211. package/dist/esm/internal/utils/utils.mjs +1 -1
  212. package/dist/esm/internal/view.d.mts +7 -7
  213. package/dist/esm/internal/view.mjs +1 -1
  214. package/dist/esm/{publicKey-BMtGNNLg.d.mts → publicKey-pDHBAZlT.d.mts} +27 -1
  215. package/dist/esm/transactions/authenticator/account.d.mts +3 -1
  216. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  217. package/dist/esm/transactions/authenticator/index.d.mts +3 -1
  218. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  219. package/dist/esm/transactions/authenticator/transaction.d.mts +4 -2
  220. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  221. package/dist/esm/transactions/index.d.mts +3 -3
  222. package/dist/esm/transactions/index.mjs +1 -1
  223. package/dist/esm/transactions/instances/chainId.mjs +1 -1
  224. package/dist/esm/transactions/instances/identifier.mjs +1 -1
  225. package/dist/esm/transactions/instances/index.d.mts +4 -2
  226. package/dist/esm/transactions/instances/index.mjs +1 -1
  227. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  228. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  229. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  230. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +3 -1
  231. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  232. package/dist/esm/transactions/instances/signedTransaction.d.mts +3 -1
  233. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  234. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  235. package/dist/esm/transactions/instances/transactionPayload.d.mts +1 -1
  236. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  237. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +2 -2
  238. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  239. package/dist/esm/transactions/management/index.d.mts +2 -2
  240. package/dist/esm/transactions/management/index.mjs +1 -1
  241. package/dist/esm/transactions/management/transactionWorker.d.mts +3 -3
  242. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  243. package/dist/esm/transactions/scriptComposer/index.d.mts +7 -7
  244. package/dist/esm/transactions/scriptComposer/index.mjs +1 -1
  245. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +8 -8
  246. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  247. package/dist/esm/transactions/transactionBuilder/index.d.mts +7 -7
  248. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  249. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +5 -5
  250. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  251. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +7 -7
  252. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  253. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +8 -8
  254. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  255. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  256. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  257. package/dist/esm/transactions/types.d.mts +6 -6
  258. package/dist/esm/types/index.d.mts +1 -1
  259. package/dist/esm/types/index.mjs +1 -1
  260. package/dist/esm/types/indexer.d.mts +1 -1
  261. package/dist/esm/types/keyless.d.mts +1 -1
  262. package/dist/esm/types/types.d.mts +10 -1
  263. package/dist/esm/types/types.mjs +1 -1
  264. package/dist/esm/utils/helpers.d.mts +28 -1
  265. package/dist/esm/utils/helpers.mjs +1 -1
  266. package/dist/esm/utils/index.d.mts +3 -1
  267. package/dist/esm/utils/index.mjs +1 -1
  268. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  269. package/dist/esm/version.d.mts +1 -1
  270. package/dist/esm/version.mjs +1 -1
  271. package/package.json +10 -4
  272. package/src/account/AbstractKeylessAccount.ts +33 -49
  273. package/src/account/Account.ts +20 -0
  274. package/src/account/Ed25519Account.ts +26 -1
  275. package/src/account/MultiEd25519Account.ts +28 -1
  276. package/src/account/MultiKeyAccount.ts +25 -16
  277. package/src/account/SingleKeyAccount.ts +35 -1
  278. package/src/api/account.ts +84 -4
  279. package/src/cli/localNode.ts +6 -15
  280. package/src/client/get.ts +45 -18
  281. package/src/core/accountAddress.ts +25 -0
  282. package/src/core/crypto/abstraction.ts +6 -1
  283. package/src/core/crypto/ed25519.ts +19 -1
  284. package/src/core/crypto/ephemeral.ts +9 -0
  285. package/src/core/crypto/federatedKeyless.ts +46 -4
  286. package/src/core/crypto/index.ts +4 -3
  287. package/src/core/crypto/keyless.ts +610 -17
  288. package/src/core/crypto/multiEd25519.ts +11 -3
  289. package/src/core/crypto/multiKey.ts +86 -5
  290. package/src/core/crypto/publicKey.ts +28 -0
  291. package/src/core/crypto/secp256k1.ts +25 -2
  292. package/src/core/crypto/singleKey.ts +41 -6
  293. package/src/errors/index.ts +50 -0
  294. package/src/internal/account.ts +84 -7
  295. package/src/internal/move/jwks/build/jwk/BuildInfo.yaml +56 -0
  296. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/account.mv +0 -0
  297. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator.mv +0 -0
  298. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator_factory.mv +0 -0
  299. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aggregator_v2.mv +0 -0
  300. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_account.mv +0 -0
  301. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_coin.mv +0 -0
  302. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/aptos_governance.mv +0 -0
  303. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/block.mv +0 -0
  304. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/chain_id.mv +0 -0
  305. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/chain_status.mv +0 -0
  306. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/code.mv +0 -0
  307. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/coin.mv +0 -0
  308. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/config_buffer.mv +0 -0
  309. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/consensus_config.mv +0 -0
  310. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/create_signer.mv +0 -0
  311. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/delegation_pool.mv +0 -0
  312. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/dispatchable_fungible_asset.mv +0 -0
  313. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/dkg.mv +0 -0
  314. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/event.mv +0 -0
  315. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/execution_config.mv +0 -0
  316. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/function_info.mv +0 -0
  317. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/fungible_asset.mv +0 -0
  318. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/gas_schedule.mv +0 -0
  319. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/genesis.mv +0 -0
  320. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/governance_proposal.mv +0 -0
  321. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/guid.mv +0 -0
  322. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/jwk_consensus_config.mv +0 -0
  323. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/jwks.mv +0 -0
  324. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/keyless_account.mv +0 -0
  325. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/managed_coin.mv +0 -0
  326. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/multisig_account.mv +0 -0
  327. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/object.mv +0 -0
  328. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/object_code_deployment.mv +0 -0
  329. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/optional_aggregator.mv +0 -0
  330. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/primary_fungible_store.mv +0 -0
  331. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness.mv +0 -0
  332. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_api_v0_config.mv +0 -0
  333. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_config.mv +0 -0
  334. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/randomness_config_seqnum.mv +0 -0
  335. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration.mv +0 -0
  336. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration_state.mv +0 -0
  337. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/reconfiguration_with_dkg.mv +0 -0
  338. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/resource_account.mv +0 -0
  339. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/stake.mv +0 -0
  340. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_config.mv +0 -0
  341. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_contract.mv +0 -0
  342. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/staking_proxy.mv +0 -0
  343. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/state_storage.mv +0 -0
  344. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/storage_gas.mv +0 -0
  345. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/system_addresses.mv +0 -0
  346. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/timestamp.mv +0 -0
  347. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_context.mv +0 -0
  348. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_fee.mv +0 -0
  349. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/transaction_validation.mv +0 -0
  350. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/util.mv +0 -0
  351. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/validator_consensus_info.mv +0 -0
  352. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/version.mv +0 -0
  353. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/vesting.mv +0 -0
  354. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosFramework/voting.mv +0 -0
  355. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/any.mv +0 -0
  356. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/aptos_hash.mv +0 -0
  357. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/big_vector.mv +0 -0
  358. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bls12381.mv +0 -0
  359. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bls12381_algebra.mv +0 -0
  360. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/bn254_algebra.mv +0 -0
  361. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/capability.mv +0 -0
  362. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/comparator.mv +0 -0
  363. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/copyable_any.mv +0 -0
  364. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/crypto_algebra.mv +0 -0
  365. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/debug.mv +0 -0
  366. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ed25519.mv +0 -0
  367. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/fixed_point64.mv +0 -0
  368. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/from_bcs.mv +0 -0
  369. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math128.mv +0 -0
  370. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math64.mv +0 -0
  371. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math_fixed.mv +0 -0
  372. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/math_fixed64.mv +0 -0
  373. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/multi_ed25519.mv +0 -0
  374. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/pool_u64.mv +0 -0
  375. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/pool_u64_unbound.mv +0 -0
  376. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255.mv +0 -0
  377. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_bulletproofs.mv +0 -0
  378. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_elgamal.mv +0 -0
  379. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/ristretto255_pedersen.mv +0 -0
  380. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/secp256k1.mv +0 -0
  381. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/simple_map.mv +0 -0
  382. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/smart_table.mv +0 -0
  383. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/smart_vector.mv +0 -0
  384. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/string_utils.mv +0 -0
  385. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/table.mv +0 -0
  386. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/table_with_length.mv +0 -0
  387. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/AptosStdlib/type_info.mv +0 -0
  388. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/acl.mv +0 -0
  389. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/bcs.mv +0 -0
  390. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/bit_vector.mv +0 -0
  391. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/error.mv +0 -0
  392. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/features.mv +0 -0
  393. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/fixed_point32.mv +0 -0
  394. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/hash.mv +0 -0
  395. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/option.mv +0 -0
  396. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/signer.mv +0 -0
  397. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/string.mv +0 -0
  398. package/src/internal/move/jwks/build/jwk/bytecode_modules/dependencies/MoveStdlib/vector.mv +0 -0
  399. package/src/internal/move/jwks/build/jwk/bytecode_scripts/main.mv +0 -0
  400. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/account.mvsm +0 -0
  401. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator.mvsm +0 -0
  402. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator_factory.mvsm +0 -0
  403. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aggregator_v2.mvsm +0 -0
  404. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_account.mvsm +0 -0
  405. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_coin.mvsm +0 -0
  406. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/aptos_governance.mvsm +0 -0
  407. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/block.mvsm +0 -0
  408. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/chain_id.mvsm +0 -0
  409. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/chain_status.mvsm +0 -0
  410. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/code.mvsm +0 -0
  411. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/coin.mvsm +0 -0
  412. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/config_buffer.mvsm +0 -0
  413. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/consensus_config.mvsm +0 -0
  414. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/create_signer.mvsm +0 -0
  415. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/delegation_pool.mvsm +0 -0
  416. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/dispatchable_fungible_asset.mvsm +0 -0
  417. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/dkg.mvsm +0 -0
  418. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/event.mvsm +0 -0
  419. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/execution_config.mvsm +0 -0
  420. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/function_info.mvsm +0 -0
  421. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/fungible_asset.mvsm +0 -0
  422. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/gas_schedule.mvsm +0 -0
  423. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/genesis.mvsm +0 -0
  424. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/governance_proposal.mvsm +0 -0
  425. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/guid.mvsm +0 -0
  426. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/jwk_consensus_config.mvsm +0 -0
  427. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/jwks.mvsm +0 -0
  428. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/keyless_account.mvsm +0 -0
  429. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/managed_coin.mvsm +0 -0
  430. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/multisig_account.mvsm +0 -0
  431. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/object.mvsm +0 -0
  432. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/object_code_deployment.mvsm +0 -0
  433. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/optional_aggregator.mvsm +0 -0
  434. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/primary_fungible_store.mvsm +0 -0
  435. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness.mvsm +0 -0
  436. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_api_v0_config.mvsm +0 -0
  437. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_config.mvsm +0 -0
  438. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/randomness_config_seqnum.mvsm +0 -0
  439. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration.mvsm +0 -0
  440. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration_state.mvsm +0 -0
  441. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/reconfiguration_with_dkg.mvsm +0 -0
  442. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/resource_account.mvsm +0 -0
  443. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/stake.mvsm +0 -0
  444. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_config.mvsm +0 -0
  445. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_contract.mvsm +0 -0
  446. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/staking_proxy.mvsm +0 -0
  447. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/state_storage.mvsm +0 -0
  448. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/storage_gas.mvsm +0 -0
  449. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/system_addresses.mvsm +0 -0
  450. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/timestamp.mvsm +0 -0
  451. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_context.mvsm +0 -0
  452. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_fee.mvsm +0 -0
  453. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/transaction_validation.mvsm +0 -0
  454. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/util.mvsm +0 -0
  455. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/validator_consensus_info.mvsm +0 -0
  456. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/version.mvsm +0 -0
  457. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/vesting.mvsm +0 -0
  458. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosFramework/voting.mvsm +0 -0
  459. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/any.mvsm +0 -0
  460. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/aptos_hash.mvsm +0 -0
  461. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/big_vector.mvsm +0 -0
  462. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bls12381.mvsm +0 -0
  463. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bls12381_algebra.mvsm +0 -0
  464. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/bn254_algebra.mvsm +0 -0
  465. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/capability.mvsm +0 -0
  466. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/comparator.mvsm +0 -0
  467. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/copyable_any.mvsm +0 -0
  468. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/crypto_algebra.mvsm +0 -0
  469. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/debug.mvsm +0 -0
  470. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ed25519.mvsm +0 -0
  471. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/fixed_point64.mvsm +0 -0
  472. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/from_bcs.mvsm +0 -0
  473. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math128.mvsm +0 -0
  474. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math64.mvsm +0 -0
  475. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math_fixed.mvsm +0 -0
  476. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/math_fixed64.mvsm +0 -0
  477. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/multi_ed25519.mvsm +0 -0
  478. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/pool_u64.mvsm +0 -0
  479. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/pool_u64_unbound.mvsm +0 -0
  480. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255.mvsm +0 -0
  481. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_bulletproofs.mvsm +0 -0
  482. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_elgamal.mvsm +0 -0
  483. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/ristretto255_pedersen.mvsm +0 -0
  484. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/secp256k1.mvsm +0 -0
  485. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/simple_map.mvsm +0 -0
  486. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/smart_table.mvsm +0 -0
  487. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/smart_vector.mvsm +0 -0
  488. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/string_utils.mvsm +0 -0
  489. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/table.mvsm +0 -0
  490. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/table_with_length.mvsm +0 -0
  491. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/AptosStdlib/type_info.mvsm +0 -0
  492. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/acl.mvsm +0 -0
  493. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/bcs.mvsm +0 -0
  494. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/bit_vector.mvsm +0 -0
  495. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/error.mvsm +0 -0
  496. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/features.mvsm +0 -0
  497. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/fixed_point32.mvsm +0 -0
  498. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/hash.mvsm +0 -0
  499. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/option.mvsm +0 -0
  500. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/signer.mvsm +0 -0
  501. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/string.mvsm +0 -0
  502. package/src/internal/move/jwks/build/jwk/source_maps/dependencies/MoveStdlib/vector.mvsm +0 -0
  503. package/src/internal/move/jwks/build/jwk/source_maps/main.mvsm +0 -0
  504. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/account.move +1533 -0
  505. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator.move +48 -0
  506. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator_factory.move +66 -0
  507. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aggregator_v2.move +280 -0
  508. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_account.move +443 -0
  509. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_coin.move +204 -0
  510. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/aptos_governance.move +1387 -0
  511. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/block.move +394 -0
  512. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/chain_id.move +41 -0
  513. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/chain_status.move +48 -0
  514. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/code.move +367 -0
  515. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/coin.move +2214 -0
  516. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/config_buffer.move +101 -0
  517. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/consensus_config.move +77 -0
  518. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/create_signer.move +21 -0
  519. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/delegation_pool.move +5568 -0
  520. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/dispatchable_fungible_asset.move +228 -0
  521. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/dkg.move +121 -0
  522. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/event.move +92 -0
  523. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/execution_config.move +66 -0
  524. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/function_info.move +100 -0
  525. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/fungible_asset.move +1566 -0
  526. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/gas_schedule.move +176 -0
  527. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/genesis.move +550 -0
  528. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/governance_proposal.move +23 -0
  529. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/guid.move +68 -0
  530. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/jwk_consensus_config.move +148 -0
  531. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/jwks.move +817 -0
  532. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/keyless_account.move +312 -0
  533. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/managed_coin.move +205 -0
  534. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/multisig_account.move +2477 -0
  535. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/object.move +1073 -0
  536. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/object_code_deployment.move +147 -0
  537. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/optional_aggregator.move +295 -0
  538. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/primary_fungible_store.move +405 -0
  539. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness.move +574 -0
  540. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_api_v0_config.move +57 -0
  541. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_config.move +153 -0
  542. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/randomness_config_seqnum.move +49 -0
  543. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration.move +237 -0
  544. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration_state.move +132 -0
  545. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/reconfiguration_with_dkg.move +69 -0
  546. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/resource_account.move +267 -0
  547. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/stake.move +3286 -0
  548. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_config.move +686 -0
  549. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_contract.move +1618 -0
  550. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/staking_proxy.move +228 -0
  551. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/state_storage.move +90 -0
  552. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/storage_gas.move +622 -0
  553. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/system_addresses.move +82 -0
  554. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/timestamp.move +88 -0
  555. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_context.move +262 -0
  556. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_fee.move +457 -0
  557. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/transaction_validation.move +501 -0
  558. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/util.move +16 -0
  559. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/validator_consensus_info.move +42 -0
  560. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/version.move +115 -0
  561. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/vesting.move +2183 -0
  562. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosFramework/voting.move +1279 -0
  563. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/any.move +57 -0
  564. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/aptos_hash.move +253 -0
  565. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/big_vector.move +469 -0
  566. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bls12381.move +985 -0
  567. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bls12381_algebra.move +802 -0
  568. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/bn254_algebra.move +855 -0
  569. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/capability.move +193 -0
  570. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/comparator.move +173 -0
  571. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/copyable_any.move +45 -0
  572. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/crypto_algebra.move +351 -0
  573. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/debug.move +278 -0
  574. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ed25519.move +262 -0
  575. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/fixed_point64.move +447 -0
  576. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/from_bcs.move +91 -0
  577. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math128.move +381 -0
  578. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math64.move +336 -0
  579. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math_fixed.move +139 -0
  580. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/math_fixed64.move +142 -0
  581. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/multi_ed25519.move +482 -0
  582. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/pool_u64.move +571 -0
  583. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/pool_u64_unbound.move +270 -0
  584. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255.move +1310 -0
  585. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_bulletproofs.move +253 -0
  586. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_elgamal.move +234 -0
  587. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/ristretto255_pedersen.move +158 -0
  588. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/secp256k1.move +114 -0
  589. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/simple_map.move +319 -0
  590. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/smart_table.move +769 -0
  591. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/smart_vector.move +766 -0
  592. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/string_utils.move +148 -0
  593. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/table.move +152 -0
  594. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/table_with_length.move +141 -0
  595. package/src/internal/move/jwks/build/jwk/sources/dependencies/AptosStdlib/type_info.move +351 -0
  596. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/acl.move +46 -0
  597. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/bcs.move +27 -0
  598. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/bit_vector.move +239 -0
  599. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/error.move +88 -0
  600. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/features.move +780 -0
  601. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/fixed_point32.move +295 -0
  602. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/hash.move +8 -0
  603. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/option.move +356 -0
  604. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/signer.move +21 -0
  605. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/string.move +93 -0
  606. package/src/internal/move/jwks/build/jwk/sources/dependencies/MoveStdlib/vector.move +669 -0
  607. package/src/internal/move/jwks/build/jwk/sources/main.move +20 -0
  608. package/src/internal/utils/utils.ts +2 -32
  609. package/src/types/keyless.ts +1 -1
  610. package/src/types/types.ts +10 -0
  611. package/src/utils/helpers.ts +61 -0
  612. package/src/version.ts +1 -1
  613. package/dist/common/chunk-PA2XFIP3.js +0 -4
  614. package/dist/common/chunk-PA2XFIP3.js.map +0 -1
  615. package/dist/esm/chunk-2N4EPY2J.mjs +0 -2
  616. package/dist/esm/chunk-2N4EPY2J.mjs.map +0 -1
  617. package/dist/esm/chunk-2OBSQ2FK.mjs +0 -2
  618. package/dist/esm/chunk-2OBSQ2FK.mjs.map +0 -1
  619. package/dist/esm/chunk-2V636AYW.mjs +0 -2
  620. package/dist/esm/chunk-36H47QOE.mjs +0 -2
  621. package/dist/esm/chunk-36H47QOE.mjs.map +0 -1
  622. package/dist/esm/chunk-3DHWWNJ3.mjs +0 -2
  623. package/dist/esm/chunk-3DHWWNJ3.mjs.map +0 -1
  624. package/dist/esm/chunk-4KKJ36IO.mjs +0 -2
  625. package/dist/esm/chunk-4KKJ36IO.mjs.map +0 -1
  626. package/dist/esm/chunk-4NMDYPUD.mjs +0 -1
  627. package/dist/esm/chunk-4NMDYPUD.mjs.map +0 -1
  628. package/dist/esm/chunk-4PW3JKQZ.mjs +0 -2
  629. package/dist/esm/chunk-4PW3JKQZ.mjs.map +0 -1
  630. package/dist/esm/chunk-4QK4SKAT.mjs +0 -2
  631. package/dist/esm/chunk-4QK4SKAT.mjs.map +0 -1
  632. package/dist/esm/chunk-4SWK3JHQ.mjs +0 -2
  633. package/dist/esm/chunk-4SWK3JHQ.mjs.map +0 -1
  634. package/dist/esm/chunk-553ZRNUL.mjs +0 -2
  635. package/dist/esm/chunk-553ZRNUL.mjs.map +0 -1
  636. package/dist/esm/chunk-5AD7ZF6G.mjs +0 -2
  637. package/dist/esm/chunk-5AD7ZF6G.mjs.map +0 -1
  638. package/dist/esm/chunk-5MVHOQKD.mjs +0 -2
  639. package/dist/esm/chunk-5MVHOQKD.mjs.map +0 -1
  640. package/dist/esm/chunk-5W5XV63W.mjs +0 -2
  641. package/dist/esm/chunk-5W5XV63W.mjs.map +0 -1
  642. package/dist/esm/chunk-5WWU3WSU.mjs +0 -2
  643. package/dist/esm/chunk-5WWU3WSU.mjs.map +0 -1
  644. package/dist/esm/chunk-6FQDCTMA.mjs +0 -2
  645. package/dist/esm/chunk-6FQDCTMA.mjs.map +0 -1
  646. package/dist/esm/chunk-6IULVNLQ.mjs +0 -2
  647. package/dist/esm/chunk-6IULVNLQ.mjs.map +0 -1
  648. package/dist/esm/chunk-6KI24ZRR.mjs +0 -2
  649. package/dist/esm/chunk-6KI24ZRR.mjs.map +0 -1
  650. package/dist/esm/chunk-6KZT3KFZ.mjs +0 -2
  651. package/dist/esm/chunk-6KZT3KFZ.mjs.map +0 -1
  652. package/dist/esm/chunk-6VGLRQBT.mjs +0 -2
  653. package/dist/esm/chunk-6VGLRQBT.mjs.map +0 -1
  654. package/dist/esm/chunk-6YPM7TK2.mjs +0 -2
  655. package/dist/esm/chunk-6YPM7TK2.mjs.map +0 -1
  656. package/dist/esm/chunk-7HC33TEX.mjs +0 -2
  657. package/dist/esm/chunk-7HC33TEX.mjs.map +0 -1
  658. package/dist/esm/chunk-7KHKP7DY.mjs +0 -2
  659. package/dist/esm/chunk-7KHKP7DY.mjs.map +0 -1
  660. package/dist/esm/chunk-7OUPEQRN.mjs +0 -2
  661. package/dist/esm/chunk-7OUPEQRN.mjs.map +0 -1
  662. package/dist/esm/chunk-APGCD5FH.mjs +0 -2
  663. package/dist/esm/chunk-APGCD5FH.mjs.map +0 -1
  664. package/dist/esm/chunk-BMPHQ3E7.mjs +0 -2
  665. package/dist/esm/chunk-BSCOVLWS.mjs +0 -1
  666. package/dist/esm/chunk-BSCOVLWS.mjs.map +0 -1
  667. package/dist/esm/chunk-CGTMSLVZ.mjs +0 -2
  668. package/dist/esm/chunk-CGTMSLVZ.mjs.map +0 -1
  669. package/dist/esm/chunk-CU6HQJSE.mjs +0 -2
  670. package/dist/esm/chunk-CU6HQJSE.mjs.map +0 -1
  671. package/dist/esm/chunk-DAR3R4UP.mjs +0 -2
  672. package/dist/esm/chunk-DAR3R4UP.mjs.map +0 -1
  673. package/dist/esm/chunk-DUJJUR7O.mjs +0 -2
  674. package/dist/esm/chunk-DUJJUR7O.mjs.map +0 -1
  675. package/dist/esm/chunk-E7FWVXGX.mjs +0 -1
  676. package/dist/esm/chunk-E7FWVXGX.mjs.map +0 -1
  677. package/dist/esm/chunk-EHTTY7EF.mjs +0 -2
  678. package/dist/esm/chunk-EHTTY7EF.mjs.map +0 -1
  679. package/dist/esm/chunk-FCHN3LT7.mjs +0 -2
  680. package/dist/esm/chunk-FCHN3LT7.mjs.map +0 -1
  681. package/dist/esm/chunk-GFPEB22G.mjs +0 -1
  682. package/dist/esm/chunk-GFPEB22G.mjs.map +0 -1
  683. package/dist/esm/chunk-GJOUTA7U.mjs +0 -2
  684. package/dist/esm/chunk-GJOUTA7U.mjs.map +0 -1
  685. package/dist/esm/chunk-H4YAL2IL.mjs +0 -2
  686. package/dist/esm/chunk-H4YAL2IL.mjs.map +0 -1
  687. package/dist/esm/chunk-HEZ2ZYZA.mjs +0 -1
  688. package/dist/esm/chunk-HEZ2ZYZA.mjs.map +0 -1
  689. package/dist/esm/chunk-HTP5ZVX5.mjs +0 -2
  690. package/dist/esm/chunk-HTP5ZVX5.mjs.map +0 -1
  691. package/dist/esm/chunk-HWNPKEOJ.mjs +0 -2
  692. package/dist/esm/chunk-HWNPKEOJ.mjs.map +0 -1
  693. package/dist/esm/chunk-IHYTP2EW.mjs +0 -1
  694. package/dist/esm/chunk-IHYTP2EW.mjs.map +0 -1
  695. package/dist/esm/chunk-ILUFGYLO.mjs +0 -2
  696. package/dist/esm/chunk-ILUFGYLO.mjs.map +0 -1
  697. package/dist/esm/chunk-IM4O756A.mjs +0 -2
  698. package/dist/esm/chunk-IM4O756A.mjs.map +0 -1
  699. package/dist/esm/chunk-IMYNN4TW.mjs +0 -2
  700. package/dist/esm/chunk-IMYNN4TW.mjs.map +0 -1
  701. package/dist/esm/chunk-JA7CXAVY.mjs +0 -2
  702. package/dist/esm/chunk-JA7CXAVY.mjs.map +0 -1
  703. package/dist/esm/chunk-JBARRS6K.mjs +0 -2
  704. package/dist/esm/chunk-JBARRS6K.mjs.map +0 -1
  705. package/dist/esm/chunk-JLZGYZBX.mjs +0 -2
  706. package/dist/esm/chunk-JNNFNYDO.mjs +0 -2
  707. package/dist/esm/chunk-JNNFNYDO.mjs.map +0 -1
  708. package/dist/esm/chunk-JXHGJ3AA.mjs +0 -2
  709. package/dist/esm/chunk-JXHGJ3AA.mjs.map +0 -1
  710. package/dist/esm/chunk-K4JUKMMY.mjs +0 -2
  711. package/dist/esm/chunk-K4JUKMMY.mjs.map +0 -1
  712. package/dist/esm/chunk-LET633ZK.mjs +0 -2
  713. package/dist/esm/chunk-LET633ZK.mjs.map +0 -1
  714. package/dist/esm/chunk-LQOSHBB7.mjs +0 -4
  715. package/dist/esm/chunk-LQOSHBB7.mjs.map +0 -1
  716. package/dist/esm/chunk-M2GGYCLU.mjs +0 -2
  717. package/dist/esm/chunk-M2GGYCLU.mjs.map +0 -1
  718. package/dist/esm/chunk-MY2BEHYF.mjs +0 -2
  719. package/dist/esm/chunk-MY2BEHYF.mjs.map +0 -1
  720. package/dist/esm/chunk-MZVVBJVV.mjs +0 -2
  721. package/dist/esm/chunk-MZVVBJVV.mjs.map +0 -1
  722. package/dist/esm/chunk-N73S2K2V.mjs +0 -2
  723. package/dist/esm/chunk-N73S2K2V.mjs.map +0 -1
  724. package/dist/esm/chunk-NIDF2LHF.mjs +0 -2
  725. package/dist/esm/chunk-NIDF2LHF.mjs.map +0 -1
  726. package/dist/esm/chunk-OSZWSLJA.mjs +0 -2
  727. package/dist/esm/chunk-OSZWSLJA.mjs.map +0 -1
  728. package/dist/esm/chunk-P265EC4T.mjs +0 -2
  729. package/dist/esm/chunk-P265EC4T.mjs.map +0 -1
  730. package/dist/esm/chunk-PE7KT5ZB.mjs +0 -2
  731. package/dist/esm/chunk-PE7KT5ZB.mjs.map +0 -1
  732. package/dist/esm/chunk-PICZWW35.mjs +0 -2
  733. package/dist/esm/chunk-PICZWW35.mjs.map +0 -1
  734. package/dist/esm/chunk-PWGTRRSJ.mjs +0 -2
  735. package/dist/esm/chunk-PWGTRRSJ.mjs.map +0 -1
  736. package/dist/esm/chunk-Q3AVJUBL.mjs +0 -2
  737. package/dist/esm/chunk-Q3AVJUBL.mjs.map +0 -1
  738. package/dist/esm/chunk-QLEZDMIK.mjs +0 -2
  739. package/dist/esm/chunk-QLEZDMIK.mjs.map +0 -1
  740. package/dist/esm/chunk-QXTQNFEQ.mjs +0 -2
  741. package/dist/esm/chunk-QXTQNFEQ.mjs.map +0 -1
  742. package/dist/esm/chunk-R6I6Z3AA.mjs +0 -2
  743. package/dist/esm/chunk-R6I6Z3AA.mjs.map +0 -1
  744. package/dist/esm/chunk-R6QCPXQG.mjs.map +0 -1
  745. package/dist/esm/chunk-RMMOF53Q.mjs +0 -1
  746. package/dist/esm/chunk-RMMOF53Q.mjs.map +0 -1
  747. package/dist/esm/chunk-SCLWOTHD.mjs +0 -2
  748. package/dist/esm/chunk-SCLWOTHD.mjs.map +0 -1
  749. package/dist/esm/chunk-SZU5Q6CF.mjs +0 -2
  750. package/dist/esm/chunk-SZU5Q6CF.mjs.map +0 -1
  751. package/dist/esm/chunk-T3VLXADE.mjs +0 -2
  752. package/dist/esm/chunk-T3VLXADE.mjs.map +0 -1
  753. package/dist/esm/chunk-TJICLFR2.mjs +0 -2
  754. package/dist/esm/chunk-TJICLFR2.mjs.map +0 -1
  755. package/dist/esm/chunk-U6ZD22B5.mjs +0 -2
  756. package/dist/esm/chunk-U6ZD22B5.mjs.map +0 -1
  757. package/dist/esm/chunk-UOBDL2BZ.mjs +0 -2
  758. package/dist/esm/chunk-UOBDL2BZ.mjs.map +0 -1
  759. package/dist/esm/chunk-UP36QQGG.mjs +0 -4
  760. package/dist/esm/chunk-UP36QQGG.mjs.map +0 -1
  761. package/dist/esm/chunk-VIXTXBYA.mjs +0 -2
  762. package/dist/esm/chunk-VIXTXBYA.mjs.map +0 -1
  763. package/dist/esm/chunk-WYV4W2IM.mjs +0 -2
  764. package/dist/esm/chunk-WYV4W2IM.mjs.map +0 -1
  765. package/dist/esm/chunk-X5ORWYVO.mjs +0 -7
  766. package/dist/esm/chunk-X5ORWYVO.mjs.map +0 -1
  767. package/dist/esm/chunk-X5UJYMJU.mjs +0 -2
  768. package/dist/esm/chunk-X5UJYMJU.mjs.map +0 -1
  769. package/dist/esm/chunk-X5YB74NB.mjs +0 -2
  770. package/dist/esm/chunk-X6H4G6NE.mjs +0 -2
  771. package/dist/esm/chunk-X6H4G6NE.mjs.map +0 -1
  772. package/dist/esm/chunk-XFL3B4WZ.mjs +0 -2
  773. package/dist/esm/chunk-XFL3B4WZ.mjs.map +0 -1
  774. package/dist/esm/chunk-XX4SFNZY.mjs +0 -2
  775. package/dist/esm/chunk-XX4SFNZY.mjs.map +0 -1
  776. package/dist/esm/chunk-YMXJ6GYE.mjs +0 -2
  777. package/dist/esm/chunk-YMXJ6GYE.mjs.map +0 -1
  778. package/dist/esm/chunk-ZJCTELB4.mjs +0 -2
  779. package/dist/esm/chunk-ZJCTELB4.mjs.map +0 -1
  780. /package/dist/esm/{chunk-2P27DDVV.mjs.map → chunk-2DISMLR6.mjs.map} +0 -0
  781. /package/dist/esm/{chunk-ACE3NEV6.mjs.map → chunk-2RBINVFA.mjs.map} +0 -0
  782. /package/dist/esm/{chunk-TKXEVD7A.mjs.map → chunk-4FBUZY6C.mjs.map} +0 -0
  783. /package/dist/esm/{chunk-BMPHQ3E7.mjs.map → chunk-5WNHYEW2.mjs.map} +0 -0
  784. /package/dist/esm/{chunk-2SAOCLIU.mjs.map → chunk-6QJWFV2M.mjs.map} +0 -0
  785. /package/dist/esm/{chunk-PDAWVDI7.mjs.map → chunk-7JRZLDWV.mjs.map} +0 -0
  786. /package/dist/esm/{chunk-A3VO773Q.mjs.map → chunk-BRGQM252.mjs.map} +0 -0
  787. /package/dist/esm/{chunk-ZVYTHOS5.mjs.map → chunk-CICJRLYU.mjs.map} +0 -0
  788. /package/dist/esm/{chunk-RXHER6EA.mjs.map → chunk-CZOZTNXJ.mjs.map} +0 -0
  789. /package/dist/esm/{chunk-ERLDXTIY.mjs.map → chunk-DGH7NXHM.mjs.map} +0 -0
  790. /package/dist/esm/{chunk-ZOY6N6UM.mjs.map → chunk-DH32UXHB.mjs.map} +0 -0
  791. /package/dist/esm/{chunk-2V636AYW.mjs.map → chunk-EXXY72UN.mjs.map} +0 -0
  792. /package/dist/esm/{chunk-AIPHJFJL.mjs.map → chunk-F2GWK4YJ.mjs.map} +0 -0
  793. /package/dist/esm/{chunk-LS3IDL2N.mjs.map → chunk-FU65NEDT.mjs.map} +0 -0
  794. /package/dist/esm/{chunk-HHWJHOFZ.mjs.map → chunk-H3NZHL45.mjs.map} +0 -0
  795. /package/dist/esm/{chunk-TTY5GFMN.mjs.map → chunk-L5C44K6H.mjs.map} +0 -0
  796. /package/dist/esm/{chunk-KBC4ECVP.mjs.map → chunk-M7W6FZ5Z.mjs.map} +0 -0
  797. /package/dist/esm/{chunk-AEGA5N2W.mjs.map → chunk-P5CIZZDK.mjs.map} +0 -0
  798. /package/dist/esm/{chunk-HWMMVLTP.mjs.map → chunk-TORMKDQG.mjs.map} +0 -0
  799. /package/dist/esm/{chunk-RIINVEZA.mjs.map → chunk-UQKQH5C7.mjs.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{b as t,d as n}from"./chunk-HEYMZZRE.mjs";import{a as u}from"./chunk-7WPEGMD6.mjs";import{a as l}from"./chunk-BRGQM252.mjs";import{a as o}from"./chunk-BE3OXYYX.mjs";import{b as s}from"./chunk-VHY6ZATX.mjs";var c=class i extends u{constructor(e){super();let r=e.constructor.name;switch(r){case t.name:this.publicKey=e,this.variant=0;break;default:throw new Error(`Unsupported key for EphemeralPublicKey - ${r}`)}}verifySignature(e){let{message:r,signature:a}=e;return this.publicKey.verifySignature({message:r,signature:a.signature})}async verifySignatureAsync(e){return this.verifySignature(e)}serialize(e){if(this.publicKey instanceof t)e.serializeU32AsUleb128(0),this.publicKey.serialize(e);else throw new Error("Unknown public key type")}static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return new i(t.deserialize(e));default:throw new Error(`Unknown variant index for EphemeralPublicKey: ${r}`)}}static isPublicKey(e){return e instanceof i}},p=class i extends l{constructor(e){super();let r=e.constructor.name;switch(r){case n.name:this.signature=e;break;default:throw new Error(`Unsupported signature for EphemeralSignature - ${r}`)}}static fromHex(e){let r=s.fromHexInput(e),a=new o(r.toUint8Array());return i.deserialize(a)}serialize(e){if(this.signature instanceof n)e.serializeU32AsUleb128(0),this.signature.serialize(e);else throw new Error("Unknown signature type")}static deserialize(e){let r=e.deserializeUleb128AsU32();switch(r){case 0:return new i(n.deserialize(e));default:throw new Error(`Unknown variant index for EphemeralSignature: ${r}`)}}};export{c as a,p as b};
2
+ //# sourceMappingURL=chunk-V5IPL4SJ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/core/crypto/ephemeral.ts"],"sourcesContent":["import { Serializer, Deserializer } from \"../../bcs\";\nimport { EphemeralPublicKeyVariant, EphemeralSignatureVariant, HexInput } from \"../../types\";\nimport { PublicKey } from \"./publicKey\";\nimport { Signature } from \"./signature\";\nimport { Ed25519PublicKey, Ed25519Signature } from \"./ed25519\";\nimport { Hex } from \"../hex\";\nimport { AptosConfig } from \"../../api\";\n\n/**\n * Represents ephemeral public keys for Aptos Keyless accounts.\n *\n * These keys are used only temporarily within Keyless accounts and are not utilized as public keys for account identification.\n * @group Implementation\n * @category Serialization\n */\nexport class EphemeralPublicKey extends PublicKey {\n /**\n * The public key itself\n * @group Implementation\n * @category Serialization\n */\n public readonly publicKey: PublicKey;\n\n /**\n * An enum indicating the scheme of the ephemeral public key\n * @group Implementation\n * @category Serialization\n */\n public readonly variant: EphemeralPublicKeyVariant;\n\n /**\n * Creates an instance of EphemeralPublicKey using the provided public key.\n * This constructor ensures that only supported signature types are accepted.\n *\n * @param publicKey - The public key to be used for the ephemeral public key.\n * @throws Error if the signature type is unsupported.\n * @group Implementation\n * @category Serialization\n */\n constructor(publicKey: PublicKey) {\n super();\n const publicKeyType = publicKey.constructor.name;\n switch (publicKeyType) {\n case Ed25519PublicKey.name:\n this.publicKey = publicKey;\n this.variant = EphemeralPublicKeyVariant.Ed25519;\n break;\n default:\n throw new Error(`Unsupported key for EphemeralPublicKey - ${publicKeyType}`);\n }\n }\n\n /**\n * Verifies a signed message using the ephemeral public key.\n *\n * @param args - The arguments for the verification.\n * @param args.message - The message that was signed.\n * @param args.signature - The signature that was signed by the private key of the ephemeral public key.\n * @returns true if the signature is valid, otherwise false.\n * @group Implementation\n * @category Serialization\n */\n verifySignature(args: { message: HexInput; signature: EphemeralSignature }): boolean {\n const { message, signature } = args;\n return this.publicKey.verifySignature({ message, signature: signature.signature });\n }\n\n async verifySignatureAsync(args: {\n aptosConfig: AptosConfig;\n message: HexInput;\n signature: EphemeralSignature;\n }): Promise<boolean> {\n return this.verifySignature(args);\n }\n\n /**\n * Serializes the current instance, specifically handling the Ed25519 signature type.\n * This function ensures that the signature is properly serialized using the provided serializer.\n *\n * @param serializer - The serializer instance used to serialize the signature.\n * @throws Error if the signature type is unknown.\n * @group Implementation\n * @category Serialization\n */\n serialize(serializer: Serializer): void {\n if (this.publicKey instanceof Ed25519PublicKey) {\n serializer.serializeU32AsUleb128(EphemeralPublicKeyVariant.Ed25519);\n this.publicKey.serialize(serializer);\n } else {\n throw new Error(\"Unknown public key type\");\n }\n }\n\n /**\n * Deserializes an EphemeralSignature from the provided deserializer.\n * This function allows you to retrieve an EphemeralSignature based on the deserialized data.\n *\n * @param deserializer - The deserializer instance used to read the serialized data.\n * @group Implementation\n * @category Serialization\n */\n static deserialize(deserializer: Deserializer): EphemeralPublicKey {\n const index = deserializer.deserializeUleb128AsU32();\n switch (index) {\n case EphemeralPublicKeyVariant.Ed25519:\n return new EphemeralPublicKey(Ed25519PublicKey.deserialize(deserializer));\n default:\n throw new Error(`Unknown variant index for EphemeralPublicKey: ${index}`);\n }\n }\n\n /**\n * Determines if the provided public key is an instance of `EphemeralPublicKey`.\n *\n * @param publicKey - The public key to check.\n * @returns A boolean indicating whether the public key is an ephemeral type.\n * @group Implementation\n * @category Serialization\n */\n static isPublicKey(publicKey: PublicKey): publicKey is EphemeralPublicKey {\n return publicKey instanceof EphemeralPublicKey;\n }\n}\n\n/**\n * Represents ephemeral signatures used in Aptos Keyless accounts.\n *\n * These signatures are utilized within the KeylessSignature framework.\n * @group Implementation\n * @category Serialization\n */\nexport class EphemeralSignature extends Signature {\n /**\n * The signature signed by the private key of an EphemeralKeyPair\n * @group Implementation\n * @category Serialization\n */\n public readonly signature: Signature;\n\n constructor(signature: Signature) {\n super();\n const signatureType = signature.constructor.name;\n switch (signatureType) {\n case Ed25519Signature.name:\n this.signature = signature;\n break;\n default:\n throw new Error(`Unsupported signature for EphemeralSignature - ${signatureType}`);\n }\n }\n\n /**\n * Deserializes an ephemeral signature from a hexadecimal input.\n * This function allows you to convert a hexadecimal representation of an ephemeral signature into its deserialized form for\n * further processing.\n *\n * @param hexInput - The hexadecimal input representing the ephemeral signature.\n * @group Implementation\n * @category Serialization\n */\n static fromHex(hexInput: HexInput): EphemeralSignature {\n const data = Hex.fromHexInput(hexInput);\n const deserializer = new Deserializer(data.toUint8Array());\n return EphemeralSignature.deserialize(deserializer);\n }\n\n serialize(serializer: Serializer): void {\n if (this.signature instanceof Ed25519Signature) {\n serializer.serializeU32AsUleb128(EphemeralSignatureVariant.Ed25519);\n this.signature.serialize(serializer);\n } else {\n throw new Error(\"Unknown signature type\");\n }\n }\n\n static deserialize(deserializer: Deserializer): EphemeralSignature {\n const index = deserializer.deserializeUleb128AsU32();\n switch (index) {\n case EphemeralSignatureVariant.Ed25519:\n return new EphemeralSignature(Ed25519Signature.deserialize(deserializer));\n default:\n throw new Error(`Unknown variant index for EphemeralSignature: ${index}`);\n }\n }\n}\n"],"mappings":"oNAeO,IAAMA,EAAN,MAAMC,UAA2BC,CAAU,CAwBhD,YAAYC,EAAsB,CAChC,MAAM,EACN,IAAMC,EAAgBD,EAAU,YAAY,KAC5C,OAAQC,EAAe,CACrB,KAAKC,EAAiB,KACpB,KAAK,UAAYF,EACjB,KAAK,QAAU,EACf,MACF,QACE,MAAM,IAAI,MAAM,4CAA4CC,CAAa,EAAE,CAC/E,CACF,CAYA,gBAAgBE,EAAqE,CACnF,GAAM,CAAE,QAAAC,EAAS,UAAAC,CAAU,EAAIF,EAC/B,OAAO,KAAK,UAAU,gBAAgB,CAAE,QAAAC,EAAS,UAAWC,EAAU,SAAU,CAAC,CACnF,CAEA,MAAM,qBAAqBF,EAIN,CACnB,OAAO,KAAK,gBAAgBA,CAAI,CAClC,CAWA,UAAUG,EAA8B,CACtC,GAAI,KAAK,qBAAqBJ,EAC5BI,EAAW,uBAAuD,EAClE,KAAK,UAAU,UAAUA,CAAU,MAEnC,OAAM,IAAI,MAAM,yBAAyB,CAE7C,CAUA,OAAO,YAAYC,EAAgD,CACjE,IAAMC,EAAQD,EAAa,wBAAwB,EACnD,OAAQC,EAAO,CACb,OACE,OAAO,IAAIV,EAAmBI,EAAiB,YAAYK,CAAY,CAAC,EAC1E,QACE,MAAM,IAAI,MAAM,iDAAiDC,CAAK,EAAE,CAC5E,CACF,CAUA,OAAO,YAAYR,EAAuD,CACxE,OAAOA,aAAqBF,CAC9B,CACF,EASaW,EAAN,MAAMC,UAA2BC,CAAU,CAQhD,YAAYN,EAAsB,CAChC,MAAM,EACN,IAAMO,EAAgBP,EAAU,YAAY,KAC5C,OAAQO,EAAe,CACrB,KAAKC,EAAiB,KACpB,KAAK,UAAYR,EACjB,MACF,QACE,MAAM,IAAI,MAAM,kDAAkDO,CAAa,EAAE,CACrF,CACF,CAWA,OAAO,QAAQE,EAAwC,CACrD,IAAMC,EAAOC,EAAI,aAAaF,CAAQ,EAChCP,EAAe,IAAIU,EAAaF,EAAK,aAAa,CAAC,EACzD,OAAOL,EAAmB,YAAYH,CAAY,CACpD,CAEA,UAAUD,EAA8B,CACtC,GAAI,KAAK,qBAAqBO,EAC5BP,EAAW,uBAAuD,EAClE,KAAK,UAAU,UAAUA,CAAU,MAEnC,OAAM,IAAI,MAAM,wBAAwB,CAE5C,CAEA,OAAO,YAAYC,EAAgD,CACjE,IAAMC,EAAQD,EAAa,wBAAwB,EACnD,OAAQC,EAAO,CACb,OACE,OAAO,IAAIE,EAAmBG,EAAiB,YAAYN,CAAY,CAAC,EAC1E,QACE,MAAM,IAAI,MAAM,iDAAiDC,CAAK,EAAE,CAC5E,CACF,CACF","names":["EphemeralPublicKey","_EphemeralPublicKey","PublicKey","publicKey","publicKeyType","Ed25519PublicKey","args","message","signature","serializer","deserializer","index","EphemeralSignature","_EphemeralSignature","Signature","signatureType","Ed25519Signature","hexInput","data","Hex","Deserializer"]}
@@ -0,0 +1,2 @@
1
+ import{c as d,d as c}from"./chunk-CICJRLYU.mjs";async function p(e){let{aptosConfig:t,overrides:s,params:r,contentType:n,acceptType:i,path:a,originMethod:o,type:u}=e,R=t.getRequestUrl(u);return d({url:R,method:"GET",originMethod:o,path:a,contentType:n,acceptType:i,params:r,overrides:{...t.clientConfig,...s}},t,e.type)}async function f(e){let{aptosConfig:t,overrides:s,params:r,contentType:n,acceptType:i,path:a,originMethod:o,type:u}=e,R=t.getRequestUrl(u);return c({url:R,method:"GET",originMethod:o,path:a,contentType:n,acceptType:i,params:r,overrides:{...t.clientConfig,...s}},t,e.type)}async function q(e){let{aptosConfig:t}=e;return p({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function A(e){let{aptosConfig:t}=e;return f({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function C(e){return p({...e,type:"Pepper"})}async function h(e){let t=new Array(0),s,r=e.params;do{let n=await p({type:"Fullnode",aptosConfig:e.aptosConfig,originMethod:e.originMethod,path:e.path,params:r,overrides:e.overrides});s=n.headers["x-aptos-cursor"],delete n.headers,t.push(...n.data),r.start=s}while(s!=null);return t}async function x(e){let t=new Array(0),s,r=e.params,n=r.limit;do{let{response:i,cursor:a}=await g({...e});if(s=a,t.push(...i.data),e?.params&&(e.params.start=s),n!==void 0){let o=n-t.length;if(o<=0)break;r.limit=o}}while(s!=null);return t}async function g(e){let t,s={};typeof e.params?.cursor=="string"&&(s.start=e.params.cursor),typeof e.params?.limit=="number"&&(s.limit=e.params.limit);let r=await p({type:"Fullnode",aptosConfig:e.aptosConfig,originMethod:e.originMethod,path:e.path,params:s,overrides:e.overrides});return t=r.headers["x-aptos-cursor"],{response:r,cursor:t}}export{p as a,f as b,q as c,A as d,C as e,h as f,x as g,g as h};
2
+ //# sourceMappingURL=chunk-YVRPD7Z6.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/client/get.ts"],"sourcesContent":["import { AptosConfig } from \"../api/aptosConfig\";\nimport { aptosBinaryRequest, aptosRequest } from \"./core\";\nimport { AptosResponse, AnyNumber, ClientConfig, MimeType } from \"../types\";\nimport { AptosApiType } from \"../utils/const\";\n\n/**\n * Options for making a GET request, including configuration for the API client.\n * @group Implementation\n * @category Client\n */\nexport type GetRequestOptions = {\n /**\n * The config for the API client\n * @group Implementation\n * @category Client\n */\n aptosConfig: AptosConfig;\n /**\n * The type of API endpoint to call e.g. fullnode, indexer, etc\n * @group Implementation\n * @category Client\n */\n type: AptosApiType;\n /**\n * The name of the API method\n * @group Implementation\n * @category Client\n */\n originMethod: string;\n /**\n * The URL path to the API method\n * @group Implementation\n * @category Client\n */\n path: string;\n /**\n * The content type of the request body\n * @group Implementation\n * @category Client\n */\n contentType?: MimeType;\n /**\n * The accepted content type of the response of the API\n * @group Implementation\n * @category Client\n */\n acceptType?: MimeType;\n /**\n * The query parameters for the request\n * @group Implementation\n * @category Client\n */\n params?: Record<string, string | AnyNumber | boolean | undefined>;\n /**\n * Specific client overrides for this request to override aptosConfig\n * @group Implementation\n * @category Client\n */\n overrides?: ClientConfig;\n};\n\n/**\n * Options for making a request to the Aptos API, excluding the \"type\" field.\n * @group Implementation\n * @category Client\n */\nexport type GetAptosRequestOptions = Omit<GetRequestOptions, \"type\">;\n\n/**\n * Executes a GET request to retrieve data based on the provided options.\n *\n * @param options - The options for the GET request.\n * @param options.aptosConfig - The configuration object for Aptos requests.\n * @param options.overrides - Optional overrides for the request configuration.\n * @param options.params - Query parameters to include in the request.\n * @param options.contentType - The content type of the request.\n * @param options.acceptType - The accepted response type.\n * @param options.path - The specific path for the request.\n * @param options.originMethod - The original method of the request.\n * @param options.type - The type of request being made.\n * @returns The response from the GET request.\n * @group Implementation\n * @category Client\n */\nexport async function get<Req extends {}, Res extends {}>(\n options: GetRequestOptions,\n): Promise<AptosResponse<Req, Res>> {\n const { aptosConfig, overrides, params, contentType, acceptType, path, originMethod, type } = options;\n const url = aptosConfig.getRequestUrl(type);\n\n return aptosRequest<Req, Res>(\n {\n url,\n method: \"GET\",\n originMethod,\n path,\n contentType,\n acceptType,\n params,\n overrides: {\n ...aptosConfig.clientConfig,\n ...overrides,\n },\n },\n aptosConfig,\n options.type,\n );\n}\n\n/**\n * Executes a GET request to retrieve data based on the provided options.\n *\n * @param options - The options for the GET request.\n * @param options.aptosConfig - The configuration object for Aptos requests.\n * @param options.overrides - Optional overrides for the request configuration.\n * @param options.params - Query parameters to include in the request.\n * @param options.contentType - The content type of the request.\n * @param options.acceptType - The accepted response type.\n * @param options.path - The specific path for the request.\n * @param options.originMethod - The original method of the request.\n * @param options.type - The type of request being made.\n * @returns The response from the GET request.\n * @group Implementation\n * @category Client\n * @experimental\n */\nexport async function getBinary<Req extends {}>(options: GetRequestOptions): Promise<AptosResponse<Req, Buffer>> {\n const { aptosConfig, overrides, params, contentType, acceptType, path, originMethod, type } = options;\n const url = aptosConfig.getRequestUrl(type);\n\n return aptosBinaryRequest<Req>(\n {\n url,\n method: \"GET\",\n originMethod,\n path,\n contentType,\n acceptType,\n params,\n overrides: {\n ...aptosConfig.clientConfig,\n ...overrides,\n },\n },\n aptosConfig,\n options.type,\n );\n}\n\n/**\n * Retrieves data from the Aptos full node using the provided options.\n *\n * @param options - The options for the request to the Aptos full node.\n * @param options.aptosConfig - Configuration settings specific to the Aptos client and full node.\n * @param options.aptosConfig.clientConfig - The client configuration settings.\n * @param options.aptosConfig.fullnodeConfig - The full node configuration settings.\n * @param options.overrides - Additional overrides for the request.\n * @param options.type - The type of API request being made.\n *\n * @returns A promise that resolves with the response from the Aptos full node.\n * @group Implementation\n * @category Client\n */\nexport async function getAptosFullNode<Req extends {}, Res extends {}>(\n options: GetAptosRequestOptions,\n): Promise<AptosResponse<Req, Res>> {\n const { aptosConfig } = options;\n\n return get<Req, Res>({\n ...options,\n type: AptosApiType.FULLNODE,\n overrides: {\n ...aptosConfig.clientConfig,\n ...aptosConfig.fullnodeConfig,\n ...options.overrides,\n HEADERS: { ...aptosConfig.clientConfig?.HEADERS, ...aptosConfig.fullnodeConfig?.HEADERS },\n },\n });\n}\n\n/**\n * Retrieves data from the Aptos full node using the provided options.\n *\n * @param options - The options for the request to the Aptos full node.\n * @param options.aptosConfig - Configuration settings specific to the Aptos client and full node.\n * @param options.aptosConfig.clientConfig - The client configuration settings.\n * @param options.aptosConfig.fullnodeConfig - The full node configuration settings.\n * @param options.overrides - Additional overrides for the request.\n * @param options.type - The type of API request being made.\n *\n * @returns A promise that resolves with the response from the Aptos full node.\n * @group Implementation\n * @category Client\n * @experimental\n */\nexport async function getBinaryAptosFullNode<Req extends {}>(\n options: GetAptosRequestOptions,\n): Promise<AptosResponse<Req, Buffer>> {\n const { aptosConfig } = options;\n\n return getBinary<Req>({\n ...options,\n type: AptosApiType.FULLNODE,\n overrides: {\n ...aptosConfig.clientConfig,\n ...aptosConfig.fullnodeConfig,\n ...options.overrides,\n HEADERS: { ...aptosConfig.clientConfig?.HEADERS, ...aptosConfig.fullnodeConfig?.HEADERS },\n },\n });\n}\n\n/**\n * Makes a GET request to the Aptos Pepper service to retrieve data.\n *\n * @param options - The options for the request.\n * @param options.param1 - Description of param1.\n * @param options.param2 - Description of param2.\n * @returns AptosResponse - The response from the Aptos Pepper service.\n * @group Implementation\n * @category Client\n */\nexport async function getAptosPepperService<Req extends {}, Res extends {}>(\n options: GetAptosRequestOptions,\n): Promise<AptosResponse<Req, Res>> {\n return get<Req, Res>({ ...options, type: AptosApiType.PEPPER });\n}\n\n/**\n * This function is a helper for paginating using a function wrapping an API\n * @group Implementation\n * @category Client\n */\nexport async function paginateWithCursor<Req extends Record<string, any>, Res extends Array<{}>>(\n options: GetAptosRequestOptions,\n): Promise<Res> {\n const out: any[] = [];\n let cursor: string | undefined;\n const requestParams = options.params as { start?: string; limit?: number };\n do {\n // eslint-disable-next-line no-await-in-loop\n const response = await get<Req, Res>({\n type: AptosApiType.FULLNODE,\n aptosConfig: options.aptosConfig,\n originMethod: options.originMethod,\n path: options.path,\n params: requestParams,\n overrides: options.overrides,\n });\n /**\n * the cursor is a \"state key\" from the API perspective. Client\n * should not need to \"care\" what it represents but just use it\n * to query the next chunk of data.\n * @group Implementation\n * @category Client\n */\n cursor = response.headers[\"x-aptos-cursor\"];\n // Now that we have the cursor (if any), we remove the headers before\n // adding these to the output of this function.\n delete response.headers;\n out.push(...response.data);\n requestParams.start = cursor;\n } while (cursor !== null && cursor !== undefined);\n return out as Res;\n}\n\n/// This function is a helper for paginating using a function wrapping an API using offset instead of start\nexport async function paginateWithObfuscatedCursor<Req extends Record<string, any>, Res extends Array<{}>>(\n options: GetAptosRequestOptions,\n): Promise<Res> {\n const out: any[] = [];\n let cursor: string | undefined;\n const requestParams = options.params as { offset?: string; limit?: number };\n const totalLimit = requestParams.limit;\n do {\n // eslint-disable-next-line no-await-in-loop\n const response = await get<Req, Res>({\n type: AptosApiType.FULLNODE,\n aptosConfig: options.aptosConfig,\n originMethod: options.originMethod,\n path: options.path,\n params: requestParams,\n overrides: options.overrides,\n });\n /**\n * the cursor is a \"state key\" from the API perspective. Client\n * should not need to \"care\" what it represents but just use it\n * to query the next chunk of data.\n */\n cursor = response.headers[\"x-aptos-cursor\"];\n // Now that we have the cursor (if any), we remove the headers before\n // adding these to the output of this function.\n delete response.headers;\n out.push(...response.data);\n requestParams.offset = cursor;\n\n // Re-evaluate length\n if (totalLimit !== undefined) {\n const newLimit = totalLimit - out.length;\n if (newLimit <= 0) {\n break;\n }\n requestParams.limit = newLimit;\n }\n } while (cursor !== null && cursor !== undefined);\n return out as Res;\n}\n"],"mappings":"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","names":["get","options","aptosConfig","overrides","params","contentType","acceptType","path","originMethod","type","url","aptosRequest","getBinary","aptosBinaryRequest","getAptosFullNode","getBinaryAptosFullNode","getAptosPepperService","paginateWithCursor","out","cursor","requestParams","response","paginateWithObfuscatedCursor","totalLimit","newLimit"]}
1
+ {"version":3,"sources":["../../src/client/get.ts"],"sourcesContent":["import { AptosConfig } from \"../api/aptosConfig\";\nimport { aptosBinaryRequest, aptosRequest } from \"./core\";\nimport { AptosResponse, AnyNumber, ClientConfig, MimeType } from \"../types\";\nimport { AptosApiType } from \"../utils/const\";\n\n/**\n * Options for making a GET request, including configuration for the API client.\n * @group Implementation\n * @category Client\n */\nexport type GetRequestOptions = {\n /**\n * The config for the API client\n * @group Implementation\n * @category Client\n */\n aptosConfig: AptosConfig;\n /**\n * The type of API endpoint to call e.g. fullnode, indexer, etc\n * @group Implementation\n * @category Client\n */\n type: AptosApiType;\n /**\n * The name of the API method\n * @group Implementation\n * @category Client\n */\n originMethod: string;\n /**\n * The URL path to the API method\n * @group Implementation\n * @category Client\n */\n path: string;\n /**\n * The content type of the request body\n * @group Implementation\n * @category Client\n */\n contentType?: MimeType;\n /**\n * The accepted content type of the response of the API\n * @group Implementation\n * @category Client\n */\n acceptType?: MimeType;\n /**\n * The query parameters for the request\n * @group Implementation\n * @category Client\n */\n params?: Record<string, string | AnyNumber | boolean | undefined>;\n /**\n * Specific client overrides for this request to override aptosConfig\n * @group Implementation\n * @category Client\n */\n overrides?: ClientConfig;\n};\n\n/**\n * Options for making a request to the Aptos API, excluding the \"type\" field.\n * @group Implementation\n * @category Client\n */\nexport type GetAptosRequestOptions = Omit<GetRequestOptions, \"type\">;\n\n/**\n * Executes a GET request to retrieve data based on the provided options.\n *\n * @param options - The options for the GET request.\n * @param options.aptosConfig - The configuration object for Aptos requests.\n * @param options.overrides - Optional overrides for the request configuration.\n * @param options.params - Query parameters to include in the request.\n * @param options.contentType - The content type of the request.\n * @param options.acceptType - The accepted response type.\n * @param options.path - The specific path for the request.\n * @param options.originMethod - The original method of the request.\n * @param options.type - The type of request being made.\n * @returns The response from the GET request.\n * @group Implementation\n * @category Client\n */\nexport async function get<Req extends {}, Res extends {}>(\n options: GetRequestOptions,\n): Promise<AptosResponse<Req, Res>> {\n const { aptosConfig, overrides, params, contentType, acceptType, path, originMethod, type } = options;\n const url = aptosConfig.getRequestUrl(type);\n\n return aptosRequest<Req, Res>(\n {\n url,\n method: \"GET\",\n originMethod,\n path,\n contentType,\n acceptType,\n params,\n overrides: {\n ...aptosConfig.clientConfig,\n ...overrides,\n },\n },\n aptosConfig,\n options.type,\n );\n}\n\n/**\n * Executes a GET request to retrieve data based on the provided options.\n *\n * @param options - The options for the GET request.\n * @param options.aptosConfig - The configuration object for Aptos requests.\n * @param options.overrides - Optional overrides for the request configuration.\n * @param options.params - Query parameters to include in the request.\n * @param options.contentType - The content type of the request.\n * @param options.acceptType - The accepted response type.\n * @param options.path - The specific path for the request.\n * @param options.originMethod - The original method of the request.\n * @param options.type - The type of request being made.\n * @returns The response from the GET request.\n * @group Implementation\n * @category Client\n * @experimental\n */\nexport async function getBinary<Req extends {}>(options: GetRequestOptions): Promise<AptosResponse<Req, Buffer>> {\n const { aptosConfig, overrides, params, contentType, acceptType, path, originMethod, type } = options;\n const url = aptosConfig.getRequestUrl(type);\n\n return aptosBinaryRequest<Req>(\n {\n url,\n method: \"GET\",\n originMethod,\n path,\n contentType,\n acceptType,\n params,\n overrides: {\n ...aptosConfig.clientConfig,\n ...overrides,\n },\n },\n aptosConfig,\n options.type,\n );\n}\n\n/**\n * Retrieves data from the Aptos full node using the provided options.\n *\n * @param options - The options for the request to the Aptos full node.\n * @param options.aptosConfig - Configuration settings specific to the Aptos client and full node.\n * @param options.aptosConfig.clientConfig - The client configuration settings.\n * @param options.aptosConfig.fullnodeConfig - The full node configuration settings.\n * @param options.overrides - Additional overrides for the request.\n * @param options.type - The type of API request being made.\n *\n * @returns A promise that resolves with the response from the Aptos full node.\n * @group Implementation\n * @category Client\n */\nexport async function getAptosFullNode<Req extends {}, Res extends {}>(\n options: GetAptosRequestOptions,\n): Promise<AptosResponse<Req, Res>> {\n const { aptosConfig } = options;\n\n return get<Req, Res>({\n ...options,\n type: AptosApiType.FULLNODE,\n overrides: {\n ...aptosConfig.clientConfig,\n ...aptosConfig.fullnodeConfig,\n ...options.overrides,\n HEADERS: { ...aptosConfig.clientConfig?.HEADERS, ...aptosConfig.fullnodeConfig?.HEADERS },\n },\n });\n}\n\n/**\n * Retrieves data from the Aptos full node using the provided options.\n *\n * @param options - The options for the request to the Aptos full node.\n * @param options.aptosConfig - Configuration settings specific to the Aptos client and full node.\n * @param options.aptosConfig.clientConfig - The client configuration settings.\n * @param options.aptosConfig.fullnodeConfig - The full node configuration settings.\n * @param options.overrides - Additional overrides for the request.\n * @param options.type - The type of API request being made.\n *\n * @returns A promise that resolves with the response from the Aptos full node.\n * @group Implementation\n * @category Client\n * @experimental\n */\nexport async function getBinaryAptosFullNode<Req extends {}>(\n options: GetAptosRequestOptions,\n): Promise<AptosResponse<Req, Buffer>> {\n const { aptosConfig } = options;\n\n return getBinary<Req>({\n ...options,\n type: AptosApiType.FULLNODE,\n overrides: {\n ...aptosConfig.clientConfig,\n ...aptosConfig.fullnodeConfig,\n ...options.overrides,\n HEADERS: { ...aptosConfig.clientConfig?.HEADERS, ...aptosConfig.fullnodeConfig?.HEADERS },\n },\n });\n}\n\n/**\n * Makes a GET request to the Aptos Pepper service to retrieve data.\n *\n * @param options - The options for the request.\n * @param options.param1 - Description of param1.\n * @param options.param2 - Description of param2.\n * @returns AptosResponse - The response from the Aptos Pepper service.\n * @group Implementation\n * @category Client\n */\nexport async function getAptosPepperService<Req extends {}, Res extends {}>(\n options: GetAptosRequestOptions,\n): Promise<AptosResponse<Req, Res>> {\n return get<Req, Res>({ ...options, type: AptosApiType.PEPPER });\n}\n\n/**\n * This function is a helper for paginating using a function wrapping an API\n * @group Implementation\n * @category Client\n */\nexport async function paginateWithCursor<Req extends Record<string, any>, Res extends Array<{}>>(\n options: GetAptosRequestOptions,\n): Promise<Res> {\n const out: Res = new Array(0) as Res;\n let cursor: string | undefined;\n const requestParams = options.params as { start?: string; limit?: number };\n do {\n // eslint-disable-next-line no-await-in-loop\n const response = await get<Req, Res>({\n type: AptosApiType.FULLNODE,\n aptosConfig: options.aptosConfig,\n originMethod: options.originMethod,\n path: options.path,\n params: requestParams,\n overrides: options.overrides,\n });\n /**\n * the cursor is a \"state key\" from the API perspective. Client\n * should not need to \"care\" what it represents but just use it\n * to query the next chunk of data.\n * @group Implementation\n * @category Client\n */\n cursor = response.headers[\"x-aptos-cursor\"];\n // Now that we have the cursor (if any), we remove the headers before\n // adding these to the output of this function.\n delete response.headers;\n out.push(...response.data);\n requestParams.start = cursor;\n } while (cursor !== null && cursor !== undefined);\n return out;\n}\n\n/// This function is a helper for paginating using a function wrapping an API using offset instead of start\nexport async function paginateWithObfuscatedCursor<Req extends Record<string, any>, Res extends Array<{}>>(\n options: GetAptosRequestOptions,\n): Promise<Res> {\n const out: Res = new Array(0) as Res;\n let cursor: string | undefined;\n const requestParams = options.params as { start?: string; limit?: number };\n const totalLimit = requestParams.limit;\n do {\n // eslint-disable-next-line no-await-in-loop\n const { response, cursor: newCursor } = await getPageWithObfuscatedCursor<Req, Res>({ ...options });\n\n /**\n * the cursor is a \"state key\" from the API perspective. Client\n * should not need to \"care\" what it represents but just use it\n * to query the next chunk of data.\n */\n cursor = newCursor;\n out.push(...response.data);\n if (options?.params) {\n options.params.start = cursor;\n }\n\n // Re-evaluate length\n if (totalLimit !== undefined) {\n const newLimit = totalLimit - out.length;\n if (newLimit <= 0) {\n break;\n }\n requestParams.limit = newLimit;\n }\n } while (cursor !== null && cursor !== undefined);\n return out;\n}\n\nexport async function getPageWithObfuscatedCursor<Req extends Record<string, any>, Res extends Array<{}>>(\n options: GetAptosRequestOptions,\n): Promise<{ response: AptosResponse<Req, Res>; cursor: string | undefined }> {\n let cursor: string | undefined;\n let requestParams: { start?: string; limit?: number } = {};\n\n // Drop any other values\n // TODO: Throw error if cursor is not a string\n if (typeof options.params?.cursor === \"string\") {\n requestParams.start = options.params.cursor;\n }\n if (typeof options.params?.limit === \"number\") {\n requestParams.limit = options.params.limit;\n }\n\n // eslint-disable-next-line no-await-in-loop\n const response = await get<Req, Res>({\n type: AptosApiType.FULLNODE,\n aptosConfig: options.aptosConfig,\n originMethod: options.originMethod,\n path: options.path,\n params: requestParams,\n overrides: options.overrides,\n });\n\n /**\n * the cursor is a \"state key\" from the API perspective. Client\n * should not need to \"care\" what it represents but just use it\n * to query the next chunk of data.\n */\n cursor = response.headers[\"x-aptos-cursor\"];\n return { response, cursor };\n}\n"],"mappings":"gDAoFA,eAAsBA,EACpBC,EACkC,CAClC,GAAM,CAAE,YAAAC,EAAa,UAAAC,EAAW,OAAAC,EAAQ,YAAAC,EAAa,WAAAC,EAAY,KAAAC,EAAM,aAAAC,EAAc,KAAAC,CAAK,EAAIR,EACxFS,EAAMR,EAAY,cAAcO,CAAI,EAE1C,OAAOE,EACL,CACE,IAAAD,EACA,OAAQ,MACR,aAAAF,EACA,KAAAD,EACA,YAAAF,EACA,WAAAC,EACA,OAAAF,EACA,UAAW,CACT,GAAGF,EAAY,aACf,GAAGC,CACL,CACF,EACAD,EACAD,EAAQ,IACV,CACF,CAmBA,eAAsBW,EAA0BX,EAAiE,CAC/G,GAAM,CAAE,YAAAC,EAAa,UAAAC,EAAW,OAAAC,EAAQ,YAAAC,EAAa,WAAAC,EAAY,KAAAC,EAAM,aAAAC,EAAc,KAAAC,CAAK,EAAIR,EACxFS,EAAMR,EAAY,cAAcO,CAAI,EAE1C,OAAOI,EACL,CACE,IAAAH,EACA,OAAQ,MACR,aAAAF,EACA,KAAAD,EACA,YAAAF,EACA,WAAAC,EACA,OAAAF,EACA,UAAW,CACT,GAAGF,EAAY,aACf,GAAGC,CACL,CACF,EACAD,EACAD,EAAQ,IACV,CACF,CAgBA,eAAsBa,EACpBb,EACkC,CAClC,GAAM,CAAE,YAAAC,CAAY,EAAID,EAExB,OAAOD,EAAc,CACnB,GAAGC,EACH,gBACA,UAAW,CACT,GAAGC,EAAY,aACf,GAAGA,EAAY,eACf,GAAGD,EAAQ,UACX,QAAS,CAAE,GAAGC,EAAY,cAAc,QAAS,GAAGA,EAAY,gBAAgB,OAAQ,CAC1F,CACF,CAAC,CACH,CAiBA,eAAsBa,EACpBd,EACqC,CACrC,GAAM,CAAE,YAAAC,CAAY,EAAID,EAExB,OAAOW,EAAe,CACpB,GAAGX,EACH,gBACA,UAAW,CACT,GAAGC,EAAY,aACf,GAAGA,EAAY,eACf,GAAGD,EAAQ,UACX,QAAS,CAAE,GAAGC,EAAY,cAAc,QAAS,GAAGA,EAAY,gBAAgB,OAAQ,CAC1F,CACF,CAAC,CACH,CAYA,eAAsBc,EACpBf,EACkC,CAClC,OAAOD,EAAc,CAAE,GAAGC,EAAS,aAA0B,CAAC,CAChE,CAOA,eAAsBgB,EACpBhB,EACc,CACd,IAAMiB,EAAW,IAAI,MAAM,CAAC,EACxBC,EACEC,EAAgBnB,EAAQ,OAC9B,EAAG,CAED,IAAMoB,EAAW,MAAMrB,EAAc,CACnC,gBACA,YAAaC,EAAQ,YACrB,aAAcA,EAAQ,aACtB,KAAMA,EAAQ,KACd,OAAQmB,EACR,UAAWnB,EAAQ,SACrB,CAAC,EAQDkB,EAASE,EAAS,QAAQ,gBAAgB,EAG1C,OAAOA,EAAS,QAChBH,EAAI,KAAK,GAAGG,EAAS,IAAI,EACzBD,EAAc,MAAQD,CACxB,OAASA,GAAW,MACpB,OAAOD,CACT,CAGA,eAAsBI,EACpBrB,EACc,CACd,IAAMiB,EAAW,IAAI,MAAM,CAAC,EACxBC,EACEC,EAAgBnB,EAAQ,OACxBsB,EAAaH,EAAc,MACjC,EAAG,CAED,GAAM,CAAE,SAAAC,EAAU,OAAQG,CAAU,EAAI,MAAMC,EAAsC,CAAE,GAAGxB,CAAQ,CAAC,EAclG,GAPAkB,EAASK,EACTN,EAAI,KAAK,GAAGG,EAAS,IAAI,EACrBpB,GAAS,SACXA,EAAQ,OAAO,MAAQkB,GAIrBI,IAAe,OAAW,CAC5B,IAAMG,EAAWH,EAAaL,EAAI,OAClC,GAAIQ,GAAY,EACd,MAEFN,EAAc,MAAQM,CACxB,CACF,OAASP,GAAW,MACpB,OAAOD,CACT,CAEA,eAAsBO,EACpBxB,EAC4E,CAC5E,IAAIkB,EACAC,EAAoD,CAAC,EAIrD,OAAOnB,EAAQ,QAAQ,QAAW,WACpCmB,EAAc,MAAQnB,EAAQ,OAAO,QAEnC,OAAOA,EAAQ,QAAQ,OAAU,WACnCmB,EAAc,MAAQnB,EAAQ,OAAO,OAIvC,IAAMoB,EAAW,MAAMrB,EAAc,CACnC,gBACA,YAAaC,EAAQ,YACrB,aAAcA,EAAQ,aACtB,KAAMA,EAAQ,KACd,OAAQmB,EACR,UAAWnB,EAAQ,SACrB,CAAC,EAOD,OAAAkB,EAASE,EAAS,QAAQ,gBAAgB,EACnC,CAAE,SAAAA,EAAU,OAAAF,CAAO,CAC5B","names":["get","options","aptosConfig","overrides","params","contentType","acceptType","path","originMethod","type","url","aptosRequest","getBinary","aptosBinaryRequest","getAptosFullNode","getBinaryAptosFullNode","getAptosPepperService","paginateWithCursor","out","cursor","requestParams","response","paginateWithObfuscatedCursor","totalLimit","newCursor","getPageWithObfuscatedCursor","newLimit"]}
@@ -0,0 +1,7 @@
1
+ import{b as a}from"./chunk-DC5IVW4W.mjs";var l=(t=>(t[t.API_ERROR=0]="API_ERROR",t[t.EXTERNAL_API_ERROR=1]="EXTERNAL_API_ERROR",t[t.SESSION_EXPIRED=2]="SESSION_EXPIRED",t[t.INVALID_STATE=3]="INVALID_STATE",t[t.INVALID_SIGNATURE=4]="INVALID_SIGNATURE",t[t.UNKNOWN=5]="UNKNOWN",t))(l||{}),O=(s=>(s.REAUTHENTICATE="Re-authentiate to continue using your keyless account",s.REAUTHENTICATE_UNSURE="Try re-authentiating. If the error persists join the telegram group at https://t.me/+h5CN-W35yUFiYzkx for further support",s.UPDATE_REQUEST_PARAMS="Update the invalid request parameters and reauthenticate.",s.RATE_LIMIT_EXCEEDED="Cache the keyless account and reuse it to avoid making too many requests. Keyless accounts are valid until either the EphemeralKeyPair expires, when the JWK is rotated, or when the proof verifying key is changed, whichever comes soonest.",s.SERVER_ERROR="Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx",s.CALL_PRECHECK="Call `await account.checkKeylessAccountValidity()` to wait for asyncronous changes and check for account validity before signing or serializing.",s.REINSTANTIATE="Try instantiating the account again. Avoid manipulating the account object directly",s.JOIN_SUPPORT_GROUP="For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx",s.UNKNOWN="Error unknown. For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx",s))(O||{}),u=(e=>(e[e.EPHEMERAL_KEY_PAIR_EXPIRED=0]="EPHEMERAL_KEY_PAIR_EXPIRED",e[e.PROOF_NOT_FOUND=1]="PROOF_NOT_FOUND",e[e.ASYNC_PROOF_FETCH_FAILED=2]="ASYNC_PROOF_FETCH_FAILED",e[e.INVALID_PROOF_VERIFICATION_FAILED=3]="INVALID_PROOF_VERIFICATION_FAILED",e[e.INVALID_PROOF_VERIFICATION_KEY_NOT_FOUND=4]="INVALID_PROOF_VERIFICATION_KEY_NOT_FOUND",e[e.INVALID_JWT_SIG=5]="INVALID_JWT_SIG",e[e.INVALID_JWT_JWK_NOT_FOUND=6]="INVALID_JWT_JWK_NOT_FOUND",e[e.INVALID_JWT_ISS_NOT_RECOGNIZED=7]="INVALID_JWT_ISS_NOT_RECOGNIZED",e[e.INVALID_JWT_FEDERATED_ISS_NOT_SUPPORTED=8]="INVALID_JWT_FEDERATED_ISS_NOT_SUPPORTED",e[e.INVALID_TW_SIG_VERIFICATION_FAILED=9]="INVALID_TW_SIG_VERIFICATION_FAILED",e[e.INVALID_TW_SIG_PUBLIC_KEY_NOT_FOUND=10]="INVALID_TW_SIG_PUBLIC_KEY_NOT_FOUND",e[e.INVALID_EXPIRY_HORIZON=11]="INVALID_EXPIRY_HORIZON",e[e.JWT_PARSING_ERROR=12]="JWT_PARSING_ERROR",e[e.JWK_FETCH_FAILED=13]="JWK_FETCH_FAILED",e[e.JWK_FETCH_FAILED_FEDERATED=14]="JWK_FETCH_FAILED_FEDERATED",e[e.RATE_LIMIT_EXCEEDED=15]="RATE_LIMIT_EXCEEDED",e[e.PEPPER_SERVICE_INTERNAL_ERROR=16]="PEPPER_SERVICE_INTERNAL_ERROR",e[e.PEPPER_SERVICE_BAD_REQUEST=17]="PEPPER_SERVICE_BAD_REQUEST",e[e.PEPPER_SERVICE_OTHER=18]="PEPPER_SERVICE_OTHER",e[e.PROVER_SERVICE_INTERNAL_ERROR=19]="PROVER_SERVICE_INTERNAL_ERROR",e[e.PROVER_SERVICE_BAD_REQUEST=20]="PROVER_SERVICE_BAD_REQUEST",e[e.PROVER_SERVICE_OTHER=21]="PROVER_SERVICE_OTHER",e[e.FULL_NODE_CONFIG_LOOKUP_ERROR=22]="FULL_NODE_CONFIG_LOOKUP_ERROR",e[e.FULL_NODE_VERIFICATION_KEY_LOOKUP_ERROR=23]="FULL_NODE_VERIFICATION_KEY_LOOKUP_ERROR",e[e.FULL_NODE_JWKS_LOOKUP_ERROR=24]="FULL_NODE_JWKS_LOOKUP_ERROR",e[e.FULL_NODE_OTHER=25]="FULL_NODE_OTHER",e[e.SIGNATURE_TYPE_INVALID=26]="SIGNATURE_TYPE_INVALID",e[e.SIGNATURE_EXPIRED=27]="SIGNATURE_EXPIRED",e[e.MAX_EXPIRY_HORIZON_EXCEEDED=28]="MAX_EXPIRY_HORIZON_EXCEEDED",e[e.EPHEMERAL_SIGNATURE_VERIFICATION_FAILED=29]="EPHEMERAL_SIGNATURE_VERIFICATION_FAILED",e[e.TRAINING_WHEELS_SIGNATURE_MISSING=30]="TRAINING_WHEELS_SIGNATURE_MISSING",e[e.TRAINING_WHEELS_SIGNATURE_VERIFICATION_FAILED=31]="TRAINING_WHEELS_SIGNATURE_VERIFICATION_FAILED",e[e.PROOF_VERIFICATION_FAILED=32]="PROOF_VERIFICATION_FAILED",e[e.UNKNOWN=33]="UNKNOWN",e))(u||{}),A={0:["The ephemeral keypair has expired.",2,"Re-authentiate to continue using your keyless account"],1:["The required proof could not be found.",3,"Call `await account.checkKeylessAccountValidity()` to wait for asyncronous changes and check for account validity before signing or serializing."],2:["The required proof failed to fetch.",3,"Try re-authentiating. If the error persists join the telegram group at https://t.me/+h5CN-W35yUFiYzkx for further support"],3:["The provided proof is invalid.",3,"Try re-authentiating. If the error persists join the telegram group at https://t.me/+h5CN-W35yUFiYzkx for further support"],4:["The verification key used to authenticate was updated.",2,"Re-authentiate to continue using your keyless account"],5:["The JWK was found, but JWT failed verification",3,"Try re-authentiating. If the error persists join the telegram group at https://t.me/+h5CN-W35yUFiYzkx for further support"],6:["The JWK required to verify the JWT could not be found. The JWK may have been rotated out.",2,"Re-authentiate to continue using your keyless account"],7:["The JWT issuer is not recognized.",3,"Update the invalid request parameters and reauthenticate."],8:["The JWT issuer is not supported by the Federated Keyless ",0,"Try re-authentiating. If the error persists join the telegram group at https://t.me/+h5CN-W35yUFiYzkx for further support"],9:["The training wheels signature is invalid.",3,"Try re-authentiating. If the error persists join the telegram group at https://t.me/+h5CN-W35yUFiYzkx for further support"],10:["The public key used to verify the training wheels signature was not found.",2,"Re-authentiate to continue using your keyless account"],11:["The expiry horizon is invalid.",2,"Re-authentiate to continue using your keyless account"],13:["Failed to fetch JWKS.",1,"For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"],14:["Failed to fetch JWKS for Federated Keyless provider.",1,"For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"],15:["Rate limit exceeded. Too many requests in a short period.",0,"Cache the keyless account and reuse it to avoid making too many requests. Keyless accounts are valid until either the EphemeralKeyPair expires, when the JWK is rotated, or when the proof verifying key is changed, whichever comes soonest."],16:["Internal error from Pepper service.",0,"Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"],17:["Bad request sent to Pepper service.",0,"Update the invalid request parameters and reauthenticate."],18:["Unknown error from Pepper service.",0,"Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"],19:["Internal error from Prover service.",0,"Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"],20:["Bad request sent to Prover service.",0,"Update the invalid request parameters and reauthenticate."],21:["Unknown error from Prover service.",0,"Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"],12:["Error when parsing JWT. This should never happen. Join https://t.me/+h5CN-W35yUFiYzkx for support",3,"Try instantiating the account again. Avoid manipulating the account object directly"],22:["Error when looking up on-chain keyless configuration.",0,"Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"],23:["Error when looking up on-chain verification key.",0,"Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"],24:["Error when looking up on-chain JWKS.",0,"Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"],25:["Unknown error from full node.",0,"Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"],26:["The signature is not a valid Keyless signature.",4,"For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"],27:["The ephemeral key pair used to sign the message has expired.",4,"Re-authentiate to continue using your keyless account"],28:["The expiry horizon on the signature exceeds the maximum allowed value.",4,"Re-authentiate to continue using your keyless account"],29:["Failed to verify the ephemeral signature with the ephemeral public key.",4,"Re-authentiate to continue using your keyless account"],30:["The training wheels signature is missing but is required by the Keyless configuration.",4,"Re-authentiate to continue using your keyless account"],31:["Failed to verify the training wheels signature with the training wheels public key.",4,"Re-authentiate to continue using your keyless account"],32:["The proof verification failed.",4,"Re-authentiate to continue using your keyless account"],33:["An unknown error has occurred.",5,"Error unknown. For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx"]},N=class _ extends Error{constructor(o){let{innerError:r,category:E,resolutionTip:i,type:R,message:t=A[R][0],details:I}=o;super(t),this.name="KeylessError",this.innerError=r,this.category=E,this.resolutionTip=i,this.type=R,this.details=I,this.message=_.constructMessage(t,i,r,I)}static constructMessage(o,r,E,i){let R=`
2
+ Message: ${o}`;return i&&(R+=`
3
+ Details: ${i}`),E instanceof T?R+=`
4
+ AptosApiError: ${E.message}`:E!==void 0&&(R+=`
5
+ Error: ${a(E)}`),R+=`
6
+ KeylessErrorResolutionTip: ${r}`,R}static fromErrorType(o){let{error:r,type:E,details:i}=o,[R,t,I]=A[E];return new _({message:R,details:i,innerError:r,category:t,resolutionTip:I,type:E})}},T=class extends Error{constructor({apiType:o,aptosRequest:r,aptosResponse:E}){super(S({apiType:o,aptosRequest:r,aptosResponse:E})),this.name="AptosApiError",this.url=E.url,this.status=E.status,this.statusText=E.statusText,this.data=E.data,this.request=r}};function S({apiType:_,aptosRequest:o,aptosResponse:r}){let E=r.headers?.traceparent?.split("-")[1],i=E?`(trace_id:${E}) `:"",R=`Request to [${_}]: ${o.method} ${r.url??o.url} ${i}failed with`;return _==="Indexer"&&r.data?.errors?.[0]?.message!=null?`${R}: ${r.data.errors[0].message}`:r.data?.message!=null&&r.data?.error_code!=null?`${R}: ${JSON.stringify(r.data)}`:`${R} status: ${r.statusText}(code:${r.status}) and response body: ${P(r.data)}`}var n=400;function P(_){let o=JSON.stringify(_);return o.length<=n?o:`truncated(original_size:${o.length}): ${o.slice(0,n/2)}...${o.slice(-n/2)}`}export{l as a,O as b,u as c,N as d,T as e};
7
+ //# sourceMappingURL=chunk-ZKOF4KST.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/errors/index.ts"],"sourcesContent":["import { AptosApiType } from \"../utils/const\";\nimport { getErrorMessage } from \"../utils/helpers\";\nimport { AptosRequest, AptosResponse } from \"../types\";\n\nexport enum KeylessErrorCategory {\n API_ERROR,\n EXTERNAL_API_ERROR,\n SESSION_EXPIRED,\n INVALID_STATE,\n INVALID_SIGNATURE,\n UNKNOWN,\n}\n\nexport enum KeylessErrorResolutionTip {\n REAUTHENTICATE = \"Re-authentiate to continue using your keyless account\",\n // eslint-disable-next-line max-len\n REAUTHENTICATE_UNSURE = \"Try re-authentiating. If the error persists join the telegram group at https://t.me/+h5CN-W35yUFiYzkx for further support\",\n UPDATE_REQUEST_PARAMS = \"Update the invalid request parameters and reauthenticate.\",\n // eslint-disable-next-line max-len\n RATE_LIMIT_EXCEEDED = \"Cache the keyless account and reuse it to avoid making too many requests. Keyless accounts are valid until either the EphemeralKeyPair expires, when the JWK is rotated, or when the proof verifying key is changed, whichever comes soonest.\",\n // eslint-disable-next-line max-len\n SERVER_ERROR = \"Try again later. See aptosApiError error for more context. For additional support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx\",\n // eslint-disable-next-line max-len\n CALL_PRECHECK = \"Call `await account.checkKeylessAccountValidity()` to wait for asyncronous changes and check for account validity before signing or serializing.\",\n REINSTANTIATE = \"Try instantiating the account again. Avoid manipulating the account object directly\",\n JOIN_SUPPORT_GROUP = \"For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx\",\n UNKNOWN = \"Error unknown. For support join the telegram group at https://t.me/+h5CN-W35yUFiYzkx\",\n}\n\nexport enum KeylessErrorType {\n EPHEMERAL_KEY_PAIR_EXPIRED,\n\n PROOF_NOT_FOUND,\n\n ASYNC_PROOF_FETCH_FAILED,\n\n INVALID_PROOF_VERIFICATION_FAILED,\n\n INVALID_PROOF_VERIFICATION_KEY_NOT_FOUND,\n\n INVALID_JWT_SIG,\n\n INVALID_JWT_JWK_NOT_FOUND,\n\n INVALID_JWT_ISS_NOT_RECOGNIZED,\n\n INVALID_JWT_FEDERATED_ISS_NOT_SUPPORTED,\n\n INVALID_TW_SIG_VERIFICATION_FAILED,\n\n INVALID_TW_SIG_PUBLIC_KEY_NOT_FOUND,\n\n INVALID_EXPIRY_HORIZON,\n\n JWT_PARSING_ERROR,\n\n JWK_FETCH_FAILED,\n\n JWK_FETCH_FAILED_FEDERATED,\n\n RATE_LIMIT_EXCEEDED,\n\n PEPPER_SERVICE_INTERNAL_ERROR,\n\n PEPPER_SERVICE_BAD_REQUEST,\n\n PEPPER_SERVICE_OTHER,\n\n PROVER_SERVICE_INTERNAL_ERROR,\n\n PROVER_SERVICE_BAD_REQUEST,\n\n PROVER_SERVICE_OTHER,\n\n FULL_NODE_CONFIG_LOOKUP_ERROR,\n\n FULL_NODE_VERIFICATION_KEY_LOOKUP_ERROR,\n\n FULL_NODE_JWKS_LOOKUP_ERROR,\n\n FULL_NODE_OTHER,\n\n SIGNATURE_TYPE_INVALID,\n\n SIGNATURE_EXPIRED,\n\n MAX_EXPIRY_HORIZON_EXCEEDED,\n\n EPHEMERAL_SIGNATURE_VERIFICATION_FAILED,\n\n TRAINING_WHEELS_SIGNATURE_MISSING,\n\n TRAINING_WHEELS_SIGNATURE_VERIFICATION_FAILED,\n\n PROOF_VERIFICATION_FAILED,\n\n UNKNOWN,\n}\n\nconst KeylessErrors: { [key in KeylessErrorType]: [string, KeylessErrorCategory, KeylessErrorResolutionTip] } = {\n [KeylessErrorType.EPHEMERAL_KEY_PAIR_EXPIRED]: [\n \"The ephemeral keypair has expired.\",\n KeylessErrorCategory.SESSION_EXPIRED,\n KeylessErrorResolutionTip.REAUTHENTICATE,\n ],\n [KeylessErrorType.PROOF_NOT_FOUND]: [\n \"The required proof could not be found.\",\n KeylessErrorCategory.INVALID_STATE,\n KeylessErrorResolutionTip.CALL_PRECHECK,\n ],\n [KeylessErrorType.ASYNC_PROOF_FETCH_FAILED]: [\n \"The required proof failed to fetch.\",\n KeylessErrorCategory.INVALID_STATE,\n KeylessErrorResolutionTip.REAUTHENTICATE_UNSURE,\n ],\n [KeylessErrorType.INVALID_PROOF_VERIFICATION_FAILED]: [\n \"The provided proof is invalid.\",\n KeylessErrorCategory.INVALID_STATE,\n KeylessErrorResolutionTip.REAUTHENTICATE_UNSURE,\n ],\n [KeylessErrorType.INVALID_PROOF_VERIFICATION_KEY_NOT_FOUND]: [\n \"The verification key used to authenticate was updated.\",\n KeylessErrorCategory.SESSION_EXPIRED,\n KeylessErrorResolutionTip.REAUTHENTICATE,\n ],\n [KeylessErrorType.INVALID_JWT_SIG]: [\n \"The JWK was found, but JWT failed verification\",\n KeylessErrorCategory.INVALID_STATE,\n KeylessErrorResolutionTip.REAUTHENTICATE_UNSURE,\n ],\n [KeylessErrorType.INVALID_JWT_JWK_NOT_FOUND]: [\n \"The JWK required to verify the JWT could not be found. The JWK may have been rotated out.\",\n KeylessErrorCategory.SESSION_EXPIRED,\n KeylessErrorResolutionTip.REAUTHENTICATE,\n ],\n [KeylessErrorType.INVALID_JWT_ISS_NOT_RECOGNIZED]: [\n \"The JWT issuer is not recognized.\",\n KeylessErrorCategory.INVALID_STATE,\n KeylessErrorResolutionTip.UPDATE_REQUEST_PARAMS,\n ],\n [KeylessErrorType.INVALID_JWT_FEDERATED_ISS_NOT_SUPPORTED]: [\n \"The JWT issuer is not supported by the Federated Keyless \",\n KeylessErrorCategory.API_ERROR,\n KeylessErrorResolutionTip.REAUTHENTICATE_UNSURE,\n ],\n [KeylessErrorType.INVALID_TW_SIG_VERIFICATION_FAILED]: [\n \"The training wheels signature is invalid.\",\n KeylessErrorCategory.INVALID_STATE,\n KeylessErrorResolutionTip.REAUTHENTICATE_UNSURE,\n ],\n [KeylessErrorType.INVALID_TW_SIG_PUBLIC_KEY_NOT_FOUND]: [\n \"The public key used to verify the training wheels signature was not found.\",\n KeylessErrorCategory.SESSION_EXPIRED,\n KeylessErrorResolutionTip.REAUTHENTICATE,\n ],\n [KeylessErrorType.INVALID_EXPIRY_HORIZON]: [\n \"The expiry horizon is invalid.\",\n KeylessErrorCategory.SESSION_EXPIRED,\n KeylessErrorResolutionTip.REAUTHENTICATE,\n ],\n [KeylessErrorType.JWK_FETCH_FAILED]: [\n \"Failed to fetch JWKS.\",\n KeylessErrorCategory.EXTERNAL_API_ERROR,\n KeylessErrorResolutionTip.JOIN_SUPPORT_GROUP,\n ],\n [KeylessErrorType.JWK_FETCH_FAILED_FEDERATED]: [\n \"Failed to fetch JWKS for Federated Keyless provider.\",\n KeylessErrorCategory.EXTERNAL_API_ERROR,\n KeylessErrorResolutionTip.JOIN_SUPPORT_GROUP,\n ],\n [KeylessErrorType.RATE_LIMIT_EXCEEDED]: [\n \"Rate limit exceeded. Too many requests in a short period.\",\n KeylessErrorCategory.API_ERROR,\n KeylessErrorResolutionTip.RATE_LIMIT_EXCEEDED,\n ],\n [KeylessErrorType.PEPPER_SERVICE_INTERNAL_ERROR]: [\n \"Internal error from Pepper service.\",\n KeylessErrorCategory.API_ERROR,\n KeylessErrorResolutionTip.SERVER_ERROR,\n ],\n [KeylessErrorType.PEPPER_SERVICE_BAD_REQUEST]: [\n \"Bad request sent to Pepper service.\",\n KeylessErrorCategory.API_ERROR,\n KeylessErrorResolutionTip.UPDATE_REQUEST_PARAMS,\n ],\n [KeylessErrorType.PEPPER_SERVICE_OTHER]: [\n \"Unknown error from Pepper service.\",\n KeylessErrorCategory.API_ERROR,\n KeylessErrorResolutionTip.SERVER_ERROR,\n ],\n [KeylessErrorType.PROVER_SERVICE_INTERNAL_ERROR]: [\n \"Internal error from Prover service.\",\n KeylessErrorCategory.API_ERROR,\n KeylessErrorResolutionTip.SERVER_ERROR,\n ],\n [KeylessErrorType.PROVER_SERVICE_BAD_REQUEST]: [\n \"Bad request sent to Prover service.\",\n KeylessErrorCategory.API_ERROR,\n KeylessErrorResolutionTip.UPDATE_REQUEST_PARAMS,\n ],\n [KeylessErrorType.PROVER_SERVICE_OTHER]: [\n \"Unknown error from Prover service.\",\n KeylessErrorCategory.API_ERROR,\n KeylessErrorResolutionTip.SERVER_ERROR,\n ],\n [KeylessErrorType.JWT_PARSING_ERROR]: [\n \"Error when parsing JWT. This should never happen. Join https://t.me/+h5CN-W35yUFiYzkx for support\",\n KeylessErrorCategory.INVALID_STATE,\n KeylessErrorResolutionTip.REINSTANTIATE,\n ],\n [KeylessErrorType.FULL_NODE_CONFIG_LOOKUP_ERROR]: [\n \"Error when looking up on-chain keyless configuration.\",\n KeylessErrorCategory.API_ERROR,\n KeylessErrorResolutionTip.SERVER_ERROR,\n ],\n [KeylessErrorType.FULL_NODE_VERIFICATION_KEY_LOOKUP_ERROR]: [\n \"Error when looking up on-chain verification key.\",\n KeylessErrorCategory.API_ERROR,\n KeylessErrorResolutionTip.SERVER_ERROR,\n ],\n [KeylessErrorType.FULL_NODE_JWKS_LOOKUP_ERROR]: [\n \"Error when looking up on-chain JWKS.\",\n KeylessErrorCategory.API_ERROR,\n KeylessErrorResolutionTip.SERVER_ERROR,\n ],\n [KeylessErrorType.FULL_NODE_OTHER]: [\n \"Unknown error from full node.\",\n KeylessErrorCategory.API_ERROR,\n KeylessErrorResolutionTip.SERVER_ERROR,\n ],\n [KeylessErrorType.SIGNATURE_TYPE_INVALID]: [\n \"The signature is not a valid Keyless signature.\",\n KeylessErrorCategory.INVALID_SIGNATURE,\n KeylessErrorResolutionTip.JOIN_SUPPORT_GROUP,\n ],\n [KeylessErrorType.SIGNATURE_EXPIRED]: [\n \"The ephemeral key pair used to sign the message has expired.\",\n KeylessErrorCategory.INVALID_SIGNATURE,\n KeylessErrorResolutionTip.REAUTHENTICATE,\n ],\n [KeylessErrorType.MAX_EXPIRY_HORIZON_EXCEEDED]: [\n \"The expiry horizon on the signature exceeds the maximum allowed value.\",\n KeylessErrorCategory.INVALID_SIGNATURE,\n KeylessErrorResolutionTip.REAUTHENTICATE,\n ],\n [KeylessErrorType.EPHEMERAL_SIGNATURE_VERIFICATION_FAILED]: [\n \"Failed to verify the ephemeral signature with the ephemeral public key.\",\n KeylessErrorCategory.INVALID_SIGNATURE,\n KeylessErrorResolutionTip.REAUTHENTICATE,\n ],\n [KeylessErrorType.TRAINING_WHEELS_SIGNATURE_MISSING]: [\n \"The training wheels signature is missing but is required by the Keyless configuration.\",\n KeylessErrorCategory.INVALID_SIGNATURE,\n KeylessErrorResolutionTip.REAUTHENTICATE,\n ],\n [KeylessErrorType.TRAINING_WHEELS_SIGNATURE_VERIFICATION_FAILED]: [\n \"Failed to verify the training wheels signature with the training wheels public key.\",\n KeylessErrorCategory.INVALID_SIGNATURE,\n KeylessErrorResolutionTip.REAUTHENTICATE,\n ],\n [KeylessErrorType.PROOF_VERIFICATION_FAILED]: [\n \"The proof verification failed.\",\n KeylessErrorCategory.INVALID_SIGNATURE,\n KeylessErrorResolutionTip.REAUTHENTICATE,\n ],\n [KeylessErrorType.UNKNOWN]: [\n \"An unknown error has occurred.\",\n KeylessErrorCategory.UNKNOWN,\n KeylessErrorResolutionTip.UNKNOWN,\n ],\n};\n\nexport class KeylessError extends Error {\n readonly innerError?: unknown;\n\n readonly category: KeylessErrorCategory;\n\n readonly resolutionTip: KeylessErrorResolutionTip;\n\n readonly type: KeylessErrorType;\n\n readonly details?: string;\n\n /** @internal this constructor is for sdk internal use - do not instantiate outside of the SDK codebase */\n constructor(args: {\n innerError?: unknown;\n category: KeylessErrorCategory;\n resolutionTip: KeylessErrorResolutionTip;\n type: KeylessErrorType;\n message?: string;\n details?: string;\n }) {\n const { innerError, category, resolutionTip, type, message = KeylessErrors[type][0], details } = args;\n super(message);\n this.name = \"KeylessError\";\n this.innerError = innerError;\n this.category = category;\n this.resolutionTip = resolutionTip;\n this.type = type;\n this.details = details;\n this.message = KeylessError.constructMessage(message, resolutionTip, innerError, details);\n }\n\n static constructMessage(\n message: string,\n tip: KeylessErrorResolutionTip,\n innerError?: unknown,\n details?: string,\n ): string {\n let result = `\\nMessage: ${message}`;\n if (details) {\n result += `\\nDetails: ${details}`;\n }\n if (innerError instanceof AptosApiError) {\n result += `\\nAptosApiError: ${innerError.message}`;\n } else if (innerError !== undefined) {\n result += `\\nError: ${getErrorMessage(innerError)}`;\n }\n result += `\\nKeylessErrorResolutionTip: ${tip}`;\n return result;\n }\n\n /**\n * Static constructor that creates a KeylessError instance using the KeylessErrors constant\n * @param args.type The type of KeylessError\n * @param args.aptosApiError optional AptosApiError supplied for api errors\n * @param args.details optional details to include in the error message\n * @returns A new KeylessError instance\n */\n static fromErrorType(args: { type: KeylessErrorType; error?: unknown; details?: string }): KeylessError {\n const { error, type, details } = args;\n\n const [message, category, resolutionTip] = KeylessErrors[type];\n return new KeylessError({\n message,\n details,\n innerError: error,\n category,\n resolutionTip,\n type,\n });\n }\n}\n\n/**\n * Options for handling errors in the Aptos API.\n */\ntype AptosApiErrorOpts = {\n apiType: AptosApiType;\n aptosRequest: AptosRequest;\n aptosResponse: AptosResponse<any, any>;\n};\n\n/**\n * Represents an error returned from the Aptos API.\n * This class encapsulates the details of the error, including the request URL, response status, and additional data.\n *\n * @param name - The name of the error, which is always \"AptosApiError\".\n * @param url - The URL to which the request was made.\n * @param status - The HTTP response status code (e.g., 400).\n * @param statusText - The message associated with the response status.\n * @param data - The response data returned from the API.\n * @param request - The original AptosRequest that triggered the error.\n */\nexport class AptosApiError extends Error {\n readonly url: string;\n\n readonly status: number;\n\n readonly statusText: string;\n\n readonly data: any;\n\n readonly request: AptosRequest;\n\n /**\n * Constructs an instance of AptosApiError with relevant error details.\n *\n * @param opts - The options for creating the AptosApiError.\n * @param opts.apiType - The type of API that generated the error.\n * @param opts.aptosRequest - The request object that caused the error.\n * @param opts.aptosResponse - The response object containing error details.\n *\n * @internal This constructor is for SDK internal use - do not instantiate outside the SDK codebase.\n */\n constructor({ apiType, aptosRequest, aptosResponse }: AptosApiErrorOpts) {\n super(deriveErrorMessage({ apiType, aptosRequest, aptosResponse }));\n\n this.name = \"AptosApiError\";\n this.url = aptosResponse.url;\n this.status = aptosResponse.status;\n this.statusText = aptosResponse.statusText;\n this.data = aptosResponse.data;\n this.request = aptosRequest;\n }\n}\n\n/**\n * Derives an error message from the Aptos API response, providing context for debugging.\n * This function helps in understanding the nature of the error encountered during an API request.\n *\n * @param {AptosApiErrorOpts} opts - The options for deriving the error message.\n * @param {AptosApiType} opts.apiType - The type of API being called.\n * @param {AptosRequest} opts.aptosRequest - The original request made to the Aptos API.\n * @param {AptosResponse} opts.aptosResponse - The response received from the Aptos API.\n */\nfunction deriveErrorMessage({ apiType, aptosRequest, aptosResponse }: AptosApiErrorOpts): string {\n // eslint-disable-next-line max-len\n // extract the W3C trace_id from the response headers if it exists. Some services set this in the response, and it's useful for debugging.\n // See https://www.w3.org/TR/trace-context/#relationship-between-the-headers .\n const traceId = aptosResponse.headers?.traceparent?.split(\"-\")[1];\n const traceIdString = traceId ? `(trace_id:${traceId}) ` : \"\";\n\n const errorPrelude: string = `Request to [${apiType}]: ${aptosRequest.method} ${\n aptosResponse.url ?? aptosRequest.url\n } ${traceIdString}failed with`;\n\n // handle graphql responses from indexer api and extract the error message of the first error\n if (apiType === AptosApiType.INDEXER && aptosResponse.data?.errors?.[0]?.message != null) {\n return `${errorPrelude}: ${aptosResponse.data.errors[0].message}`;\n }\n\n // Received well-known structured error response body - simply serialize and return it.\n // We don't need http status codes etc. in this case.\n if (aptosResponse.data?.message != null && aptosResponse.data?.error_code != null) {\n return `${errorPrelude}: ${JSON.stringify(aptosResponse.data)}`;\n }\n\n // This is the generic/catch-all case. We received some response from the API, but it doesn't appear to be a well-known structure.\n // We print http status codes and the response body (after some trimming),\n // in the hope that this gives enough context what went wrong without printing overly huge messages.\n return `${errorPrelude} status: ${aptosResponse.statusText}(code:${\n aptosResponse.status\n }) and response body: ${serializeAnyPayloadForErrorMessage(aptosResponse.data)}`;\n}\n\nconst SERIALIZED_PAYLOAD_TRIM_TO_MAX_LENGTH = 400;\n\n/**\n * This function accepts a payload of any type (probably an object) and serializes it to a string\n * Since we don't know the type or size of the payload, and we don't want to add a huge object in full to the error message\n * we limit the to the first 200 and last 200 characters of the serialized payload and put a \"...\" in the middle.\n * @param payload - The payload to serialize, which can be of any type.\n *\n * @returns A string representation of the serialized payload, potentially truncated.\n */\nfunction serializeAnyPayloadForErrorMessage(payload: any): string {\n const serializedPayload = JSON.stringify(payload);\n if (serializedPayload.length <= SERIALIZED_PAYLOAD_TRIM_TO_MAX_LENGTH) {\n return serializedPayload;\n }\n return `truncated(original_size:${serializedPayload.length}): ${serializedPayload.slice(\n 0,\n SERIALIZED_PAYLOAD_TRIM_TO_MAX_LENGTH / 2,\n )}...${serializedPayload.slice(-SERIALIZED_PAYLOAD_TRIM_TO_MAX_LENGTH / 2)}`;\n}\n"],"mappings":"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","names":["KeylessErrorCategory","KeylessErrorResolutionTip","KeylessErrorType","KeylessErrors","KeylessError","_KeylessError","args","innerError","category","resolutionTip","type","message","details","tip","result","AptosApiError","getErrorMessage","error","apiType","aptosRequest","aptosResponse","deriveErrorMessage","traceId","traceIdString","errorPrelude","serializeAnyPayloadForErrorMessage","SERIALIZED_PAYLOAD_TRIM_TO_MAX_LENGTH","payload","serializedPayload"]}
@@ -1,2 +1,2 @@
1
- import{a as o}from"../chunk-Q3AVJUBL.mjs";import{a as r}from"../chunk-35DKMW7Q.mjs";import"../chunk-CU6HQJSE.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{o as LocalNode,r as Move};
1
+ import{a as o}from"../chunk-DCVGWCZD.mjs";import{a as r}from"../chunk-35DKMW7Q.mjs";import"../chunk-DC5IVW4W.mjs";import"../chunk-F2GWK4YJ.mjs";import"../chunk-SZYA6IG4.mjs";import"../chunk-CZOZTNXJ.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-B373VRCY.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-KDMSOCZY.mjs";export{o as LocalNode,r as Move};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-Q3AVJUBL.mjs";import"../chunk-CU6HQJSE.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{a as LocalNode};
1
+ import{a}from"../chunk-DCVGWCZD.mjs";import"../chunk-DC5IVW4W.mjs";import"../chunk-F2GWK4YJ.mjs";import"../chunk-SZYA6IG4.mjs";import"../chunk-CZOZTNXJ.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-B373VRCY.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-KDMSOCZY.mjs";export{a as LocalNode};
2
2
  //# sourceMappingURL=localNode.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d}from"../chunk-ZVYTHOS5.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BMPHQ3E7.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-X5ORWYVO.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-ERLDXTIY.mjs";import"../chunk-RIINVEZA.mjs";import"../chunk-HHWJHOFZ.mjs";import"../chunk-TKXEVD7A.mjs";import"../chunk-ZD2TY5N3.mjs";import"../chunk-CU6HQJSE.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-X5YB74NB.mjs";import"../chunk-KDMSOCZY.mjs";export{d as aptosBinaryRequest,c as aptosRequest,b as binaryRequest,a as request};
1
+ import{a,b,c,d}from"../chunk-CICJRLYU.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-5WNHYEW2.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-H3NZHL45.mjs";import"../chunk-4FBUZY6C.mjs";import"../chunk-DGH7NXHM.mjs";import"../chunk-UQKQH5C7.mjs";import"../chunk-BE3OXYYX.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-ZKOF4KST.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-DC5IVW4W.mjs";import"../chunk-F2GWK4YJ.mjs";import"../chunk-SZYA6IG4.mjs";import"../chunk-CZOZTNXJ.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-B373VRCY.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-NDXMDJV4.mjs";import"../chunk-KDMSOCZY.mjs";export{d as aptosBinaryRequest,c as aptosRequest,b as binaryRequest,a as request};
2
2
  //# sourceMappingURL=core.mjs.map
@@ -152,5 +152,9 @@ declare function getAptosPepperService<Req extends {}, Res extends {}>(options:
152
152
  */
153
153
  declare function paginateWithCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<Res>;
154
154
  declare function paginateWithObfuscatedCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<Res>;
155
+ declare function getPageWithObfuscatedCursor<Req extends Record<string, any>, Res extends Array<{}>>(options: GetAptosRequestOptions): Promise<{
156
+ response: AptosResponse<Req, Res>;
157
+ cursor: string | undefined;
158
+ }>;
155
159
 
156
- export { type GetAptosRequestOptions, type GetRequestOptions, get, getAptosFullNode, getAptosPepperService, getBinary, getBinaryAptosFullNode, paginateWithCursor, paginateWithObfuscatedCursor };
160
+ export { type GetAptosRequestOptions, type GetRequestOptions, get, getAptosFullNode, getAptosPepperService, getBinary, getBinaryAptosFullNode, getPageWithObfuscatedCursor, paginateWithCursor, paginateWithObfuscatedCursor };
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g}from"../chunk-JLZGYZBX.mjs";import"../chunk-ZVYTHOS5.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BMPHQ3E7.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-X5ORWYVO.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-ERLDXTIY.mjs";import"../chunk-RIINVEZA.mjs";import"../chunk-HHWJHOFZ.mjs";import"../chunk-TKXEVD7A.mjs";import"../chunk-ZD2TY5N3.mjs";import"../chunk-CU6HQJSE.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-X5YB74NB.mjs";import"../chunk-KDMSOCZY.mjs";export{a as get,c as getAptosFullNode,e as getAptosPepperService,b as getBinary,d as getBinaryAptosFullNode,f as paginateWithCursor,g as paginateWithObfuscatedCursor};
1
+ import{a,b,c,d,e,f,g,h}from"../chunk-YVRPD7Z6.mjs";import"../chunk-CICJRLYU.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-5WNHYEW2.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-H3NZHL45.mjs";import"../chunk-4FBUZY6C.mjs";import"../chunk-DGH7NXHM.mjs";import"../chunk-UQKQH5C7.mjs";import"../chunk-BE3OXYYX.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-ZKOF4KST.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-DC5IVW4W.mjs";import"../chunk-F2GWK4YJ.mjs";import"../chunk-SZYA6IG4.mjs";import"../chunk-CZOZTNXJ.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-B373VRCY.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-NDXMDJV4.mjs";import"../chunk-KDMSOCZY.mjs";export{a as get,c as getAptosFullNode,e as getAptosPepperService,b as getBinary,d as getBinaryAptosFullNode,h as getPageWithObfuscatedCursor,f as paginateWithCursor,g as paginateWithObfuscatedCursor};
2
2
  //# sourceMappingURL=get.mjs.map
@@ -1,5 +1,5 @@
1
1
  export { aptosBinaryRequest, aptosRequest, binaryRequest, request } from './core.mjs';
2
- export { GetAptosRequestOptions, GetRequestOptions, get, getAptosFullNode, getAptosPepperService, getBinary, getBinaryAptosFullNode, paginateWithCursor, paginateWithObfuscatedCursor } from './get.mjs';
2
+ export { GetAptosRequestOptions, GetRequestOptions, get, getAptosFullNode, getAptosPepperService, getBinary, getBinaryAptosFullNode, getPageWithObfuscatedCursor, paginateWithCursor, paginateWithObfuscatedCursor } from './get.mjs';
3
3
  export { PostAptosRequestOptions, PostRequestOptions, post, postAptosFaucet, postAptosFullNode, postAptosIndexer, postAptosPepperService, postAptosProvingService, postBinary, postBinaryAptosFullNode } from './post.mjs';
4
4
  import '../api/aptosConfig.mjs';
5
5
  import '../types/types.mjs';
@@ -1,2 +1,2 @@
1
- import"../chunk-7ECCT6PK.mjs";import{a as l,b as m,c as n,d as o,e as p,f as q,g as r,h as s}from"../chunk-2P27DDVV.mjs";import{a as e,b as f,c as g,d as h,e as i,f as j,g as k}from"../chunk-JLZGYZBX.mjs";import{a,b,c,d}from"../chunk-ZVYTHOS5.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BMPHQ3E7.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-X5ORWYVO.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-ERLDXTIY.mjs";import"../chunk-RIINVEZA.mjs";import"../chunk-HHWJHOFZ.mjs";import"../chunk-TKXEVD7A.mjs";import"../chunk-ZD2TY5N3.mjs";import"../chunk-CU6HQJSE.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-X5YB74NB.mjs";import"../chunk-KDMSOCZY.mjs";export{d as aptosBinaryRequest,c as aptosRequest,b as binaryRequest,e as get,g as getAptosFullNode,i as getAptosPepperService,f as getBinary,h as getBinaryAptosFullNode,j as paginateWithCursor,k as paginateWithObfuscatedCursor,l as post,q as postAptosFaucet,n as postAptosFullNode,p as postAptosIndexer,r as postAptosPepperService,s as postAptosProvingService,m as postBinary,o as postBinaryAptosFullNode,a as request};
1
+ import"../chunk-7ECCT6PK.mjs";import{a as e,b as f,c as g,d as h,e as i,f as j,g as k,h as l}from"../chunk-YVRPD7Z6.mjs";import{a as m,b as n,c as o,d as p,e as q,f as r,g as s,h as t}from"../chunk-2DISMLR6.mjs";import{a,b,c,d}from"../chunk-CICJRLYU.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-5WNHYEW2.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-H3NZHL45.mjs";import"../chunk-4FBUZY6C.mjs";import"../chunk-DGH7NXHM.mjs";import"../chunk-UQKQH5C7.mjs";import"../chunk-BE3OXYYX.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-ZKOF4KST.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-DC5IVW4W.mjs";import"../chunk-F2GWK4YJ.mjs";import"../chunk-SZYA6IG4.mjs";import"../chunk-CZOZTNXJ.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-B373VRCY.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-NDXMDJV4.mjs";import"../chunk-KDMSOCZY.mjs";export{d as aptosBinaryRequest,c as aptosRequest,b as binaryRequest,e as get,g as getAptosFullNode,i as getAptosPepperService,f as getBinary,h as getBinaryAptosFullNode,l as getPageWithObfuscatedCursor,j as paginateWithCursor,k as paginateWithObfuscatedCursor,m as post,r as postAptosFaucet,o as postAptosFullNode,q as postAptosIndexer,s as postAptosPepperService,t as postAptosProvingService,n as postBinary,p as postBinaryAptosFullNode,a as request};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c,d,e,f,g,h}from"../chunk-2P27DDVV.mjs";import"../chunk-ZVYTHOS5.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-BMPHQ3E7.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-X5ORWYVO.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-ERLDXTIY.mjs";import"../chunk-RIINVEZA.mjs";import"../chunk-HHWJHOFZ.mjs";import"../chunk-TKXEVD7A.mjs";import"../chunk-ZD2TY5N3.mjs";import"../chunk-CU6HQJSE.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-X5YB74NB.mjs";import"../chunk-KDMSOCZY.mjs";export{a as post,f as postAptosFaucet,c as postAptosFullNode,e as postAptosIndexer,g as postAptosPepperService,h as postAptosProvingService,b as postBinary,d as postBinaryAptosFullNode};
1
+ import{a,b,c,d,e,f,g,h}from"../chunk-2DISMLR6.mjs";import"../chunk-CICJRLYU.mjs";import"../chunk-HGLO5LDS.mjs";import"../chunk-5WNHYEW2.mjs";import"../chunk-FZY4PMEE.mjs";import"../chunk-H3NZHL45.mjs";import"../chunk-4FBUZY6C.mjs";import"../chunk-DGH7NXHM.mjs";import"../chunk-UQKQH5C7.mjs";import"../chunk-BE3OXYYX.mjs";import"../chunk-4RXKALLC.mjs";import"../chunk-ZKOF4KST.mjs";import"../chunk-RJ7F4JDV.mjs";import"../chunk-DC5IVW4W.mjs";import"../chunk-F2GWK4YJ.mjs";import"../chunk-SZYA6IG4.mjs";import"../chunk-CZOZTNXJ.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-B373VRCY.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-NDXMDJV4.mjs";import"../chunk-KDMSOCZY.mjs";export{a as post,f as postAptosFaucet,c as postAptosFullNode,e as postAptosIndexer,g as postAptosPepperService,h as postAptosProvingService,b as postBinary,d as postBinaryAptosFullNode};
2
2
  //# sourceMappingURL=post.mjs.map
@@ -1,2 +1,2 @@
1
- import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../chunk-AIPHJFJL.mjs";import"../../chunk-LQOSHBB7.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-R6QCPXQG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-RXHER6EA.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as createObjectAddress,b as createResourceAddress,c as createTokenAddress};
1
+ import"../../chunk-NECL5FCQ.mjs";import"../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../chunk-F2GWK4YJ.mjs";import"../../chunk-SZYA6IG4.mjs";import"../../chunk-CZOZTNXJ.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-B373VRCY.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as createObjectAddress,b as createResourceAddress,c as createTokenAddress};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1,2 +1,2 @@
1
- import{a,b,c}from"../../../chunk-AIPHJFJL.mjs";import"../../../chunk-LQOSHBB7.mjs";import"../../../chunk-3OLFJ65O.mjs";import"../../../chunk-R6QCPXQG.mjs";import"../../../chunk-4WPQQPUF.mjs";import"../../../chunk-RXHER6EA.mjs";import"../../../chunk-VHY6ZATX.mjs";import"../../../chunk-IF4UU2MT.mjs";import"../../../chunk-56CNRT2K.mjs";import"../../../chunk-KDMSOCZY.mjs";export{a as createObjectAddress,b as createResourceAddress,c as createTokenAddress};
1
+ import{a,b,c}from"../../../chunk-F2GWK4YJ.mjs";import"../../../chunk-SZYA6IG4.mjs";import"../../../chunk-CZOZTNXJ.mjs";import"../../../chunk-3OLFJ65O.mjs";import"../../../chunk-4WPQQPUF.mjs";import"../../../chunk-B373VRCY.mjs";import"../../../chunk-56CNRT2K.mjs";import"../../../chunk-VHY6ZATX.mjs";import"../../../chunk-IF4UU2MT.mjs";import"../../../chunk-KDMSOCZY.mjs";export{a as createObjectAddress,b as createResourceAddress,c as createTokenAddress};
2
2
  //# sourceMappingURL=address.mjs.map
@@ -1,2 +1,2 @@
1
- import"../../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../../chunk-AIPHJFJL.mjs";import"../../../chunk-LQOSHBB7.mjs";import"../../../chunk-3OLFJ65O.mjs";import"../../../chunk-R6QCPXQG.mjs";import"../../../chunk-4WPQQPUF.mjs";import"../../../chunk-RXHER6EA.mjs";import"../../../chunk-VHY6ZATX.mjs";import"../../../chunk-IF4UU2MT.mjs";import"../../../chunk-56CNRT2K.mjs";import"../../../chunk-KDMSOCZY.mjs";export{a as createObjectAddress,b as createResourceAddress,c as createTokenAddress};
1
+ import"../../../chunk-4QMXOWHP.mjs";import{a,b,c}from"../../../chunk-F2GWK4YJ.mjs";import"../../../chunk-SZYA6IG4.mjs";import"../../../chunk-CZOZTNXJ.mjs";import"../../../chunk-3OLFJ65O.mjs";import"../../../chunk-4WPQQPUF.mjs";import"../../../chunk-B373VRCY.mjs";import"../../../chunk-56CNRT2K.mjs";import"../../../chunk-VHY6ZATX.mjs";import"../../../chunk-IF4UU2MT.mjs";import"../../../chunk-KDMSOCZY.mjs";export{a as createObjectAddress,b as createResourceAddress,c as createTokenAddress};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -140,6 +140,24 @@ declare class AccountAddress extends Serializable implements TransactionArgument
140
140
  * @category Serialization
141
141
  */
142
142
  toStringLongWithoutPrefix(): string;
143
+ /**
144
+ * Convert the account address to a string in SHORT format, which is 0x followed by the shortest
145
+ * possible representation (no leading zeros).
146
+ *
147
+ * @returns AccountAddress as a string in SHORT form.
148
+ * @group Implementation
149
+ * @category Serialization
150
+ */
151
+ toStringShort(): `0x${string}`;
152
+ /**
153
+ * Returns a lossless short string representation of the address by trimming leading zeros.
154
+ * If the address consists of all zeros, returns "0".
155
+ *
156
+ * @returns A string representation of the address without leading zeros
157
+ * @group Implementation
158
+ * @category Serialization
159
+ */
160
+ toStringShortWithoutPrefix(): string;
143
161
  /**
144
162
  * Get the inner data as a Uint8Array.
145
163
  * The inner data is already a Uint8Array, so no conversion takes place.
@@ -1,2 +1,2 @@
1
- import{a,b}from"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{b as AccountAddress,a as AddressInvalidReason};
1
+ import{a,b}from"../chunk-SZYA6IG4.mjs";import"../chunk-CZOZTNXJ.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-B373VRCY.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-KDMSOCZY.mjs";export{b as AccountAddress,a as AddressInvalidReason};
2
2
  //# sourceMappingURL=accountAddress.mjs.map
@@ -1,9 +1,9 @@
1
1
  import './accountAddress.mjs';
2
2
  import '../bcs/deserializer.mjs';
3
3
  import '../bcs/serializer.mjs';
4
- export { A as AuthenticationKey } from '../publicKey-BMtGNNLg.mjs';
5
4
  import '../types/types.mjs';
6
5
  import './hex.mjs';
6
+ export { A as AuthenticationKey } from '../publicKey-pDHBAZlT.mjs';
7
7
  import './common.mjs';
8
8
  import '../transactions/instances/transactionArgument.mjs';
9
9
  import '../types/indexer.mjs';
@@ -12,3 +12,5 @@ import '../types/generated/types.mjs';
12
12
  import '../utils/apiEndpoints.mjs';
13
13
  import '@aptos-labs/script-composer-pack';
14
14
  import './crypto/signature.mjs';
15
+ import '../api/aptosConfig.mjs';
16
+ import '../utils/const.mjs';
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-TTY5GFMN.mjs";import"../chunk-LQOSHBB7.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-R6QCPXQG.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-RXHER6EA.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-KDMSOCZY.mjs";export{a as AuthenticationKey};
1
+ import{a}from"../chunk-L5C44K6H.mjs";import"../chunk-SZYA6IG4.mjs";import"../chunk-CZOZTNXJ.mjs";import"../chunk-3OLFJ65O.mjs";import"../chunk-4WPQQPUF.mjs";import"../chunk-B373VRCY.mjs";import"../chunk-56CNRT2K.mjs";import"../chunk-VHY6ZATX.mjs";import"../chunk-IF4UU2MT.mjs";import"../chunk-KDMSOCZY.mjs";export{a as AuthenticationKey};
2
2
  //# sourceMappingURL=authenticationKey.mjs.map
@@ -3,7 +3,7 @@ import { Serializer } from '../../bcs/serializer.mjs';
3
3
  import { HexInput } from '../../types/types.mjs';
4
4
  import { Hex } from '../hex.mjs';
5
5
  import { AccountAddress } from '../accountAddress.mjs';
6
- import { a as AccountPublicKey, A as AuthenticationKey, V as VerifySignatureArgs } from '../../publicKey-BMtGNNLg.mjs';
6
+ import { b as AccountPublicKey, A as AuthenticationKey, V as VerifySignatureArgs, a as VerifySignatureAsyncArgs } from '../../publicKey-pDHBAZlT.mjs';
7
7
  import { Signature } from './signature.mjs';
8
8
  import '../../types/indexer.mjs';
9
9
  import '../../types/generated/operations.mjs';
@@ -12,6 +12,8 @@ import '../../utils/apiEndpoints.mjs';
12
12
  import '@aptos-labs/script-composer-pack';
13
13
  import '../common.mjs';
14
14
  import '../../transactions/instances/transactionArgument.mjs';
15
+ import '../../api/aptosConfig.mjs';
16
+ import '../../utils/const.mjs';
15
17
 
16
18
  declare class AbstractSignature extends Signature {
17
19
  readonly value: Hex;
@@ -24,6 +26,7 @@ declare class AbstractPublicKey extends AccountPublicKey {
24
26
  constructor(accountAddress: AccountAddress);
25
27
  authKey(): AuthenticationKey;
26
28
  verifySignature(args: VerifySignatureArgs): boolean;
29
+ verifySignatureAsync(args: VerifySignatureAsyncArgs): Promise<boolean>;
27
30
  serialize(serializer: Serializer): void;
28
31
  }
29
32
 
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../chunk-CGTMSLVZ.mjs";import"../../chunk-H4YAL2IL.mjs";import"../../chunk-A3VO773Q.mjs";import"../../chunk-TTY5GFMN.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ERLDXTIY.mjs";import"../../chunk-RIINVEZA.mjs";import"../../chunk-HHWJHOFZ.mjs";import"../../chunk-TKXEVD7A.mjs";import"../../chunk-ZD2TY5N3.mjs";import"../../chunk-LQOSHBB7.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-R6QCPXQG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-RXHER6EA.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{b as AbstractPublicKey,a as AbstractSignature};
1
+ import{a,b}from"../../chunk-DFRHNDOS.mjs";import"../../chunk-7WPEGMD6.mjs";import"../../chunk-BRGQM252.mjs";import"../../chunk-L5C44K6H.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-H3NZHL45.mjs";import"../../chunk-4FBUZY6C.mjs";import"../../chunk-DGH7NXHM.mjs";import"../../chunk-UQKQH5C7.mjs";import"../../chunk-BE3OXYYX.mjs";import"../../chunk-SZYA6IG4.mjs";import"../../chunk-CZOZTNXJ.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-B373VRCY.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-KDMSOCZY.mjs";export{b as AbstractPublicKey,a as AbstractSignature};
2
2
  //# sourceMappingURL=abstraction.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { Deserializer } from '../../bcs/deserializer.mjs';
2
- import { Serializer, Serializable } from '../../bcs/serializer.mjs';
3
- import { a as AccountPublicKey, V as VerifySignatureArgs, A as AuthenticationKey, P as PublicKey } from '../../publicKey-BMtGNNLg.mjs';
2
+ import { Serializable, Serializer } from '../../bcs/serializer.mjs';
3
+ import { b as AccountPublicKey, V as VerifySignatureArgs, a as VerifySignatureAsyncArgs, A as AuthenticationKey, P as PublicKey } from '../../publicKey-pDHBAZlT.mjs';
4
4
  import { HexInput } from '../../types/types.mjs';
5
5
  import { PrivateKey } from './privateKey.mjs';
6
6
  import { Signature } from './signature.mjs';
@@ -13,6 +13,8 @@ import '../hex.mjs';
13
13
  import '../common.mjs';
14
14
  import '../accountAddress.mjs';
15
15
  import '../../transactions/instances/transactionArgument.mjs';
16
+ import '../../api/aptosConfig.mjs';
17
+ import '../../utils/const.mjs';
16
18
 
17
19
  /**
18
20
  * Checks if an ED25519 signature is non-canonical.
@@ -72,6 +74,21 @@ declare class Ed25519PublicKey extends AccountPublicKey {
72
74
  * @category Serialization
73
75
  */
74
76
  verifySignature(args: VerifySignatureArgs): boolean;
77
+ /**
78
+ * Note: Ed25519Signatures can be verified syncronously.
79
+ *
80
+ * Verifies the provided signature against the given message.
81
+ * This function helps ensure the integrity and authenticity of the message by confirming that the signature is valid.
82
+ *
83
+ * @param args - The arguments for signature verification.
84
+ * @param args.aptosConfig - The configuration object for connecting to the Aptos network
85
+ * @param args.message - The message that was signed.
86
+ * @param args.signature - The signature to verify, which must be an instance of Secp256k1Signature.
87
+ * @returns A boolean indicating whether the signature is valid for the given message.
88
+ * @group Implementation
89
+ * @category Serialization
90
+ */
91
+ verifySignatureAsync(args: VerifySignatureAsyncArgs): Promise<boolean>;
75
92
  /**
76
93
  * Generates an authentication key from the public key using the Ed25519 scheme.
77
94
  * This function is essential for creating a secure authentication key that can be used for further cryptographic operations.
@@ -1,2 +1,2 @@
1
- import{a,b,c,d}from"../../chunk-7OUPEQRN.mjs";import"../../chunk-DOVH6HPL.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-7CRQNXR5.mjs";import"../../chunk-H4YAL2IL.mjs";import"../../chunk-A3VO773Q.mjs";import"../../chunk-TTY5GFMN.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ERLDXTIY.mjs";import"../../chunk-RIINVEZA.mjs";import"../../chunk-HHWJHOFZ.mjs";import"../../chunk-TKXEVD7A.mjs";import"../../chunk-ZD2TY5N3.mjs";import"../../chunk-LQOSHBB7.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-R6QCPXQG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-RXHER6EA.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{c as Ed25519PrivateKey,b as Ed25519PublicKey,d as Ed25519Signature,a as isCanonicalEd25519Signature};
1
+ import{a,b,c,d}from"../../chunk-HEYMZZRE.mjs";import"../../chunk-DOVH6HPL.mjs";import"../../chunk-7CRQNXR5.mjs";import"../../chunk-7WPEGMD6.mjs";import"../../chunk-BRGQM252.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-L5C44K6H.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-H3NZHL45.mjs";import"../../chunk-4FBUZY6C.mjs";import"../../chunk-DGH7NXHM.mjs";import"../../chunk-UQKQH5C7.mjs";import"../../chunk-BE3OXYYX.mjs";import"../../chunk-SZYA6IG4.mjs";import"../../chunk-CZOZTNXJ.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-B373VRCY.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-KDMSOCZY.mjs";export{c as Ed25519PrivateKey,b as Ed25519PublicKey,d as Ed25519Signature,a as isCanonicalEd25519Signature};
2
2
  //# sourceMappingURL=ed25519.mjs.map
@@ -1,8 +1,9 @@
1
1
  import { Deserializer } from '../../bcs/deserializer.mjs';
2
2
  import { Serializer } from '../../bcs/serializer.mjs';
3
3
  import { EphemeralPublicKeyVariant, HexInput } from '../../types/types.mjs';
4
- import { P as PublicKey } from '../../publicKey-BMtGNNLg.mjs';
4
+ import { P as PublicKey } from '../../publicKey-pDHBAZlT.mjs';
5
5
  import { Signature } from './signature.mjs';
6
+ import { AptosConfig } from '../../api/aptosConfig.mjs';
6
7
  import '../../types/indexer.mjs';
7
8
  import '../../types/generated/operations.mjs';
8
9
  import '../../types/generated/types.mjs';
@@ -12,6 +13,7 @@ import '../hex.mjs';
12
13
  import '../common.mjs';
13
14
  import '../accountAddress.mjs';
14
15
  import '../../transactions/instances/transactionArgument.mjs';
16
+ import '../../utils/const.mjs';
15
17
 
16
18
  /**
17
19
  * Represents ephemeral public keys for Aptos Keyless accounts.
@@ -57,6 +59,11 @@ declare class EphemeralPublicKey extends PublicKey {
57
59
  message: HexInput;
58
60
  signature: EphemeralSignature;
59
61
  }): boolean;
62
+ verifySignatureAsync(args: {
63
+ aptosConfig: AptosConfig;
64
+ message: HexInput;
65
+ signature: EphemeralSignature;
66
+ }): Promise<boolean>;
60
67
  /**
61
68
  * Serializes the current instance, specifically handling the Ed25519 signature type.
62
69
  * This function ensures that the signature is properly serialized using the provided serializer.
@@ -1,2 +1,2 @@
1
- import{a,b}from"../../chunk-PWGTRRSJ.mjs";import"../../chunk-7OUPEQRN.mjs";import"../../chunk-DOVH6HPL.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-7CRQNXR5.mjs";import"../../chunk-H4YAL2IL.mjs";import"../../chunk-A3VO773Q.mjs";import"../../chunk-TTY5GFMN.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-ERLDXTIY.mjs";import"../../chunk-RIINVEZA.mjs";import"../../chunk-HHWJHOFZ.mjs";import"../../chunk-TKXEVD7A.mjs";import"../../chunk-ZD2TY5N3.mjs";import"../../chunk-LQOSHBB7.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-R6QCPXQG.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-RXHER6EA.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as EphemeralPublicKey,b as EphemeralSignature};
1
+ import{a,b}from"../../chunk-V5IPL4SJ.mjs";import"../../chunk-HEYMZZRE.mjs";import"../../chunk-DOVH6HPL.mjs";import"../../chunk-7CRQNXR5.mjs";import"../../chunk-7WPEGMD6.mjs";import"../../chunk-BRGQM252.mjs";import"../../chunk-C3Q23D22.mjs";import"../../chunk-L5C44K6H.mjs";import"../../chunk-FZY4PMEE.mjs";import"../../chunk-H3NZHL45.mjs";import"../../chunk-4FBUZY6C.mjs";import"../../chunk-DGH7NXHM.mjs";import"../../chunk-UQKQH5C7.mjs";import"../../chunk-BE3OXYYX.mjs";import"../../chunk-SZYA6IG4.mjs";import"../../chunk-CZOZTNXJ.mjs";import"../../chunk-3OLFJ65O.mjs";import"../../chunk-4WPQQPUF.mjs";import"../../chunk-B373VRCY.mjs";import"../../chunk-56CNRT2K.mjs";import"../../chunk-VHY6ZATX.mjs";import"../../chunk-IF4UU2MT.mjs";import"../../chunk-KDMSOCZY.mjs";export{a as EphemeralPublicKey,b as EphemeralSignature};
2
2
  //# sourceMappingURL=ephemeral.mjs.map
@@ -1,12 +1,13 @@
1
- import { a as AccountPublicKey, A as AuthenticationKey, P as PublicKey } from '../../publicKey-BMtGNNLg.mjs';
2
- import { Deserializer } from '../../bcs/deserializer.mjs';
3
- import { Serializer } from '../../bcs/serializer.mjs';
4
- import { HexInput } from '../../types/types.mjs';
5
- import { AccountAddress, AccountAddressInput } from '../accountAddress.mjs';
6
- import { KeylessPublicKey, KeylessSignature } from './keyless.mjs';
1
+ import '../../publicKey-pDHBAZlT.mjs';
2
+ import '../../bcs/deserializer.mjs';
3
+ import '../../bcs/serializer.mjs';
4
+ import '../../types/types.mjs';
5
+ import '../accountAddress.mjs';
6
+ export { F as FederatedKeylessPublicKey } from '../../federatedKeyless-DVfVovSR.mjs';
7
+ import './signature.mjs';
8
+ import '../../api/aptosConfig.mjs';
7
9
  import '../hex.mjs';
8
10
  import '../common.mjs';
9
- import './signature.mjs';
10
11
  import '../../types/indexer.mjs';
11
12
  import '../../types/generated/operations.mjs';
12
13
  import '../../types/generated/types.mjs';
@@ -14,85 +15,8 @@ import '../../utils/apiEndpoints.mjs';
14
15
  import '@aptos-labs/script-composer-pack';
15
16
  import '../../transactions/instances/transactionArgument.mjs';
16
17
  import './ephemeral.mjs';
18
+ import '../../utils/const.mjs';
17
19
  import './proof.mjs';
18
20
  import '../../types/keyless.mjs';
19
- import '../../api/aptosConfig.mjs';
20
- import '../../utils/const.mjs';
21
-
22
- /**
23
- * Represents the FederatedKeylessPublicKey public key
24
- *
25
- * These keys use an on-chain address as a source of truth for the JWK used to verify signatures.
26
- *
27
- * FederatedKeylessPublicKey authentication key is represented in the SDK as `AnyPublicKey`.
28
- * @group Implementation
29
- * @category Serialization
30
- */
31
- declare class FederatedKeylessPublicKey extends AccountPublicKey {
32
- /**
33
- * The address that contains the JWK set to be used for verification.
34
- * @group Implementation
35
- * @category Serialization
36
- */
37
- readonly jwkAddress: AccountAddress;
38
- /**
39
- * The inner public key which contains the standard Keyless public key.
40
- * @group Implementation
41
- * @category Serialization
42
- */
43
- readonly keylessPublicKey: KeylessPublicKey;
44
- constructor(jwkAddress: AccountAddressInput, keylessPublicKey: KeylessPublicKey);
45
- /**
46
- * Get the authentication key for the federated keyless public key
47
- *
48
- * @returns AuthenticationKey
49
- * @group Implementation
50
- * @category Serialization
51
- */
52
- authKey(): AuthenticationKey;
53
- /**
54
- * Verifies a signed data with a public key
55
- *
56
- * @param args.message message
57
- * @param args.signature The signature
58
- * @returns true if the signature is valid
59
- * @group Implementation
60
- * @category Serialization
61
- */
62
- verifySignature(args: {
63
- message: HexInput;
64
- signature: KeylessSignature;
65
- }): boolean;
66
- serialize(serializer: Serializer): void;
67
- static deserialize(deserializer: Deserializer): FederatedKeylessPublicKey;
68
- static isPublicKey(publicKey: PublicKey): publicKey is FederatedKeylessPublicKey;
69
- /**
70
- * Creates a FederatedKeylessPublicKey from the JWT components plus pepper
71
- *
72
- * @param args.iss the iss of the identity
73
- * @param args.uidKey the key to use to get the uidVal in the JWT token
74
- * @param args.uidVal the value of the uidKey in the JWT token
75
- * @param args.aud the client ID of the application
76
- * @param args.pepper The pepper used to maintain privacy of the account
77
- * @returns FederatedKeylessPublicKey
78
- * @group Implementation
79
- * @category Serialization
80
- */
81
- static create(args: {
82
- iss: string;
83
- uidKey: string;
84
- uidVal: string;
85
- aud: string;
86
- pepper: HexInput;
87
- jwkAddress: AccountAddressInput;
88
- }): FederatedKeylessPublicKey;
89
- static fromJwtAndPepper(args: {
90
- jwt: string;
91
- pepper: HexInput;
92
- jwkAddress: AccountAddressInput;
93
- uidKey?: string;
94
- }): FederatedKeylessPublicKey;
95
- static isInstance(publicKey: PublicKey): boolean;
96
- }
97
-
98
- export { FederatedKeylessPublicKey };
21
+ import '@noble/curves/abstract/weierstrass';
22
+ import '@noble/curves/abstract/tower';