Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CalcCurrentBorSpanId(latestBorBlock uint64, latestHeimdallSpan *Span) (uint64, error)
- func IsBlockCloseToSpanEnd(blockNumber, spanEnd uint64) bool
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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)
- func RegisterSideMsgServer(sideCfg sidetxs.SideTxConfigurator, srv sidetxs.SideMsgServer)
- func SetGenesisStateToAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage, ...) (map[string]json.RawMessage, error)
- func SortSpansById(a []Span)
- func SortValidatorByAddress(a []staketypes.Validator) []staketypes.Validator
- type BlockRange
- func (*BlockRange) Descriptor() ([]byte, []int)
- func (m *BlockRange) GetEndBlock() uint64
- func (m *BlockRange) GetStartBlock() uint64
- func (m *BlockRange) Marshal() (dAtA []byte, err error)
- func (m *BlockRange) MarshalTo(dAtA []byte) (int, error)
- func (m *BlockRange) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BlockRange) ProtoMessage()
- func (m *BlockRange) Reset()
- func (m *BlockRange) Size() (n int)
- func (m *BlockRange) String() string
- func (m *BlockRange) Unmarshal(dAtA []byte) error
- func (m *BlockRange) XXX_DiscardUnknown()
- func (m *BlockRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BlockRange) XXX_Merge(src proto.Message)
- func (m *BlockRange) XXX_Size() int
- func (m *BlockRange) XXX_Unmarshal(b []byte) error
- type ChainManagerKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetSpans() []Span
- 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) Validate() 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 MilestoneKeeper
- type MsgBackfillSpans
- func (*MsgBackfillSpans) Descriptor() ([]byte, []int)
- func (m *MsgBackfillSpans) GetChainId() string
- func (m *MsgBackfillSpans) GetLatestBorSpanId() uint64
- func (m *MsgBackfillSpans) GetLatestSpanId() uint64
- func (m *MsgBackfillSpans) GetProposer() string
- func (m *MsgBackfillSpans) Marshal() (dAtA []byte, err error)
- func (m *MsgBackfillSpans) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBackfillSpans) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBackfillSpans) ProtoMessage()
- func (m *MsgBackfillSpans) Reset()
- func (msg MsgBackfillSpans) Route() string
- func (m *MsgBackfillSpans) Size() (n int)
- func (m *MsgBackfillSpans) String() string
- func (msg MsgBackfillSpans) Type() string
- func (m *MsgBackfillSpans) Unmarshal(dAtA []byte) error
- func (m *MsgBackfillSpans) XXX_DiscardUnknown()
- func (m *MsgBackfillSpans) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBackfillSpans) XXX_Merge(src proto.Message)
- func (m *MsgBackfillSpans) XXX_Size() int
- func (m *MsgBackfillSpans) XXX_Unmarshal(b []byte) error
- type MsgBackfillSpansResponse
- func (*MsgBackfillSpansResponse) Descriptor() ([]byte, []int)
- func (m *MsgBackfillSpansResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBackfillSpansResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBackfillSpansResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBackfillSpansResponse) ProtoMessage()
- func (m *MsgBackfillSpansResponse) Reset()
- func (m *MsgBackfillSpansResponse) Size() (n int)
- func (m *MsgBackfillSpansResponse) String() string
- func (m *MsgBackfillSpansResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBackfillSpansResponse) XXX_DiscardUnknown()
- func (m *MsgBackfillSpansResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBackfillSpansResponse) XXX_Merge(src proto.Message)
- func (m *MsgBackfillSpansResponse) XXX_Size() int
- func (m *MsgBackfillSpansResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgProposeSpan
- func (*MsgProposeSpan) Descriptor() ([]byte, []int)
- func (m *MsgProposeSpan) GetChainId() string
- func (m *MsgProposeSpan) GetEndBlock() uint64
- func (m *MsgProposeSpan) GetProposer() string
- func (m *MsgProposeSpan) GetSeed() []byte
- func (m *MsgProposeSpan) GetSeedAuthor() string
- func (m *MsgProposeSpan) GetSpanId() uint64
- func (m *MsgProposeSpan) GetStartBlock() uint64
- func (m *MsgProposeSpan) Marshal() (dAtA []byte, err error)
- func (m *MsgProposeSpan) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgProposeSpan) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgProposeSpan) ProtoMessage()
- func (m *MsgProposeSpan) Reset()
- func (msg MsgProposeSpan) Route() string
- func (m *MsgProposeSpan) Size() (n int)
- func (m *MsgProposeSpan) String() string
- func (msg MsgProposeSpan) Type() string
- func (m *MsgProposeSpan) Unmarshal(dAtA []byte) error
- func (m *MsgProposeSpan) XXX_DiscardUnknown()
- func (m *MsgProposeSpan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgProposeSpan) XXX_Merge(src proto.Message)
- func (m *MsgProposeSpan) XXX_Size() int
- func (m *MsgProposeSpan) XXX_Unmarshal(b []byte) error
- type MsgProposeSpanResponse
- func (*MsgProposeSpanResponse) Descriptor() ([]byte, []int)
- func (m *MsgProposeSpanResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgProposeSpanResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgProposeSpanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgProposeSpanResponse) ProtoMessage()
- func (m *MsgProposeSpanResponse) Reset()
- func (m *MsgProposeSpanResponse) Size() (n int)
- func (m *MsgProposeSpanResponse) String() string
- func (m *MsgProposeSpanResponse) Unmarshal(dAtA []byte) error
- func (m *MsgProposeSpanResponse) XXX_DiscardUnknown()
- func (m *MsgProposeSpanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgProposeSpanResponse) XXX_Merge(src proto.Message)
- func (m *MsgProposeSpanResponse) XXX_Size() int
- func (m *MsgProposeSpanResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetProducerDowntime
- func (*MsgSetProducerDowntime) Descriptor() ([]byte, []int)
- func (m *MsgSetProducerDowntime) GetDowntimeRange() BlockRange
- func (m *MsgSetProducerDowntime) GetProducer() string
- func (m *MsgSetProducerDowntime) GetTargetProducerId() uint64
- func (m *MsgSetProducerDowntime) Marshal() (dAtA []byte, err error)
- func (m *MsgSetProducerDowntime) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetProducerDowntime) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetProducerDowntime) ProtoMessage()
- func (m *MsgSetProducerDowntime) Reset()
- func (m *MsgSetProducerDowntime) Size() (n int)
- func (m *MsgSetProducerDowntime) String() string
- func (m *MsgSetProducerDowntime) Unmarshal(dAtA []byte) error
- func (m *MsgSetProducerDowntime) XXX_DiscardUnknown()
- func (m *MsgSetProducerDowntime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetProducerDowntime) XXX_Merge(src proto.Message)
- func (m *MsgSetProducerDowntime) XXX_Size() int
- func (m *MsgSetProducerDowntime) XXX_Unmarshal(b []byte) error
- type MsgSetProducerDowntimeResponse
- func (*MsgSetProducerDowntimeResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetProducerDowntimeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetProducerDowntimeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetProducerDowntimeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetProducerDowntimeResponse) ProtoMessage()
- func (m *MsgSetProducerDowntimeResponse) Reset()
- func (m *MsgSetProducerDowntimeResponse) Size() (n int)
- func (m *MsgSetProducerDowntimeResponse) String() string
- func (m *MsgSetProducerDowntimeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetProducerDowntimeResponse) XXX_DiscardUnknown()
- func (m *MsgSetProducerDowntimeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetProducerDowntimeResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetProducerDowntimeResponse) XXX_Size() int
- func (m *MsgSetProducerDowntimeResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgVoteProducers
- func (*MsgVoteProducers) Descriptor() ([]byte, []int)
- func (m *MsgVoteProducers) GetVoter() string
- func (m *MsgVoteProducers) GetVoterId() uint64
- func (m *MsgVoteProducers) GetVotes() ProducerVotes
- func (m *MsgVoteProducers) Marshal() (dAtA []byte, err error)
- func (m *MsgVoteProducers) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVoteProducers) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVoteProducers) ProtoMessage()
- func (m *MsgVoteProducers) Reset()
- func (m *MsgVoteProducers) Size() (n int)
- func (m *MsgVoteProducers) String() string
- func (m *MsgVoteProducers) Unmarshal(dAtA []byte) error
- func (m *MsgVoteProducers) XXX_DiscardUnknown()
- func (m *MsgVoteProducers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVoteProducers) XXX_Merge(src proto.Message)
- func (m *MsgVoteProducers) XXX_Size() int
- func (m *MsgVoteProducers) XXX_Unmarshal(b []byte) error
- type MsgVoteProducersResponse
- func (*MsgVoteProducersResponse) Descriptor() ([]byte, []int)
- func (m *MsgVoteProducersResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgVoteProducersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgVoteProducersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgVoteProducersResponse) ProtoMessage()
- func (m *MsgVoteProducersResponse) Reset()
- func (m *MsgVoteProducersResponse) Size() (n int)
- func (m *MsgVoteProducersResponse) String() string
- func (m *MsgVoteProducersResponse) Unmarshal(dAtA []byte) error
- func (m *MsgVoteProducersResponse) XXX_DiscardUnknown()
- func (m *MsgVoteProducersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgVoteProducersResponse) XXX_Merge(src proto.Message)
- func (m *MsgVoteProducersResponse) XXX_Size() int
- func (m *MsgVoteProducersResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetProducerCount() uint64
- func (m *Params) GetSpanDuration() uint64
- func (m *Params) GetSprintDuration() uint64
- 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 (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) ValidateBasic() 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 ProducerVotes
- func (*ProducerVotes) Descriptor() ([]byte, []int)
- func (m *ProducerVotes) GetVotes() []uint64
- func (m *ProducerVotes) Marshal() (dAtA []byte, err error)
- func (m *ProducerVotes) MarshalTo(dAtA []byte) (int, error)
- func (m *ProducerVotes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ProducerVotes) ProtoMessage()
- func (m *ProducerVotes) Reset()
- func (m *ProducerVotes) Size() (n int)
- func (m *ProducerVotes) String() string
- func (m *ProducerVotes) Unmarshal(dAtA []byte) error
- func (m *ProducerVotes) XXX_DiscardUnknown()
- func (m *ProducerVotes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ProducerVotes) XXX_Merge(src proto.Message)
- func (m *ProducerVotes) XXX_Size() int
- func (m *ProducerVotes) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryLatestSpanRequest
- func (*QueryLatestSpanRequest) Descriptor() ([]byte, []int)
- func (m *QueryLatestSpanRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryLatestSpanRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLatestSpanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLatestSpanRequest) ProtoMessage()
- func (m *QueryLatestSpanRequest) Reset()
- func (m *QueryLatestSpanRequest) Size() (n int)
- func (m *QueryLatestSpanRequest) String() string
- func (m *QueryLatestSpanRequest) Unmarshal(dAtA []byte) error
- func (m *QueryLatestSpanRequest) XXX_DiscardUnknown()
- func (m *QueryLatestSpanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLatestSpanRequest) XXX_Merge(src proto.Message)
- func (m *QueryLatestSpanRequest) XXX_Size() int
- func (m *QueryLatestSpanRequest) XXX_Unmarshal(b []byte) error
- type QueryLatestSpanResponse
- func (*QueryLatestSpanResponse) Descriptor() ([]byte, []int)
- func (m *QueryLatestSpanResponse) GetSpan() Span
- func (m *QueryLatestSpanResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryLatestSpanResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLatestSpanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLatestSpanResponse) ProtoMessage()
- func (m *QueryLatestSpanResponse) Reset()
- func (m *QueryLatestSpanResponse) Size() (n int)
- func (m *QueryLatestSpanResponse) String() string
- func (m *QueryLatestSpanResponse) Unmarshal(dAtA []byte) error
- func (m *QueryLatestSpanResponse) XXX_DiscardUnknown()
- func (m *QueryLatestSpanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLatestSpanResponse) XXX_Merge(src proto.Message)
- func (m *QueryLatestSpanResponse) XXX_Size() int
- func (m *QueryLatestSpanResponse) XXX_Unmarshal(b []byte) error
- type QueryNextSpanRequest
- func (*QueryNextSpanRequest) Descriptor() ([]byte, []int)
- func (m *QueryNextSpanRequest) GetBorChainId() string
- func (m *QueryNextSpanRequest) GetSpanId() uint64
- func (m *QueryNextSpanRequest) GetStartBlock() uint64
- func (m *QueryNextSpanRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNextSpanRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNextSpanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNextSpanRequest) ProtoMessage()
- func (m *QueryNextSpanRequest) Reset()
- func (m *QueryNextSpanRequest) Size() (n int)
- func (m *QueryNextSpanRequest) String() string
- func (m *QueryNextSpanRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNextSpanRequest) XXX_DiscardUnknown()
- func (m *QueryNextSpanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNextSpanRequest) XXX_Merge(src proto.Message)
- func (m *QueryNextSpanRequest) XXX_Size() int
- func (m *QueryNextSpanRequest) XXX_Unmarshal(b []byte) error
- type QueryNextSpanResponse
- func (*QueryNextSpanResponse) Descriptor() ([]byte, []int)
- func (m *QueryNextSpanResponse) GetSpan() Span
- func (m *QueryNextSpanResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNextSpanResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNextSpanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNextSpanResponse) ProtoMessage()
- func (m *QueryNextSpanResponse) Reset()
- func (m *QueryNextSpanResponse) Size() (n int)
- func (m *QueryNextSpanResponse) String() string
- func (m *QueryNextSpanResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNextSpanResponse) XXX_DiscardUnknown()
- func (m *QueryNextSpanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNextSpanResponse) XXX_Merge(src proto.Message)
- func (m *QueryNextSpanResponse) XXX_Size() int
- func (m *QueryNextSpanResponse) XXX_Unmarshal(b []byte) error
- type QueryNextSpanSeedRequest
- func (*QueryNextSpanSeedRequest) Descriptor() ([]byte, []int)
- func (m *QueryNextSpanSeedRequest) GetId() uint64
- func (m *QueryNextSpanSeedRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNextSpanSeedRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNextSpanSeedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNextSpanSeedRequest) ProtoMessage()
- func (m *QueryNextSpanSeedRequest) Reset()
- func (m *QueryNextSpanSeedRequest) Size() (n int)
- func (m *QueryNextSpanSeedRequest) String() string
- func (m *QueryNextSpanSeedRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNextSpanSeedRequest) XXX_DiscardUnknown()
- func (m *QueryNextSpanSeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNextSpanSeedRequest) XXX_Merge(src proto.Message)
- func (m *QueryNextSpanSeedRequest) XXX_Size() int
- func (m *QueryNextSpanSeedRequest) XXX_Unmarshal(b []byte) error
- type QueryNextSpanSeedResponse
- func (*QueryNextSpanSeedResponse) Descriptor() ([]byte, []int)
- func (m *QueryNextSpanSeedResponse) GetSeed() string
- func (m *QueryNextSpanSeedResponse) GetSeedAuthor() string
- func (m *QueryNextSpanSeedResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNextSpanSeedResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNextSpanSeedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNextSpanSeedResponse) ProtoMessage()
- func (m *QueryNextSpanSeedResponse) Reset()
- func (m *QueryNextSpanSeedResponse) Size() (n int)
- func (m *QueryNextSpanSeedResponse) String() string
- func (m *QueryNextSpanSeedResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNextSpanSeedResponse) XXX_DiscardUnknown()
- func (m *QueryNextSpanSeedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNextSpanSeedResponse) XXX_Merge(src proto.Message)
- func (m *QueryNextSpanSeedResponse) XXX_Size() int
- func (m *QueryNextSpanSeedResponse) 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 QueryProducerPlannedDowntimeRequest
- func (*QueryProducerPlannedDowntimeRequest) Descriptor() ([]byte, []int)
- func (m *QueryProducerPlannedDowntimeRequest) GetProducerId() uint64
- func (m *QueryProducerPlannedDowntimeRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryProducerPlannedDowntimeRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProducerPlannedDowntimeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProducerPlannedDowntimeRequest) ProtoMessage()
- func (m *QueryProducerPlannedDowntimeRequest) Reset()
- func (m *QueryProducerPlannedDowntimeRequest) Size() (n int)
- func (m *QueryProducerPlannedDowntimeRequest) String() string
- func (m *QueryProducerPlannedDowntimeRequest) Unmarshal(dAtA []byte) error
- func (m *QueryProducerPlannedDowntimeRequest) XXX_DiscardUnknown()
- func (m *QueryProducerPlannedDowntimeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProducerPlannedDowntimeRequest) XXX_Merge(src proto.Message)
- func (m *QueryProducerPlannedDowntimeRequest) XXX_Size() int
- func (m *QueryProducerPlannedDowntimeRequest) XXX_Unmarshal(b []byte) error
- type QueryProducerPlannedDowntimeResponse
- func (*QueryProducerPlannedDowntimeResponse) Descriptor() ([]byte, []int)
- func (m *QueryProducerPlannedDowntimeResponse) GetDowntimeRange() BlockRange
- func (m *QueryProducerPlannedDowntimeResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryProducerPlannedDowntimeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProducerPlannedDowntimeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProducerPlannedDowntimeResponse) ProtoMessage()
- func (m *QueryProducerPlannedDowntimeResponse) Reset()
- func (m *QueryProducerPlannedDowntimeResponse) Size() (n int)
- func (m *QueryProducerPlannedDowntimeResponse) String() string
- func (m *QueryProducerPlannedDowntimeResponse) Unmarshal(dAtA []byte) error
- func (m *QueryProducerPlannedDowntimeResponse) XXX_DiscardUnknown()
- func (m *QueryProducerPlannedDowntimeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProducerPlannedDowntimeResponse) XXX_Merge(src proto.Message)
- func (m *QueryProducerPlannedDowntimeResponse) XXX_Size() int
- func (m *QueryProducerPlannedDowntimeResponse) XXX_Unmarshal(b []byte) error
- type QueryProducerVotesByValidatorIdRequest
- func (*QueryProducerVotesByValidatorIdRequest) Descriptor() ([]byte, []int)
- func (m *QueryProducerVotesByValidatorIdRequest) GetValidatorId() uint64
- func (m *QueryProducerVotesByValidatorIdRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryProducerVotesByValidatorIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProducerVotesByValidatorIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProducerVotesByValidatorIdRequest) ProtoMessage()
- func (m *QueryProducerVotesByValidatorIdRequest) Reset()
- func (m *QueryProducerVotesByValidatorIdRequest) Size() (n int)
- func (m *QueryProducerVotesByValidatorIdRequest) String() string
- func (m *QueryProducerVotesByValidatorIdRequest) Unmarshal(dAtA []byte) error
- func (m *QueryProducerVotesByValidatorIdRequest) XXX_DiscardUnknown()
- func (m *QueryProducerVotesByValidatorIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProducerVotesByValidatorIdRequest) XXX_Merge(src proto.Message)
- func (m *QueryProducerVotesByValidatorIdRequest) XXX_Size() int
- func (m *QueryProducerVotesByValidatorIdRequest) XXX_Unmarshal(b []byte) error
- type QueryProducerVotesByValidatorIdResponse
- func (*QueryProducerVotesByValidatorIdResponse) Descriptor() ([]byte, []int)
- func (m *QueryProducerVotesByValidatorIdResponse) GetVotes() []uint64
- func (m *QueryProducerVotesByValidatorIdResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryProducerVotesByValidatorIdResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProducerVotesByValidatorIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProducerVotesByValidatorIdResponse) ProtoMessage()
- func (m *QueryProducerVotesByValidatorIdResponse) Reset()
- func (m *QueryProducerVotesByValidatorIdResponse) Size() (n int)
- func (m *QueryProducerVotesByValidatorIdResponse) String() string
- func (m *QueryProducerVotesByValidatorIdResponse) Unmarshal(dAtA []byte) error
- func (m *QueryProducerVotesByValidatorIdResponse) XXX_DiscardUnknown()
- func (m *QueryProducerVotesByValidatorIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProducerVotesByValidatorIdResponse) XXX_Merge(src proto.Message)
- func (m *QueryProducerVotesByValidatorIdResponse) XXX_Size() int
- func (m *QueryProducerVotesByValidatorIdResponse) XXX_Unmarshal(b []byte) error
- type QueryProducerVotesRequest
- func (*QueryProducerVotesRequest) Descriptor() ([]byte, []int)
- func (m *QueryProducerVotesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryProducerVotesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProducerVotesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProducerVotesRequest) ProtoMessage()
- func (m *QueryProducerVotesRequest) Reset()
- func (m *QueryProducerVotesRequest) Size() (n int)
- func (m *QueryProducerVotesRequest) String() string
- func (m *QueryProducerVotesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryProducerVotesRequest) XXX_DiscardUnknown()
- func (m *QueryProducerVotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProducerVotesRequest) XXX_Merge(src proto.Message)
- func (m *QueryProducerVotesRequest) XXX_Size() int
- func (m *QueryProducerVotesRequest) XXX_Unmarshal(b []byte) error
- type QueryProducerVotesResponse
- func (*QueryProducerVotesResponse) Descriptor() ([]byte, []int)
- func (m *QueryProducerVotesResponse) GetAllVotes() map[uint64]ProducerVotes
- func (m *QueryProducerVotesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryProducerVotesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProducerVotesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProducerVotesResponse) ProtoMessage()
- func (m *QueryProducerVotesResponse) Reset()
- func (m *QueryProducerVotesResponse) Size() (n int)
- func (m *QueryProducerVotesResponse) String() string
- func (m *QueryProducerVotesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryProducerVotesResponse) XXX_DiscardUnknown()
- func (m *QueryProducerVotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProducerVotesResponse) XXX_Merge(src proto.Message)
- func (m *QueryProducerVotesResponse) XXX_Size() int
- func (m *QueryProducerVotesResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySpanByIdRequest
- func (*QuerySpanByIdRequest) Descriptor() ([]byte, []int)
- func (m *QuerySpanByIdRequest) GetId() string
- func (m *QuerySpanByIdRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySpanByIdRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySpanByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySpanByIdRequest) ProtoMessage()
- func (m *QuerySpanByIdRequest) Reset()
- func (m *QuerySpanByIdRequest) Size() (n int)
- func (m *QuerySpanByIdRequest) String() string
- func (m *QuerySpanByIdRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySpanByIdRequest) XXX_DiscardUnknown()
- func (m *QuerySpanByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySpanByIdRequest) XXX_Merge(src proto.Message)
- func (m *QuerySpanByIdRequest) XXX_Size() int
- func (m *QuerySpanByIdRequest) XXX_Unmarshal(b []byte) error
- type QuerySpanByIdResponse
- func (*QuerySpanByIdResponse) Descriptor() ([]byte, []int)
- func (m *QuerySpanByIdResponse) GetSpan() *Span
- func (m *QuerySpanByIdResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySpanByIdResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySpanByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySpanByIdResponse) ProtoMessage()
- func (m *QuerySpanByIdResponse) Reset()
- func (m *QuerySpanByIdResponse) Size() (n int)
- func (m *QuerySpanByIdResponse) String() string
- func (m *QuerySpanByIdResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySpanByIdResponse) XXX_DiscardUnknown()
- func (m *QuerySpanByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySpanByIdResponse) XXX_Merge(src proto.Message)
- func (m *QuerySpanByIdResponse) XXX_Size() int
- func (m *QuerySpanByIdResponse) XXX_Unmarshal(b []byte) error
- type QuerySpanListRequest
- func (*QuerySpanListRequest) Descriptor() ([]byte, []int)
- func (m *QuerySpanListRequest) GetPagination() query.PageRequest
- func (m *QuerySpanListRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySpanListRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySpanListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySpanListRequest) ProtoMessage()
- func (m *QuerySpanListRequest) Reset()
- func (m *QuerySpanListRequest) Size() (n int)
- func (m *QuerySpanListRequest) String() string
- func (m *QuerySpanListRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySpanListRequest) XXX_DiscardUnknown()
- func (m *QuerySpanListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySpanListRequest) XXX_Merge(src proto.Message)
- func (m *QuerySpanListRequest) XXX_Size() int
- func (m *QuerySpanListRequest) XXX_Unmarshal(b []byte) error
- type QuerySpanListResponse
- func (*QuerySpanListResponse) Descriptor() ([]byte, []int)
- func (m *QuerySpanListResponse) GetPagination() query.PageResponse
- func (m *QuerySpanListResponse) GetSpanList() []Span
- func (m *QuerySpanListResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySpanListResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySpanListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySpanListResponse) ProtoMessage()
- func (m *QuerySpanListResponse) Reset()
- func (m *QuerySpanListResponse) Size() (n int)
- func (m *QuerySpanListResponse) String() string
- func (m *QuerySpanListResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySpanListResponse) XXX_DiscardUnknown()
- func (m *QuerySpanListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySpanListResponse) XXX_Merge(src proto.Message)
- func (m *QuerySpanListResponse) XXX_Size() int
- func (m *QuerySpanListResponse) XXX_Unmarshal(b []byte) error
- type QueryValidatorPerformanceScoreRequest
- func (*QueryValidatorPerformanceScoreRequest) Descriptor() ([]byte, []int)
- func (m *QueryValidatorPerformanceScoreRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorPerformanceScoreRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorPerformanceScoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorPerformanceScoreRequest) ProtoMessage()
- func (m *QueryValidatorPerformanceScoreRequest) Reset()
- func (m *QueryValidatorPerformanceScoreRequest) Size() (n int)
- func (m *QueryValidatorPerformanceScoreRequest) String() string
- func (m *QueryValidatorPerformanceScoreRequest) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorPerformanceScoreRequest) XXX_DiscardUnknown()
- func (m *QueryValidatorPerformanceScoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorPerformanceScoreRequest) XXX_Merge(src proto.Message)
- func (m *QueryValidatorPerformanceScoreRequest) XXX_Size() int
- func (m *QueryValidatorPerformanceScoreRequest) XXX_Unmarshal(b []byte) error
- type QueryValidatorPerformanceScoreResponse
- func (*QueryValidatorPerformanceScoreResponse) Descriptor() ([]byte, []int)
- func (m *QueryValidatorPerformanceScoreResponse) GetValidatorPerformanceScore() map[uint64]uint64
- func (m *QueryValidatorPerformanceScoreResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorPerformanceScoreResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorPerformanceScoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorPerformanceScoreResponse) ProtoMessage()
- func (m *QueryValidatorPerformanceScoreResponse) Reset()
- func (m *QueryValidatorPerformanceScoreResponse) Size() (n int)
- func (m *QueryValidatorPerformanceScoreResponse) String() string
- func (m *QueryValidatorPerformanceScoreResponse) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorPerformanceScoreResponse) XXX_DiscardUnknown()
- func (m *QueryValidatorPerformanceScoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorPerformanceScoreResponse) XXX_Merge(src proto.Message)
- func (m *QueryValidatorPerformanceScoreResponse) XXX_Size() int
- func (m *QueryValidatorPerformanceScoreResponse) XXX_Unmarshal(b []byte) error
- type Span
- func (*Span) Descriptor() ([]byte, []int)
- func (m *Span) GetBorChainId() string
- func (m *Span) GetEndBlock() uint64
- func (m *Span) GetId() uint64
- func (m *Span) GetSelectedProducers() []types.Validator
- func (m *Span) GetStartBlock() uint64
- func (m *Span) GetValidatorSet() types.ValidatorSet
- func (s *Span) LogSpan() string
- func (m *Span) Marshal() (dAtA []byte, err error)
- func (m *Span) MarshalTo(dAtA []byte) (int, error)
- func (m *Span) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Span) ProtoMessage()
- func (m *Span) Reset()
- func (m *Span) Size() (n int)
- func (m *Span) String() string
- func (m *Span) Unmarshal(dAtA []byte) error
- func (m *Span) XXX_DiscardUnknown()
- func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Span) XXX_Merge(src proto.Message)
- func (m *Span) XXX_Size() int
- func (m *Span) XXX_Unmarshal(b []byte) error
- type StakeKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) BackfillSpans(ctx context.Context, req *MsgBackfillSpans) (*MsgBackfillSpansResponse, error)
- func (*UnimplementedMsgServer) ProposeSpan(ctx context.Context, req *MsgProposeSpan) (*MsgProposeSpanResponse, error)
- func (*UnimplementedMsgServer) SetProducerDowntime(ctx context.Context, req *MsgSetProducerDowntime) (*MsgSetProducerDowntimeResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) VoteProducers(ctx context.Context, req *MsgVoteProducers) (*MsgVoteProducersResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) GetBorParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) GetLatestSpan(ctx context.Context, req *QueryLatestSpanRequest) (*QueryLatestSpanResponse, error)
- func (*UnimplementedQueryServer) GetNextSpan(ctx context.Context, req *QueryNextSpanRequest) (*QueryNextSpanResponse, error)
- func (*UnimplementedQueryServer) GetNextSpanSeed(ctx context.Context, req *QueryNextSpanSeedRequest) (*QueryNextSpanSeedResponse, error)
- func (*UnimplementedQueryServer) GetProducerPlannedDowntime(ctx context.Context, req *QueryProducerPlannedDowntimeRequest) (*QueryProducerPlannedDowntimeResponse, error)
- func (*UnimplementedQueryServer) GetProducerVotes(ctx context.Context, req *QueryProducerVotesRequest) (*QueryProducerVotesResponse, error)
- func (*UnimplementedQueryServer) GetProducerVotesByValidatorId(ctx context.Context, req *QueryProducerVotesByValidatorIdRequest) (*QueryProducerVotesByValidatorIdResponse, error)
- func (*UnimplementedQueryServer) GetSpanById(ctx context.Context, req *QuerySpanByIdRequest) (*QuerySpanByIdResponse, error)
- func (*UnimplementedQueryServer) GetSpanList(ctx context.Context, req *QuerySpanListRequest) (*QuerySpanListResponse, error)
- func (*UnimplementedQueryServer) GetValidatorPerformanceScore(ctx context.Context, req *QueryValidatorPerformanceScoreRequest) (*QueryValidatorPerformanceScoreResponse, error)
Constants ¶
const ( EventTypeProposeSpan = "propose-span" EventTypeBackfillSpans = "backfill-spans" AttributeKeySpanID = "span-id" AttributeKeySpanStartBlock = "start-block" AttributeKeySpanEndBlock = "end-block" AttributesKeyLatestSpanId = "latest-span-id" AttributesKeyLatestBorSpanId = "latest-bor-span-id" AttributeValueCategory = ModuleName )
bor module event types
const ( // ModuleName defines the module name ModuleName = "bor" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey defines the module's message routing key RouterKey = ModuleName )
const ( DefaultSprintDuration uint64 = 16 DefaultSpanDuration uint64 = 400 * DefaultSprintDuration DefaultFirstSpanDuration uint64 = 256 DefaultProducerCount uint64 = 4 )
Default parameter values
const ( PlannedDowntimeMinimumTimeInFuture = 150 PlannedDowntimeMaximumTimeInFuture = 100 * DefaultSpanDuration // ~2 weeks PlannedDowntimeMinRange = 150 // It will be down minimum for the whole span, this here is just for tx validation. PlannedDowntimeMaxRange = 14 * DefaultSpanDuration // ~48 hours RoundRobinDefault = 0 // No preferred replacement, the next producer is chosen via round-robin instead. )
Variables ¶
var ( ErrInvalidLengthBor = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBor = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBor = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidChainID = errors.New("invalid bor chain id") ErrInvalidSpan = errors.New("invalid span") ErrInvalidLastBorSpanID = errors.New("invalid last bor span id") ErrInvalidSeedLength = errors.New("invalid seed length") ErrFailedToQueryBor = errors.New("failed to query bor") ErrBorBlockNotFound = errors.New("bor block not found locally") ErrLatestMilestoneNotFound = errors.New("latest milestone not found") )
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 ( LastSpanIDKey = collections.NewPrefix(0x35) // Key to store last span SpanPrefixKey = collections.NewPrefix(0x36) // Prefix key to store span SeedLastBlockProducerKey = collections.NewPrefix(0x37) // key to store the last bor blocks producer seed ParamsKey = collections.NewPrefix(0x38) // Key to store the params in the store ProducerVotesKey = collections.NewPrefix(0x39) // Key to store the producer votes in the store PerformanceScoreKey = collections.NewPrefix(0x3A) // Key to store the performance score in the store LatestActiveProducerKey = collections.NewPrefix(0x3B) // Key to store the latest active producer in the store LatestFailedProducerKey = collections.NewPrefix(0x3C) // Key to store the latest failed producer in the store LastSpanBlockKey = collections.NewPrefix(0x3D) // Key to store the last span block in the store ProducerPlannedDowntimeKey = collections.NewPrefix(0x3E) // Key to store the producer-planned downtime in the store )
Keys for store prefixes
Functions ¶
func CalcCurrentBorSpanId ¶ added in v0.1.28
CalcCurrentBorSpanId computes the Bor span ID corresponding to latestBorBlock, using latestHeimdallSpan as the reference. It returns an error if inputs are invalid (nil span, zero, or negative span length) or if arithmetic overflow is detected.
func IsBlockCloseToSpanEnd ¶ added in v0.1.28
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the x/bor interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/bor interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func RegisterSideMsgServer ¶
func RegisterSideMsgServer(sideCfg sidetxs.SideTxConfigurator, srv sidetxs.SideMsgServer)
RegisterSideMsgServer registers server methods for the x/bor module handlers, based on the sideCfg.
func SetGenesisStateToAppState ¶
func SetGenesisStateToAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage, currentValSet staketypes.ValidatorSet) (map[string]json.RawMessage, error)
SetGenesisStateToAppState sets x/bor GenesisState into the raw application genesis state.
func SortValidatorByAddress ¶
func SortValidatorByAddress(a []staketypes.Validator) []staketypes.Validator
SortValidatorByAddress sorts a slice of validators by address. To sort it, we compare the values of the Signer(HeimdallAddress i.e. [20]byte)
Types ¶
type BlockRange ¶ added in v0.5.2
type BlockRange struct {
// First block number in the range (inclusive).
StartBlock uint64 `protobuf:"varint,1,opt,name=start_block,json=startBlock,proto3" json:"start_block,omitempty"`
// Last block number in the range (inclusive).
EndBlock uint64 `protobuf:"varint,2,opt,name=end_block,json=endBlock,proto3" json:"end_block,omitempty"`
}
BlockRange represents a contiguous range of blocks, used for tracking planned downtime periods for producers.
func (*BlockRange) Descriptor ¶ added in v0.5.2
func (*BlockRange) Descriptor() ([]byte, []int)
func (*BlockRange) GetEndBlock ¶ added in v0.5.2
func (m *BlockRange) GetEndBlock() uint64
func (*BlockRange) GetStartBlock ¶ added in v0.5.2
func (m *BlockRange) GetStartBlock() uint64
func (*BlockRange) Marshal ¶ added in v0.5.2
func (m *BlockRange) Marshal() (dAtA []byte, err error)
func (*BlockRange) MarshalTo ¶ added in v0.5.2
func (m *BlockRange) MarshalTo(dAtA []byte) (int, error)
func (*BlockRange) MarshalToSizedBuffer ¶ added in v0.5.2
func (m *BlockRange) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BlockRange) ProtoMessage ¶ added in v0.5.2
func (*BlockRange) ProtoMessage()
func (*BlockRange) Reset ¶ added in v0.5.2
func (m *BlockRange) Reset()
func (*BlockRange) Size ¶ added in v0.5.2
func (m *BlockRange) Size() (n int)
func (*BlockRange) String ¶ added in v0.5.2
func (m *BlockRange) String() string
func (*BlockRange) Unmarshal ¶ added in v0.5.2
func (m *BlockRange) Unmarshal(dAtA []byte) error
func (*BlockRange) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *BlockRange) XXX_DiscardUnknown()
func (*BlockRange) XXX_Marshal ¶ added in v0.5.2
func (m *BlockRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BlockRange) XXX_Merge ¶ added in v0.5.2
func (m *BlockRange) XXX_Merge(src proto.Message)
func (*BlockRange) XXX_Size ¶ added in v0.5.2
func (m *BlockRange) XXX_Size() int
func (*BlockRange) XXX_Unmarshal ¶ added in v0.5.2
func (m *BlockRange) XXX_Unmarshal(b []byte) error
type ChainManagerKeeper ¶
type ChainManagerKeeper interface {
GetParams(ctx context.Context) (chainmanagertypes.Params, error)
}
type GenesisState ¶
type GenesisState struct {
// Module parameters at genesis.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
// Initial spans loaded at genesis.
// This allows the chain to start with pre-configured spans.
Spans []Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans"`
}
GenesisState defines the bor module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns a default genesis state for bor
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(cdc codec.JSONCodec, appState map[string]json.RawMessage) *GenesisState
GetGenesisStateFromAppState returns x/bor GenesisState given raw application genesis state.
func NewGenesisState ¶
func NewGenesisState(params Params, spans []Span) *GenesisState
NewGenesisState creates a new genesis state for bor.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetSpans ¶
func (m *GenesisState) GetSpans() []Span
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) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic validation of bor genesis data, returning an error for any failed validation criteria.
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 MilestoneKeeper ¶ added in v0.1.28
type MilestoneKeeper interface {
GetLastMilestone(ctx context.Context) (*milestonetypes.Milestone, error)
}
type MsgBackfillSpans ¶ added in v0.1.28
type MsgBackfillSpans struct {
// Address of the validator proposing the backfill.
Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,omitempty"`
// Chain ID of the Bor chain.
ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
// Latest span ID known to Heimdall.
LatestSpanId uint64 `protobuf:"varint,3,opt,name=latest_span_id,json=latestSpanId,proto3" json:"latest_span_id,omitempty"`
// Latest span ID on the Bor chain.
LatestBorSpanId uint64 `protobuf:"varint,4,opt,name=latest_bor_span_id,json=latestBorSpanId,proto3" json:"latest_bor_span_id,omitempty"`
}
MsgBackfillSpans defines the message for backfilling missing spans.
func (*MsgBackfillSpans) Descriptor ¶ added in v0.1.28
func (*MsgBackfillSpans) Descriptor() ([]byte, []int)
func (*MsgBackfillSpans) GetChainId ¶ added in v0.1.28
func (m *MsgBackfillSpans) GetChainId() string
func (*MsgBackfillSpans) GetLatestBorSpanId ¶ added in v0.1.28
func (m *MsgBackfillSpans) GetLatestBorSpanId() uint64
func (*MsgBackfillSpans) GetLatestSpanId ¶ added in v0.1.28
func (m *MsgBackfillSpans) GetLatestSpanId() uint64
func (*MsgBackfillSpans) GetProposer ¶ added in v0.1.28
func (m *MsgBackfillSpans) GetProposer() string
func (*MsgBackfillSpans) Marshal ¶ added in v0.1.28
func (m *MsgBackfillSpans) Marshal() (dAtA []byte, err error)
func (*MsgBackfillSpans) MarshalTo ¶ added in v0.1.28
func (m *MsgBackfillSpans) MarshalTo(dAtA []byte) (int, error)
func (*MsgBackfillSpans) MarshalToSizedBuffer ¶ added in v0.1.28
func (m *MsgBackfillSpans) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBackfillSpans) ProtoMessage ¶ added in v0.1.28
func (*MsgBackfillSpans) ProtoMessage()
func (*MsgBackfillSpans) Reset ¶ added in v0.1.28
func (m *MsgBackfillSpans) Reset()
func (MsgBackfillSpans) Route ¶ added in v0.5.2
func (msg MsgBackfillSpans) Route() string
Route returns the message route for x/bor MsgBackfillSpans.
func (*MsgBackfillSpans) Size ¶ added in v0.1.28
func (m *MsgBackfillSpans) Size() (n int)
func (*MsgBackfillSpans) String ¶ added in v0.1.28
func (m *MsgBackfillSpans) String() string
func (MsgBackfillSpans) Type ¶ added in v0.1.28
func (msg MsgBackfillSpans) Type() string
Type returns the type of the x/bor MsgBackfillSpans.
func (*MsgBackfillSpans) Unmarshal ¶ added in v0.1.28
func (m *MsgBackfillSpans) Unmarshal(dAtA []byte) error
func (*MsgBackfillSpans) XXX_DiscardUnknown ¶ added in v0.1.28
func (m *MsgBackfillSpans) XXX_DiscardUnknown()
func (*MsgBackfillSpans) XXX_Marshal ¶ added in v0.1.28
func (m *MsgBackfillSpans) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBackfillSpans) XXX_Merge ¶ added in v0.1.28
func (m *MsgBackfillSpans) XXX_Merge(src proto.Message)
func (*MsgBackfillSpans) XXX_Size ¶ added in v0.1.28
func (m *MsgBackfillSpans) XXX_Size() int
func (*MsgBackfillSpans) XXX_Unmarshal ¶ added in v0.1.28
func (m *MsgBackfillSpans) XXX_Unmarshal(b []byte) error
type MsgBackfillSpansResponse ¶ added in v0.1.28
type MsgBackfillSpansResponse struct {
}
MsgBackfillSpansResponse defines the response for MsgBackfillSpans.
func (*MsgBackfillSpansResponse) Descriptor ¶ added in v0.1.28
func (*MsgBackfillSpansResponse) Descriptor() ([]byte, []int)
func (*MsgBackfillSpansResponse) Marshal ¶ added in v0.1.28
func (m *MsgBackfillSpansResponse) Marshal() (dAtA []byte, err error)
func (*MsgBackfillSpansResponse) MarshalTo ¶ added in v0.1.28
func (m *MsgBackfillSpansResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBackfillSpansResponse) MarshalToSizedBuffer ¶ added in v0.1.28
func (m *MsgBackfillSpansResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBackfillSpansResponse) ProtoMessage ¶ added in v0.1.28
func (*MsgBackfillSpansResponse) ProtoMessage()
func (*MsgBackfillSpansResponse) Reset ¶ added in v0.1.28
func (m *MsgBackfillSpansResponse) Reset()
func (*MsgBackfillSpansResponse) Size ¶ added in v0.1.28
func (m *MsgBackfillSpansResponse) Size() (n int)
func (*MsgBackfillSpansResponse) String ¶ added in v0.1.28
func (m *MsgBackfillSpansResponse) String() string
func (*MsgBackfillSpansResponse) Unmarshal ¶ added in v0.1.28
func (m *MsgBackfillSpansResponse) Unmarshal(dAtA []byte) error
func (*MsgBackfillSpansResponse) XXX_DiscardUnknown ¶ added in v0.1.28
func (m *MsgBackfillSpansResponse) XXX_DiscardUnknown()
func (*MsgBackfillSpansResponse) XXX_Marshal ¶ added in v0.1.28
func (m *MsgBackfillSpansResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBackfillSpansResponse) XXX_Merge ¶ added in v0.1.28
func (m *MsgBackfillSpansResponse) XXX_Merge(src proto.Message)
func (*MsgBackfillSpansResponse) XXX_Size ¶ added in v0.1.28
func (m *MsgBackfillSpansResponse) XXX_Size() int
func (*MsgBackfillSpansResponse) XXX_Unmarshal ¶ added in v0.1.28
func (m *MsgBackfillSpansResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface {
// ProposeSpan defines a method for proposing a new bor span.
ProposeSpan(ctx context.Context, in *MsgProposeSpan, opts ...grpc.CallOption) (*MsgProposeSpanResponse, error)
// UpdateParams defines a method to update the bor module parameters.
// Only the governance authority can execute this.
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
// BackfillSpans defines a method to backfill missing spans.
// This is used during chain recovery or when spans need to be reconstructed.
BackfillSpans(ctx context.Context, in *MsgBackfillSpans, opts ...grpc.CallOption) (*MsgBackfillSpansResponse, error)
// VoteProducers defines a method for validators to submit their producer
// votes.
VoteProducers(ctx context.Context, in *MsgVoteProducers, opts ...grpc.CallOption) (*MsgVoteProducersResponse, error)
// SetProducerDowntime defines a method to set planned downtime for a
// producer. Producers can signal maintenance windows during which they won't
// produce blocks.
SetProducerDowntime(ctx context.Context, in *MsgSetProducerDowntime, opts ...grpc.CallOption) (*MsgSetProducerDowntimeResponse, 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 MsgProposeSpan ¶
type MsgProposeSpan struct {
// ID of the span being proposed.
SpanId uint64 `protobuf:"varint,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
// Address of the validator proposing this span.
Proposer string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
// First block number of this span.
StartBlock uint64 `protobuf:"varint,3,opt,name=start_block,json=startBlock,proto3" json:"start_block,omitempty"`
// Last block number of this span.
EndBlock uint64 `protobuf:"varint,4,opt,name=end_block,json=endBlock,proto3" json:"end_block,omitempty"`
// Chain ID of the Bor chain.
ChainId string `protobuf:"bytes,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
// Random seed used for producer selection.
Seed []byte `protobuf:"bytes,6,opt,name=seed,proto3" json:"seed,omitempty"`
// Address of the validator who generated the seed.
SeedAuthor string `protobuf:"bytes,7,opt,name=seed_author,json=seedAuthor,proto3" json:"seed_author,omitempty"`
}
MsgProposeSpan defines the message for proposing a new span.
func NewMsgProposeSpan ¶
func NewMsgProposeSpan( spanID uint64, proposer string, startBlock uint64, endBlock uint64, chainId string, seed []byte, seedAuthor string, ) *MsgProposeSpan
NewMsgProposeSpan creates a new MsgProposeSpan instance
func (*MsgProposeSpan) Descriptor ¶
func (*MsgProposeSpan) Descriptor() ([]byte, []int)
func (*MsgProposeSpan) GetChainId ¶
func (m *MsgProposeSpan) GetChainId() string
func (*MsgProposeSpan) GetEndBlock ¶
func (m *MsgProposeSpan) GetEndBlock() uint64
func (*MsgProposeSpan) GetProposer ¶
func (m *MsgProposeSpan) GetProposer() string
func (*MsgProposeSpan) GetSeed ¶
func (m *MsgProposeSpan) GetSeed() []byte
func (*MsgProposeSpan) GetSeedAuthor ¶
func (m *MsgProposeSpan) GetSeedAuthor() string
func (*MsgProposeSpan) GetSpanId ¶
func (m *MsgProposeSpan) GetSpanId() uint64
func (*MsgProposeSpan) GetStartBlock ¶
func (m *MsgProposeSpan) GetStartBlock() uint64
func (*MsgProposeSpan) Marshal ¶
func (m *MsgProposeSpan) Marshal() (dAtA []byte, err error)
func (*MsgProposeSpan) MarshalToSizedBuffer ¶
func (m *MsgProposeSpan) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgProposeSpan) ProtoMessage ¶
func (*MsgProposeSpan) ProtoMessage()
func (*MsgProposeSpan) Reset ¶
func (m *MsgProposeSpan) Reset()
func (MsgProposeSpan) Route ¶ added in v0.5.2
func (msg MsgProposeSpan) Route() string
Route returns the message route for x/bor MsgProposeSpan.
func (*MsgProposeSpan) Size ¶
func (m *MsgProposeSpan) Size() (n int)
func (*MsgProposeSpan) String ¶
func (m *MsgProposeSpan) String() string
func (MsgProposeSpan) Type ¶
func (msg MsgProposeSpan) Type() string
Type returns the type of the x/bor MsgProposeSpan.
func (*MsgProposeSpan) Unmarshal ¶
func (m *MsgProposeSpan) Unmarshal(dAtA []byte) error
func (*MsgProposeSpan) XXX_DiscardUnknown ¶
func (m *MsgProposeSpan) XXX_DiscardUnknown()
func (*MsgProposeSpan) XXX_Marshal ¶
func (m *MsgProposeSpan) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgProposeSpan) XXX_Merge ¶
func (m *MsgProposeSpan) XXX_Merge(src proto.Message)
func (*MsgProposeSpan) XXX_Size ¶
func (m *MsgProposeSpan) XXX_Size() int
func (*MsgProposeSpan) XXX_Unmarshal ¶
func (m *MsgProposeSpan) XXX_Unmarshal(b []byte) error
type MsgProposeSpanResponse ¶
type MsgProposeSpanResponse struct {
}
MsgProposeSpanResponse defines the response for MsgProposeSpan.
func (*MsgProposeSpanResponse) Descriptor ¶
func (*MsgProposeSpanResponse) Descriptor() ([]byte, []int)
func (*MsgProposeSpanResponse) Marshal ¶
func (m *MsgProposeSpanResponse) Marshal() (dAtA []byte, err error)
func (*MsgProposeSpanResponse) MarshalTo ¶
func (m *MsgProposeSpanResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgProposeSpanResponse) MarshalToSizedBuffer ¶
func (m *MsgProposeSpanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgProposeSpanResponse) ProtoMessage ¶
func (*MsgProposeSpanResponse) ProtoMessage()
func (*MsgProposeSpanResponse) Reset ¶
func (m *MsgProposeSpanResponse) Reset()
func (*MsgProposeSpanResponse) Size ¶
func (m *MsgProposeSpanResponse) Size() (n int)
func (*MsgProposeSpanResponse) String ¶
func (m *MsgProposeSpanResponse) String() string
func (*MsgProposeSpanResponse) Unmarshal ¶
func (m *MsgProposeSpanResponse) Unmarshal(dAtA []byte) error
func (*MsgProposeSpanResponse) XXX_DiscardUnknown ¶
func (m *MsgProposeSpanResponse) XXX_DiscardUnknown()
func (*MsgProposeSpanResponse) XXX_Marshal ¶
func (m *MsgProposeSpanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgProposeSpanResponse) XXX_Merge ¶
func (m *MsgProposeSpanResponse) XXX_Merge(src proto.Message)
func (*MsgProposeSpanResponse) XXX_Size ¶
func (m *MsgProposeSpanResponse) XXX_Size() int
func (*MsgProposeSpanResponse) XXX_Unmarshal ¶
func (m *MsgProposeSpanResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface {
// ProposeSpan defines a method for proposing a new bor span.
ProposeSpan(context.Context, *MsgProposeSpan) (*MsgProposeSpanResponse, error)
// UpdateParams defines a method to update the bor module parameters.
// Only the governance authority can execute this.
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
// BackfillSpans defines a method to backfill missing spans.
// This is used during chain recovery or when spans need to be reconstructed.
BackfillSpans(context.Context, *MsgBackfillSpans) (*MsgBackfillSpansResponse, error)
// VoteProducers defines a method for validators to submit their producer
// votes.
VoteProducers(context.Context, *MsgVoteProducers) (*MsgVoteProducersResponse, error)
// SetProducerDowntime defines a method to set planned downtime for a
// producer. Producers can signal maintenance windows during which they won't
// produce blocks.
SetProducerDowntime(context.Context, *MsgSetProducerDowntime) (*MsgSetProducerDowntimeResponse, error)
}
MsgServer is the server API for Msg service.
type MsgSetProducerDowntime ¶ added in v0.5.2
type MsgSetProducerDowntime struct {
// Address of the producer setting their downtime.
Producer string `protobuf:"bytes,1,opt,name=producer,proto3" json:"producer,omitempty"`
// Block range during which the producer will be offline.
DowntimeRange BlockRange `protobuf:"bytes,2,opt,name=downtime_range,json=downtimeRange,proto3" json:"downtime_range"`
// Validator ID of the preferred producer to replace the downtime producer.
// 0 = round-robin (default).
TargetProducerId uint64 `protobuf:"varint,3,opt,name=target_producer_id,json=targetProducerId,proto3" json:"target_producer_id,omitempty"`
}
MsgSetProducerDowntime defines the message for setting producer downtime.
func NewMsgSetProducerDowntime ¶ added in v0.5.2
func NewMsgSetProducerDowntime( producer string, startBorBlock uint64, endBorBlock uint64, targetProducerID uint64, ) *MsgSetProducerDowntime
NewMsgSetProducerDowntime creates a new MsgSetProducerDowntime instance
func (*MsgSetProducerDowntime) Descriptor ¶ added in v0.5.2
func (*MsgSetProducerDowntime) Descriptor() ([]byte, []int)
func (*MsgSetProducerDowntime) GetDowntimeRange ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) GetDowntimeRange() BlockRange
func (*MsgSetProducerDowntime) GetProducer ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) GetProducer() string
func (*MsgSetProducerDowntime) GetTargetProducerId ¶ added in v0.9.0
func (m *MsgSetProducerDowntime) GetTargetProducerId() uint64
func (*MsgSetProducerDowntime) Marshal ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) Marshal() (dAtA []byte, err error)
func (*MsgSetProducerDowntime) MarshalTo ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetProducerDowntime) MarshalToSizedBuffer ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetProducerDowntime) ProtoMessage ¶ added in v0.5.2
func (*MsgSetProducerDowntime) ProtoMessage()
func (*MsgSetProducerDowntime) Reset ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) Reset()
func (*MsgSetProducerDowntime) Size ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) Size() (n int)
func (*MsgSetProducerDowntime) String ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) String() string
func (*MsgSetProducerDowntime) Unmarshal ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) Unmarshal(dAtA []byte) error
func (*MsgSetProducerDowntime) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) XXX_DiscardUnknown()
func (*MsgSetProducerDowntime) XXX_Marshal ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetProducerDowntime) XXX_Merge ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) XXX_Merge(src proto.Message)
func (*MsgSetProducerDowntime) XXX_Size ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) XXX_Size() int
func (*MsgSetProducerDowntime) XXX_Unmarshal ¶ added in v0.5.2
func (m *MsgSetProducerDowntime) XXX_Unmarshal(b []byte) error
type MsgSetProducerDowntimeResponse ¶ added in v0.5.2
type MsgSetProducerDowntimeResponse struct {
}
MsgSetProducerDowntimeResponse defines the response for MsgSetProducerDowntime.
func (*MsgSetProducerDowntimeResponse) Descriptor ¶ added in v0.5.2
func (*MsgSetProducerDowntimeResponse) Descriptor() ([]byte, []int)
func (*MsgSetProducerDowntimeResponse) Marshal ¶ added in v0.5.2
func (m *MsgSetProducerDowntimeResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetProducerDowntimeResponse) MarshalTo ¶ added in v0.5.2
func (m *MsgSetProducerDowntimeResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetProducerDowntimeResponse) MarshalToSizedBuffer ¶ added in v0.5.2
func (m *MsgSetProducerDowntimeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetProducerDowntimeResponse) ProtoMessage ¶ added in v0.5.2
func (*MsgSetProducerDowntimeResponse) ProtoMessage()
func (*MsgSetProducerDowntimeResponse) Reset ¶ added in v0.5.2
func (m *MsgSetProducerDowntimeResponse) Reset()
func (*MsgSetProducerDowntimeResponse) Size ¶ added in v0.5.2
func (m *MsgSetProducerDowntimeResponse) Size() (n int)
func (*MsgSetProducerDowntimeResponse) String ¶ added in v0.5.2
func (m *MsgSetProducerDowntimeResponse) String() string
func (*MsgSetProducerDowntimeResponse) Unmarshal ¶ added in v0.5.2
func (m *MsgSetProducerDowntimeResponse) Unmarshal(dAtA []byte) error
func (*MsgSetProducerDowntimeResponse) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *MsgSetProducerDowntimeResponse) XXX_DiscardUnknown()
func (*MsgSetProducerDowntimeResponse) XXX_Marshal ¶ added in v0.5.2
func (m *MsgSetProducerDowntimeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetProducerDowntimeResponse) XXX_Merge ¶ added in v0.5.2
func (m *MsgSetProducerDowntimeResponse) XXX_Merge(src proto.Message)
func (*MsgSetProducerDowntimeResponse) XXX_Size ¶ added in v0.5.2
func (m *MsgSetProducerDowntimeResponse) XXX_Size() int
func (*MsgSetProducerDowntimeResponse) XXX_Unmarshal ¶ added in v0.5.2
func (m *MsgSetProducerDowntimeResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶
type MsgUpdateParams struct {
// Address of the governance authority (typically the governance module).
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// New parameters to set.
Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}
MsgUpdateParams defines the message for updating bor module parameters.
func (*MsgUpdateParams) Descriptor ¶
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetAuthority ¶
func (m *MsgUpdateParams) GetAuthority() string
func (*MsgUpdateParams) GetParams ¶
func (m *MsgUpdateParams) GetParams() Params
func (*MsgUpdateParams) Marshal ¶
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) XXX_DiscardUnknown ¶
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶
type MsgUpdateParamsResponse struct {
}
MsgUpdateParamsResponse defines the response for MsgUpdateParams.
func (*MsgUpdateParamsResponse) Descriptor ¶
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type MsgVoteProducers ¶ added in v0.1.33
type MsgVoteProducers struct {
// Address of the validator casting the vote.
Voter string `protobuf:"bytes,1,opt,name=voter,proto3" json:"voter,omitempty"`
// ID of the validator casting the vote.
VoterId uint64 `protobuf:"varint,2,opt,name=voter_id,json=voterId,proto3" json:"voter_id,omitempty"`
// List of validator IDs being voted for as producers.
Votes ProducerVotes `protobuf:"bytes,3,opt,name=votes,proto3" json:"votes"`
}
MsgVoteProducers defines the message for voting on producers.
func (*MsgVoteProducers) Descriptor ¶ added in v0.1.33
func (*MsgVoteProducers) Descriptor() ([]byte, []int)
func (*MsgVoteProducers) GetVoter ¶ added in v0.1.33
func (m *MsgVoteProducers) GetVoter() string
func (*MsgVoteProducers) GetVoterId ¶ added in v0.1.33
func (m *MsgVoteProducers) GetVoterId() uint64
func (*MsgVoteProducers) GetVotes ¶ added in v0.1.33
func (m *MsgVoteProducers) GetVotes() ProducerVotes
func (*MsgVoteProducers) Marshal ¶ added in v0.1.33
func (m *MsgVoteProducers) Marshal() (dAtA []byte, err error)
func (*MsgVoteProducers) MarshalTo ¶ added in v0.1.33
func (m *MsgVoteProducers) MarshalTo(dAtA []byte) (int, error)
func (*MsgVoteProducers) MarshalToSizedBuffer ¶ added in v0.1.33
func (m *MsgVoteProducers) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgVoteProducers) ProtoMessage ¶ added in v0.1.33
func (*MsgVoteProducers) ProtoMessage()
func (*MsgVoteProducers) Reset ¶ added in v0.1.33
func (m *MsgVoteProducers) Reset()
func (*MsgVoteProducers) Size ¶ added in v0.1.33
func (m *MsgVoteProducers) Size() (n int)
func (*MsgVoteProducers) String ¶ added in v0.1.33
func (m *MsgVoteProducers) String() string
func (*MsgVoteProducers) Unmarshal ¶ added in v0.1.33
func (m *MsgVoteProducers) Unmarshal(dAtA []byte) error
func (*MsgVoteProducers) XXX_DiscardUnknown ¶ added in v0.1.33
func (m *MsgVoteProducers) XXX_DiscardUnknown()
func (*MsgVoteProducers) XXX_Marshal ¶ added in v0.1.33
func (m *MsgVoteProducers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgVoteProducers) XXX_Merge ¶ added in v0.1.33
func (m *MsgVoteProducers) XXX_Merge(src proto.Message)
func (*MsgVoteProducers) XXX_Size ¶ added in v0.1.33
func (m *MsgVoteProducers) XXX_Size() int
func (*MsgVoteProducers) XXX_Unmarshal ¶ added in v0.1.33
func (m *MsgVoteProducers) XXX_Unmarshal(b []byte) error
type MsgVoteProducersResponse ¶ added in v0.1.33
type MsgVoteProducersResponse struct {
}
MsgVoteProducersResponse defines the response for MsgVoteProducers.
func (*MsgVoteProducersResponse) Descriptor ¶ added in v0.1.33
func (*MsgVoteProducersResponse) Descriptor() ([]byte, []int)
func (*MsgVoteProducersResponse) Marshal ¶ added in v0.1.33
func (m *MsgVoteProducersResponse) Marshal() (dAtA []byte, err error)
func (*MsgVoteProducersResponse) MarshalTo ¶ added in v0.1.33
func (m *MsgVoteProducersResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgVoteProducersResponse) MarshalToSizedBuffer ¶ added in v0.1.33
func (m *MsgVoteProducersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgVoteProducersResponse) ProtoMessage ¶ added in v0.1.33
func (*MsgVoteProducersResponse) ProtoMessage()
func (*MsgVoteProducersResponse) Reset ¶ added in v0.1.33
func (m *MsgVoteProducersResponse) Reset()
func (*MsgVoteProducersResponse) Size ¶ added in v0.1.33
func (m *MsgVoteProducersResponse) Size() (n int)
func (*MsgVoteProducersResponse) String ¶ added in v0.1.33
func (m *MsgVoteProducersResponse) String() string
func (*MsgVoteProducersResponse) Unmarshal ¶ added in v0.1.33
func (m *MsgVoteProducersResponse) Unmarshal(dAtA []byte) error
func (*MsgVoteProducersResponse) XXX_DiscardUnknown ¶ added in v0.1.33
func (m *MsgVoteProducersResponse) XXX_DiscardUnknown()
func (*MsgVoteProducersResponse) XXX_Marshal ¶ added in v0.1.33
func (m *MsgVoteProducersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgVoteProducersResponse) XXX_Merge ¶ added in v0.1.33
func (m *MsgVoteProducersResponse) XXX_Merge(src proto.Message)
func (*MsgVoteProducersResponse) XXX_Size ¶ added in v0.1.33
func (m *MsgVoteProducersResponse) XXX_Size() int
func (*MsgVoteProducersResponse) XXX_Unmarshal ¶ added in v0.1.33
func (m *MsgVoteProducersResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct {
// Duration of a sprint in blocks. A sprint is a period where a single
// producer creates all blocks before the next producer takes over.
SprintDuration uint64 `protobuf:"varint,1,opt,name=sprint_duration,json=sprintDuration,proto3" json:"sprint_duration,omitempty"`
// Duration of a span in blocks. A span typically contains multiple sprints.
SpanDuration uint64 `protobuf:"varint,2,opt,name=span_duration,json=spanDuration,proto3" json:"span_duration,omitempty"`
// Number of producers to select from the validator set for each span.
// Producers are selected based on their voting power.
ProducerCount uint64 `protobuf:"varint,3,opt,name=producer_count,json=producerCount,proto3" json:"producer_count,omitempty"`
}
Params defines the parameters for the bor module.
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns default parameters for bor module
func (*Params) Descriptor ¶
func (*Params) GetProducerCount ¶
func (*Params) GetSpanDuration ¶
func (*Params) GetSprintDuration ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (Params) ValidateBasic ¶ added in v0.1.18
ValidateBasic checks that the bor parameters have valid values.
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type ProducerVotes ¶ added in v0.1.33
type ProducerVotes struct {
// List of validator IDs that this validator votes for.
// Validators can vote for up to producer_count validators.
Votes []uint64 `protobuf:"varint,1,rep,packed,name=votes,proto3" json:"votes,omitempty"`
}
ProducerVotes contains the validator IDs that a validator has voted for to be included in the next span's producer set.
func (*ProducerVotes) Descriptor ¶ added in v0.1.33
func (*ProducerVotes) Descriptor() ([]byte, []int)
func (*ProducerVotes) GetVotes ¶ added in v0.1.33
func (m *ProducerVotes) GetVotes() []uint64
func (*ProducerVotes) Marshal ¶ added in v0.1.33
func (m *ProducerVotes) Marshal() (dAtA []byte, err error)
func (*ProducerVotes) MarshalTo ¶ added in v0.1.33
func (m *ProducerVotes) MarshalTo(dAtA []byte) (int, error)
func (*ProducerVotes) MarshalToSizedBuffer ¶ added in v0.1.33
func (m *ProducerVotes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ProducerVotes) ProtoMessage ¶ added in v0.1.33
func (*ProducerVotes) ProtoMessage()
func (*ProducerVotes) Reset ¶ added in v0.1.33
func (m *ProducerVotes) Reset()
func (*ProducerVotes) Size ¶ added in v0.1.33
func (m *ProducerVotes) Size() (n int)
func (*ProducerVotes) String ¶ added in v0.1.33
func (m *ProducerVotes) String() string
func (*ProducerVotes) Unmarshal ¶ added in v0.1.33
func (m *ProducerVotes) Unmarshal(dAtA []byte) error
func (*ProducerVotes) XXX_DiscardUnknown ¶ added in v0.1.33
func (m *ProducerVotes) XXX_DiscardUnknown()
func (*ProducerVotes) XXX_Marshal ¶ added in v0.1.33
func (m *ProducerVotes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ProducerVotes) XXX_Merge ¶ added in v0.1.33
func (m *ProducerVotes) XXX_Merge(src proto.Message)
func (*ProducerVotes) XXX_Size ¶ added in v0.1.33
func (m *ProducerVotes) XXX_Size() int
func (*ProducerVotes) XXX_Unmarshal ¶ added in v0.1.33
func (m *ProducerVotes) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface {
// GetSpanList queries a paginated list of spans.
GetSpanList(ctx context.Context, in *QuerySpanListRequest, opts ...grpc.CallOption) (*QuerySpanListResponse, error)
// GetLatestSpan queries the latest span.
GetLatestSpan(ctx context.Context, in *QueryLatestSpanRequest, opts ...grpc.CallOption) (*QueryLatestSpanResponse, error)
// GetNextSpanSeed queries the seed for generating the next span.
// The seed is used for deterministic random selection of producers.
GetNextSpanSeed(ctx context.Context, in *QueryNextSpanSeedRequest, opts ...grpc.CallOption) (*QueryNextSpanSeedResponse, error)
// GetNextSpan prepares and returns the next span based on the current
// validator set. This is used by proposers to create span proposals.
GetNextSpan(ctx context.Context, in *QueryNextSpanRequest, opts ...grpc.CallOption) (*QueryNextSpanResponse, error)
// GetSpanById retrieves a specific span by its ID.
GetSpanById(ctx context.Context, in *QuerySpanByIdRequest, opts ...grpc.CallOption) (*QuerySpanByIdResponse, error)
// GetBorParams queries the parameters of x/bor module.
GetBorParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// GetProducerVotes queries producer votes from all validators.
// Returns a map of validator ID to their producer votes.
GetProducerVotes(ctx context.Context, in *QueryProducerVotesRequest, opts ...grpc.CallOption) (*QueryProducerVotesResponse, error)
// GetProducerVotesByValidatorId queries the producer votes cast by a specific
// validator.
GetProducerVotesByValidatorId(ctx context.Context, in *QueryProducerVotesByValidatorIdRequest, opts ...grpc.CallOption) (*QueryProducerVotesByValidatorIdResponse, error)
// GetProducerPlannedDowntime queries the planned downtime window for a
// specific producer. Producers can signal planned maintenance periods during
// which they won't produce blocks.
GetProducerPlannedDowntime(ctx context.Context, in *QueryProducerPlannedDowntimeRequest, opts ...grpc.CallOption) (*QueryProducerPlannedDowntimeResponse, error)
// GetValidatorPerformanceScore queries the performance scores of all
// validators. Performance scores track block production reliability.
GetValidatorPerformanceScore(ctx context.Context, in *QueryValidatorPerformanceScoreRequest, opts ...grpc.CallOption) (*QueryValidatorPerformanceScoreResponse, 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 QueryLatestSpanRequest ¶
type QueryLatestSpanRequest struct {
}
QueryLatestSpanRequest is the request type for the GetLatestSpan query.
func (*QueryLatestSpanRequest) Descriptor ¶
func (*QueryLatestSpanRequest) Descriptor() ([]byte, []int)
func (*QueryLatestSpanRequest) Marshal ¶
func (m *QueryLatestSpanRequest) Marshal() (dAtA []byte, err error)
func (*QueryLatestSpanRequest) MarshalTo ¶
func (m *QueryLatestSpanRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryLatestSpanRequest) MarshalToSizedBuffer ¶
func (m *QueryLatestSpanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLatestSpanRequest) ProtoMessage ¶
func (*QueryLatestSpanRequest) ProtoMessage()
func (*QueryLatestSpanRequest) Reset ¶
func (m *QueryLatestSpanRequest) Reset()
func (*QueryLatestSpanRequest) Size ¶
func (m *QueryLatestSpanRequest) Size() (n int)
func (*QueryLatestSpanRequest) String ¶
func (m *QueryLatestSpanRequest) String() string
func (*QueryLatestSpanRequest) Unmarshal ¶
func (m *QueryLatestSpanRequest) Unmarshal(dAtA []byte) error
func (*QueryLatestSpanRequest) XXX_DiscardUnknown ¶
func (m *QueryLatestSpanRequest) XXX_DiscardUnknown()
func (*QueryLatestSpanRequest) XXX_Marshal ¶
func (m *QueryLatestSpanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLatestSpanRequest) XXX_Merge ¶
func (m *QueryLatestSpanRequest) XXX_Merge(src proto.Message)
func (*QueryLatestSpanRequest) XXX_Size ¶
func (m *QueryLatestSpanRequest) XXX_Size() int
func (*QueryLatestSpanRequest) XXX_Unmarshal ¶
func (m *QueryLatestSpanRequest) XXX_Unmarshal(b []byte) error
type QueryLatestSpanResponse ¶
type QueryLatestSpanResponse struct {
// The most recently created span.
Span Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span"`
}
QueryLatestSpanResponse is the response type for the GetLatestSpan query.
func (*QueryLatestSpanResponse) Descriptor ¶
func (*QueryLatestSpanResponse) Descriptor() ([]byte, []int)
func (*QueryLatestSpanResponse) GetSpan ¶
func (m *QueryLatestSpanResponse) GetSpan() Span
func (*QueryLatestSpanResponse) Marshal ¶
func (m *QueryLatestSpanResponse) Marshal() (dAtA []byte, err error)
func (*QueryLatestSpanResponse) MarshalTo ¶
func (m *QueryLatestSpanResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryLatestSpanResponse) MarshalToSizedBuffer ¶
func (m *QueryLatestSpanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLatestSpanResponse) ProtoMessage ¶
func (*QueryLatestSpanResponse) ProtoMessage()
func (*QueryLatestSpanResponse) Reset ¶
func (m *QueryLatestSpanResponse) Reset()
func (*QueryLatestSpanResponse) Size ¶
func (m *QueryLatestSpanResponse) Size() (n int)
func (*QueryLatestSpanResponse) String ¶
func (m *QueryLatestSpanResponse) String() string
func (*QueryLatestSpanResponse) Unmarshal ¶
func (m *QueryLatestSpanResponse) Unmarshal(dAtA []byte) error
func (*QueryLatestSpanResponse) XXX_DiscardUnknown ¶
func (m *QueryLatestSpanResponse) XXX_DiscardUnknown()
func (*QueryLatestSpanResponse) XXX_Marshal ¶
func (m *QueryLatestSpanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLatestSpanResponse) XXX_Merge ¶
func (m *QueryLatestSpanResponse) XXX_Merge(src proto.Message)
func (*QueryLatestSpanResponse) XXX_Size ¶
func (m *QueryLatestSpanResponse) XXX_Size() int
func (*QueryLatestSpanResponse) XXX_Unmarshal ¶
func (m *QueryLatestSpanResponse) XXX_Unmarshal(b []byte) error
type QueryNextSpanRequest ¶
type QueryNextSpanRequest struct {
// ID for the next span to be created.
SpanId uint64 `protobuf:"varint,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
// Starting block number for the next span.
StartBlock uint64 `protobuf:"varint,2,opt,name=start_block,json=startBlock,proto3" json:"start_block,omitempty"`
// Chain ID of the Bor chain.
BorChainId string `protobuf:"bytes,3,opt,name=bor_chain_id,json=borChainId,proto3" json:"bor_chain_id,omitempty"`
}
QueryNextSpanRequest is the request type for the GetNextSpan query.
func (*QueryNextSpanRequest) Descriptor ¶
func (*QueryNextSpanRequest) Descriptor() ([]byte, []int)
func (*QueryNextSpanRequest) GetBorChainId ¶
func (m *QueryNextSpanRequest) GetBorChainId() string
func (*QueryNextSpanRequest) GetSpanId ¶
func (m *QueryNextSpanRequest) GetSpanId() uint64
func (*QueryNextSpanRequest) GetStartBlock ¶
func (m *QueryNextSpanRequest) GetStartBlock() uint64
func (*QueryNextSpanRequest) Marshal ¶
func (m *QueryNextSpanRequest) Marshal() (dAtA []byte, err error)
func (*QueryNextSpanRequest) MarshalTo ¶
func (m *QueryNextSpanRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryNextSpanRequest) MarshalToSizedBuffer ¶
func (m *QueryNextSpanRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNextSpanRequest) ProtoMessage ¶
func (*QueryNextSpanRequest) ProtoMessage()
func (*QueryNextSpanRequest) Reset ¶
func (m *QueryNextSpanRequest) Reset()
func (*QueryNextSpanRequest) Size ¶
func (m *QueryNextSpanRequest) Size() (n int)
func (*QueryNextSpanRequest) String ¶
func (m *QueryNextSpanRequest) String() string
func (*QueryNextSpanRequest) Unmarshal ¶
func (m *QueryNextSpanRequest) Unmarshal(dAtA []byte) error
func (*QueryNextSpanRequest) XXX_DiscardUnknown ¶
func (m *QueryNextSpanRequest) XXX_DiscardUnknown()
func (*QueryNextSpanRequest) XXX_Marshal ¶
func (m *QueryNextSpanRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNextSpanRequest) XXX_Merge ¶
func (m *QueryNextSpanRequest) XXX_Merge(src proto.Message)
func (*QueryNextSpanRequest) XXX_Size ¶
func (m *QueryNextSpanRequest) XXX_Size() int
func (*QueryNextSpanRequest) XXX_Unmarshal ¶
func (m *QueryNextSpanRequest) XXX_Unmarshal(b []byte) error
type QueryNextSpanResponse ¶
type QueryNextSpanResponse struct {
// The prepared next span with selected producers.
Span Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span"`
}
QueryNextSpanResponse is the response type for the GetNextSpan query.
func (*QueryNextSpanResponse) Descriptor ¶
func (*QueryNextSpanResponse) Descriptor() ([]byte, []int)
func (*QueryNextSpanResponse) GetSpan ¶
func (m *QueryNextSpanResponse) GetSpan() Span
func (*QueryNextSpanResponse) Marshal ¶
func (m *QueryNextSpanResponse) Marshal() (dAtA []byte, err error)
func (*QueryNextSpanResponse) MarshalTo ¶
func (m *QueryNextSpanResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNextSpanResponse) MarshalToSizedBuffer ¶
func (m *QueryNextSpanResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNextSpanResponse) ProtoMessage ¶
func (*QueryNextSpanResponse) ProtoMessage()
func (*QueryNextSpanResponse) Reset ¶
func (m *QueryNextSpanResponse) Reset()
func (*QueryNextSpanResponse) Size ¶
func (m *QueryNextSpanResponse) Size() (n int)
func (*QueryNextSpanResponse) String ¶
func (m *QueryNextSpanResponse) String() string
func (*QueryNextSpanResponse) Unmarshal ¶
func (m *QueryNextSpanResponse) Unmarshal(dAtA []byte) error
func (*QueryNextSpanResponse) XXX_DiscardUnknown ¶
func (m *QueryNextSpanResponse) XXX_DiscardUnknown()
func (*QueryNextSpanResponse) XXX_Marshal ¶
func (m *QueryNextSpanResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNextSpanResponse) XXX_Merge ¶
func (m *QueryNextSpanResponse) XXX_Merge(src proto.Message)
func (*QueryNextSpanResponse) XXX_Size ¶
func (m *QueryNextSpanResponse) XXX_Size() int
func (*QueryNextSpanResponse) XXX_Unmarshal ¶
func (m *QueryNextSpanResponse) XXX_Unmarshal(b []byte) error
type QueryNextSpanSeedRequest ¶
type QueryNextSpanSeedRequest struct {
// ID of the span for which to get the seed.
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
QueryNextSpanSeedRequest is the request type for the GetNextSpanSeed query.
func (*QueryNextSpanSeedRequest) Descriptor ¶
func (*QueryNextSpanSeedRequest) Descriptor() ([]byte, []int)
func (*QueryNextSpanSeedRequest) GetId ¶
func (m *QueryNextSpanSeedRequest) GetId() uint64
func (*QueryNextSpanSeedRequest) Marshal ¶
func (m *QueryNextSpanSeedRequest) Marshal() (dAtA []byte, err error)
func (*QueryNextSpanSeedRequest) MarshalTo ¶
func (m *QueryNextSpanSeedRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryNextSpanSeedRequest) MarshalToSizedBuffer ¶
func (m *QueryNextSpanSeedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNextSpanSeedRequest) ProtoMessage ¶
func (*QueryNextSpanSeedRequest) ProtoMessage()
func (*QueryNextSpanSeedRequest) Reset ¶
func (m *QueryNextSpanSeedRequest) Reset()
func (*QueryNextSpanSeedRequest) Size ¶
func (m *QueryNextSpanSeedRequest) Size() (n int)
func (*QueryNextSpanSeedRequest) String ¶
func (m *QueryNextSpanSeedRequest) String() string
func (*QueryNextSpanSeedRequest) Unmarshal ¶
func (m *QueryNextSpanSeedRequest) Unmarshal(dAtA []byte) error
func (*QueryNextSpanSeedRequest) XXX_DiscardUnknown ¶
func (m *QueryNextSpanSeedRequest) XXX_DiscardUnknown()
func (*QueryNextSpanSeedRequest) XXX_Marshal ¶
func (m *QueryNextSpanSeedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNextSpanSeedRequest) XXX_Merge ¶
func (m *QueryNextSpanSeedRequest) XXX_Merge(src proto.Message)
func (*QueryNextSpanSeedRequest) XXX_Size ¶
func (m *QueryNextSpanSeedRequest) XXX_Size() int
func (*QueryNextSpanSeedRequest) XXX_Unmarshal ¶
func (m *QueryNextSpanSeedRequest) XXX_Unmarshal(b []byte) error
type QueryNextSpanSeedResponse ¶
type QueryNextSpanSeedResponse struct {
// Seed value used for producer selection randomization.
Seed string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
// Address of the validator who authored the seed.
SeedAuthor string `protobuf:"bytes,2,opt,name=seed_author,json=seedAuthor,proto3" json:"seed_author,omitempty"`
}
QueryNextSpanSeedResponse is the response type for the GetNextSpanSeed query.
func (*QueryNextSpanSeedResponse) Descriptor ¶
func (*QueryNextSpanSeedResponse) Descriptor() ([]byte, []int)
func (*QueryNextSpanSeedResponse) GetSeed ¶
func (m *QueryNextSpanSeedResponse) GetSeed() string
func (*QueryNextSpanSeedResponse) GetSeedAuthor ¶
func (m *QueryNextSpanSeedResponse) GetSeedAuthor() string
func (*QueryNextSpanSeedResponse) Marshal ¶
func (m *QueryNextSpanSeedResponse) Marshal() (dAtA []byte, err error)
func (*QueryNextSpanSeedResponse) MarshalTo ¶
func (m *QueryNextSpanSeedResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNextSpanSeedResponse) MarshalToSizedBuffer ¶
func (m *QueryNextSpanSeedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNextSpanSeedResponse) ProtoMessage ¶
func (*QueryNextSpanSeedResponse) ProtoMessage()
func (*QueryNextSpanSeedResponse) Reset ¶
func (m *QueryNextSpanSeedResponse) Reset()
func (*QueryNextSpanSeedResponse) Size ¶
func (m *QueryNextSpanSeedResponse) Size() (n int)
func (*QueryNextSpanSeedResponse) String ¶
func (m *QueryNextSpanSeedResponse) String() string
func (*QueryNextSpanSeedResponse) Unmarshal ¶
func (m *QueryNextSpanSeedResponse) Unmarshal(dAtA []byte) error
func (*QueryNextSpanSeedResponse) XXX_DiscardUnknown ¶
func (m *QueryNextSpanSeedResponse) XXX_DiscardUnknown()
func (*QueryNextSpanSeedResponse) XXX_Marshal ¶
func (m *QueryNextSpanSeedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNextSpanSeedResponse) XXX_Merge ¶
func (m *QueryNextSpanSeedResponse) XXX_Merge(src proto.Message)
func (*QueryNextSpanSeedResponse) XXX_Size ¶
func (m *QueryNextSpanSeedResponse) XXX_Size() int
func (*QueryNextSpanSeedResponse) XXX_Unmarshal ¶
func (m *QueryNextSpanSeedResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct {
}
QueryParamsRequest is the request type for the GetBorParams query.
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 {
// Current parameters of the bor module.
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse is the response type for the GetBorParams query.
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 QueryProducerPlannedDowntimeRequest ¶ added in v0.5.2
type QueryProducerPlannedDowntimeRequest struct {
// ID of the producer whose planned downtime to retrieve.
ProducerId uint64 `protobuf:"varint,1,opt,name=producer_id,json=producerId,proto3" json:"producer_id,omitempty"`
}
QueryProducerPlannedDowntimeRequest is the request type for the GetProducerPlannedDowntime query.
func (*QueryProducerPlannedDowntimeRequest) Descriptor ¶ added in v0.5.2
func (*QueryProducerPlannedDowntimeRequest) Descriptor() ([]byte, []int)
func (*QueryProducerPlannedDowntimeRequest) GetProducerId ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) GetProducerId() uint64
func (*QueryProducerPlannedDowntimeRequest) Marshal ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) Marshal() (dAtA []byte, err error)
func (*QueryProducerPlannedDowntimeRequest) MarshalTo ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryProducerPlannedDowntimeRequest) MarshalToSizedBuffer ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProducerPlannedDowntimeRequest) ProtoMessage ¶ added in v0.5.2
func (*QueryProducerPlannedDowntimeRequest) ProtoMessage()
func (*QueryProducerPlannedDowntimeRequest) Reset ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) Reset()
func (*QueryProducerPlannedDowntimeRequest) Size ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) Size() (n int)
func (*QueryProducerPlannedDowntimeRequest) String ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) String() string
func (*QueryProducerPlannedDowntimeRequest) Unmarshal ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) Unmarshal(dAtA []byte) error
func (*QueryProducerPlannedDowntimeRequest) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) XXX_DiscardUnknown()
func (*QueryProducerPlannedDowntimeRequest) XXX_Marshal ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProducerPlannedDowntimeRequest) XXX_Merge ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) XXX_Merge(src proto.Message)
func (*QueryProducerPlannedDowntimeRequest) XXX_Size ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) XXX_Size() int
func (*QueryProducerPlannedDowntimeRequest) XXX_Unmarshal ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeRequest) XXX_Unmarshal(b []byte) error
type QueryProducerPlannedDowntimeResponse ¶ added in v0.5.2
type QueryProducerPlannedDowntimeResponse struct {
// Block range during which the producer has planned downtime.
DowntimeRange BlockRange `protobuf:"bytes,1,opt,name=downtime_range,json=downtimeRange,proto3" json:"downtime_range"`
}
QueryProducerPlannedDowntimeResponse is the response type for the GetProducerPlannedDowntime query.
func (*QueryProducerPlannedDowntimeResponse) Descriptor ¶ added in v0.5.2
func (*QueryProducerPlannedDowntimeResponse) Descriptor() ([]byte, []int)
func (*QueryProducerPlannedDowntimeResponse) GetDowntimeRange ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) GetDowntimeRange() BlockRange
func (*QueryProducerPlannedDowntimeResponse) Marshal ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) Marshal() (dAtA []byte, err error)
func (*QueryProducerPlannedDowntimeResponse) MarshalTo ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryProducerPlannedDowntimeResponse) MarshalToSizedBuffer ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProducerPlannedDowntimeResponse) ProtoMessage ¶ added in v0.5.2
func (*QueryProducerPlannedDowntimeResponse) ProtoMessage()
func (*QueryProducerPlannedDowntimeResponse) Reset ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) Reset()
func (*QueryProducerPlannedDowntimeResponse) Size ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) Size() (n int)
func (*QueryProducerPlannedDowntimeResponse) String ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) String() string
func (*QueryProducerPlannedDowntimeResponse) Unmarshal ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) Unmarshal(dAtA []byte) error
func (*QueryProducerPlannedDowntimeResponse) XXX_DiscardUnknown ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) XXX_DiscardUnknown()
func (*QueryProducerPlannedDowntimeResponse) XXX_Marshal ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProducerPlannedDowntimeResponse) XXX_Merge ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) XXX_Merge(src proto.Message)
func (*QueryProducerPlannedDowntimeResponse) XXX_Size ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) XXX_Size() int
func (*QueryProducerPlannedDowntimeResponse) XXX_Unmarshal ¶ added in v0.5.2
func (m *QueryProducerPlannedDowntimeResponse) XXX_Unmarshal(b []byte) error
type QueryProducerVotesByValidatorIdRequest ¶ added in v0.1.33
type QueryProducerVotesByValidatorIdRequest struct {
// ID of the validator whose votes to retrieve.
ValidatorId uint64 `protobuf:"varint,1,opt,name=validator_id,json=validatorId,proto3" json:"validator_id,omitempty"`
}
QueryProducerVotesByValidatorIdRequest is the request type for the GetProducerVotesByValidatorId query.
func (*QueryProducerVotesByValidatorIdRequest) Descriptor ¶ added in v0.1.33
func (*QueryProducerVotesByValidatorIdRequest) Descriptor() ([]byte, []int)
func (*QueryProducerVotesByValidatorIdRequest) GetValidatorId ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) GetValidatorId() uint64
func (*QueryProducerVotesByValidatorIdRequest) Marshal ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) Marshal() (dAtA []byte, err error)
func (*QueryProducerVotesByValidatorIdRequest) MarshalTo ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryProducerVotesByValidatorIdRequest) MarshalToSizedBuffer ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProducerVotesByValidatorIdRequest) ProtoMessage ¶ added in v0.1.33
func (*QueryProducerVotesByValidatorIdRequest) ProtoMessage()
func (*QueryProducerVotesByValidatorIdRequest) Reset ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) Reset()
func (*QueryProducerVotesByValidatorIdRequest) Size ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) Size() (n int)
func (*QueryProducerVotesByValidatorIdRequest) String ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) String() string
func (*QueryProducerVotesByValidatorIdRequest) Unmarshal ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) Unmarshal(dAtA []byte) error
func (*QueryProducerVotesByValidatorIdRequest) XXX_DiscardUnknown ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) XXX_DiscardUnknown()
func (*QueryProducerVotesByValidatorIdRequest) XXX_Marshal ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProducerVotesByValidatorIdRequest) XXX_Merge ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) XXX_Merge(src proto.Message)
func (*QueryProducerVotesByValidatorIdRequest) XXX_Size ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) XXX_Size() int
func (*QueryProducerVotesByValidatorIdRequest) XXX_Unmarshal ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdRequest) XXX_Unmarshal(b []byte) error
type QueryProducerVotesByValidatorIdResponse ¶ added in v0.1.33
type QueryProducerVotesByValidatorIdResponse struct {
// List of validator IDs that the queried validator voted for.
Votes []uint64 `protobuf:"varint,1,rep,packed,name=votes,proto3" json:"votes,omitempty"`
}
QueryProducerVotesByValidatorIdResponse is the response type for the GetProducerVotesByValidatorId query.
func (*QueryProducerVotesByValidatorIdResponse) Descriptor ¶ added in v0.1.33
func (*QueryProducerVotesByValidatorIdResponse) Descriptor() ([]byte, []int)
func (*QueryProducerVotesByValidatorIdResponse) GetVotes ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) GetVotes() []uint64
func (*QueryProducerVotesByValidatorIdResponse) Marshal ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) Marshal() (dAtA []byte, err error)
func (*QueryProducerVotesByValidatorIdResponse) MarshalTo ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryProducerVotesByValidatorIdResponse) MarshalToSizedBuffer ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProducerVotesByValidatorIdResponse) ProtoMessage ¶ added in v0.1.33
func (*QueryProducerVotesByValidatorIdResponse) ProtoMessage()
func (*QueryProducerVotesByValidatorIdResponse) Reset ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) Reset()
func (*QueryProducerVotesByValidatorIdResponse) Size ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) Size() (n int)
func (*QueryProducerVotesByValidatorIdResponse) String ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) String() string
func (*QueryProducerVotesByValidatorIdResponse) Unmarshal ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) Unmarshal(dAtA []byte) error
func (*QueryProducerVotesByValidatorIdResponse) XXX_DiscardUnknown ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) XXX_DiscardUnknown()
func (*QueryProducerVotesByValidatorIdResponse) XXX_Marshal ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProducerVotesByValidatorIdResponse) XXX_Merge ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) XXX_Merge(src proto.Message)
func (*QueryProducerVotesByValidatorIdResponse) XXX_Size ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) XXX_Size() int
func (*QueryProducerVotesByValidatorIdResponse) XXX_Unmarshal ¶ added in v0.1.33
func (m *QueryProducerVotesByValidatorIdResponse) XXX_Unmarshal(b []byte) error
type QueryProducerVotesRequest ¶ added in v0.1.33
type QueryProducerVotesRequest struct {
}
QueryProducerVotesRequest is the request type for the GetProducerVotes query.
func (*QueryProducerVotesRequest) Descriptor ¶ added in v0.1.33
func (*QueryProducerVotesRequest) Descriptor() ([]byte, []int)
func (*QueryProducerVotesRequest) Marshal ¶ added in v0.1.33
func (m *QueryProducerVotesRequest) Marshal() (dAtA []byte, err error)
func (*QueryProducerVotesRequest) MarshalTo ¶ added in v0.1.33
func (m *QueryProducerVotesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryProducerVotesRequest) MarshalToSizedBuffer ¶ added in v0.1.33
func (m *QueryProducerVotesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProducerVotesRequest) ProtoMessage ¶ added in v0.1.33
func (*QueryProducerVotesRequest) ProtoMessage()
func (*QueryProducerVotesRequest) Reset ¶ added in v0.1.33
func (m *QueryProducerVotesRequest) Reset()
func (*QueryProducerVotesRequest) Size ¶ added in v0.1.33
func (m *QueryProducerVotesRequest) Size() (n int)
func (*QueryProducerVotesRequest) String ¶ added in v0.1.33
func (m *QueryProducerVotesRequest) String() string
func (*QueryProducerVotesRequest) Unmarshal ¶ added in v0.1.33
func (m *QueryProducerVotesRequest) Unmarshal(dAtA []byte) error
func (*QueryProducerVotesRequest) XXX_DiscardUnknown ¶ added in v0.1.33
func (m *QueryProducerVotesRequest) XXX_DiscardUnknown()
func (*QueryProducerVotesRequest) XXX_Marshal ¶ added in v0.1.33
func (m *QueryProducerVotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProducerVotesRequest) XXX_Merge ¶ added in v0.1.33
func (m *QueryProducerVotesRequest) XXX_Merge(src proto.Message)
func (*QueryProducerVotesRequest) XXX_Size ¶ added in v0.1.33
func (m *QueryProducerVotesRequest) XXX_Size() int
func (*QueryProducerVotesRequest) XXX_Unmarshal ¶ added in v0.1.33
func (m *QueryProducerVotesRequest) XXX_Unmarshal(b []byte) error
type QueryProducerVotesResponse ¶ added in v0.1.33
type QueryProducerVotesResponse struct {
// Map of validator ID to their producer votes.
// Key: validator ID, Value: list of validator IDs they voted for.
AllVotes map[uint64]ProducerVotes `` /* 164-byte string literal not displayed */
}
QueryProducerVotesResponse is the response type for the GetProducerVotes query.
func (*QueryProducerVotesResponse) Descriptor ¶ added in v0.1.33
func (*QueryProducerVotesResponse) Descriptor() ([]byte, []int)
func (*QueryProducerVotesResponse) GetAllVotes ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) GetAllVotes() map[uint64]ProducerVotes
func (*QueryProducerVotesResponse) Marshal ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) Marshal() (dAtA []byte, err error)
func (*QueryProducerVotesResponse) MarshalTo ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryProducerVotesResponse) MarshalToSizedBuffer ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryProducerVotesResponse) ProtoMessage ¶ added in v0.1.33
func (*QueryProducerVotesResponse) ProtoMessage()
func (*QueryProducerVotesResponse) Reset ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) Reset()
func (*QueryProducerVotesResponse) Size ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) Size() (n int)
func (*QueryProducerVotesResponse) String ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) String() string
func (*QueryProducerVotesResponse) Unmarshal ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) Unmarshal(dAtA []byte) error
func (*QueryProducerVotesResponse) XXX_DiscardUnknown ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) XXX_DiscardUnknown()
func (*QueryProducerVotesResponse) XXX_Marshal ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryProducerVotesResponse) XXX_Merge ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) XXX_Merge(src proto.Message)
func (*QueryProducerVotesResponse) XXX_Size ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) XXX_Size() int
func (*QueryProducerVotesResponse) XXX_Unmarshal ¶ added in v0.1.33
func (m *QueryProducerVotesResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
// GetSpanList queries a paginated list of spans.
GetSpanList(context.Context, *QuerySpanListRequest) (*QuerySpanListResponse, error)
// GetLatestSpan queries the latest span.
GetLatestSpan(context.Context, *QueryLatestSpanRequest) (*QueryLatestSpanResponse, error)
// GetNextSpanSeed queries the seed for generating the next span.
// The seed is used for deterministic random selection of producers.
GetNextSpanSeed(context.Context, *QueryNextSpanSeedRequest) (*QueryNextSpanSeedResponse, error)
// GetNextSpan prepares and returns the next span based on the current
// validator set. This is used by proposers to create span proposals.
GetNextSpan(context.Context, *QueryNextSpanRequest) (*QueryNextSpanResponse, error)
// GetSpanById retrieves a specific span by its ID.
GetSpanById(context.Context, *QuerySpanByIdRequest) (*QuerySpanByIdResponse, error)
// GetBorParams queries the parameters of x/bor module.
GetBorParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// GetProducerVotes queries producer votes from all validators.
// Returns a map of validator ID to their producer votes.
GetProducerVotes(context.Context, *QueryProducerVotesRequest) (*QueryProducerVotesResponse, error)
// GetProducerVotesByValidatorId queries the producer votes cast by a specific
// validator.
GetProducerVotesByValidatorId(context.Context, *QueryProducerVotesByValidatorIdRequest) (*QueryProducerVotesByValidatorIdResponse, error)
// GetProducerPlannedDowntime queries the planned downtime window for a
// specific producer. Producers can signal planned maintenance periods during
// which they won't produce blocks.
GetProducerPlannedDowntime(context.Context, *QueryProducerPlannedDowntimeRequest) (*QueryProducerPlannedDowntimeResponse, error)
// GetValidatorPerformanceScore queries the performance scores of all
// validators. Performance scores track block production reliability.
GetValidatorPerformanceScore(context.Context, *QueryValidatorPerformanceScoreRequest) (*QueryValidatorPerformanceScoreResponse, error)
}
QueryServer is the server API for Query service.
type QuerySpanByIdRequest ¶
type QuerySpanByIdRequest struct {
// ID of the span to retrieve.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
QuerySpanByIdRequest is the request type for the GetSpanById query.
func (*QuerySpanByIdRequest) Descriptor ¶
func (*QuerySpanByIdRequest) Descriptor() ([]byte, []int)
func (*QuerySpanByIdRequest) GetId ¶
func (m *QuerySpanByIdRequest) GetId() string
func (*QuerySpanByIdRequest) Marshal ¶
func (m *QuerySpanByIdRequest) Marshal() (dAtA []byte, err error)
func (*QuerySpanByIdRequest) MarshalTo ¶
func (m *QuerySpanByIdRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySpanByIdRequest) MarshalToSizedBuffer ¶
func (m *QuerySpanByIdRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySpanByIdRequest) ProtoMessage ¶
func (*QuerySpanByIdRequest) ProtoMessage()
func (*QuerySpanByIdRequest) Reset ¶
func (m *QuerySpanByIdRequest) Reset()
func (*QuerySpanByIdRequest) Size ¶
func (m *QuerySpanByIdRequest) Size() (n int)
func (*QuerySpanByIdRequest) String ¶
func (m *QuerySpanByIdRequest) String() string
func (*QuerySpanByIdRequest) Unmarshal ¶
func (m *QuerySpanByIdRequest) Unmarshal(dAtA []byte) error
func (*QuerySpanByIdRequest) XXX_DiscardUnknown ¶
func (m *QuerySpanByIdRequest) XXX_DiscardUnknown()
func (*QuerySpanByIdRequest) XXX_Marshal ¶
func (m *QuerySpanByIdRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySpanByIdRequest) XXX_Merge ¶
func (m *QuerySpanByIdRequest) XXX_Merge(src proto.Message)
func (*QuerySpanByIdRequest) XXX_Size ¶
func (m *QuerySpanByIdRequest) XXX_Size() int
func (*QuerySpanByIdRequest) XXX_Unmarshal ¶
func (m *QuerySpanByIdRequest) XXX_Unmarshal(b []byte) error
type QuerySpanByIdResponse ¶
type QuerySpanByIdResponse struct {
// The requested span.
Span *Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span,omitempty"`
}
QuerySpanByIdResponse is the response type for the GetSpanById query.
func (*QuerySpanByIdResponse) Descriptor ¶
func (*QuerySpanByIdResponse) Descriptor() ([]byte, []int)
func (*QuerySpanByIdResponse) GetSpan ¶
func (m *QuerySpanByIdResponse) GetSpan() *Span
func (*QuerySpanByIdResponse) Marshal ¶
func (m *QuerySpanByIdResponse) Marshal() (dAtA []byte, err error)
func (*QuerySpanByIdResponse) MarshalTo ¶
func (m *QuerySpanByIdResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySpanByIdResponse) MarshalToSizedBuffer ¶
func (m *QuerySpanByIdResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySpanByIdResponse) ProtoMessage ¶
func (*QuerySpanByIdResponse) ProtoMessage()
func (*QuerySpanByIdResponse) Reset ¶
func (m *QuerySpanByIdResponse) Reset()
func (*QuerySpanByIdResponse) Size ¶
func (m *QuerySpanByIdResponse) Size() (n int)
func (*QuerySpanByIdResponse) String ¶
func (m *QuerySpanByIdResponse) String() string
func (*QuerySpanByIdResponse) Unmarshal ¶
func (m *QuerySpanByIdResponse) Unmarshal(dAtA []byte) error
func (*QuerySpanByIdResponse) XXX_DiscardUnknown ¶
func (m *QuerySpanByIdResponse) XXX_DiscardUnknown()
func (*QuerySpanByIdResponse) XXX_Marshal ¶
func (m *QuerySpanByIdResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySpanByIdResponse) XXX_Merge ¶
func (m *QuerySpanByIdResponse) XXX_Merge(src proto.Message)
func (*QuerySpanByIdResponse) XXX_Size ¶
func (m *QuerySpanByIdResponse) XXX_Size() int
func (*QuerySpanByIdResponse) XXX_Unmarshal ¶
func (m *QuerySpanByIdResponse) XXX_Unmarshal(b []byte) error
type QuerySpanListRequest ¶
type QuerySpanListRequest struct {
// Pagination parameters for the query.
Pagination query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination"`
}
QuerySpanListRequest is the request type for the GetSpanList query.
func (*QuerySpanListRequest) Descriptor ¶
func (*QuerySpanListRequest) Descriptor() ([]byte, []int)
func (*QuerySpanListRequest) GetPagination ¶
func (m *QuerySpanListRequest) GetPagination() query.PageRequest
func (*QuerySpanListRequest) Marshal ¶
func (m *QuerySpanListRequest) Marshal() (dAtA []byte, err error)
func (*QuerySpanListRequest) MarshalTo ¶
func (m *QuerySpanListRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySpanListRequest) MarshalToSizedBuffer ¶
func (m *QuerySpanListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySpanListRequest) ProtoMessage ¶
func (*QuerySpanListRequest) ProtoMessage()
func (*QuerySpanListRequest) Reset ¶
func (m *QuerySpanListRequest) Reset()
func (*QuerySpanListRequest) Size ¶
func (m *QuerySpanListRequest) Size() (n int)
func (*QuerySpanListRequest) String ¶
func (m *QuerySpanListRequest) String() string
func (*QuerySpanListRequest) Unmarshal ¶
func (m *QuerySpanListRequest) Unmarshal(dAtA []byte) error
func (*QuerySpanListRequest) XXX_DiscardUnknown ¶
func (m *QuerySpanListRequest) XXX_DiscardUnknown()
func (*QuerySpanListRequest) XXX_Marshal ¶
func (m *QuerySpanListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySpanListRequest) XXX_Merge ¶
func (m *QuerySpanListRequest) XXX_Merge(src proto.Message)
func (*QuerySpanListRequest) XXX_Size ¶
func (m *QuerySpanListRequest) XXX_Size() int
func (*QuerySpanListRequest) XXX_Unmarshal ¶
func (m *QuerySpanListRequest) XXX_Unmarshal(b []byte) error
type QuerySpanListResponse ¶
type QuerySpanListResponse struct {
// List of spans matching the query.
SpanList []Span `protobuf:"bytes,1,rep,name=span_list,json=spanList,proto3" json:"span_list"`
// Pagination response with next page token.
Pagination query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"`
}
QuerySpanListResponse is the response type for the GetSpanList query.
func (*QuerySpanListResponse) Descriptor ¶
func (*QuerySpanListResponse) Descriptor() ([]byte, []int)
func (*QuerySpanListResponse) GetPagination ¶
func (m *QuerySpanListResponse) GetPagination() query.PageResponse
func (*QuerySpanListResponse) GetSpanList ¶
func (m *QuerySpanListResponse) GetSpanList() []Span
func (*QuerySpanListResponse) Marshal ¶
func (m *QuerySpanListResponse) Marshal() (dAtA []byte, err error)
func (*QuerySpanListResponse) MarshalTo ¶
func (m *QuerySpanListResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySpanListResponse) MarshalToSizedBuffer ¶
func (m *QuerySpanListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySpanListResponse) ProtoMessage ¶
func (*QuerySpanListResponse) ProtoMessage()
func (*QuerySpanListResponse) Reset ¶
func (m *QuerySpanListResponse) Reset()
func (*QuerySpanListResponse) Size ¶
func (m *QuerySpanListResponse) Size() (n int)
func (*QuerySpanListResponse) String ¶
func (m *QuerySpanListResponse) String() string
func (*QuerySpanListResponse) Unmarshal ¶
func (m *QuerySpanListResponse) Unmarshal(dAtA []byte) error
func (*QuerySpanListResponse) XXX_DiscardUnknown ¶
func (m *QuerySpanListResponse) XXX_DiscardUnknown()
func (*QuerySpanListResponse) XXX_Marshal ¶
func (m *QuerySpanListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySpanListResponse) XXX_Merge ¶
func (m *QuerySpanListResponse) XXX_Merge(src proto.Message)
func (*QuerySpanListResponse) XXX_Size ¶
func (m *QuerySpanListResponse) XXX_Size() int
func (*QuerySpanListResponse) XXX_Unmarshal ¶
func (m *QuerySpanListResponse) XXX_Unmarshal(b []byte) error
type QueryValidatorPerformanceScoreRequest ¶ added in v0.4.3
type QueryValidatorPerformanceScoreRequest struct {
}
QueryValidatorPerformanceScoreRequest is the request type for the GetValidatorPerformanceScore query.
func (*QueryValidatorPerformanceScoreRequest) Descriptor ¶ added in v0.4.3
func (*QueryValidatorPerformanceScoreRequest) Descriptor() ([]byte, []int)
func (*QueryValidatorPerformanceScoreRequest) Marshal ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreRequest) Marshal() (dAtA []byte, err error)
func (*QueryValidatorPerformanceScoreRequest) MarshalTo ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorPerformanceScoreRequest) MarshalToSizedBuffer ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorPerformanceScoreRequest) ProtoMessage ¶ added in v0.4.3
func (*QueryValidatorPerformanceScoreRequest) ProtoMessage()
func (*QueryValidatorPerformanceScoreRequest) Reset ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreRequest) Reset()
func (*QueryValidatorPerformanceScoreRequest) Size ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreRequest) Size() (n int)
func (*QueryValidatorPerformanceScoreRequest) String ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreRequest) String() string
func (*QueryValidatorPerformanceScoreRequest) Unmarshal ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreRequest) Unmarshal(dAtA []byte) error
func (*QueryValidatorPerformanceScoreRequest) XXX_DiscardUnknown ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreRequest) XXX_DiscardUnknown()
func (*QueryValidatorPerformanceScoreRequest) XXX_Marshal ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorPerformanceScoreRequest) XXX_Merge ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreRequest) XXX_Merge(src proto.Message)
func (*QueryValidatorPerformanceScoreRequest) XXX_Size ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreRequest) XXX_Size() int
func (*QueryValidatorPerformanceScoreRequest) XXX_Unmarshal ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreRequest) XXX_Unmarshal(b []byte) error
type QueryValidatorPerformanceScoreResponse ¶ added in v0.4.3
type QueryValidatorPerformanceScoreResponse struct {
// Map of validator ID to their performance score.
// Higher scores indicate better block production reliability.
ValidatorPerformanceScore map[uint64]uint64 `` /* 218-byte string literal not displayed */
}
QueryValidatorPerformanceScoreResponse is the response type for the GetValidatorPerformanceScore query.
func (*QueryValidatorPerformanceScoreResponse) Descriptor ¶ added in v0.4.3
func (*QueryValidatorPerformanceScoreResponse) Descriptor() ([]byte, []int)
func (*QueryValidatorPerformanceScoreResponse) GetValidatorPerformanceScore ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) GetValidatorPerformanceScore() map[uint64]uint64
func (*QueryValidatorPerformanceScoreResponse) Marshal ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) Marshal() (dAtA []byte, err error)
func (*QueryValidatorPerformanceScoreResponse) MarshalTo ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorPerformanceScoreResponse) MarshalToSizedBuffer ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorPerformanceScoreResponse) ProtoMessage ¶ added in v0.4.3
func (*QueryValidatorPerformanceScoreResponse) ProtoMessage()
func (*QueryValidatorPerformanceScoreResponse) Reset ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) Reset()
func (*QueryValidatorPerformanceScoreResponse) Size ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) Size() (n int)
func (*QueryValidatorPerformanceScoreResponse) String ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) String() string
func (*QueryValidatorPerformanceScoreResponse) Unmarshal ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) Unmarshal(dAtA []byte) error
func (*QueryValidatorPerformanceScoreResponse) XXX_DiscardUnknown ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) XXX_DiscardUnknown()
func (*QueryValidatorPerformanceScoreResponse) XXX_Marshal ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorPerformanceScoreResponse) XXX_Merge ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) XXX_Merge(src proto.Message)
func (*QueryValidatorPerformanceScoreResponse) XXX_Size ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) XXX_Size() int
func (*QueryValidatorPerformanceScoreResponse) XXX_Unmarshal ¶ added in v0.4.3
func (m *QueryValidatorPerformanceScoreResponse) XXX_Unmarshal(b []byte) error
type Span ¶
type Span struct {
// Unique identifier for this span. Spans are numbered sequentially starting
// from 0.
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// First block number included in this span (inclusive).
StartBlock uint64 `protobuf:"varint,2,opt,name=start_block,json=startBlock,proto3" json:"start_block,omitempty"`
// Last block number included in this span (inclusive).
EndBlock uint64 `protobuf:"varint,3,opt,name=end_block,json=endBlock,proto3" json:"end_block,omitempty"`
// Complete validator set at the time this span was created.
// This represents all active validators, not just the selected producers.
ValidatorSet types.ValidatorSet `protobuf:"bytes,4,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set"`
// Subset of validators selected to produce blocks during this span.
// The number of producers is determined by the producer_count parameter.
SelectedProducers []types.Validator `protobuf:"bytes,5,rep,name=selected_producers,json=selectedProducers,proto3" json:"selected_producers"`
// Chain ID of the Bor chain this span applies to.
BorChainId string `protobuf:"bytes,6,opt,name=bor_chain_id,json=borChainId,proto3" json:"bor_chain_id,omitempty"`
}
Span represents a range of blocks on the Bor chain with an associated validator set. Spans are used to organize block production into epochs, with each span having a specific set of selected producers who take turns producing blocks.
func GenerateBorCommittedSpans ¶ added in v0.1.28
func (*Span) Descriptor ¶
func (*Span) GetBorChainId ¶
func (*Span) GetEndBlock ¶
func (*Span) GetSelectedProducers ¶
func (*Span) GetStartBlock ¶
func (*Span) GetValidatorSet ¶
func (m *Span) GetValidatorSet() types.ValidatorSet
func (*Span) LogSpan ¶ added in v0.5.4
LogSpan returns a human-readable summary of the span for logging purposes. It extracts the key fields without dumping the entire validator set, which causes unreadable logs.
func (*Span) ProtoMessage ¶
func (*Span) ProtoMessage()
func (*Span) XXX_DiscardUnknown ¶
func (m *Span) XXX_DiscardUnknown()
func (*Span) XXX_Unmarshal ¶
type StakeKeeper ¶
type StakeKeeper interface {
GetSpanEligibleValidators(ctx context.Context) []staketypes.Validator
GetValidatorSet(ctx context.Context) (staketypes.ValidatorSet, error)
GetValidatorFromValID(ctx context.Context, valID uint64) (staketypes.Validator, error)
GetValIdFromAddress(ctx context.Context, address string) (uint64, error)
}
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct {
}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) BackfillSpans ¶ added in v0.1.28
func (*UnimplementedMsgServer) BackfillSpans(ctx context.Context, req *MsgBackfillSpans) (*MsgBackfillSpansResponse, error)
func (*UnimplementedMsgServer) ProposeSpan ¶
func (*UnimplementedMsgServer) ProposeSpan(ctx context.Context, req *MsgProposeSpan) (*MsgProposeSpanResponse, error)
func (*UnimplementedMsgServer) SetProducerDowntime ¶ added in v0.5.2
func (*UnimplementedMsgServer) SetProducerDowntime(ctx context.Context, req *MsgSetProducerDowntime) (*MsgSetProducerDowntimeResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (*UnimplementedMsgServer) VoteProducers ¶ added in v0.1.33
func (*UnimplementedMsgServer) VoteProducers(ctx context.Context, req *MsgVoteProducers) (*MsgVoteProducersResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) GetBorParams ¶
func (*UnimplementedQueryServer) GetBorParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) GetLatestSpan ¶
func (*UnimplementedQueryServer) GetLatestSpan(ctx context.Context, req *QueryLatestSpanRequest) (*QueryLatestSpanResponse, error)
func (*UnimplementedQueryServer) GetNextSpan ¶
func (*UnimplementedQueryServer) GetNextSpan(ctx context.Context, req *QueryNextSpanRequest) (*QueryNextSpanResponse, error)
func (*UnimplementedQueryServer) GetNextSpanSeed ¶
func (*UnimplementedQueryServer) GetNextSpanSeed(ctx context.Context, req *QueryNextSpanSeedRequest) (*QueryNextSpanSeedResponse, error)
func (*UnimplementedQueryServer) GetProducerPlannedDowntime ¶ added in v0.5.2
func (*UnimplementedQueryServer) GetProducerPlannedDowntime(ctx context.Context, req *QueryProducerPlannedDowntimeRequest) (*QueryProducerPlannedDowntimeResponse, error)
func (*UnimplementedQueryServer) GetProducerVotes ¶ added in v0.1.33
func (*UnimplementedQueryServer) GetProducerVotes(ctx context.Context, req *QueryProducerVotesRequest) (*QueryProducerVotesResponse, error)
func (*UnimplementedQueryServer) GetProducerVotesByValidatorId ¶ added in v0.1.33
func (*UnimplementedQueryServer) GetProducerVotesByValidatorId(ctx context.Context, req *QueryProducerVotesByValidatorIdRequest) (*QueryProducerVotesByValidatorIdResponse, error)
func (*UnimplementedQueryServer) GetSpanById ¶
func (*UnimplementedQueryServer) GetSpanById(ctx context.Context, req *QuerySpanByIdRequest) (*QuerySpanByIdResponse, error)
func (*UnimplementedQueryServer) GetSpanList ¶
func (*UnimplementedQueryServer) GetSpanList(ctx context.Context, req *QuerySpanListRequest) (*QuerySpanListResponse, error)
func (*UnimplementedQueryServer) GetValidatorPerformanceScore ¶ added in v0.4.3
func (*UnimplementedQueryServer) GetValidatorPerformanceScore(ctx context.Context, req *QueryValidatorPerformanceScoreRequest) (*QueryValidatorPerformanceScoreResponse, error)