bor

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2026 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_GetSpanList_FullMethodName                   = "/heimdallv2.bor.Query/GetSpanList"
	Query_GetLatestSpan_FullMethodName                 = "/heimdallv2.bor.Query/GetLatestSpan"
	Query_GetNextSpanSeed_FullMethodName               = "/heimdallv2.bor.Query/GetNextSpanSeed"
	Query_GetNextSpan_FullMethodName                   = "/heimdallv2.bor.Query/GetNextSpan"
	Query_GetSpanById_FullMethodName                   = "/heimdallv2.bor.Query/GetSpanById"
	Query_GetBorParams_FullMethodName                  = "/heimdallv2.bor.Query/GetBorParams"
	Query_GetProducerVotes_FullMethodName              = "/heimdallv2.bor.Query/GetProducerVotes"
	Query_GetProducerVotesByValidatorId_FullMethodName = "/heimdallv2.bor.Query/GetProducerVotesByValidatorId"
	Query_GetProducerPlannedDowntime_FullMethodName    = "/heimdallv2.bor.Query/GetProducerPlannedDowntime"
	Query_GetValidatorPerformanceScore_FullMethodName  = "/heimdallv2.bor.Query/GetValidatorPerformanceScore"
)
View Source
const (
	Msg_ProposeSpan_FullMethodName         = "/heimdallv2.bor.Msg/ProposeSpan"
	Msg_UpdateParams_FullMethodName        = "/heimdallv2.bor.Msg/UpdateParams"
	Msg_BackfillSpans_FullMethodName       = "/heimdallv2.bor.Msg/BackfillSpans"
	Msg_VoteProducers_FullMethodName       = "/heimdallv2.bor.Msg/VoteProducers"
	Msg_SetProducerDowntime_FullMethodName = "/heimdallv2.bor.Msg/SetProducerDowntime"
)

Variables

View Source
var File_heimdallv2_bor_bor_proto protoreflect.FileDescriptor
View Source
var File_heimdallv2_bor_genesis_proto protoreflect.FileDescriptor
View Source
var File_heimdallv2_bor_query_proto protoreflect.FileDescriptor
View Source
var File_heimdallv2_bor_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "heimdallv2.bor.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ProposeSpan",
			Handler:    _Msg_ProposeSpan_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
		{
			MethodName: "BackfillSpans",
			Handler:    _Msg_BackfillSpans_Handler,
		},
		{
			MethodName: "VoteProducers",
			Handler:    _Msg_VoteProducers_Handler,
		},
		{
			MethodName: "SetProducerDowntime",
			Handler:    _Msg_SetProducerDowntime_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "heimdallv2/bor/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "heimdallv2.bor.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSpanList",
			Handler:    _Query_GetSpanList_Handler,
		},
		{
			MethodName: "GetLatestSpan",
			Handler:    _Query_GetLatestSpan_Handler,
		},
		{
			MethodName: "GetNextSpanSeed",
			Handler:    _Query_GetNextSpanSeed_Handler,
		},
		{
			MethodName: "GetNextSpan",
			Handler:    _Query_GetNextSpan_Handler,
		},
		{
			MethodName: "GetSpanById",
			Handler:    _Query_GetSpanById_Handler,
		},
		{
			MethodName: "GetBorParams",
			Handler:    _Query_GetBorParams_Handler,
		},
		{
			MethodName: "GetProducerVotes",
			Handler:    _Query_GetProducerVotes_Handler,
		},
		{
			MethodName: "GetProducerVotesByValidatorId",
			Handler:    _Query_GetProducerVotesByValidatorId_Handler,
		},
		{
			MethodName: "GetProducerPlannedDowntime",
			Handler:    _Query_GetProducerPlannedDowntime_Handler,
		},
		{
			MethodName: "GetValidatorPerformanceScore",
			Handler:    _Query_GetValidatorPerformanceScore_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "heimdallv2/bor/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type 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"`
	// contains filtered or unexported fields
}

BlockRange represents a contiguous range of blocks, used for tracking planned downtime periods for producers.

func (*BlockRange) Descriptor deprecated added in v0.5.2

func (*BlockRange) Descriptor() ([]byte, []int)

Deprecated: Use BlockRange.ProtoReflect.Descriptor instead.

func (*BlockRange) GetEndBlock added in v0.5.2

func (x *BlockRange) GetEndBlock() uint64

func (*BlockRange) GetStartBlock added in v0.5.2

func (x *BlockRange) GetStartBlock() uint64

func (*BlockRange) ProtoMessage added in v0.5.2

func (*BlockRange) ProtoMessage()

func (*BlockRange) ProtoReflect added in v0.5.2

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

func (*BlockRange) Reset added in v0.5.2

func (x *BlockRange) Reset()

func (*BlockRange) String added in v0.5.2

func (x *BlockRange) String() string

type GenesisState

type GenesisState struct {

	// Module parameters at genesis.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// 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,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the bor module's genesis state.

func (*GenesisState) Descriptor deprecated

func (*GenesisState) Descriptor() ([]byte, []int)

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetSpans

func (x *GenesisState) GetSpans() []*Span

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

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

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type 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"`
	// contains filtered or unexported fields
}

MsgBackfillSpans defines the message for backfilling missing spans.

func (*MsgBackfillSpans) Descriptor deprecated added in v0.1.28

func (*MsgBackfillSpans) Descriptor() ([]byte, []int)

Deprecated: Use MsgBackfillSpans.ProtoReflect.Descriptor instead.

func (*MsgBackfillSpans) GetChainId added in v0.1.28

func (x *MsgBackfillSpans) GetChainId() string

func (*MsgBackfillSpans) GetLatestBorSpanId added in v0.1.28

func (x *MsgBackfillSpans) GetLatestBorSpanId() uint64

func (*MsgBackfillSpans) GetLatestSpanId added in v0.1.28

func (x *MsgBackfillSpans) GetLatestSpanId() uint64

func (*MsgBackfillSpans) GetProposer added in v0.1.28

func (x *MsgBackfillSpans) GetProposer() string

func (*MsgBackfillSpans) ProtoMessage added in v0.1.28

func (*MsgBackfillSpans) ProtoMessage()

func (*MsgBackfillSpans) ProtoReflect added in v0.1.28

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

func (*MsgBackfillSpans) Reset added in v0.1.28

func (x *MsgBackfillSpans) Reset()

func (*MsgBackfillSpans) String added in v0.1.28

func (x *MsgBackfillSpans) String() string

type MsgBackfillSpansResponse added in v0.1.28

type MsgBackfillSpansResponse struct {
	// contains filtered or unexported fields
}

MsgBackfillSpansResponse defines the response for MsgBackfillSpans.

func (*MsgBackfillSpansResponse) Descriptor deprecated added in v0.1.28

func (*MsgBackfillSpansResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgBackfillSpansResponse.ProtoReflect.Descriptor instead.

func (*MsgBackfillSpansResponse) ProtoMessage added in v0.1.28

func (*MsgBackfillSpansResponse) ProtoMessage()

func (*MsgBackfillSpansResponse) ProtoReflect added in v0.1.28

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

func (*MsgBackfillSpansResponse) Reset added in v0.1.28

func (x *MsgBackfillSpansResponse) Reset()

func (*MsgBackfillSpansResponse) String added in v0.1.28

func (x *MsgBackfillSpansResponse) String() string

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) 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"`
	// contains filtered or unexported fields
}

MsgProposeSpan defines the message for proposing a new span.

func (*MsgProposeSpan) Descriptor deprecated

func (*MsgProposeSpan) Descriptor() ([]byte, []int)

Deprecated: Use MsgProposeSpan.ProtoReflect.Descriptor instead.

func (*MsgProposeSpan) GetChainId

func (x *MsgProposeSpan) GetChainId() string

func (*MsgProposeSpan) GetEndBlock

func (x *MsgProposeSpan) GetEndBlock() uint64

func (*MsgProposeSpan) GetProposer

func (x *MsgProposeSpan) GetProposer() string

func (*MsgProposeSpan) GetSeed

func (x *MsgProposeSpan) GetSeed() []byte

func (*MsgProposeSpan) GetSeedAuthor

func (x *MsgProposeSpan) GetSeedAuthor() string

func (*MsgProposeSpan) GetSpanId

func (x *MsgProposeSpan) GetSpanId() uint64

func (*MsgProposeSpan) GetStartBlock

func (x *MsgProposeSpan) GetStartBlock() uint64

func (*MsgProposeSpan) ProtoMessage

func (*MsgProposeSpan) ProtoMessage()

func (*MsgProposeSpan) ProtoReflect

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

func (*MsgProposeSpan) Reset

func (x *MsgProposeSpan) Reset()

func (*MsgProposeSpan) String

func (x *MsgProposeSpan) String() string

type MsgProposeSpanResponse

type MsgProposeSpanResponse struct {
	// contains filtered or unexported fields
}

MsgProposeSpanResponse defines the response for MsgProposeSpan.

func (*MsgProposeSpanResponse) Descriptor deprecated

func (*MsgProposeSpanResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgProposeSpanResponse.ProtoReflect.Descriptor instead.

func (*MsgProposeSpanResponse) ProtoMessage

func (*MsgProposeSpanResponse) ProtoMessage()

func (*MsgProposeSpanResponse) ProtoReflect

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

func (*MsgProposeSpanResponse) Reset

func (x *MsgProposeSpanResponse) Reset()

func (*MsgProposeSpanResponse) String

func (x *MsgProposeSpanResponse) String() string

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)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

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,omitempty"`
	// contains filtered or unexported fields
}

MsgSetProducerDowntime defines the message for setting producer downtime.

func (*MsgSetProducerDowntime) Descriptor deprecated added in v0.5.2

func (*MsgSetProducerDowntime) Descriptor() ([]byte, []int)

Deprecated: Use MsgSetProducerDowntime.ProtoReflect.Descriptor instead.

func (*MsgSetProducerDowntime) GetDowntimeRange added in v0.5.2

func (x *MsgSetProducerDowntime) GetDowntimeRange() *BlockRange

func (*MsgSetProducerDowntime) GetProducer added in v0.5.2

func (x *MsgSetProducerDowntime) GetProducer() string

func (*MsgSetProducerDowntime) ProtoMessage added in v0.5.2

func (*MsgSetProducerDowntime) ProtoMessage()

func (*MsgSetProducerDowntime) ProtoReflect added in v0.5.2

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

func (*MsgSetProducerDowntime) Reset added in v0.5.2

func (x *MsgSetProducerDowntime) Reset()

func (*MsgSetProducerDowntime) String added in v0.5.2

func (x *MsgSetProducerDowntime) String() string

type MsgSetProducerDowntimeResponse added in v0.5.2

type MsgSetProducerDowntimeResponse struct {
	// contains filtered or unexported fields
}

MsgSetProducerDowntimeResponse defines the response for MsgSetProducerDowntime.

func (*MsgSetProducerDowntimeResponse) Descriptor deprecated added in v0.5.2

func (*MsgSetProducerDowntimeResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgSetProducerDowntimeResponse.ProtoReflect.Descriptor instead.

func (*MsgSetProducerDowntimeResponse) ProtoMessage added in v0.5.2

func (*MsgSetProducerDowntimeResponse) ProtoMessage()

func (*MsgSetProducerDowntimeResponse) ProtoReflect added in v0.5.2

func (*MsgSetProducerDowntimeResponse) Reset added in v0.5.2

func (x *MsgSetProducerDowntimeResponse) Reset()

func (*MsgSetProducerDowntimeResponse) String added in v0.5.2

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,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams defines the message for updating bor module parameters.

func (*MsgUpdateParams) Descriptor deprecated

func (*MsgUpdateParams) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

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

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse defines the response for MsgUpdateParams.

func (*MsgUpdateParamsResponse) Descriptor deprecated

func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

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

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

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,omitempty"`
	// contains filtered or unexported fields
}

MsgVoteProducers defines the message for voting on producers.

func (*MsgVoteProducers) Descriptor deprecated added in v0.1.33

func (*MsgVoteProducers) Descriptor() ([]byte, []int)

Deprecated: Use MsgVoteProducers.ProtoReflect.Descriptor instead.

func (*MsgVoteProducers) GetVoter added in v0.1.33

func (x *MsgVoteProducers) GetVoter() string

func (*MsgVoteProducers) GetVoterId added in v0.1.33

func (x *MsgVoteProducers) GetVoterId() uint64

func (*MsgVoteProducers) GetVotes added in v0.1.33

func (x *MsgVoteProducers) GetVotes() *ProducerVotes

func (*MsgVoteProducers) ProtoMessage added in v0.1.33

func (*MsgVoteProducers) ProtoMessage()

func (*MsgVoteProducers) ProtoReflect added in v0.1.33

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

func (*MsgVoteProducers) Reset added in v0.1.33

func (x *MsgVoteProducers) Reset()

func (*MsgVoteProducers) String added in v0.1.33

func (x *MsgVoteProducers) String() string

type MsgVoteProducersResponse added in v0.1.33

type MsgVoteProducersResponse struct {
	// contains filtered or unexported fields
}

MsgVoteProducersResponse defines the response for MsgVoteProducers.

func (*MsgVoteProducersResponse) Descriptor deprecated added in v0.1.33

func (*MsgVoteProducersResponse) Descriptor() ([]byte, []int)

Deprecated: Use MsgVoteProducersResponse.ProtoReflect.Descriptor instead.

func (*MsgVoteProducersResponse) ProtoMessage added in v0.1.33

func (*MsgVoteProducersResponse) ProtoMessage()

func (*MsgVoteProducersResponse) ProtoReflect added in v0.1.33

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

func (*MsgVoteProducersResponse) Reset added in v0.1.33

func (x *MsgVoteProducersResponse) Reset()

func (*MsgVoteProducersResponse) String added in v0.1.33

func (x *MsgVoteProducersResponse) String() string

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"`
	// contains filtered or unexported fields
}

Params defines the parameters for the bor module.

func (*Params) Descriptor deprecated

func (*Params) Descriptor() ([]byte, []int)

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetProducerCount

func (x *Params) GetProducerCount() uint64

func (*Params) GetSpanDuration

func (x *Params) GetSpanDuration() uint64

func (*Params) GetSprintDuration

func (x *Params) GetSprintDuration() uint64

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

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"`
	// contains filtered or unexported fields
}

ProducerVotes contains the validator IDs that a validator has voted for to be included in the next span's producer set.

func (*ProducerVotes) Descriptor deprecated added in v0.1.33

func (*ProducerVotes) Descriptor() ([]byte, []int)

Deprecated: Use ProducerVotes.ProtoReflect.Descriptor instead.

func (*ProducerVotes) GetVotes added in v0.1.33

func (x *ProducerVotes) GetVotes() []uint64

func (*ProducerVotes) ProtoMessage added in v0.1.33

func (*ProducerVotes) ProtoMessage()

func (*ProducerVotes) ProtoReflect added in v0.1.33

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

func (*ProducerVotes) Reset added in v0.1.33

func (x *ProducerVotes) Reset()

func (*ProducerVotes) String added in v0.1.33

func (x *ProducerVotes) String() string

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryLatestSpanRequest

type QueryLatestSpanRequest struct {
	// contains filtered or unexported fields
}

QueryLatestSpanRequest is the request type for the GetLatestSpan query.

func (*QueryLatestSpanRequest) Descriptor deprecated

func (*QueryLatestSpanRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryLatestSpanRequest.ProtoReflect.Descriptor instead.

func (*QueryLatestSpanRequest) ProtoMessage

func (*QueryLatestSpanRequest) ProtoMessage()

func (*QueryLatestSpanRequest) ProtoReflect

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

func (*QueryLatestSpanRequest) Reset

func (x *QueryLatestSpanRequest) Reset()

func (*QueryLatestSpanRequest) String

func (x *QueryLatestSpanRequest) String() string

type QueryLatestSpanResponse

type QueryLatestSpanResponse struct {

	// The most recently created span.
	Span *Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span,omitempty"`
	// contains filtered or unexported fields
}

QueryLatestSpanResponse is the response type for the GetLatestSpan query.

func (*QueryLatestSpanResponse) Descriptor deprecated

func (*QueryLatestSpanResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryLatestSpanResponse.ProtoReflect.Descriptor instead.

func (*QueryLatestSpanResponse) GetSpan

func (x *QueryLatestSpanResponse) GetSpan() *Span

func (*QueryLatestSpanResponse) ProtoMessage

func (*QueryLatestSpanResponse) ProtoMessage()

func (*QueryLatestSpanResponse) ProtoReflect

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

func (*QueryLatestSpanResponse) Reset

func (x *QueryLatestSpanResponse) Reset()

func (*QueryLatestSpanResponse) String

func (x *QueryLatestSpanResponse) String() string

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"`
	// contains filtered or unexported fields
}

QueryNextSpanRequest is the request type for the GetNextSpan query.

func (*QueryNextSpanRequest) Descriptor deprecated

func (*QueryNextSpanRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryNextSpanRequest.ProtoReflect.Descriptor instead.

func (*QueryNextSpanRequest) GetBorChainId

func (x *QueryNextSpanRequest) GetBorChainId() string

func (*QueryNextSpanRequest) GetSpanId

func (x *QueryNextSpanRequest) GetSpanId() uint64

func (*QueryNextSpanRequest) GetStartBlock

func (x *QueryNextSpanRequest) GetStartBlock() uint64

func (*QueryNextSpanRequest) ProtoMessage

func (*QueryNextSpanRequest) ProtoMessage()

func (*QueryNextSpanRequest) ProtoReflect

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

func (*QueryNextSpanRequest) Reset

func (x *QueryNextSpanRequest) Reset()

func (*QueryNextSpanRequest) String

func (x *QueryNextSpanRequest) String() string

type QueryNextSpanResponse

type QueryNextSpanResponse struct {

	// The prepared next span with selected producers.
	Span *Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span,omitempty"`
	// contains filtered or unexported fields
}

QueryNextSpanResponse is the response type for the GetNextSpan query.

func (*QueryNextSpanResponse) Descriptor deprecated

func (*QueryNextSpanResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryNextSpanResponse.ProtoReflect.Descriptor instead.

func (*QueryNextSpanResponse) GetSpan

func (x *QueryNextSpanResponse) GetSpan() *Span

func (*QueryNextSpanResponse) ProtoMessage

func (*QueryNextSpanResponse) ProtoMessage()

func (*QueryNextSpanResponse) ProtoReflect

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

func (*QueryNextSpanResponse) Reset

func (x *QueryNextSpanResponse) Reset()

func (*QueryNextSpanResponse) String

func (x *QueryNextSpanResponse) String() string

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"`
	// contains filtered or unexported fields
}

QueryNextSpanSeedRequest is the request type for the GetNextSpanSeed query.

func (*QueryNextSpanSeedRequest) Descriptor deprecated

func (*QueryNextSpanSeedRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryNextSpanSeedRequest.ProtoReflect.Descriptor instead.

func (*QueryNextSpanSeedRequest) GetId

func (x *QueryNextSpanSeedRequest) GetId() uint64

func (*QueryNextSpanSeedRequest) ProtoMessage

func (*QueryNextSpanSeedRequest) ProtoMessage()

func (*QueryNextSpanSeedRequest) ProtoReflect

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

func (*QueryNextSpanSeedRequest) Reset

func (x *QueryNextSpanSeedRequest) Reset()

func (*QueryNextSpanSeedRequest) String

func (x *QueryNextSpanSeedRequest) String() string

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"`
	// contains filtered or unexported fields
}

QueryNextSpanSeedResponse is the response type for the GetNextSpanSeed query.

func (*QueryNextSpanSeedResponse) Descriptor deprecated

func (*QueryNextSpanSeedResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryNextSpanSeedResponse.ProtoReflect.Descriptor instead.

func (*QueryNextSpanSeedResponse) GetSeed

func (x *QueryNextSpanSeedResponse) GetSeed() string

func (*QueryNextSpanSeedResponse) GetSeedAuthor

func (x *QueryNextSpanSeedResponse) GetSeedAuthor() string

func (*QueryNextSpanSeedResponse) ProtoMessage

func (*QueryNextSpanSeedResponse) ProtoMessage()

func (*QueryNextSpanSeedResponse) ProtoReflect

func (*QueryNextSpanSeedResponse) Reset

func (x *QueryNextSpanSeedResponse) Reset()

func (*QueryNextSpanSeedResponse) String

func (x *QueryNextSpanSeedResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

QueryParamsRequest is the request type for the GetBorParams query.

func (*QueryParamsRequest) Descriptor deprecated

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

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

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// Current parameters of the bor module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is the response type for the GetBorParams query.

func (*QueryParamsResponse) Descriptor deprecated

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

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

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

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"`
	// contains filtered or unexported fields
}

QueryProducerPlannedDowntimeRequest is the request type for the GetProducerPlannedDowntime query.

func (*QueryProducerPlannedDowntimeRequest) Descriptor deprecated added in v0.5.2

func (*QueryProducerPlannedDowntimeRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryProducerPlannedDowntimeRequest.ProtoReflect.Descriptor instead.

func (*QueryProducerPlannedDowntimeRequest) GetProducerId added in v0.5.2

func (x *QueryProducerPlannedDowntimeRequest) GetProducerId() uint64

func (*QueryProducerPlannedDowntimeRequest) ProtoMessage added in v0.5.2

func (*QueryProducerPlannedDowntimeRequest) ProtoMessage()

func (*QueryProducerPlannedDowntimeRequest) ProtoReflect added in v0.5.2

func (*QueryProducerPlannedDowntimeRequest) Reset added in v0.5.2

func (*QueryProducerPlannedDowntimeRequest) String added in v0.5.2

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,omitempty"`
	// contains filtered or unexported fields
}

QueryProducerPlannedDowntimeResponse is the response type for the GetProducerPlannedDowntime query.

func (*QueryProducerPlannedDowntimeResponse) Descriptor deprecated added in v0.5.2

func (*QueryProducerPlannedDowntimeResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryProducerPlannedDowntimeResponse.ProtoReflect.Descriptor instead.

func (*QueryProducerPlannedDowntimeResponse) GetDowntimeRange added in v0.5.2

func (x *QueryProducerPlannedDowntimeResponse) GetDowntimeRange() *BlockRange

func (*QueryProducerPlannedDowntimeResponse) ProtoMessage added in v0.5.2

func (*QueryProducerPlannedDowntimeResponse) ProtoMessage()

func (*QueryProducerPlannedDowntimeResponse) ProtoReflect added in v0.5.2

func (*QueryProducerPlannedDowntimeResponse) Reset added in v0.5.2

func (*QueryProducerPlannedDowntimeResponse) String added in v0.5.2

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"`
	// contains filtered or unexported fields
}

QueryProducerVotesByValidatorIdRequest is the request type for the GetProducerVotesByValidatorId query.

func (*QueryProducerVotesByValidatorIdRequest) Descriptor deprecated added in v0.1.33

func (*QueryProducerVotesByValidatorIdRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryProducerVotesByValidatorIdRequest.ProtoReflect.Descriptor instead.

func (*QueryProducerVotesByValidatorIdRequest) GetValidatorId added in v0.1.33

func (x *QueryProducerVotesByValidatorIdRequest) GetValidatorId() uint64

func (*QueryProducerVotesByValidatorIdRequest) ProtoMessage added in v0.1.33

func (*QueryProducerVotesByValidatorIdRequest) ProtoReflect added in v0.1.33

func (*QueryProducerVotesByValidatorIdRequest) Reset added in v0.1.33

func (*QueryProducerVotesByValidatorIdRequest) String added in v0.1.33

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"`
	// contains filtered or unexported fields
}

QueryProducerVotesByValidatorIdResponse is the response type for the GetProducerVotesByValidatorId query.

func (*QueryProducerVotesByValidatorIdResponse) Descriptor deprecated added in v0.1.33

func (*QueryProducerVotesByValidatorIdResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryProducerVotesByValidatorIdResponse.ProtoReflect.Descriptor instead.

func (*QueryProducerVotesByValidatorIdResponse) GetVotes added in v0.1.33

func (*QueryProducerVotesByValidatorIdResponse) ProtoMessage added in v0.1.33

func (*QueryProducerVotesByValidatorIdResponse) ProtoReflect added in v0.1.33

func (*QueryProducerVotesByValidatorIdResponse) Reset added in v0.1.33

func (*QueryProducerVotesByValidatorIdResponse) String added in v0.1.33

type QueryProducerVotesRequest added in v0.1.33

type QueryProducerVotesRequest struct {
	// contains filtered or unexported fields
}

QueryProducerVotesRequest is the request type for the GetProducerVotes query.

func (*QueryProducerVotesRequest) Descriptor deprecated added in v0.1.33

func (*QueryProducerVotesRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryProducerVotesRequest.ProtoReflect.Descriptor instead.

func (*QueryProducerVotesRequest) ProtoMessage added in v0.1.33

func (*QueryProducerVotesRequest) ProtoMessage()

func (*QueryProducerVotesRequest) ProtoReflect added in v0.1.33

func (*QueryProducerVotesRequest) Reset added in v0.1.33

func (x *QueryProducerVotesRequest) Reset()

func (*QueryProducerVotesRequest) String added in v0.1.33

func (x *QueryProducerVotesRequest) String() string

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 `` /* 174-byte string literal not displayed */
	// contains filtered or unexported fields
}

QueryProducerVotesResponse is the response type for the GetProducerVotes query.

func (*QueryProducerVotesResponse) Descriptor deprecated added in v0.1.33

func (*QueryProducerVotesResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryProducerVotesResponse.ProtoReflect.Descriptor instead.

func (*QueryProducerVotesResponse) GetAllVotes added in v0.1.33

func (x *QueryProducerVotesResponse) GetAllVotes() map[uint64]*ProducerVotes

func (*QueryProducerVotesResponse) ProtoMessage added in v0.1.33

func (*QueryProducerVotesResponse) ProtoMessage()

func (*QueryProducerVotesResponse) ProtoReflect added in v0.1.33

func (*QueryProducerVotesResponse) Reset added in v0.1.33

func (x *QueryProducerVotesResponse) Reset()

func (*QueryProducerVotesResponse) String added in v0.1.33

func (x *QueryProducerVotesResponse) String() string

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)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QuerySpanByIdRequest

type QuerySpanByIdRequest struct {

	// ID of the span to retrieve.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

QuerySpanByIdRequest is the request type for the GetSpanById query.

func (*QuerySpanByIdRequest) Descriptor deprecated

func (*QuerySpanByIdRequest) Descriptor() ([]byte, []int)

Deprecated: Use QuerySpanByIdRequest.ProtoReflect.Descriptor instead.

func (*QuerySpanByIdRequest) GetId

func (x *QuerySpanByIdRequest) GetId() string

func (*QuerySpanByIdRequest) ProtoMessage

func (*QuerySpanByIdRequest) ProtoMessage()

func (*QuerySpanByIdRequest) ProtoReflect

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

func (*QuerySpanByIdRequest) Reset

func (x *QuerySpanByIdRequest) Reset()

func (*QuerySpanByIdRequest) String

func (x *QuerySpanByIdRequest) String() string

type QuerySpanByIdResponse

type QuerySpanByIdResponse struct {

	// The requested span.
	Span *Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span,omitempty"`
	// contains filtered or unexported fields
}

QuerySpanByIdResponse is the response type for the GetSpanById query.

func (*QuerySpanByIdResponse) Descriptor deprecated

func (*QuerySpanByIdResponse) Descriptor() ([]byte, []int)

Deprecated: Use QuerySpanByIdResponse.ProtoReflect.Descriptor instead.

func (*QuerySpanByIdResponse) GetSpan

func (x *QuerySpanByIdResponse) GetSpan() *Span

func (*QuerySpanByIdResponse) ProtoMessage

func (*QuerySpanByIdResponse) ProtoMessage()

func (*QuerySpanByIdResponse) ProtoReflect

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

func (*QuerySpanByIdResponse) Reset

func (x *QuerySpanByIdResponse) Reset()

func (*QuerySpanByIdResponse) String

func (x *QuerySpanByIdResponse) String() string

type QuerySpanListRequest

type QuerySpanListRequest struct {

	// Pagination parameters for the query.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QuerySpanListRequest is the request type for the GetSpanList query.

func (*QuerySpanListRequest) Descriptor deprecated

func (*QuerySpanListRequest) Descriptor() ([]byte, []int)

Deprecated: Use QuerySpanListRequest.ProtoReflect.Descriptor instead.

func (*QuerySpanListRequest) GetPagination

func (x *QuerySpanListRequest) GetPagination() *v1beta1.PageRequest

func (*QuerySpanListRequest) ProtoMessage

func (*QuerySpanListRequest) ProtoMessage()

func (*QuerySpanListRequest) ProtoReflect

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

func (*QuerySpanListRequest) Reset

func (x *QuerySpanListRequest) Reset()

func (*QuerySpanListRequest) String

func (x *QuerySpanListRequest) String() string

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,omitempty"`
	// Pagination response with next page token.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QuerySpanListResponse is the response type for the GetSpanList query.

func (*QuerySpanListResponse) Descriptor deprecated

func (*QuerySpanListResponse) Descriptor() ([]byte, []int)

Deprecated: Use QuerySpanListResponse.ProtoReflect.Descriptor instead.

func (*QuerySpanListResponse) GetPagination

func (x *QuerySpanListResponse) GetPagination() *v1beta1.PageResponse

func (*QuerySpanListResponse) GetSpanList

func (x *QuerySpanListResponse) GetSpanList() []*Span

func (*QuerySpanListResponse) ProtoMessage

func (*QuerySpanListResponse) ProtoMessage()

func (*QuerySpanListResponse) ProtoReflect

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

func (*QuerySpanListResponse) Reset

func (x *QuerySpanListResponse) Reset()

func (*QuerySpanListResponse) String

func (x *QuerySpanListResponse) String() string

type QueryValidatorPerformanceScoreRequest added in v0.4.3

type QueryValidatorPerformanceScoreRequest struct {
	// contains filtered or unexported fields
}

QueryValidatorPerformanceScoreRequest is the request type for the GetValidatorPerformanceScore query.

func (*QueryValidatorPerformanceScoreRequest) Descriptor deprecated added in v0.4.3

func (*QueryValidatorPerformanceScoreRequest) Descriptor() ([]byte, []int)

Deprecated: Use QueryValidatorPerformanceScoreRequest.ProtoReflect.Descriptor instead.

func (*QueryValidatorPerformanceScoreRequest) ProtoMessage added in v0.4.3

func (*QueryValidatorPerformanceScoreRequest) ProtoMessage()

func (*QueryValidatorPerformanceScoreRequest) ProtoReflect added in v0.4.3

func (*QueryValidatorPerformanceScoreRequest) Reset added in v0.4.3

func (*QueryValidatorPerformanceScoreRequest) String added in v0.4.3

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 `` /* 228-byte string literal not displayed */
	// contains filtered or unexported fields
}

QueryValidatorPerformanceScoreResponse is the response type for the GetValidatorPerformanceScore query.

func (*QueryValidatorPerformanceScoreResponse) Descriptor deprecated added in v0.4.3

func (*QueryValidatorPerformanceScoreResponse) Descriptor() ([]byte, []int)

Deprecated: Use QueryValidatorPerformanceScoreResponse.ProtoReflect.Descriptor instead.

func (*QueryValidatorPerformanceScoreResponse) GetValidatorPerformanceScore added in v0.4.3

func (x *QueryValidatorPerformanceScoreResponse) GetValidatorPerformanceScore() map[uint64]uint64

func (*QueryValidatorPerformanceScoreResponse) ProtoMessage added in v0.4.3

func (*QueryValidatorPerformanceScoreResponse) ProtoReflect added in v0.4.3

func (*QueryValidatorPerformanceScoreResponse) Reset added in v0.4.3

func (*QueryValidatorPerformanceScoreResponse) String added in v0.4.3

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 *stake.ValidatorSet `protobuf:"bytes,4,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set,omitempty"`
	// Subset of validators selected to produce blocks during this span.
	// The number of producers is determined by the producer_count parameter.
	SelectedProducers []*stake.Validator `protobuf:"bytes,5,rep,name=selected_producers,json=selectedProducers,proto3" json:"selected_producers,omitempty"`
	// 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"`
	// contains filtered or unexported fields
}

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 (*Span) Descriptor deprecated

func (*Span) Descriptor() ([]byte, []int)

Deprecated: Use Span.ProtoReflect.Descriptor instead.

func (*Span) GetBorChainId

func (x *Span) GetBorChainId() string

func (*Span) GetEndBlock

func (x *Span) GetEndBlock() uint64

func (*Span) GetId

func (x *Span) GetId() uint64

func (*Span) GetSelectedProducers

func (x *Span) GetSelectedProducers() []*stake.Validator

func (*Span) GetStartBlock

func (x *Span) GetStartBlock() uint64

func (*Span) GetValidatorSet

func (x *Span) GetValidatorSet() *stake.ValidatorSet

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) ProtoReflect

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

func (*Span) Reset

func (x *Span) Reset()

func (*Span) String

func (x *Span) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) BackfillSpans added in v0.1.28

func (UnimplementedMsgServer) ProposeSpan

func (UnimplementedMsgServer) SetProducerDowntime added in v0.5.2

func (UnimplementedMsgServer) UpdateParams

func (UnimplementedMsgServer) VoteProducers added in v0.1.33

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) GetBorParams

func (UnimplementedQueryServer) GetLatestSpan

func (UnimplementedQueryServer) GetNextSpan

func (UnimplementedQueryServer) GetProducerPlannedDowntime added in v0.5.2

func (UnimplementedQueryServer) GetProducerVotes added in v0.1.33

func (UnimplementedQueryServer) GetProducerVotesByValidatorId added in v0.1.33

func (UnimplementedQueryServer) GetSpanById

func (UnimplementedQueryServer) GetSpanList

func (UnimplementedQueryServer) GetValidatorPerformanceScore added in v0.4.3

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Jump to

Keyboard shortcuts

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