@aptos-labs/ts-sdk 1.19.0 → 1.21.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 (287) hide show
  1. package/dist/common/{accountAddress-Lv-GSihU.d.ts → accountAddress-NYtf3uZq.d.ts} +31 -20
  2. package/dist/common/cli/index.d.ts +86 -12
  3. package/dist/common/cli/index.js +1 -1
  4. package/dist/common/cli/index.js.map +1 -1
  5. package/dist/common/index.d.ts +117 -7
  6. package/dist/common/index.js +62 -51
  7. package/dist/common/index.js.map +1 -1
  8. package/dist/esm/account/Account.mjs +1 -1
  9. package/dist/esm/account/Ed25519Account.mjs +1 -1
  10. package/dist/esm/account/EphemeralKeyPair.mjs +1 -1
  11. package/dist/esm/account/KeylessAccount.mjs +1 -1
  12. package/dist/esm/account/MultiKeyAccount.mjs +1 -1
  13. package/dist/esm/account/SingleKeyAccount.mjs +1 -1
  14. package/dist/esm/account/index.mjs +1 -1
  15. package/dist/esm/api/account.d.mts +3 -3
  16. package/dist/esm/api/account.mjs +1 -1
  17. package/dist/esm/api/ans.mjs +1 -1
  18. package/dist/esm/api/aptos.d.mts +3 -1
  19. package/dist/esm/api/aptos.mjs +1 -1
  20. package/dist/esm/api/aptosConfig.mjs +1 -1
  21. package/dist/esm/api/coin.mjs +1 -1
  22. package/dist/esm/api/digitalAsset.d.mts +49 -1
  23. package/dist/esm/api/digitalAsset.mjs +1 -1
  24. package/dist/esm/api/event.mjs +1 -1
  25. package/dist/esm/api/faucet.mjs +1 -1
  26. package/dist/esm/api/fungibleAsset.mjs +1 -1
  27. package/dist/esm/api/general.d.mts +21 -1
  28. package/dist/esm/api/general.mjs +1 -1
  29. package/dist/esm/api/index.d.mts +1 -0
  30. package/dist/esm/api/index.mjs +1 -1
  31. package/dist/esm/api/keyless.mjs +1 -1
  32. package/dist/esm/api/object.d.mts +39 -0
  33. package/dist/esm/api/object.mjs +2 -0
  34. package/dist/esm/api/object.mjs.map +1 -0
  35. package/dist/esm/api/staking.mjs +1 -1
  36. package/dist/esm/api/table.mjs +1 -1
  37. package/dist/esm/api/transaction.mjs +1 -1
  38. package/dist/esm/api/transactionSubmission/build.mjs +1 -1
  39. package/dist/esm/api/transactionSubmission/management.mjs +1 -1
  40. package/dist/esm/api/transactionSubmission/sign.mjs +1 -1
  41. package/dist/esm/api/transactionSubmission/simulate.mjs +1 -1
  42. package/dist/esm/api/transactionSubmission/submit.mjs +1 -1
  43. package/dist/esm/api/utils.mjs +1 -1
  44. package/dist/esm/bcs/index.mjs +1 -1
  45. package/dist/esm/{chunk-4ZM7V7HN.mjs → chunk-3DCHEXE3.mjs} +2 -2
  46. package/dist/esm/chunk-3NPBKAPF.mjs +2 -0
  47. package/dist/esm/chunk-3NPBKAPF.mjs.map +1 -0
  48. package/dist/esm/{chunk-3EDNV7KS.mjs → chunk-43IKKJ2Y.mjs} +2 -2
  49. package/dist/esm/{chunk-E2JEBCSY.mjs → chunk-463B3NF7.mjs} +2 -2
  50. package/dist/esm/{chunk-MUAV4P6C.mjs → chunk-4ARX2MGY.mjs} +2 -2
  51. package/dist/esm/chunk-4GNJJZ4R.mjs +2 -0
  52. package/dist/esm/chunk-4GNJJZ4R.mjs.map +1 -0
  53. package/dist/esm/chunk-4KYQ7N3N.mjs +2 -0
  54. package/dist/esm/{chunk-EAXCOIOP.mjs.map → chunk-4KYQ7N3N.mjs.map} +1 -1
  55. package/dist/esm/chunk-5M235PLS.mjs +2 -0
  56. package/dist/esm/chunk-5M235PLS.mjs.map +1 -0
  57. package/dist/esm/{chunk-MH6HIFMG.mjs → chunk-67BD7B6N.mjs} +2 -2
  58. package/dist/esm/chunk-6TRGVQLA.mjs +2 -0
  59. package/dist/esm/chunk-6TRGVQLA.mjs.map +1 -0
  60. package/dist/esm/{chunk-VRSZLJVR.mjs → chunk-7CMCN6LB.mjs} +2 -2
  61. package/dist/esm/{chunk-IOMJ5OWV.mjs → chunk-7HS4UJGE.mjs} +2 -2
  62. package/dist/esm/{chunk-HED6CPN2.mjs → chunk-7RVYF5OP.mjs} +2 -2
  63. package/dist/esm/{chunk-4EPLOSKY.mjs → chunk-7WFKAS7T.mjs} +2 -2
  64. package/dist/esm/{chunk-YXXEXFQH.mjs → chunk-7X6HZUXX.mjs} +2 -2
  65. package/dist/esm/{chunk-N5A4L6Z6.mjs → chunk-CUSKA6RZ.mjs} +2 -2
  66. package/dist/esm/{chunk-A2Z7I2EY.mjs → chunk-F6REP536.mjs} +2 -2
  67. package/dist/esm/{chunk-ILXK4OH5.mjs → chunk-GWH34VNI.mjs} +2 -2
  68. package/dist/esm/{chunk-JM7CSDJ3.mjs → chunk-H6CS3BD7.mjs} +2 -2
  69. package/dist/esm/{chunk-OKLLJQM4.mjs → chunk-H6QWMF3Q.mjs} +2 -2
  70. package/dist/esm/{chunk-7JUBWA7V.mjs → chunk-I2T6BJOA.mjs} +2 -2
  71. package/dist/esm/{chunk-GXLFQEPR.mjs → chunk-IN2L5ZAT.mjs} +2 -2
  72. package/dist/esm/{chunk-RUVDYKIZ.mjs → chunk-IPGKZUSA.mjs} +2 -2
  73. package/dist/esm/{chunk-KUAN2WZF.mjs → chunk-IPTCWBFV.mjs} +2 -2
  74. package/dist/esm/{chunk-ICE6OL3A.mjs → chunk-J5KAD2RM.mjs} +2 -2
  75. package/dist/esm/{chunk-3KZ7HFFA.mjs → chunk-J5YHMYHB.mjs} +2 -2
  76. package/dist/esm/{chunk-Y37TV7SM.mjs → chunk-JB5R6RGF.mjs} +2 -2
  77. package/dist/esm/{chunk-4U3MAEYH.mjs → chunk-KDIPFPMS.mjs} +2 -2
  78. package/dist/esm/chunk-L36ZHC7J.mjs +2 -0
  79. package/dist/esm/{chunk-YE5B2S5L.mjs.map → chunk-L36ZHC7J.mjs.map} +1 -1
  80. package/dist/esm/{chunk-GPZEPKKD.mjs → chunk-L6RINMT6.mjs} +2 -2
  81. package/dist/esm/{chunk-47M33ENP.mjs → chunk-LBKYNX5K.mjs} +2 -2
  82. package/dist/esm/{chunk-LWFSV3OA.mjs → chunk-LBU3LV7I.mjs} +2 -2
  83. package/dist/esm/{chunk-LLLINNAG.mjs → chunk-LTMOMXPN.mjs} +2 -2
  84. package/dist/esm/chunk-LTMOMXPN.mjs.map +1 -0
  85. package/dist/esm/{chunk-CAC7G2HC.mjs → chunk-NAGFCYG6.mjs} +2 -2
  86. package/dist/esm/{chunk-LAZTLEXF.mjs → chunk-NLJVP5RP.mjs} +2 -2
  87. package/dist/esm/{chunk-XSHUCBNT.mjs → chunk-O7XEE7QT.mjs} +2 -2
  88. package/dist/esm/{chunk-QTNKFKDE.mjs → chunk-OVG4SGPI.mjs} +2 -2
  89. package/dist/esm/{chunk-3JEL6FIZ.mjs → chunk-P43CXEO4.mjs} +2 -2
  90. package/dist/esm/chunk-PY23BQ2H.mjs +2 -0
  91. package/dist/esm/chunk-PY23BQ2H.mjs.map +1 -0
  92. package/dist/esm/{chunk-FGFQZQGX.mjs → chunk-Q7ZP25NJ.mjs} +2 -2
  93. package/dist/esm/chunk-S6H5Q2IK.mjs +2 -0
  94. package/dist/esm/chunk-S6H5Q2IK.mjs.map +1 -0
  95. package/dist/esm/chunk-S7G6VBUB.mjs +2 -0
  96. package/dist/esm/chunk-S7G6VBUB.mjs.map +1 -0
  97. package/dist/esm/{chunk-FD2VCIZG.mjs → chunk-SK2HTEP7.mjs} +2 -2
  98. package/dist/esm/{chunk-V5JJHVMP.mjs → chunk-SQQ2424E.mjs} +2 -2
  99. package/dist/esm/{chunk-64P5SB7N.mjs → chunk-T4NXIMZL.mjs} +2 -2
  100. package/dist/esm/{chunk-PS7L2TLP.mjs → chunk-T7YRD4PM.mjs} +2 -2
  101. package/dist/esm/{chunk-OLVNRYGT.mjs → chunk-TCEOTADF.mjs} +2 -2
  102. package/dist/esm/{chunk-BCY5UOGP.mjs → chunk-TWRYY6DD.mjs} +2 -2
  103. package/dist/esm/{chunk-VY2MJZWM.mjs → chunk-TZOKV22Z.mjs} +2 -2
  104. package/dist/esm/{chunk-K6NUFABY.mjs → chunk-UJYWEIQ2.mjs} +2 -2
  105. package/dist/esm/{chunk-HACVLK5I.mjs → chunk-UYF7AQLE.mjs} +2 -2
  106. package/dist/esm/{chunk-YF6UA3XW.mjs → chunk-V5COHBA4.mjs} +2 -2
  107. package/dist/esm/{chunk-BI5P5ASH.mjs → chunk-VEGT6ZPK.mjs} +2 -2
  108. package/dist/esm/{chunk-TFNJPJF6.mjs → chunk-VN2CRWOI.mjs} +2 -2
  109. package/dist/esm/{chunk-WUWJLSGN.mjs → chunk-VQPLSJEI.mjs} +2 -2
  110. package/dist/esm/{chunk-ZQUDGZIZ.mjs → chunk-W26LO3CR.mjs} +2 -2
  111. package/dist/esm/{chunk-HJT2Q5NL.mjs → chunk-XVWNPR4T.mjs} +2 -2
  112. package/dist/esm/{chunk-6ZQWPHLV.mjs → chunk-XWVMFCW3.mjs} +2 -2
  113. package/dist/esm/{chunk-GMHGYDZQ.mjs → chunk-Y2H7FG2P.mjs} +2 -2
  114. package/dist/esm/{chunk-HIHKTLLM.mjs → chunk-YMFEA2TJ.mjs} +55 -44
  115. package/dist/esm/chunk-YMFEA2TJ.mjs.map +1 -0
  116. package/dist/esm/chunk-Z4CGG42L.mjs +2 -0
  117. package/dist/esm/chunk-Z4CGG42L.mjs.map +1 -0
  118. package/dist/esm/chunk-ZL4JYTID.mjs +2 -0
  119. package/dist/esm/chunk-ZL4JYTID.mjs.map +1 -0
  120. package/dist/esm/cli/index.mjs +1 -1
  121. package/dist/esm/cli/move.d.mts +85 -11
  122. package/dist/esm/cli/move.mjs +1 -1
  123. package/dist/esm/client/core.mjs +1 -1
  124. package/dist/esm/client/get.mjs +1 -1
  125. package/dist/esm/client/index.mjs +1 -1
  126. package/dist/esm/client/post.mjs +1 -1
  127. package/dist/esm/core/crypto/ed25519.mjs +1 -1
  128. package/dist/esm/core/crypto/ephemeral.mjs +1 -1
  129. package/dist/esm/core/crypto/index.mjs +1 -1
  130. package/dist/esm/core/crypto/keyless.mjs +1 -1
  131. package/dist/esm/core/crypto/multiEd25519.mjs +1 -1
  132. package/dist/esm/core/crypto/multiKey.mjs +1 -1
  133. package/dist/esm/core/crypto/proof.mjs +1 -1
  134. package/dist/esm/core/crypto/publicKey.mjs +1 -1
  135. package/dist/esm/core/crypto/secp256k1.mjs +1 -1
  136. package/dist/esm/core/crypto/signature.mjs +1 -1
  137. package/dist/esm/core/crypto/singleKey.mjs +1 -1
  138. package/dist/esm/core/index.mjs +1 -1
  139. package/dist/esm/index.d.mts +3 -2
  140. package/dist/esm/index.mjs +1 -1
  141. package/dist/esm/internal/account.d.mts +3 -3
  142. package/dist/esm/internal/account.mjs +1 -1
  143. package/dist/esm/internal/ans.mjs +1 -1
  144. package/dist/esm/internal/coin.mjs +1 -1
  145. package/dist/esm/internal/digitalAsset.d.mts +14 -4
  146. package/dist/esm/internal/digitalAsset.mjs +1 -1
  147. package/dist/esm/internal/event.mjs +1 -1
  148. package/dist/esm/internal/faucet.mjs +1 -1
  149. package/dist/esm/internal/fungibleAsset.mjs +1 -1
  150. package/dist/esm/internal/general.mjs +1 -1
  151. package/dist/esm/internal/keyless.mjs +1 -1
  152. package/dist/esm/internal/object.d.mts +25 -0
  153. package/dist/esm/internal/object.mjs +2 -0
  154. package/dist/esm/internal/object.mjs.map +1 -0
  155. package/dist/esm/internal/staking.mjs +1 -1
  156. package/dist/esm/internal/table.mjs +1 -1
  157. package/dist/esm/internal/transaction.mjs +1 -1
  158. package/dist/esm/internal/transactionSubmission.mjs +1 -1
  159. package/dist/esm/internal/view.d.mts +7 -2
  160. package/dist/esm/internal/view.mjs +1 -1
  161. package/dist/esm/transactions/authenticator/account.mjs +1 -1
  162. package/dist/esm/transactions/authenticator/index.mjs +1 -1
  163. package/dist/esm/transactions/authenticator/transaction.mjs +1 -1
  164. package/dist/esm/transactions/index.d.mts +1 -1
  165. package/dist/esm/transactions/index.mjs +1 -1
  166. package/dist/esm/transactions/instances/index.mjs +1 -1
  167. package/dist/esm/transactions/instances/moduleId.mjs +1 -1
  168. package/dist/esm/transactions/instances/multiAgentTransaction.mjs +1 -1
  169. package/dist/esm/transactions/instances/rawTransaction.mjs +1 -1
  170. package/dist/esm/transactions/instances/rotationProofChallenge.mjs +1 -1
  171. package/dist/esm/transactions/instances/signedTransaction.mjs +1 -1
  172. package/dist/esm/transactions/instances/simpleTransaction.mjs +1 -1
  173. package/dist/esm/transactions/instances/transactionPayload.mjs +1 -1
  174. package/dist/esm/transactions/management/accountSequenceNumber.mjs +1 -1
  175. package/dist/esm/transactions/management/index.mjs +1 -1
  176. package/dist/esm/transactions/management/transactionWorker.mjs +1 -1
  177. package/dist/esm/transactions/transactionBuilder/helpers.mjs +1 -1
  178. package/dist/esm/transactions/transactionBuilder/index.mjs +1 -1
  179. package/dist/esm/transactions/transactionBuilder/remoteAbi.mjs +1 -1
  180. package/dist/esm/transactions/transactionBuilder/signingMessage.mjs +1 -1
  181. package/dist/esm/transactions/transactionBuilder/transactionBuilder.mjs +1 -1
  182. package/dist/esm/transactions/typeTag/index.mjs +1 -1
  183. package/dist/esm/transactions/typeTag/parser.mjs +1 -1
  184. package/dist/esm/transactions/types.d.mts +18 -2
  185. package/dist/esm/types/generated/operations.d.mts +37 -26
  186. package/dist/esm/types/generated/queries.d.mts +5 -5
  187. package/dist/esm/types/generated/queries.mjs +1 -1
  188. package/dist/esm/types/generated/types.d.mts +227 -15
  189. package/dist/esm/types/generated/types.mjs +1 -1
  190. package/dist/esm/types/generated/types.mjs.map +1 -1
  191. package/dist/esm/types/index.d.mts +1 -1
  192. package/dist/esm/types/indexer.d.mts +3 -3
  193. package/dist/esm/utils/const.d.mts +2 -1
  194. package/dist/esm/utils/const.mjs +1 -1
  195. package/dist/esm/utils/index.mjs +1 -1
  196. package/dist/esm/utils/normalizeBundle.mjs +1 -1
  197. package/dist/esm/version.d.mts +1 -1
  198. package/dist/esm/version.mjs +1 -1
  199. package/package.json +1 -1
  200. package/src/api/account.ts +3 -3
  201. package/src/api/aptos.ts +6 -0
  202. package/src/api/digitalAsset.ts +81 -1
  203. package/src/api/general.ts +25 -2
  204. package/src/api/object.ts +43 -0
  205. package/src/cli/move.ts +152 -13
  206. package/src/core/index.ts +1 -0
  207. package/src/internal/account.ts +7 -9
  208. package/src/internal/digitalAsset.ts +67 -24
  209. package/src/internal/event.ts +3 -21
  210. package/src/internal/object.ts +45 -0
  211. package/src/internal/queries/getCollectionData.graphql +19 -10
  212. package/src/internal/queries/{getAccountOwnedObjects.graphql → getObjectData.graphql} +1 -1
  213. package/src/internal/view.ts +27 -1
  214. package/src/transactions/types.ts +19 -1
  215. package/src/types/generated/operations.ts +37 -26
  216. package/src/types/generated/queries.ts +51 -40
  217. package/src/types/generated/types.ts +252 -14
  218. package/src/types/indexer.ts +2 -2
  219. package/src/utils/const.ts +1 -0
  220. package/src/version.ts +1 -1
  221. package/dist/esm/chunk-5Y3O7MLN.mjs +0 -2
  222. package/dist/esm/chunk-5Y3O7MLN.mjs.map +0 -1
  223. package/dist/esm/chunk-DCBXXRXS.mjs +0 -2
  224. package/dist/esm/chunk-DCBXXRXS.mjs.map +0 -1
  225. package/dist/esm/chunk-EAXCOIOP.mjs +0 -2
  226. package/dist/esm/chunk-FTA2ZMUX.mjs +0 -2
  227. package/dist/esm/chunk-FTA2ZMUX.mjs.map +0 -1
  228. package/dist/esm/chunk-GRZVD45M.mjs +0 -2
  229. package/dist/esm/chunk-GRZVD45M.mjs.map +0 -1
  230. package/dist/esm/chunk-HIHKTLLM.mjs.map +0 -1
  231. package/dist/esm/chunk-LLLINNAG.mjs.map +0 -1
  232. package/dist/esm/chunk-MKOIEX4B.mjs +0 -2
  233. package/dist/esm/chunk-MKOIEX4B.mjs.map +0 -1
  234. package/dist/esm/chunk-NBGXHLM4.mjs +0 -2
  235. package/dist/esm/chunk-NBGXHLM4.mjs.map +0 -1
  236. package/dist/esm/chunk-SYV4KFI7.mjs +0 -2
  237. package/dist/esm/chunk-SYV4KFI7.mjs.map +0 -1
  238. package/dist/esm/chunk-YE5B2S5L.mjs +0 -2
  239. /package/dist/esm/{chunk-4ZM7V7HN.mjs.map → chunk-3DCHEXE3.mjs.map} +0 -0
  240. /package/dist/esm/{chunk-3EDNV7KS.mjs.map → chunk-43IKKJ2Y.mjs.map} +0 -0
  241. /package/dist/esm/{chunk-E2JEBCSY.mjs.map → chunk-463B3NF7.mjs.map} +0 -0
  242. /package/dist/esm/{chunk-MUAV4P6C.mjs.map → chunk-4ARX2MGY.mjs.map} +0 -0
  243. /package/dist/esm/{chunk-MH6HIFMG.mjs.map → chunk-67BD7B6N.mjs.map} +0 -0
  244. /package/dist/esm/{chunk-VRSZLJVR.mjs.map → chunk-7CMCN6LB.mjs.map} +0 -0
  245. /package/dist/esm/{chunk-IOMJ5OWV.mjs.map → chunk-7HS4UJGE.mjs.map} +0 -0
  246. /package/dist/esm/{chunk-HED6CPN2.mjs.map → chunk-7RVYF5OP.mjs.map} +0 -0
  247. /package/dist/esm/{chunk-4EPLOSKY.mjs.map → chunk-7WFKAS7T.mjs.map} +0 -0
  248. /package/dist/esm/{chunk-YXXEXFQH.mjs.map → chunk-7X6HZUXX.mjs.map} +0 -0
  249. /package/dist/esm/{chunk-N5A4L6Z6.mjs.map → chunk-CUSKA6RZ.mjs.map} +0 -0
  250. /package/dist/esm/{chunk-A2Z7I2EY.mjs.map → chunk-F6REP536.mjs.map} +0 -0
  251. /package/dist/esm/{chunk-ILXK4OH5.mjs.map → chunk-GWH34VNI.mjs.map} +0 -0
  252. /package/dist/esm/{chunk-JM7CSDJ3.mjs.map → chunk-H6CS3BD7.mjs.map} +0 -0
  253. /package/dist/esm/{chunk-OKLLJQM4.mjs.map → chunk-H6QWMF3Q.mjs.map} +0 -0
  254. /package/dist/esm/{chunk-7JUBWA7V.mjs.map → chunk-I2T6BJOA.mjs.map} +0 -0
  255. /package/dist/esm/{chunk-GXLFQEPR.mjs.map → chunk-IN2L5ZAT.mjs.map} +0 -0
  256. /package/dist/esm/{chunk-RUVDYKIZ.mjs.map → chunk-IPGKZUSA.mjs.map} +0 -0
  257. /package/dist/esm/{chunk-KUAN2WZF.mjs.map → chunk-IPTCWBFV.mjs.map} +0 -0
  258. /package/dist/esm/{chunk-ICE6OL3A.mjs.map → chunk-J5KAD2RM.mjs.map} +0 -0
  259. /package/dist/esm/{chunk-3KZ7HFFA.mjs.map → chunk-J5YHMYHB.mjs.map} +0 -0
  260. /package/dist/esm/{chunk-Y37TV7SM.mjs.map → chunk-JB5R6RGF.mjs.map} +0 -0
  261. /package/dist/esm/{chunk-4U3MAEYH.mjs.map → chunk-KDIPFPMS.mjs.map} +0 -0
  262. /package/dist/esm/{chunk-GPZEPKKD.mjs.map → chunk-L6RINMT6.mjs.map} +0 -0
  263. /package/dist/esm/{chunk-47M33ENP.mjs.map → chunk-LBKYNX5K.mjs.map} +0 -0
  264. /package/dist/esm/{chunk-LWFSV3OA.mjs.map → chunk-LBU3LV7I.mjs.map} +0 -0
  265. /package/dist/esm/{chunk-CAC7G2HC.mjs.map → chunk-NAGFCYG6.mjs.map} +0 -0
  266. /package/dist/esm/{chunk-LAZTLEXF.mjs.map → chunk-NLJVP5RP.mjs.map} +0 -0
  267. /package/dist/esm/{chunk-XSHUCBNT.mjs.map → chunk-O7XEE7QT.mjs.map} +0 -0
  268. /package/dist/esm/{chunk-QTNKFKDE.mjs.map → chunk-OVG4SGPI.mjs.map} +0 -0
  269. /package/dist/esm/{chunk-3JEL6FIZ.mjs.map → chunk-P43CXEO4.mjs.map} +0 -0
  270. /package/dist/esm/{chunk-FGFQZQGX.mjs.map → chunk-Q7ZP25NJ.mjs.map} +0 -0
  271. /package/dist/esm/{chunk-FD2VCIZG.mjs.map → chunk-SK2HTEP7.mjs.map} +0 -0
  272. /package/dist/esm/{chunk-V5JJHVMP.mjs.map → chunk-SQQ2424E.mjs.map} +0 -0
  273. /package/dist/esm/{chunk-64P5SB7N.mjs.map → chunk-T4NXIMZL.mjs.map} +0 -0
  274. /package/dist/esm/{chunk-PS7L2TLP.mjs.map → chunk-T7YRD4PM.mjs.map} +0 -0
  275. /package/dist/esm/{chunk-OLVNRYGT.mjs.map → chunk-TCEOTADF.mjs.map} +0 -0
  276. /package/dist/esm/{chunk-BCY5UOGP.mjs.map → chunk-TWRYY6DD.mjs.map} +0 -0
  277. /package/dist/esm/{chunk-VY2MJZWM.mjs.map → chunk-TZOKV22Z.mjs.map} +0 -0
  278. /package/dist/esm/{chunk-K6NUFABY.mjs.map → chunk-UJYWEIQ2.mjs.map} +0 -0
  279. /package/dist/esm/{chunk-HACVLK5I.mjs.map → chunk-UYF7AQLE.mjs.map} +0 -0
  280. /package/dist/esm/{chunk-YF6UA3XW.mjs.map → chunk-V5COHBA4.mjs.map} +0 -0
  281. /package/dist/esm/{chunk-BI5P5ASH.mjs.map → chunk-VEGT6ZPK.mjs.map} +0 -0
  282. /package/dist/esm/{chunk-TFNJPJF6.mjs.map → chunk-VN2CRWOI.mjs.map} +0 -0
  283. /package/dist/esm/{chunk-WUWJLSGN.mjs.map → chunk-VQPLSJEI.mjs.map} +0 -0
  284. /package/dist/esm/{chunk-ZQUDGZIZ.mjs.map → chunk-W26LO3CR.mjs.map} +0 -0
  285. /package/dist/esm/{chunk-HJT2Q5NL.mjs.map → chunk-XVWNPR4T.mjs.map} +0 -0
  286. /package/dist/esm/{chunk-6ZQWPHLV.mjs.map → chunk-XWVMFCW3.mjs.map} +0 -0
  287. /package/dist/esm/{chunk-GMHGYDZQ.mjs.map → chunk-Y2H7FG2P.mjs.map} +0 -0
@@ -18,9 +18,9 @@ import {
18
18
  AccountData,
19
19
  GetAccountCoinsDataResponse,
20
20
  GetAccountCollectionsWithOwnedTokenResponse,
21
- GetAccountOwnedObjectsResponse,
22
21
  GetAccountOwnedTokensFromCollectionResponse,
23
22
  GetAccountOwnedTokensQueryResponse,
23
+ GetObjectDataQueryResponse,
24
24
  LedgerVersionArg,
25
25
  MoveModuleBytecode,
26
26
  MoveResource,
@@ -35,7 +35,7 @@ import {
35
35
  GetAccountCoinsCountQuery,
36
36
  GetAccountCoinsDataQuery,
37
37
  GetAccountCollectionsWithOwnedTokensQuery,
38
- GetAccountOwnedObjectsQuery,
38
+ GetObjectDataQuery,
39
39
  GetAccountOwnedTokensFromCollectionQuery,
40
40
  GetAccountOwnedTokensQuery,
41
41
  GetAccountTokensCountQuery,
@@ -45,7 +45,7 @@ import {
45
45
  GetAccountCoinsCount,
46
46
  GetAccountCoinsData,
47
47
  GetAccountCollectionsWithOwnedTokens,
48
- GetAccountOwnedObjects,
48
+ GetObjectData,
49
49
  GetAccountOwnedTokens,
50
50
  GetAccountOwnedTokensFromCollection,
51
51
  GetAccountTokensCount,
@@ -347,11 +347,9 @@ export async function getAccountCollectionsWithOwnedTokens(args: {
347
347
 
348
348
  const whereCondition: {
349
349
  owner_address: { _eq: string };
350
- amount: { _gt: number };
351
350
  current_collection?: { token_standard: { _eq: string } };
352
351
  } = {
353
352
  owner_address: { _eq: address },
354
- amount: { _gt: 0 },
355
353
  };
356
354
 
357
355
  if (options?.tokenStandard) {
@@ -484,8 +482,8 @@ export async function getAccountCoinsCount(args: {
484
482
  export async function getAccountOwnedObjects(args: {
485
483
  aptosConfig: AptosConfig;
486
484
  accountAddress: AccountAddressInput;
487
- options?: PaginationArgs & OrderByArg<GetAccountOwnedObjectsResponse[0]>;
488
- }): Promise<GetAccountOwnedObjectsResponse> {
485
+ options?: PaginationArgs & OrderByArg<GetObjectDataQueryResponse[0]>;
486
+ }): Promise<GetObjectDataQueryResponse> {
489
487
  const { aptosConfig, accountAddress, options } = args;
490
488
  const address = AccountAddress.from(accountAddress).toStringLong();
491
489
 
@@ -493,7 +491,7 @@ export async function getAccountOwnedObjects(args: {
493
491
  owner_address: { _eq: address },
494
492
  };
495
493
  const graphqlQuery = {
496
- query: GetAccountOwnedObjects,
494
+ query: GetObjectData,
497
495
  variables: {
498
496
  where_condition: whereCondition,
499
497
  offset: options?.offset,
@@ -501,7 +499,7 @@ export async function getAccountOwnedObjects(args: {
501
499
  order_by: options?.orderBy,
502
500
  },
503
501
  };
504
- const data = await queryIndexer<GetAccountOwnedObjectsQuery>({
502
+ const data = await queryIndexer<GetObjectDataQuery>({
505
503
  aptosConfig,
506
504
  query: graphqlQuery,
507
505
  originMethod: "getAccountOwnedObjects",
@@ -25,6 +25,7 @@ import {
25
25
  OrderByArg,
26
26
  PaginationArgs,
27
27
  TokenStandardArg,
28
+ WhereArg,
28
29
  } from "../types";
29
30
  import {
30
31
  GetCollectionDataQuery,
@@ -41,7 +42,11 @@ import {
41
42
  import { queryIndexer } from "./general";
42
43
  import { generateTransaction } from "./transactionSubmission";
43
44
  import { MAX_U64_BIG_INT } from "../bcs/consts";
44
- import { CurrentTokenOwnershipsV2BoolExp, TokenActivitiesV2BoolExp } from "../types/generated/types";
45
+ import {
46
+ CurrentCollectionsV2BoolExp,
47
+ CurrentTokenOwnershipsV2BoolExp,
48
+ TokenActivitiesV2BoolExp,
49
+ } from "../types/generated/types";
45
50
  import {
46
51
  checkOrConvertArgument,
47
52
  objectStructTag,
@@ -274,17 +279,11 @@ export async function createCollectionTransaction(
274
279
 
275
280
  export async function getCollectionData(args: {
276
281
  aptosConfig: AptosConfig;
277
- creatorAddress: AccountAddressInput;
278
- collectionName: string;
279
- options?: TokenStandardArg;
282
+ options?: TokenStandardArg & PaginationArgs & WhereArg<CurrentCollectionsV2BoolExp>;
280
283
  }): Promise<GetCollectionDataResponse> {
281
- const { aptosConfig, creatorAddress, collectionName, options } = args;
282
- const address = AccountAddress.from(creatorAddress);
284
+ const { aptosConfig, options } = args;
283
285
 
284
- const whereCondition: any = {
285
- collection_name: { _eq: collectionName },
286
- creator_address: { _eq: address.toStringLong() },
287
- };
286
+ const whereCondition: any = options?.where;
288
287
 
289
288
  if (options?.tokenStandard) {
290
289
  whereCondition.token_standard = { _eq: options?.tokenStandard ?? "v2" };
@@ -294,6 +293,8 @@ export async function getCollectionData(args: {
294
293
  query: GetCollectionData,
295
294
  variables: {
296
295
  where_condition: whereCondition,
296
+ offset: options?.offset,
297
+ limit: options?.limit,
297
298
  },
298
299
  };
299
300
  const data = await queryIndexer<GetCollectionDataQuery>({
@@ -305,30 +306,61 @@ export async function getCollectionData(args: {
305
306
  return data.current_collections_v2[0];
306
307
  }
307
308
 
309
+ export async function getCollectionDataByCreatorAddressAndCollectionName(args: {
310
+ aptosConfig: AptosConfig;
311
+ creatorAddress: AccountAddressInput;
312
+ collectionName: string;
313
+ options?: TokenStandardArg & PaginationArgs;
314
+ }): Promise<GetCollectionDataResponse> {
315
+ const { aptosConfig, creatorAddress, collectionName, options } = args;
316
+ const address = AccountAddress.from(creatorAddress);
317
+
318
+ const whereCondition: any = {
319
+ collection_name: { _eq: collectionName },
320
+ creator_address: { _eq: address.toStringLong() },
321
+ };
322
+ if (options?.tokenStandard) {
323
+ whereCondition.token_standard = { _eq: options?.tokenStandard ?? "v2" };
324
+ }
325
+
326
+ return getCollectionData({ aptosConfig, options: { ...options, where: whereCondition } });
327
+ }
328
+
329
+ export async function getCollectionDataByCreatorAddress(args: {
330
+ aptosConfig: AptosConfig;
331
+ creatorAddress: AccountAddressInput;
332
+ options?: TokenStandardArg & PaginationArgs;
333
+ }): Promise<GetCollectionDataResponse> {
334
+ const { aptosConfig, creatorAddress, options } = args;
335
+ const address = AccountAddress.from(creatorAddress);
336
+
337
+ const whereCondition: any = {
338
+ creator_address: { _eq: address.toStringLong() },
339
+ };
340
+ if (options?.tokenStandard) {
341
+ whereCondition.token_standard = { _eq: options?.tokenStandard ?? "v2" };
342
+ }
343
+
344
+ return getCollectionData({ aptosConfig, options: { ...options, where: whereCondition } });
345
+ }
346
+
308
347
  export async function getCollectionDataByCollectionId(args: {
309
348
  aptosConfig: AptosConfig;
310
349
  collectionId: AccountAddressInput;
350
+ options?: TokenStandardArg & PaginationArgs;
311
351
  }): Promise<GetCollectionDataResponse> {
312
- const { aptosConfig, collectionId } = args;
352
+ const { aptosConfig, collectionId, options } = args;
313
353
  const address = AccountAddress.from(collectionId);
314
354
 
315
355
  const whereCondition: any = {
316
356
  collection_id: { _eq: address.toStringLong() },
317
357
  };
318
358
 
319
- const graphqlQuery = {
320
- query: GetCollectionData,
321
- variables: {
322
- where_condition: whereCondition,
323
- },
324
- };
325
- const data = await queryIndexer<GetCollectionDataQuery>({
326
- aptosConfig,
327
- query: graphqlQuery,
328
- originMethod: "getCollectionData",
329
- });
359
+ if (options?.tokenStandard) {
360
+ whereCondition.token_standard = { _eq: options?.tokenStandard ?? "v2" };
361
+ }
330
362
 
331
- return data.current_collections_v2[0];
363
+ return getCollectionData({ aptosConfig, options: { ...options, where: whereCondition } });
332
364
  }
333
365
 
334
366
  export async function getCollectionId(args: {
@@ -337,7 +369,18 @@ export async function getCollectionId(args: {
337
369
  collectionName: string;
338
370
  options?: TokenStandardArg;
339
371
  }): Promise<string> {
340
- return (await getCollectionData(args)).collection_id;
372
+ const { creatorAddress, collectionName, options, aptosConfig } = args;
373
+ const address = AccountAddress.from(creatorAddress);
374
+
375
+ const whereCondition: any = {
376
+ collection_name: { _eq: collectionName },
377
+ creator_address: { _eq: address.toStringLong() },
378
+ };
379
+ if (options?.tokenStandard) {
380
+ whereCondition.token_standard = { _eq: options?.tokenStandard ?? "v2" };
381
+ }
382
+
383
+ return (await getCollectionData({ aptosConfig, options: { where: whereCondition } })).collection_id;
341
384
  }
342
385
 
343
386
  // TRANSACTIONS
@@ -37,13 +37,7 @@ export async function getModuleEventsByEventType(args: {
37
37
  indexed_type: { _eq: eventType },
38
38
  };
39
39
 
40
- const customOptions = {
41
- where: whereCondition,
42
- pagination: options,
43
- orderBy: options?.orderBy,
44
- };
45
-
46
- return getEvents({ aptosConfig, options: customOptions });
40
+ return getEvents({ aptosConfig, options: { ...options, where: whereCondition } });
47
41
  }
48
42
 
49
43
  export async function getAccountEventsByCreationNumber(args: {
@@ -60,13 +54,7 @@ export async function getAccountEventsByCreationNumber(args: {
60
54
  creation_number: { _eq: creationNumber },
61
55
  };
62
56
 
63
- const customOptions = {
64
- where: whereCondition,
65
- pagination: options,
66
- orderBy: options?.orderBy,
67
- };
68
-
69
- return getEvents({ aptosConfig, options: customOptions });
57
+ return getEvents({ aptosConfig, options: { ...options, where: whereCondition } });
70
58
  }
71
59
 
72
60
  export async function getAccountEventsByEventType(args: {
@@ -83,13 +71,7 @@ export async function getAccountEventsByEventType(args: {
83
71
  indexed_type: { _eq: eventType },
84
72
  };
85
73
 
86
- const customOptions = {
87
- where: whereCondition,
88
- pagination: options,
89
- orderBy: options?.orderBy,
90
- };
91
-
92
- return getEvents({ aptosConfig, options: customOptions });
74
+ return getEvents({ aptosConfig, options: { ...options, where: whereCondition } });
93
75
  }
94
76
 
95
77
  export async function getEvents(args: {
@@ -0,0 +1,45 @@
1
+ import { AptosConfig } from "../api/aptosConfig";
2
+ import { AccountAddressInput, AccountAddress } from "../core";
3
+ import { PaginationArgs, OrderByArg, GetObjectDataQueryResponse, WhereArg } from "../types";
4
+ import { GetObjectDataQuery } from "../types/generated/operations";
5
+ import { GetObjectData } from "../types/generated/queries";
6
+ import { CurrentObjectsBoolExp } from "../types/generated/types";
7
+ import { queryIndexer } from "./general";
8
+
9
+ export async function getObjectData(args: {
10
+ aptosConfig: AptosConfig;
11
+ options?: PaginationArgs & OrderByArg<GetObjectDataQueryResponse[0]> & WhereArg<CurrentObjectsBoolExp>;
12
+ }): Promise<GetObjectDataQueryResponse> {
13
+ const { aptosConfig, options } = args;
14
+
15
+ const graphqlQuery = {
16
+ query: GetObjectData,
17
+ variables: {
18
+ where_condition: options?.where,
19
+ offset: options?.offset,
20
+ limit: options?.limit,
21
+ order_by: options?.orderBy,
22
+ },
23
+ };
24
+ const data = await queryIndexer<GetObjectDataQuery>({
25
+ aptosConfig,
26
+ query: graphqlQuery,
27
+ originMethod: "getObjectData",
28
+ });
29
+
30
+ return data.current_objects;
31
+ }
32
+
33
+ export async function getObjectDataByObjectAddress(args: {
34
+ aptosConfig: AptosConfig;
35
+ objectAddress: AccountAddressInput;
36
+ options?: PaginationArgs & OrderByArg<GetObjectDataQueryResponse[0]>;
37
+ }): Promise<GetObjectDataQueryResponse[0]> {
38
+ const { aptosConfig, objectAddress, options } = args;
39
+ const address = AccountAddress.from(objectAddress).toStringLong();
40
+
41
+ const whereCondition: { object_address: { _eq: string } } = {
42
+ object_address: { _eq: address },
43
+ };
44
+ return (await getObjectData({ aptosConfig, options: { ...options, where: whereCondition } }))[0];
45
+ }
@@ -1,7 +1,12 @@
1
- query getCollectionData(
2
- $where_condition: current_collections_v2_bool_exp!
3
- ) {
1
+ query getCollectionData($where_condition: current_collections_v2_bool_exp!) {
4
2
  current_collections_v2(where: $where_condition) {
3
+ uri
4
+ total_minted_v2
5
+ token_standard
6
+ table_handle_v1
7
+ mutable_uri
8
+ mutable_description
9
+ max_supply
5
10
  collection_id
6
11
  collection_name
7
12
  creator_address
@@ -9,12 +14,16 @@ query getCollectionData(
9
14
  description
10
15
  last_transaction_timestamp
11
16
  last_transaction_version
12
- max_supply
13
- mutable_description
14
- mutable_uri
15
- table_handle_v1
16
- token_standard
17
- total_minted_v2
18
- uri
17
+ cdn_asset_uris {
18
+ cdn_image_uri
19
+ asset_uri
20
+ animation_optimizer_retry_count
21
+ cdn_animation_uri
22
+ cdn_json_uri
23
+ image_optimizer_retry_count
24
+ json_parser_retry_count
25
+ raw_animation_uri
26
+ raw_image_uri
27
+ }
19
28
  }
20
29
  }
@@ -1,4 +1,4 @@
1
- query getAccountOwnedObjects(
1
+ query getObjectData(
2
2
  $where_condition: current_objects_bool_exp
3
3
  $offset: Int
4
4
  $limit: Int
@@ -3,7 +3,12 @@
3
3
 
4
4
  import { LedgerVersionArg, MimeType, MoveValue } from "../types";
5
5
  import { AptosConfig } from "../api/aptosConfig";
6
- import { generateViewFunctionPayload, InputViewFunctionData } from "../transactions";
6
+ import {
7
+ generateViewFunctionPayload,
8
+ InputViewFunctionData,
9
+ InputViewFunctionJsonData,
10
+ ViewFunctionJsonPayload,
11
+ } from "../transactions";
7
12
  import { Serializer } from "../bcs";
8
13
  import { postAptosFullNode } from "../client";
9
14
 
@@ -33,3 +38,24 @@ export async function view<T extends Array<MoveValue> = Array<MoveValue>>(args:
33
38
 
34
39
  return data as T;
35
40
  }
41
+
42
+ export async function viewJson<T extends Array<MoveValue> = Array<MoveValue>>(args: {
43
+ aptosConfig: AptosConfig;
44
+ payload: InputViewFunctionJsonData;
45
+ options?: LedgerVersionArg;
46
+ }): Promise<T> {
47
+ const { aptosConfig, payload, options } = args;
48
+ const { data } = await postAptosFullNode<ViewFunctionJsonPayload, MoveValue[]>({
49
+ aptosConfig,
50
+ originMethod: "viewJson",
51
+ path: "view",
52
+ params: { ledger_version: options?.ledgerVersion },
53
+ body: {
54
+ function: payload.function,
55
+ type_arguments: payload.typeArguments ?? [],
56
+ arguments: payload.functionArguments ?? [],
57
+ },
58
+ });
59
+
60
+ return data as T;
61
+ }
@@ -15,7 +15,7 @@ import {
15
15
  TransactionPayloadMultiSig,
16
16
  TransactionPayloadScript,
17
17
  } from "./instances";
18
- import { AnyNumber, HexInput, MoveFunctionGenericTypeParam, MoveFunctionId } from "../types";
18
+ import { AnyNumber, HexInput, MoveFunctionGenericTypeParam, MoveFunctionId, MoveStructId, MoveValue } from "../types";
19
19
  import { TypeTag } from "./typeTag";
20
20
  import { AccountAuthenticator } from "./authenticator/account";
21
21
  import { SimpleTransaction } from "./instances/simpleTransaction";
@@ -177,6 +177,24 @@ export type InputViewFunctionData = {
177
177
  abi?: ViewFunctionABI;
178
178
  };
179
179
 
180
+ /**
181
+ * The data needed to generate a View Function payload in JSON
182
+ */
183
+ export type InputViewFunctionJsonData = {
184
+ function: MoveFunctionId;
185
+ typeArguments?: Array<MoveStructId>;
186
+ functionArguments?: Array<MoveValue>;
187
+ };
188
+
189
+ /**
190
+ * Payload sent to the fullnode for a JSON view request
191
+ */
192
+ export type ViewFunctionJsonPayload = {
193
+ function: MoveFunctionId;
194
+ typeArguments: Array<MoveStructId>;
195
+ functionArguments: Array<MoveValue>;
196
+ };
197
+
180
198
  /**
181
199
  * Data needed to generate a view function payload and fetch the remote ABI
182
200
  */
@@ -158,25 +158,6 @@ export type GetAccountCollectionsWithOwnedTokensQuery = {
158
158
  }>;
159
159
  };
160
160
 
161
- export type GetAccountOwnedObjectsQueryVariables = Types.Exact<{
162
- where_condition?: Types.InputMaybe<Types.CurrentObjectsBoolExp>;
163
- offset?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
164
- limit?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
165
- order_by?: Types.InputMaybe<Array<Types.CurrentObjectsOrderBy> | Types.CurrentObjectsOrderBy>;
166
- }>;
167
-
168
- export type GetAccountOwnedObjectsQuery = {
169
- current_objects: Array<{
170
- allow_ungated_transfer: boolean;
171
- state_key_hash: string;
172
- owner_address: string;
173
- object_address: string;
174
- last_transaction_version: any;
175
- last_guid_creation_num: any;
176
- is_deleted: boolean;
177
- }>;
178
- };
179
-
180
161
  export type GetAccountOwnedTokensQueryVariables = Types.Exact<{
181
162
  where_condition: Types.CurrentTokenOwnershipsV2BoolExp;
182
163
  offset?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
@@ -375,6 +356,13 @@ export type GetCollectionDataQueryVariables = Types.Exact<{
375
356
 
376
357
  export type GetCollectionDataQuery = {
377
358
  current_collections_v2: Array<{
359
+ uri: string;
360
+ total_minted_v2?: any | null;
361
+ token_standard: string;
362
+ table_handle_v1?: string | null;
363
+ mutable_uri?: boolean | null;
364
+ mutable_description?: boolean | null;
365
+ max_supply?: any | null;
378
366
  collection_id: string;
379
367
  collection_name: string;
380
368
  creator_address: string;
@@ -382,13 +370,17 @@ export type GetCollectionDataQuery = {
382
370
  description: string;
383
371
  last_transaction_timestamp: any;
384
372
  last_transaction_version: any;
385
- max_supply?: any | null;
386
- mutable_description?: boolean | null;
387
- mutable_uri?: boolean | null;
388
- table_handle_v1?: string | null;
389
- token_standard: string;
390
- total_minted_v2?: any | null;
391
- uri: string;
373
+ cdn_asset_uris?: {
374
+ cdn_image_uri?: string | null;
375
+ asset_uri: string;
376
+ animation_optimizer_retry_count: number;
377
+ cdn_animation_uri?: string | null;
378
+ cdn_json_uri?: string | null;
379
+ image_optimizer_retry_count: number;
380
+ json_parser_retry_count: number;
381
+ raw_animation_uri?: string | null;
382
+ raw_image_uri?: string | null;
383
+ } | null;
392
384
  }>;
393
385
  };
394
386
 
@@ -529,6 +521,25 @@ export type GetNumberOfDelegatorsQuery = {
529
521
  num_active_delegator_per_pool: Array<{ num_active_delegator?: any | null; pool_address?: string | null }>;
530
522
  };
531
523
 
524
+ export type GetObjectDataQueryVariables = Types.Exact<{
525
+ where_condition?: Types.InputMaybe<Types.CurrentObjectsBoolExp>;
526
+ offset?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
527
+ limit?: Types.InputMaybe<Types.Scalars["Int"]["input"]>;
528
+ order_by?: Types.InputMaybe<Array<Types.CurrentObjectsOrderBy> | Types.CurrentObjectsOrderBy>;
529
+ }>;
530
+
531
+ export type GetObjectDataQuery = {
532
+ current_objects: Array<{
533
+ allow_ungated_transfer: boolean;
534
+ state_key_hash: string;
535
+ owner_address: string;
536
+ object_address: string;
537
+ last_transaction_version: any;
538
+ last_guid_creation_num: any;
539
+ is_deleted: boolean;
540
+ }>;
541
+ };
542
+
532
543
  export type GetProcessorStatusQueryVariables = Types.Exact<{
533
544
  where_condition?: Types.InputMaybe<Types.ProcessorStatusBoolExp>;
534
545
  }>;
@@ -160,24 +160,6 @@ export const GetAccountCollectionsWithOwnedTokens = `
160
160
  }
161
161
  }
162
162
  `;
163
- export const GetAccountOwnedObjects = `
164
- query getAccountOwnedObjects($where_condition: current_objects_bool_exp, $offset: Int, $limit: Int, $order_by: [current_objects_order_by!]) {
165
- current_objects(
166
- where: $where_condition
167
- offset: $offset
168
- limit: $limit
169
- order_by: $order_by
170
- ) {
171
- allow_ungated_transfer
172
- state_key_hash
173
- owner_address
174
- object_address
175
- last_transaction_version
176
- last_guid_creation_num
177
- is_deleted
178
- }
179
- }
180
- `;
181
163
  export const GetAccountOwnedTokens = `
182
164
  query getAccountOwnedTokens($where_condition: current_token_ownerships_v2_bool_exp!, $offset: Int, $limit: Int, $order_by: [current_token_ownerships_v2_order_by!]) {
183
165
  current_token_ownerships_v2(
@@ -246,6 +228,13 @@ export const GetChainTopUserTransactions = `
246
228
  export const GetCollectionData = `
247
229
  query getCollectionData($where_condition: current_collections_v2_bool_exp!) {
248
230
  current_collections_v2(where: $where_condition) {
231
+ uri
232
+ total_minted_v2
233
+ token_standard
234
+ table_handle_v1
235
+ mutable_uri
236
+ mutable_description
237
+ max_supply
249
238
  collection_id
250
239
  collection_name
251
240
  creator_address
@@ -253,13 +242,17 @@ export const GetCollectionData = `
253
242
  description
254
243
  last_transaction_timestamp
255
244
  last_transaction_version
256
- max_supply
257
- mutable_description
258
- mutable_uri
259
- table_handle_v1
260
- token_standard
261
- total_minted_v2
262
- uri
245
+ cdn_asset_uris {
246
+ cdn_image_uri
247
+ asset_uri
248
+ animation_optimizer_retry_count
249
+ cdn_animation_uri
250
+ cdn_json_uri
251
+ image_optimizer_retry_count
252
+ json_parser_retry_count
253
+ raw_animation_uri
254
+ raw_image_uri
255
+ }
263
256
  }
264
257
  }
265
258
  `;
@@ -382,6 +375,24 @@ export const GetNumberOfDelegators = `
382
375
  }
383
376
  }
384
377
  `;
378
+ export const GetObjectData = `
379
+ query getObjectData($where_condition: current_objects_bool_exp, $offset: Int, $limit: Int, $order_by: [current_objects_order_by!]) {
380
+ current_objects(
381
+ where: $where_condition
382
+ offset: $offset
383
+ limit: $limit
384
+ order_by: $order_by
385
+ ) {
386
+ allow_ungated_transfer
387
+ state_key_hash
388
+ owner_address
389
+ object_address
390
+ last_transaction_version
391
+ last_guid_creation_num
392
+ is_deleted
393
+ }
394
+ }
395
+ `;
385
396
  export const GetProcessorStatus = `
386
397
  query getProcessorStatus($where_condition: processor_status_bool_exp) {
387
398
  processor_status(where: $where_condition) {
@@ -545,21 +556,6 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
545
556
  variables,
546
557
  );
547
558
  },
548
- getAccountOwnedObjects(
549
- variables?: Types.GetAccountOwnedObjectsQueryVariables,
550
- requestHeaders?: GraphQLClientRequestHeaders,
551
- ): Promise<Types.GetAccountOwnedObjectsQuery> {
552
- return withWrapper(
553
- (wrappedRequestHeaders) =>
554
- client.request<Types.GetAccountOwnedObjectsQuery>(GetAccountOwnedObjects, variables, {
555
- ...requestHeaders,
556
- ...wrappedRequestHeaders,
557
- }),
558
- "getAccountOwnedObjects",
559
- "query",
560
- variables,
561
- );
562
- },
563
559
  getAccountOwnedTokens(
564
560
  variables: Types.GetAccountOwnedTokensQueryVariables,
565
561
  requestHeaders?: GraphQLClientRequestHeaders,
@@ -765,6 +761,21 @@ export function getSdk(client: GraphQLClient, withWrapper: SdkFunctionWrapper =
765
761
  variables,
766
762
  );
767
763
  },
764
+ getObjectData(
765
+ variables?: Types.GetObjectDataQueryVariables,
766
+ requestHeaders?: GraphQLClientRequestHeaders,
767
+ ): Promise<Types.GetObjectDataQuery> {
768
+ return withWrapper(
769
+ (wrappedRequestHeaders) =>
770
+ client.request<Types.GetObjectDataQuery>(GetObjectData, variables, {
771
+ ...requestHeaders,
772
+ ...wrappedRequestHeaders,
773
+ }),
774
+ "getObjectData",
775
+ "query",
776
+ variables,
777
+ );
778
+ },
768
779
  getProcessorStatus(
769
780
  variables?: Types.GetProcessorStatusQueryVariables,
770
781
  requestHeaders?: GraphQLClientRequestHeaders,