@mysten/sui 2.39.1 → 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 +160 -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 +2 -2
- 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/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.client.d.mts +4 -4
- 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/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.client.d.mts +4 -4
- 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 +16 -10
- 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 +11 -10
- 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 +2 -3
- 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,421 @@
|
|
|
1
|
+
// Copyright (c) Mysten Labs, Inc.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
|
|
4
|
+
// Loose aliases for the 2.x JSON-RPC type names, so published declarations that import them still resolve.
|
|
5
|
+
|
|
6
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
7
|
+
export type ResolvedNameServiceNames = any;
|
|
8
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
9
|
+
export type EpochInfo = any;
|
|
10
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
11
|
+
export type EpochMetrics = any;
|
|
12
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
13
|
+
export type EpochPage = any;
|
|
14
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
15
|
+
export type EpochMetricsPage = any;
|
|
16
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
17
|
+
export type EndOfEpochInfo = any;
|
|
18
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
19
|
+
export type CheckpointPage = any;
|
|
20
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
21
|
+
export type NetworkMetrics = any;
|
|
22
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
23
|
+
export type AddressMetrics = any;
|
|
24
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
25
|
+
export type AllEpochsAddressMetrics = any;
|
|
26
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
27
|
+
export type MoveCallMetrics = any;
|
|
28
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
29
|
+
export type MoveCallMetric = any;
|
|
30
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
31
|
+
export type DynamicFieldPage = any;
|
|
32
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
33
|
+
export type SuiMoveNormalizedModules = any;
|
|
34
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
35
|
+
export type SuiMoveObject = any;
|
|
36
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
37
|
+
export type SuiMovePackage = any;
|
|
38
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
39
|
+
export type ProgrammableTransaction = any;
|
|
40
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
41
|
+
export type SuiObjectChangePublished = any;
|
|
42
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
43
|
+
export type SuiObjectChangeTransferred = any;
|
|
44
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
45
|
+
export type SuiObjectChangeMutated = any;
|
|
46
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
47
|
+
export type SuiObjectChangeDeleted = any;
|
|
48
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
49
|
+
export type SuiObjectChangeWrapped = any;
|
|
50
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
51
|
+
export type SuiObjectChangeCreated = any;
|
|
52
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
53
|
+
export type CoinBalance = any;
|
|
54
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
55
|
+
export type Order = any;
|
|
56
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
57
|
+
export type AccumulatorEvent = any;
|
|
58
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
59
|
+
export type AccumulatorOperation = any;
|
|
60
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
61
|
+
export type AccumulatorValue = any;
|
|
62
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
63
|
+
export type Balance = any;
|
|
64
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
65
|
+
export type BalanceChange = any;
|
|
66
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
67
|
+
export type Checkpoint = any;
|
|
68
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
69
|
+
export type CheckpointCommitment = any;
|
|
70
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
71
|
+
export type CheckpointId = any;
|
|
72
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
73
|
+
export type Claim = any;
|
|
74
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
75
|
+
export type CoinStruct = any;
|
|
76
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
77
|
+
export type CommitteeInfo = any;
|
|
78
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
79
|
+
export type CompressedSignature = any;
|
|
80
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
81
|
+
export type ConsensusDeterminedVersionAssignments = any;
|
|
82
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
83
|
+
export type SuiParsedData = any;
|
|
84
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
85
|
+
export type DelegatedStake = any;
|
|
86
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
87
|
+
export type DevInspectArgs = any;
|
|
88
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
89
|
+
export type DevInspectResults = any;
|
|
90
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
91
|
+
export type DisplayFieldsResponse = any;
|
|
92
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
93
|
+
export type DryRunTransactionBlockResponse = any;
|
|
94
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
95
|
+
export type DynamicFieldInfo = any;
|
|
96
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
97
|
+
export type DynamicFieldName = any;
|
|
98
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
99
|
+
export type DynamicFieldType = any;
|
|
100
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
101
|
+
export type ECMHLiveObjectSetDigest = any;
|
|
102
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
103
|
+
export type EndOfEpochData = any;
|
|
104
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
105
|
+
export type SuiEvent = any;
|
|
106
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
107
|
+
export type SuiEventFilter = any;
|
|
108
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
109
|
+
export type EventId = any;
|
|
110
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
111
|
+
export type ExecuteTransactionRequestType = any;
|
|
112
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
113
|
+
export type ExecutionStatus = any;
|
|
114
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
115
|
+
export type GasCostSummary = any;
|
|
116
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
117
|
+
export type SuiGasData = any;
|
|
118
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
119
|
+
export type GetPastObjectRequest = any;
|
|
120
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
121
|
+
export type InputObjectKind = any;
|
|
122
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
123
|
+
export type MoveCallParams = any;
|
|
124
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
125
|
+
export type SuiMoveFunctionArgType = any;
|
|
126
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
127
|
+
export type MoveStruct = any;
|
|
128
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
129
|
+
export type MoveValue = any;
|
|
130
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
131
|
+
export type MoveVariant = any;
|
|
132
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
133
|
+
export type MultiSig = any;
|
|
134
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
135
|
+
export type MultiSigLegacy = any;
|
|
136
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
137
|
+
export type MultiSigPublicKey = any;
|
|
138
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
139
|
+
export type MultiSigPublicKeyLegacy = any;
|
|
140
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
141
|
+
export type SuiObjectChange = any;
|
|
142
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
143
|
+
export type SuiObjectData = any;
|
|
144
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
145
|
+
export type SuiObjectDataOptions = any;
|
|
146
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
147
|
+
export type ObjectRead = any;
|
|
148
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
149
|
+
export type SuiObjectRef = any;
|
|
150
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
151
|
+
export type ObjectResponseError = any;
|
|
152
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
153
|
+
export type SuiObjectResponseQuery = any;
|
|
154
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
155
|
+
export type ObjectValueKind = any;
|
|
156
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
157
|
+
export type OwnedObjectRef = any;
|
|
158
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
159
|
+
export type ObjectOwner = any;
|
|
160
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
161
|
+
export type PaginatedCheckpoints = any;
|
|
162
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
163
|
+
export type PaginatedCoins = any;
|
|
164
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
165
|
+
export type PaginatedDynamicFieldInfos = any;
|
|
166
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
167
|
+
export type PaginatedEvents = any;
|
|
168
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
169
|
+
export type PaginatedStrings = any;
|
|
170
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
171
|
+
export type PaginatedObjectsResponse = any;
|
|
172
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
173
|
+
export type PaginatedTransactionResponse = any;
|
|
174
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
175
|
+
export type PasskeyAuthenticator = any;
|
|
176
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
177
|
+
export type ProtocolConfig = any;
|
|
178
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
179
|
+
export type ProtocolConfigValue = any;
|
|
180
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
181
|
+
export type PublicKey = any;
|
|
182
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
183
|
+
export type RPCTransactionRequestParams = any;
|
|
184
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
185
|
+
export type RawData = any;
|
|
186
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
187
|
+
export type Signature = any;
|
|
188
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
189
|
+
export type StakeObject = any;
|
|
190
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
191
|
+
export type SuiActiveJwk = any;
|
|
192
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
193
|
+
export type SuiArgument = any;
|
|
194
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
195
|
+
export type SuiAuthenticatorStateExpire = any;
|
|
196
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
197
|
+
export type SuiCallArg = any;
|
|
198
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
199
|
+
export type SuiChangeEpoch = any;
|
|
200
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
201
|
+
export type CoinMetadata = any;
|
|
202
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
203
|
+
export type SuiEndOfEpochTransactionKind = any;
|
|
204
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
205
|
+
export type SuiExecutionResult = any;
|
|
206
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
207
|
+
export type SuiJWK = any;
|
|
208
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
209
|
+
export type SuiJwkId = any;
|
|
210
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
211
|
+
export type SuiMoveAbility = any;
|
|
212
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
213
|
+
export type SuiMoveAbilitySet = any;
|
|
214
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
215
|
+
export type SuiMoveAbort = any;
|
|
216
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
217
|
+
export type SuiMoveModuleId = any;
|
|
218
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
219
|
+
export type SuiMoveNormalizedEnum = any;
|
|
220
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
221
|
+
export type SuiMoveNormalizedField = any;
|
|
222
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
223
|
+
export type SuiMoveNormalizedFunction = any;
|
|
224
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
225
|
+
export type SuiMoveNormalizedModule = any;
|
|
226
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
227
|
+
export type SuiMoveNormalizedStruct = any;
|
|
228
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
229
|
+
export type SuiMoveNormalizedType = any;
|
|
230
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
231
|
+
export type SuiMoveStructTypeParameter = any;
|
|
232
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
233
|
+
export type SuiMoveVisibility = any;
|
|
234
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
235
|
+
export type SuiObjectDataFilter = any;
|
|
236
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
237
|
+
export type SuiObjectResponse = any;
|
|
238
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
239
|
+
export type MoveCallSuiTransaction = any;
|
|
240
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
241
|
+
export type SuiReservation = any;
|
|
242
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
243
|
+
export type SuiSystemStateSummary = any;
|
|
244
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
245
|
+
export type SuiTransaction = any;
|
|
246
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
247
|
+
export type SuiTransactionBlockBuilderMode = any;
|
|
248
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
249
|
+
export type SuiValidatorSummary = any;
|
|
250
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
251
|
+
export type SuiWithdrawFrom = any;
|
|
252
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
253
|
+
export type SuiWithdrawalTypeArg = any;
|
|
254
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
255
|
+
export type CoinSupply = any;
|
|
256
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
257
|
+
export type SuiTransactionBlock = any;
|
|
258
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
259
|
+
export type TransactionBlockBytes = any;
|
|
260
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
261
|
+
export type TransactionBlockData = any;
|
|
262
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
263
|
+
export type TransactionEffects = any;
|
|
264
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
265
|
+
export type TransactionBlockEffectsModifiedAtVersions = any;
|
|
266
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
267
|
+
export type SuiTransactionBlockKind = any;
|
|
268
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
269
|
+
export type SuiTransactionBlockResponse = any;
|
|
270
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
271
|
+
export type SuiTransactionBlockResponseOptions = any;
|
|
272
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
273
|
+
export type SuiTransactionBlockResponseQuery = any;
|
|
274
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
275
|
+
export type TransactionFilter = any;
|
|
276
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
277
|
+
export type TransferObjectParams = any;
|
|
278
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
279
|
+
export type TypeOrigin = any;
|
|
280
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
281
|
+
export type UpgradeInfo = any;
|
|
282
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
283
|
+
export type ValidatorApy = any;
|
|
284
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
285
|
+
export type ValidatorsApy = any;
|
|
286
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
287
|
+
export type ZkLoginAuthenticator = any;
|
|
288
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
289
|
+
export type ZkLoginInputs = any;
|
|
290
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
291
|
+
export type ZkLoginIntentScope = any;
|
|
292
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
293
|
+
export type ZkLoginProof = any;
|
|
294
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
295
|
+
export type ZkLoginVerifyResult = any;
|
|
296
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
297
|
+
export type DevInspectTransactionBlockParams = any;
|
|
298
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
299
|
+
export type DryRunTransactionBlockParams = any;
|
|
300
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
301
|
+
export type ExecuteTransactionBlockParams = any;
|
|
302
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
303
|
+
export type GetChainIdentifierParams = any;
|
|
304
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
305
|
+
export type GetCheckpointParams = any;
|
|
306
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
307
|
+
export type GetCheckpointsParams = any;
|
|
308
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
309
|
+
export type GetEventsParams = any;
|
|
310
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
311
|
+
export type GetLatestCheckpointSequenceNumberParams = any;
|
|
312
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
313
|
+
export type GetMoveFunctionArgTypesParams = any;
|
|
314
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
315
|
+
export type GetNormalizedMoveFunctionParams = any;
|
|
316
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
317
|
+
export type GetNormalizedMoveModuleParams = any;
|
|
318
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
319
|
+
export type GetNormalizedMoveModulesByPackageParams = any;
|
|
320
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
321
|
+
export type GetNormalizedMoveStructParams = any;
|
|
322
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
323
|
+
export type GetObjectParams = any;
|
|
324
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
325
|
+
export type GetProtocolConfigParams = any;
|
|
326
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
327
|
+
export type GetTotalTransactionBlocksParams = any;
|
|
328
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
329
|
+
export type GetTransactionBlockParams = any;
|
|
330
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
331
|
+
export type MultiGetObjectsParams = any;
|
|
332
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
333
|
+
export type MultiGetTransactionBlocksParams = any;
|
|
334
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
335
|
+
export type TryGetPastObjectParams = any;
|
|
336
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
337
|
+
export type TryMultiGetPastObjectsParams = any;
|
|
338
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
339
|
+
export type VerifyZkLoginSignatureParams = any;
|
|
340
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
341
|
+
export type GetAllBalancesParams = any;
|
|
342
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
343
|
+
export type GetAllCoinsParams = any;
|
|
344
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
345
|
+
export type GetBalanceParams = any;
|
|
346
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
347
|
+
export type GetCoinMetadataParams = any;
|
|
348
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
349
|
+
export type GetCoinsParams = any;
|
|
350
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
351
|
+
export type GetCommitteeInfoParams = any;
|
|
352
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
353
|
+
export type GetDynamicFieldObjectParams = any;
|
|
354
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
355
|
+
export type GetDynamicFieldsParams = any;
|
|
356
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
357
|
+
export type GetLatestSuiSystemStateParams = any;
|
|
358
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
359
|
+
export type GetOwnedObjectsParams = any;
|
|
360
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
361
|
+
export type GetReferenceGasPriceParams = any;
|
|
362
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
363
|
+
export type GetStakesParams = any;
|
|
364
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
365
|
+
export type GetStakesByIdsParams = any;
|
|
366
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
367
|
+
export type GetTotalSupplyParams = any;
|
|
368
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
369
|
+
export type GetValidatorsApyParams = any;
|
|
370
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
371
|
+
export type QueryEventsParams = any;
|
|
372
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
373
|
+
export type QueryTransactionBlocksParams = any;
|
|
374
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
375
|
+
export type ResolveNameServiceAddressParams = any;
|
|
376
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
377
|
+
export type ResolveNameServiceNamesParams = any;
|
|
378
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
379
|
+
export type SubscribeEventParams = any;
|
|
380
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
381
|
+
export type SubscribeTransactionParams = any;
|
|
382
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
383
|
+
export type UnsafeBatchTransactionParams = any;
|
|
384
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
385
|
+
export type UnsafeMergeCoinsParams = any;
|
|
386
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
387
|
+
export type UnsafeMoveCallParams = any;
|
|
388
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
389
|
+
export type UnsafePayParams = any;
|
|
390
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
391
|
+
export type UnsafePayAllSuiParams = any;
|
|
392
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
393
|
+
export type UnsafePaySuiParams = any;
|
|
394
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
395
|
+
export type UnsafePublishParams = any;
|
|
396
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
397
|
+
export type UnsafeRequestAddStakeParams = any;
|
|
398
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
399
|
+
export type UnsafeRequestWithdrawStakeParams = any;
|
|
400
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
401
|
+
export type UnsafeSplitCoinParams = any;
|
|
402
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
403
|
+
export type UnsafeSplitCoinEqualParams = any;
|
|
404
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
405
|
+
export type UnsafeTransferObjectParams = any;
|
|
406
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
407
|
+
export type UnsafeTransferSuiParams = any;
|
|
408
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
409
|
+
export type SuiJsonRpcClientOptions = any;
|
|
410
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
411
|
+
export type OrderArguments = any;
|
|
412
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
413
|
+
export type JsonRpcTransport = any;
|
|
414
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
415
|
+
export type JsonRpcTransportRequestOptions = any;
|
|
416
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
417
|
+
export type HttpHeaders = any;
|
|
418
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
419
|
+
export type JsonRpcHTTPTransportOptions = any;
|
|
420
|
+
/** @deprecated JSON-RPC is no longer supported by @mysten/sui. Use SuiGrpcClient or SuiGraphQLClient instead. */
|
|
421
|
+
export type PaginationArguments<_Cursor = any> = any;
|
|
@@ -42,14 +42,26 @@ type PubkeyEnumWeightPair = {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
type MultiSigPublicKeyStruct = {
|
|
45
|
-
|
|
45
|
+
pkMap: PubkeyEnumWeightPair[];
|
|
46
46
|
threshold: number;
|
|
47
47
|
};
|
|
48
48
|
|
|
49
49
|
export type MultiSigStruct = {
|
|
50
50
|
sigs: CompressedSignature[];
|
|
51
51
|
bitmap: number;
|
|
52
|
-
|
|
52
|
+
multisigPk: MultiSigPublicKeyStruct;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** A `MultiSigStruct` returned by `parseSerializedSignature`, with the pre-3.0 field names. */
|
|
56
|
+
export type ParsedMultiSigStruct = MultiSigStruct & {
|
|
57
|
+
multisigPk: ParsedMultiSigPublicKeyStruct;
|
|
58
|
+
/** @deprecated Use `multisigPk` */
|
|
59
|
+
multisig_pk: ParsedMultiSigPublicKeyStruct;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
type ParsedMultiSigPublicKeyStruct = MultiSigPublicKeyStruct & {
|
|
63
|
+
/** @deprecated Use `pkMap` */
|
|
64
|
+
pk_map: PubkeyEnumWeightPair[];
|
|
53
65
|
};
|
|
54
66
|
|
|
55
67
|
type ParsedPartialMultiSigSignature = {
|
|
@@ -103,7 +115,7 @@ export class MultiSigPublicKey extends PublicKey {
|
|
|
103
115
|
|
|
104
116
|
const seenPublicKeys = new Set<string>();
|
|
105
117
|
|
|
106
|
-
this.publicKeys = this.multisigPublicKey.
|
|
118
|
+
this.publicKeys = this.multisigPublicKey.pkMap.map(({ pubKey, weight }) => {
|
|
107
119
|
const [scheme, bytes] = Object.entries(pubKey).filter(([name]) => name !== '$kind')[0] as [
|
|
108
120
|
SignatureScheme,
|
|
109
121
|
Uint8Array,
|
|
@@ -155,7 +167,7 @@ export class MultiSigPublicKey extends PublicKey {
|
|
|
155
167
|
}) {
|
|
156
168
|
return new MultiSigPublicKey(
|
|
157
169
|
{
|
|
158
|
-
|
|
170
|
+
pkMap: publicKeys.map(({ publicKey, weight }) => {
|
|
159
171
|
const scheme = SIGNATURE_FLAG_TO_SCHEME[publicKey.flag() as SignatureFlag];
|
|
160
172
|
|
|
161
173
|
return {
|
|
@@ -271,7 +283,7 @@ export class MultiSigPublicKey extends PublicKey {
|
|
|
271
283
|
if (
|
|
272
284
|
!bytesEqual(
|
|
273
285
|
bcs.MultiSigPublicKey.serialize(this.multisigPublicKey).toBytes(),
|
|
274
|
-
bcs.MultiSigPublicKey.serialize(multisig.
|
|
286
|
+
bcs.MultiSigPublicKey.serialize(multisig.multisigPk).toBytes(),
|
|
275
287
|
)
|
|
276
288
|
) {
|
|
277
289
|
return false;
|
|
@@ -344,7 +356,7 @@ export class MultiSigPublicKey extends PublicKey {
|
|
|
344
356
|
const multisig: MultiSigStruct = {
|
|
345
357
|
sigs: compressedSignatures,
|
|
346
358
|
bitmap,
|
|
347
|
-
|
|
359
|
+
multisigPk: this.multisigPublicKey,
|
|
348
360
|
};
|
|
349
361
|
// Ten ML-DSA-65 members are ~53 KB of signatures and public keys.
|
|
350
362
|
const bytes = bcs.MultiSig.serialize(multisig, { maxSize: 65536 }).toBytes();
|
|
@@ -368,7 +380,7 @@ export function parsePartialSignatures(
|
|
|
368
380
|
([name]) => name !== '$kind',
|
|
369
381
|
)[0] as [SignatureScheme, Uint8Array];
|
|
370
382
|
const pkIndex = asIndices(multisig.bitmap).at(i)!;
|
|
371
|
-
const pair = multisig.
|
|
383
|
+
const pair = multisig.multisigPk.pkMap[pkIndex];
|
|
372
384
|
const pkBytes = Uint8Array.from(Object.values(pair.pubKey)[0]);
|
|
373
385
|
|
|
374
386
|
if (signatureScheme === 'MultiSig') {
|
|
@@ -275,14 +275,14 @@ export class ObjectCache {
|
|
|
275
275
|
const deletedIds: string[] = [];
|
|
276
276
|
const addedObjects: ObjectCacheEntry[] = [];
|
|
277
277
|
|
|
278
|
-
changedObjects.forEach((
|
|
279
|
-
if (
|
|
280
|
-
deletedIds.push(
|
|
281
|
-
} else if (
|
|
282
|
-
const
|
|
278
|
+
changedObjects.forEach(({ objectId, outputState }) => {
|
|
279
|
+
if (outputState.NotExist) {
|
|
280
|
+
deletedIds.push(objectId);
|
|
281
|
+
} else if (outputState.ObjectWrite) {
|
|
282
|
+
const { digest, owner } = outputState.ObjectWrite;
|
|
283
283
|
|
|
284
284
|
addedObjects.push({
|
|
285
|
-
objectId
|
|
285
|
+
objectId,
|
|
286
286
|
digest,
|
|
287
287
|
version: lamportVersion,
|
|
288
288
|
owner: owner.AddressOwner ?? owner.ObjectOwner ?? null,
|
|
@@ -21,6 +21,7 @@ import { serializeV1TransactionData } from './data/v1.js';
|
|
|
21
21
|
import { SerializedTransactionDataV2Schema } from './data/v2.js';
|
|
22
22
|
import { Inputs } from './Inputs.js';
|
|
23
23
|
import { needsTransactionResolution, resolveTransactionPlugin } from './resolve.js';
|
|
24
|
+
import { assertNoRestrictedMoveCalls } from './restricted-move-calls.js';
|
|
24
25
|
import type {
|
|
25
26
|
BuildTransactionOptions,
|
|
26
27
|
SerializeTransactionOptions,
|
|
@@ -132,6 +133,11 @@ interface SignOptions extends BuildTransactionOptions {
|
|
|
132
133
|
signer: Signer;
|
|
133
134
|
}
|
|
134
135
|
|
|
136
|
+
// Read once before plugins run: they get `options` and could change it.
|
|
137
|
+
function restrictedMoveCallsFor(options: BuildTransactionOptions) {
|
|
138
|
+
return (options.restrictedMoveCalls ?? options.client?.core?.restrictedMoveCalls)?.slice();
|
|
139
|
+
}
|
|
140
|
+
|
|
135
141
|
export function isTransaction(obj: unknown): obj is TransactionLike {
|
|
136
142
|
return !!obj && typeof obj === 'object' && (obj as any)[TRANSACTION_BRAND] === true;
|
|
137
143
|
}
|
|
@@ -813,8 +819,9 @@ export class Transaction {
|
|
|
813
819
|
|
|
814
820
|
/** Build the transaction to BCS bytes. */
|
|
815
821
|
async build(options: BuildTransactionOptions = {}): Promise<Uint8Array<ArrayBuffer>> {
|
|
816
|
-
|
|
817
|
-
await this.#
|
|
822
|
+
const restrictedMoveCalls = restrictedMoveCallsFor(options);
|
|
823
|
+
await this.#prepareForSerialization(options, restrictedMoveCalls);
|
|
824
|
+
await this.#prepareBuild(options, restrictedMoveCalls);
|
|
818
825
|
return this.#data.build({
|
|
819
826
|
onlyTransactionKind: options.onlyTransactionKind,
|
|
820
827
|
});
|
|
@@ -822,10 +829,14 @@ export class Transaction {
|
|
|
822
829
|
|
|
823
830
|
/** Derive transaction digest */
|
|
824
831
|
async getDigest(
|
|
825
|
-
options: Pick<
|
|
832
|
+
options: Pick<
|
|
833
|
+
BuildTransactionOptions,
|
|
834
|
+
'client' | 'assumeSufficientAddressBalances' | 'restrictedMoveCalls'
|
|
835
|
+
> = {},
|
|
826
836
|
): Promise<string> {
|
|
827
|
-
|
|
828
|
-
await this.#
|
|
837
|
+
const restrictedMoveCalls = restrictedMoveCallsFor(options);
|
|
838
|
+
await this.#prepareForSerialization(options, restrictedMoveCalls);
|
|
839
|
+
await this.#prepareBuild(options, restrictedMoveCalls);
|
|
829
840
|
return this.#data.getDigest();
|
|
830
841
|
}
|
|
831
842
|
|
|
@@ -833,12 +844,17 @@ export class Transaction {
|
|
|
833
844
|
* Prepare the transaction by validating the transaction data and resolving all inputs
|
|
834
845
|
* so that it can be built into bytes.
|
|
835
846
|
*/
|
|
836
|
-
async #prepareBuild(
|
|
847
|
+
async #prepareBuild(
|
|
848
|
+
options: BuildTransactionOptions,
|
|
849
|
+
restrictedMoveCalls: readonly string[] | undefined,
|
|
850
|
+
) {
|
|
837
851
|
if (!options.onlyTransactionKind && !this.#data.sender) {
|
|
838
852
|
throw new Error('Missing transaction sender');
|
|
839
853
|
}
|
|
840
854
|
|
|
841
855
|
await this.#runPlugins([...this.#buildPlugins, resolveTransactionPlugin], options);
|
|
856
|
+
// Build plugins and resolution can add commands after prepareForSerialization checked them.
|
|
857
|
+
assertNoRestrictedMoveCalls(this.#data, restrictedMoveCalls);
|
|
842
858
|
}
|
|
843
859
|
|
|
844
860
|
async #runPlugins(plugins: TransactionPlugin[], options: SerializeTransactionOptions) {
|
|
@@ -974,6 +990,13 @@ export class Transaction {
|
|
|
974
990
|
}
|
|
975
991
|
|
|
976
992
|
async prepareForSerialization(options: SerializeTransactionOptions) {
|
|
993
|
+
await this.#prepareForSerialization(options, restrictedMoveCallsFor(options));
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
async #prepareForSerialization(
|
|
997
|
+
options: SerializeTransactionOptions,
|
|
998
|
+
restrictedMoveCalls: readonly string[] | undefined,
|
|
999
|
+
) {
|
|
977
1000
|
await this.#waitForPendingTasks();
|
|
978
1001
|
this.#sortCommandsAndInputs();
|
|
979
1002
|
const intents = new Set<string>();
|
|
@@ -1005,5 +1028,6 @@ export class Transaction {
|
|
|
1005
1028
|
steps.push(namedPackagesPlugin());
|
|
1006
1029
|
|
|
1007
1030
|
await this.#runPlugins(steps, options);
|
|
1031
|
+
assertNoRestrictedMoveCalls(this.#data, restrictedMoveCalls);
|
|
1008
1032
|
}
|
|
1009
1033
|
}
|
|
@@ -307,6 +307,8 @@ export const ObjectArgSchema = safeEnum({
|
|
|
307
307
|
// snake case in rust
|
|
308
308
|
initialSharedVersion: JsonU64,
|
|
309
309
|
mutable: boolean(),
|
|
310
|
+
// Only set for the non-exclusive write access that system transactions take.
|
|
311
|
+
mutability: optional(literal('NonExclusiveWrite')),
|
|
310
312
|
}),
|
|
311
313
|
Receiving: ObjectRefSchema,
|
|
312
314
|
});
|
|
@@ -197,13 +197,13 @@ export function getGasCoinFromEffects(effects: typeof bcs.TransactionEffects.$in
|
|
|
197
197
|
throw new Error('Gas object not found in effects');
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
const
|
|
200
|
+
const { objectId, outputState } = gasObjectChange;
|
|
201
201
|
|
|
202
202
|
if (!outputState.ObjectWrite) {
|
|
203
203
|
throw new Error('Unexpected gas object state');
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
const
|
|
206
|
+
const { digest, owner } = outputState.ObjectWrite;
|
|
207
207
|
|
|
208
208
|
return {
|
|
209
209
|
ref: {
|