types

package
v0.0.0-...-891b8cb Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ModuleName   = "oracle"
	StoreKey     = ModuleName
	RouterKey    = ModuleName
	QuerierRoute = ModuleName
)

Variables

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 (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = 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")
)
View Source
var (
	ErrNoSupportChain = sdkerrors.Register(ModuleName, 0, "this chain is not supported")
)
View Source
var (
	KeyOperatorAddress = []byte("OperatorAddress")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry types.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 ChainInfo

type ChainInfo struct {
	// coin refers to the sum of owned, staked and claimable quantity of the coin
	Coin types.Coin `protobuf:"bytes,1,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coin" yaml:"coin"`
	// decimal of the native currency in host chain.
	Decimal uint32 `protobuf:"varint,2,opt,name=decimal,proto3" json:"decimal,omitempty" yaml:"decimal"`
	// operator_address is an oracle operator's address
	OperatorAddress string `` /* 130-byte string literal not displayed */
	// last_block_height is the block height observed by the operator on the host chain.
	LastBlockHeight int64 `` /* 134-byte string literal not displayed */
	// app_hash of the block fetched by oracle from host chain
	AppHash []byte `protobuf:"bytes,5,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty" yaml:"app_hash"`
	// chain_id of the host chain
	ChainId string `protobuf:"bytes,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
	// block_proposer of the block fetched by oracle from the host chain
	BlockProposer string `protobuf:"bytes,7,opt,name=block_proposer,json=blockProposer,proto3" json:"block_proposer,omitempty" yaml:"block_proopser"`
}

func (*ChainInfo) Descriptor

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

func (*ChainInfo) GetAppHash

func (m *ChainInfo) GetAppHash() []byte

func (*ChainInfo) GetBlockProposer

func (m *ChainInfo) GetBlockProposer() string

func (*ChainInfo) GetChainId

func (m *ChainInfo) GetChainId() string

func (*ChainInfo) GetCoin

func (m *ChainInfo) GetCoin() types.Coin

func (*ChainInfo) GetDecimal

func (m *ChainInfo) GetDecimal() uint32

func (*ChainInfo) GetLastBlockHeight

func (m *ChainInfo) GetLastBlockHeight() int64

func (*ChainInfo) GetOperatorAddress

func (m *ChainInfo) GetOperatorAddress() string

func (*ChainInfo) Marshal

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

func (*ChainInfo) MarshalTo

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

func (*ChainInfo) MarshalToSizedBuffer

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

func (*ChainInfo) ProtoMessage

func (*ChainInfo) ProtoMessage()

func (*ChainInfo) Reset

func (m *ChainInfo) Reset()

func (*ChainInfo) Size

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

func (*ChainInfo) String

func (m *ChainInfo) String() string

func (*ChainInfo) Unmarshal

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

func (*ChainInfo) XXX_DiscardUnknown

func (m *ChainInfo) XXX_DiscardUnknown()

func (*ChainInfo) XXX_Marshal

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

func (*ChainInfo) XXX_Merge

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

func (*ChainInfo) XXX_Size

func (m *ChainInfo) XXX_Size() int

func (*ChainInfo) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params defines all the parameters of module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// states is an amount of coins on the host chain.
	States []ChainInfo `protobuf:"bytes,2,rep,name=states,proto3" json:"states"`
}

func DefaultGenesis

func DefaultGenesis() *GenesisState

func NewGenesisState

func NewGenesisState(params Params) *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetStates

func (m *GenesisState) GetStates() []ChainInfo

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	UpdateChainState(ctx context.Context, in *MsgUpdateChainState, opts ...grpc.CallOption) (*MsgUpdateChainStateResponse, 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 {
	UpdateChainState(context.Context, *MsgUpdateChainState) (*MsgUpdateChainStateResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateChainState

type MsgUpdateChainState struct {
	// coin refers to the sum of owned, staked and claimable quantity of the coin
	Coin types.Coin `protobuf:"bytes,1,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coin"`
	// decimal of the native currency in host chain.
	Decimal uint32 `protobuf:"varint,2,opt,name=decimal,proto3" json:"decimal,omitempty"`
	// address of the oracle
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
	// block_height of the block fetched by oracle from host_chain
	BlockHeight int64 `protobuf:"varint,4,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	// app_hash of the block fetched by oracle from host chain
	AppHash []byte `protobuf:"bytes,5,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty"`
	// chain_id of the host chain
	ChainId string `protobuf:"bytes,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
}

func NewMsgUpdateChainState

func NewMsgUpdateChainState(signer sdk.AccAddress, chainId string, coin sdk.Coin, decimal uint32, blockHeight int64, appHash []byte) *MsgUpdateChainState

func (*MsgUpdateChainState) Descriptor

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

func (*MsgUpdateChainState) GetAppHash

func (m *MsgUpdateChainState) GetAppHash() []byte

func (*MsgUpdateChainState) GetBlockHeight

func (m *MsgUpdateChainState) GetBlockHeight() int64

func (*MsgUpdateChainState) GetChainId

func (m *MsgUpdateChainState) GetChainId() string

func (*MsgUpdateChainState) GetCoin

func (m *MsgUpdateChainState) GetCoin() types.Coin

func (*MsgUpdateChainState) GetDecimal

func (m *MsgUpdateChainState) GetDecimal() uint32

func (*MsgUpdateChainState) GetOperator

func (m *MsgUpdateChainState) GetOperator() string

func (MsgUpdateChainState) GetSigners

func (msg MsgUpdateChainState) GetSigners() []sdk.AccAddress

func (*MsgUpdateChainState) Marshal

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

func (*MsgUpdateChainState) MarshalTo

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

func (*MsgUpdateChainState) MarshalToSizedBuffer

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

func (*MsgUpdateChainState) ProtoMessage

func (*MsgUpdateChainState) ProtoMessage()

func (*MsgUpdateChainState) Reset

func (m *MsgUpdateChainState) Reset()

func (*MsgUpdateChainState) Size

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

func (*MsgUpdateChainState) String

func (m *MsgUpdateChainState) String() string

func (*MsgUpdateChainState) Unmarshal

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

func (MsgUpdateChainState) ValidateBasic

func (msg MsgUpdateChainState) ValidateBasic() error

func (*MsgUpdateChainState) XXX_DiscardUnknown

func (m *MsgUpdateChainState) XXX_DiscardUnknown()

func (*MsgUpdateChainState) XXX_Marshal

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

func (*MsgUpdateChainState) XXX_Merge

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

func (*MsgUpdateChainState) XXX_Size

func (m *MsgUpdateChainState) XXX_Size() int

func (*MsgUpdateChainState) XXX_Unmarshal

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

type MsgUpdateChainStateResponse

type MsgUpdateChainStateResponse struct {
	Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
}

func (*MsgUpdateChainStateResponse) Descriptor

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

func (*MsgUpdateChainStateResponse) GetSuccess

func (m *MsgUpdateChainStateResponse) GetSuccess() bool

func (*MsgUpdateChainStateResponse) Marshal

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

func (*MsgUpdateChainStateResponse) MarshalTo

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

func (*MsgUpdateChainStateResponse) MarshalToSizedBuffer

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

func (*MsgUpdateChainStateResponse) ProtoMessage

func (*MsgUpdateChainStateResponse) ProtoMessage()

func (*MsgUpdateChainStateResponse) Reset

func (m *MsgUpdateChainStateResponse) Reset()

func (*MsgUpdateChainStateResponse) Size

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

func (*MsgUpdateChainStateResponse) String

func (m *MsgUpdateChainStateResponse) String() string

func (*MsgUpdateChainStateResponse) Unmarshal

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

func (*MsgUpdateChainStateResponse) XXX_DiscardUnknown

func (m *MsgUpdateChainStateResponse) XXX_DiscardUnknown()

func (*MsgUpdateChainStateResponse) XXX_Marshal

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

func (*MsgUpdateChainStateResponse) XXX_Merge

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

func (*MsgUpdateChainStateResponse) XXX_Size

func (m *MsgUpdateChainStateResponse) XXX_Size() int

func (*MsgUpdateChainStateResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// oracle operator's address.
	OracleOperators []string `protobuf:"bytes,1,rep,name=oracle_operators,json=oracleOperators,proto3" json:"oracle_operators,omitempty" yaml:"address"`
}

func DefaultParams

func DefaultParams() Params

func NewParams

func NewParams(operators []string) Params

func (*Params) Descriptor

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

func (*Params) GetOracleOperators

func (m *Params) GetOracleOperators() []string

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (p *Params) String() string

func (*Params) Unmarshal

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

func (*Params) Validate

func (p *Params) Validate() error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Params returns the total set of minting parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	State(ctx context.Context, in *QueryStateRequest, opts ...grpc.CallOption) (*QueryStateResponse, 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 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 defines the parameters of the module.
	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 {
	// Params returns the total set of minting parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	State(context.Context, *QueryStateRequest) (*QueryStateResponse, error)
}

QueryServer is the server API for Query service.

type QueryStateRequest

type QueryStateRequest struct {
	ChainDenom string `protobuf:"bytes,1,opt,name=chain_denom,json=chainDenom,proto3" json:"chain_denom,omitempty" yaml:"chain_denom"`
}

func NewQueryChainStateRequest

func NewQueryChainStateRequest(chainDenom string) *QueryStateRequest

func (*QueryStateRequest) Descriptor

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

func (*QueryStateRequest) GetChainDenom

func (m *QueryStateRequest) GetChainDenom() string

func (*QueryStateRequest) Marshal

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

func (*QueryStateRequest) MarshalTo

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

func (*QueryStateRequest) MarshalToSizedBuffer

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

func (*QueryStateRequest) ProtoMessage

func (*QueryStateRequest) ProtoMessage()

func (*QueryStateRequest) Reset

func (m *QueryStateRequest) Reset()

func (*QueryStateRequest) Size

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

func (*QueryStateRequest) String

func (m *QueryStateRequest) String() string

func (*QueryStateRequest) Unmarshal

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

func (*QueryStateRequest) XXX_DiscardUnknown

func (m *QueryStateRequest) XXX_DiscardUnknown()

func (*QueryStateRequest) XXX_Marshal

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

func (*QueryStateRequest) XXX_Merge

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

func (*QueryStateRequest) XXX_Size

func (m *QueryStateRequest) XXX_Size() int

func (*QueryStateRequest) XXX_Unmarshal

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

type QueryStateResponse

type QueryStateResponse struct {
	Coin            types.Coin `protobuf:"bytes,1,opt,name=coin,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"coin" yaml:"coin"`
	Operator        string     `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty" yaml:"operator"`
	Decimal         uint32     `protobuf:"varint,3,opt,name=decimal,proto3" json:"decimal,omitempty" yaml:"decimal"`
	LastBlockHeight int64      `` /* 134-byte string literal not displayed */
	AppHash         []byte     `protobuf:"bytes,5,opt,name=app_hash,json=appHash,proto3" json:"app_hash,omitempty" yaml:"app_hash"`
	ChainId         string     `protobuf:"bytes,6,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty" yaml:"chain_id"`
}

func (*QueryStateResponse) Descriptor

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

func (*QueryStateResponse) GetAppHash

func (m *QueryStateResponse) GetAppHash() []byte

func (*QueryStateResponse) GetChainId

func (m *QueryStateResponse) GetChainId() string

func (*QueryStateResponse) GetCoin

func (m *QueryStateResponse) GetCoin() types.Coin

func (*QueryStateResponse) GetDecimal

func (m *QueryStateResponse) GetDecimal() uint32

func (*QueryStateResponse) GetLastBlockHeight

func (m *QueryStateResponse) GetLastBlockHeight() int64

func (*QueryStateResponse) GetOperator

func (m *QueryStateResponse) GetOperator() string

func (*QueryStateResponse) Marshal

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

func (*QueryStateResponse) MarshalTo

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

func (*QueryStateResponse) MarshalToSizedBuffer

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

func (*QueryStateResponse) ProtoMessage

func (*QueryStateResponse) ProtoMessage()

func (*QueryStateResponse) Reset

func (m *QueryStateResponse) Reset()

func (*QueryStateResponse) Size

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

func (*QueryStateResponse) String

func (m *QueryStateResponse) String() string

func (*QueryStateResponse) Unmarshal

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

func (*QueryStateResponse) XXX_DiscardUnknown

func (m *QueryStateResponse) XXX_DiscardUnknown()

func (*QueryStateResponse) XXX_Marshal

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

func (*QueryStateResponse) XXX_Merge

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

func (*QueryStateResponse) XXX_Size

func (m *QueryStateResponse) XXX_Size() int

func (*QueryStateResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) UpdateChainState

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) State

Jump to

Keyboard shortcuts

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