types

package
v0.0.0-...-3aeaace Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: Apache-2.0 Imports: 29 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 = "oracle"

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

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_oracle"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const TypeMsgBitcoinTxs = "bitcoin_txs"
View Source
const TypeMsgCosmoshubTxs = "cosmoshub_txs"
View Source
const TypeMsgEthereumTxs = "ethereum_txs"

Variables

View Source
var (
	ErrSample       = sdkerrors.Register(ModuleName, errSample, "sample error")
	ErrWrongAddress = sdkerrors.Register(ModuleName, errWrongAddress, "The account address provided does not match the creator of the oracle")
)

x/oracle module sentinel errors

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 (
	MultiChainTxOracleKey      = []byte{0x01}
	MultiChainTxOracleCountKey = []byte{0x02}
)
View Source
var (
	ErrInvalidLengthMultiChainTxOracle        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMultiChainTxOracle          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMultiChainTxOracle = 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")
)

Functions

func GetMultiChainTxOracleCountKey

func GetMultiChainTxOracleCountKey() []byte

func GetMultiChainTxOracleKey

func GetMultiChainTxOracleKey() []byte

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

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 AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type FixKeeper

type FixKeeper interface {
}

type GenesisState

type GenesisState struct {
	Params                  Params               `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	MultiChainTxOracleList  []MultiChainTxOracle `protobuf:"bytes,2,rep,name=multiChainTxOracleList,proto3" json:"multiChainTxOracleList"`
	MultiChainTxOracleCount uint64               `protobuf:"varint,3,opt,name=multiChainTxOracleCount,proto3" json:"multiChainTxOracleCount,omitempty"`
}

GenesisState defines the oracle module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetMultiChainTxOracleCount

func (m *GenesisState) GetMultiChainTxOracleCount() uint64

func (*GenesisState) GetMultiChainTxOracleList

func (m *GenesisState) GetMultiChainTxOracleList() []MultiChainTxOracle

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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 MsgBitcoinTxs

type MsgBitcoinTxs struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	OracleID string `protobuf:"bytes,2,opt,name=oracleID,proto3" json:"oracleID,omitempty"`
	Address  string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
}

func NewMsgBitcoinTxs

func NewMsgBitcoinTxs(creator string, oracleID string, address string) *MsgBitcoinTxs

func (*MsgBitcoinTxs) Descriptor

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

func (*MsgBitcoinTxs) GetAddress

func (m *MsgBitcoinTxs) GetAddress() string

func (*MsgBitcoinTxs) GetCreator

func (m *MsgBitcoinTxs) GetCreator() string

func (*MsgBitcoinTxs) GetOracleID

func (m *MsgBitcoinTxs) GetOracleID() string

func (*MsgBitcoinTxs) GetSignBytes

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

func (*MsgBitcoinTxs) GetSigners

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

func (*MsgBitcoinTxs) Marshal

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

func (*MsgBitcoinTxs) MarshalTo

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

func (*MsgBitcoinTxs) MarshalToSizedBuffer

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

func (*MsgBitcoinTxs) ProtoMessage

func (*MsgBitcoinTxs) ProtoMessage()

func (*MsgBitcoinTxs) Reset

func (m *MsgBitcoinTxs) Reset()

func (*MsgBitcoinTxs) Route

func (msg *MsgBitcoinTxs) Route() string

func (*MsgBitcoinTxs) Size

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

func (*MsgBitcoinTxs) String

func (m *MsgBitcoinTxs) String() string

func (*MsgBitcoinTxs) Type

func (msg *MsgBitcoinTxs) Type() string

func (*MsgBitcoinTxs) Unmarshal

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

func (*MsgBitcoinTxs) ValidateBasic

func (msg *MsgBitcoinTxs) ValidateBasic() error

func (*MsgBitcoinTxs) XXX_DiscardUnknown

func (m *MsgBitcoinTxs) XXX_DiscardUnknown()

func (*MsgBitcoinTxs) XXX_Marshal

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

func (*MsgBitcoinTxs) XXX_Merge

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

func (*MsgBitcoinTxs) XXX_Size

func (m *MsgBitcoinTxs) XXX_Size() int

func (*MsgBitcoinTxs) XXX_Unmarshal

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

type MsgBitcoinTxsResponse

type MsgBitcoinTxsResponse struct {
}

func (*MsgBitcoinTxsResponse) Descriptor

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

func (*MsgBitcoinTxsResponse) Marshal

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

func (*MsgBitcoinTxsResponse) MarshalTo

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

func (*MsgBitcoinTxsResponse) MarshalToSizedBuffer

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

func (*MsgBitcoinTxsResponse) ProtoMessage

func (*MsgBitcoinTxsResponse) ProtoMessage()

func (*MsgBitcoinTxsResponse) Reset

func (m *MsgBitcoinTxsResponse) Reset()

func (*MsgBitcoinTxsResponse) Size

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

func (*MsgBitcoinTxsResponse) String

func (m *MsgBitcoinTxsResponse) String() string

func (*MsgBitcoinTxsResponse) Unmarshal

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

func (*MsgBitcoinTxsResponse) XXX_DiscardUnknown

func (m *MsgBitcoinTxsResponse) XXX_DiscardUnknown()

func (*MsgBitcoinTxsResponse) XXX_Marshal

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

func (*MsgBitcoinTxsResponse) XXX_Merge

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

func (*MsgBitcoinTxsResponse) XXX_Size

func (m *MsgBitcoinTxsResponse) XXX_Size() int

func (*MsgBitcoinTxsResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	CosmoshubTxs(ctx context.Context, in *MsgCosmoshubTxs, opts ...grpc.CallOption) (*MsgCosmoshubTxsResponse, error)
	BitcoinTxs(ctx context.Context, in *MsgBitcoinTxs, opts ...grpc.CallOption) (*MsgBitcoinTxsResponse, error)
	EthereumTxs(ctx context.Context, in *MsgEthereumTxs, opts ...grpc.CallOption) (*MsgEthereumTxsResponse, 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 MsgCosmoshubTxs

type MsgCosmoshubTxs struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	OracleID string `protobuf:"bytes,2,opt,name=oracleID,proto3" json:"oracleID,omitempty"`
	Address  string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
}

func NewMsgCosmoshubTxs

func NewMsgCosmoshubTxs(creator string, oracleID string, address string) *MsgCosmoshubTxs

func (*MsgCosmoshubTxs) Descriptor

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

func (*MsgCosmoshubTxs) GetAddress

func (m *MsgCosmoshubTxs) GetAddress() string

func (*MsgCosmoshubTxs) GetCreator

func (m *MsgCosmoshubTxs) GetCreator() string

func (*MsgCosmoshubTxs) GetOracleID

func (m *MsgCosmoshubTxs) GetOracleID() string

func (*MsgCosmoshubTxs) GetSignBytes

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

func (*MsgCosmoshubTxs) GetSigners

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

func (*MsgCosmoshubTxs) Marshal

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

func (*MsgCosmoshubTxs) MarshalTo

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

func (*MsgCosmoshubTxs) MarshalToSizedBuffer

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

func (*MsgCosmoshubTxs) ProtoMessage

func (*MsgCosmoshubTxs) ProtoMessage()

func (*MsgCosmoshubTxs) Reset

func (m *MsgCosmoshubTxs) Reset()

func (*MsgCosmoshubTxs) Route

func (msg *MsgCosmoshubTxs) Route() string

func (*MsgCosmoshubTxs) Size

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

func (*MsgCosmoshubTxs) String

func (m *MsgCosmoshubTxs) String() string

func (*MsgCosmoshubTxs) Type

func (msg *MsgCosmoshubTxs) Type() string

func (*MsgCosmoshubTxs) Unmarshal

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

func (*MsgCosmoshubTxs) ValidateBasic

func (msg *MsgCosmoshubTxs) ValidateBasic() error

func (*MsgCosmoshubTxs) XXX_DiscardUnknown

func (m *MsgCosmoshubTxs) XXX_DiscardUnknown()

func (*MsgCosmoshubTxs) XXX_Marshal

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

func (*MsgCosmoshubTxs) XXX_Merge

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

func (*MsgCosmoshubTxs) XXX_Size

func (m *MsgCosmoshubTxs) XXX_Size() int

func (*MsgCosmoshubTxs) XXX_Unmarshal

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

type MsgCosmoshubTxsResponse

type MsgCosmoshubTxsResponse struct {
}

func (*MsgCosmoshubTxsResponse) Descriptor

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

func (*MsgCosmoshubTxsResponse) Marshal

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

func (*MsgCosmoshubTxsResponse) MarshalTo

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

func (*MsgCosmoshubTxsResponse) MarshalToSizedBuffer

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

func (*MsgCosmoshubTxsResponse) ProtoMessage

func (*MsgCosmoshubTxsResponse) ProtoMessage()

func (*MsgCosmoshubTxsResponse) Reset

func (m *MsgCosmoshubTxsResponse) Reset()

func (*MsgCosmoshubTxsResponse) Size

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

func (*MsgCosmoshubTxsResponse) String

func (m *MsgCosmoshubTxsResponse) String() string

func (*MsgCosmoshubTxsResponse) Unmarshal

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

func (*MsgCosmoshubTxsResponse) XXX_DiscardUnknown

func (m *MsgCosmoshubTxsResponse) XXX_DiscardUnknown()

func (*MsgCosmoshubTxsResponse) XXX_Marshal

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

func (*MsgCosmoshubTxsResponse) XXX_Merge

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

func (*MsgCosmoshubTxsResponse) XXX_Size

func (m *MsgCosmoshubTxsResponse) XXX_Size() int

func (*MsgCosmoshubTxsResponse) XXX_Unmarshal

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

type MsgEthereumTxs

type MsgEthereumTxs struct {
	Creator  string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	OracleID string `protobuf:"bytes,2,opt,name=oracleID,proto3" json:"oracleID,omitempty"`
	Address  string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
}

func NewMsgEthereumTxs

func NewMsgEthereumTxs(creator string, oracleID string, address string) *MsgEthereumTxs

func (*MsgEthereumTxs) Descriptor

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

func (*MsgEthereumTxs) GetAddress

func (m *MsgEthereumTxs) GetAddress() string

func (*MsgEthereumTxs) GetCreator

func (m *MsgEthereumTxs) GetCreator() string

func (*MsgEthereumTxs) GetOracleID

func (m *MsgEthereumTxs) GetOracleID() string

func (*MsgEthereumTxs) GetSignBytes

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

func (*MsgEthereumTxs) GetSigners

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

func (*MsgEthereumTxs) Marshal

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

func (*MsgEthereumTxs) MarshalTo

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

func (*MsgEthereumTxs) MarshalToSizedBuffer

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

func (*MsgEthereumTxs) ProtoMessage

func (*MsgEthereumTxs) ProtoMessage()

func (*MsgEthereumTxs) Reset

func (m *MsgEthereumTxs) Reset()

func (*MsgEthereumTxs) Route

func (msg *MsgEthereumTxs) Route() string

func (*MsgEthereumTxs) Size

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

func (*MsgEthereumTxs) String

func (m *MsgEthereumTxs) String() string

func (*MsgEthereumTxs) Type

func (msg *MsgEthereumTxs) Type() string

func (*MsgEthereumTxs) Unmarshal

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

func (*MsgEthereumTxs) ValidateBasic

func (msg *MsgEthereumTxs) ValidateBasic() error

func (*MsgEthereumTxs) XXX_DiscardUnknown

func (m *MsgEthereumTxs) XXX_DiscardUnknown()

func (*MsgEthereumTxs) XXX_Marshal

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

func (*MsgEthereumTxs) XXX_Merge

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

func (*MsgEthereumTxs) XXX_Size

func (m *MsgEthereumTxs) XXX_Size() int

func (*MsgEthereumTxs) XXX_Unmarshal

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

type MsgEthereumTxsResponse

type MsgEthereumTxsResponse struct {
}

func (*MsgEthereumTxsResponse) Descriptor

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

func (*MsgEthereumTxsResponse) Marshal

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

func (*MsgEthereumTxsResponse) MarshalTo

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

func (*MsgEthereumTxsResponse) MarshalToSizedBuffer

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

func (*MsgEthereumTxsResponse) ProtoMessage

func (*MsgEthereumTxsResponse) ProtoMessage()

func (*MsgEthereumTxsResponse) Reset

func (m *MsgEthereumTxsResponse) Reset()

func (*MsgEthereumTxsResponse) Size

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

func (*MsgEthereumTxsResponse) String

func (m *MsgEthereumTxsResponse) String() string

func (*MsgEthereumTxsResponse) Unmarshal

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

func (*MsgEthereumTxsResponse) XXX_DiscardUnknown

func (m *MsgEthereumTxsResponse) XXX_DiscardUnknown()

func (*MsgEthereumTxsResponse) XXX_Marshal

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

func (*MsgEthereumTxsResponse) XXX_Merge

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

func (*MsgEthereumTxsResponse) XXX_Size

func (m *MsgEthereumTxsResponse) XXX_Size() int

func (*MsgEthereumTxsResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MultiChainTxOracle

type MultiChainTxOracle struct {
	OracleID  string `protobuf:"bytes,1,opt,name=oracleID,proto3" json:"oracleID,omitempty"`
	Address   string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Timestamp string `protobuf:"bytes,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
}

func (*MultiChainTxOracle) Descriptor

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

func (*MultiChainTxOracle) GetAddress

func (m *MultiChainTxOracle) GetAddress() string

func (*MultiChainTxOracle) GetOracleID

func (m *MultiChainTxOracle) GetOracleID() string

func (*MultiChainTxOracle) GetTimestamp

func (m *MultiChainTxOracle) GetTimestamp() string

func (*MultiChainTxOracle) Marshal

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

func (*MultiChainTxOracle) MarshalTo

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

func (*MultiChainTxOracle) MarshalToSizedBuffer

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

func (*MultiChainTxOracle) ProtoMessage

func (*MultiChainTxOracle) ProtoMessage()

func (*MultiChainTxOracle) Reset

func (m *MultiChainTxOracle) Reset()

func (*MultiChainTxOracle) Size

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

func (*MultiChainTxOracle) String

func (m *MultiChainTxOracle) String() string

func (*MultiChainTxOracle) Unmarshal

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

func (*MultiChainTxOracle) XXX_DiscardUnknown

func (m *MultiChainTxOracle) XXX_DiscardUnknown()

func (*MultiChainTxOracle) XXX_Marshal

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

func (*MultiChainTxOracle) XXX_Merge

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

func (*MultiChainTxOracle) XXX_Size

func (m *MultiChainTxOracle) XXX_Size() int

func (*MultiChainTxOracle) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

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

ParamSetPairs get the params.ParamSet

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

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

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 QueryAllMultiChainTxOracleRequest

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

func (*QueryAllMultiChainTxOracleRequest) Descriptor

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

func (*QueryAllMultiChainTxOracleRequest) GetPagination

func (*QueryAllMultiChainTxOracleRequest) Marshal

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

func (*QueryAllMultiChainTxOracleRequest) MarshalTo

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

func (*QueryAllMultiChainTxOracleRequest) MarshalToSizedBuffer

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

func (*QueryAllMultiChainTxOracleRequest) ProtoMessage

func (*QueryAllMultiChainTxOracleRequest) ProtoMessage()

func (*QueryAllMultiChainTxOracleRequest) Reset

func (*QueryAllMultiChainTxOracleRequest) Size

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

func (*QueryAllMultiChainTxOracleRequest) String

func (*QueryAllMultiChainTxOracleRequest) Unmarshal

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

func (*QueryAllMultiChainTxOracleRequest) XXX_DiscardUnknown

func (m *QueryAllMultiChainTxOracleRequest) XXX_DiscardUnknown()

func (*QueryAllMultiChainTxOracleRequest) XXX_Marshal

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

func (*QueryAllMultiChainTxOracleRequest) XXX_Merge

func (*QueryAllMultiChainTxOracleRequest) XXX_Size

func (m *QueryAllMultiChainTxOracleRequest) XXX_Size() int

func (*QueryAllMultiChainTxOracleRequest) XXX_Unmarshal

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

type QueryAllMultiChainTxOracleResponse

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

func (*QueryAllMultiChainTxOracleResponse) Descriptor

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

func (*QueryAllMultiChainTxOracleResponse) GetMultiChainTxOracle

func (m *QueryAllMultiChainTxOracleResponse) GetMultiChainTxOracle() []MultiChainTxOracle

func (*QueryAllMultiChainTxOracleResponse) GetPagination

func (*QueryAllMultiChainTxOracleResponse) Marshal

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

func (*QueryAllMultiChainTxOracleResponse) MarshalTo

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

func (*QueryAllMultiChainTxOracleResponse) MarshalToSizedBuffer

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

func (*QueryAllMultiChainTxOracleResponse) ProtoMessage

func (*QueryAllMultiChainTxOracleResponse) ProtoMessage()

func (*QueryAllMultiChainTxOracleResponse) Reset

func (*QueryAllMultiChainTxOracleResponse) Size

func (*QueryAllMultiChainTxOracleResponse) String

func (*QueryAllMultiChainTxOracleResponse) Unmarshal

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

func (*QueryAllMultiChainTxOracleResponse) XXX_DiscardUnknown

func (m *QueryAllMultiChainTxOracleResponse) XXX_DiscardUnknown()

func (*QueryAllMultiChainTxOracleResponse) XXX_Marshal

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

func (*QueryAllMultiChainTxOracleResponse) XXX_Merge

func (*QueryAllMultiChainTxOracleResponse) XXX_Size

func (*QueryAllMultiChainTxOracleResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of MultiChainTxOracle items.
	MultiChainTxOracle(ctx context.Context, in *QueryGetMultiChainTxOracleRequest, opts ...grpc.CallOption) (*QueryGetMultiChainTxOracleResponse, error)
	MultiChainTxOracleAll(ctx context.Context, in *QueryAllMultiChainTxOracleRequest, opts ...grpc.CallOption) (*QueryAllMultiChainTxOracleResponse, 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 QueryGetMultiChainTxOracleRequest

type QueryGetMultiChainTxOracleRequest struct {
	OracleID string `protobuf:"bytes,1,opt,name=oracleID,proto3" json:"oracleID,omitempty"`
}

func (*QueryGetMultiChainTxOracleRequest) Descriptor

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

func (*QueryGetMultiChainTxOracleRequest) GetOracleID

func (m *QueryGetMultiChainTxOracleRequest) GetOracleID() string

func (*QueryGetMultiChainTxOracleRequest) Marshal

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

func (*QueryGetMultiChainTxOracleRequest) MarshalTo

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

func (*QueryGetMultiChainTxOracleRequest) MarshalToSizedBuffer

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

func (*QueryGetMultiChainTxOracleRequest) ProtoMessage

func (*QueryGetMultiChainTxOracleRequest) ProtoMessage()

func (*QueryGetMultiChainTxOracleRequest) Reset

func (*QueryGetMultiChainTxOracleRequest) Size

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

func (*QueryGetMultiChainTxOracleRequest) String

func (*QueryGetMultiChainTxOracleRequest) Unmarshal

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

func (*QueryGetMultiChainTxOracleRequest) XXX_DiscardUnknown

func (m *QueryGetMultiChainTxOracleRequest) XXX_DiscardUnknown()

func (*QueryGetMultiChainTxOracleRequest) XXX_Marshal

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

func (*QueryGetMultiChainTxOracleRequest) XXX_Merge

func (*QueryGetMultiChainTxOracleRequest) XXX_Size

func (m *QueryGetMultiChainTxOracleRequest) XXX_Size() int

func (*QueryGetMultiChainTxOracleRequest) XXX_Unmarshal

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

type QueryGetMultiChainTxOracleResponse

type QueryGetMultiChainTxOracleResponse struct {
	MultiChainTxOracle MultiChainTxOracle `protobuf:"bytes,1,opt,name=MultiChainTxOracle,proto3" json:"MultiChainTxOracle"`
}

func (*QueryGetMultiChainTxOracleResponse) Descriptor

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

func (*QueryGetMultiChainTxOracleResponse) GetMultiChainTxOracle

func (m *QueryGetMultiChainTxOracleResponse) GetMultiChainTxOracle() MultiChainTxOracle

func (*QueryGetMultiChainTxOracleResponse) Marshal

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

func (*QueryGetMultiChainTxOracleResponse) MarshalTo

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

func (*QueryGetMultiChainTxOracleResponse) MarshalToSizedBuffer

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

func (*QueryGetMultiChainTxOracleResponse) ProtoMessage

func (*QueryGetMultiChainTxOracleResponse) ProtoMessage()

func (*QueryGetMultiChainTxOracleResponse) Reset

func (*QueryGetMultiChainTxOracleResponse) Size

func (*QueryGetMultiChainTxOracleResponse) String

func (*QueryGetMultiChainTxOracleResponse) Unmarshal

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

func (*QueryGetMultiChainTxOracleResponse) XXX_DiscardUnknown

func (m *QueryGetMultiChainTxOracleResponse) XXX_DiscardUnknown()

func (*QueryGetMultiChainTxOracleResponse) XXX_Marshal

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

func (*QueryGetMultiChainTxOracleResponse) XXX_Merge

func (*QueryGetMultiChainTxOracleResponse) XXX_Size

func (*QueryGetMultiChainTxOracleResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

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 holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

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 {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of MultiChainTxOracle items.
	MultiChainTxOracle(context.Context, *QueryGetMultiChainTxOracleRequest) (*QueryGetMultiChainTxOracleResponse, error)
	MultiChainTxOracleAll(context.Context, *QueryAllMultiChainTxOracleRequest) (*QueryAllMultiChainTxOracleResponse, 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) BitcoinTxs

func (*UnimplementedMsgServer) CosmoshubTxs

func (*UnimplementedMsgServer) EthereumTxs

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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