types

package
v0.0.0-...-1329066 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 28 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "lightclient"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_" + ModuleName
)
View Source
const (
	BlockHeaderKey       = "BlockHeader-value-"
	ChainStateKey        = "ChainState-value-"
	VerificationFlagsKey = "VerificationFlags-value-"
)
View Source
const (
	TypeMsgEnableHeaderVerification = "enable_header_verification"

	// MaxChainIDListLength is the maximum number of chain IDs that can be enabled for header verification
	// this is a value chosen arbitrarily to prevent abuse
	MaxChainIDListLength = 200
)
View Source
const (
	TypeMsgDisableHeaderVerification = "disable_header_verification"
)

Variables

View Source
var (
	ErrInvalidLengthBlockHeaderVerification        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowBlockHeaderVerification          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupBlockHeaderVerification = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthChainState        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowChainState          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupChainState = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrBlockAlreadyExist               = errorsmod.Register(ModuleName, 1101, "block already exists")
	ErrNoParentHash                    = errorsmod.Register(ModuleName, 1102, "no parent hash")
	ErrInvalidTimestamp                = errorsmod.Register(ModuleName, 1103, "invalid timestamp")
	ErrBlockHeaderVerificationDisabled = errorsmod.Register(ModuleName, 1104, "block header verification is disabled")
	ErrVerificationFlagsNotFound       = errorsmod.Register(ModuleName, 1105, "verification flags not found")
	ErrChainNotSupported               = errorsmod.Register(ModuleName, 1106, "chain not supported")
	ErrInvalidBlockHash                = errorsmod.Register(ModuleName, 1107, "invalid block hash")
	ErrBlockHeaderNotFound             = errorsmod.Register(ModuleName, 1108, "block header not found")
	ErrProofVerificationFailed         = errorsmod.Register(ModuleName, 1109, "proof verification failed")
	ErrInvalidHeight                   = errorsmod.Register(ModuleName, 1110, "invalid height")
	ErrInvalidBlockHeader              = errorsmod.Register(ModuleName, 1111, "invalid block header")
)
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 (
	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 KeyPrefix

func KeyPrefix(p string) []byte

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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)

Types

type AuthorityKeeper

type AuthorityKeeper interface {
	CheckAuthorization(ctx sdk.Context, msg sdk.Msg) error
	GetAdditionalChainList(ctx sdk.Context) (list []chains.Chain)
}

type BlockHeaderVerification

type BlockHeaderVerification struct {
	HeaderSupportedChains []HeaderSupportedChain `protobuf:"bytes,1,rep,name=header_supported_chains,json=headerSupportedChains,proto3" json:"header_supported_chains"`
}

func DefaultBlockHeaderVerification

func DefaultBlockHeaderVerification() BlockHeaderVerification

func (*BlockHeaderVerification) Descriptor

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

func (*BlockHeaderVerification) DisableChain

func (b *BlockHeaderVerification) DisableChain(chainID int64)

DisableChain disables block header verification for a specific chain This function does not remove the chain from the list of enabled chains, it just disables it This keeps track of the chains tha support block header verification and also the ones that currently disabled or enabled

func (*BlockHeaderVerification) EnableChain

func (b *BlockHeaderVerification) EnableChain(chainID int64)

EnableChain enables block header verification for a specific chain

func (*BlockHeaderVerification) GetHeaderEnabledChainIDs

func (b *BlockHeaderVerification) GetHeaderEnabledChainIDs() []int64

GetHeaderEnabledChainIDs returns a list of chain IDs that have block header verification enabled

func (*BlockHeaderVerification) GetHeaderEnabledChains

func (b *BlockHeaderVerification) GetHeaderEnabledChains() []HeaderSupportedChain

GetHeaderEnabledChains returns a list of chains that have block header verification enabled

func (*BlockHeaderVerification) GetHeaderSupportedChains

func (m *BlockHeaderVerification) GetHeaderSupportedChains() []HeaderSupportedChain

func (*BlockHeaderVerification) GetHeaderSupportedChainsList

func (b *BlockHeaderVerification) GetHeaderSupportedChainsList() []HeaderSupportedChain

GetHeaderSupportedChainsList returns a list of chains that support block header verification

func (*BlockHeaderVerification) IsChainEnabled

func (b *BlockHeaderVerification) IsChainEnabled(chainID int64) bool

IsChainEnabled checks if block header verification is enabled for a specific chain It returns true if the chain is enabled, false otherwise If the chain is not found in the list of chains, it returns false

func (*BlockHeaderVerification) Marshal

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

func (*BlockHeaderVerification) MarshalTo

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

func (*BlockHeaderVerification) MarshalToSizedBuffer

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

func (*BlockHeaderVerification) ProtoMessage

func (*BlockHeaderVerification) ProtoMessage()

func (*BlockHeaderVerification) Reset

func (m *BlockHeaderVerification) Reset()

func (*BlockHeaderVerification) Size

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

func (*BlockHeaderVerification) String

func (m *BlockHeaderVerification) String() string

func (*BlockHeaderVerification) Unmarshal

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

func (*BlockHeaderVerification) Validate

func (b *BlockHeaderVerification) Validate() error

func (*BlockHeaderVerification) XXX_DiscardUnknown

func (m *BlockHeaderVerification) XXX_DiscardUnknown()

func (*BlockHeaderVerification) XXX_Marshal

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

func (*BlockHeaderVerification) XXX_Merge

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

func (*BlockHeaderVerification) XXX_Size

func (m *BlockHeaderVerification) XXX_Size() int

func (*BlockHeaderVerification) XXX_Unmarshal

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

type ChainState

type ChainState struct {
	ChainId         int64  `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	LatestHeight    int64  `protobuf:"varint,2,opt,name=latest_height,json=latestHeight,proto3" json:"latest_height,omitempty"`
	EarliestHeight  int64  `protobuf:"varint,3,opt,name=earliest_height,json=earliestHeight,proto3" json:"earliest_height,omitempty"`
	LatestBlockHash []byte `protobuf:"bytes,4,opt,name=latest_block_hash,json=latestBlockHash,proto3" json:"latest_block_hash,omitempty"`
}

ChainState defines the overall state of the block headers for a given chain

func (*ChainState) Descriptor

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

func (*ChainState) GetChainId

func (m *ChainState) GetChainId() int64

func (*ChainState) GetEarliestHeight

func (m *ChainState) GetEarliestHeight() int64

func (*ChainState) GetLatestBlockHash

func (m *ChainState) GetLatestBlockHash() []byte

func (*ChainState) GetLatestHeight

func (m *ChainState) GetLatestHeight() int64

func (*ChainState) Marshal

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

func (*ChainState) MarshalTo

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

func (*ChainState) MarshalToSizedBuffer

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

func (*ChainState) ProtoMessage

func (*ChainState) ProtoMessage()

func (*ChainState) Reset

func (m *ChainState) Reset()

func (*ChainState) Size

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

func (*ChainState) String

func (m *ChainState) String() string

func (*ChainState) Unmarshal

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

func (*ChainState) XXX_DiscardUnknown

func (m *ChainState) XXX_DiscardUnknown()

func (*ChainState) XXX_Marshal

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

func (*ChainState) XXX_Merge

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

func (*ChainState) XXX_Size

func (m *ChainState) XXX_Size() int

func (*ChainState) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	BlockHeaders            []proofs.BlockHeader    `protobuf:"bytes,1,rep,name=block_headers,json=blockHeaders,proto3" json:"block_headers"`
	ChainStates             []ChainState            `protobuf:"bytes,2,rep,name=chain_states,json=chainStates,proto3" json:"chain_states"`
	BlockHeaderVerification BlockHeaderVerification `protobuf:"bytes,3,opt,name=block_header_verification,json=blockHeaderVerification,proto3" json:"block_header_verification"`
}

GenesisState defines the lightclient module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default lightclient genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetBlockHeaderVerification

func (m *GenesisState) GetBlockHeaderVerification() BlockHeaderVerification

func (*GenesisState) GetBlockHeaders

func (m *GenesisState) GetBlockHeaders() []proofs.BlockHeader

func (*GenesisState) GetChainStates

func (m *GenesisState) GetChainStates() []ChainState

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 genesis state validation returning an error upon any failure

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 HeaderSupportedChain

type HeaderSupportedChain struct {
	ChainId int64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	Enabled bool  `protobuf:"varint,2,opt,name=enabled,proto3" json:"enabled,omitempty"`
}

HeaderSupportedChain is a structure containing information of weather a chain is enabled or not for block header verification

func DefaultHeaderSupportedChains

func DefaultHeaderSupportedChains() []HeaderSupportedChain

DefaultHeaderSupportedChains returns the default verification flags. By default, everything disabled.

func (*HeaderSupportedChain) Descriptor

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

func (*HeaderSupportedChain) GetChainId

func (m *HeaderSupportedChain) GetChainId() int64

func (*HeaderSupportedChain) GetEnabled

func (m *HeaderSupportedChain) GetEnabled() bool

func (*HeaderSupportedChain) Marshal

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

func (*HeaderSupportedChain) MarshalTo

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

func (*HeaderSupportedChain) MarshalToSizedBuffer

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

func (*HeaderSupportedChain) ProtoMessage

func (*HeaderSupportedChain) ProtoMessage()

func (*HeaderSupportedChain) Reset

func (m *HeaderSupportedChain) Reset()

func (*HeaderSupportedChain) Size

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

func (*HeaderSupportedChain) String

func (m *HeaderSupportedChain) String() string

func (*HeaderSupportedChain) Unmarshal

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

func (*HeaderSupportedChain) XXX_DiscardUnknown

func (m *HeaderSupportedChain) XXX_DiscardUnknown()

func (*HeaderSupportedChain) XXX_Marshal

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

func (*HeaderSupportedChain) XXX_Merge

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

func (*HeaderSupportedChain) XXX_Size

func (m *HeaderSupportedChain) XXX_Size() int

func (*HeaderSupportedChain) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	EnableHeaderVerification(ctx context.Context, in *MsgEnableHeaderVerification, opts ...grpc.CallOption) (*MsgEnableHeaderVerificationResponse, error)
	DisableHeaderVerification(ctx context.Context, in *MsgDisableHeaderVerification, opts ...grpc.CallOption) (*MsgDisableHeaderVerificationResponse, 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 MsgDisableHeaderVerification

type MsgDisableHeaderVerification struct {
	Creator     string  `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	ChainIdList []int64 `protobuf:"varint,2,rep,packed,name=chain_id_list,json=chainIdList,proto3" json:"chain_id_list,omitempty"`
}

func NewMsgDisableHeaderVerification

func NewMsgDisableHeaderVerification(creator string, chainIDs []int64) *MsgDisableHeaderVerification

func (*MsgDisableHeaderVerification) Descriptor

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

func (*MsgDisableHeaderVerification) GetChainIdList

func (m *MsgDisableHeaderVerification) GetChainIdList() []int64

func (*MsgDisableHeaderVerification) GetCreator

func (m *MsgDisableHeaderVerification) GetCreator() string

func (*MsgDisableHeaderVerification) GetSignBytes

func (msg *MsgDisableHeaderVerification) GetSignBytes() []byte

func (*MsgDisableHeaderVerification) GetSigners

func (msg *MsgDisableHeaderVerification) GetSigners() []sdk.AccAddress

func (*MsgDisableHeaderVerification) Marshal

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

func (*MsgDisableHeaderVerification) MarshalTo

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

func (*MsgDisableHeaderVerification) MarshalToSizedBuffer

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

func (*MsgDisableHeaderVerification) ProtoMessage

func (*MsgDisableHeaderVerification) ProtoMessage()

func (*MsgDisableHeaderVerification) Reset

func (m *MsgDisableHeaderVerification) Reset()

func (*MsgDisableHeaderVerification) Route

func (msg *MsgDisableHeaderVerification) Route() string

func (*MsgDisableHeaderVerification) Size

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

func (*MsgDisableHeaderVerification) String

func (*MsgDisableHeaderVerification) Type

func (*MsgDisableHeaderVerification) Unmarshal

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

func (*MsgDisableHeaderVerification) ValidateBasic

func (msg *MsgDisableHeaderVerification) ValidateBasic() error

func (*MsgDisableHeaderVerification) XXX_DiscardUnknown

func (m *MsgDisableHeaderVerification) XXX_DiscardUnknown()

func (*MsgDisableHeaderVerification) XXX_Marshal

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

func (*MsgDisableHeaderVerification) XXX_Merge

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

func (*MsgDisableHeaderVerification) XXX_Size

func (m *MsgDisableHeaderVerification) XXX_Size() int

func (*MsgDisableHeaderVerification) XXX_Unmarshal

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

type MsgDisableHeaderVerificationResponse

type MsgDisableHeaderVerificationResponse struct {
}

func (*MsgDisableHeaderVerificationResponse) Descriptor

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

func (*MsgDisableHeaderVerificationResponse) Marshal

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

func (*MsgDisableHeaderVerificationResponse) MarshalTo

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

func (*MsgDisableHeaderVerificationResponse) MarshalToSizedBuffer

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

func (*MsgDisableHeaderVerificationResponse) ProtoMessage

func (*MsgDisableHeaderVerificationResponse) ProtoMessage()

func (*MsgDisableHeaderVerificationResponse) Reset

func (*MsgDisableHeaderVerificationResponse) Size

func (*MsgDisableHeaderVerificationResponse) String

func (*MsgDisableHeaderVerificationResponse) Unmarshal

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

func (*MsgDisableHeaderVerificationResponse) XXX_DiscardUnknown

func (m *MsgDisableHeaderVerificationResponse) XXX_DiscardUnknown()

func (*MsgDisableHeaderVerificationResponse) XXX_Marshal

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

func (*MsgDisableHeaderVerificationResponse) XXX_Merge

func (*MsgDisableHeaderVerificationResponse) XXX_Size

func (*MsgDisableHeaderVerificationResponse) XXX_Unmarshal

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

type MsgEnableHeaderVerification

type MsgEnableHeaderVerification struct {
	Creator     string  `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	ChainIdList []int64 `protobuf:"varint,2,rep,packed,name=chain_id_list,json=chainIdList,proto3" json:"chain_id_list,omitempty"`
}

func NewMsgEnableHeaderVerification

func NewMsgEnableHeaderVerification(creator string, chainIDs []int64) *MsgEnableHeaderVerification

func (*MsgEnableHeaderVerification) Descriptor

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

func (*MsgEnableHeaderVerification) GetChainIdList

func (m *MsgEnableHeaderVerification) GetChainIdList() []int64

func (*MsgEnableHeaderVerification) GetCreator

func (m *MsgEnableHeaderVerification) GetCreator() string

func (*MsgEnableHeaderVerification) GetSignBytes

func (msg *MsgEnableHeaderVerification) GetSignBytes() []byte

func (*MsgEnableHeaderVerification) GetSigners

func (msg *MsgEnableHeaderVerification) GetSigners() []sdk.AccAddress

func (*MsgEnableHeaderVerification) Marshal

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

func (*MsgEnableHeaderVerification) MarshalTo

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

func (*MsgEnableHeaderVerification) MarshalToSizedBuffer

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

func (*MsgEnableHeaderVerification) ProtoMessage

func (*MsgEnableHeaderVerification) ProtoMessage()

func (*MsgEnableHeaderVerification) Reset

func (m *MsgEnableHeaderVerification) Reset()

func (*MsgEnableHeaderVerification) Route

func (msg *MsgEnableHeaderVerification) Route() string

func (*MsgEnableHeaderVerification) Size

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

func (*MsgEnableHeaderVerification) String

func (m *MsgEnableHeaderVerification) String() string

func (*MsgEnableHeaderVerification) Type

func (msg *MsgEnableHeaderVerification) Type() string

func (*MsgEnableHeaderVerification) Unmarshal

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

func (*MsgEnableHeaderVerification) ValidateBasic

func (msg *MsgEnableHeaderVerification) ValidateBasic() error

func (*MsgEnableHeaderVerification) XXX_DiscardUnknown

func (m *MsgEnableHeaderVerification) XXX_DiscardUnknown()

func (*MsgEnableHeaderVerification) XXX_Marshal

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

func (*MsgEnableHeaderVerification) XXX_Merge

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

func (*MsgEnableHeaderVerification) XXX_Size

func (m *MsgEnableHeaderVerification) XXX_Size() int

func (*MsgEnableHeaderVerification) XXX_Unmarshal

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

type MsgEnableHeaderVerificationResponse

type MsgEnableHeaderVerificationResponse struct {
}

func (*MsgEnableHeaderVerificationResponse) Descriptor

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

func (*MsgEnableHeaderVerificationResponse) Marshal

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

func (*MsgEnableHeaderVerificationResponse) MarshalTo

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

func (*MsgEnableHeaderVerificationResponse) MarshalToSizedBuffer

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

func (*MsgEnableHeaderVerificationResponse) ProtoMessage

func (*MsgEnableHeaderVerificationResponse) ProtoMessage()

func (*MsgEnableHeaderVerificationResponse) Reset

func (*MsgEnableHeaderVerificationResponse) Size

func (*MsgEnableHeaderVerificationResponse) String

func (*MsgEnableHeaderVerificationResponse) Unmarshal

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

func (*MsgEnableHeaderVerificationResponse) XXX_DiscardUnknown

func (m *MsgEnableHeaderVerificationResponse) XXX_DiscardUnknown()

func (*MsgEnableHeaderVerificationResponse) XXX_Marshal

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

func (*MsgEnableHeaderVerificationResponse) XXX_Merge

func (*MsgEnableHeaderVerificationResponse) XXX_Size

func (*MsgEnableHeaderVerificationResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type QueryAllBlockHeaderRequest

type QueryAllBlockHeaderRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllBlockHeaderRequest) Descriptor

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

func (*QueryAllBlockHeaderRequest) GetPagination

func (m *QueryAllBlockHeaderRequest) GetPagination() *query.PageRequest

func (*QueryAllBlockHeaderRequest) Marshal

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

func (*QueryAllBlockHeaderRequest) MarshalTo

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

func (*QueryAllBlockHeaderRequest) MarshalToSizedBuffer

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

func (*QueryAllBlockHeaderRequest) ProtoMessage

func (*QueryAllBlockHeaderRequest) ProtoMessage()

func (*QueryAllBlockHeaderRequest) Reset

func (m *QueryAllBlockHeaderRequest) Reset()

func (*QueryAllBlockHeaderRequest) Size

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

func (*QueryAllBlockHeaderRequest) String

func (m *QueryAllBlockHeaderRequest) String() string

func (*QueryAllBlockHeaderRequest) Unmarshal

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

func (*QueryAllBlockHeaderRequest) XXX_DiscardUnknown

func (m *QueryAllBlockHeaderRequest) XXX_DiscardUnknown()

func (*QueryAllBlockHeaderRequest) XXX_Marshal

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

func (*QueryAllBlockHeaderRequest) XXX_Merge

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

func (*QueryAllBlockHeaderRequest) XXX_Size

func (m *QueryAllBlockHeaderRequest) XXX_Size() int

func (*QueryAllBlockHeaderRequest) XXX_Unmarshal

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

type QueryAllBlockHeaderResponse

type QueryAllBlockHeaderResponse struct {
	BlockHeaders []proofs.BlockHeader `protobuf:"bytes,1,rep,name=block_headers,json=blockHeaders,proto3" json:"block_headers"`
	Pagination   *query.PageResponse  `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllBlockHeaderResponse) Descriptor

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

func (*QueryAllBlockHeaderResponse) GetBlockHeaders

func (m *QueryAllBlockHeaderResponse) GetBlockHeaders() []proofs.BlockHeader

func (*QueryAllBlockHeaderResponse) GetPagination

func (m *QueryAllBlockHeaderResponse) GetPagination() *query.PageResponse

func (*QueryAllBlockHeaderResponse) Marshal

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

func (*QueryAllBlockHeaderResponse) MarshalTo

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

func (*QueryAllBlockHeaderResponse) MarshalToSizedBuffer

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

func (*QueryAllBlockHeaderResponse) ProtoMessage

func (*QueryAllBlockHeaderResponse) ProtoMessage()

func (*QueryAllBlockHeaderResponse) Reset

func (m *QueryAllBlockHeaderResponse) Reset()

func (*QueryAllBlockHeaderResponse) Size

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

func (*QueryAllBlockHeaderResponse) String

func (m *QueryAllBlockHeaderResponse) String() string

func (*QueryAllBlockHeaderResponse) Unmarshal

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

func (*QueryAllBlockHeaderResponse) XXX_DiscardUnknown

func (m *QueryAllBlockHeaderResponse) XXX_DiscardUnknown()

func (*QueryAllBlockHeaderResponse) XXX_Marshal

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

func (*QueryAllBlockHeaderResponse) XXX_Merge

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

func (*QueryAllBlockHeaderResponse) XXX_Size

func (m *QueryAllBlockHeaderResponse) XXX_Size() int

func (*QueryAllBlockHeaderResponse) XXX_Unmarshal

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

type QueryAllChainStateRequest

type QueryAllChainStateRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllChainStateRequest) Descriptor

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

func (*QueryAllChainStateRequest) GetPagination

func (m *QueryAllChainStateRequest) GetPagination() *query.PageRequest

func (*QueryAllChainStateRequest) Marshal

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

func (*QueryAllChainStateRequest) MarshalTo

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

func (*QueryAllChainStateRequest) MarshalToSizedBuffer

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

func (*QueryAllChainStateRequest) ProtoMessage

func (*QueryAllChainStateRequest) ProtoMessage()

func (*QueryAllChainStateRequest) Reset

func (m *QueryAllChainStateRequest) Reset()

func (*QueryAllChainStateRequest) Size

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

func (*QueryAllChainStateRequest) String

func (m *QueryAllChainStateRequest) String() string

func (*QueryAllChainStateRequest) Unmarshal

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

func (*QueryAllChainStateRequest) XXX_DiscardUnknown

func (m *QueryAllChainStateRequest) XXX_DiscardUnknown()

func (*QueryAllChainStateRequest) XXX_Marshal

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

func (*QueryAllChainStateRequest) XXX_Merge

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

func (*QueryAllChainStateRequest) XXX_Size

func (m *QueryAllChainStateRequest) XXX_Size() int

func (*QueryAllChainStateRequest) XXX_Unmarshal

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

type QueryAllChainStateResponse

type QueryAllChainStateResponse struct {
	ChainState []ChainState        `protobuf:"bytes,1,rep,name=chain_state,json=chainState,proto3" json:"chain_state"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllChainStateResponse) Descriptor

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

func (*QueryAllChainStateResponse) GetChainState

func (m *QueryAllChainStateResponse) GetChainState() []ChainState

func (*QueryAllChainStateResponse) GetPagination

func (m *QueryAllChainStateResponse) GetPagination() *query.PageResponse

func (*QueryAllChainStateResponse) Marshal

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

func (*QueryAllChainStateResponse) MarshalTo

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

func (*QueryAllChainStateResponse) MarshalToSizedBuffer

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

func (*QueryAllChainStateResponse) ProtoMessage

func (*QueryAllChainStateResponse) ProtoMessage()

func (*QueryAllChainStateResponse) Reset

func (m *QueryAllChainStateResponse) Reset()

func (*QueryAllChainStateResponse) Size

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

func (*QueryAllChainStateResponse) String

func (m *QueryAllChainStateResponse) String() string

func (*QueryAllChainStateResponse) Unmarshal

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

func (*QueryAllChainStateResponse) XXX_DiscardUnknown

func (m *QueryAllChainStateResponse) XXX_DiscardUnknown()

func (*QueryAllChainStateResponse) XXX_Marshal

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

func (*QueryAllChainStateResponse) XXX_Merge

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

func (*QueryAllChainStateResponse) XXX_Size

func (m *QueryAllChainStateResponse) XXX_Size() int

func (*QueryAllChainStateResponse) XXX_Unmarshal

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

type QueryClient

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 QueryGetBlockHeaderRequest

type QueryGetBlockHeaderRequest struct {
	BlockHash []byte `protobuf:"bytes,1,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
}

func (*QueryGetBlockHeaderRequest) Descriptor

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

func (*QueryGetBlockHeaderRequest) GetBlockHash

func (m *QueryGetBlockHeaderRequest) GetBlockHash() []byte

func (*QueryGetBlockHeaderRequest) Marshal

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

func (*QueryGetBlockHeaderRequest) MarshalTo

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

func (*QueryGetBlockHeaderRequest) MarshalToSizedBuffer

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

func (*QueryGetBlockHeaderRequest) ProtoMessage

func (*QueryGetBlockHeaderRequest) ProtoMessage()

func (*QueryGetBlockHeaderRequest) Reset

func (m *QueryGetBlockHeaderRequest) Reset()

func (*QueryGetBlockHeaderRequest) Size

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

func (*QueryGetBlockHeaderRequest) String

func (m *QueryGetBlockHeaderRequest) String() string

func (*QueryGetBlockHeaderRequest) Unmarshal

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

func (*QueryGetBlockHeaderRequest) XXX_DiscardUnknown

func (m *QueryGetBlockHeaderRequest) XXX_DiscardUnknown()

func (*QueryGetBlockHeaderRequest) XXX_Marshal

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

func (*QueryGetBlockHeaderRequest) XXX_Merge

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

func (*QueryGetBlockHeaderRequest) XXX_Size

func (m *QueryGetBlockHeaderRequest) XXX_Size() int

func (*QueryGetBlockHeaderRequest) XXX_Unmarshal

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

type QueryGetBlockHeaderResponse

type QueryGetBlockHeaderResponse struct {
	BlockHeader *proofs.BlockHeader `protobuf:"bytes,1,opt,name=block_header,json=blockHeader,proto3" json:"block_header,omitempty"`
}

func (*QueryGetBlockHeaderResponse) Descriptor

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

func (*QueryGetBlockHeaderResponse) GetBlockHeader

func (m *QueryGetBlockHeaderResponse) GetBlockHeader() *proofs.BlockHeader

func (*QueryGetBlockHeaderResponse) Marshal

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

func (*QueryGetBlockHeaderResponse) MarshalTo

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

func (*QueryGetBlockHeaderResponse) MarshalToSizedBuffer

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

func (*QueryGetBlockHeaderResponse) ProtoMessage

func (*QueryGetBlockHeaderResponse) ProtoMessage()

func (*QueryGetBlockHeaderResponse) Reset

func (m *QueryGetBlockHeaderResponse) Reset()

func (*QueryGetBlockHeaderResponse) Size

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

func (*QueryGetBlockHeaderResponse) String

func (m *QueryGetBlockHeaderResponse) String() string

func (*QueryGetBlockHeaderResponse) Unmarshal

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

func (*QueryGetBlockHeaderResponse) XXX_DiscardUnknown

func (m *QueryGetBlockHeaderResponse) XXX_DiscardUnknown()

func (*QueryGetBlockHeaderResponse) XXX_Marshal

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

func (*QueryGetBlockHeaderResponse) XXX_Merge

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

func (*QueryGetBlockHeaderResponse) XXX_Size

func (m *QueryGetBlockHeaderResponse) XXX_Size() int

func (*QueryGetBlockHeaderResponse) XXX_Unmarshal

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

type QueryGetChainStateRequest

type QueryGetChainStateRequest struct {
	ChainId int64 `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

func (*QueryGetChainStateRequest) Descriptor

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

func (*QueryGetChainStateRequest) GetChainId

func (m *QueryGetChainStateRequest) GetChainId() int64

func (*QueryGetChainStateRequest) Marshal

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

func (*QueryGetChainStateRequest) MarshalTo

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

func (*QueryGetChainStateRequest) MarshalToSizedBuffer

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

func (*QueryGetChainStateRequest) ProtoMessage

func (*QueryGetChainStateRequest) ProtoMessage()

func (*QueryGetChainStateRequest) Reset

func (m *QueryGetChainStateRequest) Reset()

func (*QueryGetChainStateRequest) Size

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

func (*QueryGetChainStateRequest) String

func (m *QueryGetChainStateRequest) String() string

func (*QueryGetChainStateRequest) Unmarshal

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

func (*QueryGetChainStateRequest) XXX_DiscardUnknown

func (m *QueryGetChainStateRequest) XXX_DiscardUnknown()

func (*QueryGetChainStateRequest) XXX_Marshal

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

func (*QueryGetChainStateRequest) XXX_Merge

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

func (*QueryGetChainStateRequest) XXX_Size

func (m *QueryGetChainStateRequest) XXX_Size() int

func (*QueryGetChainStateRequest) XXX_Unmarshal

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

type QueryGetChainStateResponse

type QueryGetChainStateResponse struct {
	ChainState *ChainState `protobuf:"bytes,1,opt,name=chain_state,json=chainState,proto3" json:"chain_state,omitempty"`
}

func (*QueryGetChainStateResponse) Descriptor

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

func (*QueryGetChainStateResponse) GetChainState

func (m *QueryGetChainStateResponse) GetChainState() *ChainState

func (*QueryGetChainStateResponse) Marshal

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

func (*QueryGetChainStateResponse) MarshalTo

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

func (*QueryGetChainStateResponse) MarshalToSizedBuffer

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

func (*QueryGetChainStateResponse) ProtoMessage

func (*QueryGetChainStateResponse) ProtoMessage()

func (*QueryGetChainStateResponse) Reset

func (m *QueryGetChainStateResponse) Reset()

func (*QueryGetChainStateResponse) Size

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

func (*QueryGetChainStateResponse) String

func (m *QueryGetChainStateResponse) String() string

func (*QueryGetChainStateResponse) Unmarshal

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

func (*QueryGetChainStateResponse) XXX_DiscardUnknown

func (m *QueryGetChainStateResponse) XXX_DiscardUnknown()

func (*QueryGetChainStateResponse) XXX_Marshal

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

func (*QueryGetChainStateResponse) XXX_Merge

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

func (*QueryGetChainStateResponse) XXX_Size

func (m *QueryGetChainStateResponse) XXX_Size() int

func (*QueryGetChainStateResponse) XXX_Unmarshal

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

type QueryHeaderEnabledChainsRequest

type QueryHeaderEnabledChainsRequest struct {
}

func (*QueryHeaderEnabledChainsRequest) Descriptor

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

func (*QueryHeaderEnabledChainsRequest) Marshal

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

func (*QueryHeaderEnabledChainsRequest) MarshalTo

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

func (*QueryHeaderEnabledChainsRequest) MarshalToSizedBuffer

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

func (*QueryHeaderEnabledChainsRequest) ProtoMessage

func (*QueryHeaderEnabledChainsRequest) ProtoMessage()

func (*QueryHeaderEnabledChainsRequest) Reset

func (*QueryHeaderEnabledChainsRequest) Size

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

func (*QueryHeaderEnabledChainsRequest) String

func (*QueryHeaderEnabledChainsRequest) Unmarshal

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

func (*QueryHeaderEnabledChainsRequest) XXX_DiscardUnknown

func (m *QueryHeaderEnabledChainsRequest) XXX_DiscardUnknown()

func (*QueryHeaderEnabledChainsRequest) XXX_Marshal

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

func (*QueryHeaderEnabledChainsRequest) XXX_Merge

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

func (*QueryHeaderEnabledChainsRequest) XXX_Size

func (m *QueryHeaderEnabledChainsRequest) XXX_Size() int

func (*QueryHeaderEnabledChainsRequest) XXX_Unmarshal

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

type QueryHeaderEnabledChainsResponse

type QueryHeaderEnabledChainsResponse struct {
	HeaderEnabledChains []HeaderSupportedChain `protobuf:"bytes,1,rep,name=header_enabled_chains,json=headerEnabledChains,proto3" json:"header_enabled_chains"`
}

func (*QueryHeaderEnabledChainsResponse) Descriptor

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

func (*QueryHeaderEnabledChainsResponse) GetHeaderEnabledChains

func (m *QueryHeaderEnabledChainsResponse) GetHeaderEnabledChains() []HeaderSupportedChain

func (*QueryHeaderEnabledChainsResponse) Marshal

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

func (*QueryHeaderEnabledChainsResponse) MarshalTo

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

func (*QueryHeaderEnabledChainsResponse) MarshalToSizedBuffer

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

func (*QueryHeaderEnabledChainsResponse) ProtoMessage

func (*QueryHeaderEnabledChainsResponse) ProtoMessage()

func (*QueryHeaderEnabledChainsResponse) Reset

func (*QueryHeaderEnabledChainsResponse) Size

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

func (*QueryHeaderEnabledChainsResponse) String

func (*QueryHeaderEnabledChainsResponse) Unmarshal

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

func (*QueryHeaderEnabledChainsResponse) XXX_DiscardUnknown

func (m *QueryHeaderEnabledChainsResponse) XXX_DiscardUnknown()

func (*QueryHeaderEnabledChainsResponse) XXX_Marshal

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

func (*QueryHeaderEnabledChainsResponse) XXX_Merge

func (*QueryHeaderEnabledChainsResponse) XXX_Size

func (m *QueryHeaderEnabledChainsResponse) XXX_Size() int

func (*QueryHeaderEnabledChainsResponse) XXX_Unmarshal

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

type QueryHeaderSupportedChainsRequest

type QueryHeaderSupportedChainsRequest struct {
}

func (*QueryHeaderSupportedChainsRequest) Descriptor

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

func (*QueryHeaderSupportedChainsRequest) Marshal

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

func (*QueryHeaderSupportedChainsRequest) MarshalTo

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

func (*QueryHeaderSupportedChainsRequest) MarshalToSizedBuffer

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

func (*QueryHeaderSupportedChainsRequest) ProtoMessage

func (*QueryHeaderSupportedChainsRequest) ProtoMessage()

func (*QueryHeaderSupportedChainsRequest) Reset

func (*QueryHeaderSupportedChainsRequest) Size

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

func (*QueryHeaderSupportedChainsRequest) String

func (*QueryHeaderSupportedChainsRequest) Unmarshal

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

func (*QueryHeaderSupportedChainsRequest) XXX_DiscardUnknown

func (m *QueryHeaderSupportedChainsRequest) XXX_DiscardUnknown()

func (*QueryHeaderSupportedChainsRequest) XXX_Marshal

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

func (*QueryHeaderSupportedChainsRequest) XXX_Merge

func (*QueryHeaderSupportedChainsRequest) XXX_Size

func (m *QueryHeaderSupportedChainsRequest) XXX_Size() int

func (*QueryHeaderSupportedChainsRequest) XXX_Unmarshal

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

type QueryHeaderSupportedChainsResponse

type QueryHeaderSupportedChainsResponse struct {
	HeaderSupportedChains []HeaderSupportedChain `protobuf:"bytes,1,rep,name=header_supported_chains,json=headerSupportedChains,proto3" json:"header_supported_chains"`
}

func (*QueryHeaderSupportedChainsResponse) Descriptor

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

func (*QueryHeaderSupportedChainsResponse) GetHeaderSupportedChains

func (m *QueryHeaderSupportedChainsResponse) GetHeaderSupportedChains() []HeaderSupportedChain

func (*QueryHeaderSupportedChainsResponse) Marshal

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

func (*QueryHeaderSupportedChainsResponse) MarshalTo

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

func (*QueryHeaderSupportedChainsResponse) MarshalToSizedBuffer

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

func (*QueryHeaderSupportedChainsResponse) ProtoMessage

func (*QueryHeaderSupportedChainsResponse) ProtoMessage()

func (*QueryHeaderSupportedChainsResponse) Reset

func (*QueryHeaderSupportedChainsResponse) Size

func (*QueryHeaderSupportedChainsResponse) String

func (*QueryHeaderSupportedChainsResponse) Unmarshal

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

func (*QueryHeaderSupportedChainsResponse) XXX_DiscardUnknown

func (m *QueryHeaderSupportedChainsResponse) XXX_DiscardUnknown()

func (*QueryHeaderSupportedChainsResponse) XXX_Marshal

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

func (*QueryHeaderSupportedChainsResponse) XXX_Merge

func (*QueryHeaderSupportedChainsResponse) XXX_Size

func (*QueryHeaderSupportedChainsResponse) XXX_Unmarshal

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

type QueryProveRequest

type QueryProveRequest struct {
	ChainId   int64         `protobuf:"varint,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	TxHash    string        `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
	Proof     *proofs.Proof `protobuf:"bytes,3,opt,name=proof,proto3" json:"proof,omitempty"`
	BlockHash string        `protobuf:"bytes,4,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
	TxIndex   int64         `protobuf:"varint,5,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"`
}

func (*QueryProveRequest) Descriptor

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

func (*QueryProveRequest) GetBlockHash

func (m *QueryProveRequest) GetBlockHash() string

func (*QueryProveRequest) GetChainId

func (m *QueryProveRequest) GetChainId() int64

func (*QueryProveRequest) GetProof

func (m *QueryProveRequest) GetProof() *proofs.Proof

func (*QueryProveRequest) GetTxHash

func (m *QueryProveRequest) GetTxHash() string

func (*QueryProveRequest) GetTxIndex

func (m *QueryProveRequest) GetTxIndex() int64

func (*QueryProveRequest) Marshal

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

func (*QueryProveRequest) MarshalTo

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

func (*QueryProveRequest) MarshalToSizedBuffer

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

func (*QueryProveRequest) ProtoMessage

func (*QueryProveRequest) ProtoMessage()

func (*QueryProveRequest) Reset

func (m *QueryProveRequest) Reset()

func (*QueryProveRequest) Size

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

func (*QueryProveRequest) String

func (m *QueryProveRequest) String() string

func (*QueryProveRequest) Unmarshal

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

func (*QueryProveRequest) XXX_DiscardUnknown

func (m *QueryProveRequest) XXX_DiscardUnknown()

func (*QueryProveRequest) XXX_Marshal

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

func (*QueryProveRequest) XXX_Merge

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

func (*QueryProveRequest) XXX_Size

func (m *QueryProveRequest) XXX_Size() int

func (*QueryProveRequest) XXX_Unmarshal

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

type QueryProveResponse

type QueryProveResponse struct {
	Valid bool `protobuf:"varint,1,opt,name=valid,proto3" json:"valid,omitempty"`
}

func (*QueryProveResponse) Descriptor

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

func (*QueryProveResponse) GetValid

func (m *QueryProveResponse) GetValid() bool

func (*QueryProveResponse) Marshal

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

func (*QueryProveResponse) MarshalTo

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

func (*QueryProveResponse) MarshalToSizedBuffer

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

func (*QueryProveResponse) ProtoMessage

func (*QueryProveResponse) ProtoMessage()

func (*QueryProveResponse) Reset

func (m *QueryProveResponse) Reset()

func (*QueryProveResponse) Size

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

func (*QueryProveResponse) String

func (m *QueryProveResponse) String() string

func (*QueryProveResponse) Unmarshal

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

func (*QueryProveResponse) XXX_DiscardUnknown

func (m *QueryProveResponse) XXX_DiscardUnknown()

func (*QueryProveResponse) XXX_Marshal

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

func (*QueryProveResponse) XXX_Merge

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

func (*QueryProveResponse) XXX_Size

func (m *QueryProveResponse) XXX_Size() int

func (*QueryProveResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) DisableHeaderVerification

func (*UnimplementedMsgServer) EnableHeaderVerification

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) BlockHeader

func (*UnimplementedQueryServer) BlockHeaderAll

func (*UnimplementedQueryServer) ChainState

func (*UnimplementedQueryServer) ChainStateAll

func (*UnimplementedQueryServer) HeaderEnabledChains

func (*UnimplementedQueryServer) Prove

Jump to

Keyboard shortcuts

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