@mysten/sui 1.42.0 → 1.43.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 +21 -0
- package/dist/cjs/bcs/bcs.d.ts +47 -111
- package/dist/cjs/bcs/bcs.js +17 -17
- package/dist/cjs/bcs/bcs.js.map +2 -2
- package/dist/cjs/bcs/effects.d.ts +2 -6
- package/dist/cjs/bcs/effects.js +1 -1
- package/dist/cjs/bcs/effects.js.map +2 -2
- package/dist/cjs/bcs/index.d.ts +49 -117
- package/dist/cjs/bcs/type-tag-serializer.d.ts +1 -0
- package/dist/cjs/bcs/type-tag-serializer.js +5 -1
- package/dist/cjs/bcs/type-tag-serializer.js.map +2 -2
- package/dist/cjs/cryptography/intent.js +1 -1
- package/dist/cjs/cryptography/intent.js.map +2 -2
- package/dist/cjs/cryptography/keypair.js +1 -1
- package/dist/cjs/cryptography/keypair.js.map +2 -2
- package/dist/cjs/cryptography/publickey.js +1 -1
- package/dist/cjs/cryptography/publickey.js.map +2 -2
- package/dist/cjs/cryptography/signature.d.ts +2 -2
- package/dist/cjs/experimental/client.js +0 -4
- package/dist/cjs/experimental/client.js.map +2 -2
- package/dist/cjs/experimental/types.d.ts +1 -7
- package/dist/cjs/experimental/types.js.map +1 -1
- package/dist/cjs/graphql/generated/queries.d.ts +1 -1
- package/dist/cjs/graphql/generated/queries.js.map +1 -1
- package/dist/cjs/grpc/core.d.ts +3 -1
- package/dist/cjs/grpc/core.js +5 -3
- package/dist/cjs/grpc/core.js.map +2 -2
- package/dist/cjs/grpc/proto/google/protobuf/any.d.ts +6 -6
- package/dist/cjs/grpc/proto/google/protobuf/any.js +20 -20
- package/dist/cjs/grpc/proto/google/protobuf/any.js.map +2 -2
- package/dist/cjs/grpc/proto/google/protobuf/duration.d.ts +4 -4
- package/dist/cjs/grpc/proto/google/protobuf/duration.js +8 -12
- package/dist/cjs/grpc/proto/google/protobuf/duration.js.map +2 -2
- package/dist/cjs/grpc/proto/google/protobuf/empty.d.ts +1 -1
- package/dist/cjs/grpc/proto/google/protobuf/empty.js.map +2 -2
- package/dist/cjs/grpc/proto/google/protobuf/field_mask.d.ts +4 -4
- package/dist/cjs/grpc/proto/google/protobuf/field_mask.js +8 -7
- package/dist/cjs/grpc/proto/google/protobuf/field_mask.js.map +2 -2
- package/dist/cjs/grpc/proto/google/protobuf/struct.d.ts +10 -10
- package/dist/cjs/grpc/proto/google/protobuf/struct.js +29 -17
- package/dist/cjs/grpc/proto/google/protobuf/struct.js.map +2 -2
- package/dist/cjs/grpc/proto/google/protobuf/timestamp.d.ts +4 -4
- package/dist/cjs/grpc/proto/google/protobuf/timestamp.js +21 -18
- package/dist/cjs/grpc/proto/google/protobuf/timestamp.js.map +2 -2
- package/dist/cjs/grpc/proto/google/rpc/error_details.d.ts +2 -2
- package/dist/cjs/grpc/proto/google/rpc/error_details.js +40 -11
- package/dist/cjs/grpc/proto/google/rpc/error_details.js.map +2 -2
- package/dist/cjs/grpc/proto/google/rpc/status.d.ts +2 -2
- package/dist/cjs/grpc/proto/google/rpc/status.js +1 -1
- package/dist/cjs/grpc/proto/google/rpc/status.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/argument.d.ts +1 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/argument.js +7 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/argument.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/balance_change.d.ts +1 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/balance_change.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/bcs.d.ts +1 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/bcs.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.d.ts +6 -6
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.js +12 -7
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.d.ts +3 -3
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.js +16 -4
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_contents.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.d.ts +5 -5
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.js +35 -13
- package/dist/cjs/grpc/proto/sui/rpc/v2/checkpoint_summary.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/effects.d.ts +6 -6
- package/dist/cjs/grpc/proto/sui/rpc/v2/effects.js +65 -19
- package/dist/cjs/grpc/proto/sui/rpc/v2/effects.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.d.ts +5 -5
- package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.js +4 -8
- package/dist/cjs/grpc/proto/sui/rpc/v2/epoch.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/error_reason.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/event.d.ts +3 -3
- package/dist/cjs/grpc/proto/sui/rpc/v2/event.js +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/event.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.d.ts +8 -8
- package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.js +21 -10
- package/dist/cjs/grpc/proto/sui/rpc/v2/executed_transaction.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.d.ts +12 -12
- package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.js +75 -17
- package/dist/cjs/grpc/proto/sui/rpc/v2/execution_status.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.d.ts +1 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.js +0 -4
- package/dist/cjs/grpc/proto/sui/rpc/v2/gas_cost_summary.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/input.d.ts +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/input.js +8 -3
- package/dist/cjs/grpc/proto/sui/rpc/v2/input.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/jwk.d.ts +1 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/jwk.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +18 -18
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.js +50 -8
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.client.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.d.ts +15 -15
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.js +41 -20
- package/dist/cjs/grpc/proto/sui/rpc/v2/ledger_service.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.d.ts +1 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.js +126 -20
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +12 -12
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.js +29 -5
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.client.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.d.ts +5 -5
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.js +16 -6
- package/dist/cjs/grpc/proto/sui/rpc/v2/move_package_service.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.client.d.ts +8 -8
- package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.client.js +15 -3
- package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.client.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.d.ts +3 -3
- package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.js +18 -7
- package/dist/cjs/grpc/proto/sui/rpc/v2/name_service.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/object.d.ts +5 -5
- package/dist/cjs/grpc/proto/sui/rpc/v2/object.js +4 -8
- package/dist/cjs/grpc/proto/sui/rpc/v2/object.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.d.ts +1 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.js +0 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/object_reference.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/owner.d.ts +1 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/owner.js +7 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/owner.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.d.ts +1 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.js +22 -11
- package/dist/cjs/grpc/proto/sui/rpc/v2/protocol_config.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature.d.ts +8 -8
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature.js +73 -17
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_scheme.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.ts +6 -6
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +8 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.client.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.d.ts +5 -5
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.js +7 -6
- package/dist/cjs/grpc/proto/sui/rpc/v2/signature_verification_service.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.d.ts +14 -14
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.js +36 -6
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.client.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.d.ts +5 -5
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.js +60 -14
- package/dist/cjs/grpc/proto/sui/rpc/v2/state_service.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.d.ts +6 -6
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.js +8 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.client.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.d.ts +4 -4
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.js +9 -4
- package/dist/cjs/grpc/proto/sui/rpc/v2/subscription_service.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.d.ts +1 -1
- package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.js +26 -59
- package/dist/cjs/grpc/proto/sui/rpc/v2/system_state.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.d.ts +29 -29
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.js +210 -71
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +8 -8
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +15 -3
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js.map +2 -2
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +9 -9
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.js +62 -16
- package/dist/cjs/grpc/proto/sui/rpc/v2/transaction_execution_service.js.map +2 -2
- package/dist/cjs/jsonRpc/client.d.ts +2 -6
- package/dist/cjs/jsonRpc/client.js +0 -8
- package/dist/cjs/jsonRpc/client.js.map +2 -2
- package/dist/cjs/keypairs/passkey/publickey.d.ts +1 -1
- package/dist/cjs/multisig/publickey.d.ts +10 -10
- package/dist/cjs/multisig/publickey.js +2 -2
- package/dist/cjs/multisig/publickey.js.map +2 -2
- package/dist/cjs/transactions/Transaction.d.ts +2 -2
- package/dist/cjs/transactions/Transaction.js.map +2 -2
- package/dist/cjs/transactions/TransactionData.d.ts +1 -0
- package/dist/cjs/transactions/TransactionData.js +71 -0
- package/dist/cjs/transactions/TransactionData.js.map +3 -3
- package/dist/cjs/transactions/serializer.js +1 -1
- package/dist/cjs/transactions/serializer.js.map +2 -2
- package/dist/cjs/utils/index.d.ts +1 -0
- package/dist/cjs/utils/index.js +2 -0
- package/dist/cjs/utils/index.js.map +2 -2
- package/dist/cjs/version.d.ts +2 -2
- package/dist/cjs/version.js +2 -2
- package/dist/cjs/version.js.map +1 -1
- package/dist/cjs/zklogin/bcs.d.ts +1 -3
- package/dist/cjs/zklogin/bcs.js +1 -1
- package/dist/cjs/zklogin/bcs.js.map +2 -2
- package/dist/cjs/zklogin/publickey.d.ts +1 -1
- package/dist/cjs/zklogin/signature.d.ts +1 -1
- package/dist/esm/bcs/bcs.d.ts +47 -111
- package/dist/esm/bcs/bcs.js +17 -17
- package/dist/esm/bcs/bcs.js.map +2 -2
- package/dist/esm/bcs/effects.d.ts +2 -6
- package/dist/esm/bcs/effects.js +1 -1
- package/dist/esm/bcs/effects.js.map +2 -2
- package/dist/esm/bcs/index.d.ts +49 -117
- package/dist/esm/bcs/type-tag-serializer.d.ts +1 -0
- package/dist/esm/bcs/type-tag-serializer.js +5 -1
- package/dist/esm/bcs/type-tag-serializer.js.map +2 -2
- package/dist/esm/cryptography/intent.js +1 -1
- package/dist/esm/cryptography/intent.js.map +2 -2
- package/dist/esm/cryptography/keypair.js +1 -1
- package/dist/esm/cryptography/keypair.js.map +2 -2
- package/dist/esm/cryptography/publickey.js +1 -1
- package/dist/esm/cryptography/publickey.js.map +2 -2
- package/dist/esm/cryptography/signature.d.ts +2 -2
- package/dist/esm/experimental/client.js +0 -4
- package/dist/esm/experimental/client.js.map +2 -2
- package/dist/esm/experimental/types.d.ts +1 -7
- package/dist/esm/graphql/generated/queries.d.ts +1 -1
- package/dist/esm/graphql/generated/queries.js.map +1 -1
- package/dist/esm/grpc/core.d.ts +3 -1
- package/dist/esm/grpc/core.js +5 -3
- package/dist/esm/grpc/core.js.map +2 -2
- package/dist/esm/grpc/proto/google/protobuf/any.d.ts +6 -6
- package/dist/esm/grpc/proto/google/protobuf/any.js +20 -20
- package/dist/esm/grpc/proto/google/protobuf/any.js.map +2 -2
- package/dist/esm/grpc/proto/google/protobuf/duration.d.ts +4 -4
- package/dist/esm/grpc/proto/google/protobuf/duration.js +8 -12
- package/dist/esm/grpc/proto/google/protobuf/duration.js.map +2 -2
- package/dist/esm/grpc/proto/google/protobuf/empty.d.ts +1 -1
- package/dist/esm/grpc/proto/google/protobuf/empty.js.map +2 -2
- package/dist/esm/grpc/proto/google/protobuf/field_mask.d.ts +4 -4
- package/dist/esm/grpc/proto/google/protobuf/field_mask.js +8 -7
- package/dist/esm/grpc/proto/google/protobuf/field_mask.js.map +2 -2
- package/dist/esm/grpc/proto/google/protobuf/struct.d.ts +10 -10
- package/dist/esm/grpc/proto/google/protobuf/struct.js +29 -17
- package/dist/esm/grpc/proto/google/protobuf/struct.js.map +2 -2
- package/dist/esm/grpc/proto/google/protobuf/timestamp.d.ts +4 -4
- package/dist/esm/grpc/proto/google/protobuf/timestamp.js +21 -18
- package/dist/esm/grpc/proto/google/protobuf/timestamp.js.map +2 -2
- package/dist/esm/grpc/proto/google/rpc/error_details.d.ts +2 -2
- package/dist/esm/grpc/proto/google/rpc/error_details.js +40 -11
- package/dist/esm/grpc/proto/google/rpc/error_details.js.map +2 -2
- package/dist/esm/grpc/proto/google/rpc/status.d.ts +2 -2
- package/dist/esm/grpc/proto/google/rpc/status.js +1 -1
- package/dist/esm/grpc/proto/google/rpc/status.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/argument.d.ts +1 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/argument.js +7 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/argument.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.d.ts +1 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/balance_change.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/bcs.d.ts +1 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/bcs.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.d.ts +6 -6
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.js +12 -7
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.d.ts +3 -3
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.js +16 -4
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_contents.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.d.ts +5 -5
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.js +35 -13
- package/dist/esm/grpc/proto/sui/rpc/v2/checkpoint_summary.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/effects.d.ts +6 -6
- package/dist/esm/grpc/proto/sui/rpc/v2/effects.js +65 -19
- package/dist/esm/grpc/proto/sui/rpc/v2/effects.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/epoch.d.ts +5 -5
- package/dist/esm/grpc/proto/sui/rpc/v2/epoch.js +4 -8
- package/dist/esm/grpc/proto/sui/rpc/v2/epoch.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/error_reason.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/event.d.ts +3 -3
- package/dist/esm/grpc/proto/sui/rpc/v2/event.js +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/event.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.d.ts +8 -8
- package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.js +21 -10
- package/dist/esm/grpc/proto/sui/rpc/v2/executed_transaction.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.d.ts +12 -12
- package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.js +75 -17
- package/dist/esm/grpc/proto/sui/rpc/v2/execution_status.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.d.ts +1 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.js +0 -4
- package/dist/esm/grpc/proto/sui/rpc/v2/gas_cost_summary.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/input.d.ts +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/input.js +8 -3
- package/dist/esm/grpc/proto/sui/rpc/v2/input.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/jwk.d.ts +1 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/jwk.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.d.ts +18 -18
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.js +50 -8
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.client.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.d.ts +15 -15
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.js +41 -20
- package/dist/esm/grpc/proto/sui/rpc/v2/ledger_service.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package.d.ts +1 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package.js +126 -20
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.d.ts +12 -12
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.js +29 -5
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.client.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.d.ts +5 -5
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.js +16 -6
- package/dist/esm/grpc/proto/sui/rpc/v2/move_package_service.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.d.ts +8 -8
- package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.js +15 -3
- package/dist/esm/grpc/proto/sui/rpc/v2/name_service.client.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/name_service.d.ts +3 -3
- package/dist/esm/grpc/proto/sui/rpc/v2/name_service.js +18 -7
- package/dist/esm/grpc/proto/sui/rpc/v2/name_service.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/object.d.ts +5 -5
- package/dist/esm/grpc/proto/sui/rpc/v2/object.js +4 -8
- package/dist/esm/grpc/proto/sui/rpc/v2/object.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.d.ts +1 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.js +0 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/object_reference.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/owner.d.ts +1 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/owner.js +7 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/owner.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.d.ts +1 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.js +22 -11
- package/dist/esm/grpc/proto/sui/rpc/v2/protocol_config.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/signature.d.ts +8 -8
- package/dist/esm/grpc/proto/sui/rpc/v2/signature.js +73 -17
- package/dist/esm/grpc/proto/sui/rpc/v2/signature.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_scheme.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.d.ts +6 -6
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.js +8 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.client.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.d.ts +5 -5
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.js +7 -6
- package/dist/esm/grpc/proto/sui/rpc/v2/signature_verification_service.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.d.ts +14 -14
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.js +36 -6
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.client.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.d.ts +5 -5
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.js +60 -14
- package/dist/esm/grpc/proto/sui/rpc/v2/state_service.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.d.ts +6 -6
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.js +8 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.client.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.d.ts +4 -4
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.js +9 -4
- package/dist/esm/grpc/proto/sui/rpc/v2/subscription_service.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/system_state.d.ts +1 -1
- package/dist/esm/grpc/proto/sui/rpc/v2/system_state.js +26 -59
- package/dist/esm/grpc/proto/sui/rpc/v2/system_state.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction.d.ts +29 -29
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction.js +210 -71
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.d.ts +8 -8
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js +15 -3
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.client.js.map +2 -2
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.d.ts +9 -9
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.js +62 -16
- package/dist/esm/grpc/proto/sui/rpc/v2/transaction_execution_service.js.map +2 -2
- package/dist/esm/jsonRpc/client.d.ts +2 -6
- package/dist/esm/jsonRpc/client.js +0 -8
- package/dist/esm/jsonRpc/client.js.map +2 -2
- package/dist/esm/keypairs/passkey/publickey.d.ts +1 -1
- package/dist/esm/multisig/publickey.d.ts +10 -10
- package/dist/esm/multisig/publickey.js +2 -2
- package/dist/esm/multisig/publickey.js.map +2 -2
- package/dist/esm/transactions/Transaction.d.ts +2 -2
- package/dist/esm/transactions/Transaction.js.map +2 -2
- package/dist/esm/transactions/TransactionData.d.ts +1 -0
- package/dist/esm/transactions/TransactionData.js +71 -0
- package/dist/esm/transactions/TransactionData.js.map +3 -3
- package/dist/esm/transactions/serializer.js +1 -1
- package/dist/esm/transactions/serializer.js.map +2 -2
- package/dist/esm/utils/index.d.ts +1 -0
- package/dist/esm/utils/index.js +2 -0
- package/dist/esm/utils/index.js.map +2 -2
- package/dist/esm/version.d.ts +2 -2
- package/dist/esm/version.js +2 -2
- package/dist/esm/version.js.map +1 -1
- package/dist/esm/zklogin/bcs.d.ts +1 -3
- package/dist/esm/zklogin/bcs.js +1 -1
- package/dist/esm/zklogin/bcs.js.map +2 -2
- package/dist/esm/zklogin/publickey.d.ts +1 -1
- package/dist/esm/zklogin/signature.d.ts +1 -1
- package/dist/tsconfig.esm.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/bcs/bcs.ts +17 -17
- package/src/bcs/effects.ts +1 -1
- package/src/bcs/type-tag-serializer.ts +4 -0
- package/src/cryptography/intent.ts +1 -1
- package/src/cryptography/keypair.ts +1 -1
- package/src/cryptography/publickey.ts +1 -1
- package/src/experimental/client.ts +0 -4
- package/src/experimental/types.ts +4 -17
- package/src/graphql/generated/queries.ts +1 -1
- package/src/grpc/core.ts +28 -8
- package/src/grpc/proto/google/protobuf/any.ts +159 -144
- package/src/grpc/proto/google/protobuf/duration.ts +77 -74
- package/src/grpc/proto/google/protobuf/empty.ts +5 -6
- package/src/grpc/proto/google/protobuf/field_mask.ts +59 -47
- package/src/grpc/proto/google/protobuf/struct.ts +223 -201
- package/src/grpc/proto/google/protobuf/timestamp.ts +121 -100
- package/src/grpc/proto/google/rpc/error_details.ts +388 -352
- package/src/grpc/proto/google/rpc/status.ts +32 -32
- package/src/grpc/proto/sui/rpc/v2/argument.ts +60 -54
- package/src/grpc/proto/sui/rpc/v2/balance_change.ts +26 -26
- package/src/grpc/proto/sui/rpc/v2/bcs.ts +19 -19
- package/src/grpc/proto/sui/rpc/v2/checkpoint.ts +79 -66
- package/src/grpc/proto/sui/rpc/v2/checkpoint_contents.ts +72 -60
- package/src/grpc/proto/sui/rpc/v2/checkpoint_summary.ts +219 -158
- package/src/grpc/proto/sui/rpc/v2/effects.ts +418 -318
- package/src/grpc/proto/sui/rpc/v2/epoch.ts +90 -62
- package/src/grpc/proto/sui/rpc/v2/error_reason.ts +12 -12
- package/src/grpc/proto/sui/rpc/v2/event.ts +76 -76
- package/src/grpc/proto/sui/rpc/v2/executed_transaction.ts +99 -80
- package/src/grpc/proto/sui/rpc/v2/execution_status.ts +888 -755
- package/src/grpc/proto/sui/rpc/v2/gas_cost_summary.ts +62 -34
- package/src/grpc/proto/sui/rpc/v2/input.ts +102 -89
- package/src/grpc/proto/sui/rpc/v2/jwk.ts +51 -51
- package/src/grpc/proto/sui/rpc/v2/ledger_service.client.ts +196 -106
- package/src/grpc/proto/sui/rpc/v2/ledger_service.ts +420 -328
- package/src/grpc/proto/sui/rpc/v2/move_package.ts +608 -486
- package/src/grpc/proto/sui/rpc/v2/move_package_service.client.ts +114 -63
- package/src/grpc/proto/sui/rpc/v2/move_package_service.ts +190 -172
- package/src/grpc/proto/sui/rpc/v2/name_service.client.ts +62 -37
- package/src/grpc/proto/sui/rpc/v2/name_service.ts +123 -112
- package/src/grpc/proto/sui/rpc/v2/object.ts +147 -120
- package/src/grpc/proto/sui/rpc/v2/object_reference.ts +33 -26
- package/src/grpc/proto/sui/rpc/v2/owner.ts +61 -48
- package/src/grpc/proto/sui/rpc/v2/protocol_config.ts +43 -24
- package/src/grpc/proto/sui/rpc/v2/signature.ts +596 -503
- package/src/grpc/proto/sui/rpc/v2/signature_scheme.ts +28 -28
- package/src/grpc/proto/sui/rpc/v2/signature_verification_service.client.ts +43 -29
- package/src/grpc/proto/sui/rpc/v2/signature_verification_service.ts +68 -67
- package/src/grpc/proto/sui/rpc/v2/state_service.client.ts +140 -76
- package/src/grpc/proto/sui/rpc/v2/state_service.ts +642 -573
- package/src/grpc/proto/sui/rpc/v2/subscription_service.client.ts +60 -48
- package/src/grpc/proto/sui/rpc/v2/subscription_service.ts +50 -37
- package/src/grpc/proto/sui/rpc/v2/system_state.ts +1055 -689
- package/src/grpc/proto/sui/rpc/v2/transaction.ts +1535 -1110
- package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.client.ts +65 -38
- package/src/grpc/proto/sui/rpc/v2/transaction_execution_service.ts +185 -139
- package/src/jsonRpc/client.ts +2 -17
- package/src/multisig/publickey.ts +14 -14
- package/src/transactions/Transaction.ts +2 -2
- package/src/transactions/TransactionData.ts +100 -1
- package/src/transactions/serializer.ts +1 -1
- package/src/utils/index.ts +1 -0
- package/src/version.ts +2 -2
- package/src/zklogin/bcs.ts +1 -1
|
@@ -9,202 +9,202 @@
|
|
|
9
9
|
// Copyright (c) Mysten Labs, Inc.
|
|
10
10
|
// SPDX-License-Identifier: Apache-2.0
|
|
11
11
|
//
|
|
12
|
-
import { MessageType } from
|
|
12
|
+
import { MessageType } from '@protobuf-ts/runtime';
|
|
13
13
|
/**
|
|
14
14
|
* @generated from protobuf message sui.rpc.v2.SystemState
|
|
15
15
|
*/
|
|
16
16
|
export interface SystemState {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
17
|
+
/**
|
|
18
|
+
* The version of the system state data structure type.
|
|
19
|
+
*
|
|
20
|
+
* @generated from protobuf field: optional uint64 version = 1;
|
|
21
|
+
*/
|
|
22
|
+
version?: bigint;
|
|
23
|
+
/**
|
|
24
|
+
* The epoch id
|
|
25
|
+
*
|
|
26
|
+
* @generated from protobuf field: optional uint64 epoch = 2;
|
|
27
|
+
*/
|
|
28
|
+
epoch?: bigint;
|
|
29
|
+
/**
|
|
30
|
+
* The protocol version
|
|
31
|
+
*
|
|
32
|
+
* @generated from protobuf field: optional uint64 protocol_version = 3;
|
|
33
|
+
*/
|
|
34
|
+
protocolVersion?: bigint;
|
|
35
|
+
/**
|
|
36
|
+
* Information about the validators
|
|
37
|
+
*
|
|
38
|
+
* @generated from protobuf field: optional sui.rpc.v2.ValidatorSet validators = 4;
|
|
39
|
+
*/
|
|
40
|
+
validators?: ValidatorSet;
|
|
41
|
+
/**
|
|
42
|
+
* Storage Fund info
|
|
43
|
+
*
|
|
44
|
+
* @generated from protobuf field: optional sui.rpc.v2.StorageFund storage_fund = 5;
|
|
45
|
+
*/
|
|
46
|
+
storageFund?: StorageFund;
|
|
47
|
+
/**
|
|
48
|
+
* Set of system config parameters
|
|
49
|
+
*
|
|
50
|
+
* @generated from protobuf field: optional sui.rpc.v2.SystemParameters parameters = 6;
|
|
51
|
+
*/
|
|
52
|
+
parameters?: SystemParameters;
|
|
53
|
+
/**
|
|
54
|
+
* The reference gas price for this epoch
|
|
55
|
+
*
|
|
56
|
+
* @generated from protobuf field: optional uint64 reference_gas_price = 7;
|
|
57
|
+
*/
|
|
58
|
+
referenceGasPrice?: bigint;
|
|
59
|
+
/**
|
|
60
|
+
* A list of the records of validator reporting each other.
|
|
61
|
+
*
|
|
62
|
+
* There is an entry in this list for each validator that has been reported
|
|
63
|
+
* at least once. Each record contains all the validators that reported
|
|
64
|
+
* them. If a validator has never been reported they don't have a record in this list.
|
|
65
|
+
* This lists persists across epoch: a peer continues being in a reported state until the
|
|
66
|
+
* reporter doesn't explicitly remove their report.
|
|
67
|
+
*
|
|
68
|
+
* @generated from protobuf field: repeated sui.rpc.v2.ValidatorReportRecord validator_report_records = 8;
|
|
69
|
+
*/
|
|
70
|
+
validatorReportRecords: ValidatorReportRecord[];
|
|
71
|
+
/**
|
|
72
|
+
* Schedule of stake subsidies given out each epoch.
|
|
73
|
+
*
|
|
74
|
+
* @generated from protobuf field: optional sui.rpc.v2.StakeSubsidy stake_subsidy = 9;
|
|
75
|
+
*/
|
|
76
|
+
stakeSubsidy?: StakeSubsidy;
|
|
77
|
+
/**
|
|
78
|
+
* Whether the system is running in a downgraded safe mode due to a non-recoverable bug.
|
|
79
|
+
* This is set whenever we failed to execute advance_epoch, and ended up executing advance_epoch_safe_mode.
|
|
80
|
+
* It can be reset once we are able to successfully execute advance_epoch.
|
|
81
|
+
* The rest of the fields starting with `safe_mode_` are accumulated during safe mode
|
|
82
|
+
* when advance_epoch_safe_mode is executed. They will eventually be processed once we
|
|
83
|
+
* are out of safe mode.
|
|
84
|
+
*
|
|
85
|
+
* @generated from protobuf field: optional bool safe_mode = 10;
|
|
86
|
+
*/
|
|
87
|
+
safeMode?: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Storage rewards accumulated during safe_mode
|
|
90
|
+
*
|
|
91
|
+
* @generated from protobuf field: optional uint64 safe_mode_storage_rewards = 11;
|
|
92
|
+
*/
|
|
93
|
+
safeModeStorageRewards?: bigint;
|
|
94
|
+
/**
|
|
95
|
+
* Computation rewards accumulated during safe_mode
|
|
96
|
+
*
|
|
97
|
+
* @generated from protobuf field: optional uint64 safe_mode_computation_rewards = 12;
|
|
98
|
+
*/
|
|
99
|
+
safeModeComputationRewards?: bigint;
|
|
100
|
+
/**
|
|
101
|
+
* Storage rebates paid out during safe_mode
|
|
102
|
+
*
|
|
103
|
+
* @generated from protobuf field: optional uint64 safe_mode_storage_rebates = 13;
|
|
104
|
+
*/
|
|
105
|
+
safeModeStorageRebates?: bigint;
|
|
106
|
+
/**
|
|
107
|
+
* Nonrefundable storage fees accumulated during safe_mode
|
|
108
|
+
*
|
|
109
|
+
* @generated from protobuf field: optional uint64 safe_mode_non_refundable_storage_fee = 14;
|
|
110
|
+
*/
|
|
111
|
+
safeModeNonRefundableStorageFee?: bigint;
|
|
112
|
+
/**
|
|
113
|
+
* Unix timestamp of when this this epoch started
|
|
114
|
+
*
|
|
115
|
+
* @generated from protobuf field: optional uint64 epoch_start_timestamp_ms = 15;
|
|
116
|
+
*/
|
|
117
|
+
epochStartTimestampMs?: bigint;
|
|
118
|
+
/**
|
|
119
|
+
* Any extra fields that's not defined statically.
|
|
120
|
+
*
|
|
121
|
+
* @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 16;
|
|
122
|
+
*/
|
|
123
|
+
extraFields?: MoveTable;
|
|
124
124
|
}
|
|
125
125
|
/**
|
|
126
126
|
* @generated from protobuf message sui.rpc.v2.ValidatorReportRecord
|
|
127
127
|
*/
|
|
128
128
|
export interface ValidatorReportRecord {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
129
|
+
/**
|
|
130
|
+
* The address of the validator being reported
|
|
131
|
+
*
|
|
132
|
+
* @generated from protobuf field: optional string reported = 1;
|
|
133
|
+
*/
|
|
134
|
+
reported?: string;
|
|
135
|
+
/**
|
|
136
|
+
* The list of validator (addresses) that are reporting on the validator specified by `reported`
|
|
137
|
+
*
|
|
138
|
+
* @generated from protobuf field: repeated string reporters = 2;
|
|
139
|
+
*/
|
|
140
|
+
reporters: string[];
|
|
141
141
|
}
|
|
142
142
|
/**
|
|
143
143
|
* @generated from protobuf message sui.rpc.v2.SystemParameters
|
|
144
144
|
*/
|
|
145
145
|
export interface SystemParameters {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
146
|
+
/**
|
|
147
|
+
* The duration of an epoch, in milliseconds.
|
|
148
|
+
*
|
|
149
|
+
* @generated from protobuf field: optional uint64 epoch_duration_ms = 1;
|
|
150
|
+
*/
|
|
151
|
+
epochDurationMs?: bigint;
|
|
152
|
+
/**
|
|
153
|
+
* The starting epoch in which stake subsidies start being paid out
|
|
154
|
+
*
|
|
155
|
+
* @generated from protobuf field: optional uint64 stake_subsidy_start_epoch = 2;
|
|
156
|
+
*/
|
|
157
|
+
stakeSubsidyStartEpoch?: bigint;
|
|
158
|
+
/**
|
|
159
|
+
* Minimum number of active validators at any moment.
|
|
160
|
+
*
|
|
161
|
+
* @generated from protobuf field: optional uint64 min_validator_count = 3;
|
|
162
|
+
*/
|
|
163
|
+
minValidatorCount?: bigint;
|
|
164
|
+
/**
|
|
165
|
+
* Maximum number of active validators at any moment.
|
|
166
|
+
* We do not allow the number of validators in any epoch to go above this.
|
|
167
|
+
*
|
|
168
|
+
* @generated from protobuf field: optional uint64 max_validator_count = 4;
|
|
169
|
+
*/
|
|
170
|
+
maxValidatorCount?: bigint;
|
|
171
|
+
/**
|
|
172
|
+
* Deprecated.
|
|
173
|
+
* Lower-bound on the amount of stake required to become a validator.
|
|
174
|
+
*
|
|
175
|
+
* @generated from protobuf field: optional uint64 min_validator_joining_stake = 5;
|
|
176
|
+
*/
|
|
177
|
+
minValidatorJoiningStake?: bigint;
|
|
178
|
+
/**
|
|
179
|
+
* Deprecated.
|
|
180
|
+
* Validators with stake amount below `validator_low_stake_threshold` are considered to
|
|
181
|
+
* have low stake and will be escorted out of the validator set after being below this
|
|
182
|
+
* threshold for more than `validator_low_stake_grace_period` number of epochs.
|
|
183
|
+
*
|
|
184
|
+
* @generated from protobuf field: optional uint64 validator_low_stake_threshold = 6;
|
|
185
|
+
*/
|
|
186
|
+
validatorLowStakeThreshold?: bigint;
|
|
187
|
+
/**
|
|
188
|
+
* Deprecated.
|
|
189
|
+
* Validators with stake below `validator_very_low_stake_threshold` will be removed
|
|
190
|
+
* immediately at epoch change, no grace period.
|
|
191
|
+
*
|
|
192
|
+
* @generated from protobuf field: optional uint64 validator_very_low_stake_threshold = 7;
|
|
193
|
+
*/
|
|
194
|
+
validatorVeryLowStakeThreshold?: bigint;
|
|
195
|
+
/**
|
|
196
|
+
* A validator can have stake below `validator_low_stake_threshold`
|
|
197
|
+
* for this many epochs before being kicked out.
|
|
198
|
+
*
|
|
199
|
+
* @generated from protobuf field: optional uint64 validator_low_stake_grace_period = 8;
|
|
200
|
+
*/
|
|
201
|
+
validatorLowStakeGracePeriod?: bigint;
|
|
202
|
+
/**
|
|
203
|
+
* Any extra fields that are not defined statically.
|
|
204
|
+
*
|
|
205
|
+
* @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 9;
|
|
206
|
+
*/
|
|
207
|
+
extraFields?: MoveTable;
|
|
208
208
|
}
|
|
209
209
|
/**
|
|
210
210
|
* A message that represents a Move `0x2::table::Table` or `0x2::bag::Bag`
|
|
@@ -212,61 +212,61 @@ export interface SystemParameters {
|
|
|
212
212
|
* @generated from protobuf message sui.rpc.v2.MoveTable
|
|
213
213
|
*/
|
|
214
214
|
export interface MoveTable {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
215
|
+
/**
|
|
216
|
+
* The UID of the table or bag
|
|
217
|
+
*
|
|
218
|
+
* @generated from protobuf field: optional string id = 1;
|
|
219
|
+
*/
|
|
220
|
+
id?: string;
|
|
221
|
+
/**
|
|
222
|
+
* The size or number of key-value pairs in the table or bag
|
|
223
|
+
*
|
|
224
|
+
* @generated from protobuf field: optional uint64 size = 2;
|
|
225
|
+
*/
|
|
226
|
+
size?: bigint;
|
|
227
227
|
}
|
|
228
228
|
/**
|
|
229
229
|
* @generated from protobuf message sui.rpc.v2.StakeSubsidy
|
|
230
230
|
*/
|
|
231
231
|
export interface StakeSubsidy {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
232
|
+
/**
|
|
233
|
+
* Balance of SUI set aside for stake subsidies that will be drawn down over time.
|
|
234
|
+
*
|
|
235
|
+
* @generated from protobuf field: optional uint64 balance = 1;
|
|
236
|
+
*/
|
|
237
|
+
balance?: bigint;
|
|
238
|
+
/**
|
|
239
|
+
* Count of the number of times stake subsidies have been distributed.
|
|
240
|
+
*
|
|
241
|
+
* @generated from protobuf field: optional uint64 distribution_counter = 2;
|
|
242
|
+
*/
|
|
243
|
+
distributionCounter?: bigint;
|
|
244
|
+
/**
|
|
245
|
+
* The amount of stake subsidy to be drawn down per distribution.
|
|
246
|
+
* This amount decays and decreases over time.
|
|
247
|
+
*
|
|
248
|
+
* @generated from protobuf field: optional uint64 current_distribution_amount = 3;
|
|
249
|
+
*/
|
|
250
|
+
currentDistributionAmount?: bigint;
|
|
251
|
+
/**
|
|
252
|
+
* Number of distributions to occur before the distribution amount decays.
|
|
253
|
+
*
|
|
254
|
+
* @generated from protobuf field: optional uint64 stake_subsidy_period_length = 4;
|
|
255
|
+
*/
|
|
256
|
+
stakeSubsidyPeriodLength?: bigint;
|
|
257
|
+
/**
|
|
258
|
+
* The rate at which the distribution amount decays at the end of each
|
|
259
|
+
* period. Expressed in basis points.
|
|
260
|
+
*
|
|
261
|
+
* @generated from protobuf field: optional uint32 stake_subsidy_decrease_rate = 5;
|
|
262
|
+
*/
|
|
263
|
+
stakeSubsidyDecreaseRate?: number;
|
|
264
|
+
/**
|
|
265
|
+
* Any extra fields that's not defined statically.
|
|
266
|
+
*
|
|
267
|
+
* @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 6;
|
|
268
|
+
*/
|
|
269
|
+
extraFields?: MoveTable;
|
|
270
270
|
}
|
|
271
271
|
/**
|
|
272
272
|
* Struct representing the onchain storage fund.
|
|
@@ -274,101 +274,101 @@ export interface StakeSubsidy {
|
|
|
274
274
|
* @generated from protobuf message sui.rpc.v2.StorageFund
|
|
275
275
|
*/
|
|
276
276
|
export interface StorageFund {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
277
|
+
/**
|
|
278
|
+
* This is the sum of `storage_rebate` of
|
|
279
|
+
* all objects currently stored on-chain. To maintain this invariant, the only inflow of this
|
|
280
|
+
* balance is storage charges collected from transactions, and the only outflow is storage rebates
|
|
281
|
+
* of transactions, including both the portion refunded to the transaction senders as well as
|
|
282
|
+
* the non-refundable portion taken out and put into `non_refundable_balance`.
|
|
283
|
+
*
|
|
284
|
+
* @generated from protobuf field: optional uint64 total_object_storage_rebates = 1;
|
|
285
|
+
*/
|
|
286
|
+
totalObjectStorageRebates?: bigint;
|
|
287
|
+
/**
|
|
288
|
+
* Represents any remaining inflow of the storage fund that should not
|
|
289
|
+
* be taken out of the fund.
|
|
290
|
+
*
|
|
291
|
+
* @generated from protobuf field: optional uint64 non_refundable_balance = 2;
|
|
292
|
+
*/
|
|
293
|
+
nonRefundableBalance?: bigint;
|
|
294
294
|
}
|
|
295
295
|
/**
|
|
296
296
|
* @generated from protobuf message sui.rpc.v2.ValidatorSet
|
|
297
297
|
*/
|
|
298
298
|
export interface ValidatorSet {
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
299
|
+
/**
|
|
300
|
+
* Total amount of stake from all active validators at the beginning of the epoch.
|
|
301
|
+
* Written only once per epoch, in `advance_epoch` function.
|
|
302
|
+
*
|
|
303
|
+
* @generated from protobuf field: optional uint64 total_stake = 1;
|
|
304
|
+
*/
|
|
305
|
+
totalStake?: bigint;
|
|
306
|
+
/**
|
|
307
|
+
* The current list of active validators.
|
|
308
|
+
*
|
|
309
|
+
* @generated from protobuf field: repeated sui.rpc.v2.Validator active_validators = 2;
|
|
310
|
+
*/
|
|
311
|
+
activeValidators: Validator[];
|
|
312
|
+
/**
|
|
313
|
+
* List of new validator candidates added during the current epoch.
|
|
314
|
+
* They will be processed at the end of the epoch.
|
|
315
|
+
*
|
|
316
|
+
* key: u64 (index), value: 0x3::validator::Validator
|
|
317
|
+
*
|
|
318
|
+
* @generated from protobuf field: optional sui.rpc.v2.MoveTable pending_active_validators = 3;
|
|
319
|
+
*/
|
|
320
|
+
pendingActiveValidators?: MoveTable;
|
|
321
|
+
/**
|
|
322
|
+
* Removal requests from the validators. Each element is an index
|
|
323
|
+
* pointing to `active_validators`.
|
|
324
|
+
*
|
|
325
|
+
* @generated from protobuf field: repeated uint64 pending_removals = 4;
|
|
326
|
+
*/
|
|
327
|
+
pendingRemovals: bigint[];
|
|
328
|
+
/**
|
|
329
|
+
* Mappings from staking pool's ID to the sui address of a validator.
|
|
330
|
+
*
|
|
331
|
+
* key: address (staking pool Id), value: address (sui address of the validator)
|
|
332
|
+
*
|
|
333
|
+
* @generated from protobuf field: optional sui.rpc.v2.MoveTable staking_pool_mappings = 5;
|
|
334
|
+
*/
|
|
335
|
+
stakingPoolMappings?: MoveTable;
|
|
336
|
+
/**
|
|
337
|
+
* Mapping from a staking pool ID to the inactive validator that has that pool as its staking pool.
|
|
338
|
+
* When a validator is deactivated the validator is removed from `active_validators` it
|
|
339
|
+
* is added to this table so that stakers can continue to withdraw their stake from it.
|
|
340
|
+
*
|
|
341
|
+
* key: address (staking pool Id), value: 0x3::validator_wrapper::ValidatorWrapper
|
|
342
|
+
*
|
|
343
|
+
* @generated from protobuf field: optional sui.rpc.v2.MoveTable inactive_validators = 6;
|
|
344
|
+
*/
|
|
345
|
+
inactiveValidators?: MoveTable;
|
|
346
|
+
/**
|
|
347
|
+
* Table storing preactive/candidate validators, mapping their addresses to their `Validator ` structs.
|
|
348
|
+
* When an address calls `request_add_validator_candidate`, they get added to this table and become a preactive
|
|
349
|
+
* validator.
|
|
350
|
+
* When the candidate has met the min stake requirement, they can call `request_add_validator` to
|
|
351
|
+
* officially add them to the active validator set `active_validators` next epoch.
|
|
352
|
+
*
|
|
353
|
+
* key: address (sui address of the validator), value: 0x3::validator_wrapper::ValidatorWrapper
|
|
354
|
+
*
|
|
355
|
+
* @generated from protobuf field: optional sui.rpc.v2.MoveTable validator_candidates = 7;
|
|
356
|
+
*/
|
|
357
|
+
validatorCandidates?: MoveTable;
|
|
358
|
+
/**
|
|
359
|
+
* Table storing the number of epochs during which a validator's stake has been below the low stake threshold.
|
|
360
|
+
*
|
|
361
|
+
* @generated from protobuf field: map<string, uint64> at_risk_validators = 8;
|
|
362
|
+
*/
|
|
363
|
+
atRiskValidators: {
|
|
364
|
+
[key: string]: bigint;
|
|
365
|
+
};
|
|
366
|
+
/**
|
|
367
|
+
* Any extra fields that's not defined statically.
|
|
368
|
+
*
|
|
369
|
+
* @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 9;
|
|
370
|
+
*/
|
|
371
|
+
extraFields?: MoveTable;
|
|
372
372
|
}
|
|
373
373
|
/**
|
|
374
374
|
* Definition of a Validator in the system contracts
|
|
@@ -378,174 +378,174 @@ export interface ValidatorSet {
|
|
|
378
378
|
* @generated from protobuf message sui.rpc.v2.Validator
|
|
379
379
|
*/
|
|
380
380
|
export interface Validator {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
381
|
+
/**
|
|
382
|
+
* A unique human-readable name of this validator.
|
|
383
|
+
*
|
|
384
|
+
* @generated from protobuf field: optional string name = 1;
|
|
385
|
+
*/
|
|
386
|
+
name?: string;
|
|
387
|
+
/**
|
|
388
|
+
* The Sui Address of the validator. This is the sender that created the Validator object,
|
|
389
|
+
* and also the address to send validator/coins to during withdraws.
|
|
390
|
+
*
|
|
391
|
+
* @generated from protobuf field: optional string address = 2;
|
|
392
|
+
*/
|
|
393
|
+
address?: string;
|
|
394
|
+
/**
|
|
395
|
+
* @generated from protobuf field: optional string description = 3;
|
|
396
|
+
*/
|
|
397
|
+
description?: string;
|
|
398
|
+
/**
|
|
399
|
+
* @generated from protobuf field: optional string image_url = 4;
|
|
400
|
+
*/
|
|
401
|
+
imageUrl?: string;
|
|
402
|
+
/**
|
|
403
|
+
* @generated from protobuf field: optional string project_url = 5;
|
|
404
|
+
*/
|
|
405
|
+
projectUrl?: string;
|
|
406
|
+
/**
|
|
407
|
+
* The public key bytes corresponding to the private key that the validator
|
|
408
|
+
* holds to sign transactions. For now, this is the same as AuthorityName.
|
|
409
|
+
*
|
|
410
|
+
* @generated from protobuf field: optional bytes protocol_public_key = 7;
|
|
411
|
+
*/
|
|
412
|
+
protocolPublicKey?: Uint8Array;
|
|
413
|
+
/**
|
|
414
|
+
* This is a proof that the validator has ownership of the protocol private key
|
|
415
|
+
*
|
|
416
|
+
* @generated from protobuf field: optional bytes proof_of_possession = 8;
|
|
417
|
+
*/
|
|
418
|
+
proofOfPossession?: Uint8Array;
|
|
419
|
+
/**
|
|
420
|
+
* The public key bytes corresponding to the private key that the validator
|
|
421
|
+
* uses to establish TLS connections
|
|
422
|
+
*
|
|
423
|
+
* @generated from protobuf field: optional bytes network_public_key = 10;
|
|
424
|
+
*/
|
|
425
|
+
networkPublicKey?: Uint8Array;
|
|
426
|
+
/**
|
|
427
|
+
* The public key bytes corresponding to the Narwhal Worker
|
|
428
|
+
*
|
|
429
|
+
* @generated from protobuf field: optional bytes worker_public_key = 12;
|
|
430
|
+
*/
|
|
431
|
+
workerPublicKey?: Uint8Array;
|
|
432
|
+
/**
|
|
433
|
+
* The network address of the validator (could also contain extra info such as port, DNS and etc.).
|
|
434
|
+
*
|
|
435
|
+
* @generated from protobuf field: optional string network_address = 13;
|
|
436
|
+
*/
|
|
437
|
+
networkAddress?: string;
|
|
438
|
+
/**
|
|
439
|
+
* The address of the validator used for p2p activities such as state sync (could also contain extra info such as port, DNS and etc.).
|
|
440
|
+
*
|
|
441
|
+
* @generated from protobuf field: optional string p2p_address = 14 [json_name = "p2pAddress"];
|
|
442
|
+
*/
|
|
443
|
+
p2PAddress?: string;
|
|
444
|
+
/**
|
|
445
|
+
* The address of the narwhal primary
|
|
446
|
+
*
|
|
447
|
+
* @generated from protobuf field: optional string primary_address = 15;
|
|
448
|
+
*/
|
|
449
|
+
primaryAddress?: string;
|
|
450
|
+
/**
|
|
451
|
+
* The address of the narwhal worker
|
|
452
|
+
*
|
|
453
|
+
* @generated from protobuf field: optional string worker_address = 16;
|
|
454
|
+
*/
|
|
455
|
+
workerAddress?: string;
|
|
456
|
+
/**
|
|
457
|
+
* @generated from protobuf field: optional bytes next_epoch_protocol_public_key = 18;
|
|
458
|
+
*/
|
|
459
|
+
nextEpochProtocolPublicKey?: Uint8Array;
|
|
460
|
+
/**
|
|
461
|
+
* @generated from protobuf field: optional bytes next_epoch_proof_of_possession = 19;
|
|
462
|
+
*/
|
|
463
|
+
nextEpochProofOfPossession?: Uint8Array;
|
|
464
|
+
/**
|
|
465
|
+
* @generated from protobuf field: optional bytes next_epoch_network_public_key = 21;
|
|
466
|
+
*/
|
|
467
|
+
nextEpochNetworkPublicKey?: Uint8Array;
|
|
468
|
+
/**
|
|
469
|
+
* @generated from protobuf field: optional bytes next_epoch_worker_public_key = 23;
|
|
470
|
+
*/
|
|
471
|
+
nextEpochWorkerPublicKey?: Uint8Array;
|
|
472
|
+
/**
|
|
473
|
+
* @generated from protobuf field: optional string next_epoch_network_address = 24;
|
|
474
|
+
*/
|
|
475
|
+
nextEpochNetworkAddress?: string;
|
|
476
|
+
/**
|
|
477
|
+
* @generated from protobuf field: optional string next_epoch_p2p_address = 25 [json_name = "nextEpochP2pAddress"];
|
|
478
|
+
*/
|
|
479
|
+
nextEpochP2PAddress?: string;
|
|
480
|
+
/**
|
|
481
|
+
* @generated from protobuf field: optional string next_epoch_primary_address = 26;
|
|
482
|
+
*/
|
|
483
|
+
nextEpochPrimaryAddress?: string;
|
|
484
|
+
/**
|
|
485
|
+
* @generated from protobuf field: optional string next_epoch_worker_address = 27;
|
|
486
|
+
*/
|
|
487
|
+
nextEpochWorkerAddress?: string;
|
|
488
|
+
/**
|
|
489
|
+
* Any extra fields that's not defined statically in the `ValidatorMetadata` struct
|
|
490
|
+
*
|
|
491
|
+
* @generated from protobuf field: optional sui.rpc.v2.MoveTable metadata_extra_fields = 28;
|
|
492
|
+
*/
|
|
493
|
+
metadataExtraFields?: MoveTable;
|
|
494
|
+
/**
|
|
495
|
+
* The voting power of this validator, which might be different from its
|
|
496
|
+
* stake amount.
|
|
497
|
+
*
|
|
498
|
+
* @generated from protobuf field: optional uint64 voting_power = 29;
|
|
499
|
+
*/
|
|
500
|
+
votingPower?: bigint;
|
|
501
|
+
/**
|
|
502
|
+
* The ID of this validator's current valid `UnverifiedValidatorOperationCap`
|
|
503
|
+
*
|
|
504
|
+
* @generated from protobuf field: optional string operation_cap_id = 30;
|
|
505
|
+
*/
|
|
506
|
+
operationCapId?: string;
|
|
507
|
+
/**
|
|
508
|
+
* Gas price quote, updated only at end of epoch.
|
|
509
|
+
*
|
|
510
|
+
* @generated from protobuf field: optional uint64 gas_price = 31;
|
|
511
|
+
*/
|
|
512
|
+
gasPrice?: bigint;
|
|
513
|
+
/**
|
|
514
|
+
* Staking pool for this validator.
|
|
515
|
+
*
|
|
516
|
+
* @generated from protobuf field: optional sui.rpc.v2.StakingPool staking_pool = 32;
|
|
517
|
+
*/
|
|
518
|
+
stakingPool?: StakingPool;
|
|
519
|
+
/**
|
|
520
|
+
* Commission rate of the validator, in basis point.
|
|
521
|
+
*
|
|
522
|
+
* @generated from protobuf field: optional uint64 commission_rate = 33;
|
|
523
|
+
*/
|
|
524
|
+
commissionRate?: bigint;
|
|
525
|
+
/**
|
|
526
|
+
* Total amount of stake that would be active in the next epoch.
|
|
527
|
+
*
|
|
528
|
+
* @generated from protobuf field: optional uint64 next_epoch_stake = 34;
|
|
529
|
+
*/
|
|
530
|
+
nextEpochStake?: bigint;
|
|
531
|
+
/**
|
|
532
|
+
* This validator's gas price quote for the next epoch.
|
|
533
|
+
*
|
|
534
|
+
* @generated from protobuf field: optional uint64 next_epoch_gas_price = 35;
|
|
535
|
+
*/
|
|
536
|
+
nextEpochGasPrice?: bigint;
|
|
537
|
+
/**
|
|
538
|
+
* The commission rate of the validator starting the next epoch, in basis point.
|
|
539
|
+
*
|
|
540
|
+
* @generated from protobuf field: optional uint64 next_epoch_commission_rate = 36;
|
|
541
|
+
*/
|
|
542
|
+
nextEpochCommissionRate?: bigint;
|
|
543
|
+
/**
|
|
544
|
+
* Any extra fields that's not defined statically.
|
|
545
|
+
*
|
|
546
|
+
* @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 37;
|
|
547
|
+
*/
|
|
548
|
+
extraFields?: MoveTable;
|
|
549
549
|
}
|
|
550
550
|
/**
|
|
551
551
|
* A staking pool embedded in each validator struct in the system state object.
|
|
@@ -553,104 +553,173 @@ export interface Validator {
|
|
|
553
553
|
* @generated from protobuf message sui.rpc.v2.StakingPool
|
|
554
554
|
*/
|
|
555
555
|
export interface StakingPool {
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
556
|
+
/**
|
|
557
|
+
* UID of the StakingPool object
|
|
558
|
+
*
|
|
559
|
+
* @generated from protobuf field: optional string id = 1;
|
|
560
|
+
*/
|
|
561
|
+
id?: string;
|
|
562
|
+
/**
|
|
563
|
+
* The epoch at which this pool became active.
|
|
564
|
+
* The value is `None` if the pool is pre-active and `Some(<epoch_number>)` if active or inactive.
|
|
565
|
+
*
|
|
566
|
+
* @generated from protobuf field: optional uint64 activation_epoch = 2;
|
|
567
|
+
*/
|
|
568
|
+
activationEpoch?: bigint;
|
|
569
|
+
/**
|
|
570
|
+
* The epoch at which this staking pool ceased to be active. `None` = {pre-active, active},
|
|
571
|
+
* `Some(<epoch_number>)` if in-active, and it was de-activated at epoch `<epoch_number>`.
|
|
572
|
+
*
|
|
573
|
+
* @generated from protobuf field: optional uint64 deactivation_epoch = 3;
|
|
574
|
+
*/
|
|
575
|
+
deactivationEpoch?: bigint;
|
|
576
|
+
/**
|
|
577
|
+
* The total number of SUI tokens in this pool, including the SUI in the rewards_pool, as well as in all the principal
|
|
578
|
+
* in the `StakedSui` object, updated at epoch boundaries.
|
|
579
|
+
*
|
|
580
|
+
* @generated from protobuf field: optional uint64 sui_balance = 4;
|
|
581
|
+
*/
|
|
582
|
+
suiBalance?: bigint;
|
|
583
|
+
/**
|
|
584
|
+
* The epoch stake rewards will be added here at the end of each epoch.
|
|
585
|
+
*
|
|
586
|
+
* @generated from protobuf field: optional uint64 rewards_pool = 5;
|
|
587
|
+
*/
|
|
588
|
+
rewardsPool?: bigint;
|
|
589
|
+
/**
|
|
590
|
+
* Total number of pool tokens issued by the pool.
|
|
591
|
+
*
|
|
592
|
+
* @generated from protobuf field: optional uint64 pool_token_balance = 6;
|
|
593
|
+
*/
|
|
594
|
+
poolTokenBalance?: bigint;
|
|
595
|
+
/**
|
|
596
|
+
* Exchange rate history of previous epochs.
|
|
597
|
+
*
|
|
598
|
+
* The entries start from the `activation_epoch` of this pool and contains exchange rates at the beginning of each epoch,
|
|
599
|
+
* i.e., right after the rewards for the previous epoch have been deposited into the pool.
|
|
600
|
+
*
|
|
601
|
+
* key: u64 (epoch number), value: PoolTokenExchangeRate
|
|
602
|
+
*
|
|
603
|
+
* @generated from protobuf field: optional sui.rpc.v2.MoveTable exchange_rates = 7;
|
|
604
|
+
*/
|
|
605
|
+
exchangeRates?: MoveTable;
|
|
606
|
+
/**
|
|
607
|
+
* Pending stake amount for this epoch, emptied at epoch boundaries.
|
|
608
|
+
*
|
|
609
|
+
* @generated from protobuf field: optional uint64 pending_stake = 8;
|
|
610
|
+
*/
|
|
611
|
+
pendingStake?: bigint;
|
|
612
|
+
/**
|
|
613
|
+
* Pending stake withdrawn during the current epoch, emptied at epoch boundaries.
|
|
614
|
+
* This includes both the principal and rewards SUI withdrawn.
|
|
615
|
+
*
|
|
616
|
+
* @generated from protobuf field: optional uint64 pending_total_sui_withdraw = 9;
|
|
617
|
+
*/
|
|
618
|
+
pendingTotalSuiWithdraw?: bigint;
|
|
619
|
+
/**
|
|
620
|
+
* Pending pool token withdrawn during the current epoch, emptied at epoch boundaries.
|
|
621
|
+
*
|
|
622
|
+
* @generated from protobuf field: optional uint64 pending_pool_token_withdraw = 10;
|
|
623
|
+
*/
|
|
624
|
+
pendingPoolTokenWithdraw?: bigint;
|
|
625
|
+
/**
|
|
626
|
+
* Any extra fields that's not defined statically.
|
|
627
|
+
*
|
|
628
|
+
* @generated from protobuf field: optional sui.rpc.v2.MoveTable extra_fields = 11;
|
|
629
|
+
*/
|
|
630
|
+
extraFields?: MoveTable;
|
|
631
631
|
}
|
|
632
632
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
633
633
|
class SystemState$Type extends MessageType<SystemState> {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
634
|
+
constructor() {
|
|
635
|
+
super('sui.rpc.v2.SystemState', [
|
|
636
|
+
{
|
|
637
|
+
no: 1,
|
|
638
|
+
name: 'version',
|
|
639
|
+
kind: 'scalar',
|
|
640
|
+
opt: true,
|
|
641
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
642
|
+
L: 0 /*LongType.BIGINT*/,
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
no: 2,
|
|
646
|
+
name: 'epoch',
|
|
647
|
+
kind: 'scalar',
|
|
648
|
+
opt: true,
|
|
649
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
650
|
+
L: 0 /*LongType.BIGINT*/,
|
|
651
|
+
},
|
|
652
|
+
{
|
|
653
|
+
no: 3,
|
|
654
|
+
name: 'protocol_version',
|
|
655
|
+
kind: 'scalar',
|
|
656
|
+
opt: true,
|
|
657
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
658
|
+
L: 0 /*LongType.BIGINT*/,
|
|
659
|
+
},
|
|
660
|
+
{ no: 4, name: 'validators', kind: 'message', T: () => ValidatorSet },
|
|
661
|
+
{ no: 5, name: 'storage_fund', kind: 'message', T: () => StorageFund },
|
|
662
|
+
{ no: 6, name: 'parameters', kind: 'message', T: () => SystemParameters },
|
|
663
|
+
{
|
|
664
|
+
no: 7,
|
|
665
|
+
name: 'reference_gas_price',
|
|
666
|
+
kind: 'scalar',
|
|
667
|
+
opt: true,
|
|
668
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
669
|
+
L: 0 /*LongType.BIGINT*/,
|
|
670
|
+
},
|
|
671
|
+
{
|
|
672
|
+
no: 8,
|
|
673
|
+
name: 'validator_report_records',
|
|
674
|
+
kind: 'message',
|
|
675
|
+
repeat: 1 /*RepeatType.PACKED*/,
|
|
676
|
+
T: () => ValidatorReportRecord,
|
|
677
|
+
},
|
|
678
|
+
{ no: 9, name: 'stake_subsidy', kind: 'message', T: () => StakeSubsidy },
|
|
679
|
+
{ no: 10, name: 'safe_mode', kind: 'scalar', opt: true, T: 8 /*ScalarType.BOOL*/ },
|
|
680
|
+
{
|
|
681
|
+
no: 11,
|
|
682
|
+
name: 'safe_mode_storage_rewards',
|
|
683
|
+
kind: 'scalar',
|
|
684
|
+
opt: true,
|
|
685
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
686
|
+
L: 0 /*LongType.BIGINT*/,
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
no: 12,
|
|
690
|
+
name: 'safe_mode_computation_rewards',
|
|
691
|
+
kind: 'scalar',
|
|
692
|
+
opt: true,
|
|
693
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
694
|
+
L: 0 /*LongType.BIGINT*/,
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
no: 13,
|
|
698
|
+
name: 'safe_mode_storage_rebates',
|
|
699
|
+
kind: 'scalar',
|
|
700
|
+
opt: true,
|
|
701
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
702
|
+
L: 0 /*LongType.BIGINT*/,
|
|
703
|
+
},
|
|
704
|
+
{
|
|
705
|
+
no: 14,
|
|
706
|
+
name: 'safe_mode_non_refundable_storage_fee',
|
|
707
|
+
kind: 'scalar',
|
|
708
|
+
opt: true,
|
|
709
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
710
|
+
L: 0 /*LongType.BIGINT*/,
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
no: 15,
|
|
714
|
+
name: 'epoch_start_timestamp_ms',
|
|
715
|
+
kind: 'scalar',
|
|
716
|
+
opt: true,
|
|
717
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
718
|
+
L: 0 /*LongType.BIGINT*/,
|
|
719
|
+
},
|
|
720
|
+
{ no: 16, name: 'extra_fields', kind: 'message', T: () => MoveTable },
|
|
721
|
+
]);
|
|
722
|
+
}
|
|
654
723
|
}
|
|
655
724
|
/**
|
|
656
725
|
* @generated MessageType for protobuf message sui.rpc.v2.SystemState
|
|
@@ -658,12 +727,18 @@ class SystemState$Type extends MessageType<SystemState> {
|
|
|
658
727
|
export const SystemState = new SystemState$Type();
|
|
659
728
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
660
729
|
class ValidatorReportRecord$Type extends MessageType<ValidatorReportRecord> {
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
730
|
+
constructor() {
|
|
731
|
+
super('sui.rpc.v2.ValidatorReportRecord', [
|
|
732
|
+
{ no: 1, name: 'reported', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
733
|
+
{
|
|
734
|
+
no: 2,
|
|
735
|
+
name: 'reporters',
|
|
736
|
+
kind: 'scalar',
|
|
737
|
+
repeat: 2 /*RepeatType.UNPACKED*/,
|
|
738
|
+
T: 9 /*ScalarType.STRING*/,
|
|
739
|
+
},
|
|
740
|
+
]);
|
|
741
|
+
}
|
|
667
742
|
}
|
|
668
743
|
/**
|
|
669
744
|
* @generated MessageType for protobuf message sui.rpc.v2.ValidatorReportRecord
|
|
@@ -671,19 +746,75 @@ class ValidatorReportRecord$Type extends MessageType<ValidatorReportRecord> {
|
|
|
671
746
|
export const ValidatorReportRecord = new ValidatorReportRecord$Type();
|
|
672
747
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
673
748
|
class SystemParameters$Type extends MessageType<SystemParameters> {
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
749
|
+
constructor() {
|
|
750
|
+
super('sui.rpc.v2.SystemParameters', [
|
|
751
|
+
{
|
|
752
|
+
no: 1,
|
|
753
|
+
name: 'epoch_duration_ms',
|
|
754
|
+
kind: 'scalar',
|
|
755
|
+
opt: true,
|
|
756
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
757
|
+
L: 0 /*LongType.BIGINT*/,
|
|
758
|
+
},
|
|
759
|
+
{
|
|
760
|
+
no: 2,
|
|
761
|
+
name: 'stake_subsidy_start_epoch',
|
|
762
|
+
kind: 'scalar',
|
|
763
|
+
opt: true,
|
|
764
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
765
|
+
L: 0 /*LongType.BIGINT*/,
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
no: 3,
|
|
769
|
+
name: 'min_validator_count',
|
|
770
|
+
kind: 'scalar',
|
|
771
|
+
opt: true,
|
|
772
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
773
|
+
L: 0 /*LongType.BIGINT*/,
|
|
774
|
+
},
|
|
775
|
+
{
|
|
776
|
+
no: 4,
|
|
777
|
+
name: 'max_validator_count',
|
|
778
|
+
kind: 'scalar',
|
|
779
|
+
opt: true,
|
|
780
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
781
|
+
L: 0 /*LongType.BIGINT*/,
|
|
782
|
+
},
|
|
783
|
+
{
|
|
784
|
+
no: 5,
|
|
785
|
+
name: 'min_validator_joining_stake',
|
|
786
|
+
kind: 'scalar',
|
|
787
|
+
opt: true,
|
|
788
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
789
|
+
L: 0 /*LongType.BIGINT*/,
|
|
790
|
+
},
|
|
791
|
+
{
|
|
792
|
+
no: 6,
|
|
793
|
+
name: 'validator_low_stake_threshold',
|
|
794
|
+
kind: 'scalar',
|
|
795
|
+
opt: true,
|
|
796
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
797
|
+
L: 0 /*LongType.BIGINT*/,
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
no: 7,
|
|
801
|
+
name: 'validator_very_low_stake_threshold',
|
|
802
|
+
kind: 'scalar',
|
|
803
|
+
opt: true,
|
|
804
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
805
|
+
L: 0 /*LongType.BIGINT*/,
|
|
806
|
+
},
|
|
807
|
+
{
|
|
808
|
+
no: 8,
|
|
809
|
+
name: 'validator_low_stake_grace_period',
|
|
810
|
+
kind: 'scalar',
|
|
811
|
+
opt: true,
|
|
812
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
813
|
+
L: 0 /*LongType.BIGINT*/,
|
|
814
|
+
},
|
|
815
|
+
{ no: 9, name: 'extra_fields', kind: 'message', T: () => MoveTable },
|
|
816
|
+
]);
|
|
817
|
+
}
|
|
687
818
|
}
|
|
688
819
|
/**
|
|
689
820
|
* @generated MessageType for protobuf message sui.rpc.v2.SystemParameters
|
|
@@ -691,12 +822,19 @@ class SystemParameters$Type extends MessageType<SystemParameters> {
|
|
|
691
822
|
export const SystemParameters = new SystemParameters$Type();
|
|
692
823
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
693
824
|
class MoveTable$Type extends MessageType<MoveTable> {
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
825
|
+
constructor() {
|
|
826
|
+
super('sui.rpc.v2.MoveTable', [
|
|
827
|
+
{ no: 1, name: 'id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
828
|
+
{
|
|
829
|
+
no: 2,
|
|
830
|
+
name: 'size',
|
|
831
|
+
kind: 'scalar',
|
|
832
|
+
opt: true,
|
|
833
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
834
|
+
L: 0 /*LongType.BIGINT*/,
|
|
835
|
+
},
|
|
836
|
+
]);
|
|
837
|
+
}
|
|
700
838
|
}
|
|
701
839
|
/**
|
|
702
840
|
* @generated MessageType for protobuf message sui.rpc.v2.MoveTable
|
|
@@ -704,16 +842,50 @@ class MoveTable$Type extends MessageType<MoveTable> {
|
|
|
704
842
|
export const MoveTable = new MoveTable$Type();
|
|
705
843
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
706
844
|
class StakeSubsidy$Type extends MessageType<StakeSubsidy> {
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
845
|
+
constructor() {
|
|
846
|
+
super('sui.rpc.v2.StakeSubsidy', [
|
|
847
|
+
{
|
|
848
|
+
no: 1,
|
|
849
|
+
name: 'balance',
|
|
850
|
+
kind: 'scalar',
|
|
851
|
+
opt: true,
|
|
852
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
853
|
+
L: 0 /*LongType.BIGINT*/,
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
no: 2,
|
|
857
|
+
name: 'distribution_counter',
|
|
858
|
+
kind: 'scalar',
|
|
859
|
+
opt: true,
|
|
860
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
861
|
+
L: 0 /*LongType.BIGINT*/,
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
no: 3,
|
|
865
|
+
name: 'current_distribution_amount',
|
|
866
|
+
kind: 'scalar',
|
|
867
|
+
opt: true,
|
|
868
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
869
|
+
L: 0 /*LongType.BIGINT*/,
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
no: 4,
|
|
873
|
+
name: 'stake_subsidy_period_length',
|
|
874
|
+
kind: 'scalar',
|
|
875
|
+
opt: true,
|
|
876
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
877
|
+
L: 0 /*LongType.BIGINT*/,
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
no: 5,
|
|
881
|
+
name: 'stake_subsidy_decrease_rate',
|
|
882
|
+
kind: 'scalar',
|
|
883
|
+
opt: true,
|
|
884
|
+
T: 13 /*ScalarType.UINT32*/,
|
|
885
|
+
},
|
|
886
|
+
{ no: 6, name: 'extra_fields', kind: 'message', T: () => MoveTable },
|
|
887
|
+
]);
|
|
888
|
+
}
|
|
717
889
|
}
|
|
718
890
|
/**
|
|
719
891
|
* @generated MessageType for protobuf message sui.rpc.v2.StakeSubsidy
|
|
@@ -721,12 +893,26 @@ class StakeSubsidy$Type extends MessageType<StakeSubsidy> {
|
|
|
721
893
|
export const StakeSubsidy = new StakeSubsidy$Type();
|
|
722
894
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
723
895
|
class StorageFund$Type extends MessageType<StorageFund> {
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
896
|
+
constructor() {
|
|
897
|
+
super('sui.rpc.v2.StorageFund', [
|
|
898
|
+
{
|
|
899
|
+
no: 1,
|
|
900
|
+
name: 'total_object_storage_rebates',
|
|
901
|
+
kind: 'scalar',
|
|
902
|
+
opt: true,
|
|
903
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
904
|
+
L: 0 /*LongType.BIGINT*/,
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
no: 2,
|
|
908
|
+
name: 'non_refundable_balance',
|
|
909
|
+
kind: 'scalar',
|
|
910
|
+
opt: true,
|
|
911
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
912
|
+
L: 0 /*LongType.BIGINT*/,
|
|
913
|
+
},
|
|
914
|
+
]);
|
|
915
|
+
}
|
|
730
916
|
}
|
|
731
917
|
/**
|
|
732
918
|
* @generated MessageType for protobuf message sui.rpc.v2.StorageFund
|
|
@@ -734,19 +920,45 @@ class StorageFund$Type extends MessageType<StorageFund> {
|
|
|
734
920
|
export const StorageFund = new StorageFund$Type();
|
|
735
921
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
736
922
|
class ValidatorSet$Type extends MessageType<ValidatorSet> {
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
923
|
+
constructor() {
|
|
924
|
+
super('sui.rpc.v2.ValidatorSet', [
|
|
925
|
+
{
|
|
926
|
+
no: 1,
|
|
927
|
+
name: 'total_stake',
|
|
928
|
+
kind: 'scalar',
|
|
929
|
+
opt: true,
|
|
930
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
931
|
+
L: 0 /*LongType.BIGINT*/,
|
|
932
|
+
},
|
|
933
|
+
{
|
|
934
|
+
no: 2,
|
|
935
|
+
name: 'active_validators',
|
|
936
|
+
kind: 'message',
|
|
937
|
+
repeat: 1 /*RepeatType.PACKED*/,
|
|
938
|
+
T: () => Validator,
|
|
939
|
+
},
|
|
940
|
+
{ no: 3, name: 'pending_active_validators', kind: 'message', T: () => MoveTable },
|
|
941
|
+
{
|
|
942
|
+
no: 4,
|
|
943
|
+
name: 'pending_removals',
|
|
944
|
+
kind: 'scalar',
|
|
945
|
+
repeat: 1 /*RepeatType.PACKED*/,
|
|
946
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
947
|
+
L: 0 /*LongType.BIGINT*/,
|
|
948
|
+
},
|
|
949
|
+
{ no: 5, name: 'staking_pool_mappings', kind: 'message', T: () => MoveTable },
|
|
950
|
+
{ no: 6, name: 'inactive_validators', kind: 'message', T: () => MoveTable },
|
|
951
|
+
{ no: 7, name: 'validator_candidates', kind: 'message', T: () => MoveTable },
|
|
952
|
+
{
|
|
953
|
+
no: 8,
|
|
954
|
+
name: 'at_risk_validators',
|
|
955
|
+
kind: 'map',
|
|
956
|
+
K: 9 /*ScalarType.STRING*/,
|
|
957
|
+
V: { kind: 'scalar', T: 4 /*ScalarType.UINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
958
|
+
},
|
|
959
|
+
{ no: 9, name: 'extra_fields', kind: 'message', T: () => MoveTable },
|
|
960
|
+
]);
|
|
961
|
+
}
|
|
750
962
|
}
|
|
751
963
|
/**
|
|
752
964
|
* @generated MessageType for protobuf message sui.rpc.v2.ValidatorSet
|
|
@@ -754,41 +966,139 @@ class ValidatorSet$Type extends MessageType<ValidatorSet> {
|
|
|
754
966
|
export const ValidatorSet = new ValidatorSet$Type();
|
|
755
967
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
756
968
|
class Validator$Type extends MessageType<Validator> {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
969
|
+
constructor() {
|
|
970
|
+
super('sui.rpc.v2.Validator', [
|
|
971
|
+
{ no: 1, name: 'name', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
972
|
+
{ no: 2, name: 'address', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
973
|
+
{ no: 3, name: 'description', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
974
|
+
{ no: 4, name: 'image_url', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
975
|
+
{ no: 5, name: 'project_url', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
976
|
+
{ no: 7, name: 'protocol_public_key', kind: 'scalar', opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
977
|
+
{ no: 8, name: 'proof_of_possession', kind: 'scalar', opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
978
|
+
{ no: 10, name: 'network_public_key', kind: 'scalar', opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
979
|
+
{ no: 12, name: 'worker_public_key', kind: 'scalar', opt: true, T: 12 /*ScalarType.BYTES*/ },
|
|
980
|
+
{ no: 13, name: 'network_address', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
981
|
+
{
|
|
982
|
+
no: 14,
|
|
983
|
+
name: 'p2p_address',
|
|
984
|
+
kind: 'scalar',
|
|
985
|
+
jsonName: 'p2pAddress',
|
|
986
|
+
opt: true,
|
|
987
|
+
T: 9 /*ScalarType.STRING*/,
|
|
988
|
+
},
|
|
989
|
+
{ no: 15, name: 'primary_address', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
990
|
+
{ no: 16, name: 'worker_address', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
991
|
+
{
|
|
992
|
+
no: 18,
|
|
993
|
+
name: 'next_epoch_protocol_public_key',
|
|
994
|
+
kind: 'scalar',
|
|
995
|
+
opt: true,
|
|
996
|
+
T: 12 /*ScalarType.BYTES*/,
|
|
997
|
+
},
|
|
998
|
+
{
|
|
999
|
+
no: 19,
|
|
1000
|
+
name: 'next_epoch_proof_of_possession',
|
|
1001
|
+
kind: 'scalar',
|
|
1002
|
+
opt: true,
|
|
1003
|
+
T: 12 /*ScalarType.BYTES*/,
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
no: 21,
|
|
1007
|
+
name: 'next_epoch_network_public_key',
|
|
1008
|
+
kind: 'scalar',
|
|
1009
|
+
opt: true,
|
|
1010
|
+
T: 12 /*ScalarType.BYTES*/,
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
no: 23,
|
|
1014
|
+
name: 'next_epoch_worker_public_key',
|
|
1015
|
+
kind: 'scalar',
|
|
1016
|
+
opt: true,
|
|
1017
|
+
T: 12 /*ScalarType.BYTES*/,
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
no: 24,
|
|
1021
|
+
name: 'next_epoch_network_address',
|
|
1022
|
+
kind: 'scalar',
|
|
1023
|
+
opt: true,
|
|
1024
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1025
|
+
},
|
|
1026
|
+
{
|
|
1027
|
+
no: 25,
|
|
1028
|
+
name: 'next_epoch_p2p_address',
|
|
1029
|
+
kind: 'scalar',
|
|
1030
|
+
jsonName: 'nextEpochP2pAddress',
|
|
1031
|
+
opt: true,
|
|
1032
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
no: 26,
|
|
1036
|
+
name: 'next_epoch_primary_address',
|
|
1037
|
+
kind: 'scalar',
|
|
1038
|
+
opt: true,
|
|
1039
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
no: 27,
|
|
1043
|
+
name: 'next_epoch_worker_address',
|
|
1044
|
+
kind: 'scalar',
|
|
1045
|
+
opt: true,
|
|
1046
|
+
T: 9 /*ScalarType.STRING*/,
|
|
1047
|
+
},
|
|
1048
|
+
{ no: 28, name: 'metadata_extra_fields', kind: 'message', T: () => MoveTable },
|
|
1049
|
+
{
|
|
1050
|
+
no: 29,
|
|
1051
|
+
name: 'voting_power',
|
|
1052
|
+
kind: 'scalar',
|
|
1053
|
+
opt: true,
|
|
1054
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1055
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1056
|
+
},
|
|
1057
|
+
{ no: 30, name: 'operation_cap_id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1058
|
+
{
|
|
1059
|
+
no: 31,
|
|
1060
|
+
name: 'gas_price',
|
|
1061
|
+
kind: 'scalar',
|
|
1062
|
+
opt: true,
|
|
1063
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1064
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1065
|
+
},
|
|
1066
|
+
{ no: 32, name: 'staking_pool', kind: 'message', T: () => StakingPool },
|
|
1067
|
+
{
|
|
1068
|
+
no: 33,
|
|
1069
|
+
name: 'commission_rate',
|
|
1070
|
+
kind: 'scalar',
|
|
1071
|
+
opt: true,
|
|
1072
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1073
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
no: 34,
|
|
1077
|
+
name: 'next_epoch_stake',
|
|
1078
|
+
kind: 'scalar',
|
|
1079
|
+
opt: true,
|
|
1080
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1081
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
no: 35,
|
|
1085
|
+
name: 'next_epoch_gas_price',
|
|
1086
|
+
kind: 'scalar',
|
|
1087
|
+
opt: true,
|
|
1088
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1089
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
no: 36,
|
|
1093
|
+
name: 'next_epoch_commission_rate',
|
|
1094
|
+
kind: 'scalar',
|
|
1095
|
+
opt: true,
|
|
1096
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1097
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1098
|
+
},
|
|
1099
|
+
{ no: 37, name: 'extra_fields', kind: 'message', T: () => MoveTable },
|
|
1100
|
+
]);
|
|
1101
|
+
}
|
|
792
1102
|
}
|
|
793
1103
|
/**
|
|
794
1104
|
* @generated MessageType for protobuf message sui.rpc.v2.Validator
|
|
@@ -796,21 +1106,77 @@ class Validator$Type extends MessageType<Validator> {
|
|
|
796
1106
|
export const Validator = new Validator$Type();
|
|
797
1107
|
// @generated message type with reflection information, may provide speed optimized methods
|
|
798
1108
|
class StakingPool$Type extends MessageType<StakingPool> {
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
1109
|
+
constructor() {
|
|
1110
|
+
super('sui.rpc.v2.StakingPool', [
|
|
1111
|
+
{ no: 1, name: 'id', kind: 'scalar', opt: true, T: 9 /*ScalarType.STRING*/ },
|
|
1112
|
+
{
|
|
1113
|
+
no: 2,
|
|
1114
|
+
name: 'activation_epoch',
|
|
1115
|
+
kind: 'scalar',
|
|
1116
|
+
opt: true,
|
|
1117
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1118
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
no: 3,
|
|
1122
|
+
name: 'deactivation_epoch',
|
|
1123
|
+
kind: 'scalar',
|
|
1124
|
+
opt: true,
|
|
1125
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1126
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1127
|
+
},
|
|
1128
|
+
{
|
|
1129
|
+
no: 4,
|
|
1130
|
+
name: 'sui_balance',
|
|
1131
|
+
kind: 'scalar',
|
|
1132
|
+
opt: true,
|
|
1133
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1134
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1135
|
+
},
|
|
1136
|
+
{
|
|
1137
|
+
no: 5,
|
|
1138
|
+
name: 'rewards_pool',
|
|
1139
|
+
kind: 'scalar',
|
|
1140
|
+
opt: true,
|
|
1141
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1142
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
no: 6,
|
|
1146
|
+
name: 'pool_token_balance',
|
|
1147
|
+
kind: 'scalar',
|
|
1148
|
+
opt: true,
|
|
1149
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1150
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1151
|
+
},
|
|
1152
|
+
{ no: 7, name: 'exchange_rates', kind: 'message', T: () => MoveTable },
|
|
1153
|
+
{
|
|
1154
|
+
no: 8,
|
|
1155
|
+
name: 'pending_stake',
|
|
1156
|
+
kind: 'scalar',
|
|
1157
|
+
opt: true,
|
|
1158
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1159
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1160
|
+
},
|
|
1161
|
+
{
|
|
1162
|
+
no: 9,
|
|
1163
|
+
name: 'pending_total_sui_withdraw',
|
|
1164
|
+
kind: 'scalar',
|
|
1165
|
+
opt: true,
|
|
1166
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1167
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
no: 10,
|
|
1171
|
+
name: 'pending_pool_token_withdraw',
|
|
1172
|
+
kind: 'scalar',
|
|
1173
|
+
opt: true,
|
|
1174
|
+
T: 4 /*ScalarType.UINT64*/,
|
|
1175
|
+
L: 0 /*LongType.BIGINT*/,
|
|
1176
|
+
},
|
|
1177
|
+
{ no: 11, name: 'extra_fields', kind: 'message', T: () => MoveTable },
|
|
1178
|
+
]);
|
|
1179
|
+
}
|
|
814
1180
|
}
|
|
815
1181
|
/**
|
|
816
1182
|
* @generated MessageType for protobuf message sui.rpc.v2.StakingPool
|