@mysten/sui 2.39.0 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +162 -0
- package/README.md +5 -188
- package/dist/bcs/bcs.d.mts +6 -6
- package/dist/bcs/bcs.d.mts.map +1 -1
- package/dist/bcs/bcs.mjs +49 -22
- package/dist/bcs/bcs.mjs.map +1 -1
- package/dist/bcs/effects.mjs +49 -20
- package/dist/bcs/effects.mjs.map +1 -1
- package/dist/bcs/index.d.mts +1441 -624
- package/dist/bcs/index.d.mts.map +1 -1
- package/dist/bcs/index.mjs +2 -1
- package/dist/bcs/index.mjs.map +1 -1
- package/dist/bcs/transactions.d.mts +1059 -0
- package/dist/bcs/transactions.d.mts.map +1 -0
- package/dist/bcs/transactions.mjs +33 -14
- package/dist/bcs/transactions.mjs.map +1 -1
- package/dist/bcs/types.d.mts +6 -1
- package/dist/bcs/types.d.mts.map +1 -1
- package/dist/client/core-resolver.mjs +4 -4
- package/dist/client/core-resolver.mjs.map +1 -1
- package/dist/client/core.d.mts +55 -4
- package/dist/client/core.d.mts.map +1 -1
- package/dist/client/core.mjs +98 -1
- package/dist/client/core.mjs.map +1 -1
- package/dist/client/errors.mjs +11 -1
- package/dist/client/errors.mjs.map +1 -1
- package/dist/client/index.d.mts +4 -2
- package/dist/client/index.mjs +5 -2
- package/dist/client/mvr.d.mts +12 -2
- package/dist/client/mvr.d.mts.map +1 -1
- package/dist/client/mvr.mjs +34 -13
- package/dist/client/mvr.mjs.map +1 -1
- package/dist/client/query-filters.mjs +80 -76
- package/dist/client/query-filters.mjs.map +1 -1
- package/dist/client/stream/adapter.d.mts +102 -0
- package/dist/client/stream/adapter.d.mts.map +1 -0
- package/dist/client/stream/errors.d.mts +14 -0
- package/dist/client/stream/errors.d.mts.map +1 -0
- package/dist/client/stream/errors.mjs +25 -0
- package/dist/client/stream/errors.mjs.map +1 -0
- package/dist/client/stream/filter.mjs +18 -0
- package/dist/client/stream/filter.mjs.map +1 -0
- package/dist/client/stream/follow.mjs +48 -0
- package/dist/client/stream/follow.mjs.map +1 -0
- package/dist/client/stream/index.d.mts +4 -0
- package/dist/client/stream/pager.mjs +123 -0
- package/dist/client/stream/pager.mjs.map +1 -0
- package/dist/client/stream/plan.mjs +79 -0
- package/dist/client/stream/plan.mjs.map +1 -0
- package/dist/client/stream/position.d.mts +30 -0
- package/dist/client/stream/position.d.mts.map +1 -0
- package/dist/client/stream/position.mjs +121 -0
- package/dist/client/stream/position.mjs.map +1 -0
- package/dist/client/stream/run.d.mts +2 -0
- package/dist/client/stream/run.mjs +99 -0
- package/dist/client/stream/run.mjs.map +1 -0
- package/dist/client/stream/session.mjs +205 -0
- package/dist/client/stream/session.mjs.map +1 -0
- package/dist/client/stream/status.mjs +47 -0
- package/dist/client/stream/status.mjs.map +1 -0
- package/dist/client/stream/token.mjs +80 -0
- package/dist/client/stream/token.mjs.map +1 -0
- package/dist/client/transaction-data.d.mts +12 -0
- package/dist/client/transaction-data.d.mts.map +1 -0
- package/dist/client/transaction-data.mjs +469 -0
- package/dist/client/transaction-data.mjs.map +1 -0
- package/dist/client/transaction-resolver.mjs +102 -58
- package/dist/client/transaction-resolver.mjs.map +1 -1
- package/dist/client/types.d.mts +560 -240
- package/dist/client/types.d.mts.map +1 -1
- package/dist/client/utils.d.mts +3 -1
- package/dist/client/utils.d.mts.map +1 -1
- package/dist/client/utils.mjs +91 -26
- package/dist/client/utils.mjs.map +1 -1
- package/dist/cryptography/index.d.mts +1 -1
- package/dist/cryptography/keypair.d.mts +1 -1
- package/dist/cryptography/publickey.d.mts +11 -0
- package/dist/cryptography/publickey.d.mts.map +1 -1
- package/dist/cryptography/publickey.mjs +12 -1
- package/dist/cryptography/publickey.mjs.map +1 -1
- package/dist/cryptography/signature.d.mts +8 -8
- package/dist/cryptography/signature.mjs +18 -7
- package/dist/cryptography/signature.mjs.map +1 -1
- package/dist/graphql/client.d.mts +51 -35
- package/dist/graphql/client.d.mts.map +1 -1
- package/dist/graphql/client.mjs +125 -69
- package/dist/graphql/client.mjs.map +1 -1
- package/dist/graphql/core.d.mts +14 -9
- package/dist/graphql/core.d.mts.map +1 -1
- package/dist/graphql/core.mjs +293 -117
- package/dist/graphql/core.mjs.map +1 -1
- package/dist/graphql/errors.d.mts +20 -0
- package/dist/graphql/errors.d.mts.map +1 -0
- package/dist/graphql/errors.mjs +19 -0
- package/dist/graphql/errors.mjs.map +1 -0
- package/dist/graphql/filters.mjs +32 -0
- package/dist/graphql/filters.mjs.map +1 -0
- package/dist/graphql/generated/queries.d.mts.map +1 -1
- package/dist/graphql/generated/queries.mjs +1216 -208
- package/dist/graphql/generated/queries.mjs.map +1 -1
- package/dist/graphql/generated/tada-env.d.mts +820 -11
- package/dist/graphql/index.d.mts +2 -1
- package/dist/graphql/index.mjs +2 -1
- package/dist/graphql/sse-parser.mjs +82 -0
- package/dist/graphql/sse-parser.mjs.map +1 -0
- package/dist/graphql/stream/families.mjs +306 -0
- package/dist/graphql/stream/families.mjs.map +1 -0
- package/dist/graphql/stream/index.mjs +38 -0
- package/dist/graphql/stream/index.mjs.map +1 -0
- package/dist/graphql/stream/live.mjs +60 -0
- package/dist/graphql/stream/live.mjs.map +1 -0
- package/dist/graphql/stream/page.mjs +38 -0
- package/dist/graphql/stream/page.mjs.map +1 -0
- package/dist/graphql/stream/query.mjs +47 -0
- package/dist/graphql/stream/query.mjs.map +1 -0
- package/dist/graphql/subscribe.mjs +70 -0
- package/dist/graphql/subscribe.mjs.map +1 -0
- package/dist/grpc/client.d.mts +31 -27
- package/dist/grpc/client.d.mts.map +1 -1
- package/dist/grpc/client.mjs +42 -46
- package/dist/grpc/client.mjs.map +1 -1
- package/dist/grpc/core.d.mts +13 -6
- package/dist/grpc/core.d.mts.map +1 -1
- package/dist/grpc/core.mjs +254 -166
- package/dist/grpc/core.mjs.map +1 -1
- package/dist/grpc/filters.mjs +44 -34
- package/dist/grpc/filters.mjs.map +1 -1
- package/dist/grpc/grpc-web-pull.mjs +245 -0
- package/dist/grpc/grpc-web-pull.mjs.map +1 -0
- package/dist/grpc/index.d.mts +2 -1
- package/dist/grpc/index.mjs +1 -1
- package/dist/grpc/network-error.mjs +31 -0
- package/dist/grpc/network-error.mjs.map +1 -0
- package/dist/grpc/proto/google/rpc/error_details.mjs +306 -0
- package/dist/grpc/proto/google/rpc/error_details.mjs.map +1 -0
- package/dist/grpc/proto/sui/forking/v1alpha/forking_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/error_reason.d.mts +176 -1
- package/dist/grpc/proto/sui/rpc/v2/error_reason.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/error_reason.mjs +175 -0
- package/dist/grpc/proto/sui/rpc/v2/error_reason.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/executed_transaction.d.mts +2 -2
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.d.mts +111 -0
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs +46 -0
- package/dist/grpc/proto/sui/rpc/v2/ledger_service.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/move_package_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/move_package_service.d.mts +24 -1
- package/dist/grpc/proto/sui/rpc/v2/move_package_service.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/move_package_service.mjs +25 -7
- package/dist/grpc/proto/sui/rpc/v2/move_package_service.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/name_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/object.mjs +1 -1
- package/dist/grpc/proto/sui/rpc/v2/query_options.d.mts +111 -9
- package/dist/grpc/proto/sui/rpc/v2/query_options.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/query_options.mjs +63 -19
- package/dist/grpc/proto/sui/rpc/v2/query_options.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/signature.d.mts +5 -5
- package/dist/grpc/proto/sui/rpc/v2/signature.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/signature_scheme.d.mts +5 -1
- package/dist/grpc/proto/sui/rpc/v2/signature_scheme.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/signature_scheme.mjs +4 -0
- package/dist/grpc/proto/sui/rpc/v2/signature_scheme.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.d.mts +20 -1
- package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.mjs +30 -13
- package/dist/grpc/proto/sui/rpc/v2/signature_verification_service.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/state_service.client.d.mts +4 -4
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts +20 -14
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.mjs +8 -5
- package/dist/grpc/proto/sui/rpc/v2/subscription_service.client.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/transaction.d.mts +11 -5
- package/dist/grpc/proto/sui/rpc/v2/transaction.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/transaction.mjs +6 -0
- package/dist/grpc/proto/sui/rpc/v2/transaction.mjs.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.d.mts +6 -2
- package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.d.mts.map +1 -1
- package/dist/grpc/proto/sui/rpc/v2/transaction_execution_service.mjs.map +1 -1
- package/dist/grpc/proto/types.d.mts +7 -7
- package/dist/grpc/proto/types.mjs +3 -2
- package/dist/grpc/pull-call.d.mts +20 -0
- package/dist/grpc/pull-call.d.mts.map +1 -0
- package/dist/grpc/pull-call.mjs +28 -0
- package/dist/grpc/pull-call.mjs.map +1 -0
- package/dist/grpc/stream/call.mjs +238 -0
- package/dist/grpc/stream/call.mjs.map +1 -0
- package/dist/grpc/stream/families.d.mts +26 -0
- package/dist/grpc/stream/families.d.mts.map +1 -0
- package/dist/grpc/stream/families.mjs +145 -0
- package/dist/grpc/stream/families.mjs.map +1 -0
- package/dist/grpc/stream/index.d.mts +41 -0
- package/dist/grpc/stream/index.d.mts.map +1 -0
- package/dist/grpc/stream/index.mjs +127 -0
- package/dist/grpc/stream/index.mjs.map +1 -0
- package/dist/grpc/stream/live.mjs +31 -0
- package/dist/grpc/stream/live.mjs.map +1 -0
- package/dist/grpc/stream/page.mjs +120 -0
- package/dist/grpc/stream/page.mjs.map +1 -0
- package/dist/grpc/stream-types.d.mts +28 -0
- package/dist/grpc/stream-types.d.mts.map +1 -0
- package/dist/grpc/transport.d.mts +8 -3
- package/dist/grpc/transport.d.mts.map +1 -1
- package/dist/grpc/transport.mjs +88 -45
- package/dist/grpc/transport.mjs.map +1 -1
- package/dist/jsonRpc/index.d.mts +34 -12
- package/dist/jsonRpc/index.d.mts.map +1 -0
- package/dist/jsonRpc/index.mjs +39 -5
- package/dist/jsonRpc/index.mjs.map +1 -0
- package/dist/jsonRpc/types.d.mts +420 -0
- package/dist/jsonRpc/types.d.mts.map +1 -0
- package/dist/keypairs/passkey/keypair.d.mts +1 -1
- package/dist/multisig/publickey.d.mts +12 -4
- package/dist/multisig/publickey.d.mts.map +1 -1
- package/dist/multisig/publickey.mjs +5 -5
- package/dist/multisig/publickey.mjs.map +1 -1
- package/dist/multisig/signer.d.mts +1 -1
- package/dist/transactions/ObjectCache.d.mts +1 -1
- package/dist/transactions/ObjectCache.mjs +5 -5
- package/dist/transactions/ObjectCache.mjs.map +1 -1
- package/dist/transactions/Transaction.d.mts +14 -13
- package/dist/transactions/Transaction.d.mts.map +1 -1
- package/dist/transactions/Transaction.mjs +17 -6
- package/dist/transactions/Transaction.mjs.map +1 -1
- package/dist/transactions/data/internal.d.mts +135 -133
- package/dist/transactions/data/internal.d.mts.map +1 -1
- package/dist/transactions/data/internal.mjs +2 -1
- package/dist/transactions/data/internal.mjs.map +1 -1
- package/dist/transactions/data/v1.d.mts +239 -239
- package/dist/transactions/data/v1.d.mts.map +1 -1
- package/dist/transactions/data/v2.d.mts +16 -16
- package/dist/transactions/data/v2.d.mts.map +1 -1
- package/dist/transactions/executor/parallel.d.mts +2 -2
- package/dist/transactions/executor/serial.d.mts +1 -1
- package/dist/transactions/executor/serial.mjs +2 -2
- package/dist/transactions/executor/serial.mjs.map +1 -1
- package/dist/transactions/index.d.mts +3 -2
- package/dist/transactions/index.mjs +4 -3
- package/dist/transactions/intents/AllowanceBalance.mjs +1 -1
- package/dist/transactions/intents/CoinWithBalance.mjs +1 -1
- package/dist/transactions/resolve.d.mts +6 -0
- package/dist/transactions/resolve.d.mts.map +1 -1
- package/dist/transactions/resolve.mjs.map +1 -1
- package/dist/transactions/restricted-move-calls.d.mts +25 -0
- package/dist/transactions/restricted-move-calls.d.mts.map +1 -0
- package/dist/transactions/restricted-move-calls.mjs +47 -0
- package/dist/transactions/restricted-move-calls.mjs.map +1 -0
- package/dist/transactions/serializer.d.mts +1 -4
- package/dist/transactions/serializer.d.mts.map +1 -1
- package/dist/transactions/serializer.mjs +1 -44
- package/dist/transactions/serializer.mjs.map +1 -1
- package/dist/transactions/utils.d.mts +0 -1
- package/dist/transactions/utils.d.mts.map +1 -1
- package/dist/transactions/utils.mjs.map +1 -1
- package/dist/utils/abort.mjs +89 -0
- package/dist/utils/abort.mjs.map +1 -0
- package/dist/utils/coin-reservation.mjs +1 -4
- package/dist/utils/coin-reservation.mjs.map +1 -1
- package/dist/utils/index.mjs +1 -1
- package/dist/utils/sui-types.mjs +1 -1
- package/dist/verify/index.d.mts +2 -2
- package/dist/verify/verify.d.mts +74 -24
- package/dist/verify/verify.d.mts.map +1 -1
- package/dist/verify/verify.mjs +128 -42
- package/dist/verify/verify.mjs.map +1 -1
- package/dist/version.mjs +1 -1
- package/dist/version.mjs.map +1 -1
- package/dist/zklogin/bcs.d.mts +14 -14
- package/dist/zklogin/publickey.d.mts.map +1 -1
- package/dist/zklogin/publickey.mjs +15 -20
- package/dist/zklogin/publickey.mjs.map +1 -1
- package/docs/bcs.md +2 -2
- package/docs/clients/core.md +19 -18
- package/docs/clients/executing.md +53 -8
- package/docs/clients/graphql.md +81 -11
- package/docs/clients/grpc.md +31 -15
- package/docs/clients/index.md +8 -7
- package/docs/clients/querying.md +134 -30
- package/docs/clients/streaming.md +324 -0
- package/docs/cryptography/index.md +85 -58
- package/docs/llms-index.md +4 -2
- package/docs/migrations/sui-2.0/dapp-kit.md +3 -2
- package/docs/migrations/sui-2.0/json-rpc-migration.md +106 -79
- package/docs/migrations/sui-3.0/index.md +250 -0
- package/docs/plugins.md +10 -10
- package/docs/sdk-building.md +3 -4
- package/docs/transactions/coins-and-balances.md +6 -11
- package/docs/transactions/reference.md +36 -1
- package/package.json +3 -4
- package/src/bcs/bcs.ts +80 -41
- package/src/bcs/effects.ts +61 -25
- package/src/bcs/index.ts +2 -0
- package/src/bcs/transactions.ts +36 -17
- package/src/bcs/types.ts +10 -4
- package/src/client/core-resolver.ts +3 -5
- package/src/client/core.ts +180 -8
- package/src/client/errors.ts +12 -0
- package/src/client/index.ts +4 -1
- package/src/client/mvr.ts +37 -10
- package/src/client/query-filters.ts +151 -97
- package/src/client/stream/adapter.ts +110 -0
- package/src/client/stream/errors.ts +40 -0
- package/src/client/stream/filter.ts +17 -0
- package/src/client/stream/follow.ts +63 -0
- package/src/client/stream/index.ts +9 -0
- package/src/client/stream/pager.ts +158 -0
- package/src/client/stream/plan.ts +147 -0
- package/src/client/stream/position.ts +143 -0
- package/src/client/stream/run.ts +147 -0
- package/src/client/stream/session.ts +259 -0
- package/src/client/stream/status.ts +44 -0
- package/src/client/stream/token.ts +104 -0
- package/src/client/transaction-data.ts +587 -0
- package/src/client/transaction-resolver.ts +158 -69
- package/src/client/types.ts +530 -115
- package/src/client/utils.ts +147 -50
- package/src/cryptography/publickey.ts +12 -1
- package/src/cryptography/signature.ts +6 -3
- package/src/graphql/client.ts +204 -135
- package/src/graphql/core.ts +446 -139
- package/src/graphql/errors.ts +24 -0
- package/src/graphql/filters.ts +48 -0
- package/src/graphql/generated/queries.ts +1455 -277
- package/src/graphql/generated/schema.graphql +282 -9
- package/src/graphql/generated/tada-env.ts +933 -4
- package/src/graphql/queries/checkpoints.graphql +34 -0
- package/src/graphql/queries/getDynamicFields.graphql +1 -0
- package/src/graphql/queries/listEvents.graphql +16 -24
- package/src/graphql/queries/streams.graphql +212 -0
- package/src/graphql/queries/transactions.graphql +71 -28
- package/src/graphql/queries/verifySignature.graphql +17 -0
- package/src/graphql/sse-parser.ts +99 -0
- package/src/graphql/stream/families.ts +515 -0
- package/src/graphql/stream/index.ts +55 -0
- package/src/graphql/stream/live.ts +70 -0
- package/src/graphql/stream/page.ts +47 -0
- package/src/graphql/stream/query.ts +52 -0
- package/src/graphql/subscribe.ts +83 -0
- package/src/grpc/client.ts +81 -79
- package/src/grpc/core.ts +388 -274
- package/src/grpc/filters.ts +59 -60
- package/src/grpc/grpc-web-pull.ts +360 -0
- package/src/grpc/index.ts +5 -0
- package/src/grpc/network-error.ts +33 -0
- package/src/grpc/proto/sui/rpc/v2/error_reason.ts +175 -0
- package/src/grpc/proto/sui/rpc/v2/ledger_service.ts +145 -0
- package/src/grpc/proto/sui/rpc/v2/move_package_service.ts +43 -1
- package/src/grpc/proto/sui/rpc/v2/query_options.ts +132 -8
- package/src/grpc/proto/sui/rpc/v2/signature.ts +4 -4
- package/src/grpc/proto/sui/rpc/v2/signature_scheme.ts +4 -0
- package/src/grpc/proto/sui/rpc/v2/signature_verification_service.ts +30 -0
- package/src/grpc/proto/sui/rpc/v2/subscription_service.client.ts +16 -10
- package/src/grpc/proto/sui/rpc/v2/transaction.ts +6 -0
- package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.ts +5 -1
- package/src/grpc/pull-call.ts +54 -0
- package/src/grpc/stream/call.ts +317 -0
- package/src/grpc/stream/families.ts +228 -0
- package/src/grpc/stream/index.ts +182 -0
- package/src/grpc/stream/live.ts +33 -0
- package/src/grpc/stream/page.ts +161 -0
- package/src/grpc/stream-types.ts +33 -0
- package/src/grpc/transport.ts +116 -59
- package/src/jsonRpc/index.ts +60 -17
- package/src/jsonRpc/types.ts +421 -0
- package/src/multisig/publickey.ts +19 -7
- package/src/transactions/ObjectCache.ts +6 -6
- package/src/transactions/Transaction.ts +30 -6
- package/src/transactions/data/internal.ts +2 -0
- package/src/transactions/executor/serial.ts +2 -2
- package/src/transactions/index.ts +8 -1
- package/src/transactions/resolve.ts +6 -0
- package/src/transactions/restricted-move-calls.ts +87 -0
- package/src/transactions/serializer.ts +0 -70
- package/src/transactions/utils.ts +0 -37
- package/src/utils/abort.ts +101 -0
- package/src/verify/index.ts +1 -0
- package/src/verify/verify.ts +190 -62
- package/src/version.ts +1 -1
- package/src/zklogin/publickey.ts +18 -34
- package/dist/client/core-resolver.d.mts +0 -9
- package/dist/client/core-resolver.d.mts.map +0 -1
- package/dist/jsonRpc/client.d.mts +0 -507
- package/dist/jsonRpc/client.d.mts.map +0 -1
- package/dist/jsonRpc/client.mjs +0 -868
- package/dist/jsonRpc/client.mjs.map +0 -1
- package/dist/jsonRpc/core.d.mts +0 -168
- package/dist/jsonRpc/core.d.mts.map +0 -1
- package/dist/jsonRpc/core.mjs +0 -1054
- package/dist/jsonRpc/core.mjs.map +0 -1
- package/dist/jsonRpc/errors.d.mts +0 -27
- package/dist/jsonRpc/errors.d.mts.map +0 -1
- package/dist/jsonRpc/errors.mjs +0 -50
- package/dist/jsonRpc/errors.mjs.map +0 -1
- package/dist/jsonRpc/http-transport.d.mts +0 -62
- package/dist/jsonRpc/http-transport.d.mts.map +0 -1
- package/dist/jsonRpc/http-transport.mjs +0 -60
- package/dist/jsonRpc/http-transport.mjs.map +0 -1
- package/dist/jsonRpc/network.d.mts +0 -9
- package/dist/jsonRpc/network.d.mts.map +0 -1
- package/dist/jsonRpc/network.mjs +0 -18
- package/dist/jsonRpc/network.mjs.map +0 -1
- package/dist/jsonRpc/types/chain.d.mts +0 -169
- package/dist/jsonRpc/types/chain.d.mts.map +0 -1
- package/dist/jsonRpc/types/changes.d.mts +0 -48
- package/dist/jsonRpc/types/changes.d.mts.map +0 -1
- package/dist/jsonRpc/types/coins.d.mts +0 -15
- package/dist/jsonRpc/types/coins.d.mts.map +0 -1
- package/dist/jsonRpc/types/common.d.mts +0 -9
- package/dist/jsonRpc/types/common.d.mts.map +0 -1
- package/dist/jsonRpc/types/generated.d.mts +0 -1976
- package/dist/jsonRpc/types/generated.d.mts.map +0 -1
- package/dist/jsonRpc/types/index.d.mts +0 -6
- package/dist/jsonRpc/types/params.d.mts +0 -898
- package/dist/jsonRpc/types/params.d.mts.map +0 -1
- package/src/graphql/generated/tsconfig.tada.json +0 -11
- package/src/graphql/queries/verifyZkLoginSignature.graphql +0 -15
- package/src/jsonRpc/client.ts +0 -1252
- package/src/jsonRpc/core.ts +0 -1557
- package/src/jsonRpc/errors.ts +0 -57
- package/src/jsonRpc/http-transport.ts +0 -118
- package/src/jsonRpc/network.ts +0 -21
- package/src/jsonRpc/types/chain.ts +0 -190
- package/src/jsonRpc/types/changes.ts +0 -35
- package/src/jsonRpc/types/coins.ts +0 -14
- package/src/jsonRpc/types/common.ts +0 -8
- package/src/jsonRpc/types/generated.ts +0 -2165
- package/src/jsonRpc/types/index.ts +0 -9
- 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
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
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 },
|
|
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?: {
|
|
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?: {
|
|
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?: {
|
|
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 },
|
|
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
|
|
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
|
|
441
|
-
|
|
609
|
+
export type VerifySignatureQueryVariables = Exact<{
|
|
610
|
+
message: string;
|
|
442
611
|
signature: string;
|
|
443
|
-
intentScope:
|
|
612
|
+
intentScope: IntentScope;
|
|
444
613
|
author: string;
|
|
614
|
+
checkAddressAliases?: boolean | null | undefined;
|
|
445
615
|
}>;
|
|
446
616
|
|
|
447
617
|
|
|
448
|
-
export type
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
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
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
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
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
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
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
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
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
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
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
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
|
-
|
|
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
|
|
1041
|
-
query
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
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
|
-
|
|
1048
|
-
|
|
1049
|
-
...TRANSACTION_FIELDS
|
|
1050
|
-
effects {
|
|
1051
|
-
gasEffects {
|
|
1052
|
-
gasObject {
|
|
1053
|
-
address
|
|
1054
|
-
}
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
}
|
|
1449
|
+
pageInfo {
|
|
1450
|
+
...STREAM_PAGE_INFO
|
|
1058
1451
|
}
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
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
|
|
1460
|
+
fragment CHECKPOINT_FIELDS on Checkpoint {
|
|
1461
|
+
sequenceNumber
|
|
1074
1462
|
digest
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
signatureBytes
|
|
1463
|
+
timestamp
|
|
1464
|
+
epoch {
|
|
1465
|
+
epochId
|
|
1079
1466
|
}
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
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
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
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
|
-
|
|
1100
|
-
|
|
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
|
-
|
|
1104
|
-
|
|
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
|
-
|
|
1107
|
-
|
|
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
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
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
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
2147
|
+
outputs @include(if: $includeCommandResults) {
|
|
2148
|
+
returnValues {
|
|
2149
|
+
value {
|
|
2150
|
+
bcs
|
|
2151
|
+
}
|
|
1126
2152
|
}
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
address
|
|
1131
|
-
}
|
|
1132
|
-
name
|
|
2153
|
+
mutatedReferences {
|
|
2154
|
+
value {
|
|
2155
|
+
bcs
|
|
1133
2156
|
}
|
|
1134
|
-
|
|
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
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
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
|
-
|
|
1333
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
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
|
-
|
|
1399
|
-
|
|
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
|
-
|
|
1402
|
-
|
|
1403
|
-
repr
|
|
1404
|
-
}
|
|
1405
|
-
bcs
|
|
1406
|
-
json
|
|
2536
|
+
nodes {
|
|
2537
|
+
...TRANSACTION_OBJECT_CHANGE
|
|
1407
2538
|
}
|
|
1408
2539
|
}
|
|
1409
2540
|
}
|
|
1410
2541
|
}
|
|
1411
|
-
}
|
|
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
|
|
1451
|
-
query
|
|
1452
|
-
|
|
1453
|
-
|
|
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<
|
|
2639
|
+
`) as unknown as TypedDocumentString<VerifySignatureQuery, VerifySignatureQueryVariables>;
|