@mysten/sui 2.39.1 → 3.0.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 (425) hide show
  1. package/CHANGELOG.md +169 -0
  2. package/README.md +5 -188
  3. package/dist/bcs/bcs.d.mts +6 -6
  4. package/dist/bcs/bcs.d.mts.map +1 -1
  5. package/dist/bcs/bcs.mjs +49 -22
  6. package/dist/bcs/bcs.mjs.map +1 -1
  7. package/dist/bcs/effects.mjs +49 -20
  8. package/dist/bcs/effects.mjs.map +1 -1
  9. package/dist/bcs/index.d.mts +1441 -624
  10. package/dist/bcs/index.d.mts.map +1 -1
  11. package/dist/bcs/index.mjs +2 -1
  12. package/dist/bcs/index.mjs.map +1 -1
  13. package/dist/bcs/transactions.d.mts +1059 -0
  14. package/dist/bcs/transactions.d.mts.map +1 -0
  15. package/dist/bcs/transactions.mjs +33 -14
  16. package/dist/bcs/transactions.mjs.map +1 -1
  17. package/dist/bcs/types.d.mts +6 -1
  18. package/dist/bcs/types.d.mts.map +1 -1
  19. package/dist/client/core-resolver.mjs +4 -4
  20. package/dist/client/core-resolver.mjs.map +1 -1
  21. package/dist/client/core.d.mts +55 -4
  22. package/dist/client/core.d.mts.map +1 -1
  23. package/dist/client/core.mjs +98 -1
  24. package/dist/client/core.mjs.map +1 -1
  25. package/dist/client/errors.mjs +11 -1
  26. package/dist/client/errors.mjs.map +1 -1
  27. package/dist/client/index.d.mts +5 -3
  28. package/dist/client/index.mjs +6 -3
  29. package/dist/client/mvr.d.mts +12 -2
  30. package/dist/client/mvr.d.mts.map +1 -1
  31. package/dist/client/mvr.mjs +34 -13
  32. package/dist/client/mvr.mjs.map +1 -1
  33. package/dist/client/query-filters.mjs +80 -76
  34. package/dist/client/query-filters.mjs.map +1 -1
  35. package/dist/client/stream/adapter.d.mts +102 -0
  36. package/dist/client/stream/adapter.d.mts.map +1 -0
  37. package/dist/client/stream/errors.d.mts +14 -0
  38. package/dist/client/stream/errors.d.mts.map +1 -0
  39. package/dist/client/stream/errors.mjs +25 -0
  40. package/dist/client/stream/errors.mjs.map +1 -0
  41. package/dist/client/stream/filter.mjs +18 -0
  42. package/dist/client/stream/filter.mjs.map +1 -0
  43. package/dist/client/stream/follow.mjs +48 -0
  44. package/dist/client/stream/follow.mjs.map +1 -0
  45. package/dist/client/stream/index.d.mts +4 -0
  46. package/dist/client/stream/pager.mjs +123 -0
  47. package/dist/client/stream/pager.mjs.map +1 -0
  48. package/dist/client/stream/plan.mjs +79 -0
  49. package/dist/client/stream/plan.mjs.map +1 -0
  50. package/dist/client/stream/position.d.mts +30 -0
  51. package/dist/client/stream/position.d.mts.map +1 -0
  52. package/dist/client/stream/position.mjs +121 -0
  53. package/dist/client/stream/position.mjs.map +1 -0
  54. package/dist/client/stream/run.d.mts +2 -0
  55. package/dist/client/stream/run.mjs +99 -0
  56. package/dist/client/stream/run.mjs.map +1 -0
  57. package/dist/client/stream/session.mjs +205 -0
  58. package/dist/client/stream/session.mjs.map +1 -0
  59. package/dist/client/stream/status.mjs +47 -0
  60. package/dist/client/stream/status.mjs.map +1 -0
  61. package/dist/client/stream/token.mjs +80 -0
  62. package/dist/client/stream/token.mjs.map +1 -0
  63. package/dist/client/transaction-data.d.mts +17 -0
  64. package/dist/client/transaction-data.d.mts.map +1 -0
  65. package/dist/client/transaction-data.mjs +472 -0
  66. package/dist/client/transaction-data.mjs.map +1 -0
  67. package/dist/client/transaction-resolver.mjs +102 -58
  68. package/dist/client/transaction-resolver.mjs.map +1 -1
  69. package/dist/client/types.d.mts +560 -240
  70. package/dist/client/types.d.mts.map +1 -1
  71. package/dist/client/utils.d.mts +2 -2
  72. package/dist/client/utils.d.mts.map +1 -1
  73. package/dist/client/utils.mjs +91 -30
  74. package/dist/client/utils.mjs.map +1 -1
  75. package/dist/cryptography/index.d.mts +1 -1
  76. package/dist/cryptography/keypair.d.mts +1 -1
  77. package/dist/cryptography/publickey.d.mts +11 -0
  78. package/dist/cryptography/publickey.d.mts.map +1 -1
  79. package/dist/cryptography/publickey.mjs +12 -1
  80. package/dist/cryptography/publickey.mjs.map +1 -1
  81. package/dist/cryptography/signature.d.mts +8 -8
  82. package/dist/cryptography/signature.mjs +18 -7
  83. package/dist/cryptography/signature.mjs.map +1 -1
  84. package/dist/graphql/client.d.mts +51 -35
  85. package/dist/graphql/client.d.mts.map +1 -1
  86. package/dist/graphql/client.mjs +125 -69
  87. package/dist/graphql/client.mjs.map +1 -1
  88. package/dist/graphql/core.d.mts +14 -9
  89. package/dist/graphql/core.d.mts.map +1 -1
  90. package/dist/graphql/core.mjs +294 -118
  91. package/dist/graphql/core.mjs.map +1 -1
  92. package/dist/graphql/errors.d.mts +20 -0
  93. package/dist/graphql/errors.d.mts.map +1 -0
  94. package/dist/graphql/errors.mjs +19 -0
  95. package/dist/graphql/errors.mjs.map +1 -0
  96. package/dist/graphql/filters.mjs +32 -0
  97. package/dist/graphql/filters.mjs.map +1 -0
  98. package/dist/graphql/generated/queries.d.mts.map +1 -1
  99. package/dist/graphql/generated/queries.mjs +1216 -208
  100. package/dist/graphql/generated/queries.mjs.map +1 -1
  101. package/dist/graphql/generated/tada-env.d.mts +820 -11
  102. package/dist/graphql/index.d.mts +2 -1
  103. package/dist/graphql/index.mjs +2 -1
  104. package/dist/graphql/sse-parser.mjs +82 -0
  105. package/dist/graphql/sse-parser.mjs.map +1 -0
  106. package/dist/graphql/stream/families.mjs +306 -0
  107. package/dist/graphql/stream/families.mjs.map +1 -0
  108. package/dist/graphql/stream/index.mjs +38 -0
  109. package/dist/graphql/stream/index.mjs.map +1 -0
  110. package/dist/graphql/stream/live.mjs +60 -0
  111. package/dist/graphql/stream/live.mjs.map +1 -0
  112. package/dist/graphql/stream/page.mjs +38 -0
  113. package/dist/graphql/stream/page.mjs.map +1 -0
  114. package/dist/graphql/stream/query.mjs +47 -0
  115. package/dist/graphql/stream/query.mjs.map +1 -0
  116. package/dist/graphql/subscribe.mjs +70 -0
  117. package/dist/graphql/subscribe.mjs.map +1 -0
  118. package/dist/grpc/client.d.mts +31 -27
  119. package/dist/grpc/client.d.mts.map +1 -1
  120. package/dist/grpc/client.mjs +42 -46
  121. package/dist/grpc/client.mjs.map +1 -1
  122. package/dist/grpc/core.d.mts +13 -6
  123. package/dist/grpc/core.d.mts.map +1 -1
  124. package/dist/grpc/core.mjs +254 -166
  125. package/dist/grpc/core.mjs.map +1 -1
  126. package/dist/grpc/filters.mjs +44 -34
  127. package/dist/grpc/filters.mjs.map +1 -1
  128. package/dist/grpc/grpc-web-pull.mjs +245 -0
  129. package/dist/grpc/grpc-web-pull.mjs.map +1 -0
  130. package/dist/grpc/index.d.mts +2 -1
  131. package/dist/grpc/index.mjs +1 -1
  132. package/dist/grpc/network-error.mjs +31 -0
  133. package/dist/grpc/network-error.mjs.map +1 -0
  134. package/dist/grpc/proto/google/rpc/error_details.mjs +306 -0
  135. package/dist/grpc/proto/google/rpc/error_details.mjs.map +1 -0
  136. package/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.d.mts +4 -4
  137. package/dist/grpc/proto/sui/rpc/v2/error_reason.d.mts +176 -1
  138. package/dist/grpc/proto/sui/rpc/v2/error_reason.d.mts.map +1 -1
  139. package/dist/grpc/proto/sui/rpc/v2/error_reason.mjs +175 -0
  140. package/dist/grpc/proto/sui/rpc/v2/error_reason.mjs.map +1 -1
  141. package/dist/grpc/proto/sui/rpc/v2/executed_transaction.d.mts +2 -2
  142. package/dist/grpc/proto/sui/rpc/v2/ledger_service.client.d.mts +4 -4
  143. package/dist/grpc/proto/sui/rpc/v2/ledger_service.d.mts +111 -0
  144. package/dist/grpc/proto/sui/rpc/v2/ledger_service.d.mts.map +1 -1
  145. package/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs +46 -0
  146. package/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs.map +1 -1
  147. package/dist/grpc/proto/sui/rpc/v2/move_package_service.client.d.mts +4 -4
  148. package/dist/grpc/proto/sui/rpc/v2/move_package_service.d.mts +24 -1
  149. package/dist/grpc/proto/sui/rpc/v2/move_package_service.d.mts.map +1 -1
  150. package/dist/grpc/proto/sui/rpc/v2/move_package_service.mjs +25 -7
  151. package/dist/grpc/proto/sui/rpc/v2/move_package_service.mjs.map +1 -1
  152. package/dist/grpc/proto/sui/rpc/v2/name_service.client.d.mts +4 -4
  153. package/dist/grpc/proto/sui/rpc/v2/object.mjs +1 -1
  154. package/dist/grpc/proto/sui/rpc/v2/query_options.d.mts +111 -9
  155. package/dist/grpc/proto/sui/rpc/v2/query_options.d.mts.map +1 -1
  156. package/dist/grpc/proto/sui/rpc/v2/query_options.mjs +63 -19
  157. package/dist/grpc/proto/sui/rpc/v2/query_options.mjs.map +1 -1
  158. package/dist/grpc/proto/sui/rpc/v2/signature.d.mts +5 -5
  159. package/dist/grpc/proto/sui/rpc/v2/signature.mjs.map +1 -1
  160. package/dist/grpc/proto/sui/rpc/v2/signature_scheme.d.mts +5 -1
  161. package/dist/grpc/proto/sui/rpc/v2/signature_scheme.d.mts.map +1 -1
  162. package/dist/grpc/proto/sui/rpc/v2/signature_scheme.mjs +4 -0
  163. package/dist/grpc/proto/sui/rpc/v2/signature_scheme.mjs.map +1 -1
  164. package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.mts +4 -4
  165. package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.d.mts +20 -1
  166. package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.d.mts.map +1 -1
  167. package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.mjs +30 -13
  168. package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.mjs.map +1 -1
  169. package/dist/grpc/proto/sui/rpc/v2/state_service.client.d.mts +4 -4
  170. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +20 -14
  171. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts.map +1 -1
  172. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.mjs +8 -5
  173. package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.mjs.map +1 -1
  174. package/dist/grpc/proto/sui/rpc/v2/transaction.d.mts +11 -5
  175. package/dist/grpc/proto/sui/rpc/v2/transaction.d.mts.map +1 -1
  176. package/dist/grpc/proto/sui/rpc/v2/transaction.mjs +6 -0
  177. package/dist/grpc/proto/sui/rpc/v2/transaction.mjs.map +1 -1
  178. package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.d.mts +6 -2
  179. package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.d.mts.map +1 -1
  180. package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.mjs.map +1 -1
  181. package/dist/grpc/proto/types.d.mts +7 -7
  182. package/dist/grpc/proto/types.mjs +3 -2
  183. package/dist/grpc/pull-call.d.mts +20 -0
  184. package/dist/grpc/pull-call.d.mts.map +1 -0
  185. package/dist/grpc/pull-call.mjs +28 -0
  186. package/dist/grpc/pull-call.mjs.map +1 -0
  187. package/dist/grpc/stream/call.mjs +238 -0
  188. package/dist/grpc/stream/call.mjs.map +1 -0
  189. package/dist/grpc/stream/families.d.mts +26 -0
  190. package/dist/grpc/stream/families.d.mts.map +1 -0
  191. package/dist/grpc/stream/families.mjs +145 -0
  192. package/dist/grpc/stream/families.mjs.map +1 -0
  193. package/dist/grpc/stream/index.d.mts +41 -0
  194. package/dist/grpc/stream/index.d.mts.map +1 -0
  195. package/dist/grpc/stream/index.mjs +127 -0
  196. package/dist/grpc/stream/index.mjs.map +1 -0
  197. package/dist/grpc/stream/live.mjs +31 -0
  198. package/dist/grpc/stream/live.mjs.map +1 -0
  199. package/dist/grpc/stream/page.mjs +120 -0
  200. package/dist/grpc/stream/page.mjs.map +1 -0
  201. package/dist/grpc/stream-types.d.mts +28 -0
  202. package/dist/grpc/stream-types.d.mts.map +1 -0
  203. package/dist/grpc/transport.d.mts +8 -3
  204. package/dist/grpc/transport.d.mts.map +1 -1
  205. package/dist/grpc/transport.mjs +88 -45
  206. package/dist/grpc/transport.mjs.map +1 -1
  207. package/dist/jsonRpc/index.d.mts +34 -12
  208. package/dist/jsonRpc/index.d.mts.map +1 -0
  209. package/dist/jsonRpc/index.mjs +39 -5
  210. package/dist/jsonRpc/index.mjs.map +1 -0
  211. package/dist/jsonRpc/types.d.mts +420 -0
  212. package/dist/jsonRpc/types.d.mts.map +1 -0
  213. package/dist/keypairs/passkey/keypair.d.mts +1 -1
  214. package/dist/multisig/publickey.d.mts +12 -4
  215. package/dist/multisig/publickey.d.mts.map +1 -1
  216. package/dist/multisig/publickey.mjs +5 -5
  217. package/dist/multisig/publickey.mjs.map +1 -1
  218. package/dist/multisig/signer.d.mts +1 -1
  219. package/dist/transactions/ObjectCache.d.mts +1 -1
  220. package/dist/transactions/ObjectCache.mjs +5 -5
  221. package/dist/transactions/ObjectCache.mjs.map +1 -1
  222. package/dist/transactions/Transaction.d.mts +10 -9
  223. package/dist/transactions/Transaction.d.mts.map +1 -1
  224. package/dist/transactions/Transaction.mjs +17 -6
  225. package/dist/transactions/Transaction.mjs.map +1 -1
  226. package/dist/transactions/data/internal.d.mts +2 -0
  227. package/dist/transactions/data/internal.d.mts.map +1 -1
  228. package/dist/transactions/data/internal.mjs +2 -1
  229. package/dist/transactions/data/internal.mjs.map +1 -1
  230. package/dist/transactions/executor/parallel.d.mts +2 -2
  231. package/dist/transactions/executor/serial.d.mts +1 -1
  232. package/dist/transactions/executor/serial.mjs +2 -2
  233. package/dist/transactions/executor/serial.mjs.map +1 -1
  234. package/dist/transactions/index.d.mts +3 -2
  235. package/dist/transactions/index.mjs +4 -3
  236. package/dist/transactions/intents/AllowanceBalance.mjs +1 -1
  237. package/dist/transactions/intents/CoinWithBalance.mjs +1 -1
  238. package/dist/transactions/resolve.d.mts +6 -0
  239. package/dist/transactions/resolve.d.mts.map +1 -1
  240. package/dist/transactions/resolve.mjs.map +1 -1
  241. package/dist/transactions/restricted-move-calls.d.mts +25 -0
  242. package/dist/transactions/restricted-move-calls.d.mts.map +1 -0
  243. package/dist/transactions/restricted-move-calls.mjs +47 -0
  244. package/dist/transactions/restricted-move-calls.mjs.map +1 -0
  245. package/dist/transactions/serializer.d.mts +1 -4
  246. package/dist/transactions/serializer.d.mts.map +1 -1
  247. package/dist/transactions/serializer.mjs +1 -44
  248. package/dist/transactions/serializer.mjs.map +1 -1
  249. package/dist/transactions/utils.d.mts +0 -1
  250. package/dist/transactions/utils.d.mts.map +1 -1
  251. package/dist/transactions/utils.mjs.map +1 -1
  252. package/dist/utils/abort.mjs +89 -0
  253. package/dist/utils/abort.mjs.map +1 -0
  254. package/dist/utils/coin-reservation.mjs +1 -4
  255. package/dist/utils/coin-reservation.mjs.map +1 -1
  256. package/dist/utils/index.mjs +1 -1
  257. package/dist/utils/sui-types.mjs +1 -1
  258. package/dist/verify/index.d.mts +2 -2
  259. package/dist/verify/verify.d.mts +74 -24
  260. package/dist/verify/verify.d.mts.map +1 -1
  261. package/dist/verify/verify.mjs +128 -42
  262. package/dist/verify/verify.mjs.map +1 -1
  263. package/dist/version.mjs +1 -1
  264. package/dist/version.mjs.map +1 -1
  265. package/dist/zklogin/bcs.d.mts +14 -14
  266. package/dist/zklogin/publickey.d.mts.map +1 -1
  267. package/dist/zklogin/publickey.mjs +15 -20
  268. package/dist/zklogin/publickey.mjs.map +1 -1
  269. package/docs/bcs.md +2 -2
  270. package/docs/clients/core.md +19 -18
  271. package/docs/clients/executing.md +53 -8
  272. package/docs/clients/graphql.md +81 -11
  273. package/docs/clients/grpc.md +31 -15
  274. package/docs/clients/index.md +8 -7
  275. package/docs/clients/querying.md +134 -30
  276. package/docs/clients/streaming.md +324 -0
  277. package/docs/cryptography/index.md +85 -58
  278. package/docs/llms-index.md +4 -2
  279. package/docs/migrations/sui-2.0/dapp-kit.md +3 -2
  280. package/docs/migrations/sui-2.0/json-rpc-migration.md +106 -79
  281. package/docs/migrations/sui-3.0/index.md +247 -0
  282. package/docs/plugins.md +10 -10
  283. package/docs/sdk-building.md +3 -4
  284. package/docs/transactions/coins-and-balances.md +6 -11
  285. package/docs/transactions/reference.md +36 -1
  286. package/package.json +4 -5
  287. package/src/bcs/bcs.ts +80 -41
  288. package/src/bcs/effects.ts +61 -25
  289. package/src/bcs/index.ts +2 -0
  290. package/src/bcs/transactions.ts +36 -17
  291. package/src/bcs/types.ts +10 -4
  292. package/src/client/core-resolver.ts +3 -5
  293. package/src/client/core.ts +180 -8
  294. package/src/client/errors.ts +12 -0
  295. package/src/client/index.ts +4 -2
  296. package/src/client/mvr.ts +37 -10
  297. package/src/client/query-filters.ts +151 -97
  298. package/src/client/stream/adapter.ts +110 -0
  299. package/src/client/stream/errors.ts +40 -0
  300. package/src/client/stream/filter.ts +17 -0
  301. package/src/client/stream/follow.ts +63 -0
  302. package/src/client/stream/index.ts +9 -0
  303. package/src/client/stream/pager.ts +158 -0
  304. package/src/client/stream/plan.ts +147 -0
  305. package/src/client/stream/position.ts +143 -0
  306. package/src/client/stream/run.ts +147 -0
  307. package/src/client/stream/session.ts +259 -0
  308. package/src/client/stream/status.ts +44 -0
  309. package/src/client/stream/token.ts +104 -0
  310. package/src/client/transaction-data.ts +610 -0
  311. package/src/client/transaction-resolver.ts +158 -69
  312. package/src/client/types.ts +530 -115
  313. package/src/client/utils.ts +146 -61
  314. package/src/cryptography/publickey.ts +12 -1
  315. package/src/cryptography/signature.ts +6 -3
  316. package/src/graphql/client.ts +204 -135
  317. package/src/graphql/core.ts +446 -139
  318. package/src/graphql/errors.ts +24 -0
  319. package/src/graphql/filters.ts +48 -0
  320. package/src/graphql/generated/queries.ts +1455 -277
  321. package/src/graphql/generated/schema.graphql +282 -9
  322. package/src/graphql/generated/tada-env.ts +933 -4
  323. package/src/graphql/queries/checkpoints.graphql +34 -0
  324. package/src/graphql/queries/getDynamicFields.graphql +1 -0
  325. package/src/graphql/queries/listEvents.graphql +16 -24
  326. package/src/graphql/queries/streams.graphql +212 -0
  327. package/src/graphql/queries/transactions.graphql +71 -28
  328. package/src/graphql/queries/verifySignature.graphql +17 -0
  329. package/src/graphql/sse-parser.ts +99 -0
  330. package/src/graphql/stream/families.ts +515 -0
  331. package/src/graphql/stream/index.ts +55 -0
  332. package/src/graphql/stream/live.ts +70 -0
  333. package/src/graphql/stream/page.ts +47 -0
  334. package/src/graphql/stream/query.ts +52 -0
  335. package/src/graphql/subscribe.ts +83 -0
  336. package/src/grpc/client.ts +81 -79
  337. package/src/grpc/core.ts +388 -274
  338. package/src/grpc/filters.ts +59 -60
  339. package/src/grpc/grpc-web-pull.ts +360 -0
  340. package/src/grpc/index.ts +5 -0
  341. package/src/grpc/network-error.ts +33 -0
  342. package/src/grpc/proto/sui/rpc/v2/error_reason.ts +175 -0
  343. package/src/grpc/proto/sui/rpc/v2/ledger_service.ts +145 -0
  344. package/src/grpc/proto/sui/rpc/v2/move_package_service.ts +43 -1
  345. package/src/grpc/proto/sui/rpc/v2/query_options.ts +132 -8
  346. package/src/grpc/proto/sui/rpc/v2/signature.ts +4 -4
  347. package/src/grpc/proto/sui/rpc/v2/signature_scheme.ts +4 -0
  348. package/src/grpc/proto/sui/rpc/v2/signature_verification_service.ts +30 -0
  349. package/src/grpc/proto/sui/rpc/v2/subscription_service.client.ts +16 -10
  350. package/src/grpc/proto/sui/rpc/v2/transaction.ts +6 -0
  351. package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.ts +5 -1
  352. package/src/grpc/pull-call.ts +54 -0
  353. package/src/grpc/stream/call.ts +317 -0
  354. package/src/grpc/stream/families.ts +228 -0
  355. package/src/grpc/stream/index.ts +182 -0
  356. package/src/grpc/stream/live.ts +33 -0
  357. package/src/grpc/stream/page.ts +161 -0
  358. package/src/grpc/stream-types.ts +33 -0
  359. package/src/grpc/transport.ts +116 -59
  360. package/src/jsonRpc/index.ts +60 -17
  361. package/src/jsonRpc/types.ts +421 -0
  362. package/src/multisig/publickey.ts +19 -7
  363. package/src/transactions/ObjectCache.ts +6 -6
  364. package/src/transactions/Transaction.ts +30 -6
  365. package/src/transactions/data/internal.ts +2 -0
  366. package/src/transactions/executor/serial.ts +2 -2
  367. package/src/transactions/index.ts +8 -1
  368. package/src/transactions/resolve.ts +6 -0
  369. package/src/transactions/restricted-move-calls.ts +87 -0
  370. package/src/transactions/serializer.ts +0 -70
  371. package/src/transactions/utils.ts +0 -37
  372. package/src/utils/abort.ts +101 -0
  373. package/src/verify/index.ts +1 -0
  374. package/src/verify/verify.ts +190 -62
  375. package/src/version.ts +1 -1
  376. package/src/zklogin/publickey.ts +18 -34
  377. package/dist/client/core-resolver.d.mts +0 -9
  378. package/dist/client/core-resolver.d.mts.map +0 -1
  379. package/dist/jsonRpc/client.d.mts +0 -507
  380. package/dist/jsonRpc/client.d.mts.map +0 -1
  381. package/dist/jsonRpc/client.mjs +0 -868
  382. package/dist/jsonRpc/client.mjs.map +0 -1
  383. package/dist/jsonRpc/core.d.mts +0 -168
  384. package/dist/jsonRpc/core.d.mts.map +0 -1
  385. package/dist/jsonRpc/core.mjs +0 -1054
  386. package/dist/jsonRpc/core.mjs.map +0 -1
  387. package/dist/jsonRpc/errors.d.mts +0 -27
  388. package/dist/jsonRpc/errors.d.mts.map +0 -1
  389. package/dist/jsonRpc/errors.mjs +0 -50
  390. package/dist/jsonRpc/errors.mjs.map +0 -1
  391. package/dist/jsonRpc/http-transport.d.mts +0 -62
  392. package/dist/jsonRpc/http-transport.d.mts.map +0 -1
  393. package/dist/jsonRpc/http-transport.mjs +0 -60
  394. package/dist/jsonRpc/http-transport.mjs.map +0 -1
  395. package/dist/jsonRpc/network.d.mts +0 -9
  396. package/dist/jsonRpc/network.d.mts.map +0 -1
  397. package/dist/jsonRpc/network.mjs +0 -18
  398. package/dist/jsonRpc/network.mjs.map +0 -1
  399. package/dist/jsonRpc/types/chain.d.mts +0 -169
  400. package/dist/jsonRpc/types/chain.d.mts.map +0 -1
  401. package/dist/jsonRpc/types/changes.d.mts +0 -48
  402. package/dist/jsonRpc/types/changes.d.mts.map +0 -1
  403. package/dist/jsonRpc/types/coins.d.mts +0 -15
  404. package/dist/jsonRpc/types/coins.d.mts.map +0 -1
  405. package/dist/jsonRpc/types/common.d.mts +0 -9
  406. package/dist/jsonRpc/types/common.d.mts.map +0 -1
  407. package/dist/jsonRpc/types/generated.d.mts +0 -1976
  408. package/dist/jsonRpc/types/generated.d.mts.map +0 -1
  409. package/dist/jsonRpc/types/index.d.mts +0 -6
  410. package/dist/jsonRpc/types/params.d.mts +0 -898
  411. package/dist/jsonRpc/types/params.d.mts.map +0 -1
  412. package/src/graphql/generated/tsconfig.tada.json +0 -11
  413. package/src/graphql/queries/verifyZkLoginSignature.graphql +0 -15
  414. package/src/jsonRpc/client.ts +0 -1252
  415. package/src/jsonRpc/core.ts +0 -1557
  416. package/src/jsonRpc/errors.ts +0 -57
  417. package/src/jsonRpc/http-transport.ts +0 -118
  418. package/src/jsonRpc/network.ts +0 -21
  419. package/src/jsonRpc/types/chain.ts +0 -190
  420. package/src/jsonRpc/types/changes.ts +0 -35
  421. package/src/jsonRpc/types/coins.ts +0 -14
  422. package/src/jsonRpc/types/common.ts +0 -8
  423. package/src/jsonRpc/types/generated.ts +0 -2165
  424. package/src/jsonRpc/types/index.ts +0 -9
  425. package/src/jsonRpc/types/params.ts +0 -908
@@ -8,6 +8,17 @@ type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
8
8
  export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
9
9
  import { OpenMoveTypeSignature } from '../types.js';
10
10
  import { DocumentTypeDecoration } from '@graphql-typed-document-node/core';
11
+ export type CheckpointFilter = {
12
+ /** Limit query results to checkpoints that occured strictly after the given checkpoint. */
13
+ afterCheckpoint?: number | null | undefined;
14
+ /** Limit query results to checkpoints that occured at the given checkpoint. */
15
+ atCheckpoint?: number | null | undefined;
16
+ /** Limit query results to checkpoints at this epoch. */
17
+ atEpoch?: number | null | undefined;
18
+ /** Limit query results to checkpoints that occured strictly before the given checkpoint. */
19
+ beforeCheckpoint?: number | null | undefined;
20
+ };
21
+
11
22
  export type EventFilter = {
12
23
  /** Limit to events that occured strictly after the given checkpoint. */
13
24
  afterCheckpoint?: number | null | undefined;
@@ -41,6 +52,14 @@ export enum ExecutionStatus {
41
52
  Success = 'SUCCESS'
42
53
  }
43
54
 
55
+ /** An enum that specifies the intent scope for signature verification. */
56
+ export enum IntentScope {
57
+ /** Indicates that the bytes are to be parsed as a personal message. */
58
+ PersonalMessage = 'PERSONAL_MESSAGE',
59
+ /** Indicates that the bytes are to be parsed as transaction data bytes. */
60
+ TransactionData = 'TRANSACTION_DATA'
61
+ }
62
+
44
63
  /** Abilities are keywords in Sui Move that define how types behave at the compiler level. */
45
64
  export enum MoveAbility {
46
65
  /** Enables values to be copied. */
@@ -178,13 +197,18 @@ export enum TransactionKindInput {
178
197
  SystemTx = 'SYSTEM_TX'
179
198
  }
180
199
 
181
- /** An enum that specifies the intent scope to be used to parse the bytes for signature verification. */
182
- export enum ZkLoginIntentScope {
183
- /** Indicates that the bytes are to be parsed as a personal message. */
184
- PersonalMessage = 'PERSONAL_MESSAGE',
185
- /** Indicates that the bytes are to be parsed as transaction data bytes. */
186
- TransactionData = 'TRANSACTION_DATA'
187
- }
200
+ export type ListCheckpointsQueryVariables = Exact<{
201
+ filter?: CheckpointFilter | null | undefined;
202
+ first?: number | null | undefined;
203
+ after?: string | null | undefined;
204
+ last?: number | null | undefined;
205
+ before?: string | null | undefined;
206
+ }>;
207
+
208
+
209
+ export type ListCheckpointsQuery = { checkpoints: { pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ cursor: string, node: { sequenceNumber: number, digest: string | null, timestamp: string | null, epoch: { epochId: number } | null } }> } | null };
210
+
211
+ export type Checkpoint_FieldsFragment = { sequenceNumber: number, digest: string | null, timestamp: string | null, epoch: { epochId: number } | null };
188
212
 
189
213
  export type GetAllBalancesQueryVariables = Exact<{
190
214
  owner: string;
@@ -244,7 +268,7 @@ export type GetDynamicFieldsQueryVariables = Exact<{
244
268
  }>;
245
269
 
246
270
 
247
- export type GetDynamicFieldsQuery = { address: { dynamicFields: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ name: { bcs: string | null, type: { repr: string } | null } | null, value:
271
+ export type GetDynamicFieldsQuery = { address: { dynamicFields: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ address: string, name: { bcs: string | null, type: { repr: string } | null } | null, value:
248
272
  | { __typename: 'MoveObject', address: string, contents: { bcs?: string | null, type: { repr: string } | null } | null }
249
273
  | { __typename: 'MoveValue', bcs?: string | null, type: { repr: string } | null }
250
274
  | null }> } | null } | null };
@@ -277,7 +301,9 @@ export type ListEventsQueryVariables = Exact<{
277
301
  }>;
278
302
 
279
303
 
280
- export type ListEventsQuery = { events: { pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, nodes: Array<{ sequenceNumber: number, transaction: { digest: string, effects: { checkpoint: { sequenceNumber: number } | null } | null } | null, transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null };
304
+ export type ListEventsQuery = { events: { pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ cursor: string, node: { sequenceNumber: number, transaction: { digest: string, effects: { checkpoint: { sequenceNumber: number } | null } | null } | null, transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null } }> } | null };
305
+
306
+ export type Event_FieldsFragment = { sequenceNumber: number, transaction: { digest: string, effects: { checkpoint: { sequenceNumber: number } | null } | null } | null, transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null };
281
307
 
282
308
  export type DefaultSuinsNameQueryVariables = Exact<{
283
309
  address: string;
@@ -366,6 +392,129 @@ export type Object_Owner_FieldsFragment =
366
392
  | Object_Owner_Fields_Shared_Fragment
367
393
  ;
368
394
 
395
+ export type LedgerStreamStateQueryVariables = Exact<{ [key: string]: never; }>;
396
+
397
+
398
+ export type LedgerStreamStateQuery = { chainIdentifier: string, checkpoint: { sequenceNumber: number } | null };
399
+
400
+ export type Stream_Page_InfoFragment = { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null };
401
+
402
+ export type ScanCheckpointsQueryVariables = Exact<{
403
+ filter?: CheckpointFilter | null | undefined;
404
+ first?: number | null | undefined;
405
+ after?: string | null | undefined;
406
+ last?: number | null | undefined;
407
+ before?: string | null | undefined;
408
+ }>;
409
+
410
+
411
+ export type ScanCheckpointsQuery = { checkpoint: { sequenceNumber: number } | null, checkpoints: { pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ cursor: string, node: { sequenceNumber: number, digest: string | null, timestamp: string | null, epoch: { epochId: number } | null } }> } | null };
412
+
413
+ export type SubscribeCheckpointsSubscriptionVariables = Exact<{
414
+ after?: string | null | undefined;
415
+ afterCheckpoint?: number | null | undefined;
416
+ }>;
417
+
418
+
419
+ export type SubscribeCheckpointsSubscription = { checkpoints: { cursor: string, node: { sequenceNumber: number, digest: string | null, timestamp: string | null, epoch: { epochId: number } | null } } };
420
+
421
+ export type ScanEventsQueryVariables = Exact<{
422
+ filter?: EventFilter | null | undefined;
423
+ first?: number | null | undefined;
424
+ after?: string | null | undefined;
425
+ last?: number | null | undefined;
426
+ before?: string | null | undefined;
427
+ }>;
428
+
429
+
430
+ export type ScanEventsQuery = { checkpoint: { sequenceNumber: number } | null, events: { pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ cursor: string, node: { sequenceNumber: number, transaction: { digest: string, effects: { checkpoint: { sequenceNumber: number } | null } | null } | null, transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null } }> } | null };
431
+
432
+ export type SubscribeEventsSubscriptionVariables = Exact<{
433
+ filter?: EventFilter | null | undefined;
434
+ after?: string | null | undefined;
435
+ }>;
436
+
437
+
438
+ export type SubscribeEventsSubscription = { events: { cursor: string, node: { sequenceNumber: number, transaction: { digest: string, effects: { checkpoint: { sequenceNumber: number } | null } | null } | null, transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null } | null } };
439
+
440
+ export type ScanTransactionsQueryVariables = Exact<{
441
+ filter?: TransactionFilter | null | undefined;
442
+ first?: number | null | undefined;
443
+ after?: string | null | undefined;
444
+ last?: number | null | undefined;
445
+ before?: string | null | undefined;
446
+ includeTransaction?: boolean | null | undefined;
447
+ includeEffects?: boolean | null | undefined;
448
+ includeEvents?: boolean | null | undefined;
449
+ includeBalanceChanges?: boolean | null | undefined;
450
+ includeObjectTypes?: boolean | null | undefined;
451
+ includeBcs?: boolean | null | undefined;
452
+ }>;
453
+
454
+
455
+ export type ScanTransactionsQuery = { checkpoint: { sequenceNumber: number } | null, transactions: { pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ cursor: string, node: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, sender: { address: string } | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } }> } | null };
456
+
457
+ export type SubscribeTransactionsSubscriptionVariables = Exact<{
458
+ filter?: TransactionFilter | null | undefined;
459
+ after?: string | null | undefined;
460
+ includeTransaction?: boolean | null | undefined;
461
+ includeEffects?: boolean | null | undefined;
462
+ includeEvents?: boolean | null | undefined;
463
+ includeBalanceChanges?: boolean | null | undefined;
464
+ includeObjectTypes?: boolean | null | undefined;
465
+ includeBcs?: boolean | null | undefined;
466
+ }>;
467
+
468
+
469
+ export type SubscribeTransactionsSubscription = { transactions: { cursor: string, node: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, sender: { address: string } | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } | null } };
470
+
471
+ export type Checkpoint_Transactions_PageFragment = { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ digest: string, transactionJson?: unknown, transactionBcs?: string | null, sender: { address: string } | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null }> };
472
+
473
+ export type ScanCheckpointsWithTransactionsQueryVariables = Exact<{
474
+ filter?: CheckpointFilter | null | undefined;
475
+ first?: number | null | undefined;
476
+ after?: string | null | undefined;
477
+ last?: number | null | undefined;
478
+ before?: string | null | undefined;
479
+ includeTransaction?: boolean | null | undefined;
480
+ includeEffects?: boolean | null | undefined;
481
+ includeEvents?: boolean | null | undefined;
482
+ includeBalanceChanges?: boolean | null | undefined;
483
+ includeObjectTypes?: boolean | null | undefined;
484
+ includeBcs?: boolean | null | undefined;
485
+ }>;
486
+
487
+
488
+ export type ScanCheckpointsWithTransactionsQuery = { checkpoint: { sequenceNumber: number } | null, checkpoints: { pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ cursor: string, node: { sequenceNumber: number, digest: string | null, timestamp: string | null, transactions: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ digest: string, transactionJson?: unknown, transactionBcs?: string | null, sender: { address: string } | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null }> } | null, epoch: { epochId: number } | null } }> } | null };
489
+
490
+ export type SubscribeCheckpointsWithTransactionsSubscriptionVariables = Exact<{
491
+ after?: string | null | undefined;
492
+ afterCheckpoint?: number | null | undefined;
493
+ includeTransaction?: boolean | null | undefined;
494
+ includeEffects?: boolean | null | undefined;
495
+ includeEvents?: boolean | null | undefined;
496
+ includeBalanceChanges?: boolean | null | undefined;
497
+ includeObjectTypes?: boolean | null | undefined;
498
+ includeBcs?: boolean | null | undefined;
499
+ }>;
500
+
501
+
502
+ export type SubscribeCheckpointsWithTransactionsSubscription = { checkpoints: { cursor: string, node: { sequenceNumber: number, digest: string | null, timestamp: string | null, transactions: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ digest: string, transactionJson?: unknown, transactionBcs?: string | null, sender: { address: string } | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null }> } | null, epoch: { epochId: number } | null } } };
503
+
504
+ export type CheckpointTransactionsQueryVariables = Exact<{
505
+ atCheckpoint: number;
506
+ after?: string | null | undefined;
507
+ includeTransaction?: boolean | null | undefined;
508
+ includeEffects?: boolean | null | undefined;
509
+ includeEvents?: boolean | null | undefined;
510
+ includeBalanceChanges?: boolean | null | undefined;
511
+ includeObjectTypes?: boolean | null | undefined;
512
+ includeBcs?: boolean | null | undefined;
513
+ }>;
514
+
515
+
516
+ export type CheckpointTransactionsQuery = { checkpoint: { sequenceNumber: number } | null, transactions: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ digest: string, transactionJson?: unknown, transactionBcs?: string | null, sender: { address: string } | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null }> } | null };
517
+
369
518
  export type SimulateTransactionQueryVariables = Exact<{
370
519
  transaction: unknown;
371
520
  includeTransaction?: boolean | null | undefined;
@@ -380,7 +529,7 @@ export type SimulateTransactionQueryVariables = Exact<{
380
529
  }>;
381
530
 
382
531
 
383
- export type SimulateTransactionQuery = { simulateTransaction: { effects: { transaction: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, gasEffects: { gasObject: { address: string } | null } | null, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null, signatures: Array<{ signatureBytes: string | null }> } | null } | null, outputs?: Array<{ returnValues: Array<{ value: { bcs: string | null } | null }> | null, mutatedReferences: Array<{ value: { bcs: string | null } | null }> | null }> | null } };
532
+ export type SimulateTransactionQuery = { simulateTransaction: { effects: { transaction: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, gasEffects: { gasObject: { address: string } | null } | null, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null, sender: { address: string } | null, signatures: Array<{ signatureBytes: string | null }> } | null } | null, outputs?: Array<{ returnValues: Array<{ value: { bcs: string | null } | null }> | null, mutatedReferences: Array<{ value: { bcs: string | null } | null }> | null }> | null } };
384
533
 
385
534
  export type ExecuteTransactionMutationVariables = Exact<{
386
535
  transactionDataBcs: string;
@@ -394,7 +543,7 @@ export type ExecuteTransactionMutationVariables = Exact<{
394
543
  }>;
395
544
 
396
545
 
397
- export type ExecuteTransactionMutation = { executeTransaction: { effects: { transaction: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } | null } | null } };
546
+ export type ExecuteTransactionMutation = { executeTransaction: { effects: { transaction: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, sender: { address: string } | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } | null } | null } };
398
547
 
399
548
  export type GetTransactionBlockQueryVariables = Exact<{
400
549
  digest: string;
@@ -407,7 +556,7 @@ export type GetTransactionBlockQueryVariables = Exact<{
407
556
  }>;
408
557
 
409
558
 
410
- export type GetTransactionBlockQuery = { transaction: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } | null };
559
+ export type GetTransactionBlockQuery = { transaction: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, sender: { address: string } | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } | null };
411
560
 
412
561
  export type ListTransactionsQueryVariables = Exact<{
413
562
  filter?: TransactionFilter | null | undefined;
@@ -424,9 +573,29 @@ export type ListTransactionsQueryVariables = Exact<{
424
573
  }>;
425
574
 
426
575
 
427
- export type ListTransactionsQuery = { transactions: { pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, nodes: Array<{ digest: string, transactionJson?: unknown, transactionBcs?: string | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null }> } | null };
576
+ export type ListTransactionsQuery = { transactions: { pageInfo: { hasNextPage: boolean, hasPreviousPage: boolean, startCursor: string | null, endCursor: string | null }, edges: Array<{ cursor: string, node: { digest: string, transactionJson?: unknown, transactionBcs?: string | null, sender: { address: string } | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } }> } | null };
577
+
578
+ export type Transaction_FieldsFragment = { digest: string, transactionJson?: unknown, transactionBcs?: string | null, sender: { address: string } | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null };
579
+
580
+ export type Transaction_EventFragment = { transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null };
581
+
582
+ export type Transaction_Object_ChangeFragment = { address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null };
583
+
584
+ export type GetTransactionObjectChangesQueryVariables = Exact<{
585
+ digest: string;
586
+ after?: string | null | undefined;
587
+ }>;
588
+
589
+
590
+ export type GetTransactionObjectChangesQuery = { transaction: { effects: { objectChanges: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null } | null } | null };
591
+
592
+ export type GetTransactionEventsQueryVariables = Exact<{
593
+ digest: string;
594
+ after?: string | null | undefined;
595
+ }>;
596
+
428
597
 
429
- export type Transaction_FieldsFragment = { digest: string, transactionJson?: unknown, transactionBcs?: string | null, signatures: Array<{ signatureBytes: string | null }>, effects: { status: ExecutionStatus | null, timestamp: string | null, effectsBcs?: string | null, effectsJson?: unknown, balanceChangesJson?: unknown, checkpoint: { sequenceNumber: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null, epoch: { epochId: number } | null, objectChanges?: { nodes: Array<{ address: string, outputState: { asMoveObject: { contents: { type: { repr: string } | null } | null } | null } | null }> } | null, events?: { pageInfo: { hasNextPage: boolean }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null };
598
+ export type GetTransactionEventsQuery = { transaction: { effects: { events: { pageInfo: { hasNextPage: boolean, endCursor: string | null }, nodes: Array<{ transactionModule: { name: string, package: { address: string } | null } | null, sender: { address: string } | null, contents: { bcs: string | null, json: unknown, type: { repr: string } | null } | null }> } | null } | null } | null };
430
599
 
431
600
  export type ResolveTransactionQueryVariables = Exact<{
432
601
  transaction: unknown;
@@ -437,15 +606,16 @@ export type ResolveTransactionQueryVariables = Exact<{
437
606
 
438
607
  export type ResolveTransactionQuery = { simulateTransaction: { effects: { transaction: { transactionBcs: string | null, effects: { status: ExecutionStatus | null, epoch: { epochId: number } | null, executionError: { message: string, abortCode: string | null, identifier: string | null, constant: string | null, sourceLineNumber: number | null, instructionOffset: number | null, module: { name: string, package: { address: string } | null } | null, function: { name: string } | null } | null } | null } | null } | null } };
439
608
 
440
- export type VerifyZkLoginSignatureQueryVariables = Exact<{
441
- bytes: string;
609
+ export type VerifySignatureQueryVariables = Exact<{
610
+ message: string;
442
611
  signature: string;
443
- intentScope: ZkLoginIntentScope;
612
+ intentScope: IntentScope;
444
613
  author: string;
614
+ checkAddressAliases?: boolean | null | undefined;
445
615
  }>;
446
616
 
447
617
 
448
- export type VerifyZkLoginSignatureQuery = { verifyZkLoginSignature: { success: boolean | null } | null };
618
+ export type VerifySignatureQuery = { verifySignature: { success: boolean | null } | null };
449
619
 
450
620
  export class TypedDocumentString<TResult, TVariables>
451
621
  extends String
@@ -465,6 +635,67 @@ export class TypedDocumentString<TResult, TVariables>
465
635
  return this.value;
466
636
  }
467
637
  }
638
+ export const Checkpoint_FieldsFragmentDoc = new TypedDocumentString(`
639
+ fragment CHECKPOINT_FIELDS on Checkpoint {
640
+ sequenceNumber
641
+ digest
642
+ timestamp
643
+ epoch {
644
+ epochId
645
+ }
646
+ }
647
+ `, {"fragmentName":"CHECKPOINT_FIELDS"}) as unknown as TypedDocumentString<Checkpoint_FieldsFragment, unknown>;
648
+ export const Transaction_EventFragmentDoc = new TypedDocumentString(`
649
+ fragment TRANSACTION_EVENT on Event {
650
+ transactionModule {
651
+ package {
652
+ address
653
+ }
654
+ name
655
+ }
656
+ sender {
657
+ address
658
+ }
659
+ contents {
660
+ type {
661
+ repr
662
+ }
663
+ bcs
664
+ json
665
+ }
666
+ }
667
+ `, {"fragmentName":"TRANSACTION_EVENT"}) as unknown as TypedDocumentString<Transaction_EventFragment, unknown>;
668
+ export const Event_FieldsFragmentDoc = new TypedDocumentString(`
669
+ fragment EVENT_FIELDS on Event {
670
+ sequenceNumber
671
+ transaction {
672
+ digest
673
+ effects {
674
+ checkpoint {
675
+ sequenceNumber
676
+ }
677
+ }
678
+ }
679
+ ...TRANSACTION_EVENT
680
+ }
681
+ fragment TRANSACTION_EVENT on Event {
682
+ transactionModule {
683
+ package {
684
+ address
685
+ }
686
+ name
687
+ }
688
+ sender {
689
+ address
690
+ }
691
+ contents {
692
+ type {
693
+ repr
694
+ }
695
+ bcs
696
+ json
697
+ }
698
+ }`, {"fragmentName":"EVENT_FIELDS"}) as unknown as TypedDocumentString<Event_FieldsFragment, unknown>;
468
699
  export const Object_Owner_FieldsFragmentDoc = new TypedDocumentString(`
469
700
  fragment OBJECT_OWNER_FIELDS on Owner {
470
701
  __typename
@@ -586,9 +817,34 @@ export const Move_Object_FieldsFragmentDoc = new TypedDocumentString(`
586
817
  }
587
818
  }
588
819
  }`, {"fragmentName":"MOVE_OBJECT_FIELDS"}) as unknown as TypedDocumentString<Move_Object_FieldsFragment, unknown>;
820
+ export const Stream_Page_InfoFragmentDoc = new TypedDocumentString(`
821
+ fragment STREAM_PAGE_INFO on PageInfo {
822
+ hasNextPage
823
+ hasPreviousPage
824
+ startCursor
825
+ endCursor
826
+ }
827
+ `, {"fragmentName":"STREAM_PAGE_INFO"}) as unknown as TypedDocumentString<Stream_Page_InfoFragment, unknown>;
828
+ export const Transaction_Object_ChangeFragmentDoc = new TypedDocumentString(`
829
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
830
+ address
831
+ outputState {
832
+ asMoveObject {
833
+ contents {
834
+ type {
835
+ repr
836
+ }
837
+ }
838
+ }
839
+ }
840
+ }
841
+ `, {"fragmentName":"TRANSACTION_OBJECT_CHANGE"}) as unknown as TypedDocumentString<Transaction_Object_ChangeFragment, unknown>;
589
842
  export const Transaction_FieldsFragmentDoc = new TypedDocumentString(`
590
843
  fragment TRANSACTION_FIELDS on Transaction {
591
844
  digest
845
+ sender {
846
+ address
847
+ }
592
848
  transactionJson @include(if: $includeTransaction)
593
849
  transactionBcs @include(if: $includeBcs)
594
850
  signatures {
@@ -624,87 +880,211 @@ export const Transaction_FieldsFragmentDoc = new TypedDocumentString(`
624
880
  effectsJson @include(if: $includeObjectTypes)
625
881
  objectChanges(first: 50) @include(if: $includeObjectTypes) {
626
882
  nodes {
627
- address
628
- outputState {
629
- asMoveObject {
630
- contents {
631
- type {
632
- repr
633
- }
634
- }
635
- }
636
- }
883
+ ...TRANSACTION_OBJECT_CHANGE
637
884
  }
638
885
  }
639
886
  balanceChangesJson @include(if: $includeBalanceChanges)
640
887
  events(first: 50) @include(if: $includeEvents) {
641
- pageInfo {
642
- hasNextPage
643
- }
644
888
  nodes {
645
- transactionModule {
646
- package {
647
- address
648
- }
649
- name
650
- }
651
- sender {
652
- address
653
- }
654
- contents {
655
- type {
656
- repr
657
- }
658
- bcs
659
- json
660
- }
889
+ ...TRANSACTION_EVENT
661
890
  }
662
891
  }
663
892
  }
664
893
  }
665
- `, {"fragmentName":"TRANSACTION_FIELDS"}) as unknown as TypedDocumentString<Transaction_FieldsFragment, unknown>;
666
- export const GetAllBalancesDocument = new TypedDocumentString(`
667
- query getAllBalances($owner: SuiAddress!, $limit: Int, $cursor: String) {
668
- address(address: $owner) {
669
- balances(first: $limit, after: $cursor) {
670
- pageInfo {
671
- hasNextPage
672
- endCursor
673
- }
674
- nodes {
675
- coinType {
676
- repr
677
- }
678
- totalBalance
679
- addressBalance
680
- }
894
+ fragment TRANSACTION_EVENT on Event {
895
+ transactionModule {
896
+ package {
897
+ address
898
+ }
899
+ name
900
+ }
901
+ sender {
902
+ address
903
+ }
904
+ contents {
905
+ type {
906
+ repr
681
907
  }
908
+ bcs
909
+ json
682
910
  }
683
911
  }
684
- `) as unknown as TypedDocumentString<GetAllBalancesQuery, GetAllBalancesQueryVariables>;
685
- export const GetBalanceDocument = new TypedDocumentString(`
686
- query getBalance($owner: SuiAddress!, $coinType: String = "0x2::sui::SUI") {
687
- address(address: $owner) {
688
- balance(coinType: $coinType) {
689
- coinType {
690
- repr
912
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
913
+ address
914
+ outputState {
915
+ asMoveObject {
916
+ contents {
917
+ type {
918
+ repr
919
+ }
691
920
  }
692
- totalBalance
693
- addressBalance
694
921
  }
695
922
  }
696
- }
697
- `) as unknown as TypedDocumentString<GetBalanceQuery, GetBalanceQueryVariables>;
698
- export const GetChainIdentifierDocument = new TypedDocumentString(`
699
- query getChainIdentifier {
700
- checkpoint(sequenceNumber: 0) {
701
- digest
923
+ }`, {"fragmentName":"TRANSACTION_FIELDS"}) as unknown as TypedDocumentString<Transaction_FieldsFragment, unknown>;
924
+ export const Checkpoint_Transactions_PageFragmentDoc = new TypedDocumentString(`
925
+ fragment CHECKPOINT_TRANSACTIONS_PAGE on TransactionConnection {
926
+ pageInfo {
927
+ hasNextPage
928
+ endCursor
929
+ }
930
+ nodes {
931
+ ...TRANSACTION_FIELDS
702
932
  }
703
933
  }
704
- `) as unknown as TypedDocumentString<GetChainIdentifierQuery, GetChainIdentifierQueryVariables>;
705
- export const GetCoinMetadataDocument = new TypedDocumentString(`
706
- query getCoinMetadata($coinType: String!) {
707
- coinMetadata(coinType: $coinType) {
934
+ fragment TRANSACTION_FIELDS on Transaction {
935
+ digest
936
+ sender {
937
+ address
938
+ }
939
+ transactionJson @include(if: $includeTransaction)
940
+ transactionBcs @include(if: $includeBcs)
941
+ signatures {
942
+ signatureBytes
943
+ }
944
+ effects {
945
+ status
946
+ timestamp
947
+ checkpoint {
948
+ sequenceNumber
949
+ }
950
+ executionError {
951
+ message
952
+ abortCode
953
+ identifier
954
+ constant
955
+ sourceLineNumber
956
+ instructionOffset
957
+ module {
958
+ name
959
+ package {
960
+ address
961
+ }
962
+ }
963
+ function {
964
+ name
965
+ }
966
+ }
967
+ epoch {
968
+ epochId
969
+ }
970
+ effectsBcs @include(if: $includeEffects)
971
+ effectsJson @include(if: $includeObjectTypes)
972
+ objectChanges(first: 50) @include(if: $includeObjectTypes) {
973
+ nodes {
974
+ ...TRANSACTION_OBJECT_CHANGE
975
+ }
976
+ }
977
+ balanceChangesJson @include(if: $includeBalanceChanges)
978
+ events(first: 50) @include(if: $includeEvents) {
979
+ nodes {
980
+ ...TRANSACTION_EVENT
981
+ }
982
+ }
983
+ }
984
+ }
985
+ fragment TRANSACTION_EVENT on Event {
986
+ transactionModule {
987
+ package {
988
+ address
989
+ }
990
+ name
991
+ }
992
+ sender {
993
+ address
994
+ }
995
+ contents {
996
+ type {
997
+ repr
998
+ }
999
+ bcs
1000
+ json
1001
+ }
1002
+ }
1003
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
1004
+ address
1005
+ outputState {
1006
+ asMoveObject {
1007
+ contents {
1008
+ type {
1009
+ repr
1010
+ }
1011
+ }
1012
+ }
1013
+ }
1014
+ }`, {"fragmentName":"CHECKPOINT_TRANSACTIONS_PAGE"}) as unknown as TypedDocumentString<Checkpoint_Transactions_PageFragment, unknown>;
1015
+ export const ListCheckpointsDocument = new TypedDocumentString(`
1016
+ query listCheckpoints($filter: CheckpointFilter, $first: Int, $after: String, $last: Int, $before: String) {
1017
+ checkpoints(
1018
+ filter: $filter
1019
+ first: $first
1020
+ after: $after
1021
+ last: $last
1022
+ before: $before
1023
+ ) {
1024
+ pageInfo {
1025
+ hasNextPage
1026
+ hasPreviousPage
1027
+ startCursor
1028
+ endCursor
1029
+ }
1030
+ edges {
1031
+ cursor
1032
+ node {
1033
+ ...CHECKPOINT_FIELDS
1034
+ }
1035
+ }
1036
+ }
1037
+ }
1038
+ fragment CHECKPOINT_FIELDS on Checkpoint {
1039
+ sequenceNumber
1040
+ digest
1041
+ timestamp
1042
+ epoch {
1043
+ epochId
1044
+ }
1045
+ }`) as unknown as TypedDocumentString<ListCheckpointsQuery, ListCheckpointsQueryVariables>;
1046
+ export const GetAllBalancesDocument = new TypedDocumentString(`
1047
+ query getAllBalances($owner: SuiAddress!, $limit: Int, $cursor: String) {
1048
+ address(address: $owner) {
1049
+ balances(first: $limit, after: $cursor) {
1050
+ pageInfo {
1051
+ hasNextPage
1052
+ endCursor
1053
+ }
1054
+ nodes {
1055
+ coinType {
1056
+ repr
1057
+ }
1058
+ totalBalance
1059
+ addressBalance
1060
+ }
1061
+ }
1062
+ }
1063
+ }
1064
+ `) as unknown as TypedDocumentString<GetAllBalancesQuery, GetAllBalancesQueryVariables>;
1065
+ export const GetBalanceDocument = new TypedDocumentString(`
1066
+ query getBalance($owner: SuiAddress!, $coinType: String = "0x2::sui::SUI") {
1067
+ address(address: $owner) {
1068
+ balance(coinType: $coinType) {
1069
+ coinType {
1070
+ repr
1071
+ }
1072
+ totalBalance
1073
+ addressBalance
1074
+ }
1075
+ }
1076
+ }
1077
+ `) as unknown as TypedDocumentString<GetBalanceQuery, GetBalanceQueryVariables>;
1078
+ export const GetChainIdentifierDocument = new TypedDocumentString(`
1079
+ query getChainIdentifier {
1080
+ checkpoint(sequenceNumber: 0) {
1081
+ digest
1082
+ }
1083
+ }
1084
+ `) as unknown as TypedDocumentString<GetChainIdentifierQuery, GetChainIdentifierQueryVariables>;
1085
+ export const GetCoinMetadataDocument = new TypedDocumentString(`
1086
+ query getCoinMetadata($coinType: String!) {
1087
+ coinMetadata(coinType: $coinType) {
708
1088
  address
709
1089
  decimals
710
1090
  name
@@ -718,7 +1098,7 @@ export const GetCoinsDocument = new TypedDocumentString(`
718
1098
  query getCoins($owner: SuiAddress!, $first: Int, $cursor: String, $type: String = "0x2::coin::Coin<0x2::sui::SUI>") {
719
1099
  address(address: $owner) {
720
1100
  address
721
- objects(first: $first, after: $cursor, filter: {type: $type}) {
1101
+ objects(first: $first, after: $cursor, filter: { type: $type }) {
722
1102
  pageInfo {
723
1103
  hasNextPage
724
1104
  endCursor
@@ -786,6 +1166,7 @@ export const GetDynamicFieldsDocument = new TypedDocumentString(`
786
1166
  endCursor
787
1167
  }
788
1168
  nodes {
1169
+ address
789
1170
  name {
790
1171
  bcs
791
1172
  type {
@@ -876,36 +1257,44 @@ export const ListEventsDocument = new TypedDocumentString(`
876
1257
  startCursor
877
1258
  endCursor
878
1259
  }
879
- nodes {
880
- sequenceNumber
881
- transaction {
882
- digest
883
- effects {
884
- checkpoint {
885
- sequenceNumber
886
- }
887
- }
888
- }
889
- transactionModule {
890
- package {
891
- address
892
- }
893
- name
894
- }
895
- sender {
896
- address
1260
+ edges {
1261
+ cursor
1262
+ node {
1263
+ ...EVENT_FIELDS
897
1264
  }
898
- contents {
899
- type {
900
- repr
901
- }
902
- bcs
903
- json
1265
+ }
1266
+ }
1267
+ }
1268
+ fragment EVENT_FIELDS on Event {
1269
+ sequenceNumber
1270
+ transaction {
1271
+ digest
1272
+ effects {
1273
+ checkpoint {
1274
+ sequenceNumber
904
1275
  }
905
1276
  }
906
1277
  }
1278
+ ...TRANSACTION_EVENT
907
1279
  }
908
- `) as unknown as TypedDocumentString<ListEventsQuery, ListEventsQueryVariables>;
1280
+ fragment TRANSACTION_EVENT on Event {
1281
+ transactionModule {
1282
+ package {
1283
+ address
1284
+ }
1285
+ name
1286
+ }
1287
+ sender {
1288
+ address
1289
+ }
1290
+ contents {
1291
+ type {
1292
+ repr
1293
+ }
1294
+ bcs
1295
+ json
1296
+ }
1297
+ }`) as unknown as TypedDocumentString<ListEventsQuery, ListEventsQueryVariables>;
909
1298
  export const DefaultSuinsNameDocument = new TypedDocumentString(`
910
1299
  query defaultSuinsName($address: SuiAddress!) {
911
1300
  address(address: $address) {
@@ -1037,109 +1426,814 @@ fragment OBJECT_OWNER_FIELDS on Owner {
1037
1426
  }
1038
1427
  }
1039
1428
  }`) as unknown as TypedDocumentString<MultiGetObjectsQuery, MultiGetObjectsQueryVariables>;
1040
- export const SimulateTransactionDocument = new TypedDocumentString(`
1041
- query simulateTransaction($transaction: JSON!, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeCommandResults: Boolean = false, $includeBcs: Boolean = false, $doGasSelection: Boolean = false, $checksEnabled: Boolean = true) {
1042
- simulateTransaction(
1043
- transaction: $transaction
1044
- doGasSelection: $doGasSelection
1045
- checksEnabled: $checksEnabled
1429
+ export const LedgerStreamStateDocument = new TypedDocumentString(`
1430
+ query ledgerStreamState {
1431
+ chainIdentifier
1432
+ checkpoint {
1433
+ sequenceNumber
1434
+ }
1435
+ }
1436
+ `) as unknown as TypedDocumentString<LedgerStreamStateQuery, LedgerStreamStateQueryVariables>;
1437
+ export const ScanCheckpointsDocument = new TypedDocumentString(`
1438
+ query scanCheckpoints($filter: CheckpointFilter, $first: Int, $after: String, $last: Int, $before: String) {
1439
+ checkpoint {
1440
+ sequenceNumber
1441
+ }
1442
+ checkpoints(
1443
+ filter: $filter
1444
+ first: $first
1445
+ after: $after
1446
+ last: $last
1447
+ before: $before
1046
1448
  ) {
1047
- effects {
1048
- transaction {
1049
- ...TRANSACTION_FIELDS
1050
- effects {
1051
- gasEffects {
1052
- gasObject {
1053
- address
1054
- }
1055
- }
1056
- }
1057
- }
1449
+ pageInfo {
1450
+ ...STREAM_PAGE_INFO
1058
1451
  }
1059
- outputs @include(if: $includeCommandResults) {
1060
- returnValues {
1061
- value {
1062
- bcs
1063
- }
1064
- }
1065
- mutatedReferences {
1066
- value {
1067
- bcs
1068
- }
1452
+ edges {
1453
+ cursor
1454
+ node {
1455
+ ...CHECKPOINT_FIELDS
1069
1456
  }
1070
1457
  }
1071
1458
  }
1072
1459
  }
1073
- fragment TRANSACTION_FIELDS on Transaction {
1460
+ fragment CHECKPOINT_FIELDS on Checkpoint {
1461
+ sequenceNumber
1074
1462
  digest
1075
- transactionJson @include(if: $includeTransaction)
1076
- transactionBcs @include(if: $includeBcs)
1077
- signatures {
1078
- signatureBytes
1463
+ timestamp
1464
+ epoch {
1465
+ epochId
1079
1466
  }
1080
- effects {
1081
- status
1082
- timestamp
1083
- checkpoint {
1084
- sequenceNumber
1467
+ }
1468
+ fragment STREAM_PAGE_INFO on PageInfo {
1469
+ hasNextPage
1470
+ hasPreviousPage
1471
+ startCursor
1472
+ endCursor
1473
+ }`) as unknown as TypedDocumentString<ScanCheckpointsQuery, ScanCheckpointsQueryVariables>;
1474
+ export const SubscribeCheckpointsDocument = new TypedDocumentString(`
1475
+ subscription subscribeCheckpoints($after: String, $afterCheckpoint: UInt53) {
1476
+ checkpoints(after: $after, afterCheckpoint: $afterCheckpoint) {
1477
+ cursor
1478
+ node {
1479
+ ...CHECKPOINT_FIELDS
1085
1480
  }
1086
- executionError {
1087
- message
1088
- abortCode
1089
- identifier
1090
- constant
1091
- sourceLineNumber
1092
- instructionOffset
1093
- module {
1094
- name
1095
- package {
1096
- address
1097
- }
1481
+ }
1482
+ }
1483
+ fragment CHECKPOINT_FIELDS on Checkpoint {
1484
+ sequenceNumber
1485
+ digest
1486
+ timestamp
1487
+ epoch {
1488
+ epochId
1489
+ }
1490
+ }`) as unknown as TypedDocumentString<SubscribeCheckpointsSubscription, SubscribeCheckpointsSubscriptionVariables>;
1491
+ export const ScanEventsDocument = new TypedDocumentString(`
1492
+ query scanEvents($filter: EventFilter, $first: Int, $after: String, $last: Int, $before: String) {
1493
+ checkpoint {
1494
+ sequenceNumber
1495
+ }
1496
+ events(
1497
+ filter: $filter
1498
+ first: $first
1499
+ after: $after
1500
+ last: $last
1501
+ before: $before
1502
+ ) {
1503
+ pageInfo {
1504
+ ...STREAM_PAGE_INFO
1505
+ }
1506
+ edges {
1507
+ cursor
1508
+ node {
1509
+ ...EVENT_FIELDS
1098
1510
  }
1099
- function {
1100
- name
1511
+ }
1512
+ }
1513
+ }
1514
+ fragment EVENT_FIELDS on Event {
1515
+ sequenceNumber
1516
+ transaction {
1517
+ digest
1518
+ effects {
1519
+ checkpoint {
1520
+ sequenceNumber
1101
1521
  }
1102
1522
  }
1103
- epoch {
1104
- epochId
1523
+ }
1524
+ ...TRANSACTION_EVENT
1525
+ }
1526
+ fragment STREAM_PAGE_INFO on PageInfo {
1527
+ hasNextPage
1528
+ hasPreviousPage
1529
+ startCursor
1530
+ endCursor
1531
+ }
1532
+ fragment TRANSACTION_EVENT on Event {
1533
+ transactionModule {
1534
+ package {
1535
+ address
1105
1536
  }
1106
- effectsBcs @include(if: $includeEffects)
1107
- effectsJson @include(if: $includeObjectTypes)
1537
+ name
1538
+ }
1539
+ sender {
1540
+ address
1541
+ }
1542
+ contents {
1543
+ type {
1544
+ repr
1545
+ }
1546
+ bcs
1547
+ json
1548
+ }
1549
+ }`) as unknown as TypedDocumentString<ScanEventsQuery, ScanEventsQueryVariables>;
1550
+ export const SubscribeEventsDocument = new TypedDocumentString(`
1551
+ subscription subscribeEvents($filter: EventFilter, $after: String) {
1552
+ events(filter: $filter, after: $after, progress: true) {
1553
+ cursor
1554
+ node {
1555
+ ...EVENT_FIELDS
1556
+ }
1557
+ }
1558
+ }
1559
+ fragment EVENT_FIELDS on Event {
1560
+ sequenceNumber
1561
+ transaction {
1562
+ digest
1563
+ effects {
1564
+ checkpoint {
1565
+ sequenceNumber
1566
+ }
1567
+ }
1568
+ }
1569
+ ...TRANSACTION_EVENT
1570
+ }
1571
+ fragment TRANSACTION_EVENT on Event {
1572
+ transactionModule {
1573
+ package {
1574
+ address
1575
+ }
1576
+ name
1577
+ }
1578
+ sender {
1579
+ address
1580
+ }
1581
+ contents {
1582
+ type {
1583
+ repr
1584
+ }
1585
+ bcs
1586
+ json
1587
+ }
1588
+ }`) as unknown as TypedDocumentString<SubscribeEventsSubscription, SubscribeEventsSubscriptionVariables>;
1589
+ export const ScanTransactionsDocument = new TypedDocumentString(`
1590
+ query scanTransactions($filter: TransactionFilter, $first: Int, $after: String, $last: Int, $before: String, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeBcs: Boolean = false) {
1591
+ checkpoint {
1592
+ sequenceNumber
1593
+ }
1594
+ transactions(
1595
+ filter: $filter
1596
+ first: $first
1597
+ after: $after
1598
+ last: $last
1599
+ before: $before
1600
+ ) {
1601
+ pageInfo {
1602
+ ...STREAM_PAGE_INFO
1603
+ }
1604
+ edges {
1605
+ cursor
1606
+ node {
1607
+ ...TRANSACTION_FIELDS
1608
+ }
1609
+ }
1610
+ }
1611
+ }
1612
+ fragment STREAM_PAGE_INFO on PageInfo {
1613
+ hasNextPage
1614
+ hasPreviousPage
1615
+ startCursor
1616
+ endCursor
1617
+ }
1618
+ fragment TRANSACTION_FIELDS on Transaction {
1619
+ digest
1620
+ sender {
1621
+ address
1622
+ }
1623
+ transactionJson @include(if: $includeTransaction)
1624
+ transactionBcs @include(if: $includeBcs)
1625
+ signatures {
1626
+ signatureBytes
1627
+ }
1628
+ effects {
1629
+ status
1630
+ timestamp
1631
+ checkpoint {
1632
+ sequenceNumber
1633
+ }
1634
+ executionError {
1635
+ message
1636
+ abortCode
1637
+ identifier
1638
+ constant
1639
+ sourceLineNumber
1640
+ instructionOffset
1641
+ module {
1642
+ name
1643
+ package {
1644
+ address
1645
+ }
1646
+ }
1647
+ function {
1648
+ name
1649
+ }
1650
+ }
1651
+ epoch {
1652
+ epochId
1653
+ }
1654
+ effectsBcs @include(if: $includeEffects)
1655
+ effectsJson @include(if: $includeObjectTypes)
1108
1656
  objectChanges(first: 50) @include(if: $includeObjectTypes) {
1109
1657
  nodes {
1110
- address
1111
- outputState {
1112
- asMoveObject {
1113
- contents {
1114
- type {
1115
- repr
1116
- }
1658
+ ...TRANSACTION_OBJECT_CHANGE
1659
+ }
1660
+ }
1661
+ balanceChangesJson @include(if: $includeBalanceChanges)
1662
+ events(first: 50) @include(if: $includeEvents) {
1663
+ nodes {
1664
+ ...TRANSACTION_EVENT
1665
+ }
1666
+ }
1667
+ }
1668
+ }
1669
+ fragment TRANSACTION_EVENT on Event {
1670
+ transactionModule {
1671
+ package {
1672
+ address
1673
+ }
1674
+ name
1675
+ }
1676
+ sender {
1677
+ address
1678
+ }
1679
+ contents {
1680
+ type {
1681
+ repr
1682
+ }
1683
+ bcs
1684
+ json
1685
+ }
1686
+ }
1687
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
1688
+ address
1689
+ outputState {
1690
+ asMoveObject {
1691
+ contents {
1692
+ type {
1693
+ repr
1694
+ }
1695
+ }
1696
+ }
1697
+ }
1698
+ }`) as unknown as TypedDocumentString<ScanTransactionsQuery, ScanTransactionsQueryVariables>;
1699
+ export const SubscribeTransactionsDocument = new TypedDocumentString(`
1700
+ subscription subscribeTransactions($filter: TransactionFilter, $after: String, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeBcs: Boolean = false) {
1701
+ transactions(filter: $filter, after: $after, progress: true) {
1702
+ cursor
1703
+ node {
1704
+ ...TRANSACTION_FIELDS
1705
+ }
1706
+ }
1707
+ }
1708
+ fragment TRANSACTION_FIELDS on Transaction {
1709
+ digest
1710
+ sender {
1711
+ address
1712
+ }
1713
+ transactionJson @include(if: $includeTransaction)
1714
+ transactionBcs @include(if: $includeBcs)
1715
+ signatures {
1716
+ signatureBytes
1717
+ }
1718
+ effects {
1719
+ status
1720
+ timestamp
1721
+ checkpoint {
1722
+ sequenceNumber
1723
+ }
1724
+ executionError {
1725
+ message
1726
+ abortCode
1727
+ identifier
1728
+ constant
1729
+ sourceLineNumber
1730
+ instructionOffset
1731
+ module {
1732
+ name
1733
+ package {
1734
+ address
1735
+ }
1736
+ }
1737
+ function {
1738
+ name
1739
+ }
1740
+ }
1741
+ epoch {
1742
+ epochId
1743
+ }
1744
+ effectsBcs @include(if: $includeEffects)
1745
+ effectsJson @include(if: $includeObjectTypes)
1746
+ objectChanges(first: 50) @include(if: $includeObjectTypes) {
1747
+ nodes {
1748
+ ...TRANSACTION_OBJECT_CHANGE
1749
+ }
1750
+ }
1751
+ balanceChangesJson @include(if: $includeBalanceChanges)
1752
+ events(first: 50) @include(if: $includeEvents) {
1753
+ nodes {
1754
+ ...TRANSACTION_EVENT
1755
+ }
1756
+ }
1757
+ }
1758
+ }
1759
+ fragment TRANSACTION_EVENT on Event {
1760
+ transactionModule {
1761
+ package {
1762
+ address
1763
+ }
1764
+ name
1765
+ }
1766
+ sender {
1767
+ address
1768
+ }
1769
+ contents {
1770
+ type {
1771
+ repr
1772
+ }
1773
+ bcs
1774
+ json
1775
+ }
1776
+ }
1777
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
1778
+ address
1779
+ outputState {
1780
+ asMoveObject {
1781
+ contents {
1782
+ type {
1783
+ repr
1784
+ }
1785
+ }
1786
+ }
1787
+ }
1788
+ }`) as unknown as TypedDocumentString<SubscribeTransactionsSubscription, SubscribeTransactionsSubscriptionVariables>;
1789
+ export const ScanCheckpointsWithTransactionsDocument = new TypedDocumentString(`
1790
+ query scanCheckpointsWithTransactions($filter: CheckpointFilter, $first: Int, $after: String, $last: Int, $before: String, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeBcs: Boolean = false) {
1791
+ checkpoint {
1792
+ sequenceNumber
1793
+ }
1794
+ checkpoints(
1795
+ filter: $filter
1796
+ first: $first
1797
+ after: $after
1798
+ last: $last
1799
+ before: $before
1800
+ ) {
1801
+ pageInfo {
1802
+ ...STREAM_PAGE_INFO
1803
+ }
1804
+ edges {
1805
+ cursor
1806
+ node {
1807
+ ...CHECKPOINT_FIELDS
1808
+ transactions(first: 50) {
1809
+ ...CHECKPOINT_TRANSACTIONS_PAGE
1810
+ }
1811
+ }
1812
+ }
1813
+ }
1814
+ }
1815
+ fragment CHECKPOINT_FIELDS on Checkpoint {
1816
+ sequenceNumber
1817
+ digest
1818
+ timestamp
1819
+ epoch {
1820
+ epochId
1821
+ }
1822
+ }
1823
+ fragment STREAM_PAGE_INFO on PageInfo {
1824
+ hasNextPage
1825
+ hasPreviousPage
1826
+ startCursor
1827
+ endCursor
1828
+ }
1829
+ fragment CHECKPOINT_TRANSACTIONS_PAGE on TransactionConnection {
1830
+ pageInfo {
1831
+ hasNextPage
1832
+ endCursor
1833
+ }
1834
+ nodes {
1835
+ ...TRANSACTION_FIELDS
1836
+ }
1837
+ }
1838
+ fragment TRANSACTION_FIELDS on Transaction {
1839
+ digest
1840
+ sender {
1841
+ address
1842
+ }
1843
+ transactionJson @include(if: $includeTransaction)
1844
+ transactionBcs @include(if: $includeBcs)
1845
+ signatures {
1846
+ signatureBytes
1847
+ }
1848
+ effects {
1849
+ status
1850
+ timestamp
1851
+ checkpoint {
1852
+ sequenceNumber
1853
+ }
1854
+ executionError {
1855
+ message
1856
+ abortCode
1857
+ identifier
1858
+ constant
1859
+ sourceLineNumber
1860
+ instructionOffset
1861
+ module {
1862
+ name
1863
+ package {
1864
+ address
1865
+ }
1866
+ }
1867
+ function {
1868
+ name
1869
+ }
1870
+ }
1871
+ epoch {
1872
+ epochId
1873
+ }
1874
+ effectsBcs @include(if: $includeEffects)
1875
+ effectsJson @include(if: $includeObjectTypes)
1876
+ objectChanges(first: 50) @include(if: $includeObjectTypes) {
1877
+ nodes {
1878
+ ...TRANSACTION_OBJECT_CHANGE
1879
+ }
1880
+ }
1881
+ balanceChangesJson @include(if: $includeBalanceChanges)
1882
+ events(first: 50) @include(if: $includeEvents) {
1883
+ nodes {
1884
+ ...TRANSACTION_EVENT
1885
+ }
1886
+ }
1887
+ }
1888
+ }
1889
+ fragment TRANSACTION_EVENT on Event {
1890
+ transactionModule {
1891
+ package {
1892
+ address
1893
+ }
1894
+ name
1895
+ }
1896
+ sender {
1897
+ address
1898
+ }
1899
+ contents {
1900
+ type {
1901
+ repr
1902
+ }
1903
+ bcs
1904
+ json
1905
+ }
1906
+ }
1907
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
1908
+ address
1909
+ outputState {
1910
+ asMoveObject {
1911
+ contents {
1912
+ type {
1913
+ repr
1914
+ }
1915
+ }
1916
+ }
1917
+ }
1918
+ }`) as unknown as TypedDocumentString<ScanCheckpointsWithTransactionsQuery, ScanCheckpointsWithTransactionsQueryVariables>;
1919
+ export const SubscribeCheckpointsWithTransactionsDocument = new TypedDocumentString(`
1920
+ subscription subscribeCheckpointsWithTransactions($after: String, $afterCheckpoint: UInt53, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeBcs: Boolean = false) {
1921
+ checkpoints(after: $after, afterCheckpoint: $afterCheckpoint) {
1922
+ cursor
1923
+ node {
1924
+ ...CHECKPOINT_FIELDS
1925
+ transactions(first: 50) {
1926
+ ...CHECKPOINT_TRANSACTIONS_PAGE
1927
+ }
1928
+ }
1929
+ }
1930
+ }
1931
+ fragment CHECKPOINT_FIELDS on Checkpoint {
1932
+ sequenceNumber
1933
+ digest
1934
+ timestamp
1935
+ epoch {
1936
+ epochId
1937
+ }
1938
+ }
1939
+ fragment CHECKPOINT_TRANSACTIONS_PAGE on TransactionConnection {
1940
+ pageInfo {
1941
+ hasNextPage
1942
+ endCursor
1943
+ }
1944
+ nodes {
1945
+ ...TRANSACTION_FIELDS
1946
+ }
1947
+ }
1948
+ fragment TRANSACTION_FIELDS on Transaction {
1949
+ digest
1950
+ sender {
1951
+ address
1952
+ }
1953
+ transactionJson @include(if: $includeTransaction)
1954
+ transactionBcs @include(if: $includeBcs)
1955
+ signatures {
1956
+ signatureBytes
1957
+ }
1958
+ effects {
1959
+ status
1960
+ timestamp
1961
+ checkpoint {
1962
+ sequenceNumber
1963
+ }
1964
+ executionError {
1965
+ message
1966
+ abortCode
1967
+ identifier
1968
+ constant
1969
+ sourceLineNumber
1970
+ instructionOffset
1971
+ module {
1972
+ name
1973
+ package {
1974
+ address
1975
+ }
1976
+ }
1977
+ function {
1978
+ name
1979
+ }
1980
+ }
1981
+ epoch {
1982
+ epochId
1983
+ }
1984
+ effectsBcs @include(if: $includeEffects)
1985
+ effectsJson @include(if: $includeObjectTypes)
1986
+ objectChanges(first: 50) @include(if: $includeObjectTypes) {
1987
+ nodes {
1988
+ ...TRANSACTION_OBJECT_CHANGE
1989
+ }
1990
+ }
1991
+ balanceChangesJson @include(if: $includeBalanceChanges)
1992
+ events(first: 50) @include(if: $includeEvents) {
1993
+ nodes {
1994
+ ...TRANSACTION_EVENT
1995
+ }
1996
+ }
1997
+ }
1998
+ }
1999
+ fragment TRANSACTION_EVENT on Event {
2000
+ transactionModule {
2001
+ package {
2002
+ address
2003
+ }
2004
+ name
2005
+ }
2006
+ sender {
2007
+ address
2008
+ }
2009
+ contents {
2010
+ type {
2011
+ repr
2012
+ }
2013
+ bcs
2014
+ json
2015
+ }
2016
+ }
2017
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
2018
+ address
2019
+ outputState {
2020
+ asMoveObject {
2021
+ contents {
2022
+ type {
2023
+ repr
2024
+ }
2025
+ }
2026
+ }
2027
+ }
2028
+ }`) as unknown as TypedDocumentString<SubscribeCheckpointsWithTransactionsSubscription, SubscribeCheckpointsWithTransactionsSubscriptionVariables>;
2029
+ export const CheckpointTransactionsDocument = new TypedDocumentString(`
2030
+ query checkpointTransactions($atCheckpoint: UInt53!, $after: String, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeBcs: Boolean = false) {
2031
+ checkpoint {
2032
+ sequenceNumber
2033
+ }
2034
+ transactions(filter: { atCheckpoint: $atCheckpoint }, first: 50, after: $after) {
2035
+ ...CHECKPOINT_TRANSACTIONS_PAGE
2036
+ }
2037
+ }
2038
+ fragment CHECKPOINT_TRANSACTIONS_PAGE on TransactionConnection {
2039
+ pageInfo {
2040
+ hasNextPage
2041
+ endCursor
2042
+ }
2043
+ nodes {
2044
+ ...TRANSACTION_FIELDS
2045
+ }
2046
+ }
2047
+ fragment TRANSACTION_FIELDS on Transaction {
2048
+ digest
2049
+ sender {
2050
+ address
2051
+ }
2052
+ transactionJson @include(if: $includeTransaction)
2053
+ transactionBcs @include(if: $includeBcs)
2054
+ signatures {
2055
+ signatureBytes
2056
+ }
2057
+ effects {
2058
+ status
2059
+ timestamp
2060
+ checkpoint {
2061
+ sequenceNumber
2062
+ }
2063
+ executionError {
2064
+ message
2065
+ abortCode
2066
+ identifier
2067
+ constant
2068
+ sourceLineNumber
2069
+ instructionOffset
2070
+ module {
2071
+ name
2072
+ package {
2073
+ address
2074
+ }
2075
+ }
2076
+ function {
2077
+ name
2078
+ }
2079
+ }
2080
+ epoch {
2081
+ epochId
2082
+ }
2083
+ effectsBcs @include(if: $includeEffects)
2084
+ effectsJson @include(if: $includeObjectTypes)
2085
+ objectChanges(first: 50) @include(if: $includeObjectTypes) {
2086
+ nodes {
2087
+ ...TRANSACTION_OBJECT_CHANGE
2088
+ }
2089
+ }
2090
+ balanceChangesJson @include(if: $includeBalanceChanges)
2091
+ events(first: 50) @include(if: $includeEvents) {
2092
+ nodes {
2093
+ ...TRANSACTION_EVENT
2094
+ }
2095
+ }
2096
+ }
2097
+ }
2098
+ fragment TRANSACTION_EVENT on Event {
2099
+ transactionModule {
2100
+ package {
2101
+ address
2102
+ }
2103
+ name
2104
+ }
2105
+ sender {
2106
+ address
2107
+ }
2108
+ contents {
2109
+ type {
2110
+ repr
2111
+ }
2112
+ bcs
2113
+ json
2114
+ }
2115
+ }
2116
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
2117
+ address
2118
+ outputState {
2119
+ asMoveObject {
2120
+ contents {
2121
+ type {
2122
+ repr
2123
+ }
2124
+ }
2125
+ }
2126
+ }
2127
+ }`) as unknown as TypedDocumentString<CheckpointTransactionsQuery, CheckpointTransactionsQueryVariables>;
2128
+ export const SimulateTransactionDocument = new TypedDocumentString(`
2129
+ query simulateTransaction($transaction: JSON!, $includeTransaction: Boolean = false, $includeEffects: Boolean = false, $includeEvents: Boolean = false, $includeBalanceChanges: Boolean = false, $includeObjectTypes: Boolean = false, $includeCommandResults: Boolean = false, $includeBcs: Boolean = false, $doGasSelection: Boolean = false, $checksEnabled: Boolean = true) {
2130
+ simulateTransaction(
2131
+ transaction: $transaction
2132
+ doGasSelection: $doGasSelection
2133
+ checksEnabled: $checksEnabled
2134
+ ) {
2135
+ effects {
2136
+ transaction {
2137
+ ...TRANSACTION_FIELDS
2138
+ effects {
2139
+ gasEffects {
2140
+ gasObject {
2141
+ address
1117
2142
  }
1118
2143
  }
1119
2144
  }
1120
2145
  }
1121
2146
  }
1122
- balanceChangesJson @include(if: $includeBalanceChanges)
1123
- events(first: 50) @include(if: $includeEvents) {
1124
- pageInfo {
1125
- hasNextPage
2147
+ outputs @include(if: $includeCommandResults) {
2148
+ returnValues {
2149
+ value {
2150
+ bcs
2151
+ }
1126
2152
  }
1127
- nodes {
1128
- transactionModule {
1129
- package {
1130
- address
1131
- }
1132
- name
2153
+ mutatedReferences {
2154
+ value {
2155
+ bcs
1133
2156
  }
1134
- sender {
2157
+ }
2158
+ }
2159
+ }
2160
+ }
2161
+ fragment TRANSACTION_FIELDS on Transaction {
2162
+ digest
2163
+ sender {
2164
+ address
2165
+ }
2166
+ transactionJson @include(if: $includeTransaction)
2167
+ transactionBcs @include(if: $includeBcs)
2168
+ signatures {
2169
+ signatureBytes
2170
+ }
2171
+ effects {
2172
+ status
2173
+ timestamp
2174
+ checkpoint {
2175
+ sequenceNumber
2176
+ }
2177
+ executionError {
2178
+ message
2179
+ abortCode
2180
+ identifier
2181
+ constant
2182
+ sourceLineNumber
2183
+ instructionOffset
2184
+ module {
2185
+ name
2186
+ package {
1135
2187
  address
1136
2188
  }
1137
- contents {
1138
- type {
1139
- repr
1140
- }
1141
- bcs
1142
- json
2189
+ }
2190
+ function {
2191
+ name
2192
+ }
2193
+ }
2194
+ epoch {
2195
+ epochId
2196
+ }
2197
+ effectsBcs @include(if: $includeEffects)
2198
+ effectsJson @include(if: $includeObjectTypes)
2199
+ objectChanges(first: 50) @include(if: $includeObjectTypes) {
2200
+ nodes {
2201
+ ...TRANSACTION_OBJECT_CHANGE
2202
+ }
2203
+ }
2204
+ balanceChangesJson @include(if: $includeBalanceChanges)
2205
+ events(first: 50) @include(if: $includeEvents) {
2206
+ nodes {
2207
+ ...TRANSACTION_EVENT
2208
+ }
2209
+ }
2210
+ }
2211
+ }
2212
+ fragment TRANSACTION_EVENT on Event {
2213
+ transactionModule {
2214
+ package {
2215
+ address
2216
+ }
2217
+ name
2218
+ }
2219
+ sender {
2220
+ address
2221
+ }
2222
+ contents {
2223
+ type {
2224
+ repr
2225
+ }
2226
+ bcs
2227
+ json
2228
+ }
2229
+ }
2230
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
2231
+ address
2232
+ outputState {
2233
+ asMoveObject {
2234
+ contents {
2235
+ type {
2236
+ repr
1143
2237
  }
1144
2238
  }
1145
2239
  }
@@ -1160,6 +2254,9 @@ export const ExecuteTransactionDocument = new TypedDocumentString(`
1160
2254
  }
1161
2255
  fragment TRANSACTION_FIELDS on Transaction {
1162
2256
  digest
2257
+ sender {
2258
+ address
2259
+ }
1163
2260
  transactionJson @include(if: $includeTransaction)
1164
2261
  transactionBcs @include(if: $includeBcs)
1165
2262
  signatures {
@@ -1195,39 +2292,42 @@ export const ExecuteTransactionDocument = new TypedDocumentString(`
1195
2292
  effectsJson @include(if: $includeObjectTypes)
1196
2293
  objectChanges(first: 50) @include(if: $includeObjectTypes) {
1197
2294
  nodes {
1198
- address
1199
- outputState {
1200
- asMoveObject {
1201
- contents {
1202
- type {
1203
- repr
1204
- }
1205
- }
1206
- }
1207
- }
2295
+ ...TRANSACTION_OBJECT_CHANGE
1208
2296
  }
1209
2297
  }
1210
2298
  balanceChangesJson @include(if: $includeBalanceChanges)
1211
2299
  events(first: 50) @include(if: $includeEvents) {
1212
- pageInfo {
1213
- hasNextPage
1214
- }
1215
2300
  nodes {
1216
- transactionModule {
1217
- package {
1218
- address
1219
- }
1220
- name
1221
- }
1222
- sender {
1223
- address
1224
- }
1225
- contents {
1226
- type {
1227
- repr
1228
- }
1229
- bcs
1230
- json
2301
+ ...TRANSACTION_EVENT
2302
+ }
2303
+ }
2304
+ }
2305
+ }
2306
+ fragment TRANSACTION_EVENT on Event {
2307
+ transactionModule {
2308
+ package {
2309
+ address
2310
+ }
2311
+ name
2312
+ }
2313
+ sender {
2314
+ address
2315
+ }
2316
+ contents {
2317
+ type {
2318
+ repr
2319
+ }
2320
+ bcs
2321
+ json
2322
+ }
2323
+ }
2324
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
2325
+ address
2326
+ outputState {
2327
+ asMoveObject {
2328
+ contents {
2329
+ type {
2330
+ repr
1231
2331
  }
1232
2332
  }
1233
2333
  }
@@ -1241,6 +2341,9 @@ export const GetTransactionBlockDocument = new TypedDocumentString(`
1241
2341
  }
1242
2342
  fragment TRANSACTION_FIELDS on Transaction {
1243
2343
  digest
2344
+ sender {
2345
+ address
2346
+ }
1244
2347
  transactionJson @include(if: $includeTransaction)
1245
2348
  transactionBcs @include(if: $includeBcs)
1246
2349
  signatures {
@@ -1276,39 +2379,42 @@ export const GetTransactionBlockDocument = new TypedDocumentString(`
1276
2379
  effectsJson @include(if: $includeObjectTypes)
1277
2380
  objectChanges(first: 50) @include(if: $includeObjectTypes) {
1278
2381
  nodes {
1279
- address
1280
- outputState {
1281
- asMoveObject {
1282
- contents {
1283
- type {
1284
- repr
1285
- }
1286
- }
1287
- }
1288
- }
2382
+ ...TRANSACTION_OBJECT_CHANGE
1289
2383
  }
1290
2384
  }
1291
2385
  balanceChangesJson @include(if: $includeBalanceChanges)
1292
2386
  events(first: 50) @include(if: $includeEvents) {
1293
- pageInfo {
1294
- hasNextPage
1295
- }
1296
2387
  nodes {
1297
- transactionModule {
1298
- package {
1299
- address
1300
- }
1301
- name
1302
- }
1303
- sender {
1304
- address
1305
- }
1306
- contents {
1307
- type {
1308
- repr
1309
- }
1310
- bcs
1311
- json
2388
+ ...TRANSACTION_EVENT
2389
+ }
2390
+ }
2391
+ }
2392
+ }
2393
+ fragment TRANSACTION_EVENT on Event {
2394
+ transactionModule {
2395
+ package {
2396
+ address
2397
+ }
2398
+ name
2399
+ }
2400
+ sender {
2401
+ address
2402
+ }
2403
+ contents {
2404
+ type {
2405
+ repr
2406
+ }
2407
+ bcs
2408
+ json
2409
+ }
2410
+ }
2411
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
2412
+ address
2413
+ outputState {
2414
+ asMoveObject {
2415
+ contents {
2416
+ type {
2417
+ repr
1312
2418
  }
1313
2419
  }
1314
2420
  }
@@ -1329,13 +2435,19 @@ export const ListTransactionsDocument = new TypedDocumentString(`
1329
2435
  startCursor
1330
2436
  endCursor
1331
2437
  }
1332
- nodes {
1333
- ...TRANSACTION_FIELDS
2438
+ edges {
2439
+ cursor
2440
+ node {
2441
+ ...TRANSACTION_FIELDS
2442
+ }
1334
2443
  }
1335
2444
  }
1336
2445
  }
1337
2446
  fragment TRANSACTION_FIELDS on Transaction {
1338
2447
  digest
2448
+ sender {
2449
+ address
2450
+ }
1339
2451
  transactionJson @include(if: $includeTransaction)
1340
2452
  transactionBcs @include(if: $includeBcs)
1341
2453
  signatures {
@@ -1371,44 +2483,109 @@ export const ListTransactionsDocument = new TypedDocumentString(`
1371
2483
  effectsJson @include(if: $includeObjectTypes)
1372
2484
  objectChanges(first: 50) @include(if: $includeObjectTypes) {
1373
2485
  nodes {
1374
- address
1375
- outputState {
1376
- asMoveObject {
1377
- contents {
1378
- type {
1379
- repr
1380
- }
1381
- }
1382
- }
1383
- }
2486
+ ...TRANSACTION_OBJECT_CHANGE
1384
2487
  }
1385
2488
  }
1386
2489
  balanceChangesJson @include(if: $includeBalanceChanges)
1387
2490
  events(first: 50) @include(if: $includeEvents) {
1388
- pageInfo {
1389
- hasNextPage
1390
- }
1391
2491
  nodes {
1392
- transactionModule {
1393
- package {
1394
- address
1395
- }
1396
- name
2492
+ ...TRANSACTION_EVENT
2493
+ }
2494
+ }
2495
+ }
2496
+ }
2497
+ fragment TRANSACTION_EVENT on Event {
2498
+ transactionModule {
2499
+ package {
2500
+ address
2501
+ }
2502
+ name
2503
+ }
2504
+ sender {
2505
+ address
2506
+ }
2507
+ contents {
2508
+ type {
2509
+ repr
2510
+ }
2511
+ bcs
2512
+ json
2513
+ }
2514
+ }
2515
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
2516
+ address
2517
+ outputState {
2518
+ asMoveObject {
2519
+ contents {
2520
+ type {
2521
+ repr
1397
2522
  }
1398
- sender {
1399
- address
2523
+ }
2524
+ }
2525
+ }
2526
+ }`) as unknown as TypedDocumentString<ListTransactionsQuery, ListTransactionsQueryVariables>;
2527
+ export const GetTransactionObjectChangesDocument = new TypedDocumentString(`
2528
+ query getTransactionObjectChanges($digest: String!, $after: String) {
2529
+ transaction(digest: $digest) {
2530
+ effects {
2531
+ objectChanges(first: 50, after: $after) {
2532
+ pageInfo {
2533
+ hasNextPage
2534
+ endCursor
1400
2535
  }
1401
- contents {
1402
- type {
1403
- repr
1404
- }
1405
- bcs
1406
- json
2536
+ nodes {
2537
+ ...TRANSACTION_OBJECT_CHANGE
1407
2538
  }
1408
2539
  }
1409
2540
  }
1410
2541
  }
1411
- }`) as unknown as TypedDocumentString<ListTransactionsQuery, ListTransactionsQueryVariables>;
2542
+ }
2543
+ fragment TRANSACTION_OBJECT_CHANGE on ObjectChange {
2544
+ address
2545
+ outputState {
2546
+ asMoveObject {
2547
+ contents {
2548
+ type {
2549
+ repr
2550
+ }
2551
+ }
2552
+ }
2553
+ }
2554
+ }`) as unknown as TypedDocumentString<GetTransactionObjectChangesQuery, GetTransactionObjectChangesQueryVariables>;
2555
+ export const GetTransactionEventsDocument = new TypedDocumentString(`
2556
+ query getTransactionEvents($digest: String!, $after: String) {
2557
+ transaction(digest: $digest) {
2558
+ effects {
2559
+ events(first: 50, after: $after) {
2560
+ pageInfo {
2561
+ hasNextPage
2562
+ endCursor
2563
+ }
2564
+ nodes {
2565
+ ...TRANSACTION_EVENT
2566
+ }
2567
+ }
2568
+ }
2569
+ }
2570
+ }
2571
+ fragment TRANSACTION_EVENT on Event {
2572
+ transactionModule {
2573
+ package {
2574
+ address
2575
+ }
2576
+ name
2577
+ }
2578
+ sender {
2579
+ address
2580
+ }
2581
+ contents {
2582
+ type {
2583
+ repr
2584
+ }
2585
+ bcs
2586
+ json
2587
+ }
2588
+ }`) as unknown as TypedDocumentString<GetTransactionEventsQuery, GetTransactionEventsQueryVariables>;
1412
2589
  export const ResolveTransactionDocument = new TypedDocumentString(`
1413
2590
  query resolveTransaction($transaction: JSON!, $doGasSelection: Boolean = true, $checksEnabled: Boolean = true) {
1414
2591
  simulateTransaction(
@@ -1447,15 +2624,16 @@ export const ResolveTransactionDocument = new TypedDocumentString(`
1447
2624
  }
1448
2625
  }
1449
2626
  `) as unknown as TypedDocumentString<ResolveTransactionQuery, ResolveTransactionQueryVariables>;
1450
- export const VerifyZkLoginSignatureDocument = new TypedDocumentString(`
1451
- query verifyZkLoginSignature($bytes: Base64!, $signature: Base64!, $intentScope: ZkLoginIntentScope!, $author: SuiAddress!) {
1452
- verifyZkLoginSignature(
1453
- bytes: $bytes
2627
+ export const VerifySignatureDocument = new TypedDocumentString(`
2628
+ query verifySignature($message: Base64!, $signature: Base64!, $intentScope: IntentScope!, $author: SuiAddress!, $checkAddressAliases: Boolean) {
2629
+ verifySignature(
2630
+ message: $message
1454
2631
  signature: $signature
1455
2632
  intentScope: $intentScope
1456
2633
  author: $author
2634
+ checkAddressAliases: $checkAddressAliases
1457
2635
  ) {
1458
2636
  success
1459
2637
  }
1460
2638
  }
1461
- `) as unknown as TypedDocumentString<VerifyZkLoginSignatureQuery, VerifyZkLoginSignatureQueryVariables>;
2639
+ `) as unknown as TypedDocumentString<VerifySignatureQuery, VerifySignatureQueryVariables>;