types

package
v4.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeTimeout = "timeout"

	AttributeKeyAckSuccess = "success"
	AttributeKeyAck        = "acknowledgement"
	AttributeKeyAckError   = "error"
)

IBC events

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

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

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

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

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_icacallbacks"

	// Version defines the current version the IBC module supports
	Version = "icacallbacks-1"

	// PortID is the default port id that module binds to
	PortID = "icacallbacks"
)
View Source
const (
	// CallbackDataKeyPrefix is the prefix to retrieve all CallbackData
	CallbackDataKeyPrefix = "CallbackData/value/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

Variables

View Source
var (
	ErrInvalidLengthCallbackData        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowCallbackData          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupCallbackData = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample                  = sdkerrors.Register(ModuleName, 1100, "sample error")
	ErrInvalidPacketTimeout    = sdkerrors.Register(ModuleName, 1500, "invalid packet timeout")
	ErrInvalidVersion          = sdkerrors.Register(ModuleName, 1501, "invalid version")
	ErrCallbackHandlerNotFound = sdkerrors.Register(ModuleName, 1502, "icacallback handler not found")
	ErrCallbackIdNotFound      = sdkerrors.Register(ModuleName, 1503, "icacallback ID not found")
	ErrCallbackFailed          = sdkerrors.Register(ModuleName, 1504, "icacallback failed")
	ErrCallbackDataNotFound    = sdkerrors.Register(ModuleName, 1505, "icacallback data not found")
	ErrTxMsgData               = sdkerrors.Register(ModuleName, 1506, "txMsgData fetch failed")
)

x/icacallbacks 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 (
	ErrInvalidLengthPacket        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPacket          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPacket = 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 PortKey = KeyPrefix("icacallbacks-port-")

PortKey defines the key to store the port ID in store

Functions

func CallbackDataKey

func CallbackDataKey(
	callbackKey string,
) []byte

CallbackDataKey returns the store key to retrieve a CallbackData from the index fields

func KeyPrefix

func KeyPrefix(p string) []byte

func PacketID

func PacketID(portID string, channelID string, sequence uint64) string

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 CallbackData

type CallbackData struct {
	CallbackKey  string `protobuf:"bytes,1,opt,name=callback_key,json=callbackKey,proto3" json:"callback_key,omitempty"`
	PortId       string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	ChannelId    string `protobuf:"bytes,3,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	Sequence     uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"`
	CallbackId   string `protobuf:"bytes,5,opt,name=callback_id,json=callbackId,proto3" json:"callback_id,omitempty"`
	CallbackArgs []byte `protobuf:"bytes,6,opt,name=callback_args,json=callbackArgs,proto3" json:"callback_args,omitempty"`
}

func (*CallbackData) Descriptor

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

func (*CallbackData) GetCallbackArgs

func (m *CallbackData) GetCallbackArgs() []byte

func (*CallbackData) GetCallbackId

func (m *CallbackData) GetCallbackId() string

func (*CallbackData) GetCallbackKey

func (m *CallbackData) GetCallbackKey() string

func (*CallbackData) GetChannelId

func (m *CallbackData) GetChannelId() string

func (*CallbackData) GetPortId

func (m *CallbackData) GetPortId() string

func (*CallbackData) GetSequence

func (m *CallbackData) GetSequence() uint64

func (*CallbackData) Marshal

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

func (*CallbackData) MarshalTo

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

func (*CallbackData) MarshalToSizedBuffer

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

func (*CallbackData) ProtoMessage

func (*CallbackData) ProtoMessage()

func (*CallbackData) Reset

func (m *CallbackData) Reset()

func (*CallbackData) Size

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

func (*CallbackData) String

func (m *CallbackData) String() string

func (*CallbackData) Unmarshal

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

func (*CallbackData) XXX_DiscardUnknown

func (m *CallbackData) XXX_DiscardUnknown()

func (*CallbackData) XXX_Marshal

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

func (*CallbackData) XXX_Merge

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

func (*CallbackData) XXX_Size

func (m *CallbackData) XXX_Size() int

func (*CallbackData) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params           Params         `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	PortId           string         `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	CallbackDataList []CallbackData `protobuf:"bytes,3,rep,name=callback_data_list,json=callbackDataList,proto3" json:"callback_data_list"`
}

GenesisState defines the icacallbacks module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetCallbackDataList

func (m *GenesisState) GetCallbackDataList() []CallbackData

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPortId

func (m *GenesisState) GetPortId() string

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 ICACallbackHandler

type ICACallbackHandler interface {
	AddICACallback(id string, fn interface{}) ICACallbackHandler
	RegisterICACallbacks() ICACallbackHandler
	CallICACallback(ctx sdk.Context, id string, packet channeltypes.Packet, ack *channeltypes.Acknowledgement, args []byte) error
	HasICACallback(id string) bool
}

type IcacallbacksPacketData

type IcacallbacksPacketData struct {
	// Types that are valid to be assigned to Packet:
	//	*IcacallbacksPacketData_NoData
	Packet isIcacallbacksPacketData_Packet `protobuf_oneof:"packet"`
}

func (*IcacallbacksPacketData) Descriptor

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

func (*IcacallbacksPacketData) GetNoData

func (m *IcacallbacksPacketData) GetNoData() *NoData

func (*IcacallbacksPacketData) GetPacket

func (m *IcacallbacksPacketData) GetPacket() isIcacallbacksPacketData_Packet

func (*IcacallbacksPacketData) Marshal

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

func (*IcacallbacksPacketData) MarshalTo

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

func (*IcacallbacksPacketData) MarshalToSizedBuffer

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

func (*IcacallbacksPacketData) ProtoMessage

func (*IcacallbacksPacketData) ProtoMessage()

func (*IcacallbacksPacketData) Reset

func (m *IcacallbacksPacketData) Reset()

func (*IcacallbacksPacketData) Size

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

func (*IcacallbacksPacketData) String

func (m *IcacallbacksPacketData) String() string

func (*IcacallbacksPacketData) Unmarshal

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

func (*IcacallbacksPacketData) XXX_DiscardUnknown

func (m *IcacallbacksPacketData) XXX_DiscardUnknown()

func (*IcacallbacksPacketData) XXX_Marshal

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

func (*IcacallbacksPacketData) XXX_Merge

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

func (*IcacallbacksPacketData) XXX_OneofWrappers

func (*IcacallbacksPacketData) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*IcacallbacksPacketData) XXX_Size

func (m *IcacallbacksPacketData) XXX_Size() int

func (*IcacallbacksPacketData) XXX_Unmarshal

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

type IcacallbacksPacketData_NoData

type IcacallbacksPacketData_NoData struct {
	NoData *NoData `protobuf:"bytes,1,opt,name=no_data,json=noData,proto3,oneof" json:"no_data,omitempty"`
}

func (*IcacallbacksPacketData_NoData) MarshalTo

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

func (*IcacallbacksPacketData_NoData) MarshalToSizedBuffer

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

func (*IcacallbacksPacketData_NoData) Size

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

type MsgClient

type MsgClient interface {
}

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

MsgServer is the server API for Msg service.

type NoData

type NoData struct {
}

func (*NoData) Descriptor

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

func (*NoData) Marshal

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

func (*NoData) MarshalTo

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

func (*NoData) MarshalToSizedBuffer

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

func (*NoData) ProtoMessage

func (*NoData) ProtoMessage()

func (*NoData) Reset

func (m *NoData) Reset()

func (*NoData) Size

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

func (*NoData) String

func (m *NoData) String() string

func (*NoData) Unmarshal

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

func (*NoData) XXX_DiscardUnknown

func (m *NoData) XXX_DiscardUnknown()

func (*NoData) XXX_Marshal

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

func (*NoData) XXX_Merge

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

func (*NoData) XXX_Size

func (m *NoData) XXX_Size() int

func (*NoData) XXX_Unmarshal

func (m *NoData) 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 QueryAllCallbackDataRequest

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

func (*QueryAllCallbackDataRequest) Descriptor

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

func (*QueryAllCallbackDataRequest) GetPagination

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

func (*QueryAllCallbackDataRequest) Marshal

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

func (*QueryAllCallbackDataRequest) MarshalTo

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

func (*QueryAllCallbackDataRequest) MarshalToSizedBuffer

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

func (*QueryAllCallbackDataRequest) ProtoMessage

func (*QueryAllCallbackDataRequest) ProtoMessage()

func (*QueryAllCallbackDataRequest) Reset

func (m *QueryAllCallbackDataRequest) Reset()

func (*QueryAllCallbackDataRequest) Size

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

func (*QueryAllCallbackDataRequest) String

func (m *QueryAllCallbackDataRequest) String() string

func (*QueryAllCallbackDataRequest) Unmarshal

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

func (*QueryAllCallbackDataRequest) XXX_DiscardUnknown

func (m *QueryAllCallbackDataRequest) XXX_DiscardUnknown()

func (*QueryAllCallbackDataRequest) XXX_Marshal

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

func (*QueryAllCallbackDataRequest) XXX_Merge

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

func (*QueryAllCallbackDataRequest) XXX_Size

func (m *QueryAllCallbackDataRequest) XXX_Size() int

func (*QueryAllCallbackDataRequest) XXX_Unmarshal

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

type QueryAllCallbackDataResponse

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

func (*QueryAllCallbackDataResponse) Descriptor

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

func (*QueryAllCallbackDataResponse) GetCallbackData

func (m *QueryAllCallbackDataResponse) GetCallbackData() []CallbackData

func (*QueryAllCallbackDataResponse) GetPagination

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

func (*QueryAllCallbackDataResponse) Marshal

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

func (*QueryAllCallbackDataResponse) MarshalTo

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

func (*QueryAllCallbackDataResponse) MarshalToSizedBuffer

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

func (*QueryAllCallbackDataResponse) ProtoMessage

func (*QueryAllCallbackDataResponse) ProtoMessage()

func (*QueryAllCallbackDataResponse) Reset

func (m *QueryAllCallbackDataResponse) Reset()

func (*QueryAllCallbackDataResponse) Size

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

func (*QueryAllCallbackDataResponse) String

func (*QueryAllCallbackDataResponse) Unmarshal

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

func (*QueryAllCallbackDataResponse) XXX_DiscardUnknown

func (m *QueryAllCallbackDataResponse) XXX_DiscardUnknown()

func (*QueryAllCallbackDataResponse) XXX_Marshal

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

func (*QueryAllCallbackDataResponse) XXX_Merge

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

func (*QueryAllCallbackDataResponse) XXX_Size

func (m *QueryAllCallbackDataResponse) XXX_Size() int

func (*QueryAllCallbackDataResponse) XXX_Unmarshal

func (m *QueryAllCallbackDataResponse) 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 CallbackData by index.
	CallbackData(ctx context.Context, in *QueryGetCallbackDataRequest, opts ...grpc.CallOption) (*QueryGetCallbackDataResponse, error)
	// Queries a list of CallbackData items.
	CallbackDataAll(ctx context.Context, in *QueryAllCallbackDataRequest, opts ...grpc.CallOption) (*QueryAllCallbackDataResponse, 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 QueryGetCallbackDataRequest

type QueryGetCallbackDataRequest struct {
	CallbackKey string `protobuf:"bytes,1,opt,name=callback_key,json=callbackKey,proto3" json:"callback_key,omitempty"`
}

func (*QueryGetCallbackDataRequest) Descriptor

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

func (*QueryGetCallbackDataRequest) GetCallbackKey

func (m *QueryGetCallbackDataRequest) GetCallbackKey() string

func (*QueryGetCallbackDataRequest) Marshal

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

func (*QueryGetCallbackDataRequest) MarshalTo

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

func (*QueryGetCallbackDataRequest) MarshalToSizedBuffer

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

func (*QueryGetCallbackDataRequest) ProtoMessage

func (*QueryGetCallbackDataRequest) ProtoMessage()

func (*QueryGetCallbackDataRequest) Reset

func (m *QueryGetCallbackDataRequest) Reset()

func (*QueryGetCallbackDataRequest) Size

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

func (*QueryGetCallbackDataRequest) String

func (m *QueryGetCallbackDataRequest) String() string

func (*QueryGetCallbackDataRequest) Unmarshal

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

func (*QueryGetCallbackDataRequest) XXX_DiscardUnknown

func (m *QueryGetCallbackDataRequest) XXX_DiscardUnknown()

func (*QueryGetCallbackDataRequest) XXX_Marshal

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

func (*QueryGetCallbackDataRequest) XXX_Merge

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

func (*QueryGetCallbackDataRequest) XXX_Size

func (m *QueryGetCallbackDataRequest) XXX_Size() int

func (*QueryGetCallbackDataRequest) XXX_Unmarshal

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

type QueryGetCallbackDataResponse

type QueryGetCallbackDataResponse struct {
	CallbackData CallbackData `protobuf:"bytes,1,opt,name=callback_data,json=callbackData,proto3" json:"callback_data"`
}

func (*QueryGetCallbackDataResponse) Descriptor

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

func (*QueryGetCallbackDataResponse) GetCallbackData

func (m *QueryGetCallbackDataResponse) GetCallbackData() CallbackData

func (*QueryGetCallbackDataResponse) Marshal

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

func (*QueryGetCallbackDataResponse) MarshalTo

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

func (*QueryGetCallbackDataResponse) MarshalToSizedBuffer

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

func (*QueryGetCallbackDataResponse) ProtoMessage

func (*QueryGetCallbackDataResponse) ProtoMessage()

func (*QueryGetCallbackDataResponse) Reset

func (m *QueryGetCallbackDataResponse) Reset()

func (*QueryGetCallbackDataResponse) Size

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

func (*QueryGetCallbackDataResponse) String

func (*QueryGetCallbackDataResponse) Unmarshal

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

func (*QueryGetCallbackDataResponse) XXX_DiscardUnknown

func (m *QueryGetCallbackDataResponse) XXX_DiscardUnknown()

func (*QueryGetCallbackDataResponse) XXX_Marshal

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

func (*QueryGetCallbackDataResponse) XXX_Merge

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

func (*QueryGetCallbackDataResponse) XXX_Size

func (m *QueryGetCallbackDataResponse) XXX_Size() int

func (*QueryGetCallbackDataResponse) XXX_Unmarshal

func (m *QueryGetCallbackDataResponse) 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 CallbackData by index.
	CallbackData(context.Context, *QueryGetCallbackDataRequest) (*QueryGetCallbackDataResponse, error)
	// Queries a list of CallbackData items.
	CallbackDataAll(context.Context, *QueryAllCallbackDataRequest) (*QueryAllCallbackDataResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CallbackData

func (*UnimplementedQueryServer) CallbackDataAll

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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