Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetDymintSeqKey(addr sdk.ConsAddress) []byte
- func GetHistoricalInfoKey(height int64) []byte
- func GetValidatorByConsAddrKey(addr sdk.ConsAddress) []byte
- func GetValidatorKey(operatorAddr sdk.ValAddress) []byte
- func NewSequencer(operator sdk.ValAddress, pubKey cryptotypes.PubKey, power uint64) (stakingtypes.Validator, error)
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetExported() bool
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetSequencers() []types.Validator
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (g GenesisState) UnpackInterfaces(c codectypes.AnyUnpacker) error
- func (gs GenesisState) ValidateGenesis() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateSequencer
- func (*MsgCreateSequencer) Descriptor() ([]byte, []int)
- func (msg MsgCreateSequencer) GetSignBytes() []byte
- func (msg MsgCreateSequencer) GetSigners() []sdk.AccAddress
- func (m *MsgCreateSequencer) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSequencer) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSequencer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSequencer) ProtoMessage()
- func (m *MsgCreateSequencer) Reset()
- func (msg MsgCreateSequencer) Route() string
- func (m *MsgCreateSequencer) Size() (n int)
- func (m *MsgCreateSequencer) String() string
- func (msg MsgCreateSequencer) Type() string
- func (m *MsgCreateSequencer) Unmarshal(dAtA []byte) error
- func (msg MsgCreateSequencer) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (msg MsgCreateSequencer) ValidateBasic() error
- func (m *MsgCreateSequencer) XXX_DiscardUnknown()
- func (m *MsgCreateSequencer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSequencer) XXX_Merge(src proto.Message)
- func (m *MsgCreateSequencer) XXX_Size() int
- func (m *MsgCreateSequencer) XXX_Unmarshal(b []byte) error
- type MsgCreateSequencerResponse
- func (*MsgCreateSequencerResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateSequencerResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateSequencerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateSequencerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateSequencerResponse) ProtoMessage()
- func (m *MsgCreateSequencerResponse) Reset()
- func (m *MsgCreateSequencerResponse) Size() (n int)
- func (m *MsgCreateSequencerResponse) String() string
- func (m *MsgCreateSequencerResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateSequencerResponse) XXX_DiscardUnknown()
- func (m *MsgCreateSequencerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateSequencerResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateSequencerResponse) XXX_Size() int
- func (m *MsgCreateSequencerResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetHistoricalEntries() uint32
- func (m *Params) GetMaxSequencers() uint32
- func (m *Params) GetUnbondingTime() time.Duration
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryHistoricalInfoRequest
- func (*QueryHistoricalInfoRequest) Descriptor() ([]byte, []int)
- func (m *QueryHistoricalInfoRequest) GetHeight() int64
- func (m *QueryHistoricalInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryHistoricalInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryHistoricalInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryHistoricalInfoRequest) ProtoMessage()
- func (m *QueryHistoricalInfoRequest) Reset()
- func (m *QueryHistoricalInfoRequest) Size() (n int)
- func (m *QueryHistoricalInfoRequest) String() string
- func (m *QueryHistoricalInfoRequest) Unmarshal(dAtA []byte) error
- func (m *QueryHistoricalInfoRequest) XXX_DiscardUnknown()
- func (m *QueryHistoricalInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryHistoricalInfoRequest) XXX_Merge(src proto.Message)
- func (m *QueryHistoricalInfoRequest) XXX_Size() int
- func (m *QueryHistoricalInfoRequest) XXX_Unmarshal(b []byte) error
- type QueryHistoricalInfoResponse
- func (*QueryHistoricalInfoResponse) Descriptor() ([]byte, []int)
- func (m *QueryHistoricalInfoResponse) GetHist() *types.HistoricalInfo
- func (m *QueryHistoricalInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryHistoricalInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryHistoricalInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryHistoricalInfoResponse) ProtoMessage()
- func (m *QueryHistoricalInfoResponse) Reset()
- func (m *QueryHistoricalInfoResponse) Size() (n int)
- func (m *QueryHistoricalInfoResponse) String() string
- func (m *QueryHistoricalInfoResponse) Unmarshal(dAtA []byte) error
- func (m *QueryHistoricalInfoResponse) XXX_DiscardUnknown()
- func (m *QueryHistoricalInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryHistoricalInfoResponse) XXX_Merge(src proto.Message)
- func (m *QueryHistoricalInfoResponse) XXX_Size() int
- func (m *QueryHistoricalInfoResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QuerySequencerRequest
- func (*QuerySequencerRequest) Descriptor() ([]byte, []int)
- func (m *QuerySequencerRequest) GetSequencerAddr() string
- func (m *QuerySequencerRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySequencerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySequencerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySequencerRequest) ProtoMessage()
- func (m *QuerySequencerRequest) Reset()
- func (m *QuerySequencerRequest) Size() (n int)
- func (m *QuerySequencerRequest) String() string
- func (m *QuerySequencerRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySequencerRequest) XXX_DiscardUnknown()
- func (m *QuerySequencerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySequencerRequest) XXX_Merge(src proto.Message)
- func (m *QuerySequencerRequest) XXX_Size() int
- func (m *QuerySequencerRequest) XXX_Unmarshal(b []byte) error
- type QuerySequencerResponse
- func (*QuerySequencerResponse) Descriptor() ([]byte, []int)
- func (m *QuerySequencerResponse) GetSequencer() types.Validator
- func (m *QuerySequencerResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySequencerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySequencerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySequencerResponse) ProtoMessage()
- func (m *QuerySequencerResponse) Reset()
- func (m *QuerySequencerResponse) Size() (n int)
- func (m *QuerySequencerResponse) String() string
- func (m *QuerySequencerResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySequencerResponse) XXX_DiscardUnknown()
- func (m *QuerySequencerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySequencerResponse) XXX_Merge(src proto.Message)
- func (m *QuerySequencerResponse) XXX_Size() int
- func (m *QuerySequencerResponse) XXX_Unmarshal(b []byte) error
- type QuerySequencersRequest
- func (*QuerySequencersRequest) Descriptor() ([]byte, []int)
- func (m *QuerySequencersRequest) GetPagination() *query.PageRequest
- func (m *QuerySequencersRequest) GetStatus() string
- func (m *QuerySequencersRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySequencersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySequencersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySequencersRequest) ProtoMessage()
- func (m *QuerySequencersRequest) Reset()
- func (m *QuerySequencersRequest) Size() (n int)
- func (m *QuerySequencersRequest) String() string
- func (m *QuerySequencersRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySequencersRequest) XXX_DiscardUnknown()
- func (m *QuerySequencersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySequencersRequest) XXX_Merge(src proto.Message)
- func (m *QuerySequencersRequest) XXX_Size() int
- func (m *QuerySequencersRequest) XXX_Unmarshal(b []byte) error
- type QuerySequencersResponse
- func (*QuerySequencersResponse) Descriptor() ([]byte, []int)
- func (m *QuerySequencersResponse) GetPagination() *query.PageResponse
- func (m *QuerySequencersResponse) GetSequencers() []types.Validator
- func (m *QuerySequencersResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySequencersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySequencersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySequencersResponse) ProtoMessage()
- func (m *QuerySequencersResponse) Reset()
- func (m *QuerySequencersResponse) Size() (n int)
- func (m *QuerySequencersResponse) String() string
- func (m *QuerySequencersResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySequencersResponse) XXX_DiscardUnknown()
- func (m *QuerySequencersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySequencersResponse) XXX_Merge(src proto.Message)
- func (m *QuerySequencersResponse) XXX_Size() int
- func (m *QuerySequencersResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) HistoricalInfo(ctx context.Context, req *QueryHistoricalInfoRequest) (*QueryHistoricalInfoResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Sequencer(ctx context.Context, req *QuerySequencerRequest) (*QuerySequencerResponse, error)
- func (*UnimplementedQueryServer) Sequencers(ctx context.Context, req *QuerySequencersRequest) (*QuerySequencersResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "sequencers" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the module's message route key RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
const ( // DefaultUnbondingTime reflects three weeks in seconds as the default // unbonding time. // TODO: Justify our choice of default here. DefaultUnbondingTime time.Duration = time.Hour * 24 * 7 * 3 // Default maximum number sequencers DefaultMaxSequencers uint32 = 1 // DefaultHistorical entries is 10000. Apps that don't use IBC can ignore this // value by not adding the staking module to the application module manager's // SetOrderBeginBlockers. DefaultHistoricalEntries uint32 = 10000 )
Staking params default values
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const TypeMsgCreateSequencer = "create_sequencer"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrNoSequencerOnGenesis = sdkerrors.Register(ModuleName, 1, "sequencer on genesis required") ErrSequencerNotFound = sdkerrors.Register(ModuleName, 2, "sequencer address not found") ErrHistoricalInfoNotFound = sdkerrors.Register(ModuleName, 3, "historical info not found") ErrEmptyValidatorAddr = sdkerrors.Register(ModuleName, 100, "empty validator address") ErrNoValidatorFound = sdkerrors.Register(ModuleName, 101, "validator does not exist") ErrValidatorOwnerExists = sdkerrors.Register(ModuleName, 102, "validator already exist for this operator address; must use new validator operator address") ErrValidatorPubKeyExists = sdkerrors.Register(ModuleName, 103, "validator already exist for this pubkey; must use new validator pubkey") ErrValidatorPubKeyTypeNotSupported = sdkerrors.Register(ModuleName, 104, "validator pubkey type is not supported") ErrEmptyDelegatorAddr = sdkerrors.Register(ModuleName, 105, "empty delegator address") ErrEmptyValidatorPubKey = sdkerrors.Register(ModuleName, 106, "empty validator public key") ErrSequencerNotRegistered = sdkerrors.Register(ModuleName, 107, "sequencer not registered on the hub") )
x/sequencers module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // Keys for store prefixes ValidatorsKey = []byte{0x21} // prefix for each key to a validator ValidatorsByConsAddrKey = []byte{0x22} // prefix for each key to a validator index, by pubkey DymintSeqKey = []byte{0x23} // prefix for each key sequencer registerd on dymint, by pubkey HistoricalInfoKey = []byte{0x50} // prefix for the historical info )
var ( KeyUnbondingTime = []byte("UnbondingTime") KeyMaxSequencers = []byte("MaxSequencers") KeyHistoricalEntries = []byte("HistoricalEntries") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func GetDymintSeqKey ¶
func GetDymintSeqKey(addr sdk.ConsAddress) []byte
DymintSeqKey creates the key for the validator with address VALUE: staking/Validator
func GetHistoricalInfoKey ¶
GetHistoricalInfoKey returns a key prefix for indexing HistoricalInfo objects.
func GetValidatorByConsAddrKey ¶
func GetValidatorByConsAddrKey(addr sdk.ConsAddress) []byte
GetValidatorByConsAddrKey creates the key for the validator with pubkey VALUE: validator operator address ([]byte)
func GetValidatorKey ¶
func GetValidatorKey(operatorAddr sdk.ValAddress) []byte
GetValidatorKey creates the key for the validator with address VALUE: staking/Validator
func NewSequencer ¶
func NewSequencer(operator sdk.ValAddress, pubKey cryptotypes.PubKey, power uint64) (stakingtypes.Validator, error)
---------------------------------- UTILS ---------------------------------
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // delegations defines the validator set at genesis. Sequencers []types.Validator `protobuf:"bytes,2,rep,name=sequencers,proto3" json:"sequencers"` Exported bool `protobuf:"varint,3,opt,name=exported,proto3" json:"exported,omitempty"` }
GenesisState defines the test module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetExported ¶
func (m *GenesisState) GetExported() bool
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetSequencers ¶
func (m *GenesisState) GetSequencers() []types.Validator
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) UnpackInterfaces ¶
func (g GenesisState) UnpackInterfaces(c codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (GenesisState) ValidateGenesis ¶
func (gs GenesisState) ValidateGenesis() error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // this line is used by starport scaffolding # proto/tx/rpc // CreateValidator defines a method for creating a new validator. CreateSequencer(ctx context.Context, in *MsgCreateSequencer, opts ...grpc.CallOption) (*MsgCreateSequencerResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreateSequencer ¶
type MsgCreateSequencer struct { Description types.Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description"` Commission types.CommissionRates `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission"` MinSelfDelegation string `` /* 141-byte string literal not displayed */ DelegatorAddress string `` /* 134-byte string literal not displayed */ SequencerAddress string `` /* 134-byte string literal not displayed */ Pubkey *types1.Any `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Value types2.Coin `protobuf:"bytes,7,opt,name=value,proto3" json:"value"` }
MsgCreateSequencer defines a SDK message for creating a new sequencer.
func NewMsgCreateSequencer ¶
func NewMsgCreateSequencer( valAddr sdk.ValAddress, pubKey cryptotypes.PubKey, description stakingtypes.Description, ) (*MsgCreateSequencer, error)
func (*MsgCreateSequencer) Descriptor ¶
func (*MsgCreateSequencer) Descriptor() ([]byte, []int)
func (MsgCreateSequencer) GetSignBytes ¶
func (msg MsgCreateSequencer) GetSignBytes() []byte
func (MsgCreateSequencer) GetSigners ¶
func (msg MsgCreateSequencer) GetSigners() []sdk.AccAddress
func (*MsgCreateSequencer) Marshal ¶
func (m *MsgCreateSequencer) Marshal() (dAtA []byte, err error)
func (*MsgCreateSequencer) MarshalTo ¶
func (m *MsgCreateSequencer) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateSequencer) MarshalToSizedBuffer ¶
func (m *MsgCreateSequencer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateSequencer) ProtoMessage ¶
func (*MsgCreateSequencer) ProtoMessage()
func (*MsgCreateSequencer) Reset ¶
func (m *MsgCreateSequencer) Reset()
func (MsgCreateSequencer) Route ¶
func (msg MsgCreateSequencer) Route() string
func (*MsgCreateSequencer) Size ¶
func (m *MsgCreateSequencer) Size() (n int)
func (*MsgCreateSequencer) String ¶
func (m *MsgCreateSequencer) String() string
func (MsgCreateSequencer) Type ¶
func (msg MsgCreateSequencer) Type() string
func (*MsgCreateSequencer) Unmarshal ¶
func (m *MsgCreateSequencer) Unmarshal(dAtA []byte) error
func (MsgCreateSequencer) UnpackInterfaces ¶
func (msg MsgCreateSequencer) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces
func (MsgCreateSequencer) ValidateBasic ¶
func (msg MsgCreateSequencer) ValidateBasic() error
ValidateBasic implements the sdk.Msg interface.
func (*MsgCreateSequencer) XXX_DiscardUnknown ¶
func (m *MsgCreateSequencer) XXX_DiscardUnknown()
func (*MsgCreateSequencer) XXX_Marshal ¶
func (m *MsgCreateSequencer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateSequencer) XXX_Merge ¶
func (m *MsgCreateSequencer) XXX_Merge(src proto.Message)
func (*MsgCreateSequencer) XXX_Size ¶
func (m *MsgCreateSequencer) XXX_Size() int
func (*MsgCreateSequencer) XXX_Unmarshal ¶
func (m *MsgCreateSequencer) XXX_Unmarshal(b []byte) error
type MsgCreateSequencerResponse ¶
type MsgCreateSequencerResponse struct { }
MsgCreateSequencerResponse defines the Msg/CreateSequencer response type.
func (*MsgCreateSequencerResponse) Descriptor ¶
func (*MsgCreateSequencerResponse) Descriptor() ([]byte, []int)
func (*MsgCreateSequencerResponse) Marshal ¶
func (m *MsgCreateSequencerResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateSequencerResponse) MarshalTo ¶
func (m *MsgCreateSequencerResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateSequencerResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateSequencerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateSequencerResponse) ProtoMessage ¶
func (*MsgCreateSequencerResponse) ProtoMessage()
func (*MsgCreateSequencerResponse) Reset ¶
func (m *MsgCreateSequencerResponse) Reset()
func (*MsgCreateSequencerResponse) Size ¶
func (m *MsgCreateSequencerResponse) Size() (n int)
func (*MsgCreateSequencerResponse) String ¶
func (m *MsgCreateSequencerResponse) String() string
func (*MsgCreateSequencerResponse) Unmarshal ¶
func (m *MsgCreateSequencerResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateSequencerResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateSequencerResponse) XXX_DiscardUnknown()
func (*MsgCreateSequencerResponse) XXX_Marshal ¶
func (m *MsgCreateSequencerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateSequencerResponse) XXX_Merge ¶
func (m *MsgCreateSequencerResponse) XXX_Merge(src proto.Message)
func (*MsgCreateSequencerResponse) XXX_Size ¶
func (m *MsgCreateSequencerResponse) XXX_Size() int
func (*MsgCreateSequencerResponse) XXX_Unmarshal ¶
func (m *MsgCreateSequencerResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // this line is used by starport scaffolding # proto/tx/rpc // CreateValidator defines a method for creating a new validator. CreateSequencer(context.Context, *MsgCreateSequencer) (*MsgCreateSequencerResponse, error) }
MsgServer is the server API for Msg service.
type Params ¶
type Params struct { // unbonding_time is the time duration of unbonding. UnbondingTime time.Duration `protobuf:"bytes,1,opt,name=unbonding_time,json=unbondingTime,proto3,stdduration" json:"unbonding_time" yaml:"unbonding_time"` // max_validators is the maximum number of validators. MaxSequencers uint32 `protobuf:"varint,2,opt,name=max_sequencers,json=maxSequencers,proto3" json:"max_sequencers,omitempty" yaml:"max_sequencers"` // historical_entries is the number of historical entries to persist. HistoricalEntries uint32 `` /* 139-byte string literal not displayed */ }
Params defines the parameters for the module.
func MustUnmarshalParams ¶
func MustUnmarshalParams(cdc *codec.LegacyAmino, value []byte) Params
unmarshal the current staking params value from store key or panic
func UnmarshalParams ¶
func UnmarshalParams(cdc *codec.LegacyAmino, value []byte) (params Params, err error)
unmarshal the current staking params value from store key
func (*Params) Descriptor ¶
func (*Params) GetHistoricalEntries ¶
func (*Params) GetMaxSequencers ¶
func (*Params) GetUnbondingTime ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
Implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Sequencers queries all sequencers that match the given status. Sequencers(ctx context.Context, in *QuerySequencersRequest, opts ...grpc.CallOption) (*QuerySequencersResponse, error) // Sequencer queries validator info for given validator address. Sequencer(ctx context.Context, in *QuerySequencerRequest, opts ...grpc.CallOption) (*QuerySequencerResponse, error) // HistoricalInfo queries the historical info for given height. HistoricalInfo(ctx context.Context, in *QueryHistoricalInfoRequest, opts ...grpc.CallOption) (*QueryHistoricalInfoResponse, error) // Parameters queries the staking parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryHistoricalInfoRequest ¶
type QueryHistoricalInfoRequest struct { // height defines at which height to query the historical info. Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"` }
QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC method.
func (*QueryHistoricalInfoRequest) Descriptor ¶
func (*QueryHistoricalInfoRequest) Descriptor() ([]byte, []int)
func (*QueryHistoricalInfoRequest) GetHeight ¶
func (m *QueryHistoricalInfoRequest) GetHeight() int64
func (*QueryHistoricalInfoRequest) Marshal ¶
func (m *QueryHistoricalInfoRequest) Marshal() (dAtA []byte, err error)
func (*QueryHistoricalInfoRequest) MarshalTo ¶
func (m *QueryHistoricalInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryHistoricalInfoRequest) MarshalToSizedBuffer ¶
func (m *QueryHistoricalInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryHistoricalInfoRequest) ProtoMessage ¶
func (*QueryHistoricalInfoRequest) ProtoMessage()
func (*QueryHistoricalInfoRequest) Reset ¶
func (m *QueryHistoricalInfoRequest) Reset()
func (*QueryHistoricalInfoRequest) Size ¶
func (m *QueryHistoricalInfoRequest) Size() (n int)
func (*QueryHistoricalInfoRequest) String ¶
func (m *QueryHistoricalInfoRequest) String() string
func (*QueryHistoricalInfoRequest) Unmarshal ¶
func (m *QueryHistoricalInfoRequest) Unmarshal(dAtA []byte) error
func (*QueryHistoricalInfoRequest) XXX_DiscardUnknown ¶
func (m *QueryHistoricalInfoRequest) XXX_DiscardUnknown()
func (*QueryHistoricalInfoRequest) XXX_Marshal ¶
func (m *QueryHistoricalInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryHistoricalInfoRequest) XXX_Merge ¶
func (m *QueryHistoricalInfoRequest) XXX_Merge(src proto.Message)
func (*QueryHistoricalInfoRequest) XXX_Size ¶
func (m *QueryHistoricalInfoRequest) XXX_Size() int
func (*QueryHistoricalInfoRequest) XXX_Unmarshal ¶
func (m *QueryHistoricalInfoRequest) XXX_Unmarshal(b []byte) error
type QueryHistoricalInfoResponse ¶
type QueryHistoricalInfoResponse struct { // hist defines the historical info at the given height. Hist *types.HistoricalInfo `protobuf:"bytes,1,opt,name=hist,proto3" json:"hist,omitempty"` }
QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC method.
func (*QueryHistoricalInfoResponse) Descriptor ¶
func (*QueryHistoricalInfoResponse) Descriptor() ([]byte, []int)
func (*QueryHistoricalInfoResponse) GetHist ¶
func (m *QueryHistoricalInfoResponse) GetHist() *types.HistoricalInfo
func (*QueryHistoricalInfoResponse) Marshal ¶
func (m *QueryHistoricalInfoResponse) Marshal() (dAtA []byte, err error)
func (*QueryHistoricalInfoResponse) MarshalTo ¶
func (m *QueryHistoricalInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryHistoricalInfoResponse) MarshalToSizedBuffer ¶
func (m *QueryHistoricalInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryHistoricalInfoResponse) ProtoMessage ¶
func (*QueryHistoricalInfoResponse) ProtoMessage()
func (*QueryHistoricalInfoResponse) Reset ¶
func (m *QueryHistoricalInfoResponse) Reset()
func (*QueryHistoricalInfoResponse) Size ¶
func (m *QueryHistoricalInfoResponse) Size() (n int)
func (*QueryHistoricalInfoResponse) String ¶
func (m *QueryHistoricalInfoResponse) String() string
func (*QueryHistoricalInfoResponse) Unmarshal ¶
func (m *QueryHistoricalInfoResponse) Unmarshal(dAtA []byte) error
func (*QueryHistoricalInfoResponse) XXX_DiscardUnknown ¶
func (m *QueryHistoricalInfoResponse) XXX_DiscardUnknown()
func (*QueryHistoricalInfoResponse) XXX_Marshal ¶
func (m *QueryHistoricalInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryHistoricalInfoResponse) XXX_Merge ¶
func (m *QueryHistoricalInfoResponse) XXX_Merge(src proto.Message)
func (*QueryHistoricalInfoResponse) XXX_Size ¶
func (m *QueryHistoricalInfoResponse) XXX_Size() int
func (*QueryHistoricalInfoResponse) XXX_Unmarshal ¶
func (m *QueryHistoricalInfoResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QuerySequencerRequest ¶
type QuerySequencerRequest struct { // sequencer_addr defines the sequencer address to query for. SequencerAddr string `protobuf:"bytes,1,opt,name=sequencer_addr,json=sequencerAddr,proto3" json:"sequencer_addr,omitempty"` }
QuerySequencerRequest is response type for the Query/Sequencer RPC method
func (*QuerySequencerRequest) Descriptor ¶
func (*QuerySequencerRequest) Descriptor() ([]byte, []int)
func (*QuerySequencerRequest) GetSequencerAddr ¶
func (m *QuerySequencerRequest) GetSequencerAddr() string
func (*QuerySequencerRequest) Marshal ¶
func (m *QuerySequencerRequest) Marshal() (dAtA []byte, err error)
func (*QuerySequencerRequest) MarshalTo ¶
func (m *QuerySequencerRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySequencerRequest) MarshalToSizedBuffer ¶
func (m *QuerySequencerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySequencerRequest) ProtoMessage ¶
func (*QuerySequencerRequest) ProtoMessage()
func (*QuerySequencerRequest) Reset ¶
func (m *QuerySequencerRequest) Reset()
func (*QuerySequencerRequest) Size ¶
func (m *QuerySequencerRequest) Size() (n int)
func (*QuerySequencerRequest) String ¶
func (m *QuerySequencerRequest) String() string
func (*QuerySequencerRequest) Unmarshal ¶
func (m *QuerySequencerRequest) Unmarshal(dAtA []byte) error
func (*QuerySequencerRequest) XXX_DiscardUnknown ¶
func (m *QuerySequencerRequest) XXX_DiscardUnknown()
func (*QuerySequencerRequest) XXX_Marshal ¶
func (m *QuerySequencerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySequencerRequest) XXX_Merge ¶
func (m *QuerySequencerRequest) XXX_Merge(src proto.Message)
func (*QuerySequencerRequest) XXX_Size ¶
func (m *QuerySequencerRequest) XXX_Size() int
func (*QuerySequencerRequest) XXX_Unmarshal ¶
func (m *QuerySequencerRequest) XXX_Unmarshal(b []byte) error
type QuerySequencerResponse ¶
type QuerySequencerResponse struct { // sequencer defines the the sequencer info. Sequencer types.Validator `protobuf:"bytes,1,opt,name=sequencer,proto3" json:"sequencer"` }
QuerySequencerResponse is response type for the Query/Sequencer RPC method
func (*QuerySequencerResponse) Descriptor ¶
func (*QuerySequencerResponse) Descriptor() ([]byte, []int)
func (*QuerySequencerResponse) GetSequencer ¶
func (m *QuerySequencerResponse) GetSequencer() types.Validator
func (*QuerySequencerResponse) Marshal ¶
func (m *QuerySequencerResponse) Marshal() (dAtA []byte, err error)
func (*QuerySequencerResponse) MarshalTo ¶
func (m *QuerySequencerResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySequencerResponse) MarshalToSizedBuffer ¶
func (m *QuerySequencerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySequencerResponse) ProtoMessage ¶
func (*QuerySequencerResponse) ProtoMessage()
func (*QuerySequencerResponse) Reset ¶
func (m *QuerySequencerResponse) Reset()
func (*QuerySequencerResponse) Size ¶
func (m *QuerySequencerResponse) Size() (n int)
func (*QuerySequencerResponse) String ¶
func (m *QuerySequencerResponse) String() string
func (*QuerySequencerResponse) Unmarshal ¶
func (m *QuerySequencerResponse) Unmarshal(dAtA []byte) error
func (*QuerySequencerResponse) XXX_DiscardUnknown ¶
func (m *QuerySequencerResponse) XXX_DiscardUnknown()
func (*QuerySequencerResponse) XXX_Marshal ¶
func (m *QuerySequencerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySequencerResponse) XXX_Merge ¶
func (m *QuerySequencerResponse) XXX_Merge(src proto.Message)
func (*QuerySequencerResponse) XXX_Size ¶
func (m *QuerySequencerResponse) XXX_Size() int
func (*QuerySequencerResponse) XXX_Unmarshal ¶
func (m *QuerySequencerResponse) XXX_Unmarshal(b []byte) error
type QuerySequencersRequest ¶
type QuerySequencersRequest struct { // status enables to query for sequencers matching a given status. Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySequencersRequest is request type for Query/Sequencers RPC method.
func (*QuerySequencersRequest) Descriptor ¶
func (*QuerySequencersRequest) Descriptor() ([]byte, []int)
func (*QuerySequencersRequest) GetPagination ¶
func (m *QuerySequencersRequest) GetPagination() *query.PageRequest
func (*QuerySequencersRequest) GetStatus ¶
func (m *QuerySequencersRequest) GetStatus() string
func (*QuerySequencersRequest) Marshal ¶
func (m *QuerySequencersRequest) Marshal() (dAtA []byte, err error)
func (*QuerySequencersRequest) MarshalTo ¶
func (m *QuerySequencersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySequencersRequest) MarshalToSizedBuffer ¶
func (m *QuerySequencersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySequencersRequest) ProtoMessage ¶
func (*QuerySequencersRequest) ProtoMessage()
func (*QuerySequencersRequest) Reset ¶
func (m *QuerySequencersRequest) Reset()
func (*QuerySequencersRequest) Size ¶
func (m *QuerySequencersRequest) Size() (n int)
func (*QuerySequencersRequest) String ¶
func (m *QuerySequencersRequest) String() string
func (*QuerySequencersRequest) Unmarshal ¶
func (m *QuerySequencersRequest) Unmarshal(dAtA []byte) error
func (*QuerySequencersRequest) XXX_DiscardUnknown ¶
func (m *QuerySequencersRequest) XXX_DiscardUnknown()
func (*QuerySequencersRequest) XXX_Marshal ¶
func (m *QuerySequencersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySequencersRequest) XXX_Merge ¶
func (m *QuerySequencersRequest) XXX_Merge(src proto.Message)
func (*QuerySequencersRequest) XXX_Size ¶
func (m *QuerySequencersRequest) XXX_Size() int
func (*QuerySequencersRequest) XXX_Unmarshal ¶
func (m *QuerySequencersRequest) XXX_Unmarshal(b []byte) error
type QuerySequencersResponse ¶
type QuerySequencersResponse struct { // sequencers contains all the queried sequencers. Sequencers []types.Validator `protobuf:"bytes,1,rep,name=sequencers,proto3" json:"sequencers"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QuerySequencersResponse is response type for the Query/Sequencers RPC method
func (*QuerySequencersResponse) Descriptor ¶
func (*QuerySequencersResponse) Descriptor() ([]byte, []int)
func (*QuerySequencersResponse) GetPagination ¶
func (m *QuerySequencersResponse) GetPagination() *query.PageResponse
func (*QuerySequencersResponse) GetSequencers ¶
func (m *QuerySequencersResponse) GetSequencers() []types.Validator
func (*QuerySequencersResponse) Marshal ¶
func (m *QuerySequencersResponse) Marshal() (dAtA []byte, err error)
func (*QuerySequencersResponse) MarshalTo ¶
func (m *QuerySequencersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySequencersResponse) MarshalToSizedBuffer ¶
func (m *QuerySequencersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySequencersResponse) ProtoMessage ¶
func (*QuerySequencersResponse) ProtoMessage()
func (*QuerySequencersResponse) Reset ¶
func (m *QuerySequencersResponse) Reset()
func (*QuerySequencersResponse) Size ¶
func (m *QuerySequencersResponse) Size() (n int)
func (*QuerySequencersResponse) String ¶
func (m *QuerySequencersResponse) String() string
func (*QuerySequencersResponse) Unmarshal ¶
func (m *QuerySequencersResponse) Unmarshal(dAtA []byte) error
func (*QuerySequencersResponse) XXX_DiscardUnknown ¶
func (m *QuerySequencersResponse) XXX_DiscardUnknown()
func (*QuerySequencersResponse) XXX_Marshal ¶
func (m *QuerySequencersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySequencersResponse) XXX_Merge ¶
func (m *QuerySequencersResponse) XXX_Merge(src proto.Message)
func (*QuerySequencersResponse) XXX_Size ¶
func (m *QuerySequencersResponse) XXX_Size() int
func (*QuerySequencersResponse) XXX_Unmarshal ¶
func (m *QuerySequencersResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Sequencers queries all sequencers that match the given status. Sequencers(context.Context, *QuerySequencersRequest) (*QuerySequencersResponse, error) // Sequencer queries validator info for given validator address. Sequencer(context.Context, *QuerySequencerRequest) (*QuerySequencerResponse, error) // HistoricalInfo queries the historical info for given height. HistoricalInfo(context.Context, *QueryHistoricalInfoRequest) (*QueryHistoricalInfoResponse, error) // Parameters queries the staking parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateSequencer ¶
func (*UnimplementedMsgServer) CreateSequencer(ctx context.Context, req *MsgCreateSequencer) (*MsgCreateSequencerResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) HistoricalInfo ¶
func (*UnimplementedQueryServer) HistoricalInfo(ctx context.Context, req *QueryHistoricalInfoRequest) (*QueryHistoricalInfoResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Sequencer ¶
func (*UnimplementedQueryServer) Sequencer(ctx context.Context, req *QuerySequencerRequest) (*QuerySequencerResponse, error)
func (*UnimplementedQueryServer) Sequencers ¶
func (*UnimplementedQueryServer) Sequencers(ctx context.Context, req *QuerySequencersRequest) (*QuerySequencersResponse, error)