Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CallbackDataKey(callbackKey string) []byte
- func KeyPrefix(p string) []byte
- func PacketID(portID string, channelID string, sequence uint64) string
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type AckResponseStatus
- type AcknowledgementResponse
- type BankKeeper
- type CallbackData
- func (*CallbackData) Descriptor() ([]byte, []int)
- func (m *CallbackData) GetCallbackArgs() []byte
- func (m *CallbackData) GetCallbackId() string
- func (m *CallbackData) GetCallbackKey() string
- func (m *CallbackData) GetChannelId() string
- func (m *CallbackData) GetPortId() string
- func (m *CallbackData) GetSequence() uint64
- func (m *CallbackData) Marshal() (dAtA []byte, err error)
- func (m *CallbackData) MarshalTo(dAtA []byte) (int, error)
- func (m *CallbackData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CallbackData) ProtoMessage()
- func (m *CallbackData) Reset()
- func (m *CallbackData) Size() (n int)
- func (m *CallbackData) String() string
- func (m *CallbackData) Unmarshal(dAtA []byte) error
- func (m *CallbackData) XXX_DiscardUnknown()
- func (m *CallbackData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CallbackData) XXX_Merge(src proto.Message)
- func (m *CallbackData) XXX_Size() int
- func (m *CallbackData) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCallbackDataList() []CallbackData
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPortId() string
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type ICACallback
- type ICACallbackFunction
- type IcacallbacksPacketData
- func (*IcacallbacksPacketData) Descriptor() ([]byte, []int)
- func (m *IcacallbacksPacketData) GetNoData() *NoData
- func (m *IcacallbacksPacketData) GetPacket() isIcacallbacksPacketData_Packet
- func (m *IcacallbacksPacketData) Marshal() (dAtA []byte, err error)
- func (m *IcacallbacksPacketData) MarshalTo(dAtA []byte) (int, error)
- func (m *IcacallbacksPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IcacallbacksPacketData) ProtoMessage()
- func (m *IcacallbacksPacketData) Reset()
- func (m *IcacallbacksPacketData) Size() (n int)
- func (m *IcacallbacksPacketData) String() string
- func (m *IcacallbacksPacketData) Unmarshal(dAtA []byte) error
- func (m *IcacallbacksPacketData) XXX_DiscardUnknown()
- func (m *IcacallbacksPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IcacallbacksPacketData) XXX_Merge(src proto.Message)
- func (*IcacallbacksPacketData) XXX_OneofWrappers() []interface{}
- func (m *IcacallbacksPacketData) XXX_Size() int
- func (m *IcacallbacksPacketData) XXX_Unmarshal(b []byte) error
- type IcacallbacksPacketData_NoData
- type ModuleCallbacks
- type MsgClient
- type MsgServer
- type NoData
- func (*NoData) Descriptor() ([]byte, []int)
- func (m *NoData) Marshal() (dAtA []byte, err error)
- func (m *NoData) MarshalTo(dAtA []byte) (int, error)
- func (m *NoData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*NoData) ProtoMessage()
- func (m *NoData) Reset()
- func (m *NoData) Size() (n int)
- func (m *NoData) String() string
- func (m *NoData) Unmarshal(dAtA []byte) error
- func (m *NoData) XXX_DiscardUnknown()
- func (m *NoData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *NoData) XXX_Merge(src proto.Message)
- func (m *NoData) XXX_Size() int
- func (m *NoData) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryAllCallbackDataRequest
- func (*QueryAllCallbackDataRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllCallbackDataRequest) GetPagination() *query.PageRequest
- func (m *QueryAllCallbackDataRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllCallbackDataRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllCallbackDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllCallbackDataRequest) ProtoMessage()
- func (m *QueryAllCallbackDataRequest) Reset()
- func (m *QueryAllCallbackDataRequest) Size() (n int)
- func (m *QueryAllCallbackDataRequest) String() string
- func (m *QueryAllCallbackDataRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllCallbackDataRequest) XXX_DiscardUnknown()
- func (m *QueryAllCallbackDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllCallbackDataRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllCallbackDataRequest) XXX_Size() int
- func (m *QueryAllCallbackDataRequest) XXX_Unmarshal(b []byte) error
- type QueryAllCallbackDataResponse
- func (*QueryAllCallbackDataResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllCallbackDataResponse) GetCallbackData() []CallbackData
- func (m *QueryAllCallbackDataResponse) GetPagination() *query.PageResponse
- func (m *QueryAllCallbackDataResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllCallbackDataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllCallbackDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllCallbackDataResponse) ProtoMessage()
- func (m *QueryAllCallbackDataResponse) Reset()
- func (m *QueryAllCallbackDataResponse) Size() (n int)
- func (m *QueryAllCallbackDataResponse) String() string
- func (m *QueryAllCallbackDataResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllCallbackDataResponse) XXX_DiscardUnknown()
- func (m *QueryAllCallbackDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllCallbackDataResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllCallbackDataResponse) XXX_Size() int
- func (m *QueryAllCallbackDataResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetCallbackDataRequest
- func (*QueryGetCallbackDataRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetCallbackDataRequest) GetCallbackKey() string
- func (m *QueryGetCallbackDataRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetCallbackDataRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetCallbackDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetCallbackDataRequest) ProtoMessage()
- func (m *QueryGetCallbackDataRequest) Reset()
- func (m *QueryGetCallbackDataRequest) Size() (n int)
- func (m *QueryGetCallbackDataRequest) String() string
- func (m *QueryGetCallbackDataRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetCallbackDataRequest) XXX_DiscardUnknown()
- func (m *QueryGetCallbackDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetCallbackDataRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetCallbackDataRequest) XXX_Size() int
- func (m *QueryGetCallbackDataRequest) XXX_Unmarshal(b []byte) error
- type QueryGetCallbackDataResponse
- func (*QueryGetCallbackDataResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetCallbackDataResponse) GetCallbackData() CallbackData
- func (m *QueryGetCallbackDataResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetCallbackDataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetCallbackDataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetCallbackDataResponse) ProtoMessage()
- func (m *QueryGetCallbackDataResponse) Reset()
- func (m *QueryGetCallbackDataResponse) Size() (n int)
- func (m *QueryGetCallbackDataResponse) String() string
- func (m *QueryGetCallbackDataResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetCallbackDataResponse) XXX_DiscardUnknown()
- func (m *QueryGetCallbackDataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetCallbackDataResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetCallbackDataResponse) XXX_Size() int
- func (m *QueryGetCallbackDataResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) CallbackData(ctx context.Context, req *QueryGetCallbackDataRequest) (*QueryGetCallbackDataResponse, error)
- func (*UnimplementedQueryServer) CallbackDataAll(ctx context.Context, req *QueryAllCallbackDataRequest) (*QueryAllCallbackDataResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( EventTypeAck = "ack" EventTypeTimeout = "timeout" AttributeKeyAckSuccess = "success" AttributeKeyAck = "acknowledgement" AttributeKeyAckError = "error" )
IBC events
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" )
const (
// CallbackDataKeyPrefix is the prefix to retrieve all CallbackData
CallbackDataKeyPrefix = "CallbackData/value/"
)
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( ErrInvalidLengthCallbackData = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCallbackData = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCallbackData = fmt.Errorf("proto: unexpected end of group") )
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrSample = errorsmod.Register(ModuleName, 1100, "sample error") ErrInvalidPacketTimeout = errorsmod.Register(ModuleName, 1500, "invalid packet timeout") ErrInvalidVersion = errorsmod.Register(ModuleName, 1501, "invalid version") ErrCallbackHandlerNotFound = errorsmod.Register(ModuleName, 1502, "icacallback handler not found") ErrCallbackIdNotFound = errorsmod.Register(ModuleName, 1503, "icacallback ID not found") ErrCallbackFailed = errorsmod.Register(ModuleName, 1504, "icacallback failed") ErrCallbackDataNotFound = errorsmod.Register(ModuleName, 1505, "icacallback data not found") ErrTxMsgData = errorsmod.Register(ModuleName, 1506, "txMsgData fetch failed") ErrInvalidAcknowledgement = errorsmod.Register(ModuleName, 1507, "invalid acknowledgement") )
x/icacallbacks module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPacket = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPacket = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var PortKey = KeyPrefix("icacallbacks-port-")
PortKey defines the key to store the port ID in store
Functions ¶
func CallbackDataKey ¶
CallbackDataKey returns the store key to retrieve a CallbackData from the index fields
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type AckResponseStatus ¶
type AckResponseStatus int
const ( AckResponseStatus_SUCCESS AckResponseStatus = iota AckResponseStatus_TIMEOUT AckResponseStatus_FAILURE )
type AcknowledgementResponse ¶
type AcknowledgementResponse struct { Status AckResponseStatus MsgResponses [][]byte Error string }
type BankKeeper ¶
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) 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) 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 ICACallback ¶
type ICACallback struct { CallbackId string CallbackFunc ICACallbackFunction }
type ICACallbackFunction ¶
type ICACallbackFunction func(sdk.Context, channeltypes.Packet, *AcknowledgementResponse, []byte) error
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 ModuleCallbacks ¶
type ModuleCallbacks []ICACallback
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 NoData ¶
type NoData struct { }
func (*NoData) Descriptor ¶
func (*NoData) MarshalToSizedBuffer ¶
func (*NoData) ProtoMessage ¶
func (*NoData) ProtoMessage()
func (*NoData) XXX_DiscardUnknown ¶
func (m *NoData) XXX_DiscardUnknown()
func (*NoData) XXX_Marshal ¶
func (*NoData) XXX_Unmarshal ¶
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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 (m *QueryAllCallbackDataResponse) String() 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 (m *QueryGetCallbackDataResponse) String() 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) CallbackData(ctx context.Context, req *QueryGetCallbackDataRequest) (*QueryGetCallbackDataResponse, error)
func (*UnimplementedQueryServer) CallbackDataAll ¶
func (*UnimplementedQueryServer) CallbackDataAll(ctx context.Context, req *QueryAllCallbackDataRequest) (*QueryAllCallbackDataResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)