@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error_details.mjs","names":[],"sources":["../../../../../src/grpc/proto/google/rpc/error_details.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"google/rpc/error_details.proto\" (package \"google.rpc\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Copyright 2024 Google LLC\n//\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n//\nimport { MessageType } from '@protobuf-ts/runtime';\nimport { Duration } from '../protobuf/duration.js';\n/**\n * Describes the cause of the error with structured details.\n *\n * Example of an error when contacting the \"pubsub.googleapis.com\" API when it\n * is not enabled:\n *\n * ```text,json\n * { \"reason\": \"API_DISABLED\"\n * \"domain\": \"googleapis.com\"\n * \"metadata\": {\n * \"resource\": \"projects/123\",\n * \"service\": \"pubsub.googleapis.com\"\n * }\n * }\n * ```\n *\n * This response indicates that the pubsub.googleapis.com API is not enabled.\n *\n * Example of an error that is returned when attempting to create a Spanner\n * instance in a region that is out of stock:\n *\n * ```text,json\n * { \"reason\": \"STOCKOUT\"\n * \"domain\": \"spanner.googleapis.com\",\n * \"metadata\": {\n * \"availableRegions\": \"us-central1,us-east2\"\n * }\n * }\n * ```\n *\n * @generated from protobuf message google.rpc.ErrorInfo\n */\nexport interface ErrorInfo {\n\t/**\n\t * The reason of the error. This is a constant value that identifies the\n\t * proximate cause of the error. Error reasons are unique within a particular\n\t * domain of errors. This should be at most 63 characters and match a\n\t * regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`, which represents\n\t * UPPER_SNAKE_CASE.\n\t *\n\t * @generated from protobuf field: string reason = 1;\n\t */\n\treason: string;\n\t/**\n\t * The logical grouping to which the \"reason\" belongs. The error domain\n\t * is typically the registered service name of the tool or product that\n\t * generates the error. Example: \"pubsub.googleapis.com\". If the error is\n\t * generated by some common infrastructure, the error domain must be a\n\t * globally unique value that identifies the infrastructure. For Google API\n\t * infrastructure, the error domain is \"googleapis.com\".\n\t *\n\t * @generated from protobuf field: string domain = 2;\n\t */\n\tdomain: string;\n\t/**\n\t * Additional structured details about this error.\n\t *\n\t * Keys must match a regular expression of `[a-z][a-zA-Z0-9-_]+` but should\n\t * ideally be lowerCamelCase. Also, they must be limited to 64 characters in\n\t * length. When identifying the current value of an exceeded limit, the units\n\t * should be contained in the key, not the value. For example, rather than\n\t * `{\"instanceLimit\": \"100/request\"}`, should be returned as,\n\t * `{\"instanceLimitPerRequest\": \"100\"}`, if the client exceeds the number of\n\t * instances that can be created in a single (batch) request.\n\t *\n\t * @generated from protobuf field: map<string, string> metadata = 3;\n\t */\n\tmetadata: {\n\t\t[key: string]: string;\n\t};\n}\n/**\n * Describes when the clients can retry a failed request. Clients could ignore\n * the recommendation here or retry when this information is missing from error\n * responses.\n *\n * It's always recommended that clients should use exponential backoff when\n * retrying.\n *\n * Clients should wait until `retry_delay` amount of time has passed since\n * receiving the error response before retrying. If retrying requests also\n * fail, clients should use an exponential backoff scheme to gradually increase\n * the delay between retries based on `retry_delay`, until either a maximum\n * number of retries have been reached or a maximum retry delay cap has been\n * reached.\n *\n * @generated from protobuf message google.rpc.RetryInfo\n */\nexport interface RetryInfo {\n\t/**\n\t * Clients should wait at least this long between retrying the same request.\n\t *\n\t * @generated from protobuf field: google.protobuf.Duration retry_delay = 1;\n\t */\n\tretryDelay?: Duration;\n}\n/**\n * Describes additional debugging info.\n *\n * @generated from protobuf message google.rpc.DebugInfo\n */\nexport interface DebugInfo {\n\t/**\n\t * The stack trace entries indicating where the error occurred.\n\t *\n\t * @generated from protobuf field: repeated string stack_entries = 1;\n\t */\n\tstackEntries: string[];\n\t/**\n\t * Additional debugging information provided by the server.\n\t *\n\t * @generated from protobuf field: string detail = 2;\n\t */\n\tdetail: string;\n}\n/**\n * Describes how a quota check failed.\n *\n * For example if a daily limit was exceeded for the calling project,\n * a service could respond with a QuotaFailure detail containing the project\n * id and the description of the quota limit that was exceeded. If the\n * calling project hasn't enabled the service in the developer console, then\n * a service could respond with the project id and set `service_disabled`\n * to true.\n *\n * Also see RetryInfo and Help types for other details about handling a\n * quota failure.\n *\n * @generated from protobuf message google.rpc.QuotaFailure\n */\nexport interface QuotaFailure {\n\t/**\n\t * Describes all quota violations.\n\t *\n\t * @generated from protobuf field: repeated google.rpc.QuotaFailure.Violation violations = 1;\n\t */\n\tviolations: QuotaFailure_Violation[];\n}\n/**\n * A message type used to describe a single quota violation. For example, a\n * daily quota or a custom quota that was exceeded.\n *\n * @generated from protobuf message google.rpc.QuotaFailure.Violation\n */\nexport interface QuotaFailure_Violation {\n\t/**\n\t * The subject on which the quota check failed.\n\t * For example, `clientip:<ip address of client>` or `project:<Google\n\t * developer project id>`.\n\t *\n\t * @generated from protobuf field: string subject = 1;\n\t */\n\tsubject: string;\n\t/**\n\t * A description of how the quota check failed. Clients can use this\n\t * description to find more about the quota configuration in the service's\n\t * public documentation, or find the relevant quota limit to adjust through\n\t * developer console.\n\t *\n\t * For example: \"Service disabled\" or \"Daily Limit for read operations\n\t * exceeded\".\n\t *\n\t * @generated from protobuf field: string description = 2;\n\t */\n\tdescription: string;\n}\n/**\n * Describes what preconditions have failed.\n *\n * For example, if an RPC failed because it required the Terms of Service to be\n * acknowledged, it could list the terms of service violation in the\n * PreconditionFailure message.\n *\n * @generated from protobuf message google.rpc.PreconditionFailure\n */\nexport interface PreconditionFailure {\n\t/**\n\t * Describes all precondition violations.\n\t *\n\t * @generated from protobuf field: repeated google.rpc.PreconditionFailure.Violation violations = 1;\n\t */\n\tviolations: PreconditionFailure_Violation[];\n}\n/**\n * A message type used to describe a single precondition failure.\n *\n * @generated from protobuf message google.rpc.PreconditionFailure.Violation\n */\nexport interface PreconditionFailure_Violation {\n\t/**\n\t * The type of PreconditionFailure. We recommend using a service-specific\n\t * enum type to define the supported precondition violation subjects. For\n\t * example, \"TOS\" for \"Terms of Service violation\".\n\t *\n\t * @generated from protobuf field: string type = 1;\n\t */\n\ttype: string;\n\t/**\n\t * The subject, relative to the type, that failed.\n\t * For example, \"google.com/cloud\" relative to the \"TOS\" type would indicate\n\t * which terms of service is being referenced.\n\t *\n\t * @generated from protobuf field: string subject = 2;\n\t */\n\tsubject: string;\n\t/**\n\t * A description of how the precondition failed. Developers can use this\n\t * description to understand how to fix the failure.\n\t *\n\t * For example: \"Terms of service not accepted\".\n\t *\n\t * @generated from protobuf field: string description = 3;\n\t */\n\tdescription: string;\n}\n/**\n * Describes violations in a client request. This error type focuses on the\n * syntactic aspects of the request.\n *\n * @generated from protobuf message google.rpc.BadRequest\n */\nexport interface BadRequest {\n\t/**\n\t * Describes all violations in a client request.\n\t *\n\t * @generated from protobuf field: repeated google.rpc.BadRequest.FieldViolation field_violations = 1;\n\t */\n\tfieldViolations: BadRequest_FieldViolation[];\n}\n/**\n * A message type used to describe a single bad request field.\n *\n * @generated from protobuf message google.rpc.BadRequest.FieldViolation\n */\nexport interface BadRequest_FieldViolation {\n\t/**\n\t * A path that leads to a field in the request body. The value will be a\n\t * sequence of dot-separated identifiers that identify a protocol buffer\n\t * field.\n\t *\n\t * Consider the following:\n\t *\n\t * ```text,json\n\t * message CreateContactRequest {\n\t * message EmailAddress {\n\t * enum Type {\n\t * TYPE_UNSPECIFIED = 0;\n\t * HOME = 1;\n\t * WORK = 2;\n\t * }\n\t *\n\t * optional string email = 1;\n\t * repeated EmailType type = 2;\n\t * }\n\t *\n\t * string full_name = 1;\n\t * repeated EmailAddress email_addresses = 2;\n\t * }\n\t * ```\n\t *\n\t * In this example, in proto `field` could take one of the following values:\n\t *\n\t * * `full_name` for a violation in the `full_name` value\n\t * * `email_addresses[1].email` for a violation in the `email` field of the\n\t * first `email_addresses` message\n\t * * `email_addresses[3].type[2]` for a violation in the second `type`\n\t * value in the third `email_addresses` message.\n\t *\n\t * In JSON, the same values are represented as:\n\t *\n\t * * `fullName` for a violation in the `fullName` value\n\t * * `emailAddresses[1].email` for a violation in the `email` field of the\n\t * first `emailAddresses` message\n\t * * `emailAddresses[3].type[2]` for a violation in the second `type`\n\t * value in the third `emailAddresses` message.\n\t *\n\t * @generated from protobuf field: string field = 1;\n\t */\n\tfield: string;\n\t/**\n\t * A description of why the request element is bad.\n\t *\n\t * @generated from protobuf field: string description = 2;\n\t */\n\tdescription: string;\n\t/**\n\t * The reason of the field-level error. This is a constant value that\n\t * identifies the proximate cause of the field-level error. It should\n\t * uniquely identify the type of the FieldViolation within the scope of the\n\t * google.rpc.ErrorInfo.domain. This should be at most 63\n\t * characters and match a regular expression of `[A-Z][A-Z0-9_]+[A-Z0-9]`,\n\t * which represents UPPER_SNAKE_CASE.\n\t *\n\t * @generated from protobuf field: string reason = 3;\n\t */\n\treason: string;\n\t/**\n\t * Provides a localized error message for field-level errors that is safe to\n\t * return to the API consumer.\n\t *\n\t * @generated from protobuf field: google.rpc.LocalizedMessage localized_message = 4;\n\t */\n\tlocalizedMessage?: LocalizedMessage;\n}\n/**\n * Contains metadata about the request that clients can attach when filing a bug\n * or providing other forms of feedback.\n *\n * @generated from protobuf message google.rpc.RequestInfo\n */\nexport interface RequestInfo {\n\t/**\n\t * An opaque string that should only be interpreted by the service generating\n\t * it. For example, it can be used to identify requests in the service's logs.\n\t *\n\t * @generated from protobuf field: string request_id = 1;\n\t */\n\trequestId: string;\n\t/**\n\t * Any data that was used to serve this request. For example, an encrypted\n\t * stack trace that can be sent back to the service provider for debugging.\n\t *\n\t * @generated from protobuf field: string serving_data = 2;\n\t */\n\tservingData: string;\n}\n/**\n * Describes the resource that is being accessed.\n *\n * @generated from protobuf message google.rpc.ResourceInfo\n */\nexport interface ResourceInfo {\n\t/**\n\t * A name for the type of resource being accessed, e.g. \"sql table\",\n\t * \"cloud storage bucket\", \"file\", \"Google calendar\"; or the type URL\n\t * of the resource: e.g. \"type.googleapis.com/google.pubsub.v1.Topic\".\n\t *\n\t * @generated from protobuf field: string resource_type = 1;\n\t */\n\tresourceType: string;\n\t/**\n\t * The name of the resource being accessed. For example, a shared calendar\n\t * name: \"example.com_4fghdhgsrgh@group.calendar.google.com\", if the current\n\t * error is\n\t * [google.rpc.Code.PERMISSION_DENIED][google.rpc.Code.PERMISSION_DENIED].\n\t *\n\t * @generated from protobuf field: string resource_name = 2;\n\t */\n\tresourceName: string;\n\t/**\n\t * The owner of the resource (optional).\n\t * For example, `user:<owner email>` or `project:<Google developer project\n\t * id>`.\n\t *\n\t * @generated from protobuf field: string owner = 3;\n\t */\n\towner: string;\n\t/**\n\t * Describes what error is encountered when accessing this resource.\n\t * For example, updating a cloud project may require the `writer` permission\n\t * on the developer console project.\n\t *\n\t * @generated from protobuf field: string description = 4;\n\t */\n\tdescription: string;\n}\n/**\n * Provides links to documentation or for performing an out of band action.\n *\n * For example, if a quota check failed with an error indicating the calling\n * project hasn't enabled the accessed service, this can contain a URL pointing\n * directly to the right place in the developer console to flip the bit.\n *\n * @generated from protobuf message google.rpc.Help\n */\nexport interface Help {\n\t/**\n\t * URL(s) pointing to additional information on handling the current error.\n\t *\n\t * @generated from protobuf field: repeated google.rpc.Help.Link links = 1;\n\t */\n\tlinks: Help_Link[];\n}\n/**\n * Describes a URL link.\n *\n * @generated from protobuf message google.rpc.Help.Link\n */\nexport interface Help_Link {\n\t/**\n\t * Describes what the link offers.\n\t *\n\t * @generated from protobuf field: string description = 1;\n\t */\n\tdescription: string;\n\t/**\n\t * The URL of the link.\n\t *\n\t * @generated from protobuf field: string url = 2;\n\t */\n\turl: string;\n}\n/**\n * Provides a localized error message that is safe to return to the user\n * which can be attached to an RPC error.\n *\n * @generated from protobuf message google.rpc.LocalizedMessage\n */\nexport interface LocalizedMessage {\n\t/**\n\t * The locale used following the specification defined at\n\t * https://www.rfc-editor.org/rfc/bcp/bcp47.txt.\n\t * Examples are: \"en-US\", \"fr-CH\", \"es-MX\"\n\t *\n\t * @generated from protobuf field: string locale = 1;\n\t */\n\tlocale: string;\n\t/**\n\t * The localized error message in the above locale.\n\t *\n\t * @generated from protobuf field: string message = 2;\n\t */\n\tmessage: string;\n}\n// @generated message type with reflection information, may provide speed optimized methods\nclass ErrorInfo$Type extends MessageType<ErrorInfo> {\n\tconstructor() {\n\t\tsuper('google.rpc.ErrorInfo', [\n\t\t\t{ no: 1, name: 'reason', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'domain', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{\n\t\t\t\tno: 3,\n\t\t\t\tname: 'metadata',\n\t\t\t\tkind: 'map',\n\t\t\t\tK: 9 /*ScalarType.STRING*/,\n\t\t\t\tV: { kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.ErrorInfo\n */\nexport const ErrorInfo = new ErrorInfo$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass RetryInfo$Type extends MessageType<RetryInfo> {\n\tconstructor() {\n\t\tsuper('google.rpc.RetryInfo', [\n\t\t\t{ no: 1, name: 'retry_delay', kind: 'message', T: () => Duration },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.RetryInfo\n */\nexport const RetryInfo = new RetryInfo$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass DebugInfo$Type extends MessageType<DebugInfo> {\n\tconstructor() {\n\t\tsuper('google.rpc.DebugInfo', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'stack_entries',\n\t\t\t\tkind: 'scalar',\n\t\t\t\trepeat: 2 /*RepeatType.UNPACKED*/,\n\t\t\t\tT: 9 /*ScalarType.STRING*/,\n\t\t\t},\n\t\t\t{ no: 2, name: 'detail', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.DebugInfo\n */\nexport const DebugInfo = new DebugInfo$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass QuotaFailure$Type extends MessageType<QuotaFailure> {\n\tconstructor() {\n\t\tsuper('google.rpc.QuotaFailure', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'violations',\n\t\t\t\tkind: 'message',\n\t\t\t\trepeat: 2 /*RepeatType.UNPACKED*/,\n\t\t\t\tT: () => QuotaFailure_Violation,\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.QuotaFailure\n */\nexport const QuotaFailure = new QuotaFailure$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass QuotaFailure_Violation$Type extends MessageType<QuotaFailure_Violation> {\n\tconstructor() {\n\t\tsuper('google.rpc.QuotaFailure.Violation', [\n\t\t\t{ no: 1, name: 'subject', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'description', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.QuotaFailure.Violation\n */\nexport const QuotaFailure_Violation = new QuotaFailure_Violation$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PreconditionFailure$Type extends MessageType<PreconditionFailure> {\n\tconstructor() {\n\t\tsuper('google.rpc.PreconditionFailure', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'violations',\n\t\t\t\tkind: 'message',\n\t\t\t\trepeat: 2 /*RepeatType.UNPACKED*/,\n\t\t\t\tT: () => PreconditionFailure_Violation,\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.PreconditionFailure\n */\nexport const PreconditionFailure = new PreconditionFailure$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass PreconditionFailure_Violation$Type extends MessageType<PreconditionFailure_Violation> {\n\tconstructor() {\n\t\tsuper('google.rpc.PreconditionFailure.Violation', [\n\t\t\t{ no: 1, name: 'type', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'subject', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 3, name: 'description', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.PreconditionFailure.Violation\n */\nexport const PreconditionFailure_Violation = new PreconditionFailure_Violation$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass BadRequest$Type extends MessageType<BadRequest> {\n\tconstructor() {\n\t\tsuper('google.rpc.BadRequest', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'field_violations',\n\t\t\t\tkind: 'message',\n\t\t\t\trepeat: 2 /*RepeatType.UNPACKED*/,\n\t\t\t\tT: () => BadRequest_FieldViolation,\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.BadRequest\n */\nexport const BadRequest = new BadRequest$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass BadRequest_FieldViolation$Type extends MessageType<BadRequest_FieldViolation> {\n\tconstructor() {\n\t\tsuper('google.rpc.BadRequest.FieldViolation', [\n\t\t\t{ no: 1, name: 'field', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'description', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 3, name: 'reason', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 4, name: 'localized_message', kind: 'message', T: () => LocalizedMessage },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.BadRequest.FieldViolation\n */\nexport const BadRequest_FieldViolation = new BadRequest_FieldViolation$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass RequestInfo$Type extends MessageType<RequestInfo> {\n\tconstructor() {\n\t\tsuper('google.rpc.RequestInfo', [\n\t\t\t{ no: 1, name: 'request_id', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'serving_data', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.RequestInfo\n */\nexport const RequestInfo = new RequestInfo$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass ResourceInfo$Type extends MessageType<ResourceInfo> {\n\tconstructor() {\n\t\tsuper('google.rpc.ResourceInfo', [\n\t\t\t{ no: 1, name: 'resource_type', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'resource_name', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 3, name: 'owner', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 4, name: 'description', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.ResourceInfo\n */\nexport const ResourceInfo = new ResourceInfo$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass Help$Type extends MessageType<Help> {\n\tconstructor() {\n\t\tsuper('google.rpc.Help', [\n\t\t\t{\n\t\t\t\tno: 1,\n\t\t\t\tname: 'links',\n\t\t\t\tkind: 'message',\n\t\t\t\trepeat: 2 /*RepeatType.UNPACKED*/,\n\t\t\t\tT: () => Help_Link,\n\t\t\t},\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.Help\n */\nexport const Help = new Help$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass Help_Link$Type extends MessageType<Help_Link> {\n\tconstructor() {\n\t\tsuper('google.rpc.Help.Link', [\n\t\t\t{ no: 1, name: 'description', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'url', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.Help.Link\n */\nexport const Help_Link = new Help_Link$Type();\n// @generated message type with reflection information, may provide speed optimized methods\nclass LocalizedMessage$Type extends MessageType<LocalizedMessage> {\n\tconstructor() {\n\t\tsuper('google.rpc.LocalizedMessage', [\n\t\t\t{ no: 1, name: 'locale', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t\t{ no: 2, name: 'message', kind: 'scalar', T: 9 /*ScalarType.STRING*/ },\n\t\t]);\n\t}\n}\n/**\n * @generated MessageType for protobuf message google.rpc.LocalizedMessage\n */\nexport const LocalizedMessage = new LocalizedMessage$Type();\n"],"mappings":";;;;AAicA,IAAM,iBAAN,cAA6B,YAAuB;CACnD,cAAc;AACb,QAAM,wBAAwB;GAC7B;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAU,GAAG;IAAyB;GACrE;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAU,GAAG;IAAyB;GACrE;IACC,IAAI;IACJ,MAAM;IACN,MAAM;IACN,GAAG;IACH,GAAG;KAAE,MAAM;KAAU,GAAG;KAAyB;IACjD;GACD,CAAC;;;;;;AAMJ,MAAa,YAAY,IAAI,gBAAgB;AAE7C,IAAM,iBAAN,cAA6B,YAAuB;CACnD,cAAc;AACb,QAAM,wBAAwB,CAC7B;GAAE,IAAI;GAAG,MAAM;GAAe,MAAM;GAAW,SAAS;GAAU,CAClE,CAAC;;;;;;AAMJ,MAAa,YAAY,IAAI,gBAAgB;AAE7C,IAAM,iBAAN,cAA6B,YAAuB;CACnD,cAAc;AACb,QAAM,wBAAwB,CAC7B;GACC,IAAI;GACJ,MAAM;GACN,MAAM;GACN,QAAQ;GACR,GAAG;GACH,EACD;GAAE,IAAI;GAAG,MAAM;GAAU,MAAM;GAAU,GAAG;GAAyB,CACrE,CAAC;;;;;;AAMJ,MAAa,YAAY,IAAI,gBAAgB;AAE7C,IAAM,oBAAN,cAAgC,YAA0B;CACzD,cAAc;AACb,QAAM,2BAA2B,CAChC;GACC,IAAI;GACJ,MAAM;GACN,MAAM;GACN,QAAQ;GACR,SAAS;GACT,CACD,CAAC;;;;;;AAMJ,MAAa,eAAe,IAAI,mBAAmB;AAEnD,IAAM,8BAAN,cAA0C,YAAoC;CAC7E,cAAc;AACb,QAAM,qCAAqC,CAC1C;GAAE,IAAI;GAAG,MAAM;GAAW,MAAM;GAAU,GAAG;GAAyB,EACtE;GAAE,IAAI;GAAG,MAAM;GAAe,MAAM;GAAU,GAAG;GAAyB,CAC1E,CAAC;;;;;;AAMJ,MAAa,yBAAyB,IAAI,6BAA6B;AAEvE,IAAM,2BAAN,cAAuC,YAAiC;CACvE,cAAc;AACb,QAAM,kCAAkC,CACvC;GACC,IAAI;GACJ,MAAM;GACN,MAAM;GACN,QAAQ;GACR,SAAS;GACT,CACD,CAAC;;;;;;AAMJ,MAAa,sBAAsB,IAAI,0BAA0B;AAEjE,IAAM,qCAAN,cAAiD,YAA2C;CAC3F,cAAc;AACb,QAAM,4CAA4C;GACjD;IAAE,IAAI;IAAG,MAAM;IAAQ,MAAM;IAAU,GAAG;IAAyB;GACnE;IAAE,IAAI;IAAG,MAAM;IAAW,MAAM;IAAU,GAAG;IAAyB;GACtE;IAAE,IAAI;IAAG,MAAM;IAAe,MAAM;IAAU,GAAG;IAAyB;GAC1E,CAAC;;;;;;AAMJ,MAAa,gCAAgC,IAAI,oCAAoC;AAErF,IAAM,kBAAN,cAA8B,YAAwB;CACrD,cAAc;AACb,QAAM,yBAAyB,CAC9B;GACC,IAAI;GACJ,MAAM;GACN,MAAM;GACN,QAAQ;GACR,SAAS;GACT,CACD,CAAC;;;;;;AAMJ,MAAa,aAAa,IAAI,iBAAiB;AAE/C,IAAM,iCAAN,cAA6C,YAAuC;CACnF,cAAc;AACb,QAAM,wCAAwC;GAC7C;IAAE,IAAI;IAAG,MAAM;IAAS,MAAM;IAAU,GAAG;IAAyB;GACpE;IAAE,IAAI;IAAG,MAAM;IAAe,MAAM;IAAU,GAAG;IAAyB;GAC1E;IAAE,IAAI;IAAG,MAAM;IAAU,MAAM;IAAU,GAAG;IAAyB;GACrE;IAAE,IAAI;IAAG,MAAM;IAAqB,MAAM;IAAW,SAAS;IAAkB;GAChF,CAAC;;;;;;AAMJ,MAAa,4BAA4B,IAAI,gCAAgC;AAE7E,IAAM,mBAAN,cAA+B,YAAyB;CACvD,cAAc;AACb,QAAM,0BAA0B,CAC/B;GAAE,IAAI;GAAG,MAAM;GAAc,MAAM;GAAU,GAAG;GAAyB,EACzE;GAAE,IAAI;GAAG,MAAM;GAAgB,MAAM;GAAU,GAAG;GAAyB,CAC3E,CAAC;;;;;;AAMJ,MAAa,cAAc,IAAI,kBAAkB;AAEjD,IAAM,oBAAN,cAAgC,YAA0B;CACzD,cAAc;AACb,QAAM,2BAA2B;GAChC;IAAE,IAAI;IAAG,MAAM;IAAiB,MAAM;IAAU,GAAG;IAAyB;GAC5E;IAAE,IAAI;IAAG,MAAM;IAAiB,MAAM;IAAU,GAAG;IAAyB;GAC5E;IAAE,IAAI;IAAG,MAAM;IAAS,MAAM;IAAU,GAAG;IAAyB;GACpE;IAAE,IAAI;IAAG,MAAM;IAAe,MAAM;IAAU,GAAG;IAAyB;GAC1E,CAAC;;;;;;AAMJ,MAAa,eAAe,IAAI,mBAAmB;AAEnD,IAAM,YAAN,cAAwB,YAAkB;CACzC,cAAc;AACb,QAAM,mBAAmB,CACxB;GACC,IAAI;GACJ,MAAM;GACN,MAAM;GACN,QAAQ;GACR,SAAS;GACT,CACD,CAAC;;;;;;AAMJ,MAAa,OAAO,IAAI,WAAW;AAEnC,IAAM,iBAAN,cAA6B,YAAuB;CACnD,cAAc;AACb,QAAM,wBAAwB,CAC7B;GAAE,IAAI;GAAG,MAAM;GAAe,MAAM;GAAU,GAAG;GAAyB,EAC1E;GAAE,IAAI;GAAG,MAAM;GAAO,MAAM;GAAU,GAAG;GAAyB,CAClE,CAAC;;;;;;AAMJ,MAAa,YAAY,IAAI,gBAAgB;AAE7C,IAAM,wBAAN,cAAoC,YAA8B;CACjE,cAAc;AACb,QAAM,+BAA+B,CACpC;GAAE,IAAI;GAAG,MAAM;GAAU,MAAM;GAAU,GAAG;GAAyB,EACrE;GAAE,IAAI;GAAG,MAAM;GAAW,MAAM;GAAU,GAAG;GAAyB,CACtE,CAAC;;;;;;AAMJ,MAAa,mBAAmB,IAAI,uBAAuB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AdvanceCheckpointRequest, AdvanceCheckpointResponse, AdvanceClockRequest, AdvanceClockResponse, GetStatusRequest, GetStatusResponse } from "./forking_service.mjs";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as _protobuf_ts_runtime6 from "@protobuf-ts/runtime";
|
|
3
|
+
import * as _protobuf_ts_runtime_rpc6 from "@protobuf-ts/runtime-rpc";
|
|
4
4
|
import { RpcOptions, RpcTransport, ServiceInfo, UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
5
5
|
|
|
6
6
|
//#region src/grpc/proto/sui/forking/v1alpha/forking_service.client.d.ts
|
|
@@ -37,9 +37,9 @@ interface IForkingServiceClient {
|
|
|
37
37
|
declare class ForkingServiceClient implements IForkingServiceClient, ServiceInfo {
|
|
38
38
|
private readonly _transport;
|
|
39
39
|
typeName: string;
|
|
40
|
-
methods:
|
|
40
|
+
methods: _protobuf_ts_runtime_rpc6.MethodInfo<any, any>[];
|
|
41
41
|
options: {
|
|
42
|
-
[extensionName: string]:
|
|
42
|
+
[extensionName: string]: _protobuf_ts_runtime6.JsonValue;
|
|
43
43
|
};
|
|
44
44
|
constructor(_transport: RpcTransport);
|
|
45
45
|
/**
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
//#region src/grpc/proto/sui/rpc/v2/error_reason.d.ts
|
|
2
2
|
/**
|
|
3
|
+
* Error reasons in the `sui.io` error domain, used as the `reason` of a
|
|
4
|
+
* `google.rpc.ErrorInfo` or of a `google.rpc.BadRequest.FieldViolation`.
|
|
5
|
+
*
|
|
3
6
|
* @generated from protobuf enum sui.rpc.v2.ErrorReason
|
|
4
7
|
*/
|
|
5
8
|
declare enum ErrorReason {
|
|
@@ -14,7 +17,179 @@ declare enum ErrorReason {
|
|
|
14
17
|
/**
|
|
15
18
|
* @generated from protobuf enum value: FIELD_MISSING = 2;
|
|
16
19
|
*/
|
|
17
|
-
FIELD_MISSING = 2
|
|
20
|
+
FIELD_MISSING = 2,
|
|
21
|
+
/**
|
|
22
|
+
* Gas selection could not find enough SUI to cover the gas budget.
|
|
23
|
+
* `SimulateTransaction` returns this with `INVALID_ARGUMENT`. Gas selection
|
|
24
|
+
* runs only when `do_gas_selection` is set, `checks` is not `DISABLED`, and
|
|
25
|
+
* the transaction has no gas payment objects. When the server estimates the
|
|
26
|
+
* budget and the transaction fails in that estimation, `SimulateTransaction`
|
|
27
|
+
* returns `TRANSACTION_EXECUTION_FAILED` instead of this error, so with an
|
|
28
|
+
* estimated budget this reason means the transaction executed successfully
|
|
29
|
+
* in simulation.
|
|
30
|
+
*
|
|
31
|
+
* Example of an ErrorInfo when the gas owner holds a single 2246360 MIST
|
|
32
|
+
* coin, has no address balance, and the transaction needs a budget of
|
|
33
|
+
* 8924024 MIST:
|
|
34
|
+
*
|
|
35
|
+
* { "reason": "INSUFFICIENT_GAS_BALANCE",
|
|
36
|
+
* "domain": "sui.io",
|
|
37
|
+
* "metadata": {
|
|
38
|
+
* "owner": "0x0000000000000000000000000000000000000000000000000000000000000123",
|
|
39
|
+
* "requiredBudget": "8924024",
|
|
40
|
+
* "coinBalance": "2246360",
|
|
41
|
+
* "addressBalance": "0"
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*
|
|
45
|
+
* Metadata, with amounts in MIST as decimal strings:
|
|
46
|
+
* - `owner`: the gas owner's address, as "0x" followed by 64 hex digits.
|
|
47
|
+
* - `requiredBudget`: the gas budget the transaction needs. When the
|
|
48
|
+
* request leaves the budget unset, this is the server's estimate plus the
|
|
49
|
+
* cost of loading every coin counted in `coinBalance` beyond the first;
|
|
50
|
+
* otherwise it is the budget from the request. An estimated
|
|
51
|
+
* `requiredBudget` depends on how many coins the gas owner holds: when
|
|
52
|
+
* the owner already holds coins, sending it a new coin raises
|
|
53
|
+
* `requiredBudget` by up to the cost of loading one more coin. A new coin
|
|
54
|
+
* worth `requiredBudget` covers that increase unless `coinBalance` is
|
|
55
|
+
* less than the cost of loading one coin; a new coin worth only
|
|
56
|
+
* `requiredBudget` minus `coinBalance` can fall short.
|
|
57
|
+
* - `coinBalance`: total of the gas owner's `Coin<SUI>` objects considered
|
|
58
|
+
* by gas selection: owned, non-consensus coins not already used as
|
|
59
|
+
* transaction inputs, largest first, up to the protocol's maximum number
|
|
60
|
+
* of gas payment objects.
|
|
61
|
+
* - `addressBalance`: the gas owner's SUI address balance remaining after
|
|
62
|
+
* the transaction's own explicit SUI withdrawals from the gas owner; "0"
|
|
63
|
+
* if there is none.
|
|
64
|
+
*
|
|
65
|
+
* The two balances are reported separately because they combine
|
|
66
|
+
* differently. When the transaction uses the gas coin (an `Argument` of kind
|
|
67
|
+
* `GAS`), coins and address balance are combined to pay for gas. Otherwise
|
|
68
|
+
* they are never combined: the address balance pays for gas only if it
|
|
69
|
+
* alone covers the budget before coin-loading costs, which is at most
|
|
70
|
+
* `requiredBudget`; if it does not, the coins alone must cover
|
|
71
|
+
* `requiredBudget`.
|
|
72
|
+
*
|
|
73
|
+
* @generated from protobuf enum value: INSUFFICIENT_GAS_BALANCE = 3;
|
|
74
|
+
*/
|
|
75
|
+
INSUFFICIENT_GAS_BALANCE = 3,
|
|
76
|
+
/**
|
|
77
|
+
* The transaction failed while executing in simulation. `SimulateTransaction`
|
|
78
|
+
* returns this with `INVALID_ARGUMENT` when it estimates the budget, the
|
|
79
|
+
* transaction fails in that estimation, and gas selection then cannot cover
|
|
80
|
+
* the budget. It is returned instead of the `INSUFFICIENT_GAS_BALANCE`
|
|
81
|
+
* reason in that case because the transaction fails even with its gas paid
|
|
82
|
+
* for, so the gas budget is not what stops it; `kind` says what does. Some
|
|
83
|
+
* kinds can still be fixed by adding funds: for example,
|
|
84
|
+
* `INSUFFICIENT_FUNDS_FOR_WITHDRAW` means a balance the transaction
|
|
85
|
+
* withdraws from holds too little. `INSUFFICIENT_GAS` cannot: the estimation
|
|
86
|
+
* runs with the maximum gas budget, so it means the transaction needs more
|
|
87
|
+
* gas than any budget allows. A gas owner that can cover the budget instead
|
|
88
|
+
* gets a successful response whose `effects.status.error` describes the
|
|
89
|
+
* failure.
|
|
90
|
+
*
|
|
91
|
+
* The status details also carry the `ExecutionError`, in the same form as
|
|
92
|
+
* `effects.status.error`.
|
|
93
|
+
*
|
|
94
|
+
* Example of an ErrorInfo for a Move abort in the first command:
|
|
95
|
+
*
|
|
96
|
+
* { "reason": "TRANSACTION_EXECUTION_FAILED",
|
|
97
|
+
* "domain": "sui.io",
|
|
98
|
+
* "metadata": {
|
|
99
|
+
* "kind": "MOVE_ABORT",
|
|
100
|
+
* "command": "0"
|
|
101
|
+
* }
|
|
102
|
+
* }
|
|
103
|
+
*
|
|
104
|
+
* Metadata:
|
|
105
|
+
* - `kind`: the failure's `ExecutionError.ExecutionErrorKind` name.
|
|
106
|
+
* - `command`: index of the command that failed, as a decimal string, or
|
|
107
|
+
* "" if no single command failed.
|
|
108
|
+
*
|
|
109
|
+
* @generated from protobuf enum value: TRANSACTION_EXECUTION_FAILED = 4;
|
|
110
|
+
*/
|
|
111
|
+
TRANSACTION_EXECUTION_FAILED = 4,
|
|
112
|
+
/**
|
|
113
|
+
* The request reads ledger data above what this server has indexed. The
|
|
114
|
+
* `LedgerService` `List*` RPCs return this with `OUT_OF_RANGE` for a
|
|
115
|
+
* descending query when:
|
|
116
|
+
* - its `before` or `after` cursor names a position this server has not
|
|
117
|
+
* indexed.
|
|
118
|
+
* - its `end_checkpoint`, which is exclusive, is above
|
|
119
|
+
* `firstUnavailableCheckpoint`, or, with `end_checkpoint` unset, its
|
|
120
|
+
* `start_checkpoint` is at or above `firstUnavailableCheckpoint`.
|
|
121
|
+
* An ascending query never gets this error. Its `before` cursor and its
|
|
122
|
+
* checkpoint range end at the latest indexed checkpoint, and an `after`
|
|
123
|
+
* cursor past it ends an empty response with `LEDGER_TIP` at the position
|
|
124
|
+
* that cursor resumes from.
|
|
125
|
+
*
|
|
126
|
+
* Such a cursor comes from a newer view of the ledger than this server's,
|
|
127
|
+
* for example from another replica behind the same load balancer. The data
|
|
128
|
+
* is not indexed here yet, so the same request becomes servable once this
|
|
129
|
+
* server catches up, and a client may resend it unchanged after a delay. A
|
|
130
|
+
* cursor comes from a server that had indexed its position, so a request
|
|
131
|
+
* rejected for its cursor (`bound` is "cursor") is servable within the time
|
|
132
|
+
* replicas take to catch up with each other. A checkpoint bound may name a
|
|
133
|
+
* checkpoint the chain has not reached, so retrying it can wait
|
|
134
|
+
* indefinitely.
|
|
135
|
+
*
|
|
136
|
+
* Example of an ErrorInfo for a descending query's `before` cursor at
|
|
137
|
+
* checkpoint 1205, sent to a server whose latest indexed checkpoint is 1199:
|
|
138
|
+
*
|
|
139
|
+
* { "reason": "ABOVE_LATEST_AVAILABLE",
|
|
140
|
+
* "domain": "sui.io",
|
|
141
|
+
* "metadata": {
|
|
142
|
+
* "bound": "cursor",
|
|
143
|
+
* "requestedCheckpoint": "1205",
|
|
144
|
+
* "firstUnavailableCheckpoint": "1200"
|
|
145
|
+
* }
|
|
146
|
+
* }
|
|
147
|
+
*
|
|
148
|
+
* Metadata, with checkpoints as decimal strings:
|
|
149
|
+
* - `bound`: what reads above the indexed data: "cursor" for a `before` or
|
|
150
|
+
* `after` cursor, or the name of the request field, "start_checkpoint"
|
|
151
|
+
* or "end_checkpoint".
|
|
152
|
+
* - `requestedCheckpoint`: the checkpoint recorded in the cursor, or the
|
|
153
|
+
* value of the request field.
|
|
154
|
+
* - `firstUnavailableCheckpoint`: the lowest checkpoint this server has not
|
|
155
|
+
* indexed, one above its latest indexed checkpoint, or "0" if it has
|
|
156
|
+
* indexed none.
|
|
157
|
+
*
|
|
158
|
+
* @generated from protobuf enum value: ABOVE_LATEST_AVAILABLE = 5;
|
|
159
|
+
*/
|
|
160
|
+
ABOVE_LATEST_AVAILABLE = 5,
|
|
161
|
+
/**
|
|
162
|
+
* The request needs ledger data this server has pruned. The
|
|
163
|
+
* `LedgerService` `List*` RPCs return this with `OUT_OF_RANGE` when the
|
|
164
|
+
* request's `start_checkpoint` or `after` cursor is below the lowest
|
|
165
|
+
* checkpoint this server serves, when its checkpoint range ends at or below
|
|
166
|
+
* that checkpoint, when a descending query with no lower bound of its own
|
|
167
|
+
* reaches it, or when the server prunes data a query has not read yet. A
|
|
168
|
+
* descending query that reaches the lowest checkpoint fails after it
|
|
169
|
+
* streams every item at or above that checkpoint, and its last response
|
|
170
|
+
* carries a watermark at that checkpoint.
|
|
171
|
+
*
|
|
172
|
+
* Pruned data does not come back, so the same request fails the same way
|
|
173
|
+
* on this server. A client can send it to a server that retains the data,
|
|
174
|
+
* or resume at or above `lowestAvailableCheckpoint`.
|
|
175
|
+
*
|
|
176
|
+
* Example of an ErrorInfo from a server whose lowest available checkpoint
|
|
177
|
+
* is 5000:
|
|
178
|
+
*
|
|
179
|
+
* { "reason": "BELOW_EARLIEST_AVAILABLE",
|
|
180
|
+
* "domain": "sui.io",
|
|
181
|
+
* "metadata": {
|
|
182
|
+
* "lowestAvailableCheckpoint": "5000"
|
|
183
|
+
* }
|
|
184
|
+
* }
|
|
185
|
+
*
|
|
186
|
+
* Metadata:
|
|
187
|
+
* - `lowestAvailableCheckpoint`: the lowest checkpoint this server serves,
|
|
188
|
+
* as a decimal string.
|
|
189
|
+
*
|
|
190
|
+
* @generated from protobuf enum value: BELOW_EARLIEST_AVAILABLE = 6;
|
|
191
|
+
*/
|
|
192
|
+
BELOW_EARLIEST_AVAILABLE = 6
|
|
18
193
|
}
|
|
19
194
|
//#endregion
|
|
20
195
|
export { ErrorReason };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error_reason.d.mts","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/error_reason.ts"],"mappings":";;
|
|
1
|
+
{"version":3,"file":"error_reason.d.mts","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/error_reason.ts"],"mappings":";;AAiBA;;;;;aAAY,WAAA;EAYX;;;EARA,oBAAA;EAoLA;;;EAhLA,aAAA;;;;EAIA,aAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuDA,wBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCA,4BAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiDA,sBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgCA,wBAAA;AAAA"}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
//#region src/grpc/proto/sui/rpc/v2/error_reason.ts
|
|
2
2
|
/**
|
|
3
|
+
* Error reasons in the `sui.io` error domain, used as the `reason` of a
|
|
4
|
+
* `google.rpc.ErrorInfo` or of a `google.rpc.BadRequest.FieldViolation`.
|
|
5
|
+
*
|
|
3
6
|
* @generated from protobuf enum sui.rpc.v2.ErrorReason
|
|
4
7
|
*/
|
|
5
8
|
let ErrorReason = /* @__PURE__ */ function(ErrorReason$1) {
|
|
@@ -15,6 +18,178 @@ let ErrorReason = /* @__PURE__ */ function(ErrorReason$1) {
|
|
|
15
18
|
* @generated from protobuf enum value: FIELD_MISSING = 2;
|
|
16
19
|
*/
|
|
17
20
|
ErrorReason$1[ErrorReason$1["FIELD_MISSING"] = 2] = "FIELD_MISSING";
|
|
21
|
+
/**
|
|
22
|
+
* Gas selection could not find enough SUI to cover the gas budget.
|
|
23
|
+
* `SimulateTransaction` returns this with `INVALID_ARGUMENT`. Gas selection
|
|
24
|
+
* runs only when `do_gas_selection` is set, `checks` is not `DISABLED`, and
|
|
25
|
+
* the transaction has no gas payment objects. When the server estimates the
|
|
26
|
+
* budget and the transaction fails in that estimation, `SimulateTransaction`
|
|
27
|
+
* returns `TRANSACTION_EXECUTION_FAILED` instead of this error, so with an
|
|
28
|
+
* estimated budget this reason means the transaction executed successfully
|
|
29
|
+
* in simulation.
|
|
30
|
+
*
|
|
31
|
+
* Example of an ErrorInfo when the gas owner holds a single 2246360 MIST
|
|
32
|
+
* coin, has no address balance, and the transaction needs a budget of
|
|
33
|
+
* 8924024 MIST:
|
|
34
|
+
*
|
|
35
|
+
* { "reason": "INSUFFICIENT_GAS_BALANCE",
|
|
36
|
+
* "domain": "sui.io",
|
|
37
|
+
* "metadata": {
|
|
38
|
+
* "owner": "0x0000000000000000000000000000000000000000000000000000000000000123",
|
|
39
|
+
* "requiredBudget": "8924024",
|
|
40
|
+
* "coinBalance": "2246360",
|
|
41
|
+
* "addressBalance": "0"
|
|
42
|
+
* }
|
|
43
|
+
* }
|
|
44
|
+
*
|
|
45
|
+
* Metadata, with amounts in MIST as decimal strings:
|
|
46
|
+
* - `owner`: the gas owner's address, as "0x" followed by 64 hex digits.
|
|
47
|
+
* - `requiredBudget`: the gas budget the transaction needs. When the
|
|
48
|
+
* request leaves the budget unset, this is the server's estimate plus the
|
|
49
|
+
* cost of loading every coin counted in `coinBalance` beyond the first;
|
|
50
|
+
* otherwise it is the budget from the request. An estimated
|
|
51
|
+
* `requiredBudget` depends on how many coins the gas owner holds: when
|
|
52
|
+
* the owner already holds coins, sending it a new coin raises
|
|
53
|
+
* `requiredBudget` by up to the cost of loading one more coin. A new coin
|
|
54
|
+
* worth `requiredBudget` covers that increase unless `coinBalance` is
|
|
55
|
+
* less than the cost of loading one coin; a new coin worth only
|
|
56
|
+
* `requiredBudget` minus `coinBalance` can fall short.
|
|
57
|
+
* - `coinBalance`: total of the gas owner's `Coin<SUI>` objects considered
|
|
58
|
+
* by gas selection: owned, non-consensus coins not already used as
|
|
59
|
+
* transaction inputs, largest first, up to the protocol's maximum number
|
|
60
|
+
* of gas payment objects.
|
|
61
|
+
* - `addressBalance`: the gas owner's SUI address balance remaining after
|
|
62
|
+
* the transaction's own explicit SUI withdrawals from the gas owner; "0"
|
|
63
|
+
* if there is none.
|
|
64
|
+
*
|
|
65
|
+
* The two balances are reported separately because they combine
|
|
66
|
+
* differently. When the transaction uses the gas coin (an `Argument` of kind
|
|
67
|
+
* `GAS`), coins and address balance are combined to pay for gas. Otherwise
|
|
68
|
+
* they are never combined: the address balance pays for gas only if it
|
|
69
|
+
* alone covers the budget before coin-loading costs, which is at most
|
|
70
|
+
* `requiredBudget`; if it does not, the coins alone must cover
|
|
71
|
+
* `requiredBudget`.
|
|
72
|
+
*
|
|
73
|
+
* @generated from protobuf enum value: INSUFFICIENT_GAS_BALANCE = 3;
|
|
74
|
+
*/
|
|
75
|
+
ErrorReason$1[ErrorReason$1["INSUFFICIENT_GAS_BALANCE"] = 3] = "INSUFFICIENT_GAS_BALANCE";
|
|
76
|
+
/**
|
|
77
|
+
* The transaction failed while executing in simulation. `SimulateTransaction`
|
|
78
|
+
* returns this with `INVALID_ARGUMENT` when it estimates the budget, the
|
|
79
|
+
* transaction fails in that estimation, and gas selection then cannot cover
|
|
80
|
+
* the budget. It is returned instead of the `INSUFFICIENT_GAS_BALANCE`
|
|
81
|
+
* reason in that case because the transaction fails even with its gas paid
|
|
82
|
+
* for, so the gas budget is not what stops it; `kind` says what does. Some
|
|
83
|
+
* kinds can still be fixed by adding funds: for example,
|
|
84
|
+
* `INSUFFICIENT_FUNDS_FOR_WITHDRAW` means a balance the transaction
|
|
85
|
+
* withdraws from holds too little. `INSUFFICIENT_GAS` cannot: the estimation
|
|
86
|
+
* runs with the maximum gas budget, so it means the transaction needs more
|
|
87
|
+
* gas than any budget allows. A gas owner that can cover the budget instead
|
|
88
|
+
* gets a successful response whose `effects.status.error` describes the
|
|
89
|
+
* failure.
|
|
90
|
+
*
|
|
91
|
+
* The status details also carry the `ExecutionError`, in the same form as
|
|
92
|
+
* `effects.status.error`.
|
|
93
|
+
*
|
|
94
|
+
* Example of an ErrorInfo for a Move abort in the first command:
|
|
95
|
+
*
|
|
96
|
+
* { "reason": "TRANSACTION_EXECUTION_FAILED",
|
|
97
|
+
* "domain": "sui.io",
|
|
98
|
+
* "metadata": {
|
|
99
|
+
* "kind": "MOVE_ABORT",
|
|
100
|
+
* "command": "0"
|
|
101
|
+
* }
|
|
102
|
+
* }
|
|
103
|
+
*
|
|
104
|
+
* Metadata:
|
|
105
|
+
* - `kind`: the failure's `ExecutionError.ExecutionErrorKind` name.
|
|
106
|
+
* - `command`: index of the command that failed, as a decimal string, or
|
|
107
|
+
* "" if no single command failed.
|
|
108
|
+
*
|
|
109
|
+
* @generated from protobuf enum value: TRANSACTION_EXECUTION_FAILED = 4;
|
|
110
|
+
*/
|
|
111
|
+
ErrorReason$1[ErrorReason$1["TRANSACTION_EXECUTION_FAILED"] = 4] = "TRANSACTION_EXECUTION_FAILED";
|
|
112
|
+
/**
|
|
113
|
+
* The request reads ledger data above what this server has indexed. The
|
|
114
|
+
* `LedgerService` `List*` RPCs return this with `OUT_OF_RANGE` for a
|
|
115
|
+
* descending query when:
|
|
116
|
+
* - its `before` or `after` cursor names a position this server has not
|
|
117
|
+
* indexed.
|
|
118
|
+
* - its `end_checkpoint`, which is exclusive, is above
|
|
119
|
+
* `firstUnavailableCheckpoint`, or, with `end_checkpoint` unset, its
|
|
120
|
+
* `start_checkpoint` is at or above `firstUnavailableCheckpoint`.
|
|
121
|
+
* An ascending query never gets this error. Its `before` cursor and its
|
|
122
|
+
* checkpoint range end at the latest indexed checkpoint, and an `after`
|
|
123
|
+
* cursor past it ends an empty response with `LEDGER_TIP` at the position
|
|
124
|
+
* that cursor resumes from.
|
|
125
|
+
*
|
|
126
|
+
* Such a cursor comes from a newer view of the ledger than this server's,
|
|
127
|
+
* for example from another replica behind the same load balancer. The data
|
|
128
|
+
* is not indexed here yet, so the same request becomes servable once this
|
|
129
|
+
* server catches up, and a client may resend it unchanged after a delay. A
|
|
130
|
+
* cursor comes from a server that had indexed its position, so a request
|
|
131
|
+
* rejected for its cursor (`bound` is "cursor") is servable within the time
|
|
132
|
+
* replicas take to catch up with each other. A checkpoint bound may name a
|
|
133
|
+
* checkpoint the chain has not reached, so retrying it can wait
|
|
134
|
+
* indefinitely.
|
|
135
|
+
*
|
|
136
|
+
* Example of an ErrorInfo for a descending query's `before` cursor at
|
|
137
|
+
* checkpoint 1205, sent to a server whose latest indexed checkpoint is 1199:
|
|
138
|
+
*
|
|
139
|
+
* { "reason": "ABOVE_LATEST_AVAILABLE",
|
|
140
|
+
* "domain": "sui.io",
|
|
141
|
+
* "metadata": {
|
|
142
|
+
* "bound": "cursor",
|
|
143
|
+
* "requestedCheckpoint": "1205",
|
|
144
|
+
* "firstUnavailableCheckpoint": "1200"
|
|
145
|
+
* }
|
|
146
|
+
* }
|
|
147
|
+
*
|
|
148
|
+
* Metadata, with checkpoints as decimal strings:
|
|
149
|
+
* - `bound`: what reads above the indexed data: "cursor" for a `before` or
|
|
150
|
+
* `after` cursor, or the name of the request field, "start_checkpoint"
|
|
151
|
+
* or "end_checkpoint".
|
|
152
|
+
* - `requestedCheckpoint`: the checkpoint recorded in the cursor, or the
|
|
153
|
+
* value of the request field.
|
|
154
|
+
* - `firstUnavailableCheckpoint`: the lowest checkpoint this server has not
|
|
155
|
+
* indexed, one above its latest indexed checkpoint, or "0" if it has
|
|
156
|
+
* indexed none.
|
|
157
|
+
*
|
|
158
|
+
* @generated from protobuf enum value: ABOVE_LATEST_AVAILABLE = 5;
|
|
159
|
+
*/
|
|
160
|
+
ErrorReason$1[ErrorReason$1["ABOVE_LATEST_AVAILABLE"] = 5] = "ABOVE_LATEST_AVAILABLE";
|
|
161
|
+
/**
|
|
162
|
+
* The request needs ledger data this server has pruned. The
|
|
163
|
+
* `LedgerService` `List*` RPCs return this with `OUT_OF_RANGE` when the
|
|
164
|
+
* request's `start_checkpoint` or `after` cursor is below the lowest
|
|
165
|
+
* checkpoint this server serves, when its checkpoint range ends at or below
|
|
166
|
+
* that checkpoint, when a descending query with no lower bound of its own
|
|
167
|
+
* reaches it, or when the server prunes data a query has not read yet. A
|
|
168
|
+
* descending query that reaches the lowest checkpoint fails after it
|
|
169
|
+
* streams every item at or above that checkpoint, and its last response
|
|
170
|
+
* carries a watermark at that checkpoint.
|
|
171
|
+
*
|
|
172
|
+
* Pruned data does not come back, so the same request fails the same way
|
|
173
|
+
* on this server. A client can send it to a server that retains the data,
|
|
174
|
+
* or resume at or above `lowestAvailableCheckpoint`.
|
|
175
|
+
*
|
|
176
|
+
* Example of an ErrorInfo from a server whose lowest available checkpoint
|
|
177
|
+
* is 5000:
|
|
178
|
+
*
|
|
179
|
+
* { "reason": "BELOW_EARLIEST_AVAILABLE",
|
|
180
|
+
* "domain": "sui.io",
|
|
181
|
+
* "metadata": {
|
|
182
|
+
* "lowestAvailableCheckpoint": "5000"
|
|
183
|
+
* }
|
|
184
|
+
* }
|
|
185
|
+
*
|
|
186
|
+
* Metadata:
|
|
187
|
+
* - `lowestAvailableCheckpoint`: the lowest checkpoint this server serves,
|
|
188
|
+
* as a decimal string.
|
|
189
|
+
*
|
|
190
|
+
* @generated from protobuf enum value: BELOW_EARLIEST_AVAILABLE = 6;
|
|
191
|
+
*/
|
|
192
|
+
ErrorReason$1[ErrorReason$1["BELOW_EARLIEST_AVAILABLE"] = 6] = "BELOW_EARLIEST_AVAILABLE";
|
|
18
193
|
return ErrorReason$1;
|
|
19
194
|
}({});
|
|
20
195
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error_reason.mjs","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/error_reason.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"sui/rpc/v2/error_reason.proto\" (package \"sui.rpc.v2\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n//\n/**\n * @generated from protobuf enum sui.rpc.v2.ErrorReason\n */\nexport enum ErrorReason {\n\t/**\n\t * @generated from protobuf enum value: ERROR_REASON_UNKNOWN = 0;\n\t */\n\tERROR_REASON_UNKNOWN = 0,\n\t/**\n\t * @generated from protobuf enum value: FIELD_INVALID = 1;\n\t */\n\tFIELD_INVALID = 1,\n\t/**\n\t * @generated from protobuf enum value: FIELD_MISSING = 2;\n\t */\n\tFIELD_MISSING = 2,\n}\n"],"mappings":";;;;AAcA,IAAY,sDAAL;;;;AAIN;;;;AAIA;;;;AAIA"}
|
|
1
|
+
{"version":3,"file":"error_reason.mjs","names":[],"sources":["../../../../../../src/grpc/proto/sui/rpc/v2/error_reason.ts"],"sourcesContent":["// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n\n// @generated by protobuf-ts 2.9.6 with parameter force_server_none,optimize_code_size,ts_nocheck\n// @generated from protobuf file \"sui/rpc/v2/error_reason.proto\" (package \"sui.rpc.v2\", syntax proto3)\n// tslint:disable\n// @ts-nocheck\n//\n// Copyright (c) Mysten Labs, Inc.\n// SPDX-License-Identifier: Apache-2.0\n//\n/**\n * Error reasons in the `sui.io` error domain, used as the `reason` of a\n * `google.rpc.ErrorInfo` or of a `google.rpc.BadRequest.FieldViolation`.\n *\n * @generated from protobuf enum sui.rpc.v2.ErrorReason\n */\nexport enum ErrorReason {\n\t/**\n\t * @generated from protobuf enum value: ERROR_REASON_UNKNOWN = 0;\n\t */\n\tERROR_REASON_UNKNOWN = 0,\n\t/**\n\t * @generated from protobuf enum value: FIELD_INVALID = 1;\n\t */\n\tFIELD_INVALID = 1,\n\t/**\n\t * @generated from protobuf enum value: FIELD_MISSING = 2;\n\t */\n\tFIELD_MISSING = 2,\n\t/**\n\t * Gas selection could not find enough SUI to cover the gas budget.\n\t * `SimulateTransaction` returns this with `INVALID_ARGUMENT`. Gas selection\n\t * runs only when `do_gas_selection` is set, `checks` is not `DISABLED`, and\n\t * the transaction has no gas payment objects. When the server estimates the\n\t * budget and the transaction fails in that estimation, `SimulateTransaction`\n\t * returns `TRANSACTION_EXECUTION_FAILED` instead of this error, so with an\n\t * estimated budget this reason means the transaction executed successfully\n\t * in simulation.\n\t *\n\t * Example of an ErrorInfo when the gas owner holds a single 2246360 MIST\n\t * coin, has no address balance, and the transaction needs a budget of\n\t * 8924024 MIST:\n\t *\n\t * { \"reason\": \"INSUFFICIENT_GAS_BALANCE\",\n\t * \"domain\": \"sui.io\",\n\t * \"metadata\": {\n\t * \"owner\": \"0x0000000000000000000000000000000000000000000000000000000000000123\",\n\t * \"requiredBudget\": \"8924024\",\n\t * \"coinBalance\": \"2246360\",\n\t * \"addressBalance\": \"0\"\n\t * }\n\t * }\n\t *\n\t * Metadata, with amounts in MIST as decimal strings:\n\t * - `owner`: the gas owner's address, as \"0x\" followed by 64 hex digits.\n\t * - `requiredBudget`: the gas budget the transaction needs. When the\n\t * request leaves the budget unset, this is the server's estimate plus the\n\t * cost of loading every coin counted in `coinBalance` beyond the first;\n\t * otherwise it is the budget from the request. An estimated\n\t * `requiredBudget` depends on how many coins the gas owner holds: when\n\t * the owner already holds coins, sending it a new coin raises\n\t * `requiredBudget` by up to the cost of loading one more coin. A new coin\n\t * worth `requiredBudget` covers that increase unless `coinBalance` is\n\t * less than the cost of loading one coin; a new coin worth only\n\t * `requiredBudget` minus `coinBalance` can fall short.\n\t * - `coinBalance`: total of the gas owner's `Coin<SUI>` objects considered\n\t * by gas selection: owned, non-consensus coins not already used as\n\t * transaction inputs, largest first, up to the protocol's maximum number\n\t * of gas payment objects.\n\t * - `addressBalance`: the gas owner's SUI address balance remaining after\n\t * the transaction's own explicit SUI withdrawals from the gas owner; \"0\"\n\t * if there is none.\n\t *\n\t * The two balances are reported separately because they combine\n\t * differently. When the transaction uses the gas coin (an `Argument` of kind\n\t * `GAS`), coins and address balance are combined to pay for gas. Otherwise\n\t * they are never combined: the address balance pays for gas only if it\n\t * alone covers the budget before coin-loading costs, which is at most\n\t * `requiredBudget`; if it does not, the coins alone must cover\n\t * `requiredBudget`.\n\t *\n\t * @generated from protobuf enum value: INSUFFICIENT_GAS_BALANCE = 3;\n\t */\n\tINSUFFICIENT_GAS_BALANCE = 3,\n\t/**\n\t * The transaction failed while executing in simulation. `SimulateTransaction`\n\t * returns this with `INVALID_ARGUMENT` when it estimates the budget, the\n\t * transaction fails in that estimation, and gas selection then cannot cover\n\t * the budget. It is returned instead of the `INSUFFICIENT_GAS_BALANCE`\n\t * reason in that case because the transaction fails even with its gas paid\n\t * for, so the gas budget is not what stops it; `kind` says what does. Some\n\t * kinds can still be fixed by adding funds: for example,\n\t * `INSUFFICIENT_FUNDS_FOR_WITHDRAW` means a balance the transaction\n\t * withdraws from holds too little. `INSUFFICIENT_GAS` cannot: the estimation\n\t * runs with the maximum gas budget, so it means the transaction needs more\n\t * gas than any budget allows. A gas owner that can cover the budget instead\n\t * gets a successful response whose `effects.status.error` describes the\n\t * failure.\n\t *\n\t * The status details also carry the `ExecutionError`, in the same form as\n\t * `effects.status.error`.\n\t *\n\t * Example of an ErrorInfo for a Move abort in the first command:\n\t *\n\t * { \"reason\": \"TRANSACTION_EXECUTION_FAILED\",\n\t * \"domain\": \"sui.io\",\n\t * \"metadata\": {\n\t * \"kind\": \"MOVE_ABORT\",\n\t * \"command\": \"0\"\n\t * }\n\t * }\n\t *\n\t * Metadata:\n\t * - `kind`: the failure's `ExecutionError.ExecutionErrorKind` name.\n\t * - `command`: index of the command that failed, as a decimal string, or\n\t * \"\" if no single command failed.\n\t *\n\t * @generated from protobuf enum value: TRANSACTION_EXECUTION_FAILED = 4;\n\t */\n\tTRANSACTION_EXECUTION_FAILED = 4,\n\t/**\n\t * The request reads ledger data above what this server has indexed. The\n\t * `LedgerService` `List*` RPCs return this with `OUT_OF_RANGE` for a\n\t * descending query when:\n\t * - its `before` or `after` cursor names a position this server has not\n\t * indexed.\n\t * - its `end_checkpoint`, which is exclusive, is above\n\t * `firstUnavailableCheckpoint`, or, with `end_checkpoint` unset, its\n\t * `start_checkpoint` is at or above `firstUnavailableCheckpoint`.\n\t * An ascending query never gets this error. Its `before` cursor and its\n\t * checkpoint range end at the latest indexed checkpoint, and an `after`\n\t * cursor past it ends an empty response with `LEDGER_TIP` at the position\n\t * that cursor resumes from.\n\t *\n\t * Such a cursor comes from a newer view of the ledger than this server's,\n\t * for example from another replica behind the same load balancer. The data\n\t * is not indexed here yet, so the same request becomes servable once this\n\t * server catches up, and a client may resend it unchanged after a delay. A\n\t * cursor comes from a server that had indexed its position, so a request\n\t * rejected for its cursor (`bound` is \"cursor\") is servable within the time\n\t * replicas take to catch up with each other. A checkpoint bound may name a\n\t * checkpoint the chain has not reached, so retrying it can wait\n\t * indefinitely.\n\t *\n\t * Example of an ErrorInfo for a descending query's `before` cursor at\n\t * checkpoint 1205, sent to a server whose latest indexed checkpoint is 1199:\n\t *\n\t * { \"reason\": \"ABOVE_LATEST_AVAILABLE\",\n\t * \"domain\": \"sui.io\",\n\t * \"metadata\": {\n\t * \"bound\": \"cursor\",\n\t * \"requestedCheckpoint\": \"1205\",\n\t * \"firstUnavailableCheckpoint\": \"1200\"\n\t * }\n\t * }\n\t *\n\t * Metadata, with checkpoints as decimal strings:\n\t * - `bound`: what reads above the indexed data: \"cursor\" for a `before` or\n\t * `after` cursor, or the name of the request field, \"start_checkpoint\"\n\t * or \"end_checkpoint\".\n\t * - `requestedCheckpoint`: the checkpoint recorded in the cursor, or the\n\t * value of the request field.\n\t * - `firstUnavailableCheckpoint`: the lowest checkpoint this server has not\n\t * indexed, one above its latest indexed checkpoint, or \"0\" if it has\n\t * indexed none.\n\t *\n\t * @generated from protobuf enum value: ABOVE_LATEST_AVAILABLE = 5;\n\t */\n\tABOVE_LATEST_AVAILABLE = 5,\n\t/**\n\t * The request needs ledger data this server has pruned. The\n\t * `LedgerService` `List*` RPCs return this with `OUT_OF_RANGE` when the\n\t * request's `start_checkpoint` or `after` cursor is below the lowest\n\t * checkpoint this server serves, when its checkpoint range ends at or below\n\t * that checkpoint, when a descending query with no lower bound of its own\n\t * reaches it, or when the server prunes data a query has not read yet. A\n\t * descending query that reaches the lowest checkpoint fails after it\n\t * streams every item at or above that checkpoint, and its last response\n\t * carries a watermark at that checkpoint.\n\t *\n\t * Pruned data does not come back, so the same request fails the same way\n\t * on this server. A client can send it to a server that retains the data,\n\t * or resume at or above `lowestAvailableCheckpoint`.\n\t *\n\t * Example of an ErrorInfo from a server whose lowest available checkpoint\n\t * is 5000:\n\t *\n\t * { \"reason\": \"BELOW_EARLIEST_AVAILABLE\",\n\t * \"domain\": \"sui.io\",\n\t * \"metadata\": {\n\t * \"lowestAvailableCheckpoint\": \"5000\"\n\t * }\n\t * }\n\t *\n\t * Metadata:\n\t * - `lowestAvailableCheckpoint`: the lowest checkpoint this server serves,\n\t * as a decimal string.\n\t *\n\t * @generated from protobuf enum value: BELOW_EARLIEST_AVAILABLE = 6;\n\t */\n\tBELOW_EARLIEST_AVAILABLE = 6,\n}\n"],"mappings":";;;;;;;AAiBA,IAAY,sDAAL;;;;AAIN;;;;AAIA;;;;AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiDA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ObjectSet } from "./object.mjs";
|
|
2
|
-
import { BalanceChange } from "./balance_change.mjs";
|
|
3
2
|
import { Timestamp } from "../../../google/protobuf/timestamp.mjs";
|
|
3
|
+
import { Transaction } from "./transaction.mjs";
|
|
4
|
+
import { BalanceChange } from "./balance_change.mjs";
|
|
4
5
|
import { TransactionEvents } from "./event.mjs";
|
|
5
6
|
import { TransactionEffects } from "./effects.mjs";
|
|
6
7
|
import { UserSignature } from "./signature.mjs";
|
|
7
|
-
import { Transaction } from "./transaction.mjs";
|
|
8
8
|
import { MessageType } from "@protobuf-ts/runtime";
|
|
9
9
|
|
|
10
10
|
//#region src/grpc/proto/sui/rpc/v2/executed_transaction.d.ts
|
|
@@ -431,6 +431,47 @@ interface ListTransactionsRequest {
|
|
|
431
431
|
* @generated from protobuf field: optional sui.rpc.v2.QueryOptions options = 5;
|
|
432
432
|
*/
|
|
433
433
|
options?: QueryOptions;
|
|
434
|
+
/**
|
|
435
|
+
* Optional. Transaction position within `start_checkpoint` at which the
|
|
436
|
+
* query starts (inclusive): within `start_checkpoint`, only transactions
|
|
437
|
+
* whose `ExecutedTransaction.transaction_index` is at least this value are
|
|
438
|
+
* returned. Unset starts at the beginning of `start_checkpoint`. An index at
|
|
439
|
+
* or past the checkpoint's transaction count starts at the next checkpoint.
|
|
440
|
+
* Requires `start_checkpoint`. When this position leaves transactions of
|
|
441
|
+
* `start_checkpoint` out, a descending query does not report that checkpoint
|
|
442
|
+
* as covered in `Watermark.checkpoint`.
|
|
443
|
+
*
|
|
444
|
+
* Combines with `options.after` by intersection: the query starts at
|
|
445
|
+
* whichever of the two is later in ledger order.
|
|
446
|
+
*
|
|
447
|
+
* Servers that predate this field ignore it and start at the beginning of
|
|
448
|
+
* `start_checkpoint`, so clients must still drop transactions before this
|
|
449
|
+
* position themselves.
|
|
450
|
+
*
|
|
451
|
+
* @generated from protobuf field: optional uint64 start_transaction_index = 6;
|
|
452
|
+
*/
|
|
453
|
+
startTransactionIndex?: bigint;
|
|
454
|
+
/**
|
|
455
|
+
* Optional. Transaction position within the last checkpoint of the range,
|
|
456
|
+
* `end_checkpoint - 1`, at which the query ends (exclusive): within that
|
|
457
|
+
* checkpoint, only transactions whose `ExecutedTransaction.transaction_index`
|
|
458
|
+
* is below this value are returned, so 0 returns none of it. Unset ends after
|
|
459
|
+
* the whole checkpoint. An index at or past the checkpoint's transaction
|
|
460
|
+
* count ends after the whole checkpoint. Requires `end_checkpoint`. A query
|
|
461
|
+
* that stops at this position ends with `QUERY_END_REASON_CHECKPOINT_BOUND`.
|
|
462
|
+
* When this position leaves transactions of that checkpoint out, an
|
|
463
|
+
* ascending query does not report it as covered in `Watermark.checkpoint`.
|
|
464
|
+
*
|
|
465
|
+
* Combines with `options.before` by intersection: the query ends at
|
|
466
|
+
* whichever of the two is earlier in ledger order.
|
|
467
|
+
*
|
|
468
|
+
* Servers that predate this field ignore it and return the whole
|
|
469
|
+
* checkpoint, so clients must still drop transactions at or after this
|
|
470
|
+
* position themselves.
|
|
471
|
+
*
|
|
472
|
+
* @generated from protobuf field: optional uint64 end_transaction_index = 7;
|
|
473
|
+
*/
|
|
474
|
+
endTransactionIndex?: bigint;
|
|
434
475
|
}
|
|
435
476
|
/**
|
|
436
477
|
* Response message for LedgerService.ListTransactions.
|
|
@@ -512,6 +553,76 @@ interface ListEventsRequest {
|
|
|
512
553
|
* @generated from protobuf field: optional sui.rpc.v2.QueryOptions options = 5;
|
|
513
554
|
*/
|
|
514
555
|
options?: QueryOptions;
|
|
556
|
+
/**
|
|
557
|
+
* Optional. Transaction position within `start_checkpoint` at which the
|
|
558
|
+
* query starts (inclusive): within `start_checkpoint`, only events of
|
|
559
|
+
* transactions whose `Event.transaction_index` is at least this value are
|
|
560
|
+
* returned. Unset starts at the beginning of `start_checkpoint`. An index at
|
|
561
|
+
* or past the checkpoint's transaction count starts at the next checkpoint,
|
|
562
|
+
* ignoring `start_event_index`. Requires `start_checkpoint`. When this
|
|
563
|
+
* position leaves events of `start_checkpoint` out, a descending query does
|
|
564
|
+
* not report that checkpoint as covered in `Watermark.checkpoint`.
|
|
565
|
+
*
|
|
566
|
+
* Combines with `options.after` by intersection: the query starts at
|
|
567
|
+
* whichever of the two is later in ledger order.
|
|
568
|
+
*
|
|
569
|
+
* Servers that predate this field ignore it and start at the beginning of
|
|
570
|
+
* `start_checkpoint`, so clients must still drop events before this
|
|
571
|
+
* position themselves.
|
|
572
|
+
*
|
|
573
|
+
* @generated from protobuf field: optional uint64 start_transaction_index = 6;
|
|
574
|
+
*/
|
|
575
|
+
startTransactionIndex?: bigint;
|
|
576
|
+
/**
|
|
577
|
+
* Optional. Event position within the transaction at
|
|
578
|
+
* `start_transaction_index` at which the query starts (inclusive): within
|
|
579
|
+
* that transaction, only events whose `Event.event_index` is at least this
|
|
580
|
+
* value are returned. Unset starts at the transaction's first event. An
|
|
581
|
+
* index past the transaction's last event starts at the next transaction.
|
|
582
|
+
* Requires `start_transaction_index`.
|
|
583
|
+
*
|
|
584
|
+
* Servers that predate this field ignore it, as for
|
|
585
|
+
* `start_transaction_index`.
|
|
586
|
+
*
|
|
587
|
+
* @generated from protobuf field: optional uint32 start_event_index = 7;
|
|
588
|
+
*/
|
|
589
|
+
startEventIndex?: number;
|
|
590
|
+
/**
|
|
591
|
+
* Optional. Transaction position within the last checkpoint of the range,
|
|
592
|
+
* `end_checkpoint - 1`, at which the query ends (exclusive): within that
|
|
593
|
+
* checkpoint, only events of transactions whose `Event.transaction_index` is
|
|
594
|
+
* below this value are returned, plus, with `end_event_index`, the events
|
|
595
|
+
* of the transaction at this index that precede it. Unset ends after the
|
|
596
|
+
* whole checkpoint. An index at or past the checkpoint's transaction count
|
|
597
|
+
* ends after the whole checkpoint. Requires `end_checkpoint`. A query that
|
|
598
|
+
* stops at this position ends with `QUERY_END_REASON_CHECKPOINT_BOUND`.
|
|
599
|
+
* When this position leaves events of that checkpoint out, an ascending
|
|
600
|
+
* query does not report it as covered in `Watermark.checkpoint`.
|
|
601
|
+
*
|
|
602
|
+
* Combines with `options.before` by intersection: the query ends at
|
|
603
|
+
* whichever of the two is earlier in ledger order.
|
|
604
|
+
*
|
|
605
|
+
* Servers that predate this field ignore it and return the whole
|
|
606
|
+
* checkpoint, so clients must still drop events at or after this position
|
|
607
|
+
* themselves.
|
|
608
|
+
*
|
|
609
|
+
* @generated from protobuf field: optional uint64 end_transaction_index = 8;
|
|
610
|
+
*/
|
|
611
|
+
endTransactionIndex?: bigint;
|
|
612
|
+
/**
|
|
613
|
+
* Optional. Event position within the transaction at
|
|
614
|
+
* `end_transaction_index` at which the query ends (exclusive): events of
|
|
615
|
+
* that transaction whose `Event.event_index` is below this value are also
|
|
616
|
+
* returned. Unset, like 0, returns none of the transaction's events. An
|
|
617
|
+
* index past the transaction's last event returns all of them. Requires
|
|
618
|
+
* `end_transaction_index`.
|
|
619
|
+
*
|
|
620
|
+
* Servers that predate this field ignore it, as for
|
|
621
|
+
* `end_transaction_index`.
|
|
622
|
+
*
|
|
623
|
+
* @generated from protobuf field: optional uint32 end_event_index = 9;
|
|
624
|
+
*/
|
|
625
|
+
endEventIndex?: number;
|
|
515
626
|
}
|
|
516
627
|
/**
|
|
517
628
|
* Response message for LedgerService.ListEvents.
|