wowok 2.1.40 → 2.1.41
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/dist/cjs/bcs/bcs.js +1 -253
- package/dist/cjs/bcs/effects.js +1 -199
- package/dist/cjs/bcs/index.js +1 -51
- package/dist/cjs/bcs/pure.js +1 -36
- package/dist/cjs/bcs/type-tag-serializer.js +1 -104
- package/dist/cjs/bcs/types.js +1 -3
- package/dist/cjs/client/index.js +1 -4
- package/dist/cjs/client/network.js +1 -15
- package/dist/cjs/cryptography/index.js +1 -6
- package/dist/cjs/cryptography/intent.js +1 -14
- package/dist/cjs/cryptography/keypair.js +1 -74
- package/dist/cjs/cryptography/mnemonics.js +1 -20
- package/dist/cjs/cryptography/publickey.js +1 -80
- package/dist/cjs/cryptography/signature-scheme.js +1 -22
- package/dist/cjs/cryptography/signature.js +1 -41
- package/dist/cjs/experimental/cache.js +1 -58
- package/dist/cjs/experimental/client.js +1 -19
- package/dist/cjs/experimental/core.js +1 -80
- package/dist/cjs/experimental/errors.js +1 -24
- package/dist/cjs/experimental/index.js +1 -5
- package/dist/cjs/experimental/persistent-storage.js +1 -220
- package/dist/cjs/experimental/persistent-storage.test.js +1 -144
- package/dist/cjs/experimental/transports/utils.js +1 -96
- package/dist/cjs/experimental/types.js +1 -1
- package/dist/cjs/faucet/faucet.js +1 -99
- package/dist/cjs/faucet/index.js +1 -1
- package/dist/cjs/grpc/client.js +1 -42
- package/dist/cjs/grpc/core.js +1 -587
- package/dist/cjs/grpc/index.js +1 -2
- package/dist/cjs/grpc/proto/google/protobuf/any.js +1 -106
- package/dist/cjs/grpc/proto/google/protobuf/duration.js +1 -58
- package/dist/cjs/grpc/proto/google/protobuf/empty.js +1 -7
- package/dist/cjs/grpc/proto/google/protobuf/field_mask.js +1 -47
- package/dist/cjs/grpc/proto/google/protobuf/struct.js +1 -191
- package/dist/cjs/grpc/proto/google/protobuf/timestamp.js +1 -91
- package/dist/cjs/grpc/proto/google/rpc/error_details.js +1 -265
- package/dist/cjs/grpc/proto/google/rpc/status.js +1 -23
- package/dist/cjs/grpc/proto/sui/rpc/v2/argument.js +1 -46
- package/dist/cjs/grpc/proto/sui/rpc/v2/balance_change.js +1 -29
- package/dist/cjs/grpc/proto/sui/rpc/v2/bcs.js +1 -22
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.js +1 -54
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.js +1 -60
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.js +1 -144
- package/dist/cjs/grpc/proto/sui/rpc/v2/effects.js +1 -271
- package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.js +1 -64
- package/dist/cjs/grpc/proto/sui/rpc/v2/error_reason.js +1 -6
- package/dist/cjs/grpc/proto/sui/rpc/v2/event.js +1 -62
- package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.js +1 -64
- package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.js +1 -481
- package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.js +1 -40
- package/dist/cjs/grpc/proto/sui/rpc/v2/input.js +1 -61
- package/dist/cjs/grpc/proto/sui/rpc/v2/jwk.js +1 -57
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.js +1 -39
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.js +1 -329
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.js +1 -447
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.js +1 -27
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.js +1 -206
- package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.client.js +1 -19
- package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.js +1 -109
- package/dist/cjs/grpc/proto/sui/rpc/v2/object.js +1 -90
- package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.js +1 -30
- package/dist/cjs/grpc/proto/sui/rpc/v2/owner.js +1 -39
- package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.js +1 -30
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature.js +1 -501
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_scheme.js +1 -10
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +1 -15
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.js +1 -62
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.js +1 -31
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.js +1 -504
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.js +1 -15
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.js +1 -37
- package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.js +1 -709
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.js +1 -950
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +1 -19
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.js +1 -144
- package/dist/cjs/index.js +1 -22
- package/dist/cjs/jsonRpc/client.js +1 -516
- package/dist/cjs/jsonRpc/core.js +1 -587
- package/dist/cjs/jsonRpc/errors.js +1 -38
- package/dist/cjs/jsonRpc/http-transport.js +1 -70
- package/dist/cjs/jsonRpc/index.js +1 -3
- package/dist/cjs/jsonRpc/json-rpc-resolver.js +1 -296
- package/dist/cjs/jsonRpc/rpc-websocket-client.js +1 -155
- package/dist/cjs/jsonRpc/types/chain.js +1 -1
- package/dist/cjs/jsonRpc/types/changes.js +1 -1
- package/dist/cjs/jsonRpc/types/coins.js +1 -1
- package/dist/cjs/jsonRpc/types/common.js +1 -1
- package/dist/cjs/jsonRpc/types/generated.js +1 -1
- package/dist/cjs/jsonRpc/types/index.js +1 -1
- package/dist/cjs/jsonRpc/types/params.js +1 -1
- package/dist/cjs/keypairs/ed25519/ed25519-hd-key.js +1 -58
- package/dist/cjs/keypairs/ed25519/index.js +1 -2
- package/dist/cjs/keypairs/ed25519/keypair.js +1 -90
- package/dist/cjs/keypairs/ed25519/publickey.js +1 -50
- package/dist/cjs/keypairs/index.js +1 -4
- package/dist/cjs/keypairs/passkey/index.js +1 -2
- package/dist/cjs/keypairs/passkey/keypair.js +1 -155
- package/dist/cjs/keypairs/passkey/publickey.js +1 -117
- package/dist/cjs/keypairs/passkey/types.js +1 -1
- package/dist/cjs/keypairs/secp256k1/index.js +1 -2
- package/dist/cjs/keypairs/secp256k1/keypair.js +1 -82
- package/dist/cjs/keypairs/secp256k1/publickey.js +1 -51
- package/dist/cjs/keypairs/secp256r1/index.js +1 -2
- package/dist/cjs/keypairs/secp256r1/keypair.js +1 -78
- package/dist/cjs/keypairs/secp256r1/publickey.js +1 -52
- package/dist/cjs/multisig/index.js +1 -2
- package/dist/cjs/multisig/publickey.js +1 -201
- package/dist/cjs/multisig/signer.js +1 -58
- package/dist/cjs/transactions/Arguments.js +1 -9
- package/dist/cjs/transactions/Commands.js +1 -102
- package/dist/cjs/transactions/Inputs.js +1 -52
- package/dist/cjs/transactions/ObjectCache.js +1 -205
- package/dist/cjs/transactions/Transaction.js +1 -574
- package/dist/cjs/transactions/TransactionData.js +1 -409
- package/dist/cjs/transactions/__tests__/Transaction.test.js +1 -160
- package/dist/cjs/transactions/__tests__/bcs.test.js +1 -182
- package/dist/cjs/transactions/data/internal.js +1 -169
- package/dist/cjs/transactions/data/v1.js +1 -469
- package/dist/cjs/transactions/data/v2.js +1 -97
- package/dist/cjs/transactions/executor/caching.js +1 -65
- package/dist/cjs/transactions/executor/parallel.js +1 -347
- package/dist/cjs/transactions/executor/queue.js +1 -59
- package/dist/cjs/transactions/executor/serial.js +1 -99
- package/dist/cjs/transactions/hash.js +1 -8
- package/dist/cjs/transactions/index.js +1 -12
- package/dist/cjs/transactions/intents/CoinWithBalance.js +1 -145
- package/dist/cjs/transactions/object.js +1 -87
- package/dist/cjs/transactions/plugins/NamedPackagesPlugin.js +1 -11
- package/dist/cjs/transactions/pure.js +1 -36
- package/dist/cjs/transactions/resolve.js +1 -69
- package/dist/cjs/transactions/serializer.js +1 -167
- package/dist/cjs/transactions/utils.js +1 -121
- package/dist/cjs/utils/constants.js +1 -18
- package/dist/cjs/utils/derived-objects.js +1 -8
- package/dist/cjs/utils/dynamic-fields.js +1 -17
- package/dist/cjs/utils/format.js +1 -11
- package/dist/cjs/utils/index.js +1 -8
- package/dist/cjs/utils/move-registry.js +1 -24
- package/dist/cjs/utils/sui-types.js +1 -66
- package/dist/cjs/utils/suins.js +1 -33
- package/dist/cjs/verify/index.js +1 -1
- package/dist/cjs/verify/verify.js +1 -87
- package/dist/cjs/version.js +1 -2
- package/dist/cjs/w/call/allocation.js +1 -345
- package/dist/cjs/w/call/arb.js +1 -103
- package/dist/cjs/w/call/arbitration.js +1 -1192
- package/dist/cjs/w/call/base.js +1 -293
- package/dist/cjs/w/call/contact.js +1 -345
- package/dist/cjs/w/call/demand.js +1 -681
- package/dist/cjs/w/call/entity.js +1 -173
- package/dist/cjs/w/call/guard-ins.js +1 -4449
- package/dist/cjs/w/call/guard.d.ts +111 -0
- package/dist/cjs/w/call/guard.js +1 -1048
- package/dist/cjs/w/call/index.js +1 -22
- package/dist/cjs/w/call/machine.js +1 -1127
- package/dist/cjs/w/call/order.js +1 -337
- package/dist/cjs/w/call/passport.js +1 -220
- package/dist/cjs/w/call/payment.js +1 -178
- package/dist/cjs/w/call/permission.js +1 -1162
- package/dist/cjs/w/call/personal.js +1 -139
- package/dist/cjs/w/call/progress.js +1 -678
- package/dist/cjs/w/call/proof.js +1 -66
- package/dist/cjs/w/call/repository.js +1 -1024
- package/dist/cjs/w/call/resource.js +1 -108
- package/dist/cjs/w/call/reward.js +1 -675
- package/dist/cjs/w/call/service.js +1 -1960
- package/dist/cjs/w/call/treasury.js +1 -873
- package/dist/cjs/w/call/util.d.ts +1 -0
- package/dist/cjs/w/call/util.js +1 -566
- package/dist/cjs/w/common.js +1 -571
- package/dist/cjs/w/exception.js +1 -618
- package/dist/cjs/w/index.js +1 -8
- package/dist/cjs/w/local/account.js +1 -656
- package/dist/cjs/w/local/cache.js +1 -161
- package/dist/cjs/w/local/config.js +1 -43
- package/dist/cjs/w/local/index.js +1 -228
- package/dist/cjs/w/local/local.js +1 -574
- package/dist/cjs/w/local/storage.js +1 -185
- package/dist/cjs/w/local/token.js +1 -131
- package/dist/cjs/w/local/util.js +1 -26
- package/dist/cjs/w/local/wip.js +1 -864
- package/dist/cjs/w/messenger/crypto.js +1 -380
- package/dist/cjs/w/messenger/index.js +1 -4
- package/dist/cjs/w/messenger/messenger-api.js +1 -1154
- package/dist/cjs/w/messenger/messenger-manager.js +1 -1003
- package/dist/cjs/w/messenger/messenger.js +1 -1093
- package/dist/cjs/w/messenger/server.js +1 -343
- package/dist/cjs/w/messenger/session.js +1 -628
- package/dist/cjs/w/messenger/storage.js +1 -1023
- package/dist/cjs/w/messenger/templates/wts-html-template.js +1 -371
- package/dist/cjs/w/messenger/types.js +1 -76
- package/dist/cjs/w/messenger/utils.js +1 -12
- package/dist/cjs/w/query/bult-in.js +1 -95
- package/dist/cjs/w/query/event.js +1 -137
- package/dist/cjs/w/query/index.js +1 -5
- package/dist/cjs/w/query/object.js +1 -1550
- package/dist/cjs/w/query/received.js +1 -62
- package/dist/cjs/w/query/util.js +1 -49
- package/dist/cjs/w/util.js +1 -587
- package/dist/esm/bcs/bcs.js +1 -253
- package/dist/esm/bcs/effects.js +1 -199
- package/dist/esm/bcs/index.js +1 -51
- package/dist/esm/bcs/pure.js +1 -36
- package/dist/esm/bcs/type-tag-serializer.js +1 -104
- package/dist/esm/bcs/types.js +1 -3
- package/dist/esm/client/index.js +1 -4
- package/dist/esm/client/network.js +1 -15
- package/dist/esm/cryptography/index.js +1 -6
- package/dist/esm/cryptography/intent.js +1 -14
- package/dist/esm/cryptography/keypair.js +1 -74
- package/dist/esm/cryptography/mnemonics.js +1 -20
- package/dist/esm/cryptography/publickey.js +1 -80
- package/dist/esm/cryptography/signature-scheme.js +1 -22
- package/dist/esm/cryptography/signature.js +1 -41
- package/dist/esm/experimental/cache.js +1 -58
- package/dist/esm/experimental/client.js +1 -19
- package/dist/esm/experimental/core.js +1 -80
- package/dist/esm/experimental/errors.js +1 -24
- package/dist/esm/experimental/index.js +1 -5
- package/dist/esm/experimental/persistent-storage.js +1 -220
- package/dist/esm/experimental/persistent-storage.test.js +1 -144
- package/dist/esm/experimental/transports/utils.js +1 -96
- package/dist/esm/experimental/types.js +1 -1
- package/dist/esm/faucet/faucet.js +1 -99
- package/dist/esm/faucet/index.js +1 -1
- package/dist/esm/grpc/client.js +1 -42
- package/dist/esm/grpc/core.js +1 -587
- package/dist/esm/grpc/index.js +1 -2
- package/dist/esm/grpc/proto/google/protobuf/any.js +1 -106
- package/dist/esm/grpc/proto/google/protobuf/duration.js +1 -58
- package/dist/esm/grpc/proto/google/protobuf/empty.js +1 -7
- package/dist/esm/grpc/proto/google/protobuf/field_mask.js +1 -47
- package/dist/esm/grpc/proto/google/protobuf/struct.js +1 -191
- package/dist/esm/grpc/proto/google/protobuf/timestamp.js +1 -91
- package/dist/esm/grpc/proto/google/rpc/error_details.js +1 -265
- package/dist/esm/grpc/proto/google/rpc/status.js +1 -23
- package/dist/esm/grpc/proto/sui/rpc/v2/argument.js +1 -46
- package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.js +1 -29
- package/dist/esm/grpc/proto/sui/rpc/v2/bcs.js +1 -22
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.js +1 -54
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.js +1 -60
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.js +1 -144
- package/dist/esm/grpc/proto/sui/rpc/v2/effects.js +1 -271
- package/dist/esm/grpc/proto/sui/rpc/v2/epoch.js +1 -64
- package/dist/esm/grpc/proto/sui/rpc/v2/error_reason.js +1 -6
- package/dist/esm/grpc/proto/sui/rpc/v2/event.js +1 -62
- package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.js +1 -64
- package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.js +1 -481
- package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.js +1 -40
- package/dist/esm/grpc/proto/sui/rpc/v2/input.js +1 -61
- package/dist/esm/grpc/proto/sui/rpc/v2/jwk.js +1 -57
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.js +1 -39
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.js +1 -329
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package.js +1 -447
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.js +1 -27
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.js +1 -206
- package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.js +1 -19
- package/dist/esm/grpc/proto/sui/rpc/v2/name_service.js +1 -109
- package/dist/esm/grpc/proto/sui/rpc/v2/object.js +1 -90
- package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.js +1 -30
- package/dist/esm/grpc/proto/sui/rpc/v2/owner.js +1 -39
- package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.js +1 -30
- package/dist/esm/grpc/proto/sui/rpc/v2/signature.js +1 -501
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_scheme.js +1 -10
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +1 -15
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.js +1 -62
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.js +1 -31
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.js +1 -504
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.js +1 -15
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.js +1 -37
- package/dist/esm/grpc/proto/sui/rpc/v2/system_state.js +1 -709
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction.js +1 -950
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +1 -19
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.js +1 -144
- package/dist/esm/index.js +1 -22
- package/dist/esm/jsonRpc/client.js +1 -516
- package/dist/esm/jsonRpc/core.js +1 -587
- package/dist/esm/jsonRpc/errors.js +1 -38
- package/dist/esm/jsonRpc/http-transport.js +1 -70
- package/dist/esm/jsonRpc/index.js +1 -3
- package/dist/esm/jsonRpc/json-rpc-resolver.js +1 -296
- package/dist/esm/jsonRpc/rpc-websocket-client.js +1 -155
- package/dist/esm/jsonRpc/types/chain.js +1 -1
- package/dist/esm/jsonRpc/types/changes.js +1 -1
- package/dist/esm/jsonRpc/types/coins.js +1 -1
- package/dist/esm/jsonRpc/types/common.js +1 -1
- package/dist/esm/jsonRpc/types/generated.js +1 -1
- package/dist/esm/jsonRpc/types/index.js +1 -1
- package/dist/esm/jsonRpc/types/params.js +1 -1
- package/dist/esm/keypairs/ed25519/ed25519-hd-key.js +1 -58
- package/dist/esm/keypairs/ed25519/index.js +1 -2
- package/dist/esm/keypairs/ed25519/keypair.js +1 -90
- package/dist/esm/keypairs/ed25519/publickey.js +1 -50
- package/dist/esm/keypairs/index.js +1 -4
- package/dist/esm/keypairs/passkey/index.js +1 -2
- package/dist/esm/keypairs/passkey/keypair.js +1 -155
- package/dist/esm/keypairs/passkey/publickey.js +1 -117
- package/dist/esm/keypairs/passkey/types.js +1 -1
- package/dist/esm/keypairs/secp256k1/index.js +1 -2
- package/dist/esm/keypairs/secp256k1/keypair.js +1 -82
- package/dist/esm/keypairs/secp256k1/publickey.js +1 -51
- package/dist/esm/keypairs/secp256r1/index.js +1 -2
- package/dist/esm/keypairs/secp256r1/keypair.js +1 -78
- package/dist/esm/keypairs/secp256r1/publickey.js +1 -52
- package/dist/esm/multisig/index.js +1 -2
- package/dist/esm/multisig/publickey.js +1 -201
- package/dist/esm/multisig/signer.js +1 -58
- package/dist/esm/transactions/Arguments.js +1 -9
- package/dist/esm/transactions/Commands.js +1 -102
- package/dist/esm/transactions/Inputs.js +1 -52
- package/dist/esm/transactions/ObjectCache.js +1 -205
- package/dist/esm/transactions/Transaction.js +1 -574
- package/dist/esm/transactions/TransactionData.js +1 -409
- package/dist/esm/transactions/__tests__/Transaction.test.js +1 -160
- package/dist/esm/transactions/__tests__/bcs.test.js +1 -182
- package/dist/esm/transactions/data/internal.js +1 -169
- package/dist/esm/transactions/data/v1.js +1 -469
- package/dist/esm/transactions/data/v2.js +1 -97
- package/dist/esm/transactions/executor/caching.js +1 -65
- package/dist/esm/transactions/executor/parallel.js +1 -347
- package/dist/esm/transactions/executor/queue.js +1 -59
- package/dist/esm/transactions/executor/serial.js +1 -99
- package/dist/esm/transactions/hash.js +1 -8
- package/dist/esm/transactions/index.js +1 -12
- package/dist/esm/transactions/intents/CoinWithBalance.js +1 -145
- package/dist/esm/transactions/object.js +1 -87
- package/dist/esm/transactions/plugins/NamedPackagesPlugin.js +1 -11
- package/dist/esm/transactions/pure.js +1 -36
- package/dist/esm/transactions/resolve.js +1 -69
- package/dist/esm/transactions/serializer.js +1 -167
- package/dist/esm/transactions/utils.js +1 -121
- package/dist/esm/utils/constants.js +1 -18
- package/dist/esm/utils/derived-objects.js +1 -8
- package/dist/esm/utils/dynamic-fields.js +1 -17
- package/dist/esm/utils/format.js +1 -11
- package/dist/esm/utils/index.js +1 -8
- package/dist/esm/utils/move-registry.js +1 -24
- package/dist/esm/utils/sui-types.js +1 -66
- package/dist/esm/utils/suins.js +1 -33
- package/dist/esm/verify/index.js +1 -1
- package/dist/esm/verify/verify.js +1 -87
- package/dist/esm/version.js +1 -2
- package/dist/esm/w/call/allocation.js +1 -345
- package/dist/esm/w/call/arb.js +1 -103
- package/dist/esm/w/call/arbitration.js +1 -1192
- package/dist/esm/w/call/base.js +1 -293
- package/dist/esm/w/call/contact.js +1 -345
- package/dist/esm/w/call/demand.js +1 -681
- package/dist/esm/w/call/entity.js +1 -173
- package/dist/esm/w/call/guard-ins.js +1 -4449
- package/dist/esm/w/call/guard.d.ts +111 -0
- package/dist/esm/w/call/guard.js +1 -1048
- package/dist/esm/w/call/index.js +1 -22
- package/dist/esm/w/call/machine.js +1 -1127
- package/dist/esm/w/call/order.js +1 -337
- package/dist/esm/w/call/passport.js +1 -220
- package/dist/esm/w/call/payment.js +1 -178
- package/dist/esm/w/call/permission.js +1 -1162
- package/dist/esm/w/call/personal.js +1 -139
- package/dist/esm/w/call/progress.js +1 -678
- package/dist/esm/w/call/proof.js +1 -66
- package/dist/esm/w/call/repository.js +1 -1024
- package/dist/esm/w/call/resource.js +1 -108
- package/dist/esm/w/call/reward.js +1 -675
- package/dist/esm/w/call/service.js +1 -1960
- package/dist/esm/w/call/treasury.js +1 -873
- package/dist/esm/w/call/util.d.ts +1 -0
- package/dist/esm/w/call/util.js +1 -566
- package/dist/esm/w/common.js +1 -571
- package/dist/esm/w/exception.js +1 -618
- package/dist/esm/w/index.js +1 -8
- package/dist/esm/w/local/account.js +1 -656
- package/dist/esm/w/local/cache.js +1 -161
- package/dist/esm/w/local/config.js +1 -43
- package/dist/esm/w/local/index.js +1 -228
- package/dist/esm/w/local/local.js +1 -574
- package/dist/esm/w/local/storage.js +1 -185
- package/dist/esm/w/local/token.js +1 -131
- package/dist/esm/w/local/util.js +1 -26
- package/dist/esm/w/local/wip.js +1 -864
- package/dist/esm/w/messenger/crypto.js +1 -380
- package/dist/esm/w/messenger/index.js +1 -4
- package/dist/esm/w/messenger/messenger-api.js +1 -1154
- package/dist/esm/w/messenger/messenger-manager.js +1 -1003
- package/dist/esm/w/messenger/messenger.js +1 -1093
- package/dist/esm/w/messenger/server.js +1 -343
- package/dist/esm/w/messenger/session.js +1 -628
- package/dist/esm/w/messenger/storage.js +1 -1023
- package/dist/esm/w/messenger/templates/wts-html-template.js +1 -371
- package/dist/esm/w/messenger/types.js +1 -76
- package/dist/esm/w/messenger/utils.js +1 -12
- package/dist/esm/w/query/bult-in.js +1 -95
- package/dist/esm/w/query/event.js +1 -137
- package/dist/esm/w/query/index.js +1 -5
- package/dist/esm/w/query/object.js +1 -1550
- package/dist/esm/w/query/received.js +1 -62
- package/dist/esm/w/query/util.js +1 -49
- package/dist/esm/w/util.js +1 -587
- package/package.json +5 -2
|
@@ -1,57 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
class JwkId$Type extends MessageType {
|
|
3
|
-
constructor() {
|
|
4
|
-
super("sui.rpc.v2.JwkId", [
|
|
5
|
-
{
|
|
6
|
-
no: 1,
|
|
7
|
-
name: "iss",
|
|
8
|
-
kind: "scalar",
|
|
9
|
-
opt: true,
|
|
10
|
-
T: 9,
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
no: 2,
|
|
14
|
-
name: "kid",
|
|
15
|
-
kind: "scalar",
|
|
16
|
-
opt: true,
|
|
17
|
-
T: 9,
|
|
18
|
-
},
|
|
19
|
-
]);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export const JwkId = new JwkId$Type();
|
|
23
|
-
class Jwk$Type extends MessageType {
|
|
24
|
-
constructor() {
|
|
25
|
-
super("sui.rpc.v2.Jwk", [
|
|
26
|
-
{
|
|
27
|
-
no: 1,
|
|
28
|
-
name: "kty",
|
|
29
|
-
kind: "scalar",
|
|
30
|
-
opt: true,
|
|
31
|
-
T: 9,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
no: 2,
|
|
35
|
-
name: "e",
|
|
36
|
-
kind: "scalar",
|
|
37
|
-
opt: true,
|
|
38
|
-
T: 9,
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
no: 3,
|
|
42
|
-
name: "n",
|
|
43
|
-
kind: "scalar",
|
|
44
|
-
opt: true,
|
|
45
|
-
T: 9,
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
no: 4,
|
|
49
|
-
name: "alg",
|
|
50
|
-
kind: "scalar",
|
|
51
|
-
opt: true,
|
|
52
|
-
T: 9,
|
|
53
|
-
},
|
|
54
|
-
]);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
export const Jwk = new Jwk$Type();
|
|
1
|
+
import{MessageType}from'@protobuf-ts/runtime';class JwkId$Type extends MessageType{constructor(){super('sui.rpc.v2.JwkId',[{'no':0x1,'name':'iss','kind':'scalar','opt':!![],'T':0x9},{'no':0x2,'name':'kid','kind':'scalar','opt':!![],'T':0x9}]);}}export const JwkId=new JwkId$Type();class Jwk$Type extends MessageType{constructor(){super('sui.rpc.v2.Jwk',[{'no':0x1,'name':'kty','kind':'scalar','opt':!![],'T':0x9},{'no':0x2,'name':'e','kind':'scalar','opt':!![],'T':0x9},{'no':0x3,'name':'n','kind':'scalar','opt':!![],'T':0x9},{'no':0x4,'name':'alg','kind':'scalar','opt':!![],'T':0x9}]);}}export const Jwk=new Jwk$Type();
|
|
@@ -1,39 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
-
export class LedgerServiceClient {
|
|
4
|
-
_transport;
|
|
5
|
-
typeName = LedgerService.typeName;
|
|
6
|
-
methods = LedgerService.methods;
|
|
7
|
-
options = LedgerService.options;
|
|
8
|
-
constructor(_transport) {
|
|
9
|
-
this._transport = _transport;
|
|
10
|
-
}
|
|
11
|
-
getServiceInfo(input, options) {
|
|
12
|
-
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
13
|
-
return stackIntercept("unary", this._transport, method, opt, input);
|
|
14
|
-
}
|
|
15
|
-
getObject(input, options) {
|
|
16
|
-
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
17
|
-
return stackIntercept("unary", this._transport, method, opt, input);
|
|
18
|
-
}
|
|
19
|
-
batchGetObjects(input, options) {
|
|
20
|
-
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
21
|
-
return stackIntercept("unary", this._transport, method, opt, input);
|
|
22
|
-
}
|
|
23
|
-
getTransaction(input, options) {
|
|
24
|
-
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
25
|
-
return stackIntercept("unary", this._transport, method, opt, input);
|
|
26
|
-
}
|
|
27
|
-
batchGetTransactions(input, options) {
|
|
28
|
-
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
29
|
-
return stackIntercept("unary", this._transport, method, opt, input);
|
|
30
|
-
}
|
|
31
|
-
getCheckpoint(input, options) {
|
|
32
|
-
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
33
|
-
return stackIntercept("unary", this._transport, method, opt, input);
|
|
34
|
-
}
|
|
35
|
-
getEpoch(input, options) {
|
|
36
|
-
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
37
|
-
return stackIntercept("unary", this._transport, method, opt, input);
|
|
38
|
-
}
|
|
39
|
-
}
|
|
1
|
+
import{LedgerService}from'./ledger_service.js';import{stackIntercept}from'@protobuf-ts/runtime-rpc';export class LedgerServiceClient{['_transport'];['typeName']=LedgerService['typeName'];['methods']=LedgerService['methods'];['options']=LedgerService['options'];constructor(a){this['_transport']=a;}['getServiceInfo'](a,b){const c=this['methods'][0x0],d=this['_transport']['mergeOptions'](b);return stackIntercept('unary',this['_transport'],c,d,a);}['getObject'](a,b){const c=this['methods'][0x1],d=this['_transport']['mergeOptions'](b);return stackIntercept('unary',this['_transport'],c,d,a);}['batchGetObjects'](a,b){const c=this['methods'][0x2],d=this['_transport']['mergeOptions'](b);return stackIntercept('unary',this['_transport'],c,d,a);}['getTransaction'](a,b){const c=this['methods'][0x3],d=this['_transport']['mergeOptions'](b);return stackIntercept('unary',this['_transport'],c,d,a);}['batchGetTransactions'](a,b){const c=this['methods'][0x4],d=this['_transport']['mergeOptions'](b);return stackIntercept('unary',this['_transport'],c,d,a);}['getCheckpoint'](a,b){const c=this['methods'][0x5],d=this['_transport']['mergeOptions'](b);return stackIntercept('unary',this['_transport'],c,d,a);}['getEpoch'](a,b){const c=this['methods'][0x6],d=this['_transport']['mergeOptions'](b);return stackIntercept('unary',this['_transport'],c,d,a);}}
|
|
@@ -1,329 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { MessageType } from "@protobuf-ts/runtime";
|
|
3
|
-
import { Epoch } from "./epoch.js";
|
|
4
|
-
import { Checkpoint } from "./checkpoint.js";
|
|
5
|
-
import { ExecutedTransaction } from "./executed_transaction.js";
|
|
6
|
-
import { Status } from "../../../google/rpc/status.js";
|
|
7
|
-
import { Object } from "./object.js";
|
|
8
|
-
import { FieldMask } from "../../../google/protobuf/field_mask.js";
|
|
9
|
-
import { Timestamp } from "../../../google/protobuf/timestamp.js";
|
|
10
|
-
class GetServiceInfoRequest$Type extends MessageType {
|
|
11
|
-
constructor() {
|
|
12
|
-
super("sui.rpc.v2.GetServiceInfoRequest", []);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
export const GetServiceInfoRequest = new GetServiceInfoRequest$Type();
|
|
16
|
-
class GetServiceInfoResponse$Type extends MessageType {
|
|
17
|
-
constructor() {
|
|
18
|
-
super("sui.rpc.v2.GetServiceInfoResponse", [
|
|
19
|
-
{
|
|
20
|
-
no: 1,
|
|
21
|
-
name: "chain_id",
|
|
22
|
-
kind: "scalar",
|
|
23
|
-
opt: true,
|
|
24
|
-
T: 9,
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
no: 2,
|
|
28
|
-
name: "chain",
|
|
29
|
-
kind: "scalar",
|
|
30
|
-
opt: true,
|
|
31
|
-
T: 9,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
no: 3,
|
|
35
|
-
name: "epoch",
|
|
36
|
-
kind: "scalar",
|
|
37
|
-
opt: true,
|
|
38
|
-
T: 4,
|
|
39
|
-
L: 0,
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
no: 4,
|
|
43
|
-
name: "checkpoint_height",
|
|
44
|
-
kind: "scalar",
|
|
45
|
-
opt: true,
|
|
46
|
-
T: 4,
|
|
47
|
-
L: 0,
|
|
48
|
-
},
|
|
49
|
-
{ no: 5, name: "timestamp", kind: "message", T: () => Timestamp },
|
|
50
|
-
{
|
|
51
|
-
no: 6,
|
|
52
|
-
name: "lowest_available_checkpoint",
|
|
53
|
-
kind: "scalar",
|
|
54
|
-
opt: true,
|
|
55
|
-
T: 4,
|
|
56
|
-
L: 0,
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
no: 7,
|
|
60
|
-
name: "lowest_available_checkpoint_objects",
|
|
61
|
-
kind: "scalar",
|
|
62
|
-
opt: true,
|
|
63
|
-
T: 4,
|
|
64
|
-
L: 0,
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
no: 8,
|
|
68
|
-
name: "server",
|
|
69
|
-
kind: "scalar",
|
|
70
|
-
opt: true,
|
|
71
|
-
T: 9,
|
|
72
|
-
},
|
|
73
|
-
]);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
export const GetServiceInfoResponse = new GetServiceInfoResponse$Type();
|
|
77
|
-
class GetObjectRequest$Type extends MessageType {
|
|
78
|
-
constructor() {
|
|
79
|
-
super("sui.rpc.v2.GetObjectRequest", [
|
|
80
|
-
{
|
|
81
|
-
no: 1,
|
|
82
|
-
name: "object_id",
|
|
83
|
-
kind: "scalar",
|
|
84
|
-
opt: true,
|
|
85
|
-
T: 9,
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
no: 2,
|
|
89
|
-
name: "version",
|
|
90
|
-
kind: "scalar",
|
|
91
|
-
opt: true,
|
|
92
|
-
T: 4,
|
|
93
|
-
L: 0,
|
|
94
|
-
},
|
|
95
|
-
{ no: 3, name: "read_mask", kind: "message", T: () => FieldMask },
|
|
96
|
-
]);
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
export const GetObjectRequest = new GetObjectRequest$Type();
|
|
100
|
-
class GetObjectResponse$Type extends MessageType {
|
|
101
|
-
constructor() {
|
|
102
|
-
super("sui.rpc.v2.GetObjectResponse", [
|
|
103
|
-
{ no: 1, name: "object", kind: "message", T: () => Object },
|
|
104
|
-
]);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
export const GetObjectResponse = new GetObjectResponse$Type();
|
|
108
|
-
class BatchGetObjectsRequest$Type extends MessageType {
|
|
109
|
-
constructor() {
|
|
110
|
-
super("sui.rpc.v2.BatchGetObjectsRequest", [
|
|
111
|
-
{
|
|
112
|
-
no: 1,
|
|
113
|
-
name: "requests",
|
|
114
|
-
kind: "message",
|
|
115
|
-
repeat: 1,
|
|
116
|
-
T: () => GetObjectRequest,
|
|
117
|
-
},
|
|
118
|
-
{ no: 2, name: "read_mask", kind: "message", T: () => FieldMask },
|
|
119
|
-
]);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
export const BatchGetObjectsRequest = new BatchGetObjectsRequest$Type();
|
|
123
|
-
class BatchGetObjectsResponse$Type extends MessageType {
|
|
124
|
-
constructor() {
|
|
125
|
-
super("sui.rpc.v2.BatchGetObjectsResponse", [
|
|
126
|
-
{
|
|
127
|
-
no: 1,
|
|
128
|
-
name: "objects",
|
|
129
|
-
kind: "message",
|
|
130
|
-
repeat: 1,
|
|
131
|
-
T: () => GetObjectResult,
|
|
132
|
-
},
|
|
133
|
-
]);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
export const BatchGetObjectsResponse = new BatchGetObjectsResponse$Type();
|
|
137
|
-
class GetObjectResult$Type extends MessageType {
|
|
138
|
-
constructor() {
|
|
139
|
-
super("sui.rpc.v2.GetObjectResult", [
|
|
140
|
-
{
|
|
141
|
-
no: 1,
|
|
142
|
-
name: "object",
|
|
143
|
-
kind: "message",
|
|
144
|
-
oneof: "result",
|
|
145
|
-
T: () => Object,
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
no: 2,
|
|
149
|
-
name: "error",
|
|
150
|
-
kind: "message",
|
|
151
|
-
oneof: "result",
|
|
152
|
-
T: () => Status,
|
|
153
|
-
},
|
|
154
|
-
]);
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
export const GetObjectResult = new GetObjectResult$Type();
|
|
158
|
-
class GetTransactionRequest$Type extends MessageType {
|
|
159
|
-
constructor() {
|
|
160
|
-
super("sui.rpc.v2.GetTransactionRequest", [
|
|
161
|
-
{
|
|
162
|
-
no: 1,
|
|
163
|
-
name: "digest",
|
|
164
|
-
kind: "scalar",
|
|
165
|
-
opt: true,
|
|
166
|
-
T: 9,
|
|
167
|
-
},
|
|
168
|
-
{ no: 2, name: "read_mask", kind: "message", T: () => FieldMask },
|
|
169
|
-
]);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
export const GetTransactionRequest = new GetTransactionRequest$Type();
|
|
173
|
-
class GetTransactionResponse$Type extends MessageType {
|
|
174
|
-
constructor() {
|
|
175
|
-
super("sui.rpc.v2.GetTransactionResponse", [
|
|
176
|
-
{
|
|
177
|
-
no: 1,
|
|
178
|
-
name: "transaction",
|
|
179
|
-
kind: "message",
|
|
180
|
-
T: () => ExecutedTransaction,
|
|
181
|
-
},
|
|
182
|
-
]);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
export const GetTransactionResponse = new GetTransactionResponse$Type();
|
|
186
|
-
class BatchGetTransactionsRequest$Type extends MessageType {
|
|
187
|
-
constructor() {
|
|
188
|
-
super("sui.rpc.v2.BatchGetTransactionsRequest", [
|
|
189
|
-
{
|
|
190
|
-
no: 1,
|
|
191
|
-
name: "digests",
|
|
192
|
-
kind: "scalar",
|
|
193
|
-
repeat: 2,
|
|
194
|
-
T: 9,
|
|
195
|
-
},
|
|
196
|
-
{ no: 2, name: "read_mask", kind: "message", T: () => FieldMask },
|
|
197
|
-
]);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
export const BatchGetTransactionsRequest = new BatchGetTransactionsRequest$Type();
|
|
201
|
-
class BatchGetTransactionsResponse$Type extends MessageType {
|
|
202
|
-
constructor() {
|
|
203
|
-
super("sui.rpc.v2.BatchGetTransactionsResponse", [
|
|
204
|
-
{
|
|
205
|
-
no: 1,
|
|
206
|
-
name: "transactions",
|
|
207
|
-
kind: "message",
|
|
208
|
-
repeat: 1,
|
|
209
|
-
T: () => GetTransactionResult,
|
|
210
|
-
},
|
|
211
|
-
]);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
export const BatchGetTransactionsResponse = new BatchGetTransactionsResponse$Type();
|
|
215
|
-
class GetTransactionResult$Type extends MessageType {
|
|
216
|
-
constructor() {
|
|
217
|
-
super("sui.rpc.v2.GetTransactionResult", [
|
|
218
|
-
{
|
|
219
|
-
no: 1,
|
|
220
|
-
name: "transaction",
|
|
221
|
-
kind: "message",
|
|
222
|
-
oneof: "result",
|
|
223
|
-
T: () => ExecutedTransaction,
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
no: 2,
|
|
227
|
-
name: "error",
|
|
228
|
-
kind: "message",
|
|
229
|
-
oneof: "result",
|
|
230
|
-
T: () => Status,
|
|
231
|
-
},
|
|
232
|
-
]);
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
export const GetTransactionResult = new GetTransactionResult$Type();
|
|
236
|
-
class GetCheckpointRequest$Type extends MessageType {
|
|
237
|
-
constructor() {
|
|
238
|
-
super("sui.rpc.v2.GetCheckpointRequest", [
|
|
239
|
-
{
|
|
240
|
-
no: 1,
|
|
241
|
-
name: "sequence_number",
|
|
242
|
-
kind: "scalar",
|
|
243
|
-
oneof: "checkpointId",
|
|
244
|
-
T: 4,
|
|
245
|
-
L: 0,
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
no: 2,
|
|
249
|
-
name: "digest",
|
|
250
|
-
kind: "scalar",
|
|
251
|
-
oneof: "checkpointId",
|
|
252
|
-
T: 9,
|
|
253
|
-
},
|
|
254
|
-
{ no: 3, name: "read_mask", kind: "message", T: () => FieldMask },
|
|
255
|
-
]);
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
export const GetCheckpointRequest = new GetCheckpointRequest$Type();
|
|
259
|
-
class GetCheckpointResponse$Type extends MessageType {
|
|
260
|
-
constructor() {
|
|
261
|
-
super("sui.rpc.v2.GetCheckpointResponse", [
|
|
262
|
-
{ no: 1, name: "checkpoint", kind: "message", T: () => Checkpoint },
|
|
263
|
-
]);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
export const GetCheckpointResponse = new GetCheckpointResponse$Type();
|
|
267
|
-
class GetEpochRequest$Type extends MessageType {
|
|
268
|
-
constructor() {
|
|
269
|
-
super("sui.rpc.v2.GetEpochRequest", [
|
|
270
|
-
{
|
|
271
|
-
no: 1,
|
|
272
|
-
name: "epoch",
|
|
273
|
-
kind: "scalar",
|
|
274
|
-
opt: true,
|
|
275
|
-
T: 4,
|
|
276
|
-
L: 0,
|
|
277
|
-
},
|
|
278
|
-
{ no: 2, name: "read_mask", kind: "message", T: () => FieldMask },
|
|
279
|
-
]);
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
export const GetEpochRequest = new GetEpochRequest$Type();
|
|
283
|
-
class GetEpochResponse$Type extends MessageType {
|
|
284
|
-
constructor() {
|
|
285
|
-
super("sui.rpc.v2.GetEpochResponse", [
|
|
286
|
-
{ no: 1, name: "epoch", kind: "message", T: () => Epoch },
|
|
287
|
-
]);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
export const GetEpochResponse = new GetEpochResponse$Type();
|
|
291
|
-
export const LedgerService = new ServiceType("sui.rpc.v2.LedgerService", [
|
|
292
|
-
{
|
|
293
|
-
name: "GetServiceInfo",
|
|
294
|
-
options: {},
|
|
295
|
-
I: GetServiceInfoRequest,
|
|
296
|
-
O: GetServiceInfoResponse,
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
name: "GetObject",
|
|
300
|
-
options: {},
|
|
301
|
-
I: GetObjectRequest,
|
|
302
|
-
O: GetObjectResponse,
|
|
303
|
-
},
|
|
304
|
-
{
|
|
305
|
-
name: "BatchGetObjects",
|
|
306
|
-
options: {},
|
|
307
|
-
I: BatchGetObjectsRequest,
|
|
308
|
-
O: BatchGetObjectsResponse,
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
name: "GetTransaction",
|
|
312
|
-
options: {},
|
|
313
|
-
I: GetTransactionRequest,
|
|
314
|
-
O: GetTransactionResponse,
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
name: "BatchGetTransactions",
|
|
318
|
-
options: {},
|
|
319
|
-
I: BatchGetTransactionsRequest,
|
|
320
|
-
O: BatchGetTransactionsResponse,
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
name: "GetCheckpoint",
|
|
324
|
-
options: {},
|
|
325
|
-
I: GetCheckpointRequest,
|
|
326
|
-
O: GetCheckpointResponse,
|
|
327
|
-
},
|
|
328
|
-
{ name: "GetEpoch", options: {}, I: GetEpochRequest, O: GetEpochResponse },
|
|
329
|
-
]);
|
|
1
|
+
import{ServiceType}from'@protobuf-ts/runtime-rpc';import{MessageType}from'@protobuf-ts/runtime';import{Epoch}from'./epoch.js';import{Checkpoint}from'./checkpoint.js';import{ExecutedTransaction}from'./executed_transaction.js';import{Status}from'../../../google/rpc/status.js';import{Object}from'./object.js';import{FieldMask}from'../../../google/protobuf/field_mask.js';import{Timestamp}from'../../../google/protobuf/timestamp.js';class GetServiceInfoRequest$Type extends MessageType{constructor(){super('sui.rpc.v2.GetServiceInfoRequest',[]);}}export const GetServiceInfoRequest=new GetServiceInfoRequest$Type();class GetServiceInfoResponse$Type extends MessageType{constructor(){super('sui.rpc.v2.GetServiceInfoResponse',[{'no':0x1,'name':'chain_id','kind':'scalar','opt':!![],'T':0x9},{'no':0x2,'name':'chain','kind':'scalar','opt':!![],'T':0x9},{'no':0x3,'name':'epoch','kind':'scalar','opt':!![],'T':0x4,'L':0x0},{'no':0x4,'name':'checkpoint_height','kind':'scalar','opt':!![],'T':0x4,'L':0x0},{'no':0x5,'name':'timestamp','kind':'message','T':()=>Timestamp},{'no':0x6,'name':'lowest_available_checkpoint','kind':'scalar','opt':!![],'T':0x4,'L':0x0},{'no':0x7,'name':'lowest_available_checkpoint_objects','kind':'scalar','opt':!![],'T':0x4,'L':0x0},{'no':0x8,'name':'server','kind':'scalar','opt':!![],'T':0x9}]);}}export const GetServiceInfoResponse=new GetServiceInfoResponse$Type();class GetObjectRequest$Type extends MessageType{constructor(){super('sui.rpc.v2.GetObjectRequest',[{'no':0x1,'name':'object_id','kind':'scalar','opt':!![],'T':0x9},{'no':0x2,'name':'version','kind':'scalar','opt':!![],'T':0x4,'L':0x0},{'no':0x3,'name':'read_mask','kind':'message','T':()=>FieldMask}]);}}export const GetObjectRequest=new GetObjectRequest$Type();class GetObjectResponse$Type extends MessageType{constructor(){super('sui.rpc.v2.GetObjectResponse',[{'no':0x1,'name':'object','kind':'message','T':()=>Object}]);}}export const GetObjectResponse=new GetObjectResponse$Type();class BatchGetObjectsRequest$Type extends MessageType{constructor(){super('sui.rpc.v2.BatchGetObjectsRequest',[{'no':0x1,'name':'requests','kind':'message','repeat':0x1,'T':()=>GetObjectRequest},{'no':0x2,'name':'read_mask','kind':'message','T':()=>FieldMask}]);}}export const BatchGetObjectsRequest=new BatchGetObjectsRequest$Type();class BatchGetObjectsResponse$Type extends MessageType{constructor(){super('sui.rpc.v2.BatchGetObjectsResponse',[{'no':0x1,'name':'objects','kind':'message','repeat':0x1,'T':()=>GetObjectResult}]);}}export const BatchGetObjectsResponse=new BatchGetObjectsResponse$Type();class GetObjectResult$Type extends MessageType{constructor(){super('sui.rpc.v2.GetObjectResult',[{'no':0x1,'name':'object','kind':'message','oneof':'result','T':()=>Object},{'no':0x2,'name':'error','kind':'message','oneof':'result','T':()=>Status}]);}}export const GetObjectResult=new GetObjectResult$Type();class GetTransactionRequest$Type extends MessageType{constructor(){super('sui.rpc.v2.GetTransactionRequest',[{'no':0x1,'name':'digest','kind':'scalar','opt':!![],'T':0x9},{'no':0x2,'name':'read_mask','kind':'message','T':()=>FieldMask}]);}}export const GetTransactionRequest=new GetTransactionRequest$Type();class GetTransactionResponse$Type extends MessageType{constructor(){super('sui.rpc.v2.GetTransactionResponse',[{'no':0x1,'name':'transaction','kind':'message','T':()=>ExecutedTransaction}]);}}export const GetTransactionResponse=new GetTransactionResponse$Type();class BatchGetTransactionsRequest$Type extends MessageType{constructor(){super('sui.rpc.v2.BatchGetTransactionsRequest',[{'no':0x1,'name':'digests','kind':'scalar','repeat':0x2,'T':0x9},{'no':0x2,'name':'read_mask','kind':'message','T':()=>FieldMask}]);}}export const BatchGetTransactionsRequest=new BatchGetTransactionsRequest$Type();class BatchGetTransactionsResponse$Type extends MessageType{constructor(){super('sui.rpc.v2.BatchGetTransactionsResponse',[{'no':0x1,'name':'transactions','kind':'message','repeat':0x1,'T':()=>GetTransactionResult}]);}}export const BatchGetTransactionsResponse=new BatchGetTransactionsResponse$Type();class GetTransactionResult$Type extends MessageType{constructor(){super('sui.rpc.v2.GetTransactionResult',[{'no':0x1,'name':'transaction','kind':'message','oneof':'result','T':()=>ExecutedTransaction},{'no':0x2,'name':'error','kind':'message','oneof':'result','T':()=>Status}]);}}export const GetTransactionResult=new GetTransactionResult$Type();class GetCheckpointRequest$Type extends MessageType{constructor(){super('sui.rpc.v2.GetCheckpointRequest',[{'no':0x1,'name':'sequence_number','kind':'scalar','oneof':'checkpointId','T':0x4,'L':0x0},{'no':0x2,'name':'digest','kind':'scalar','oneof':'checkpointId','T':0x9},{'no':0x3,'name':'read_mask','kind':'message','T':()=>FieldMask}]);}}export const GetCheckpointRequest=new GetCheckpointRequest$Type();class GetCheckpointResponse$Type extends MessageType{constructor(){super('sui.rpc.v2.GetCheckpointResponse',[{'no':0x1,'name':'checkpoint','kind':'message','T':()=>Checkpoint}]);}}export const GetCheckpointResponse=new GetCheckpointResponse$Type();class GetEpochRequest$Type extends MessageType{constructor(){super('sui.rpc.v2.GetEpochRequest',[{'no':0x1,'name':'epoch','kind':'scalar','opt':!![],'T':0x4,'L':0x0},{'no':0x2,'name':'read_mask','kind':'message','T':()=>FieldMask}]);}}export const GetEpochRequest=new GetEpochRequest$Type();class GetEpochResponse$Type extends MessageType{constructor(){super('sui.rpc.v2.GetEpochResponse',[{'no':0x1,'name':'epoch','kind':'message','T':()=>Epoch}]);}}export const GetEpochResponse=new GetEpochResponse$Type();export const LedgerService=new ServiceType('sui.rpc.v2.LedgerService',[{'name':'GetServiceInfo','options':{},'I':GetServiceInfoRequest,'O':GetServiceInfoResponse},{'name':'GetObject','options':{},'I':GetObjectRequest,'O':GetObjectResponse},{'name':'BatchGetObjects','options':{},'I':BatchGetObjectsRequest,'O':BatchGetObjectsResponse},{'name':'GetTransaction','options':{},'I':GetTransactionRequest,'O':GetTransactionResponse},{'name':'BatchGetTransactions','options':{},'I':BatchGetTransactionsRequest,'O':BatchGetTransactionsResponse},{'name':'GetCheckpoint','options':{},'I':GetCheckpointRequest,'O':GetCheckpointResponse},{'name':'GetEpoch','options':{},'I':GetEpochRequest,'O':GetEpochResponse}]);
|