types

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeProposeSpan = "propose-span"

	AttributeKeySpanID         = "span-id"
	AttributeKeySpanStartBlock = "start-block"
	AttributeKeySpanEndBlock   = "end-block"

	AttributeValueCategory = ModuleName
)

bor module event types

View Source
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
)
View Source
const (
	DefaultSprintDuration    uint64 = 16
	DefaultSpanDuration             = 100 * DefaultSprintDuration
	DefaultFirstSpanDuration uint64 = 256
	DefaultProducerCount     uint64 = 4
)

Default parameter values

Variables

View Source
var (
	ErrInvalidLengthBor        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBor          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBor = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidChainID    = errors.New("invalid bor chain id")
	ErrInvalidSpan       = errors.New("invalid span")
	ErrInvalidSeedLength = errors.New("invalid seed length")
	ErrFailedToQueryBor  = errors.New("failed to query bor")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
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
)

Keys for store prefixes

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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 raw application genesis state.

func SortSpansById

func SortSpansById(a []Span)

SortSpansById sorts spans by SpanID

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 ChainManagerKeeper

type ChainManagerKeeper interface {
	GetParams(ctx context.Context) (chainmanagertypes.Params, error)
}

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	Spans  []Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans"`
}

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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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 MsgClient

type MsgClient interface {
	// ProposeSpan defines a method for proposing a bor span.
	ProposeSpan(ctx context.Context, in *MsgProposeSpan, opts ...grpc.CallOption) (*MsgProposeSpanResponse, error)
	// UpdateParams defines a method to update the bor params.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 {
	SpanId     uint64 `protobuf:"varint,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
	Proposer   string `protobuf:"bytes,2,opt,name=proposer,proto3" json:"proposer,omitempty"`
	StartBlock uint64 `protobuf:"varint,3,opt,name=start_block,json=startBlock,proto3" json:"start_block,omitempty"`
	EndBlock   uint64 `protobuf:"varint,4,opt,name=end_block,json=endBlock,proto3" json:"end_block,omitempty"`
	ChainId    string `protobuf:"bytes,5,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Seed       []byte `protobuf:"bytes,6,opt,name=seed,proto3" json:"seed,omitempty"`
	SeedAuthor string `protobuf:"bytes,7,opt,name=seed_author,json=seedAuthor,proto3" json:"seed_author,omitempty"`
}

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) MarshalTo

func (m *MsgProposeSpan) MarshalTo(dAtA []byte) (int, 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) 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 {
}

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 bor span.
	ProposeSpan(context.Context, *MsgProposeSpan) (*MsgProposeSpanResponse, error)
	// UpdateParams defines a method to update the bor params.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams

type MsgUpdateParams struct {
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Params    Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

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) MarshalTo

func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, 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 {
}

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 Params

type Params struct {
	SprintDuration uint64 `protobuf:"varint,1,opt,name=sprint_duration,json=sprintDuration,proto3" json:"sprint_duration,omitempty"`
	SpanDuration   uint64 `protobuf:"varint,2,opt,name=span_duration,json=spanDuration,proto3" json:"span_duration,omitempty"`
	ProducerCount  uint64 `protobuf:"varint,3,opt,name=producer_count,json=producerCount,proto3" json:"producer_count,omitempty"`
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns default parameters for bor module

func (*Params) Descriptor

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

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) GetProducerCount

func (m *Params) GetProducerCount() uint64

func (*Params) GetSpanDuration

func (m *Params) GetSpanDuration() uint64

func (*Params) GetSprintDuration

func (m *Params) GetSprintDuration() uint64

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate checks that the bor parameters have valid values.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// GetSpanList queries a 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 next span seed given a
	// QueryNextSpanSeedRequest.
	GetNextSpanSeed(ctx context.Context, in *QueryNextSpanSeedRequest, opts ...grpc.CallOption) (*QueryNextSpanSeedResponse, error)
	// GetNextSpan queries the next span given a QueryNextSpanRequest.
	GetNextSpan(ctx context.Context, in *QueryNextSpanRequest, opts ...grpc.CallOption) (*QueryNextSpanResponse, error)
	// GetSpanById retrieves a 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)
}

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 {
}

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 {
	Span Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span"`
}

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 {
	SpanId     uint64 `protobuf:"varint,1,opt,name=span_id,json=spanId,proto3" json:"span_id,omitempty"`
	StartBlock uint64 `protobuf:"varint,2,opt,name=start_block,json=startBlock,proto3" json:"start_block,omitempty"`
	BorChainId string `protobuf:"bytes,3,opt,name=bor_chain_id,json=borChainId,proto3" json:"bor_chain_id,omitempty"`
}

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 {
	Span Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span"`
}

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 uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

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       string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty"`
	SeedAuthor string `protobuf:"bytes,2,opt,name=seed_author,json=seedAuthor,proto3" json:"seed_author,omitempty"`
}

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 {
}

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)

func (*QueryParamsRequest) MarshalTo

func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryParamsRequest) MarshalToSizedBuffer

func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

func (m *QueryParamsRequest) Size() (n int)

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryParamsRequest) XXX_Merge

func (m *QueryParamsRequest) XXX_Merge(src proto.Message)

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error

type QueryParamsResponse

type QueryParamsResponse struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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 QueryServer

type QueryServer interface {
	// GetSpanList queries a list of spans.
	GetSpanList(context.Context, *QuerySpanListRequest) (*QuerySpanListResponse, error)
	// GetLatestSpan queries the latest span.
	GetLatestSpan(context.Context, *QueryLatestSpanRequest) (*QueryLatestSpanResponse, error)
	// GetNextSpanSeed queries the next span seed given a
	// QueryNextSpanSeedRequest.
	GetNextSpanSeed(context.Context, *QueryNextSpanSeedRequest) (*QueryNextSpanSeedResponse, error)
	// GetNextSpan queries the next span given a QueryNextSpanRequest.
	GetNextSpan(context.Context, *QueryNextSpanRequest) (*QueryNextSpanResponse, error)
	// GetSpanById retrieves a span by its id.
	GetSpanById(context.Context, *QuerySpanByIdRequest) (*QuerySpanByIdResponse, error)
	// GetBorParams queries the parameters of x/bor module.
	GetBorParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type QuerySpanByIdRequest

type QuerySpanByIdRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

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 {
	Span *Span `protobuf:"bytes,1,opt,name=span,proto3" json:"span,omitempty"`
}

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 query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination"`
}

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 {
	SpanList   []Span             `protobuf:"bytes,1,rep,name=span_list,json=spanList,proto3" json:"span_list"`
	Pagination query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"`
}

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 Span

type Span struct {
	Id                uint64             `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	StartBlock        uint64             `protobuf:"varint,2,opt,name=start_block,json=startBlock,proto3" json:"start_block,omitempty"`
	EndBlock          uint64             `protobuf:"varint,3,opt,name=end_block,json=endBlock,proto3" json:"end_block,omitempty"`
	ValidatorSet      types.ValidatorSet `protobuf:"bytes,4,opt,name=validator_set,json=validatorSet,proto3" json:"validator_set"`
	SelectedProducers []types.Validator  `protobuf:"bytes,5,rep,name=selected_producers,json=selectedProducers,proto3" json:"selected_producers"`
	BorChainId        string             `protobuf:"bytes,6,opt,name=bor_chain_id,json=borChainId,proto3" json:"bor_chain_id,omitempty"`
}

func (*Span) Descriptor

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

func (*Span) GetBorChainId

func (m *Span) GetBorChainId() string

func (*Span) GetEndBlock

func (m *Span) GetEndBlock() uint64

func (*Span) GetId

func (m *Span) GetId() uint64

func (*Span) GetSelectedProducers

func (m *Span) GetSelectedProducers() []types.Validator

func (*Span) GetStartBlock

func (m *Span) GetStartBlock() uint64

func (*Span) GetValidatorSet

func (m *Span) GetValidatorSet() types.ValidatorSet

func (*Span) Marshal

func (m *Span) Marshal() (dAtA []byte, err error)

func (*Span) MarshalTo

func (m *Span) MarshalTo(dAtA []byte) (int, error)

func (*Span) MarshalToSizedBuffer

func (m *Span) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Span) ProtoMessage

func (*Span) ProtoMessage()

func (*Span) Reset

func (m *Span) Reset()

func (*Span) Size

func (m *Span) Size() (n int)

func (*Span) String

func (m *Span) String() string

func (*Span) Unmarshal

func (m *Span) Unmarshal(dAtA []byte) error

func (*Span) XXX_DiscardUnknown

func (m *Span) XXX_DiscardUnknown()

func (*Span) XXX_Marshal

func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Span) XXX_Merge

func (m *Span) XXX_Merge(src proto.Message)

func (*Span) XXX_Size

func (m *Span) XXX_Size() int

func (*Span) XXX_Unmarshal

func (m *Span) XXX_Unmarshal(b []byte) error

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)
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) ProposeSpan

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) GetBorParams

func (*UnimplementedQueryServer) GetLatestSpan

func (*UnimplementedQueryServer) GetNextSpan

func (*UnimplementedQueryServer) GetNextSpanSeed

func (*UnimplementedQueryServer) GetSpanById

func (*UnimplementedQueryServer) GetSpanList

Jump to

Keyboard shortcuts

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