@aptos-labs/ts-sdk 2.0.1 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (343) hide show
  1. package/dist/common/account-Bb5REyaT.d.ts +7412 -0
  2. package/dist/common/chunk-6MMUUJHX.js +4 -0
  3. package/dist/common/{chunk-ZMDE3DNL.js.map → chunk-6MMUUJHX.js.map} +1 -1
  4. package/dist/common/cli/index.d.ts +1 -1
  5. package/dist/common/cli/index.js +1 -1
  6. package/dist/common/index.d.ts +5876 -9769
  7. package/dist/common/index.js +55 -32
  8. package/dist/common/index.js.map +1 -1
  9. package/dist/esm/{Ed25519Account-D9XrCLfE.d.mts → Ed25519Account-ndmdpFe9.d.mts} +1 -9
  10. package/dist/esm/account/AbstractKeylessAccount.d.mts +4 -31
  11. package/dist/esm/account/AbstractKeylessAccount.mjs +1 -1
  12. package/dist/esm/account/AbstractedAccount.d.mts +5 -32
  13. package/dist/esm/account/AbstractedAccount.mjs +1 -1
  14. package/dist/esm/account/Account.d.mts +3 -30
  15. package/dist/esm/account/Account.mjs +1 -1
  16. package/dist/esm/account/AccountUtils.d.mts +4 -31
  17. package/dist/esm/account/AccountUtils.mjs +1 -1
  18. package/dist/esm/account/DerivableAbstractedAccount.d.mts +5 -32
  19. package/dist/esm/account/DerivableAbstractedAccount.mjs +1 -1
  20. package/dist/esm/account/Ed25519Account.d.mts +3 -30
  21. package/dist/esm/account/Ed25519Account.mjs +1 -1
  22. package/dist/esm/account/EphemeralKeyPair.d.mts +2 -11
  23. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  24. package/dist/esm/account/FederatedKeylessAccount.d.mts +5 -31
  25. package/dist/esm/account/FederatedKeylessAccount.mjs +1 -1
  26. package/dist/esm/account/KeylessAccount.d.mts +5 -31
  27. package/dist/esm/account/KeylessAccount.mjs +1 -1
  28. package/dist/esm/account/MultiEd25519Account.d.mts +3 -30
  29. package/dist/esm/account/MultiEd25519Account.mjs +1 -1
  30. package/dist/esm/account/MultiKeyAccount.d.mts +5 -32
  31. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  32. package/dist/esm/account/SingleKeyAccount.d.mts +3 -30
  33. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  34. package/dist/esm/account/index.d.mts +4 -31
  35. package/dist/esm/account/index.mjs +1 -1
  36. package/dist/esm/account/utils.d.mts +2 -6
  37. package/dist/esm/account/utils.mjs +1 -1
  38. package/dist/esm/account--Q9z_xMN.d.mts +6625 -0
  39. package/dist/esm/api/account/abstraction.d.mts +2 -29
  40. package/dist/esm/api/account/abstraction.mjs +1 -1
  41. package/dist/esm/api/account.d.mts +95 -31
  42. package/dist/esm/api/account.mjs +1 -1
  43. package/dist/esm/api/ans.d.mts +3 -30
  44. package/dist/esm/api/ans.mjs +1 -1
  45. package/dist/esm/api/aptos.d.mts +8 -32
  46. package/dist/esm/api/aptos.mjs +1 -1
  47. package/dist/esm/api/aptosConfig.d.mts +4 -187
  48. package/dist/esm/api/aptosConfig.mjs +1 -1
  49. package/dist/esm/api/coin.d.mts +2 -29
  50. package/dist/esm/api/coin.mjs +1 -1
  51. package/dist/esm/api/digitalAsset.d.mts +3 -30
  52. package/dist/esm/api/digitalAsset.mjs +1 -1
  53. package/dist/esm/api/event.d.mts +2 -8
  54. package/dist/esm/api/event.mjs +1 -1
  55. package/dist/esm/api/faucet.d.mts +2 -8
  56. package/dist/esm/api/faucet.mjs +1 -1
  57. package/dist/esm/api/fungibleAsset.d.mts +2 -29
  58. package/dist/esm/api/fungibleAsset.mjs +1 -1
  59. package/dist/esm/api/general.d.mts +2 -29
  60. package/dist/esm/api/general.mjs +1 -1
  61. package/dist/esm/api/index.d.mts +6 -31
  62. package/dist/esm/api/index.mjs +1 -1
  63. package/dist/esm/api/keyless.d.mts +4 -31
  64. package/dist/esm/api/keyless.mjs +1 -1
  65. package/dist/esm/api/object.d.mts +2 -8
  66. package/dist/esm/api/object.mjs +1 -1
  67. package/dist/esm/api/staking.d.mts +2 -8
  68. package/dist/esm/api/staking.mjs +1 -1
  69. package/dist/esm/api/table.d.mts +2 -2
  70. package/dist/esm/api/table.mjs +1 -1
  71. package/dist/esm/api/transaction.d.mts +7 -33
  72. package/dist/esm/api/transaction.mjs +1 -1
  73. package/dist/esm/api/transactionSubmission/build.d.mts +2 -29
  74. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  75. package/dist/esm/api/transactionSubmission/management.d.mts +2 -29
  76. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  77. package/dist/esm/api/transactionSubmission/sign.d.mts +3 -30
  78. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  79. package/dist/esm/api/transactionSubmission/sign.mjs.map +1 -1
  80. package/dist/esm/api/transactionSubmission/simulate.d.mts +2 -29
  81. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  82. package/dist/esm/api/transactionSubmission/submit.d.mts +4 -31
  83. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  84. package/dist/esm/api/utils.d.mts +2 -2
  85. package/dist/esm/api/utils.mjs +1 -1
  86. package/dist/esm/bcs/consts.d.mts +3 -1
  87. package/dist/esm/bcs/deserializer.d.mts +3 -304
  88. package/dist/esm/bcs/index.d.mts +2 -8
  89. package/dist/esm/bcs/index.mjs +1 -1
  90. package/dist/esm/bcs/serializable/entryFunctionBytes.d.mts +3 -7
  91. package/dist/esm/bcs/serializable/fixedBytes.d.mts +3 -90
  92. package/dist/esm/bcs/serializable/movePrimitives.d.mts +2 -167
  93. package/dist/esm/bcs/serializable/movePrimitives.mjs +1 -1
  94. package/dist/esm/bcs/serializable/moveStructs.d.mts +2 -430
  95. package/dist/esm/bcs/serializable/moveStructs.mjs +1 -1
  96. package/dist/esm/bcs/serializer.d.mts +3 -325
  97. package/dist/esm/{chunk-Q4W3WJ2U.mjs → chunk-2BOHKN33.mjs} +2 -2
  98. package/dist/esm/{chunk-AMAPBD4D.mjs → chunk-4COLMDT3.mjs} +2 -2
  99. package/dist/esm/chunk-5HXLZHDW.mjs +1 -0
  100. package/dist/esm/chunk-5HXLZHDW.mjs.map +1 -0
  101. package/dist/esm/{chunk-UOP7GBXB.mjs → chunk-5URUYE6H.mjs} +2 -2
  102. package/dist/esm/chunk-ACNHLCQQ.mjs +6 -0
  103. package/dist/esm/chunk-ACNHLCQQ.mjs.map +1 -0
  104. package/dist/esm/{chunk-V74WPKSY.mjs → chunk-FYYEPFML.mjs} +2 -2
  105. package/dist/esm/chunk-HUWKPKPQ.mjs +2 -0
  106. package/dist/esm/{chunk-VEGW6HP5.mjs.map → chunk-HUWKPKPQ.mjs.map} +1 -1
  107. package/dist/esm/chunk-IJE2LVZG.mjs +2 -0
  108. package/dist/esm/chunk-IJE2LVZG.mjs.map +1 -0
  109. package/dist/esm/chunk-JCFTAG5Z.mjs +2 -0
  110. package/dist/esm/{chunk-RJ7F4JDV.mjs.map → chunk-JCFTAG5Z.mjs.map} +1 -1
  111. package/dist/esm/{chunk-CZYH3G7E.mjs → chunk-MML57K5H.mjs} +2 -2
  112. package/dist/esm/{chunk-57J5YBMT.mjs → chunk-MNDTFHDB.mjs} +2 -2
  113. package/dist/esm/{chunk-U7HD6PQV.mjs → chunk-SLWIGOQL.mjs} +2 -2
  114. package/dist/esm/{chunk-V2QSMVJ5.mjs → chunk-TYYVB2A6.mjs} +2 -2
  115. package/dist/esm/{chunk-HETYL3WN.mjs → chunk-U3GMNXO4.mjs} +2 -2
  116. package/dist/esm/{chunk-VHNX2NUR.mjs → chunk-UL777LTI.mjs} +47 -26
  117. package/dist/esm/chunk-UL777LTI.mjs.map +1 -0
  118. package/dist/esm/{chunk-GBNAG7KK.mjs → chunk-XZ75T7Q7.mjs} +2 -2
  119. package/dist/esm/chunk-Y7ZQTLH4.mjs +2 -0
  120. package/dist/esm/chunk-Y7ZQTLH4.mjs.map +1 -0
  121. package/dist/esm/{chunk-KRBZ54CY.mjs → chunk-Z5URUE4U.mjs} +2 -2
  122. package/dist/esm/cli/index.d.mts +3 -7
  123. package/dist/esm/cli/index.mjs +1 -1
  124. package/dist/esm/cli/localNode.mjs +1 -1
  125. package/dist/esm/cli/move.d.mts +3 -7
  126. package/dist/esm/client/core.d.mts +3 -3
  127. package/dist/esm/client/core.mjs +1 -1
  128. package/dist/esm/client/get.d.mts +3 -3
  129. package/dist/esm/client/get.mjs +1 -1
  130. package/dist/esm/client/index.d.mts +2 -2
  131. package/dist/esm/client/index.mjs +1 -1
  132. package/dist/esm/client/post.d.mts +3 -3
  133. package/dist/esm/client/post.mjs +1 -1
  134. package/dist/esm/core/account/index.d.mts +3 -7
  135. package/dist/esm/core/account/index.mjs +1 -1
  136. package/dist/esm/core/account/utils/address.d.mts +3 -7
  137. package/dist/esm/core/account/utils/address.mjs +1 -1
  138. package/dist/esm/core/account/utils/index.d.mts +3 -7
  139. package/dist/esm/core/account/utils/index.mjs +1 -1
  140. package/dist/esm/core/accountAddress.d.mts +3 -329
  141. package/dist/esm/core/accountAddress.mjs +1 -1
  142. package/dist/esm/core/authenticationKey.d.mts +2 -10
  143. package/dist/esm/core/authenticationKey.mjs +1 -1
  144. package/dist/esm/core/crypto/abstraction.d.mts +2 -10
  145. package/dist/esm/core/crypto/abstraction.mjs +1 -1
  146. package/dist/esm/core/crypto/deserializationUtils.d.mts +2 -10
  147. package/dist/esm/core/crypto/deserializationUtils.mjs +1 -1
  148. package/dist/esm/core/crypto/ed25519.d.mts +2 -301
  149. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  150. package/dist/esm/core/crypto/ephemeral.d.mts +2 -10
  151. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  152. package/dist/esm/core/crypto/federatedKeyless.d.mts +4 -12
  153. package/dist/esm/core/crypto/federatedKeyless.mjs +1 -1
  154. package/dist/esm/core/crypto/index.d.mts +4 -17
  155. package/dist/esm/core/crypto/index.mjs +1 -1
  156. package/dist/esm/core/crypto/keyless.d.mts +3 -11
  157. package/dist/esm/core/crypto/keyless.mjs +1 -1
  158. package/dist/esm/core/crypto/multiEd25519.d.mts +2 -228
  159. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  160. package/dist/esm/core/crypto/multiKey.d.mts +2 -254
  161. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  162. package/dist/esm/core/crypto/privateKey.d.mts +2 -71
  163. package/dist/esm/core/crypto/privateKey.mjs +1 -1
  164. package/dist/esm/core/crypto/proof.d.mts +3 -4
  165. package/dist/esm/core/crypto/proof.mjs +1 -1
  166. package/dist/esm/core/crypto/publicKey.d.mts +2 -10
  167. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  168. package/dist/esm/core/crypto/secp256k1.d.mts +2 -274
  169. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  170. package/dist/esm/core/crypto/signature.d.mts +3 -31
  171. package/dist/esm/core/crypto/signature.mjs +1 -1
  172. package/dist/esm/core/crypto/singleKey.d.mts +2 -182
  173. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  174. package/dist/esm/core/crypto/types.d.mts +11 -0
  175. package/dist/esm/core/crypto/types.mjs +2 -0
  176. package/dist/esm/core/crypto/types.mjs.map +1 -0
  177. package/dist/esm/core/crypto/utils.d.mts +3 -1
  178. package/dist/esm/core/hex.d.mts +3 -156
  179. package/dist/esm/core/index.d.mts +3 -16
  180. package/dist/esm/core/index.mjs +1 -1
  181. package/dist/esm/errors/index.d.mts +2 -1
  182. package/dist/esm/errors/index.mjs +1 -1
  183. package/dist/esm/{federatedKeyless-DAYXjY2Y.d.mts → federatedKeyless-CiyplsOB.d.mts} +1 -7
  184. package/dist/esm/index.d.mts +7 -32
  185. package/dist/esm/index.mjs +1 -1
  186. package/dist/esm/internal/abstraction.d.mts +2 -29
  187. package/dist/esm/internal/abstraction.mjs +1 -1
  188. package/dist/esm/internal/account.d.mts +39 -36
  189. package/dist/esm/internal/account.mjs +1 -1
  190. package/dist/esm/internal/ans.d.mts +3 -30
  191. package/dist/esm/internal/ans.mjs +1 -1
  192. package/dist/esm/internal/coin.d.mts +3 -30
  193. package/dist/esm/internal/coin.mjs +1 -1
  194. package/dist/esm/internal/digitalAsset.d.mts +3 -30
  195. package/dist/esm/internal/digitalAsset.mjs +1 -1
  196. package/dist/esm/internal/event.d.mts +2 -8
  197. package/dist/esm/internal/event.mjs +1 -1
  198. package/dist/esm/internal/faucet.d.mts +3 -9
  199. package/dist/esm/internal/faucet.mjs +1 -1
  200. package/dist/esm/internal/fungibleAsset.d.mts +3 -30
  201. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  202. package/dist/esm/internal/general.d.mts +2 -2
  203. package/dist/esm/internal/general.mjs +1 -1
  204. package/dist/esm/internal/keyless.d.mts +14 -32
  205. package/dist/esm/internal/keyless.mjs +1 -1
  206. package/dist/esm/internal/object.d.mts +2 -8
  207. package/dist/esm/internal/object.mjs +1 -1
  208. package/dist/esm/internal/staking.d.mts +2 -8
  209. package/dist/esm/internal/staking.mjs +1 -1
  210. package/dist/esm/internal/table.d.mts +2 -2
  211. package/dist/esm/internal/table.mjs +1 -1
  212. package/dist/esm/internal/transaction.d.mts +3 -3
  213. package/dist/esm/internal/transaction.mjs +1 -1
  214. package/dist/esm/internal/transactionSubmission.d.mts +6 -33
  215. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  216. package/dist/esm/internal/utils/index.d.mts +2 -8
  217. package/dist/esm/internal/utils/index.mjs +1 -1
  218. package/dist/esm/internal/utils/utils.d.mts +2 -8
  219. package/dist/esm/internal/utils/utils.mjs +1 -1
  220. package/dist/esm/internal/view.d.mts +1 -28
  221. package/dist/esm/internal/view.mjs +1 -1
  222. package/dist/esm/transactions/authenticator/account.d.mts +2 -179
  223. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  224. package/dist/esm/transactions/authenticator/index.d.mts +2 -17
  225. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  226. package/dist/esm/transactions/authenticator/transaction.d.mts +2 -17
  227. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  228. package/dist/esm/transactions/index.d.mts +3 -30
  229. package/dist/esm/transactions/index.mjs +1 -1
  230. package/dist/esm/transactions/instances/chainId.d.mts +3 -44
  231. package/dist/esm/transactions/instances/identifier.d.mts +2 -44
  232. package/dist/esm/transactions/instances/index.d.mts +2 -27
  233. package/dist/esm/transactions/instances/index.mjs +1 -1
  234. package/dist/esm/transactions/instances/moduleId.d.mts +3 -57
  235. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  236. package/dist/esm/transactions/instances/multiAgentTransaction.d.mts +2 -60
  237. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  238. package/dist/esm/transactions/instances/rawTransaction.d.mts +2 -150
  239. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  240. package/dist/esm/transactions/instances/rotationProofChallenge.d.mts +2 -12
  241. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  242. package/dist/esm/transactions/instances/signedTransaction.d.mts +2 -23
  243. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  244. package/dist/esm/transactions/instances/simpleTransaction.d.mts +2 -59
  245. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  246. package/dist/esm/transactions/instances/transactionArgument.d.mts +2 -74
  247. package/dist/esm/transactions/instances/transactionPayload.d.mts +2 -300
  248. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  249. package/dist/esm/transactions/management/accountSequenceNumber.d.mts +2 -29
  250. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  251. package/dist/esm/transactions/management/index.d.mts +2 -29
  252. package/dist/esm/transactions/management/index.mjs +1 -1
  253. package/dist/esm/transactions/management/transactionWorker.d.mts +2 -29
  254. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  255. package/dist/esm/transactions/transactionBuilder/helpers.d.mts +3 -30
  256. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  257. package/dist/esm/transactions/transactionBuilder/index.d.mts +2 -29
  258. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  259. package/dist/esm/transactions/transactionBuilder/remoteAbi.d.mts +2 -29
  260. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  261. package/dist/esm/transactions/transactionBuilder/signingMessage.d.mts +1 -28
  262. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  263. package/dist/esm/transactions/transactionBuilder/transactionBuilder.d.mts +3 -29
  264. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  265. package/dist/esm/transactions/typeTag/index.d.mts +2 -462
  266. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  267. package/dist/esm/transactions/typeTag/parser.d.mts +2 -8
  268. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  269. package/dist/esm/transactions/types.d.mts +3 -399
  270. package/dist/esm/types/generated/operations.d.mts +37 -10
  271. package/dist/esm/types/generated/queries.d.mts +6 -2
  272. package/dist/esm/types/generated/queries.mjs +1 -1
  273. package/dist/esm/types/generated/types.d.mts +584 -1172
  274. package/dist/esm/types/generated/types.mjs +1 -1
  275. package/dist/esm/types/generated/types.mjs.map +1 -1
  276. package/dist/esm/types/index.d.mts +4 -2
  277. package/dist/esm/types/index.mjs +1 -1
  278. package/dist/esm/types/indexer.d.mts +8 -2
  279. package/dist/esm/types/types.d.mts +5 -1298
  280. package/dist/esm/types/types.mjs +1 -1
  281. package/dist/esm/utils/const.d.mts +1 -0
  282. package/dist/esm/utils/const.mjs +1 -1
  283. package/dist/esm/utils/helpers.d.mts +2 -6
  284. package/dist/esm/utils/helpers.mjs +1 -1
  285. package/dist/esm/utils/index.d.mts +1 -6
  286. package/dist/esm/utils/index.mjs +1 -1
  287. package/dist/esm/utils/normalizeBundle.d.mts +2 -4
  288. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  289. package/dist/esm/version.d.mts +1 -1
  290. package/dist/esm/version.mjs +1 -1
  291. package/package.json +1 -1
  292. package/src/account/FederatedKeylessAccount.ts +7 -1
  293. package/src/account/KeylessAccount.ts +17 -2
  294. package/src/api/account.ts +135 -2
  295. package/src/api/aptos.ts +6 -2
  296. package/src/api/aptosConfig.ts +73 -2
  297. package/src/api/transaction.ts +10 -6
  298. package/src/api/transactionSubmission/build.ts +5 -1
  299. package/src/api/transactionSubmission/submit.ts +16 -12
  300. package/src/core/crypto/index.ts +1 -0
  301. package/src/core/crypto/multiEd25519.ts +26 -0
  302. package/src/core/crypto/multiKey.ts +20 -1
  303. package/src/core/crypto/types.ts +9 -0
  304. package/src/internal/account.ts +526 -59
  305. package/src/internal/keyless.ts +10 -0
  306. package/src/internal/queries/getAccountAddressesForAuthKey.graphql +8 -0
  307. package/src/internal/queries/getAuthKeysForPublicKey.graphql +11 -0
  308. package/src/internal/transactionSubmission.ts +20 -10
  309. package/src/transactions/instances/transactionPayload.ts +165 -2
  310. package/src/transactions/management/transactionWorker.ts +1 -1
  311. package/src/transactions/transactionBuilder/transactionBuilder.ts +64 -5
  312. package/src/transactions/types.ts +61 -10
  313. package/src/types/codegen.yaml +1 -1
  314. package/src/types/generated/operations.ts +39 -8
  315. package/src/types/generated/queries.ts +53 -0
  316. package/src/types/generated/types.ts +620 -1239
  317. package/src/types/indexer.ts +8 -0
  318. package/src/types/types.ts +151 -3
  319. package/src/utils/const.ts +1 -0
  320. package/src/version.ts +1 -1
  321. package/dist/common/accountAddress-AL8HRxQC.d.ts +0 -3148
  322. package/dist/common/chunk-ZMDE3DNL.js +0 -4
  323. package/dist/esm/chunk-BK56GLTP.mjs +0 -4
  324. package/dist/esm/chunk-BK56GLTP.mjs.map +0 -1
  325. package/dist/esm/chunk-ODAAZLPK.mjs +0 -2
  326. package/dist/esm/chunk-ODAAZLPK.mjs.map +0 -1
  327. package/dist/esm/chunk-RJ7F4JDV.mjs +0 -2
  328. package/dist/esm/chunk-VEGW6HP5.mjs +0 -2
  329. package/dist/esm/chunk-VHNX2NUR.mjs.map +0 -1
  330. package/dist/esm/chunk-XTMUMN74.mjs +0 -2
  331. package/dist/esm/chunk-XTMUMN74.mjs.map +0 -1
  332. package/dist/esm/publicKey-CJOcUwJK.d.mts +0 -213
  333. /package/dist/esm/{chunk-Q4W3WJ2U.mjs.map → chunk-2BOHKN33.mjs.map} +0 -0
  334. /package/dist/esm/{chunk-AMAPBD4D.mjs.map → chunk-4COLMDT3.mjs.map} +0 -0
  335. /package/dist/esm/{chunk-UOP7GBXB.mjs.map → chunk-5URUYE6H.mjs.map} +0 -0
  336. /package/dist/esm/{chunk-V74WPKSY.mjs.map → chunk-FYYEPFML.mjs.map} +0 -0
  337. /package/dist/esm/{chunk-CZYH3G7E.mjs.map → chunk-MML57K5H.mjs.map} +0 -0
  338. /package/dist/esm/{chunk-57J5YBMT.mjs.map → chunk-MNDTFHDB.mjs.map} +0 -0
  339. /package/dist/esm/{chunk-U7HD6PQV.mjs.map → chunk-SLWIGOQL.mjs.map} +0 -0
  340. /package/dist/esm/{chunk-V2QSMVJ5.mjs.map → chunk-TYYVB2A6.mjs.map} +0 -0
  341. /package/dist/esm/{chunk-HETYL3WN.mjs.map → chunk-U3GMNXO4.mjs.map} +0 -0
  342. /package/dist/esm/{chunk-GBNAG7KK.mjs.map → chunk-XZ75T7Q7.mjs.map} +0 -0
  343. /package/dist/esm/{chunk-KRBZ54CY.mjs.map → chunk-Z5URUE4U.mjs.map} +0 -0
@@ -1,329 +1,7 @@
1
- import { Hex } from '../core/hex.mjs';
2
- import { Uint8, Uint16, Uint32, AnyNumber } from '../types/types.mjs';
3
- import '../core/common.mjs';
1
+ export { S as Serializable, b as Serializer, e as ensureBoolean, o as outOfRangeErrorMessage, v as validateNumberInRange } from '../account--Q9z_xMN.mjs';
4
2
  import '../types/indexer.mjs';
5
3
  import '../types/generated/operations.mjs';
6
4
  import '../types/generated/types.mjs';
7
5
  import '../utils/apiEndpoints.mjs';
8
-
9
- /**
10
- * This class serves as a base class for all serializable types. It facilitates
11
- * composable serialization of complex types and enables the serialization of
12
- * instances to their BCS (Binary Canonical Serialization) representation.
13
- * @group Implementation
14
- * @category BCS
15
- */
16
- declare abstract class Serializable {
17
- abstract serialize(serializer: Serializer): void;
18
- /**
19
- * Serializes a `Serializable` value to its BCS representation.
20
- * This function is the TypeScript SDK equivalent of `bcs::to_bytes` in Move.
21
- * @returns the BCS representation of the Serializable instance as a byte buffer.
22
- * @group Implementation
23
- * @category BCS
24
- */
25
- bcsToBytes(): Uint8Array;
26
- /**
27
- * Converts the BCS-serialized bytes of a value into a Hex instance.
28
- * This function provides a Hex representation of the BCS-serialized data for easier handling and manipulation.
29
- * @returns A Hex instance with the BCS-serialized bytes loaded into its underlying Uint8Array.
30
- * @group Implementation
31
- * @category BCS
32
- */
33
- bcsToHex(): Hex;
34
- /**
35
- * Returns the hex string representation of the `Serializable` value without the 0x prefix.
36
- * @returns the hex format as a string without `0x` prefix.
37
- */
38
- toStringWithoutPrefix(): string;
39
- /**
40
- * Returns the hex string representation of the `Serializable` value with the 0x prefix.
41
- * @returns the hex formatas a string prefixed by `0x`.
42
- */
43
- toString(): string;
44
- }
45
- /**
46
- * A class for serializing various data types into a binary format.
47
- * It provides methods to serialize strings, bytes, numbers, and other serializable objects
48
- * using the Binary Coded Serialization (BCS) layout. The serialized data can be retrieved as a
49
- * Uint8Array.
50
- * @group Implementation
51
- * @category BCS
52
- */
53
- declare class Serializer {
54
- private buffer;
55
- private offset;
56
- /**
57
- * Constructs a serializer with a buffer of size `length` bytes, 64 bytes by default.
58
- * The `length` must be greater than 0.
59
- *
60
- * @param length - The size of the buffer in bytes.
61
- * @group Implementation
62
- * @category BCS
63
- */
64
- constructor(length?: number);
65
- /**
66
- * Ensures that the internal buffer can accommodate the specified number of bytes.
67
- * This function dynamically resizes the buffer if the current size is insufficient.
68
- *
69
- * @param bytes - The number of bytes to ensure the buffer can handle.
70
- * @group Implementation
71
- * @category BCS
72
- */
73
- private ensureBufferWillHandleSize;
74
- /**
75
- * Appends the specified values to the buffer, ensuring that the buffer can accommodate the new data.
76
- *
77
- * @param {Uint8Array} values - The values to be appended to the buffer.
78
- * @group Implementation
79
- * @category BCS
80
- */
81
- protected appendToBuffer(values: Uint8Array): void;
82
- /**
83
- * Serializes a value into the buffer using the provided function, ensuring the buffer can accommodate the size.
84
- *
85
- * @param fn - The function to serialize the value, which takes a byte offset, the value to serialize, and an optional little-endian flag.
86
- * @param fn.byteOffset - The byte offset at which to write the value.
87
- * @param fn.value - The numeric value to serialize into the buffer.
88
- * @param fn.littleEndian - Optional flag indicating whether to use little-endian byte order (defaults to true).
89
- * @group Implementation
90
- * @category BCS
91
- */
92
- private serializeWithFunction;
93
- /**
94
- * Serializes a string. UTF8 string is supported.
95
- * The number of bytes in the string content is serialized first, as a uleb128-encoded u32 integer.
96
- * Then the string content is serialized as UTF8 encoded bytes.
97
- *
98
- * BCS layout for "string": string_length | string_content
99
- * where string_length is a u32 integer encoded as a uleb128 integer, equal to the number of bytes in string_content.
100
- *
101
- * @param value - The string to serialize.
102
- *
103
- * @example
104
- * ```typescript
105
- * const serializer = new Serializer();
106
- * serializer.serializeStr("1234abcd");
107
- * assert(serializer.toUint8Array() === new Uint8Array([8, 49, 50, 51, 52, 97, 98, 99, 100]));
108
- * ```
109
- * @group Implementation
110
- * @category BCS
111
- */
112
- serializeStr(value: string): void;
113
- /**
114
- * Serializes an array of bytes.
115
- *
116
- * This function encodes the length of the byte array as a u32 integer in uleb128 format, followed by the byte array itself.
117
- * BCS layout for "bytes": bytes_length | bytes
118
- * where bytes_length is a u32 integer encoded as a uleb128 integer, equal to the length of the bytes array.
119
- * @param value - The byte array to serialize.
120
- * @group Implementation
121
- * @category BCS
122
- */
123
- serializeBytes(value: Uint8Array): void;
124
- /**
125
- * Serializes an array of bytes with a known length, allowing for efficient deserialization without needing to serialize the
126
- * length itself.
127
- * When deserializing, the number of bytes to deserialize needs to be passed in.
128
-
129
- * @param value - The Uint8Array to be serialized.
130
- * @group Implementation
131
- * @category BCS
132
- */
133
- serializeFixedBytes(value: Uint8Array): void;
134
- /**
135
- * Serializes a boolean value into a byte representation.
136
- *
137
- * The BCS layout for a boolean uses one byte, where "0x01" represents true and "0x00" represents false.
138
- *
139
- * @param value - The boolean value to serialize.
140
- * @group Implementation
141
- * @category BCS
142
- */
143
- serializeBool(value: boolean): void;
144
- /**
145
- * Serializes a Uint8 value and appends it to the buffer.
146
- * BCS layout for "uint8": One byte. Binary format in little-endian representation.
147
- *
148
- * @param value - The Uint8 value to serialize.
149
- * @group Implementation
150
- * @category BCS
151
- */
152
- serializeU8(value: Uint8): void;
153
- /**
154
- * Serializes a uint16 number.
155
- *
156
- * @group Implementation
157
- * @category BCS
158
-
159
- */
160
- /**
161
- * Serializes a 16-bit unsigned integer value into a binary format.
162
- * BCS layout for "uint16": Two bytes. Binary format in little-endian representation.
163
- *
164
- * @param value - The 16-bit unsigned integer value to serialize.
165
- * @example
166
- * ```typescript
167
- * const serializer = new Serializer();
168
- * serializer.serializeU16(4660);
169
- * assert(serializer.toUint8Array() === new Uint8Array([0x34, 0x12]));
170
- * ```
171
- * @group Implementation
172
- * @category BCS
173
- */
174
- serializeU16(value: Uint16): void;
175
- /**
176
- * Serializes a 32-bit unsigned integer value into a binary format.
177
- * This function is useful for encoding data that needs to be stored or transmitted in a compact form.
178
- * @example
179
- * ```typescript
180
- * const serializer = new Serializer();
181
- * serializer.serializeU32(305419896);
182
- * assert(serializer.toUint8Array() === new Uint8Array([0x78, 0x56, 0x34, 0x12]));
183
- * ```
184
- * @param value - The 32-bit unsigned integer value to serialize.
185
- * @group Implementation
186
- * @category BCS
187
- */
188
- serializeU32(value: Uint32): void;
189
- /**
190
- * Serializes a 64-bit unsigned integer into a format suitable for storage or transmission.
191
- * This function breaks down the value into two 32-bit components and writes them in little-endian order.
192
- *
193
- * @param value - The 64-bit unsigned integer to serialize, represented as a number.
194
- * @example
195
- * ```ts
196
- * const serializer = new Serializer();
197
- * serializer.serializeU64(1311768467750121216);
198
- * assert(serializer.toUint8Array() === new Uint8Array([0x00, 0xEF, 0xCD, 0xAB, 0x78, 0x56, 0x34, 0x12]));
199
- * ```
200
- * @group Implementation
201
- * @category BCS
202
- */
203
- serializeU64(value: AnyNumber): void;
204
- /**
205
- * Serializes a U128 value into a format suitable for storage or transmission.
206
- *
207
- * @param value - The U128 value to serialize, represented as a number.
208
- * @group Implementation
209
- * @category BCS
210
- */
211
- serializeU128(value: AnyNumber): void;
212
- /**
213
- * Serializes a U256 value into a byte representation.
214
- * This function is essential for encoding large numbers in a compact format suitable for transmission or storage.
215
- *
216
- * @param value - The U256 value to serialize, represented as an AnyNumber.
217
- * @group Implementation
218
- * @category BCS
219
- */
220
- serializeU256(value: AnyNumber): void;
221
- /**
222
- * Serializes a 32-bit unsigned integer as a variable-length ULEB128 encoded byte array.
223
- * BCS uses uleb128 encoding in two cases: (1) lengths of variable-length sequences and (2) tags of enum values
224
- *
225
- * @param val - The 32-bit unsigned integer value to be serialized.
226
- * @group Implementation
227
- * @category BCS
228
- */
229
- serializeU32AsUleb128(val: Uint32): void;
230
- /**
231
- * Returns the buffered bytes as a Uint8Array.
232
- *
233
- * This function allows you to retrieve the byte representation of the buffer up to the current offset.
234
- *
235
- * @returns Uint8Array - The byte array representation of the buffer.
236
- * @group Implementation
237
- * @category BCS
238
- */
239
- toUint8Array(): Uint8Array;
240
- /**
241
- * Serializes a `Serializable` value, facilitating composable serialization.
242
- *
243
- * @param value The Serializable value to serialize.
244
- *
245
- * @returns the serializer instance
246
- * @group Implementation
247
- * @category BCS
248
- */
249
- serialize<T extends Serializable>(value: T): void;
250
- /**
251
- * Serializes an array of BCS Serializable values to a serializer instance.
252
- * The bytes are added to the serializer instance's byte buffer.
253
- *
254
- * @param values The array of BCS Serializable values
255
- * @example
256
- * const addresses = new Array<AccountAddress>(
257
- * AccountAddress.from("0x1"),
258
- * AccountAddress.from("0x2"),
259
- * AccountAddress.from("0xa"),
260
- * AccountAddress.from("0xb"),
261
- * );
262
- * const serializer = new Serializer();
263
- * serializer.serializeVector(addresses);
264
- * const serializedBytes = serializer.toUint8Array();
265
- * // serializedBytes is now the BCS-serialized bytes
266
- * // The equivalent value in Move would be:
267
- * // `bcs::to_bytes(&vector<address> [@0x1, @0x2, @0xa, @0xb])`;
268
- * @group Implementation
269
- * @category BCS
270
- */
271
- serializeVector<T extends Serializable>(values: Array<T>): void;
272
- /**
273
- * Serializes an optional value which can be a Serializable, string, or Uint8Array.
274
- * For strings and Uint8Arrays, it uses the appropriate serialization method.
275
- *
276
- * @param value The value to serialize (Serializable, string, Uint8Array, or undefined)
277
- * @param len Optional fixed length for Uint8Array serialization. If provided, uses serializeFixedBytes instead of serializeBytes
278
- *
279
- * @example
280
- * ```typescript
281
- * const serializer = new Serializer();
282
- * serializer.serializeOption("hello"); // Serializes optional string
283
- * serializer.serializeOption(new Uint8Array([1, 2, 3])); // Serializes optional bytes
284
- * serializer.serializeOption(new Uint8Array([1, 2, 3]), 3); // Serializes optional fixed-length bytes
285
- * serializer.serializeOption(new AccountAddress(...)); // Serializes optional Serializable
286
- * serializer.serializeOption(undefined); // Serializes none case
287
- * ```
288
- * @group Implementation
289
- * @category BCS
290
- */
291
- serializeOption<T extends Serializable | string | Uint8Array>(value?: T, len?: number): void;
292
- /**
293
- * @deprecated use `serializeOption` instead.
294
- * Serializes an optional string, supporting UTF8 encoding.
295
- * The function encodes the existence of the string first, followed by the length and content if it exists.
296
- *
297
- * BCS layout for optional "string": 1 | string_length | string_content
298
- * where string_length is a u32 integer encoded as a uleb128 integer, equal to the number of bytes in string_content.
299
- * BCS layout for undefined: 0
300
- *
301
- * @param value - The optional string to serialize. If undefined, it will serialize as 0.
302
- * @group Implementation
303
- * @category BCS
304
- */
305
- serializeOptionStr(value?: string): void;
306
- }
307
- /**
308
- * @group Implementation
309
- * @category BCS
310
- */
311
- declare function ensureBoolean(value: unknown): asserts value is boolean;
312
- /**
313
- * @group Implementation
314
- * @category BCS
315
- */
316
- declare const outOfRangeErrorMessage: (value: AnyNumber, min: AnyNumber, max: AnyNumber) => string;
317
- /**
318
- * Validates that a given number is within a specified range.
319
- * This function throws an error if the value is outside the defined minimum and maximum bounds.
320
- *
321
- * @param value - The number to validate.
322
- * @param minValue - The minimum allowable value (inclusive).
323
- * @param maxValue - The maximum allowable value (inclusive).
324
- * @group Implementation
325
- * @category BCS
326
- */
327
- declare function validateNumberInRange<T extends AnyNumber>(value: T, minValue: T, maxValue: T): void;
328
-
329
- export { Serializable, Serializer, ensureBoolean, outOfRangeErrorMessage, validateNumberInRange };
6
+ import '../utils/const.mjs';
7
+ import '../core/common.mjs';
@@ -1,2 +1,2 @@
1
- import{a as c,b as o,c as d,d as z,e as m,f as U,g as y}from"./chunk-ORMOQWWH.mjs";import{a as b}from"./chunk-FLZPUYXQ.mjs";import{a as s}from"./chunk-EBMEXURY.mjs";import{b as u}from"./chunk-STY74NUA.mjs";var t=class i extends s{constructor(e){super(),this.values=e}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){if(this.values[0]!==void 0&&!(this.values[0]instanceof o)){new p(this.bcsToBytes()).serializeForScriptFunction(e);return}e.serializeU32AsUleb128(4),e.serialize(this)}static U8(e){let r;if(Array.isArray(e)&&e.length===0)r=[];else if(Array.isArray(e)&&typeof e[0]=="number")r=e;else if(typeof e=="string"){let n=u.fromHexInput(e);r=Array.from(n.toUint8Array())}else if(e instanceof Uint8Array)r=Array.from(e);else throw new Error("Invalid input type, must be an number[], Uint8Array, or hex string");return new i(r.map(n=>new o(n)))}static U16(e){return new i(e.map(r=>new d(r)))}static U32(e){return new i(e.map(r=>new z(r)))}static U64(e){return new i(e.map(r=>new m(r)))}static U128(e){return new i(e.map(r=>new U(r)))}static U256(e){return new i(e.map(r=>new y(r)))}static Bool(e){return new i(e.map(r=>new c(r)))}static MoveString(e){return new i(e.map(r=>new a(r)))}serialize(e){e.serializeVector(this.values)}static deserialize(e,r){let n=e.deserializeUleb128AsU32(),l=new Array;for(let w=0;w<n;w+=1)l.push(r.deserialize(e));return new i(l)}},p=class i extends s{constructor(e){super(),this.value=u.fromHexInput(e).toUint8Array()}serialize(e){e.serializeBytes(this.value)}serializeForEntryFunction(e){this.serialize(e)}serializeForScriptFunction(e){e.serializeU32AsUleb128(9),this.serialize(e)}static deserialize(e){return new i(e.deserializeBytes())}toMoveVector(e){let r=new b(this.bcsToBytes());r.deserializeUleb128AsU32();let n=r.deserializeVector(e);return new t(n)}},a=class i extends s{constructor(e){super(),this.value=e}serialize(e){e.serializeStr(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){let n=new TextEncoder().encode(this.value);t.U8(n).serializeForScriptFunction(e)}static deserialize(e){return new i(e.deserializeStr())}},A=class i extends s{constructor(e){super(),typeof e<"u"&&e!==null?this.vec=new t([e]):this.vec=new t([]),[this.value]=this.vec.values}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}unwrap(){if(this.isSome())return this.vec.values[0];throw new Error("Called unwrap on a MoveOption with no value")}isSome(){return this.vec.values.length===1}serialize(e){this.vec.serialize(e)}static U8(e){return new i(e!=null?new o(e):void 0)}static U16(e){return new i(e!=null?new d(e):void 0)}static U32(e){return new i(e!=null?new z(e):void 0)}static U64(e){return new i(e!=null?new m(e):void 0)}static U128(e){return new i(e!=null?new U(e):void 0)}static U256(e){return new i(e!=null?new y(e):void 0)}static Bool(e){return new i(e!=null?new c(e):void 0)}static MoveString(e){return new i(e!=null?new a(e):void 0)}static deserialize(e,r){let n=t.deserialize(e,r);return new i(n.values[0])}};export{t as a,p as b,a as c,A as d};
2
- //# sourceMappingURL=chunk-Q4W3WJ2U.mjs.map
1
+ import{a as c,b as o,c as d,d as z,e as m,f as U,g as y}from"./chunk-ORMOQWWH.mjs";import{a as s}from"./chunk-EBMEXURY.mjs";import{a as b}from"./chunk-FLZPUYXQ.mjs";import{b as u}from"./chunk-STY74NUA.mjs";var t=class i extends s{constructor(e){super(),this.values=e}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){if(this.values[0]!==void 0&&!(this.values[0]instanceof o)){new p(this.bcsToBytes()).serializeForScriptFunction(e);return}e.serializeU32AsUleb128(4),e.serialize(this)}static U8(e){let r;if(Array.isArray(e)&&e.length===0)r=[];else if(Array.isArray(e)&&typeof e[0]=="number")r=e;else if(typeof e=="string"){let n=u.fromHexInput(e);r=Array.from(n.toUint8Array())}else if(e instanceof Uint8Array)r=Array.from(e);else throw new Error("Invalid input type, must be an number[], Uint8Array, or hex string");return new i(r.map(n=>new o(n)))}static U16(e){return new i(e.map(r=>new d(r)))}static U32(e){return new i(e.map(r=>new z(r)))}static U64(e){return new i(e.map(r=>new m(r)))}static U128(e){return new i(e.map(r=>new U(r)))}static U256(e){return new i(e.map(r=>new y(r)))}static Bool(e){return new i(e.map(r=>new c(r)))}static MoveString(e){return new i(e.map(r=>new a(r)))}serialize(e){e.serializeVector(this.values)}static deserialize(e,r){let n=e.deserializeUleb128AsU32(),l=new Array;for(let w=0;w<n;w+=1)l.push(r.deserialize(e));return new i(l)}},p=class i extends s{constructor(e){super(),this.value=u.fromHexInput(e).toUint8Array()}serialize(e){e.serializeBytes(this.value)}serializeForEntryFunction(e){this.serialize(e)}serializeForScriptFunction(e){e.serializeU32AsUleb128(9),this.serialize(e)}static deserialize(e){return new i(e.deserializeBytes())}toMoveVector(e){let r=new b(this.bcsToBytes());r.deserializeUleb128AsU32();let n=r.deserializeVector(e);return new t(n)}},a=class i extends s{constructor(e){super(),this.value=e}serialize(e){e.serializeStr(this.value)}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}serializeForScriptFunction(e){let n=new TextEncoder().encode(this.value);t.U8(n).serializeForScriptFunction(e)}static deserialize(e){return new i(e.deserializeStr())}},A=class i extends s{constructor(e){super(),typeof e<"u"&&e!==null?this.vec=new t([e]):this.vec=new t([]),[this.value]=this.vec.values}serializeForEntryFunction(e){let r=this.bcsToBytes();e.serializeBytes(r)}unwrap(){if(this.isSome())return this.vec.values[0];throw new Error("Called unwrap on a MoveOption with no value")}isSome(){return this.vec.values.length===1}serialize(e){this.vec.serialize(e)}static U8(e){return new i(e!=null?new o(e):void 0)}static U16(e){return new i(e!=null?new d(e):void 0)}static U32(e){return new i(e!=null?new z(e):void 0)}static U64(e){return new i(e!=null?new m(e):void 0)}static U128(e){return new i(e!=null?new U(e):void 0)}static U256(e){return new i(e!=null?new y(e):void 0)}static Bool(e){return new i(e!=null?new c(e):void 0)}static MoveString(e){return new i(e!=null?new a(e):void 0)}static deserialize(e,r){let n=t.deserialize(e,r);return new i(n.values[0])}};export{t as a,p as b,a as c,A as d};
2
+ //# sourceMappingURL=chunk-2BOHKN33.mjs.map
@@ -1,2 +1,2 @@
1
- import{c as s}from"./chunk-GBNAG7KK.mjs";import{w as i,x as m}from"./chunk-VHNX2NUR.mjs";import{b as n}from"./chunk-UOP7GBXB.mjs";async function b(t){let{aptosConfig:a,handle:e,data:o,options:r}=t;return(await n({aptosConfig:a,originMethod:"getTableItem",path:`tables/${e}/item`,params:{ledger_version:r?.ledgerVersion},body:o})).data}async function f(t){let{aptosConfig:a,options:e}=t,o={query:i,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await s({aptosConfig:a,query:o,originMethod:"getTableItemsData"})).table_items}async function T(t){let{aptosConfig:a,options:e}=t,o={query:m,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await s({aptosConfig:a,query:o,originMethod:"getTableItemsMetadata"})).table_metadatas}export{b as a,f as b,T as c};
2
- //# sourceMappingURL=chunk-AMAPBD4D.mjs.map
1
+ import{c as s}from"./chunk-XZ75T7Q7.mjs";import{y as i,z as m}from"./chunk-UL777LTI.mjs";import{b as n}from"./chunk-5URUYE6H.mjs";async function b(t){let{aptosConfig:a,handle:e,data:o,options:r}=t;return(await n({aptosConfig:a,originMethod:"getTableItem",path:`tables/${e}/item`,params:{ledger_version:r?.ledgerVersion},body:o})).data}async function f(t){let{aptosConfig:a,options:e}=t,o={query:i,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await s({aptosConfig:a,query:o,originMethod:"getTableItemsData"})).table_items}async function T(t){let{aptosConfig:a,options:e}=t,o={query:m,variables:{where_condition:e?.where,offset:e?.offset,limit:e?.limit,order_by:e?.orderBy}};return(await s({aptosConfig:a,query:o,originMethod:"getTableItemsMetadata"})).table_metadatas}export{b as a,f as b,T as c};
2
+ //# sourceMappingURL=chunk-4COLMDT3.mjs.map
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=chunk-5HXLZHDW.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -1,2 +1,2 @@
1
- import{b as p}from"./chunk-HETYL3WN.mjs";async function o(e){let{type:t,originMethod:s,path:i,body:r,acceptType:R,contentType:f,params:c,aptosConfig:n,overrides:A}=e,d=n.getRequestUrl(t);return p({url:d,method:"POST",originMethod:s,path:i,body:r,contentType:f,acceptType:R,params:c,overrides:A},n,e.type)}async function q(e){let{aptosConfig:t}=e;return o({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function C(e){let{aptosConfig:t}=e;return o({...e,type:"Indexer",overrides:{...t.clientConfig,...t.indexerConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.indexerConfig?.HEADERS}}})}async function E(e){let{aptosConfig:t}=e,s={...t,clientConfig:{...t.clientConfig}};return delete s?.clientConfig?.API_KEY,o({...e,type:"Faucet",overrides:{...s.clientConfig,...s.faucetConfig,...e.overrides,HEADERS:{...s.clientConfig?.HEADERS,...s.faucetConfig?.HEADERS}}})}async function a(e){return o({...e,type:"Pepper"})}async function m(e){return o({...e,type:"Prover"})}export{o as a,q as b,C as c,E as d,a as e,m as f};
2
- //# sourceMappingURL=chunk-UOP7GBXB.mjs.map
1
+ import{b as p}from"./chunk-U3GMNXO4.mjs";async function o(e){let{type:t,originMethod:s,path:i,body:r,acceptType:R,contentType:f,params:c,aptosConfig:n,overrides:A}=e,d=n.getRequestUrl(t);return p({url:d,method:"POST",originMethod:s,path:i,body:r,contentType:f,acceptType:R,params:c,overrides:A},n,e.type)}async function q(e){let{aptosConfig:t}=e;return o({...e,type:"Fullnode",overrides:{...t.clientConfig,...t.fullnodeConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.fullnodeConfig?.HEADERS}}})}async function C(e){let{aptosConfig:t}=e;return o({...e,type:"Indexer",overrides:{...t.clientConfig,...t.indexerConfig,...e.overrides,HEADERS:{...t.clientConfig?.HEADERS,...t.indexerConfig?.HEADERS}}})}async function E(e){let{aptosConfig:t}=e,s={...t,clientConfig:{...t.clientConfig}};return delete s?.clientConfig?.API_KEY,o({...e,type:"Faucet",overrides:{...s.clientConfig,...s.faucetConfig,...e.overrides,HEADERS:{...s.clientConfig?.HEADERS,...s.faucetConfig?.HEADERS}}})}async function a(e){return o({...e,type:"Pepper"})}async function m(e){return o({...e,type:"Prover"})}export{o as a,q as b,C as c,E as d,a as e,m as f};
2
+ //# sourceMappingURL=chunk-5URUYE6H.mjs.map