stake

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2025 License: GPL-3.0 Imports: 18 Imported by: 0

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

View Source
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"
)
View Source
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

View Source
var File_heimdallv2_stake_genesis_proto protoreflect.FileDescriptor
View Source
var File_heimdallv2_stake_last_block_txs_proto protoreflect.FileDescriptor
View Source
var File_heimdallv2_stake_query_proto protoreflect.FileDescriptor
View Source
var File_heimdallv2_stake_tx_proto protoreflect.FileDescriptor
View Source
var File_heimdallv2_stake_validator_proto protoreflect.FileDescriptor
View Source
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)

View Source
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 (*QueryCurrentValidatorSetRequest) Reset

func (*QueryCurrentValidatorSetRequest) 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 (*QueryCurrentValidatorSetResponse) Reset

func (*QueryCurrentValidatorSetResponse) 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 (*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 (*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 (*QueryValidatorStatusResponse) Reset

func (x *QueryValidatorStatusResponse) Reset()

func (*QueryValidatorStatusResponse) String

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) SignerUpdate

func (UnimplementedMsgServer) StakeUpdate

func (UnimplementedMsgServer) ValidatorExit

func (UnimplementedMsgServer) ValidatorJoin

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) GetProposersByTimes

func (UnimplementedQueryServer) GetSignerByAddress

func (UnimplementedQueryServer) GetTotalPower

func (UnimplementedQueryServer) GetValidatorById

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) Descriptor() ([]byte, []int)

Deprecated: Use Validator.ProtoReflect.Descriptor instead.

func (*Validator) GetEndEpoch

func (x *Validator) GetEndEpoch() uint64

func (*Validator) GetJailed

func (x *Validator) GetJailed() bool

func (*Validator) GetLastUpdated

func (x *Validator) GetLastUpdated() string

func (*Validator) GetNonce

func (x *Validator) GetNonce() uint64

func (*Validator) GetProposerPriority

func (x *Validator) GetProposerPriority() int64

func (*Validator) GetPubKey

func (x *Validator) GetPubKey() []byte

func (*Validator) GetSigner

func (x *Validator) GetSigner() string

func (*Validator) GetStartEpoch

func (x *Validator) GetStartEpoch() uint64

func (*Validator) GetValId

func (x *Validator) GetValId() uint64

func (*Validator) GetVotingPower

func (x *Validator) GetVotingPower() int64

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) ProtoReflect

func (x *Validator) ProtoReflect() protoreflect.Message

func (*Validator) Reset

func (x *Validator) Reset()

func (*Validator) String

func (x *Validator) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL