Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func NewMilestoneEvent(milestone Milestone, milestoneNumber uint64) sdk.Event
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) ValidateGenesis() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Milestone
- func (*Milestone) Descriptor() ([]byte, []int)
- func (this *Milestone) Equal(that interface{}) bool
- func (m *Milestone) GetBorChainId() string
- func (m *Milestone) GetEndBlock() uint64
- func (m *Milestone) GetHash() []byte
- func (m *Milestone) GetMilestoneId() string
- func (m *Milestone) GetProposer() string
- func (m *Milestone) GetStartBlock() uint64
- func (m *Milestone) GetTimestamp() uint64
- func (m *Milestone) Marshal() (dAtA []byte, err error)
- func (m *Milestone) MarshalTo(dAtA []byte) (int, error)
- func (m *Milestone) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Milestone) ProtoMessage()
- func (m *Milestone) Reset()
- func (m *Milestone) Size() (n int)
- func (m *Milestone) String() string
- func (m *Milestone) Unmarshal(dAtA []byte) error
- func (m *Milestone) XXX_DiscardUnknown()
- func (m *Milestone) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Milestone) XXX_Merge(src proto.Message)
- func (m *Milestone) XXX_Size() int
- func (m *Milestone) XXX_Unmarshal(b []byte) error
- type MilestoneCount
- func (*MilestoneCount) Descriptor() ([]byte, []int)
- func (this *MilestoneCount) Equal(that interface{}) bool
- func (m *MilestoneCount) GetCount() uint64
- func (m *MilestoneCount) Marshal() (dAtA []byte, err error)
- func (m *MilestoneCount) MarshalTo(dAtA []byte) (int, error)
- func (m *MilestoneCount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MilestoneCount) ProtoMessage()
- func (m *MilestoneCount) Reset()
- func (m *MilestoneCount) Size() (n int)
- func (m *MilestoneCount) String() string
- func (m *MilestoneCount) Unmarshal(dAtA []byte) error
- func (m *MilestoneCount) XXX_DiscardUnknown()
- func (m *MilestoneCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MilestoneCount) XXX_Merge(src proto.Message)
- func (m *MilestoneCount) XXX_Size() int
- func (m *MilestoneCount) XXX_Unmarshal(b []byte) error
- type MilestoneProposition
- func (*MilestoneProposition) Descriptor() ([]byte, []int)
- func (this *MilestoneProposition) Equal(that interface{}) bool
- func (m *MilestoneProposition) GetBlockHashes() [][]byte
- func (m *MilestoneProposition) GetStartBlockNumber() uint64
- func (m *MilestoneProposition) Marshal() (dAtA []byte, err error)
- func (m *MilestoneProposition) MarshalTo(dAtA []byte) (int, error)
- func (m *MilestoneProposition) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MilestoneProposition) ProtoMessage()
- func (m *MilestoneProposition) Reset()
- func (m *MilestoneProposition) Size() (n int)
- func (m *MilestoneProposition) String() string
- func (m *MilestoneProposition) Unmarshal(dAtA []byte) error
- func (m *MilestoneProposition) XXX_DiscardUnknown()
- func (m *MilestoneProposition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MilestoneProposition) XXX_Merge(src proto.Message)
- func (m *MilestoneProposition) XXX_Size() int
- func (m *MilestoneProposition) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetMaxMilestonePropositionLength() uint64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryCountRequest
- func (*QueryCountRequest) Descriptor() ([]byte, []int)
- func (m *QueryCountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCountRequest) ProtoMessage()
- func (m *QueryCountRequest) Reset()
- func (m *QueryCountRequest) Size() (n int)
- func (m *QueryCountRequest) String() string
- func (m *QueryCountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCountRequest) XXX_DiscardUnknown()
- func (m *QueryCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCountRequest) XXX_Merge(src proto.Message)
- func (m *QueryCountRequest) XXX_Size() int
- func (m *QueryCountRequest) XXX_Unmarshal(b []byte) error
- type QueryCountResponse
- func (*QueryCountResponse) Descriptor() ([]byte, []int)
- func (m *QueryCountResponse) GetCount() uint64
- func (m *QueryCountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCountResponse) ProtoMessage()
- func (m *QueryCountResponse) Reset()
- func (m *QueryCountResponse) Size() (n int)
- func (m *QueryCountResponse) String() string
- func (m *QueryCountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCountResponse) XXX_DiscardUnknown()
- func (m *QueryCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCountResponse) XXX_Merge(src proto.Message)
- func (m *QueryCountResponse) XXX_Size() int
- func (m *QueryCountResponse) XXX_Unmarshal(b []byte) error
- type QueryLatestMilestoneRequest
- func (*QueryLatestMilestoneRequest) Descriptor() ([]byte, []int)
- func (m *QueryLatestMilestoneRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryLatestMilestoneRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLatestMilestoneRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLatestMilestoneRequest) ProtoMessage()
- func (m *QueryLatestMilestoneRequest) Reset()
- func (m *QueryLatestMilestoneRequest) Size() (n int)
- func (m *QueryLatestMilestoneRequest) String() string
- func (m *QueryLatestMilestoneRequest) Unmarshal(dAtA []byte) error
- func (m *QueryLatestMilestoneRequest) XXX_DiscardUnknown()
- func (m *QueryLatestMilestoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLatestMilestoneRequest) XXX_Merge(src proto.Message)
- func (m *QueryLatestMilestoneRequest) XXX_Size() int
- func (m *QueryLatestMilestoneRequest) XXX_Unmarshal(b []byte) error
- type QueryLatestMilestoneResponse
- func (*QueryLatestMilestoneResponse) Descriptor() ([]byte, []int)
- func (m *QueryLatestMilestoneResponse) GetMilestone() Milestone
- func (m *QueryLatestMilestoneResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryLatestMilestoneResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLatestMilestoneResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLatestMilestoneResponse) ProtoMessage()
- func (m *QueryLatestMilestoneResponse) Reset()
- func (m *QueryLatestMilestoneResponse) Size() (n int)
- func (m *QueryLatestMilestoneResponse) String() string
- func (m *QueryLatestMilestoneResponse) Unmarshal(dAtA []byte) error
- func (m *QueryLatestMilestoneResponse) XXX_DiscardUnknown()
- func (m *QueryLatestMilestoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLatestMilestoneResponse) XXX_Merge(src proto.Message)
- func (m *QueryLatestMilestoneResponse) XXX_Size() int
- func (m *QueryLatestMilestoneResponse) XXX_Unmarshal(b []byte) error
- type QueryMilestoneRequest
- func (*QueryMilestoneRequest) Descriptor() ([]byte, []int)
- func (m *QueryMilestoneRequest) GetNumber() uint64
- func (m *QueryMilestoneRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryMilestoneRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMilestoneRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMilestoneRequest) ProtoMessage()
- func (m *QueryMilestoneRequest) Reset()
- func (m *QueryMilestoneRequest) Size() (n int)
- func (m *QueryMilestoneRequest) String() string
- func (m *QueryMilestoneRequest) Unmarshal(dAtA []byte) error
- func (m *QueryMilestoneRequest) XXX_DiscardUnknown()
- func (m *QueryMilestoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMilestoneRequest) XXX_Merge(src proto.Message)
- func (m *QueryMilestoneRequest) XXX_Size() int
- func (m *QueryMilestoneRequest) XXX_Unmarshal(b []byte) error
- type QueryMilestoneResponse
- func (*QueryMilestoneResponse) Descriptor() ([]byte, []int)
- func (m *QueryMilestoneResponse) GetMilestone() Milestone
- func (m *QueryMilestoneResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryMilestoneResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryMilestoneResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryMilestoneResponse) ProtoMessage()
- func (m *QueryMilestoneResponse) Reset()
- func (m *QueryMilestoneResponse) Size() (n int)
- func (m *QueryMilestoneResponse) String() string
- func (m *QueryMilestoneResponse) Unmarshal(dAtA []byte) error
- func (m *QueryMilestoneResponse) XXX_DiscardUnknown()
- func (m *QueryMilestoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryMilestoneResponse) XXX_Merge(src proto.Message)
- func (m *QueryMilestoneResponse) XXX_Size() int
- func (m *QueryMilestoneResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) GetLatestMilestone(ctx context.Context, req *QueryLatestMilestoneRequest) (*QueryLatestMilestoneResponse, error)
- func (*UnimplementedQueryServer) GetMilestoneByNumber(ctx context.Context, req *QueryMilestoneRequest) (*QueryMilestoneResponse, error)
- func (*UnimplementedQueryServer) GetMilestoneCount(ctx context.Context, req *QueryCountRequest) (*QueryCountResponse, error)
- func (*UnimplementedQueryServer) GetMilestoneParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( // ModuleName is the name of the milestone module ModuleName = "milestone" // StoreKey is the string store representation StoreKey = ModuleName // RouterKey is the msg router key for the milestone module RouterKey = ModuleName )
Variables ¶
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ParamsPrefixKey = collections.NewPrefix([]byte{0x80}) MilestoneMapPrefixKey = collections.NewPrefix([]byte{0x81}) CountPrefixKey = collections.NewPrefix([]byte{0x83}) BlockNumberPrefixKey = collections.NewPrefix([]byte{0x84}) )
var ( ErrInvalidLengthMilestone = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMilestone = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMilestone = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ErrNoMilestoneFound = errors.Register(ModuleName, 3, "milestone not found")
var EventTypeMilestone = "milestone"
Functions ¶
func NewMilestoneEvent ¶ added in v0.1.5
NewMilestoneEvent construct a new sdk.Event for a new milestone added to the store
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the x/milestone interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/milestone interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState gets the raw genesis raw message for testing
func NewGenesisState ¶
func NewGenesisState(params Params) GenesisState
NewGenesisState creates a new genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) ValidateGenesis ¶
func (gs GenesisState) ValidateGenesis() error
ValidateGenesis validates the provided checkpoint data
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 Milestone ¶
type Milestone struct { Proposer string `protobuf:"bytes,1,opt,name=proposer,proto3" json:"proposer,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"` Hash []byte `protobuf:"bytes,4,opt,name=hash,proto3" json:"hash,omitempty"` BorChainId string `protobuf:"bytes,5,opt,name=bor_chain_id,json=borChainId,proto3" json:"bor_chain_id,omitempty"` MilestoneId string `protobuf:"bytes,6,opt,name=milestone_id,json=milestoneId,proto3" json:"milestone_id,omitempty"` Timestamp uint64 `protobuf:"varint,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"` }
func (*Milestone) Descriptor ¶
func (*Milestone) GetBorChainId ¶
func (*Milestone) GetEndBlock ¶
func (*Milestone) GetMilestoneId ¶
func (*Milestone) GetProposer ¶
func (*Milestone) GetStartBlock ¶
func (*Milestone) GetTimestamp ¶
func (*Milestone) MarshalToSizedBuffer ¶
func (*Milestone) ProtoMessage ¶
func (*Milestone) ProtoMessage()
func (*Milestone) XXX_DiscardUnknown ¶
func (m *Milestone) XXX_DiscardUnknown()
func (*Milestone) XXX_Marshal ¶
func (*Milestone) XXX_Unmarshal ¶
type MilestoneCount ¶
type MilestoneCount struct {
Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}
func (*MilestoneCount) Descriptor ¶
func (*MilestoneCount) Descriptor() ([]byte, []int)
func (*MilestoneCount) Equal ¶
func (this *MilestoneCount) Equal(that interface{}) bool
func (*MilestoneCount) GetCount ¶
func (m *MilestoneCount) GetCount() uint64
func (*MilestoneCount) Marshal ¶
func (m *MilestoneCount) Marshal() (dAtA []byte, err error)
func (*MilestoneCount) MarshalToSizedBuffer ¶
func (m *MilestoneCount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MilestoneCount) ProtoMessage ¶
func (*MilestoneCount) ProtoMessage()
func (*MilestoneCount) Reset ¶
func (m *MilestoneCount) Reset()
func (*MilestoneCount) Size ¶
func (m *MilestoneCount) Size() (n int)
func (*MilestoneCount) String ¶
func (m *MilestoneCount) String() string
func (*MilestoneCount) Unmarshal ¶
func (m *MilestoneCount) Unmarshal(dAtA []byte) error
func (*MilestoneCount) XXX_DiscardUnknown ¶
func (m *MilestoneCount) XXX_DiscardUnknown()
func (*MilestoneCount) XXX_Marshal ¶
func (m *MilestoneCount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MilestoneCount) XXX_Merge ¶
func (m *MilestoneCount) XXX_Merge(src proto.Message)
func (*MilestoneCount) XXX_Size ¶
func (m *MilestoneCount) XXX_Size() int
func (*MilestoneCount) XXX_Unmarshal ¶
func (m *MilestoneCount) XXX_Unmarshal(b []byte) error
type MilestoneProposition ¶ added in v0.1.5
type MilestoneProposition struct { BlockHashes [][]byte `protobuf:"bytes,1,rep,name=block_hashes,json=blockHashes,proto3" json:"block_hashes,omitempty"` StartBlockNumber uint64 `protobuf:"varint,2,opt,name=start_block_number,json=startBlockNumber,proto3" json:"start_block_number,omitempty"` }
func (*MilestoneProposition) Descriptor ¶ added in v0.1.5
func (*MilestoneProposition) Descriptor() ([]byte, []int)
func (*MilestoneProposition) Equal ¶ added in v0.1.5
func (this *MilestoneProposition) Equal(that interface{}) bool
func (*MilestoneProposition) GetBlockHashes ¶ added in v0.1.5
func (m *MilestoneProposition) GetBlockHashes() [][]byte
func (*MilestoneProposition) GetStartBlockNumber ¶ added in v0.1.5
func (m *MilestoneProposition) GetStartBlockNumber() uint64
func (*MilestoneProposition) Marshal ¶ added in v0.1.5
func (m *MilestoneProposition) Marshal() (dAtA []byte, err error)
func (*MilestoneProposition) MarshalTo ¶ added in v0.1.5
func (m *MilestoneProposition) MarshalTo(dAtA []byte) (int, error)
func (*MilestoneProposition) MarshalToSizedBuffer ¶ added in v0.1.5
func (m *MilestoneProposition) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MilestoneProposition) ProtoMessage ¶ added in v0.1.5
func (*MilestoneProposition) ProtoMessage()
func (*MilestoneProposition) Reset ¶ added in v0.1.5
func (m *MilestoneProposition) Reset()
func (*MilestoneProposition) Size ¶ added in v0.1.5
func (m *MilestoneProposition) Size() (n int)
func (*MilestoneProposition) String ¶ added in v0.1.5
func (m *MilestoneProposition) String() string
func (*MilestoneProposition) Unmarshal ¶ added in v0.1.5
func (m *MilestoneProposition) Unmarshal(dAtA []byte) error
func (*MilestoneProposition) XXX_DiscardUnknown ¶ added in v0.1.5
func (m *MilestoneProposition) XXX_DiscardUnknown()
func (*MilestoneProposition) XXX_Marshal ¶ added in v0.1.5
func (m *MilestoneProposition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MilestoneProposition) XXX_Merge ¶ added in v0.1.5
func (m *MilestoneProposition) XXX_Merge(src proto.Message)
func (*MilestoneProposition) XXX_Size ¶ added in v0.1.5
func (m *MilestoneProposition) XXX_Size() int
func (*MilestoneProposition) XXX_Unmarshal ¶ added in v0.1.5
func (m *MilestoneProposition) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // UpdateParams defines an operation for updating the x/milestone module // parameters. 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 MsgServer ¶
type MsgServer interface { // UpdateParams defines an operation for updating the x/milestone module // parameters. 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) 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 {
MaxMilestonePropositionLength uint64 `` /* 153-byte string literal not displayed */
}
func (*Params) Descriptor ¶
func (*Params) GetMaxMilestonePropositionLength ¶ added in v0.1.5
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (Params) Validate ¶
Validate checks that the milestone proposition's parameters have valid values.
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // GetMilestoneParams queries for the x/milestone parameters GetMilestoneParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // GetMilestoneCount queries for the milestone count GetMilestoneCount(ctx context.Context, in *QueryCountRequest, opts ...grpc.CallOption) (*QueryCountResponse, error) // GetLatestMilestone queries for the latest milestone GetLatestMilestone(ctx context.Context, in *QueryLatestMilestoneRequest, opts ...grpc.CallOption) (*QueryLatestMilestoneResponse, error) // GetMilestoneByNumber queries for the milestone based on the number GetMilestoneByNumber(ctx context.Context, in *QueryMilestoneRequest, opts ...grpc.CallOption) (*QueryMilestoneResponse, 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 QueryCountRequest ¶
type QueryCountRequest struct { }
func (*QueryCountRequest) Descriptor ¶
func (*QueryCountRequest) Descriptor() ([]byte, []int)
func (*QueryCountRequest) Marshal ¶
func (m *QueryCountRequest) Marshal() (dAtA []byte, err error)
func (*QueryCountRequest) MarshalTo ¶
func (m *QueryCountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCountRequest) MarshalToSizedBuffer ¶
func (m *QueryCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCountRequest) ProtoMessage ¶
func (*QueryCountRequest) ProtoMessage()
func (*QueryCountRequest) Reset ¶
func (m *QueryCountRequest) Reset()
func (*QueryCountRequest) Size ¶
func (m *QueryCountRequest) Size() (n int)
func (*QueryCountRequest) String ¶
func (m *QueryCountRequest) String() string
func (*QueryCountRequest) Unmarshal ¶
func (m *QueryCountRequest) Unmarshal(dAtA []byte) error
func (*QueryCountRequest) XXX_DiscardUnknown ¶
func (m *QueryCountRequest) XXX_DiscardUnknown()
func (*QueryCountRequest) XXX_Marshal ¶
func (m *QueryCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCountRequest) XXX_Merge ¶
func (m *QueryCountRequest) XXX_Merge(src proto.Message)
func (*QueryCountRequest) XXX_Size ¶
func (m *QueryCountRequest) XXX_Size() int
func (*QueryCountRequest) XXX_Unmarshal ¶
func (m *QueryCountRequest) XXX_Unmarshal(b []byte) error
type QueryCountResponse ¶
type QueryCountResponse struct {
Count uint64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}
func (*QueryCountResponse) Descriptor ¶
func (*QueryCountResponse) Descriptor() ([]byte, []int)
func (*QueryCountResponse) GetCount ¶
func (m *QueryCountResponse) GetCount() uint64
func (*QueryCountResponse) Marshal ¶
func (m *QueryCountResponse) Marshal() (dAtA []byte, err error)
func (*QueryCountResponse) MarshalTo ¶
func (m *QueryCountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCountResponse) MarshalToSizedBuffer ¶
func (m *QueryCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCountResponse) ProtoMessage ¶
func (*QueryCountResponse) ProtoMessage()
func (*QueryCountResponse) Reset ¶
func (m *QueryCountResponse) Reset()
func (*QueryCountResponse) Size ¶
func (m *QueryCountResponse) Size() (n int)
func (*QueryCountResponse) String ¶
func (m *QueryCountResponse) String() string
func (*QueryCountResponse) Unmarshal ¶
func (m *QueryCountResponse) Unmarshal(dAtA []byte) error
func (*QueryCountResponse) XXX_DiscardUnknown ¶
func (m *QueryCountResponse) XXX_DiscardUnknown()
func (*QueryCountResponse) XXX_Marshal ¶
func (m *QueryCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCountResponse) XXX_Merge ¶
func (m *QueryCountResponse) XXX_Merge(src proto.Message)
func (*QueryCountResponse) XXX_Size ¶
func (m *QueryCountResponse) XXX_Size() int
func (*QueryCountResponse) XXX_Unmarshal ¶
func (m *QueryCountResponse) XXX_Unmarshal(b []byte) error
type QueryLatestMilestoneRequest ¶
type QueryLatestMilestoneRequest struct { }
func (*QueryLatestMilestoneRequest) Descriptor ¶
func (*QueryLatestMilestoneRequest) Descriptor() ([]byte, []int)
func (*QueryLatestMilestoneRequest) Marshal ¶
func (m *QueryLatestMilestoneRequest) Marshal() (dAtA []byte, err error)
func (*QueryLatestMilestoneRequest) MarshalTo ¶
func (m *QueryLatestMilestoneRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryLatestMilestoneRequest) MarshalToSizedBuffer ¶
func (m *QueryLatestMilestoneRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLatestMilestoneRequest) ProtoMessage ¶
func (*QueryLatestMilestoneRequest) ProtoMessage()
func (*QueryLatestMilestoneRequest) Reset ¶
func (m *QueryLatestMilestoneRequest) Reset()
func (*QueryLatestMilestoneRequest) Size ¶
func (m *QueryLatestMilestoneRequest) Size() (n int)
func (*QueryLatestMilestoneRequest) String ¶
func (m *QueryLatestMilestoneRequest) String() string
func (*QueryLatestMilestoneRequest) Unmarshal ¶
func (m *QueryLatestMilestoneRequest) Unmarshal(dAtA []byte) error
func (*QueryLatestMilestoneRequest) XXX_DiscardUnknown ¶
func (m *QueryLatestMilestoneRequest) XXX_DiscardUnknown()
func (*QueryLatestMilestoneRequest) XXX_Marshal ¶
func (m *QueryLatestMilestoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLatestMilestoneRequest) XXX_Merge ¶
func (m *QueryLatestMilestoneRequest) XXX_Merge(src proto.Message)
func (*QueryLatestMilestoneRequest) XXX_Size ¶
func (m *QueryLatestMilestoneRequest) XXX_Size() int
func (*QueryLatestMilestoneRequest) XXX_Unmarshal ¶
func (m *QueryLatestMilestoneRequest) XXX_Unmarshal(b []byte) error
type QueryLatestMilestoneResponse ¶
type QueryLatestMilestoneResponse struct {
Milestone Milestone `protobuf:"bytes,1,opt,name=milestone,proto3" json:"milestone"`
}
func (*QueryLatestMilestoneResponse) Descriptor ¶
func (*QueryLatestMilestoneResponse) Descriptor() ([]byte, []int)
func (*QueryLatestMilestoneResponse) GetMilestone ¶
func (m *QueryLatestMilestoneResponse) GetMilestone() Milestone
func (*QueryLatestMilestoneResponse) Marshal ¶
func (m *QueryLatestMilestoneResponse) Marshal() (dAtA []byte, err error)
func (*QueryLatestMilestoneResponse) MarshalTo ¶
func (m *QueryLatestMilestoneResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryLatestMilestoneResponse) MarshalToSizedBuffer ¶
func (m *QueryLatestMilestoneResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLatestMilestoneResponse) ProtoMessage ¶
func (*QueryLatestMilestoneResponse) ProtoMessage()
func (*QueryLatestMilestoneResponse) Reset ¶
func (m *QueryLatestMilestoneResponse) Reset()
func (*QueryLatestMilestoneResponse) Size ¶
func (m *QueryLatestMilestoneResponse) Size() (n int)
func (*QueryLatestMilestoneResponse) String ¶
func (m *QueryLatestMilestoneResponse) String() string
func (*QueryLatestMilestoneResponse) Unmarshal ¶
func (m *QueryLatestMilestoneResponse) Unmarshal(dAtA []byte) error
func (*QueryLatestMilestoneResponse) XXX_DiscardUnknown ¶
func (m *QueryLatestMilestoneResponse) XXX_DiscardUnknown()
func (*QueryLatestMilestoneResponse) XXX_Marshal ¶
func (m *QueryLatestMilestoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLatestMilestoneResponse) XXX_Merge ¶
func (m *QueryLatestMilestoneResponse) XXX_Merge(src proto.Message)
func (*QueryLatestMilestoneResponse) XXX_Size ¶
func (m *QueryLatestMilestoneResponse) XXX_Size() int
func (*QueryLatestMilestoneResponse) XXX_Unmarshal ¶
func (m *QueryLatestMilestoneResponse) XXX_Unmarshal(b []byte) error
type QueryMilestoneRequest ¶
type QueryMilestoneRequest struct {
Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
}
func (*QueryMilestoneRequest) Descriptor ¶
func (*QueryMilestoneRequest) Descriptor() ([]byte, []int)
func (*QueryMilestoneRequest) GetNumber ¶
func (m *QueryMilestoneRequest) GetNumber() uint64
func (*QueryMilestoneRequest) Marshal ¶
func (m *QueryMilestoneRequest) Marshal() (dAtA []byte, err error)
func (*QueryMilestoneRequest) MarshalTo ¶
func (m *QueryMilestoneRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryMilestoneRequest) MarshalToSizedBuffer ¶
func (m *QueryMilestoneRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMilestoneRequest) ProtoMessage ¶
func (*QueryMilestoneRequest) ProtoMessage()
func (*QueryMilestoneRequest) Reset ¶
func (m *QueryMilestoneRequest) Reset()
func (*QueryMilestoneRequest) Size ¶
func (m *QueryMilestoneRequest) Size() (n int)
func (*QueryMilestoneRequest) String ¶
func (m *QueryMilestoneRequest) String() string
func (*QueryMilestoneRequest) Unmarshal ¶
func (m *QueryMilestoneRequest) Unmarshal(dAtA []byte) error
func (*QueryMilestoneRequest) XXX_DiscardUnknown ¶
func (m *QueryMilestoneRequest) XXX_DiscardUnknown()
func (*QueryMilestoneRequest) XXX_Marshal ¶
func (m *QueryMilestoneRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMilestoneRequest) XXX_Merge ¶
func (m *QueryMilestoneRequest) XXX_Merge(src proto.Message)
func (*QueryMilestoneRequest) XXX_Size ¶
func (m *QueryMilestoneRequest) XXX_Size() int
func (*QueryMilestoneRequest) XXX_Unmarshal ¶
func (m *QueryMilestoneRequest) XXX_Unmarshal(b []byte) error
type QueryMilestoneResponse ¶
type QueryMilestoneResponse struct {
Milestone Milestone `protobuf:"bytes,1,opt,name=milestone,proto3" json:"milestone"`
}
func (*QueryMilestoneResponse) Descriptor ¶
func (*QueryMilestoneResponse) Descriptor() ([]byte, []int)
func (*QueryMilestoneResponse) GetMilestone ¶
func (m *QueryMilestoneResponse) GetMilestone() Milestone
func (*QueryMilestoneResponse) Marshal ¶
func (m *QueryMilestoneResponse) Marshal() (dAtA []byte, err error)
func (*QueryMilestoneResponse) MarshalTo ¶
func (m *QueryMilestoneResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryMilestoneResponse) MarshalToSizedBuffer ¶
func (m *QueryMilestoneResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryMilestoneResponse) ProtoMessage ¶
func (*QueryMilestoneResponse) ProtoMessage()
func (*QueryMilestoneResponse) Reset ¶
func (m *QueryMilestoneResponse) Reset()
func (*QueryMilestoneResponse) Size ¶
func (m *QueryMilestoneResponse) Size() (n int)
func (*QueryMilestoneResponse) String ¶
func (m *QueryMilestoneResponse) String() string
func (*QueryMilestoneResponse) Unmarshal ¶
func (m *QueryMilestoneResponse) Unmarshal(dAtA []byte) error
func (*QueryMilestoneResponse) XXX_DiscardUnknown ¶
func (m *QueryMilestoneResponse) XXX_DiscardUnknown()
func (*QueryMilestoneResponse) XXX_Marshal ¶
func (m *QueryMilestoneResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryMilestoneResponse) XXX_Merge ¶
func (m *QueryMilestoneResponse) XXX_Merge(src proto.Message)
func (*QueryMilestoneResponse) XXX_Size ¶
func (m *QueryMilestoneResponse) XXX_Size() int
func (*QueryMilestoneResponse) XXX_Unmarshal ¶
func (m *QueryMilestoneResponse) 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 { // GetMilestoneParams queries for the x/milestone parameters GetMilestoneParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // GetMilestoneCount queries for the milestone count GetMilestoneCount(context.Context, *QueryCountRequest) (*QueryCountResponse, error) // GetLatestMilestone queries for the latest milestone GetLatestMilestone(context.Context, *QueryLatestMilestoneRequest) (*QueryLatestMilestoneResponse, error) // GetMilestoneByNumber queries for the milestone based on the number GetMilestoneByNumber(context.Context, *QueryMilestoneRequest) (*QueryMilestoneResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) GetLatestMilestone ¶
func (*UnimplementedQueryServer) GetLatestMilestone(ctx context.Context, req *QueryLatestMilestoneRequest) (*QueryLatestMilestoneResponse, error)
func (*UnimplementedQueryServer) GetMilestoneByNumber ¶
func (*UnimplementedQueryServer) GetMilestoneByNumber(ctx context.Context, req *QueryMilestoneRequest) (*QueryMilestoneResponse, error)
func (*UnimplementedQueryServer) GetMilestoneCount ¶
func (*UnimplementedQueryServer) GetMilestoneCount(ctx context.Context, req *QueryCountRequest) (*QueryCountResponse, error)
func (*UnimplementedQueryServer) GetMilestoneParams ¶
func (*UnimplementedQueryServer) GetMilestoneParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)