@mysten/sui 2.39.1 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +169 -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 +5 -3
- package/dist/client/index.mjs +6 -3
- 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 +17 -0
- package/dist/client/transaction-data.d.mts.map +1 -0
- package/dist/client/transaction-data.mjs +472 -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 +2 -2
- package/dist/client/utils.d.mts.map +1 -1
- package/dist/client/utils.mjs +91 -30
- 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 +294 -118
- 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.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/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.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 +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 +10 -9
- 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 +2 -0
- 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/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 +247 -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 +4 -5
- 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 -2
- 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 +610 -0
- package/src/client/transaction-resolver.ts +158 -69
- package/src/client/types.ts +530 -115
- package/src/client/utils.ts +146 -61
- 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
package/src/client/utils.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
// Copyright (c) Mysten Labs, Inc.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
|
-
import { toBase64 } from '@mysten/utils';
|
|
4
|
+
import { fromBase64, toBase64 } from '@mysten/utils';
|
|
5
5
|
|
|
6
6
|
import { bcs } from '../bcs/index.js';
|
|
7
7
|
import { ExecutionStatus } from '../bcs/effects.js';
|
|
8
|
-
import { TransactionDataBuilder } from '../transactions/TransactionData.js';
|
|
9
8
|
import { MOCKED_GAS_OBJECT_ID } from '../utils/constants.js';
|
|
10
|
-
import { normalizeSuiAddress } from '../utils/sui-types.js';
|
|
9
|
+
import { isValidSuiAddress, normalizeSuiAddress } from '../utils/sui-types.js';
|
|
11
10
|
import type { SuiClientTypes } from './types.js';
|
|
12
11
|
|
|
13
12
|
const ordinalRules = new Intl.PluralRules('en-US', { type: 'ordinal' });
|
|
@@ -22,6 +21,17 @@ export function formatOrdinal(n: number): string {
|
|
|
22
21
|
return `${n}${ordinalSuffixes.get(ordinalRules.select(n))}`;
|
|
23
22
|
}
|
|
24
23
|
|
|
24
|
+
/**
|
|
25
|
+
* Cancels a stream without awaiting it: a teed body's cancel may never settle, and cleanup must not
|
|
26
|
+
* hide the caller's error.
|
|
27
|
+
*/
|
|
28
|
+
export function cancelQuietly(
|
|
29
|
+
stream: { cancel(reason?: unknown): Promise<void> } | null | undefined,
|
|
30
|
+
reason?: unknown,
|
|
31
|
+
) {
|
|
32
|
+
void stream?.cancel(reason).catch(() => {});
|
|
33
|
+
}
|
|
34
|
+
|
|
25
35
|
export function formatMoveAbortMessage(options: {
|
|
26
36
|
command?: number;
|
|
27
37
|
location?: {
|
|
@@ -112,6 +122,18 @@ function formatErrorMessage($kind: string, data: unknown): string {
|
|
|
112
122
|
return $kind;
|
|
113
123
|
}
|
|
114
124
|
|
|
125
|
+
// BCS names that the gRPC enum renamed; the unified names are gRPC's.
|
|
126
|
+
const GRPC_ERROR_NAMES: Record<string, string> = {
|
|
127
|
+
InvalidBCSBytes: 'InvalidBcsBytes',
|
|
128
|
+
InvalidUsageOfPureArg: 'InvalidUsageOfPureArgument',
|
|
129
|
+
SharedObjectOperationNotAllowed: 'ConsensusObjectOperationNotAllowed',
|
|
130
|
+
PackageIDDoesNotMatch: 'PackageIdDoesNotMatch',
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
function renamed(name: string): string {
|
|
134
|
+
return GRPC_ERROR_NAMES[name] ?? name;
|
|
135
|
+
}
|
|
136
|
+
|
|
115
137
|
function parseBcsExecutionError(failure: {
|
|
116
138
|
error: BcsExecutionFailureStatus;
|
|
117
139
|
command: string | null;
|
|
@@ -121,11 +143,10 @@ function parseBcsExecutionError(failure: {
|
|
|
121
143
|
|
|
122
144
|
switch (error.$kind) {
|
|
123
145
|
case 'MoveAbort': {
|
|
124
|
-
const
|
|
146
|
+
const { location, abortCode } = error.MoveAbort;
|
|
125
147
|
const moveLocation = {
|
|
126
148
|
package: location.module.address,
|
|
127
149
|
module: location.module.name,
|
|
128
|
-
function: location.function,
|
|
129
150
|
functionName: location.functionName ?? undefined,
|
|
130
151
|
instruction: location.instruction,
|
|
131
152
|
};
|
|
@@ -223,7 +244,7 @@ function parseBcsExecutionError(failure: {
|
|
|
223
244
|
command,
|
|
224
245
|
CommandArgumentError: {
|
|
225
246
|
argument: error.CommandArgumentError.argIdx,
|
|
226
|
-
name: error.CommandArgumentError.kind.$kind,
|
|
247
|
+
name: renamed(error.CommandArgumentError.kind.$kind),
|
|
227
248
|
},
|
|
228
249
|
};
|
|
229
250
|
|
|
@@ -245,7 +266,7 @@ function parseBcsExecutionError(failure: {
|
|
|
245
266
|
message: formatErrorMessage('PackageUpgradeError', error.PackageUpgradeError),
|
|
246
267
|
command,
|
|
247
268
|
PackageUpgradeError: {
|
|
248
|
-
name: upgradeError.$kind,
|
|
269
|
+
name: renamed(upgradeError.$kind),
|
|
249
270
|
packageId:
|
|
250
271
|
upgradeError.$kind === 'UnableToFetchPackage'
|
|
251
272
|
? upgradeError.UnableToFetchPackage.packageId
|
|
@@ -268,7 +289,7 @@ function parseBcsExecutionError(failure: {
|
|
|
268
289
|
command,
|
|
269
290
|
CongestedObjects: {
|
|
270
291
|
name: 'ExecutionCanceledDueToConsensusObjectCongestion',
|
|
271
|
-
objects: error.ExecutionCancelledDueToSharedObjectCongestion.
|
|
292
|
+
objects: error.ExecutionCancelledDueToSharedObjectCongestion.congestedObjects,
|
|
272
293
|
},
|
|
273
294
|
};
|
|
274
295
|
|
|
@@ -373,7 +394,7 @@ function parseBcsExecutionError(failure: {
|
|
|
373
394
|
case 'SharedObjectOperationNotAllowed':
|
|
374
395
|
case 'ExecutionCancelledDueToRandomnessUnavailable':
|
|
375
396
|
case 'InvalidLinkage':
|
|
376
|
-
case '
|
|
397
|
+
case 'InsufficientFundsForWithdraw':
|
|
377
398
|
case 'TransactionExpired':
|
|
378
399
|
return {
|
|
379
400
|
$kind: 'Unknown',
|
|
@@ -393,17 +414,6 @@ function parseBcsExecutionError(failure: {
|
|
|
393
414
|
}
|
|
394
415
|
}
|
|
395
416
|
|
|
396
|
-
export function parseTransactionBcs(
|
|
397
|
-
bytes: Uint8Array,
|
|
398
|
-
onlyTransactionKind = false,
|
|
399
|
-
): SuiClientTypes.TransactionData {
|
|
400
|
-
return (
|
|
401
|
-
onlyTransactionKind
|
|
402
|
-
? TransactionDataBuilder.fromKindBytes(bytes)
|
|
403
|
-
: TransactionDataBuilder.fromBytes(bytes)
|
|
404
|
-
).snapshot();
|
|
405
|
-
}
|
|
406
|
-
|
|
407
417
|
/**
|
|
408
418
|
* Checks whether serialized transaction bytes have a gas payment explicitly set to an empty
|
|
409
419
|
* list, which indicates gas is paid from the sender's address balance. Returns false for
|
|
@@ -474,6 +484,20 @@ export function extractStatusFromEffectsBcs(
|
|
|
474
484
|
};
|
|
475
485
|
}
|
|
476
486
|
|
|
487
|
+
/** Map a BCS owner onto the client owner type; party ownership has no client representation. */
|
|
488
|
+
export function mapBcsOwner(owner: typeof bcs.Owner.$inferType): SuiClientTypes.ObjectOwner;
|
|
489
|
+
export function mapBcsOwner(
|
|
490
|
+
owner: typeof bcs.Owner.$inferType | null,
|
|
491
|
+
): SuiClientTypes.ObjectOwner | null;
|
|
492
|
+
export function mapBcsOwner(
|
|
493
|
+
owner: typeof bcs.Owner.$inferType | null,
|
|
494
|
+
): SuiClientTypes.ObjectOwner | null {
|
|
495
|
+
if (owner?.$kind === 'Party') {
|
|
496
|
+
return { $kind: 'Unknown' };
|
|
497
|
+
}
|
|
498
|
+
return owner;
|
|
499
|
+
}
|
|
500
|
+
|
|
477
501
|
export function parseTransactionEffectsBcs(effects: Uint8Array): SuiClientTypes.TransactionEffects {
|
|
478
502
|
const parsed = bcs.TransactionEffects.parse(effects);
|
|
479
503
|
|
|
@@ -496,7 +520,9 @@ function parseTransactionEffectsV1({
|
|
|
496
520
|
bytes: Uint8Array;
|
|
497
521
|
effects: NonNullable<(typeof bcs.TransactionEffects.$inferType)['V1']>;
|
|
498
522
|
}): SuiClientTypes.TransactionEffects {
|
|
499
|
-
const modifiedAtVersions = new Map(
|
|
523
|
+
const modifiedAtVersions = new Map(
|
|
524
|
+
effects.modifiedAtVersions.map(({ objectId, version }) => [objectId, version]),
|
|
525
|
+
);
|
|
500
526
|
const sharedObjects = new Map(effects.sharedObjects.map((object) => [object.objectId, object]));
|
|
501
527
|
const mapChangedObject = (
|
|
502
528
|
reference: (typeof effects.deleted)[number],
|
|
@@ -528,11 +554,11 @@ function parseTransactionEffectsV1({
|
|
|
528
554
|
inputState: 'DoesNotExist' | 'Exists',
|
|
529
555
|
idOperation: 'Created' | 'None',
|
|
530
556
|
): SuiClientTypes.ChangedObject[] =>
|
|
531
|
-
changes.map((
|
|
557
|
+
changes.map(({ reference, owner }) =>
|
|
532
558
|
mapChangedObject(reference, {
|
|
533
559
|
inputState,
|
|
534
560
|
outputState: 'ObjectWrite',
|
|
535
|
-
outputOwner: owner,
|
|
561
|
+
outputOwner: mapBcsOwner(owner),
|
|
536
562
|
idOperation,
|
|
537
563
|
}),
|
|
538
564
|
);
|
|
@@ -559,11 +585,11 @@ function parseTransactionEffectsV1({
|
|
|
559
585
|
...removed(effects.unwrappedThenDeleted, 'DoesNotExist', 'Deleted'),
|
|
560
586
|
...removed(effects.wrapped, 'Exists', 'None'),
|
|
561
587
|
];
|
|
562
|
-
const gasObjectId = effects.gasObject
|
|
588
|
+
const gasObjectId = effects.gasObject.reference.objectId;
|
|
563
589
|
const gasObject = changedObjects.find((object) => object.objectId === gasObjectId) ?? null;
|
|
564
590
|
const changedObjectIds = new Set(changedObjects.map((object) => object.objectId));
|
|
565
591
|
const lamportVersion = effects.modifiedAtVersions.reduce(
|
|
566
|
-
(max,
|
|
592
|
+
(max, { version }) => (BigInt(version) > max ? BigInt(version) : max),
|
|
567
593
|
0n,
|
|
568
594
|
);
|
|
569
595
|
|
|
@@ -600,34 +626,34 @@ function parseTransactionEffectsV2({
|
|
|
600
626
|
bytes: Uint8Array;
|
|
601
627
|
effects: NonNullable<(typeof bcs.TransactionEffects.$inferType)['V2']>;
|
|
602
628
|
}): SuiClientTypes.TransactionEffects {
|
|
603
|
-
const changedObjects = effects.changedObjects.map(
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
outputState:
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
change.outputState
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
change.outputState
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
}
|
|
630
|
-
);
|
|
629
|
+
const changedObjects = effects.changedObjects.map((change): SuiClientTypes.ChangedObject => {
|
|
630
|
+
return {
|
|
631
|
+
objectId: change.objectId,
|
|
632
|
+
inputState: change.inputState.$kind === 'Exist' ? 'Exists' : 'DoesNotExist',
|
|
633
|
+
inputVersion: change.inputState.Exist?.version ?? null,
|
|
634
|
+
inputDigest: change.inputState.Exist?.digest ?? null,
|
|
635
|
+
inputOwner: mapBcsOwner(change.inputState.Exist?.owner ?? null),
|
|
636
|
+
outputState:
|
|
637
|
+
change.outputState.$kind === 'NotExist' ? 'DoesNotExist' : change.outputState.$kind,
|
|
638
|
+
outputVersion:
|
|
639
|
+
change.outputState.$kind === 'PackageWrite'
|
|
640
|
+
? change.outputState.PackageWrite.version
|
|
641
|
+
: change.outputState.$kind === 'ObjectWrite'
|
|
642
|
+
? effects.lamportVersion
|
|
643
|
+
: null,
|
|
644
|
+
outputDigest:
|
|
645
|
+
change.outputState.$kind === 'PackageWrite'
|
|
646
|
+
? change.outputState.PackageWrite.digest
|
|
647
|
+
: change.outputState.$kind === 'ObjectWrite'
|
|
648
|
+
? change.outputState.ObjectWrite.digest
|
|
649
|
+
: null,
|
|
650
|
+
outputOwner:
|
|
651
|
+
change.outputState.$kind === 'ObjectWrite'
|
|
652
|
+
? mapBcsOwner(change.outputState.ObjectWrite.owner)
|
|
653
|
+
: null,
|
|
654
|
+
idOperation: change.idOperation.$kind,
|
|
655
|
+
};
|
|
656
|
+
});
|
|
631
657
|
|
|
632
658
|
return {
|
|
633
659
|
bcs: bytes,
|
|
@@ -651,18 +677,77 @@ function parseTransactionEffectsV2({
|
|
|
651
677
|
lamportVersion: effects.lamportVersion,
|
|
652
678
|
changedObjects,
|
|
653
679
|
unchangedConsensusObjects: effects.unchangedConsensusObjects.map(
|
|
654
|
-
(
|
|
680
|
+
({ objectId, kind }): SuiClientTypes.UnchangedConsensusObject => {
|
|
681
|
+
// Unit variants such as `PerEpochConfig` parse as `true` and carry no version.
|
|
682
|
+
const version =
|
|
683
|
+
kind.$kind === 'ReadOnlyRoot' ? kind.ReadOnlyRoot.version : kind[kind.$kind];
|
|
655
684
|
return {
|
|
656
|
-
kind:
|
|
657
|
-
objectId
|
|
658
|
-
version:
|
|
659
|
-
|
|
660
|
-
? object.ReadOnlyRoot[0]
|
|
661
|
-
: (object[object.$kind] as string | null),
|
|
662
|
-
digest: object.$kind === 'ReadOnlyRoot' ? object.ReadOnlyRoot[1] : null,
|
|
685
|
+
kind: kind.$kind,
|
|
686
|
+
objectId,
|
|
687
|
+
version: typeof version === 'string' ? version : null,
|
|
688
|
+
digest: kind.$kind === 'ReadOnlyRoot' ? kind.ReadOnlyRoot.digest : null,
|
|
663
689
|
};
|
|
664
690
|
},
|
|
665
691
|
),
|
|
666
692
|
auxiliaryDataDigest: effects.auxDataDigest,
|
|
667
693
|
};
|
|
668
694
|
}
|
|
695
|
+
|
|
696
|
+
function isValidUrl(url: string) {
|
|
697
|
+
try {
|
|
698
|
+
new URL(url);
|
|
699
|
+
return true;
|
|
700
|
+
} catch {
|
|
701
|
+
return false;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Rejects a URL that would fail every request as a network error, which streams retry. A path is
|
|
707
|
+
* accepted, so a client can be built during server-side rendering; it fails on its first request
|
|
708
|
+
* where `fetch` cannot resolve it.
|
|
709
|
+
*/
|
|
710
|
+
export function assertClientUrl(url: string, name: string) {
|
|
711
|
+
if (url.startsWith('/')) return;
|
|
712
|
+
if (/^https?:\/\//i.test(url) && isValidUrl(url)) return;
|
|
713
|
+
throw new Error(`${name} must be an absolute http(s) URL or a path starting with "/"`);
|
|
714
|
+
}
|
|
715
|
+
|
|
716
|
+
/** The bytes of a Base64 signature, or `null` when it isn't valid Base64. */
|
|
717
|
+
export function decodeSignature(signature: string): Uint8Array | null {
|
|
718
|
+
try {
|
|
719
|
+
return fromBase64(signature);
|
|
720
|
+
} catch {
|
|
721
|
+
return null;
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
/** The message, intent scope and alias check that `verifySignature` options resolve to. */
|
|
726
|
+
export function resolveVerifySignatureOptions(options: SuiClientTypes.VerifySignatureOptions) {
|
|
727
|
+
const address = normalizeSuiAddress(options.address);
|
|
728
|
+
if (!isValidSuiAddress(address)) {
|
|
729
|
+
throw new Error(`Invalid Sui address: ${options.address}`);
|
|
730
|
+
}
|
|
731
|
+
const checkAddressAliases = options.checkAddressAliases ?? true;
|
|
732
|
+
|
|
733
|
+
if (options.transaction) {
|
|
734
|
+
return {
|
|
735
|
+
intentScope: 'TransactionData' as const,
|
|
736
|
+
message: options.transaction,
|
|
737
|
+
address,
|
|
738
|
+
checkAddressAliases,
|
|
739
|
+
};
|
|
740
|
+
}
|
|
741
|
+
if (options.personalMessage === undefined) {
|
|
742
|
+
throw new Error('Pass the signed `personalMessage` or `transaction` to verify a signature');
|
|
743
|
+
}
|
|
744
|
+
return {
|
|
745
|
+
intentScope: 'PersonalMessage' as const,
|
|
746
|
+
message:
|
|
747
|
+
typeof options.personalMessage === 'string'
|
|
748
|
+
? new TextEncoder().encode(options.personalMessage)
|
|
749
|
+
: options.personalMessage,
|
|
750
|
+
address,
|
|
751
|
+
checkAddressAliases,
|
|
752
|
+
};
|
|
753
|
+
}
|
|
@@ -78,6 +78,10 @@ export abstract class PublicKey {
|
|
|
78
78
|
|
|
79
79
|
/**
|
|
80
80
|
* Verifies that the signature is valid for for the provided PersonalMessage
|
|
81
|
+
*
|
|
82
|
+
* This checks only this key's own signature. It doesn't check address aliases or zkLogin
|
|
83
|
+
* state. To check a signature for an account, use `verifyPersonalMessageSignature` or
|
|
84
|
+
* `verifyTransactionSignature` from `@mysten/sui/verify` with `{ client, address }`.
|
|
81
85
|
*/
|
|
82
86
|
verifyPersonalMessage(message: Uint8Array, signature: Uint8Array | string): Promise<boolean> {
|
|
83
87
|
return this.verifyWithIntent(
|
|
@@ -89,6 +93,10 @@ export abstract class PublicKey {
|
|
|
89
93
|
|
|
90
94
|
/**
|
|
91
95
|
* Verifies that the signature is valid for for the provided Transaction
|
|
96
|
+
*
|
|
97
|
+
* This checks only this key's own signature. It doesn't check address aliases or zkLogin
|
|
98
|
+
* state. To check a signature for an account, use `verifyPersonalMessageSignature` or
|
|
99
|
+
* `verifyTransactionSignature` from `@mysten/sui/verify` with `{ client, address }`.
|
|
92
100
|
*/
|
|
93
101
|
verifyTransaction(transaction: Uint8Array, signature: Uint8Array | string): Promise<boolean> {
|
|
94
102
|
return this.verifyWithIntent(transaction, signature, 'TransactionData');
|
|
@@ -96,9 +104,12 @@ export abstract class PublicKey {
|
|
|
96
104
|
|
|
97
105
|
/**
|
|
98
106
|
* Verifies that the public key is associated with the provided address
|
|
107
|
+
*
|
|
108
|
+
* This only compares the address derived from this key. It doesn't check address aliases, so
|
|
109
|
+
* it isn't an account check: use `@mysten/sui/verify` with `{ client, address }` for that.
|
|
99
110
|
*/
|
|
100
111
|
verifyAddress(address: string): boolean {
|
|
101
|
-
return this.toSuiAddress() === address;
|
|
112
|
+
return this.toSuiAddress() === normalizeSuiAddress(address);
|
|
102
113
|
}
|
|
103
114
|
|
|
104
115
|
/**
|
|
@@ -5,7 +5,7 @@ import { fromBase64, toBase64 } from '@mysten/bcs';
|
|
|
5
5
|
|
|
6
6
|
import { bcs } from '../bcs/index.js';
|
|
7
7
|
import { parseSerializedPasskeySignature } from '../keypairs/passkey/publickey.js';
|
|
8
|
-
import type {
|
|
8
|
+
import type { ParsedMultiSigStruct } from '../multisig/publickey.js';
|
|
9
9
|
import { parseSerializedZkLoginSignature } from '../zklogin/publickey.js';
|
|
10
10
|
import { parseSerializedKeypairSignature } from './publickey.js';
|
|
11
11
|
import type { PublicKey } from './publickey.js';
|
|
@@ -55,8 +55,10 @@ export function parseSerializedSignature(serializedSignature: string) {
|
|
|
55
55
|
switch (signatureScheme) {
|
|
56
56
|
case 'Passkey':
|
|
57
57
|
return parseSerializedPasskeySignature(serializedSignature);
|
|
58
|
-
case 'MultiSig':
|
|
59
|
-
const
|
|
58
|
+
case 'MultiSig': {
|
|
59
|
+
const parsed = bcs.MultiSig.parse(bytes.slice(1));
|
|
60
|
+
const multisigPk = { ...parsed.multisigPk, pk_map: parsed.multisigPk.pkMap };
|
|
61
|
+
const multisig: ParsedMultiSigStruct = { ...parsed, multisigPk, multisig_pk: multisigPk };
|
|
60
62
|
return {
|
|
61
63
|
serializedSignature,
|
|
62
64
|
signatureScheme,
|
|
@@ -64,6 +66,7 @@ export function parseSerializedSignature(serializedSignature: string) {
|
|
|
64
66
|
bytes,
|
|
65
67
|
signature: undefined,
|
|
66
68
|
};
|
|
69
|
+
}
|
|
67
70
|
case 'ZkLogin':
|
|
68
71
|
return parseSerializedZkLoginSignature(serializedSignature);
|
|
69
72
|
case 'ED25519':
|