Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetHistoricalInfoKey(height int64) []byte
- func GetSequencerByConsAddrKey(addr sdk.ConsAddress) []byte
- func GetSequencerKey(operatorAddr sdk.ValAddress) []byte
- func NewSequencer(operator sdk.ValAddress, pubKey cryptotypes.PubKey, power int64) (stakingtypes.Validator, error)
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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 GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetGenesisOperatorAddress() string
- func (m *GenesisState) GetParams() Params
- 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 (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 Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetHistoricalEntries() 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 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 // Stub variable to store the operator address from the InitChain request InitChainStubAddr = "initchainstubaddr" )
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 // 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
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrMultipleDymintSequencers = errorsmod.Register(ModuleName, 1, "multiple dymint sequencers not supported") ErrNoSequencerOnInitChain = errorsmod.Register(ModuleName, 2, "no sequencer defined on InitChain") ErrFailedInitChain = errorsmod.Register(ModuleName, 4, "failed to initialize sequencer on InitChain") ErrFailedInitGenesis = errorsmod.Register(ModuleName, 5, "failed to initialize sequencer on InitGenesis") ErrSequencerNotFound = errorsmod.Register(ModuleName, 6, "sequencer address not found") ErrHistoricalInfoNotFound = errorsmod.Register(ModuleName, 7, "historical info not found") )
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 SequencersKey = []byte{0x21} // prefix for each key to a sequencer SequencersByConsAddrKey = []byte{0x22} // prefix for each key to a sequencer index, by pubkey HistoricalInfoKey = []byte{0x50} // prefix for the historical info )
var ( KeyUnbondingTime = []byte("UnbondingTime") KeyHistoricalEntries = []byte("HistoricalEntries") )
Functions ¶
func GetHistoricalInfoKey ¶
GetHistoricalInfoKey returns a key prefix for indexing HistoricalInfo objects.
func GetSequencerByConsAddrKey ¶
func GetSequencerByConsAddrKey(addr sdk.ConsAddress) []byte
GetSequencerByConsAddrKey creates the key for the sequencer with pubkey
func GetSequencerKey ¶
func GetSequencerKey(operatorAddr sdk.ValAddress) []byte
GetSequencerKey creates the key for the sequencer with address
func NewSequencer ¶
func NewSequencer(operator sdk.ValAddress, pubKey cryptotypes.PubKey, power int64) (stakingtypes.Validator, error)
---------------------------------- UTILS ---------------------------------
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` // genesis_operator_address defines the genesis operator address of the // sequencer. GenesisOperatorAddress string `` /* 129-byte string literal not displayed */ }
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) GetGenesisOperatorAddress ¶
func (m *GenesisState) GetGenesisOperatorAddress() string
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
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) 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 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"` // 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) 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 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)