Documentation
¶
Overview ¶
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Code generated by protoc-gen-go-pulsar. DO NOT EDIT.
Index ¶
- Constants
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetCurrentValidatorSet() *ValidatorSet
- func (x *GenesisState) GetStakingSequences() []string
- func (x *GenesisState) GetValidators() []*Validator
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type LastBlockTxs
- type MsgClient
- type MsgServer
- type MsgSignerUpdate
- func (*MsgSignerUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSignerUpdate) GetBlockNumber() uint64
- func (x *MsgSignerUpdate) GetFrom() string
- func (x *MsgSignerUpdate) GetLogIndex() uint64
- func (x *MsgSignerUpdate) GetNewSignerPubKey() []byte
- func (x *MsgSignerUpdate) GetNonce() uint64
- func (x *MsgSignerUpdate) GetTxHash() []byte
- func (x *MsgSignerUpdate) GetValId() uint64
- func (*MsgSignerUpdate) ProtoMessage()
- func (x *MsgSignerUpdate) ProtoReflect() protoreflect.Message
- func (x *MsgSignerUpdate) Reset()
- func (x *MsgSignerUpdate) String() string
- type MsgSignerUpdateResponse
- type MsgStakeUpdate
- func (*MsgStakeUpdate) Descriptor() ([]byte, []int)deprecated
- func (x *MsgStakeUpdate) GetBlockNumber() uint64
- func (x *MsgStakeUpdate) GetFrom() string
- func (x *MsgStakeUpdate) GetLogIndex() uint64
- func (x *MsgStakeUpdate) GetNewAmount() string
- func (x *MsgStakeUpdate) GetNonce() uint64
- func (x *MsgStakeUpdate) GetTxHash() []byte
- func (x *MsgStakeUpdate) GetValId() uint64
- func (*MsgStakeUpdate) ProtoMessage()
- func (x *MsgStakeUpdate) ProtoReflect() protoreflect.Message
- func (x *MsgStakeUpdate) Reset()
- func (x *MsgStakeUpdate) String() string
- type MsgStakeUpdateResponse
- type MsgValidatorExit
- func (*MsgValidatorExit) Descriptor() ([]byte, []int)deprecated
- func (x *MsgValidatorExit) GetBlockNumber() uint64
- func (x *MsgValidatorExit) GetDeactivationEpoch() uint64
- func (x *MsgValidatorExit) GetFrom() string
- func (x *MsgValidatorExit) GetLogIndex() uint64
- func (x *MsgValidatorExit) GetNonce() uint64
- func (x *MsgValidatorExit) GetTxHash() []byte
- func (x *MsgValidatorExit) GetValId() uint64
- func (*MsgValidatorExit) ProtoMessage()
- func (x *MsgValidatorExit) ProtoReflect() protoreflect.Message
- func (x *MsgValidatorExit) Reset()
- func (x *MsgValidatorExit) String() string
- type MsgValidatorExitResponse
- type MsgValidatorJoin
- func (*MsgValidatorJoin) Descriptor() ([]byte, []int)deprecated
- func (x *MsgValidatorJoin) GetActivationEpoch() uint64
- func (x *MsgValidatorJoin) GetAmount() string
- func (x *MsgValidatorJoin) GetBlockNumber() uint64
- func (x *MsgValidatorJoin) GetFrom() string
- func (x *MsgValidatorJoin) GetLogIndex() uint64
- func (x *MsgValidatorJoin) GetNonce() uint64
- func (x *MsgValidatorJoin) GetSignerPubKey() []byte
- func (x *MsgValidatorJoin) GetTxHash() []byte
- func (x *MsgValidatorJoin) GetValId() uint64
- func (*MsgValidatorJoin) ProtoMessage()
- func (x *MsgValidatorJoin) ProtoReflect() protoreflect.Message
- func (x *MsgValidatorJoin) Reset()
- func (x *MsgValidatorJoin) String() string
- type MsgValidatorJoinResponse
- type QueryClient
- type QueryCurrentValidatorSetRequest
- func (*QueryCurrentValidatorSetRequest) Descriptor() ([]byte, []int)deprecated
- func (*QueryCurrentValidatorSetRequest) ProtoMessage()
- func (x *QueryCurrentValidatorSetRequest) ProtoReflect() protoreflect.Message
- func (x *QueryCurrentValidatorSetRequest) Reset()
- func (x *QueryCurrentValidatorSetRequest) String() string
- type QueryCurrentValidatorSetResponse
- func (*QueryCurrentValidatorSetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCurrentValidatorSetResponse) GetValidatorSet() *ValidatorSet
- func (*QueryCurrentValidatorSetResponse) ProtoMessage()
- func (x *QueryCurrentValidatorSetResponse) ProtoReflect() protoreflect.Message
- func (x *QueryCurrentValidatorSetResponse) Reset()
- func (x *QueryCurrentValidatorSetResponse) String() string
- type QueryProposersRequest
- func (*QueryProposersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryProposersRequest) GetTimes() uint64
- func (*QueryProposersRequest) ProtoMessage()
- func (x *QueryProposersRequest) ProtoReflect() protoreflect.Message
- func (x *QueryProposersRequest) Reset()
- func (x *QueryProposersRequest) String() string
- type QueryProposersResponse
- func (*QueryProposersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryProposersResponse) GetProposers() []*Validator
- func (*QueryProposersResponse) ProtoMessage()
- func (x *QueryProposersResponse) ProtoReflect() protoreflect.Message
- func (x *QueryProposersResponse) Reset()
- func (x *QueryProposersResponse) String() string
- type QueryServer
- type QuerySignerRequest
- func (*QuerySignerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySignerRequest) GetValAddress() string
- func (*QuerySignerRequest) ProtoMessage()
- func (x *QuerySignerRequest) ProtoReflect() protoreflect.Message
- func (x *QuerySignerRequest) Reset()
- func (x *QuerySignerRequest) String() string
- type QuerySignerResponse
- func (*QuerySignerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySignerResponse) GetValidator() *Validator
- func (*QuerySignerResponse) ProtoMessage()
- func (x *QuerySignerResponse) ProtoReflect() protoreflect.Message
- func (x *QuerySignerResponse) Reset()
- func (x *QuerySignerResponse) String() string
- type QueryStakeIsOldTxRequest
- func (*QueryStakeIsOldTxRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryStakeIsOldTxRequest) GetLogIndex() uint64
- func (x *QueryStakeIsOldTxRequest) GetTxHash() string
- func (*QueryStakeIsOldTxRequest) ProtoMessage()
- func (x *QueryStakeIsOldTxRequest) ProtoReflect() protoreflect.Message
- func (x *QueryStakeIsOldTxRequest) Reset()
- func (x *QueryStakeIsOldTxRequest) String() string
- type QueryStakeIsOldTxResponse
- func (*QueryStakeIsOldTxResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryStakeIsOldTxResponse) GetIsOld() bool
- func (*QueryStakeIsOldTxResponse) ProtoMessage()
- func (x *QueryStakeIsOldTxResponse) ProtoReflect() protoreflect.Message
- func (x *QueryStakeIsOldTxResponse) Reset()
- func (x *QueryStakeIsOldTxResponse) String() string
- type QueryTotalPowerRequest
- type QueryTotalPowerResponse
- func (*QueryTotalPowerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryTotalPowerResponse) GetTotalPower() int64
- func (*QueryTotalPowerResponse) ProtoMessage()
- func (x *QueryTotalPowerResponse) ProtoReflect() protoreflect.Message
- func (x *QueryTotalPowerResponse) Reset()
- func (x *QueryTotalPowerResponse) String() string
- type QueryValidatorRequest
- func (*QueryValidatorRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryValidatorRequest) GetId() uint64
- func (*QueryValidatorRequest) ProtoMessage()
- func (x *QueryValidatorRequest) ProtoReflect() protoreflect.Message
- func (x *QueryValidatorRequest) Reset()
- func (x *QueryValidatorRequest) String() string
- type QueryValidatorResponse
- func (*QueryValidatorResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryValidatorResponse) GetValidator() *Validator
- func (*QueryValidatorResponse) ProtoMessage()
- func (x *QueryValidatorResponse) ProtoReflect() protoreflect.Message
- func (x *QueryValidatorResponse) Reset()
- func (x *QueryValidatorResponse) String() string
- type QueryValidatorStatusRequest
- func (*QueryValidatorStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryValidatorStatusRequest) GetValAddress() string
- func (*QueryValidatorStatusRequest) ProtoMessage()
- func (x *QueryValidatorStatusRequest) ProtoReflect() protoreflect.Message
- func (x *QueryValidatorStatusRequest) Reset()
- func (x *QueryValidatorStatusRequest) String() string
- type QueryValidatorStatusResponse
- func (*QueryValidatorStatusResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryValidatorStatusResponse) GetIsOld() bool
- func (*QueryValidatorStatusResponse) ProtoMessage()
- func (x *QueryValidatorStatusResponse) ProtoReflect() protoreflect.Message
- func (x *QueryValidatorStatusResponse) Reset()
- func (x *QueryValidatorStatusResponse) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) SignerUpdate(context.Context, *MsgSignerUpdate) (*MsgSignerUpdateResponse, error)
- func (UnimplementedMsgServer) StakeUpdate(context.Context, *MsgStakeUpdate) (*MsgStakeUpdateResponse, error)
- func (UnimplementedMsgServer) ValidatorExit(context.Context, *MsgValidatorExit) (*MsgValidatorExitResponse, error)
- func (UnimplementedMsgServer) ValidatorJoin(context.Context, *MsgValidatorJoin) (*MsgValidatorJoinResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) GetCurrentValidatorSet(context.Context, *QueryCurrentValidatorSetRequest) (*QueryCurrentValidatorSetResponse, error)
- func (UnimplementedQueryServer) GetProposersByTimes(context.Context, *QueryProposersRequest) (*QueryProposersResponse, error)
- func (UnimplementedQueryServer) GetSignerByAddress(context.Context, *QuerySignerRequest) (*QuerySignerResponse, error)
- func (UnimplementedQueryServer) GetTotalPower(context.Context, *QueryTotalPowerRequest) (*QueryTotalPowerResponse, error)
- func (UnimplementedQueryServer) GetValidatorById(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
- func (UnimplementedQueryServer) GetValidatorStatusByAddress(context.Context, *QueryValidatorStatusRequest) (*QueryValidatorStatusResponse, error)
- func (UnimplementedQueryServer) IsStakeTxOld(context.Context, *QueryStakeIsOldTxRequest) (*QueryStakeIsOldTxResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
- type Validator
- func (*Validator) Descriptor() ([]byte, []int)deprecated
- func (x *Validator) GetEndEpoch() uint64
- func (x *Validator) GetJailed() bool
- func (x *Validator) GetLastUpdated() string
- func (x *Validator) GetNonce() uint64
- func (x *Validator) GetProposerPriority() int64
- func (x *Validator) GetPubKey() []byte
- func (x *Validator) GetSigner() string
- func (x *Validator) GetStartEpoch() uint64
- func (x *Validator) GetValId() uint64
- func (x *Validator) GetVotingPower() int64
- func (*Validator) ProtoMessage()
- func (x *Validator) ProtoReflect() protoreflect.Message
- func (x *Validator) Reset()
- func (x *Validator) String() string
- type ValidatorSet
- func (*ValidatorSet) Descriptor() ([]byte, []int)deprecated
- func (x *ValidatorSet) GetProposer() *Validator
- func (x *ValidatorSet) GetTotalVotingPower() int64
- func (x *ValidatorSet) GetValidators() []*Validator
- func (*ValidatorSet) ProtoMessage()
- func (x *ValidatorSet) ProtoReflect() protoreflect.Message
- func (x *ValidatorSet) Reset()
- func (x *ValidatorSet) String() string
Constants ¶
const ( Query_GetCurrentValidatorSet_FullMethodName = "/heimdallv2.stake.Query/GetCurrentValidatorSet" Query_GetSignerByAddress_FullMethodName = "/heimdallv2.stake.Query/GetSignerByAddress" Query_GetValidatorById_FullMethodName = "/heimdallv2.stake.Query/GetValidatorById" Query_GetValidatorStatusByAddress_FullMethodName = "/heimdallv2.stake.Query/GetValidatorStatusByAddress" Query_GetTotalPower_FullMethodName = "/heimdallv2.stake.Query/GetTotalPower" Query_IsStakeTxOld_FullMethodName = "/heimdallv2.stake.Query/IsStakeTxOld" Query_GetProposersByTimes_FullMethodName = "/heimdallv2.stake.Query/GetProposersByTimes" )
const ( Msg_ValidatorJoin_FullMethodName = "/heimdallv2.stake.Msg/ValidatorJoin" Msg_StakeUpdate_FullMethodName = "/heimdallv2.stake.Msg/StakeUpdate" Msg_SignerUpdate_FullMethodName = "/heimdallv2.stake.Msg/SignerUpdate" Msg_ValidatorExit_FullMethodName = "/heimdallv2.stake.Msg/ValidatorExit" )
Variables ¶
var File_heimdallv2_stake_genesis_proto protoreflect.FileDescriptor
var File_heimdallv2_stake_last_block_txs_proto protoreflect.FileDescriptor
var File_heimdallv2_stake_query_proto protoreflect.FileDescriptor
var File_heimdallv2_stake_tx_proto protoreflect.FileDescriptor
var File_heimdallv2_stake_validator_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "heimdallv2.stake.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ValidatorJoin", Handler: _Msg_ValidatorJoin_Handler, }, { MethodName: "StakeUpdate", Handler: _Msg_StakeUpdate_Handler, }, { MethodName: "SignerUpdate", Handler: _Msg_SignerUpdate_Handler, }, { MethodName: "ValidatorExit", Handler: _Msg_ValidatorExit_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "heimdallv2/stake/tx.proto", }
Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "heimdallv2.stake.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetCurrentValidatorSet", Handler: _Query_GetCurrentValidatorSet_Handler, }, { MethodName: "GetSignerByAddress", Handler: _Query_GetSignerByAddress_Handler, }, { MethodName: "GetValidatorById", Handler: _Query_GetValidatorById_Handler, }, { MethodName: "GetValidatorStatusByAddress", Handler: _Query_GetValidatorStatusByAddress_Handler, }, { MethodName: "GetTotalPower", Handler: _Query_GetTotalPower_Handler, }, { MethodName: "IsStakeTxOld", Handler: _Query_IsStakeTxOld_Handler, }, { MethodName: "GetProposersByTimes", Handler: _Query_GetProposersByTimes_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "heimdallv2/stake/query.proto", }
Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMsgServer ¶
func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct { Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` CurrentValidatorSet *ValidatorSet `protobuf:"bytes,2,opt,name=current_validator_set,json=currentValidatorSet,proto3" json:"current_validator_set,omitempty"` StakingSequences []string `protobuf:"bytes,3,rep,name=staking_sequences,json=stakingSequences,proto3" json:"staking_sequences,omitempty"` // contains filtered or unexported fields }
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetCurrentValidatorSet ¶
func (x *GenesisState) GetCurrentValidatorSet() *ValidatorSet
func (*GenesisState) GetStakingSequences ¶
func (x *GenesisState) GetStakingSequences() []string
func (*GenesisState) GetValidators ¶
func (x *GenesisState) GetValidators() []*Validator
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type LastBlockTxs ¶
type LastBlockTxs struct { Txs [][]byte `protobuf:"bytes,1,rep,name=txs,proto3" json:"txs,omitempty"` // contains filtered or unexported fields }
func (*LastBlockTxs) Descriptor
deprecated
func (*LastBlockTxs) Descriptor() ([]byte, []int)
Deprecated: Use LastBlockTxs.ProtoReflect.Descriptor instead.
func (*LastBlockTxs) GetTxs ¶
func (x *LastBlockTxs) GetTxs() [][]byte
func (*LastBlockTxs) ProtoMessage ¶
func (*LastBlockTxs) ProtoMessage()
func (*LastBlockTxs) ProtoReflect ¶
func (x *LastBlockTxs) ProtoReflect() protoreflect.Message
func (*LastBlockTxs) Reset ¶
func (x *LastBlockTxs) Reset()
func (*LastBlockTxs) String ¶
func (x *LastBlockTxs) String() string
type MsgClient ¶
type MsgClient interface { // ValidatorJoin defines a method for a new validator to join ValidatorJoin(ctx context.Context, in *MsgValidatorJoin, opts ...grpc.CallOption) (*MsgValidatorJoinResponse, error) // StakeUpdate defines a method for updating an existing validator's stake. StakeUpdate(ctx context.Context, in *MsgStakeUpdate, opts ...grpc.CallOption) (*MsgStakeUpdateResponse, error) // SignerUpdate defines a method for updating an existing validator's signer. SignerUpdate(ctx context.Context, in *MsgSignerUpdate, opts ...grpc.CallOption) (*MsgSignerUpdateResponse, error) // ValidatorExit defines a method for exiting an existing validator ValidatorExit(ctx context.Context, in *MsgValidatorExit, opts ...grpc.CallOption) (*MsgValidatorExitResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgServer ¶
type MsgServer interface { // ValidatorJoin defines a method for a new validator to join ValidatorJoin(context.Context, *MsgValidatorJoin) (*MsgValidatorJoinResponse, error) // StakeUpdate defines a method for updating an existing validator's stake. StakeUpdate(context.Context, *MsgStakeUpdate) (*MsgStakeUpdateResponse, error) // SignerUpdate defines a method for updating an existing validator's signer. SignerUpdate(context.Context, *MsgSignerUpdate) (*MsgSignerUpdateResponse, error) // ValidatorExit defines a method for exiting an existing validator ValidatorExit(context.Context, *MsgValidatorExit) (*MsgValidatorExitResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgSignerUpdate ¶
type MsgSignerUpdate struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` ValId uint64 `protobuf:"varint,2,opt,name=val_id,json=valId,proto3" json:"val_id,omitempty"` NewSignerPubKey []byte `protobuf:"bytes,3,opt,name=new_signer_pub_key,json=newSignerPubKey,proto3" json:"new_signer_pub_key,omitempty"` TxHash []byte `protobuf:"bytes,4,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` LogIndex uint64 `protobuf:"varint,5,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` BlockNumber uint64 `protobuf:"varint,6,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` Nonce uint64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
func (*MsgSignerUpdate) Descriptor
deprecated
func (*MsgSignerUpdate) Descriptor() ([]byte, []int)
Deprecated: Use MsgSignerUpdate.ProtoReflect.Descriptor instead.
func (*MsgSignerUpdate) GetBlockNumber ¶
func (x *MsgSignerUpdate) GetBlockNumber() uint64
func (*MsgSignerUpdate) GetFrom ¶
func (x *MsgSignerUpdate) GetFrom() string
func (*MsgSignerUpdate) GetLogIndex ¶
func (x *MsgSignerUpdate) GetLogIndex() uint64
func (*MsgSignerUpdate) GetNewSignerPubKey ¶
func (x *MsgSignerUpdate) GetNewSignerPubKey() []byte
func (*MsgSignerUpdate) GetNonce ¶
func (x *MsgSignerUpdate) GetNonce() uint64
func (*MsgSignerUpdate) GetTxHash ¶
func (x *MsgSignerUpdate) GetTxHash() []byte
func (*MsgSignerUpdate) GetValId ¶
func (x *MsgSignerUpdate) GetValId() uint64
func (*MsgSignerUpdate) ProtoMessage ¶
func (*MsgSignerUpdate) ProtoMessage()
func (*MsgSignerUpdate) ProtoReflect ¶
func (x *MsgSignerUpdate) ProtoReflect() protoreflect.Message
func (*MsgSignerUpdate) Reset ¶
func (x *MsgSignerUpdate) Reset()
func (*MsgSignerUpdate) String ¶
func (x *MsgSignerUpdate) String() string
type MsgSignerUpdateResponse ¶
type MsgSignerUpdateResponse struct {
// contains filtered or unexported fields
}
func (*MsgSignerUpdateResponse) Descriptor
deprecated
func (*MsgSignerUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSignerUpdateResponse.ProtoReflect.Descriptor instead.
func (*MsgSignerUpdateResponse) ProtoMessage ¶
func (*MsgSignerUpdateResponse) ProtoMessage()
func (*MsgSignerUpdateResponse) ProtoReflect ¶
func (x *MsgSignerUpdateResponse) ProtoReflect() protoreflect.Message
func (*MsgSignerUpdateResponse) Reset ¶
func (x *MsgSignerUpdateResponse) Reset()
func (*MsgSignerUpdateResponse) String ¶
func (x *MsgSignerUpdateResponse) String() string
type MsgStakeUpdate ¶
type MsgStakeUpdate struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` ValId uint64 `protobuf:"varint,2,opt,name=val_id,json=valId,proto3" json:"val_id,omitempty"` NewAmount string `protobuf:"bytes,3,opt,name=new_amount,json=newAmount,proto3" json:"new_amount,omitempty"` TxHash []byte `protobuf:"bytes,4,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` LogIndex uint64 `protobuf:"varint,5,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` BlockNumber uint64 `protobuf:"varint,6,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` Nonce uint64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
func (*MsgStakeUpdate) Descriptor
deprecated
func (*MsgStakeUpdate) Descriptor() ([]byte, []int)
Deprecated: Use MsgStakeUpdate.ProtoReflect.Descriptor instead.
func (*MsgStakeUpdate) GetBlockNumber ¶
func (x *MsgStakeUpdate) GetBlockNumber() uint64
func (*MsgStakeUpdate) GetFrom ¶
func (x *MsgStakeUpdate) GetFrom() string
func (*MsgStakeUpdate) GetLogIndex ¶
func (x *MsgStakeUpdate) GetLogIndex() uint64
func (*MsgStakeUpdate) GetNewAmount ¶
func (x *MsgStakeUpdate) GetNewAmount() string
func (*MsgStakeUpdate) GetNonce ¶
func (x *MsgStakeUpdate) GetNonce() uint64
func (*MsgStakeUpdate) GetTxHash ¶
func (x *MsgStakeUpdate) GetTxHash() []byte
func (*MsgStakeUpdate) GetValId ¶
func (x *MsgStakeUpdate) GetValId() uint64
func (*MsgStakeUpdate) ProtoMessage ¶
func (*MsgStakeUpdate) ProtoMessage()
func (*MsgStakeUpdate) ProtoReflect ¶
func (x *MsgStakeUpdate) ProtoReflect() protoreflect.Message
func (*MsgStakeUpdate) Reset ¶
func (x *MsgStakeUpdate) Reset()
func (*MsgStakeUpdate) String ¶
func (x *MsgStakeUpdate) String() string
type MsgStakeUpdateResponse ¶
type MsgStakeUpdateResponse struct {
// contains filtered or unexported fields
}
func (*MsgStakeUpdateResponse) Descriptor
deprecated
func (*MsgStakeUpdateResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgStakeUpdateResponse.ProtoReflect.Descriptor instead.
func (*MsgStakeUpdateResponse) ProtoMessage ¶
func (*MsgStakeUpdateResponse) ProtoMessage()
func (*MsgStakeUpdateResponse) ProtoReflect ¶
func (x *MsgStakeUpdateResponse) ProtoReflect() protoreflect.Message
func (*MsgStakeUpdateResponse) Reset ¶
func (x *MsgStakeUpdateResponse) Reset()
func (*MsgStakeUpdateResponse) String ¶
func (x *MsgStakeUpdateResponse) String() string
type MsgValidatorExit ¶
type MsgValidatorExit struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` ValId uint64 `protobuf:"varint,2,opt,name=val_id,json=valId,proto3" json:"val_id,omitempty"` DeactivationEpoch uint64 `protobuf:"varint,3,opt,name=deactivation_epoch,json=deactivationEpoch,proto3" json:"deactivation_epoch,omitempty"` TxHash []byte `protobuf:"bytes,4,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` LogIndex uint64 `protobuf:"varint,5,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` BlockNumber uint64 `protobuf:"varint,6,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` Nonce uint64 `protobuf:"varint,7,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
func (*MsgValidatorExit) Descriptor
deprecated
func (*MsgValidatorExit) Descriptor() ([]byte, []int)
Deprecated: Use MsgValidatorExit.ProtoReflect.Descriptor instead.
func (*MsgValidatorExit) GetBlockNumber ¶
func (x *MsgValidatorExit) GetBlockNumber() uint64
func (*MsgValidatorExit) GetDeactivationEpoch ¶
func (x *MsgValidatorExit) GetDeactivationEpoch() uint64
func (*MsgValidatorExit) GetFrom ¶
func (x *MsgValidatorExit) GetFrom() string
func (*MsgValidatorExit) GetLogIndex ¶
func (x *MsgValidatorExit) GetLogIndex() uint64
func (*MsgValidatorExit) GetNonce ¶
func (x *MsgValidatorExit) GetNonce() uint64
func (*MsgValidatorExit) GetTxHash ¶
func (x *MsgValidatorExit) GetTxHash() []byte
func (*MsgValidatorExit) GetValId ¶
func (x *MsgValidatorExit) GetValId() uint64
func (*MsgValidatorExit) ProtoMessage ¶
func (*MsgValidatorExit) ProtoMessage()
func (*MsgValidatorExit) ProtoReflect ¶
func (x *MsgValidatorExit) ProtoReflect() protoreflect.Message
func (*MsgValidatorExit) Reset ¶
func (x *MsgValidatorExit) Reset()
func (*MsgValidatorExit) String ¶
func (x *MsgValidatorExit) String() string
type MsgValidatorExitResponse ¶
type MsgValidatorExitResponse struct {
// contains filtered or unexported fields
}
func (*MsgValidatorExitResponse) Descriptor
deprecated
func (*MsgValidatorExitResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgValidatorExitResponse.ProtoReflect.Descriptor instead.
func (*MsgValidatorExitResponse) ProtoMessage ¶
func (*MsgValidatorExitResponse) ProtoMessage()
func (*MsgValidatorExitResponse) ProtoReflect ¶
func (x *MsgValidatorExitResponse) ProtoReflect() protoreflect.Message
func (*MsgValidatorExitResponse) Reset ¶
func (x *MsgValidatorExitResponse) Reset()
func (*MsgValidatorExitResponse) String ¶
func (x *MsgValidatorExitResponse) String() string
type MsgValidatorJoin ¶
type MsgValidatorJoin struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` ValId uint64 `protobuf:"varint,2,opt,name=val_id,json=valId,proto3" json:"val_id,omitempty"` ActivationEpoch uint64 `protobuf:"varint,3,opt,name=activation_epoch,json=activationEpoch,proto3" json:"activation_epoch,omitempty"` Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` SignerPubKey []byte `protobuf:"bytes,5,opt,name=signer_pub_key,json=signerPubKey,proto3" json:"signer_pub_key,omitempty"` TxHash []byte `protobuf:"bytes,6,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` LogIndex uint64 `protobuf:"varint,7,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` BlockNumber uint64 `protobuf:"varint,8,opt,name=block_number,json=blockNumber,proto3" json:"block_number,omitempty"` Nonce uint64 `protobuf:"varint,9,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
MsgValidatorJoin defines a message for a new validator to join the network
func (*MsgValidatorJoin) Descriptor
deprecated
func (*MsgValidatorJoin) Descriptor() ([]byte, []int)
Deprecated: Use MsgValidatorJoin.ProtoReflect.Descriptor instead.
func (*MsgValidatorJoin) GetActivationEpoch ¶
func (x *MsgValidatorJoin) GetActivationEpoch() uint64
func (*MsgValidatorJoin) GetAmount ¶
func (x *MsgValidatorJoin) GetAmount() string
func (*MsgValidatorJoin) GetBlockNumber ¶
func (x *MsgValidatorJoin) GetBlockNumber() uint64
func (*MsgValidatorJoin) GetFrom ¶
func (x *MsgValidatorJoin) GetFrom() string
func (*MsgValidatorJoin) GetLogIndex ¶
func (x *MsgValidatorJoin) GetLogIndex() uint64
func (*MsgValidatorJoin) GetNonce ¶
func (x *MsgValidatorJoin) GetNonce() uint64
func (*MsgValidatorJoin) GetSignerPubKey ¶
func (x *MsgValidatorJoin) GetSignerPubKey() []byte
func (*MsgValidatorJoin) GetTxHash ¶
func (x *MsgValidatorJoin) GetTxHash() []byte
func (*MsgValidatorJoin) GetValId ¶
func (x *MsgValidatorJoin) GetValId() uint64
func (*MsgValidatorJoin) ProtoMessage ¶
func (*MsgValidatorJoin) ProtoMessage()
func (*MsgValidatorJoin) ProtoReflect ¶
func (x *MsgValidatorJoin) ProtoReflect() protoreflect.Message
func (*MsgValidatorJoin) Reset ¶
func (x *MsgValidatorJoin) Reset()
func (*MsgValidatorJoin) String ¶
func (x *MsgValidatorJoin) String() string
type MsgValidatorJoinResponse ¶
type MsgValidatorJoinResponse struct {
// contains filtered or unexported fields
}
func (*MsgValidatorJoinResponse) Descriptor
deprecated
func (*MsgValidatorJoinResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgValidatorJoinResponse.ProtoReflect.Descriptor instead.
func (*MsgValidatorJoinResponse) ProtoMessage ¶
func (*MsgValidatorJoinResponse) ProtoMessage()
func (*MsgValidatorJoinResponse) ProtoReflect ¶
func (x *MsgValidatorJoinResponse) ProtoReflect() protoreflect.Message
func (*MsgValidatorJoinResponse) Reset ¶
func (x *MsgValidatorJoinResponse) Reset()
func (*MsgValidatorJoinResponse) String ¶
func (x *MsgValidatorJoinResponse) String() string
type QueryClient ¶
type QueryClient interface { // GetCurrentValidatorSet queries for the current validator set GetCurrentValidatorSet(ctx context.Context, in *QueryCurrentValidatorSetRequest, opts ...grpc.CallOption) (*QueryCurrentValidatorSetResponse, error) // GetSignerByAddress queries validator info for a given validator address GetSignerByAddress(ctx context.Context, in *QuerySignerRequest, opts ...grpc.CallOption) (*QuerySignerResponse, error) // GetValidatorById queries validator info for a given validator id GetValidatorById(ctx context.Context, in *QueryValidatorRequest, opts ...grpc.CallOption) (*QueryValidatorResponse, error) // GetValidatorStatusByAddress queries validator status for given validator // val_address GetValidatorStatusByAddress(ctx context.Context, in *QueryValidatorStatusRequest, opts ...grpc.CallOption) (*QueryValidatorStatusResponse, error) // GetTotalPower queries the total power of a validator set GetTotalPower(ctx context.Context, in *QueryTotalPowerRequest, opts ...grpc.CallOption) (*QueryTotalPowerResponse, error) // IsStakeTxOld queries for the staking sequence IsStakeTxOld(ctx context.Context, in *QueryStakeIsOldTxRequest, opts ...grpc.CallOption) (*QueryStakeIsOldTxResponse, error) // GetProposersByTimes queries for the proposers by Tendermint iterations GetProposersByTimes(ctx context.Context, in *QueryProposersRequest, opts ...grpc.CallOption) (*QueryProposersResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryCurrentValidatorSetRequest ¶
type QueryCurrentValidatorSetRequest struct {
// contains filtered or unexported fields
}
func (*QueryCurrentValidatorSetRequest) Descriptor
deprecated
func (*QueryCurrentValidatorSetRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryCurrentValidatorSetRequest.ProtoReflect.Descriptor instead.
func (*QueryCurrentValidatorSetRequest) ProtoMessage ¶
func (*QueryCurrentValidatorSetRequest) ProtoMessage()
func (*QueryCurrentValidatorSetRequest) ProtoReflect ¶
func (x *QueryCurrentValidatorSetRequest) ProtoReflect() protoreflect.Message
func (*QueryCurrentValidatorSetRequest) Reset ¶
func (x *QueryCurrentValidatorSetRequest) Reset()
func (*QueryCurrentValidatorSetRequest) String ¶
func (x *QueryCurrentValidatorSetRequest) String() string
type QueryCurrentValidatorSetResponse ¶
type QueryCurrentValidatorSetResponse struct { ValidatorSet *ValidatorSet `protobuf:"bytes,1,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set,omitempty"` // contains filtered or unexported fields }
func (*QueryCurrentValidatorSetResponse) Descriptor
deprecated
func (*QueryCurrentValidatorSetResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryCurrentValidatorSetResponse.ProtoReflect.Descriptor instead.
func (*QueryCurrentValidatorSetResponse) GetValidatorSet ¶
func (x *QueryCurrentValidatorSetResponse) GetValidatorSet() *ValidatorSet
func (*QueryCurrentValidatorSetResponse) ProtoMessage ¶
func (*QueryCurrentValidatorSetResponse) ProtoMessage()
func (*QueryCurrentValidatorSetResponse) ProtoReflect ¶
func (x *QueryCurrentValidatorSetResponse) ProtoReflect() protoreflect.Message
func (*QueryCurrentValidatorSetResponse) Reset ¶
func (x *QueryCurrentValidatorSetResponse) Reset()
func (*QueryCurrentValidatorSetResponse) String ¶
func (x *QueryCurrentValidatorSetResponse) String() string
type QueryProposersRequest ¶
type QueryProposersRequest struct { Times uint64 `protobuf:"varint,1,opt,name=times,proto3" json:"times,omitempty"` // contains filtered or unexported fields }
func (*QueryProposersRequest) Descriptor
deprecated
func (*QueryProposersRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryProposersRequest.ProtoReflect.Descriptor instead.
func (*QueryProposersRequest) GetTimes ¶
func (x *QueryProposersRequest) GetTimes() uint64
func (*QueryProposersRequest) ProtoMessage ¶
func (*QueryProposersRequest) ProtoMessage()
func (*QueryProposersRequest) ProtoReflect ¶
func (x *QueryProposersRequest) ProtoReflect() protoreflect.Message
func (*QueryProposersRequest) Reset ¶
func (x *QueryProposersRequest) Reset()
func (*QueryProposersRequest) String ¶
func (x *QueryProposersRequest) String() string
type QueryProposersResponse ¶
type QueryProposersResponse struct { Proposers []*Validator `protobuf:"bytes,1,rep,name=proposers,proto3" json:"proposers,omitempty"` // contains filtered or unexported fields }
func (*QueryProposersResponse) Descriptor
deprecated
func (*QueryProposersResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryProposersResponse.ProtoReflect.Descriptor instead.
func (*QueryProposersResponse) GetProposers ¶
func (x *QueryProposersResponse) GetProposers() []*Validator
func (*QueryProposersResponse) ProtoMessage ¶
func (*QueryProposersResponse) ProtoMessage()
func (*QueryProposersResponse) ProtoReflect ¶
func (x *QueryProposersResponse) ProtoReflect() protoreflect.Message
func (*QueryProposersResponse) Reset ¶
func (x *QueryProposersResponse) Reset()
func (*QueryProposersResponse) String ¶
func (x *QueryProposersResponse) String() string
type QueryServer ¶
type QueryServer interface { // GetCurrentValidatorSet queries for the current validator set GetCurrentValidatorSet(context.Context, *QueryCurrentValidatorSetRequest) (*QueryCurrentValidatorSetResponse, error) // GetSignerByAddress queries validator info for a given validator address GetSignerByAddress(context.Context, *QuerySignerRequest) (*QuerySignerResponse, error) // GetValidatorById queries validator info for a given validator id GetValidatorById(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error) // GetValidatorStatusByAddress queries validator status for given validator // val_address GetValidatorStatusByAddress(context.Context, *QueryValidatorStatusRequest) (*QueryValidatorStatusResponse, error) // GetTotalPower queries the total power of a validator set GetTotalPower(context.Context, *QueryTotalPowerRequest) (*QueryTotalPowerResponse, error) // IsStakeTxOld queries for the staking sequence IsStakeTxOld(context.Context, *QueryStakeIsOldTxRequest) (*QueryStakeIsOldTxResponse, error) // GetProposersByTimes queries for the proposers by Tendermint iterations GetProposersByTimes(context.Context, *QueryProposersRequest) (*QueryProposersResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type QuerySignerRequest ¶
type QuerySignerRequest struct { ValAddress string `protobuf:"bytes,1,opt,name=val_address,json=valAddress,proto3" json:"val_address,omitempty"` // contains filtered or unexported fields }
func (*QuerySignerRequest) Descriptor
deprecated
func (*QuerySignerRequest) Descriptor() ([]byte, []int)
Deprecated: Use QuerySignerRequest.ProtoReflect.Descriptor instead.
func (*QuerySignerRequest) GetValAddress ¶
func (x *QuerySignerRequest) GetValAddress() string
func (*QuerySignerRequest) ProtoMessage ¶
func (*QuerySignerRequest) ProtoMessage()
func (*QuerySignerRequest) ProtoReflect ¶
func (x *QuerySignerRequest) ProtoReflect() protoreflect.Message
func (*QuerySignerRequest) Reset ¶
func (x *QuerySignerRequest) Reset()
func (*QuerySignerRequest) String ¶
func (x *QuerySignerRequest) String() string
type QuerySignerResponse ¶
type QuerySignerResponse struct { Validator *Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` // contains filtered or unexported fields }
func (*QuerySignerResponse) Descriptor
deprecated
func (*QuerySignerResponse) Descriptor() ([]byte, []int)
Deprecated: Use QuerySignerResponse.ProtoReflect.Descriptor instead.
func (*QuerySignerResponse) GetValidator ¶
func (x *QuerySignerResponse) GetValidator() *Validator
func (*QuerySignerResponse) ProtoMessage ¶
func (*QuerySignerResponse) ProtoMessage()
func (*QuerySignerResponse) ProtoReflect ¶
func (x *QuerySignerResponse) ProtoReflect() protoreflect.Message
func (*QuerySignerResponse) Reset ¶
func (x *QuerySignerResponse) Reset()
func (*QuerySignerResponse) String ¶
func (x *QuerySignerResponse) String() string
type QueryStakeIsOldTxRequest ¶
type QueryStakeIsOldTxRequest struct { TxHash string `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` LogIndex uint64 `protobuf:"varint,2,opt,name=log_index,json=logIndex,proto3" json:"log_index,omitempty"` // contains filtered or unexported fields }
func (*QueryStakeIsOldTxRequest) Descriptor
deprecated
func (*QueryStakeIsOldTxRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryStakeIsOldTxRequest.ProtoReflect.Descriptor instead.
func (*QueryStakeIsOldTxRequest) GetLogIndex ¶
func (x *QueryStakeIsOldTxRequest) GetLogIndex() uint64
func (*QueryStakeIsOldTxRequest) GetTxHash ¶
func (x *QueryStakeIsOldTxRequest) GetTxHash() string
func (*QueryStakeIsOldTxRequest) ProtoMessage ¶
func (*QueryStakeIsOldTxRequest) ProtoMessage()
func (*QueryStakeIsOldTxRequest) ProtoReflect ¶
func (x *QueryStakeIsOldTxRequest) ProtoReflect() protoreflect.Message
func (*QueryStakeIsOldTxRequest) Reset ¶
func (x *QueryStakeIsOldTxRequest) Reset()
func (*QueryStakeIsOldTxRequest) String ¶
func (x *QueryStakeIsOldTxRequest) String() string
type QueryStakeIsOldTxResponse ¶
type QueryStakeIsOldTxResponse struct { IsOld bool `protobuf:"varint,1,opt,name=is_old,json=isOld,proto3" json:"is_old,omitempty"` // contains filtered or unexported fields }
func (*QueryStakeIsOldTxResponse) Descriptor
deprecated
func (*QueryStakeIsOldTxResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryStakeIsOldTxResponse.ProtoReflect.Descriptor instead.
func (*QueryStakeIsOldTxResponse) GetIsOld ¶
func (x *QueryStakeIsOldTxResponse) GetIsOld() bool
func (*QueryStakeIsOldTxResponse) ProtoMessage ¶
func (*QueryStakeIsOldTxResponse) ProtoMessage()
func (*QueryStakeIsOldTxResponse) ProtoReflect ¶
func (x *QueryStakeIsOldTxResponse) ProtoReflect() protoreflect.Message
func (*QueryStakeIsOldTxResponse) Reset ¶
func (x *QueryStakeIsOldTxResponse) Reset()
func (*QueryStakeIsOldTxResponse) String ¶
func (x *QueryStakeIsOldTxResponse) String() string
type QueryTotalPowerRequest ¶
type QueryTotalPowerRequest struct {
// contains filtered or unexported fields
}
func (*QueryTotalPowerRequest) Descriptor
deprecated
func (*QueryTotalPowerRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryTotalPowerRequest.ProtoReflect.Descriptor instead.
func (*QueryTotalPowerRequest) ProtoMessage ¶
func (*QueryTotalPowerRequest) ProtoMessage()
func (*QueryTotalPowerRequest) ProtoReflect ¶
func (x *QueryTotalPowerRequest) ProtoReflect() protoreflect.Message
func (*QueryTotalPowerRequest) Reset ¶
func (x *QueryTotalPowerRequest) Reset()
func (*QueryTotalPowerRequest) String ¶
func (x *QueryTotalPowerRequest) String() string
type QueryTotalPowerResponse ¶
type QueryTotalPowerResponse struct { TotalPower int64 `protobuf:"varint,1,opt,name=total_power,json=totalPower,proto3" json:"total_power,omitempty"` // contains filtered or unexported fields }
func (*QueryTotalPowerResponse) Descriptor
deprecated
func (*QueryTotalPowerResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryTotalPowerResponse.ProtoReflect.Descriptor instead.
func (*QueryTotalPowerResponse) GetTotalPower ¶
func (x *QueryTotalPowerResponse) GetTotalPower() int64
func (*QueryTotalPowerResponse) ProtoMessage ¶
func (*QueryTotalPowerResponse) ProtoMessage()
func (*QueryTotalPowerResponse) ProtoReflect ¶
func (x *QueryTotalPowerResponse) ProtoReflect() protoreflect.Message
func (*QueryTotalPowerResponse) Reset ¶
func (x *QueryTotalPowerResponse) Reset()
func (*QueryTotalPowerResponse) String ¶
func (x *QueryTotalPowerResponse) String() string
type QueryValidatorRequest ¶
type QueryValidatorRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*QueryValidatorRequest) Descriptor
deprecated
func (*QueryValidatorRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryValidatorRequest.ProtoReflect.Descriptor instead.
func (*QueryValidatorRequest) GetId ¶
func (x *QueryValidatorRequest) GetId() uint64
func (*QueryValidatorRequest) ProtoMessage ¶
func (*QueryValidatorRequest) ProtoMessage()
func (*QueryValidatorRequest) ProtoReflect ¶
func (x *QueryValidatorRequest) ProtoReflect() protoreflect.Message
func (*QueryValidatorRequest) Reset ¶
func (x *QueryValidatorRequest) Reset()
func (*QueryValidatorRequest) String ¶
func (x *QueryValidatorRequest) String() string
type QueryValidatorResponse ¶
type QueryValidatorResponse struct { Validator *Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"` // contains filtered or unexported fields }
func (*QueryValidatorResponse) Descriptor
deprecated
func (*QueryValidatorResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryValidatorResponse.ProtoReflect.Descriptor instead.
func (*QueryValidatorResponse) GetValidator ¶
func (x *QueryValidatorResponse) GetValidator() *Validator
func (*QueryValidatorResponse) ProtoMessage ¶
func (*QueryValidatorResponse) ProtoMessage()
func (*QueryValidatorResponse) ProtoReflect ¶
func (x *QueryValidatorResponse) ProtoReflect() protoreflect.Message
func (*QueryValidatorResponse) Reset ¶
func (x *QueryValidatorResponse) Reset()
func (*QueryValidatorResponse) String ¶
func (x *QueryValidatorResponse) String() string
type QueryValidatorStatusRequest ¶
type QueryValidatorStatusRequest struct { ValAddress string `protobuf:"bytes,1,opt,name=val_address,json=valAddress,proto3" json:"val_address,omitempty"` // contains filtered or unexported fields }
func (*QueryValidatorStatusRequest) Descriptor
deprecated
func (*QueryValidatorStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryValidatorStatusRequest.ProtoReflect.Descriptor instead.
func (*QueryValidatorStatusRequest) GetValAddress ¶
func (x *QueryValidatorStatusRequest) GetValAddress() string
func (*QueryValidatorStatusRequest) ProtoMessage ¶
func (*QueryValidatorStatusRequest) ProtoMessage()
func (*QueryValidatorStatusRequest) ProtoReflect ¶
func (x *QueryValidatorStatusRequest) ProtoReflect() protoreflect.Message
func (*QueryValidatorStatusRequest) Reset ¶
func (x *QueryValidatorStatusRequest) Reset()
func (*QueryValidatorStatusRequest) String ¶
func (x *QueryValidatorStatusRequest) String() string
type QueryValidatorStatusResponse ¶
type QueryValidatorStatusResponse struct { IsOld bool `protobuf:"varint,1,opt,name=is_old,json=isOld,proto3" json:"is_old,omitempty"` // contains filtered or unexported fields }
func (*QueryValidatorStatusResponse) Descriptor
deprecated
func (*QueryValidatorStatusResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryValidatorStatusResponse.ProtoReflect.Descriptor instead.
func (*QueryValidatorStatusResponse) GetIsOld ¶
func (x *QueryValidatorStatusResponse) GetIsOld() bool
func (*QueryValidatorStatusResponse) ProtoMessage ¶
func (*QueryValidatorStatusResponse) ProtoMessage()
func (*QueryValidatorStatusResponse) ProtoReflect ¶
func (x *QueryValidatorStatusResponse) ProtoReflect() protoreflect.Message
func (*QueryValidatorStatusResponse) Reset ¶
func (x *QueryValidatorStatusResponse) Reset()
func (*QueryValidatorStatusResponse) String ¶
func (x *QueryValidatorStatusResponse) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) SignerUpdate ¶
func (UnimplementedMsgServer) SignerUpdate(context.Context, *MsgSignerUpdate) (*MsgSignerUpdateResponse, error)
func (UnimplementedMsgServer) StakeUpdate ¶
func (UnimplementedMsgServer) StakeUpdate(context.Context, *MsgStakeUpdate) (*MsgStakeUpdateResponse, error)
func (UnimplementedMsgServer) ValidatorExit ¶
func (UnimplementedMsgServer) ValidatorExit(context.Context, *MsgValidatorExit) (*MsgValidatorExitResponse, error)
func (UnimplementedMsgServer) ValidatorJoin ¶
func (UnimplementedMsgServer) ValidatorJoin(context.Context, *MsgValidatorJoin) (*MsgValidatorJoinResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) GetCurrentValidatorSet ¶
func (UnimplementedQueryServer) GetCurrentValidatorSet(context.Context, *QueryCurrentValidatorSetRequest) (*QueryCurrentValidatorSetResponse, error)
func (UnimplementedQueryServer) GetProposersByTimes ¶
func (UnimplementedQueryServer) GetProposersByTimes(context.Context, *QueryProposersRequest) (*QueryProposersResponse, error)
func (UnimplementedQueryServer) GetSignerByAddress ¶
func (UnimplementedQueryServer) GetSignerByAddress(context.Context, *QuerySignerRequest) (*QuerySignerResponse, error)
func (UnimplementedQueryServer) GetTotalPower ¶
func (UnimplementedQueryServer) GetTotalPower(context.Context, *QueryTotalPowerRequest) (*QueryTotalPowerResponse, error)
func (UnimplementedQueryServer) GetValidatorById ¶
func (UnimplementedQueryServer) GetValidatorById(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
func (UnimplementedQueryServer) GetValidatorStatusByAddress ¶
func (UnimplementedQueryServer) GetValidatorStatusByAddress(context.Context, *QueryValidatorStatusRequest) (*QueryValidatorStatusResponse, error)
func (UnimplementedQueryServer) IsStakeTxOld ¶
func (UnimplementedQueryServer) IsStakeTxOld(context.Context, *QueryStakeIsOldTxRequest) (*QueryStakeIsOldTxResponse, error)
type UnsafeMsgServer ¶
type UnsafeMsgServer interface {
// contains filtered or unexported methods
}
UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.
type UnsafeQueryServer ¶
type UnsafeQueryServer interface {
// contains filtered or unexported methods
}
UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.
type Validator ¶
type Validator struct { ValId uint64 `protobuf:"varint,1,opt,name=val_id,json=valId,proto3" json:"val_id,omitempty"` StartEpoch uint64 `protobuf:"varint,2,opt,name=start_epoch,json=startEpoch,proto3" json:"start_epoch,omitempty"` EndEpoch uint64 `protobuf:"varint,3,opt,name=end_epoch,json=endEpoch,proto3" json:"end_epoch,omitempty"` Nonce uint64 `protobuf:"varint,4,opt,name=nonce,proto3" json:"nonce,omitempty"` VotingPower int64 `protobuf:"varint,5,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"` PubKey []byte `protobuf:"bytes,6,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"` Signer string `protobuf:"bytes,7,opt,name=signer,proto3" json:"signer,omitempty"` LastUpdated string `protobuf:"bytes,8,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` Jailed bool `protobuf:"varint,9,opt,name=jailed,proto3" json:"jailed,omitempty"` ProposerPriority int64 `protobuf:"varint,10,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"` // contains filtered or unexported fields }
func (*Validator) Descriptor
deprecated
func (*Validator) GetEndEpoch ¶
func (*Validator) GetLastUpdated ¶
func (*Validator) GetProposerPriority ¶
func (*Validator) GetStartEpoch ¶
func (*Validator) GetVotingPower ¶
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) ProtoReflect ¶
func (x *Validator) ProtoReflect() protoreflect.Message
type ValidatorSet ¶
type ValidatorSet struct { Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"` Proposer *Validator `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"` TotalVotingPower int64 `protobuf:"varint,3,opt,name=total_voting_power,json=totalVotingPower,proto3" json:"total_voting_power,omitempty"` // contains filtered or unexported fields }
func (*ValidatorSet) Descriptor
deprecated
func (*ValidatorSet) Descriptor() ([]byte, []int)
Deprecated: Use ValidatorSet.ProtoReflect.Descriptor instead.
func (*ValidatorSet) GetProposer ¶
func (x *ValidatorSet) GetProposer() *Validator
func (*ValidatorSet) GetTotalVotingPower ¶
func (x *ValidatorSet) GetTotalVotingPower() int64
func (*ValidatorSet) GetValidators ¶
func (x *ValidatorSet) GetValidators() []*Validator
func (*ValidatorSet) ProtoMessage ¶
func (*ValidatorSet) ProtoMessage()
func (*ValidatorSet) ProtoReflect ¶
func (x *ValidatorSet) ProtoReflect() protoreflect.Message
func (*ValidatorSet) Reset ¶
func (x *ValidatorSet) Reset()
func (*ValidatorSet) String ¶
func (x *ValidatorSet) String() string