Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func ParamsKeyTable() paramstypes.KeyTable
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
- func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error
- func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error
- func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
- type EventSwap
- func (*EventSwap) Descriptor() ([]byte, []int)
- func (m *EventSwap) Marshal() (dAtA []byte, err error)
- func (m *EventSwap) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSwap) ProtoMessage()
- func (m *EventSwap) Reset()
- func (m *EventSwap) Size() (n int)
- func (m *EventSwap) String() string
- func (m *EventSwap) Unmarshal(dAtA []byte) error
- func (m *EventSwap) XXX_DiscardUnknown()
- func (m *EventSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSwap) XXX_Merge(src proto.Message)
- func (m *EventSwap) XXX_Size() int
- func (m *EventSwap) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 (m *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 MsgServiceClient
- type MsgServiceServer
- type MsgSwapRequest
- func (*MsgSwapRequest) Descriptor() ([]byte, []int)
- func (m *MsgSwapRequest) GetSigners() []sdk.AccAddress
- func (m *MsgSwapRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapRequest) ProtoMessage()
- func (m *MsgSwapRequest) Reset()
- func (m *MsgSwapRequest) Size() (n int)
- func (m *MsgSwapRequest) String() string
- func (m *MsgSwapRequest) Unmarshal(dAtA []byte) error
- func (m *MsgSwapRequest) ValidateBasic() error
- func (m *MsgSwapRequest) XXX_DiscardUnknown()
- func (m *MsgSwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapRequest) XXX_Merge(src proto.Message)
- func (m *MsgSwapRequest) XXX_Size() int
- func (m *MsgSwapRequest) XXX_Unmarshal(b []byte) error
- type MsgSwapResponse
- func (*MsgSwapResponse) Descriptor() ([]byte, []int)
- func (m *MsgSwapResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapResponse) ProtoMessage()
- func (m *MsgSwapResponse) Reset()
- func (m *MsgSwapResponse) Size() (n int)
- func (m *MsgSwapResponse) String() string
- func (m *MsgSwapResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSwapResponse) XXX_DiscardUnknown()
- func (m *MsgSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapResponse) XXX_Merge(src proto.Message)
- func (m *MsgSwapResponse) XXX_Size() int
- func (m *MsgSwapResponse) 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 (m *Params) ParamSetPairs() paramstypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (m *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 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) 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 QueryServiceClient
- type QueryServiceServer
- type QuerySwapRequest
- func (*QuerySwapRequest) Descriptor() ([]byte, []int)
- func (m *QuerySwapRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapRequest) ProtoMessage()
- func (m *QuerySwapRequest) Reset()
- func (m *QuerySwapRequest) Size() (n int)
- func (m *QuerySwapRequest) String() string
- func (m *QuerySwapRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySwapRequest) XXX_DiscardUnknown()
- func (m *QuerySwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapRequest) XXX_Merge(src proto.Message)
- func (m *QuerySwapRequest) XXX_Size() int
- func (m *QuerySwapRequest) XXX_Unmarshal(b []byte) error
- type QuerySwapResponse
- func (*QuerySwapResponse) Descriptor() ([]byte, []int)
- func (m *QuerySwapResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapResponse) ProtoMessage()
- func (m *QuerySwapResponse) Reset()
- func (m *QuerySwapResponse) Size() (n int)
- func (m *QuerySwapResponse) String() string
- func (m *QuerySwapResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySwapResponse) XXX_DiscardUnknown()
- func (m *QuerySwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapResponse) XXX_Merge(src proto.Message)
- func (m *QuerySwapResponse) XXX_Size() int
- func (m *QuerySwapResponse) XXX_Unmarshal(b []byte) error
- type QuerySwapsRequest
- func (*QuerySwapsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySwapsRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapsRequest) ProtoMessage()
- func (m *QuerySwapsRequest) Reset()
- func (m *QuerySwapsRequest) Size() (n int)
- func (m *QuerySwapsRequest) String() string
- func (m *QuerySwapsRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySwapsRequest) XXX_DiscardUnknown()
- func (m *QuerySwapsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapsRequest) XXX_Merge(src proto.Message)
- func (m *QuerySwapsRequest) XXX_Size() int
- func (m *QuerySwapsRequest) XXX_Unmarshal(b []byte) error
- type QuerySwapsResponse
- func (*QuerySwapsResponse) Descriptor() ([]byte, []int)
- func (m *QuerySwapsResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapsResponse) ProtoMessage()
- func (m *QuerySwapsResponse) Reset()
- func (m *QuerySwapsResponse) Size() (n int)
- func (m *QuerySwapsResponse) String() string
- func (m *QuerySwapsResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySwapsResponse) XXX_DiscardUnknown()
- func (m *QuerySwapsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapsResponse) XXX_Merge(src proto.Message)
- func (m *QuerySwapsResponse) XXX_Size() int
- func (m *QuerySwapsResponse) XXX_Unmarshal(b []byte) error
- type Swap
- func (*Swap) Descriptor() ([]byte, []int)
- func (m *Swap) GetTxHash() (hash types.EthereumHash)
- func (m *Swap) Marshal() (dAtA []byte, err error)
- func (m *Swap) MarshalTo(dAtA []byte) (int, error)
- func (m *Swap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Swap) ProtoMessage()
- func (m *Swap) Reset()
- func (m *Swap) Size() (n int)
- func (m *Swap) String() string
- func (m *Swap) Unmarshal(dAtA []byte) error
- func (m *Swap) Validate() error
- func (m *Swap) XXX_DiscardUnknown()
- func (m *Swap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Swap) XXX_Merge(src proto.Message)
- func (m *Swap) XXX_Size() int
- func (m *Swap) XXX_Unmarshal(b []byte) error
- type Swaps
- type UnimplementedMsgServiceServer
- type UnimplementedQueryServiceServer
- func (*UnimplementedQueryServiceServer) QueryParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServiceServer) QuerySwap(ctx context.Context, req *QuerySwapRequest) (*QuerySwapResponse, error)
- func (*UnimplementedQueryServiceServer) QuerySwaps(ctx context.Context, req *QuerySwapsRequest) (*QuerySwapsResponse, error)
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthMsg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsg = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group") )
var ( DefaultSwapEnabled = false DefaultSwapDenom = sdk.DefaultBondDenom DefaultApproveBy = authtypes.NewModuleAddress(types.ModuleName).String() )
var ( KeySwapEnabled = []byte("SwapEnabled") KeySwapDenom = []byte("SwapDenom") KeyApproveBy = []byte("ApproveBy") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func ParamsKeyTable ¶
func ParamsKeyTable() paramstypes.KeyTable
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
func RegisterMsgServiceServer ¶
func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer)
func RegisterQueryServiceHandler ¶
func RegisterQueryServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterQueryServiceHandler registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryServiceHandlerClient ¶
func RegisterQueryServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryServiceClient) error
RegisterQueryServiceHandlerClient registers the http handlers for service QueryService to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryServiceClient" to call the correct interceptors.
func RegisterQueryServiceHandlerFromEndpoint ¶
func RegisterQueryServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryServiceHandlerFromEndpoint is same as RegisterQueryServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryServiceHandlerServer ¶
func RegisterQueryServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServiceServer) error
RegisterQueryServiceHandlerServer registers the http handlers for service QueryService to "mux". UnaryRPC :call QueryServiceServer 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 RegisterQueryServiceHandlerFromEndpoint instead.
func RegisterQueryServiceServer ¶
func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer)
Types ¶
type EventSwap ¶
type EventSwap struct { TxHash []byte `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty" yaml:"tx_hash"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty" yaml:"receiver"` }
func (*EventSwap) Descriptor ¶
func (*EventSwap) MarshalToSizedBuffer ¶
func (*EventSwap) ProtoMessage ¶
func (*EventSwap) ProtoMessage()
func (*EventSwap) XXX_DiscardUnknown ¶
func (m *EventSwap) XXX_DiscardUnknown()
func (*EventSwap) XXX_Marshal ¶
func (*EventSwap) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { Swaps []Swap `protobuf:"bytes,1,rep,name=swaps,proto3" json:"_,omitempty"` Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
func NewGenesisState ¶
func NewGenesisState(swaps Swaps, params Params) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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 (m *GenesisState) Validate() error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgServiceClient ¶
type MsgServiceClient interface {
MsgSwap(ctx context.Context, in *MsgSwapRequest, opts ...grpc.CallOption) (*MsgSwapResponse, error)
}
MsgServiceClient is the client API for MsgService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgServiceClient ¶
func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient
type MsgServiceServer ¶
type MsgServiceServer interface {
MsgSwap(context.Context, *MsgSwapRequest) (*MsgSwapResponse, error)
}
MsgServiceServer is the server API for MsgService service.
type MsgSwapRequest ¶
type MsgSwapRequest struct { From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` TxHash []byte `protobuf:"bytes,2,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` Receiver string `protobuf:"bytes,3,opt,name=receiver,proto3" json:"receiver,omitempty"` Amount cosmossdk_io_math.Int `protobuf:"bytes,4,opt,name=amount,proto3,customtype=cosmossdk.io/math.Int" json:"amount"` }
func NewMsgSwapRequest ¶
func NewMsgSwapRequest(from sdk.AccAddress, txHash types.EthereumHash, receiver sdk.AccAddress, amount sdkmath.Int) *MsgSwapRequest
func (*MsgSwapRequest) Descriptor ¶
func (*MsgSwapRequest) Descriptor() ([]byte, []int)
func (*MsgSwapRequest) GetSigners ¶
func (m *MsgSwapRequest) GetSigners() []sdk.AccAddress
func (*MsgSwapRequest) Marshal ¶
func (m *MsgSwapRequest) Marshal() (dAtA []byte, err error)
func (*MsgSwapRequest) MarshalToSizedBuffer ¶
func (m *MsgSwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapRequest) ProtoMessage ¶
func (*MsgSwapRequest) ProtoMessage()
func (*MsgSwapRequest) Reset ¶
func (m *MsgSwapRequest) Reset()
func (*MsgSwapRequest) Size ¶
func (m *MsgSwapRequest) Size() (n int)
func (*MsgSwapRequest) String ¶
func (m *MsgSwapRequest) String() string
func (*MsgSwapRequest) Unmarshal ¶
func (m *MsgSwapRequest) Unmarshal(dAtA []byte) error
func (*MsgSwapRequest) ValidateBasic ¶
func (m *MsgSwapRequest) ValidateBasic() error
func (*MsgSwapRequest) XXX_DiscardUnknown ¶
func (m *MsgSwapRequest) XXX_DiscardUnknown()
func (*MsgSwapRequest) XXX_Marshal ¶
func (m *MsgSwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapRequest) XXX_Merge ¶
func (m *MsgSwapRequest) XXX_Merge(src proto.Message)
func (*MsgSwapRequest) XXX_Size ¶
func (m *MsgSwapRequest) XXX_Size() int
func (*MsgSwapRequest) XXX_Unmarshal ¶
func (m *MsgSwapRequest) XXX_Unmarshal(b []byte) error
type MsgSwapResponse ¶
type MsgSwapResponse struct { }
func (*MsgSwapResponse) Descriptor ¶
func (*MsgSwapResponse) Descriptor() ([]byte, []int)
func (*MsgSwapResponse) Marshal ¶
func (m *MsgSwapResponse) Marshal() (dAtA []byte, err error)
func (*MsgSwapResponse) MarshalToSizedBuffer ¶
func (m *MsgSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapResponse) ProtoMessage ¶
func (*MsgSwapResponse) ProtoMessage()
func (*MsgSwapResponse) Reset ¶
func (m *MsgSwapResponse) Reset()
func (*MsgSwapResponse) Size ¶
func (m *MsgSwapResponse) Size() (n int)
func (*MsgSwapResponse) String ¶
func (m *MsgSwapResponse) String() string
func (*MsgSwapResponse) Unmarshal ¶
func (m *MsgSwapResponse) Unmarshal(dAtA []byte) error
func (*MsgSwapResponse) XXX_DiscardUnknown ¶
func (m *MsgSwapResponse) XXX_DiscardUnknown()
func (*MsgSwapResponse) XXX_Marshal ¶
func (m *MsgSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapResponse) XXX_Merge ¶
func (m *MsgSwapResponse) XXX_Merge(src proto.Message)
func (*MsgSwapResponse) XXX_Size ¶
func (m *MsgSwapResponse) XXX_Size() int
func (*MsgSwapResponse) XXX_Unmarshal ¶
func (m *MsgSwapResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { SwapEnabled bool `protobuf:"varint,1,opt,name=swap_enabled,json=swapEnabled,proto3" json:"swap_enabled,omitempty"` SwapDenom string `protobuf:"bytes,2,opt,name=swap_denom,json=swapDenom,proto3" json:"swap_denom,omitempty"` ApproveBy string `protobuf:"bytes,3,opt,name=approve_by,json=approveBy,proto3" json:"approve_by,omitempty"` }
func DefaultParams ¶
func DefaultParams() Params
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (m *Params) ParamSetPairs() paramstypes.ParamSetPairs
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
func NewQueryParamsRequest ¶
func NewQueryParamsRequest() *QueryParamsRequest
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 Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
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 QueryServiceClient ¶
type QueryServiceClient interface { QuerySwaps(ctx context.Context, in *QuerySwapsRequest, opts ...grpc.CallOption) (*QuerySwapsResponse, error) QuerySwap(ctx context.Context, in *QuerySwapRequest, opts ...grpc.CallOption) (*QuerySwapResponse, error) QueryParams(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryServiceClient is the client API for QueryService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryServiceClient ¶
func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient
type QueryServiceServer ¶
type QueryServiceServer interface { QuerySwaps(context.Context, *QuerySwapsRequest) (*QuerySwapsResponse, error) QuerySwap(context.Context, *QuerySwapRequest) (*QuerySwapResponse, error) QueryParams(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServiceServer is the server API for QueryService service.
type QuerySwapRequest ¶
type QuerySwapRequest struct {
TxHash []byte `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"`
}
func NewQuerySwapRequest ¶
func NewQuerySwapRequest(txHash types.EthereumHash) *QuerySwapRequest
func (*QuerySwapRequest) Descriptor ¶
func (*QuerySwapRequest) Descriptor() ([]byte, []int)
func (*QuerySwapRequest) Marshal ¶
func (m *QuerySwapRequest) Marshal() (dAtA []byte, err error)
func (*QuerySwapRequest) MarshalToSizedBuffer ¶
func (m *QuerySwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySwapRequest) ProtoMessage ¶
func (*QuerySwapRequest) ProtoMessage()
func (*QuerySwapRequest) Reset ¶
func (m *QuerySwapRequest) Reset()
func (*QuerySwapRequest) Size ¶
func (m *QuerySwapRequest) Size() (n int)
func (*QuerySwapRequest) String ¶
func (m *QuerySwapRequest) String() string
func (*QuerySwapRequest) Unmarshal ¶
func (m *QuerySwapRequest) Unmarshal(dAtA []byte) error
func (*QuerySwapRequest) XXX_DiscardUnknown ¶
func (m *QuerySwapRequest) XXX_DiscardUnknown()
func (*QuerySwapRequest) XXX_Marshal ¶
func (m *QuerySwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySwapRequest) XXX_Merge ¶
func (m *QuerySwapRequest) XXX_Merge(src proto.Message)
func (*QuerySwapRequest) XXX_Size ¶
func (m *QuerySwapRequest) XXX_Size() int
func (*QuerySwapRequest) XXX_Unmarshal ¶
func (m *QuerySwapRequest) XXX_Unmarshal(b []byte) error
type QuerySwapResponse ¶
type QuerySwapResponse struct {
Swap Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap"`
}
func (*QuerySwapResponse) Descriptor ¶
func (*QuerySwapResponse) Descriptor() ([]byte, []int)
func (*QuerySwapResponse) Marshal ¶
func (m *QuerySwapResponse) Marshal() (dAtA []byte, err error)
func (*QuerySwapResponse) MarshalTo ¶
func (m *QuerySwapResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySwapResponse) MarshalToSizedBuffer ¶
func (m *QuerySwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySwapResponse) ProtoMessage ¶
func (*QuerySwapResponse) ProtoMessage()
func (*QuerySwapResponse) Reset ¶
func (m *QuerySwapResponse) Reset()
func (*QuerySwapResponse) Size ¶
func (m *QuerySwapResponse) Size() (n int)
func (*QuerySwapResponse) String ¶
func (m *QuerySwapResponse) String() string
func (*QuerySwapResponse) Unmarshal ¶
func (m *QuerySwapResponse) Unmarshal(dAtA []byte) error
func (*QuerySwapResponse) XXX_DiscardUnknown ¶
func (m *QuerySwapResponse) XXX_DiscardUnknown()
func (*QuerySwapResponse) XXX_Marshal ¶
func (m *QuerySwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySwapResponse) XXX_Merge ¶
func (m *QuerySwapResponse) XXX_Merge(src proto.Message)
func (*QuerySwapResponse) XXX_Size ¶
func (m *QuerySwapResponse) XXX_Size() int
func (*QuerySwapResponse) XXX_Unmarshal ¶
func (m *QuerySwapResponse) XXX_Unmarshal(b []byte) error
type QuerySwapsRequest ¶
type QuerySwapsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func NewQuerySwapsRequest ¶
func NewQuerySwapsRequest(pagination *sdkquery.PageRequest) *QuerySwapsRequest
func (*QuerySwapsRequest) Descriptor ¶
func (*QuerySwapsRequest) Descriptor() ([]byte, []int)
func (*QuerySwapsRequest) Marshal ¶
func (m *QuerySwapsRequest) Marshal() (dAtA []byte, err error)
func (*QuerySwapsRequest) MarshalTo ¶
func (m *QuerySwapsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySwapsRequest) MarshalToSizedBuffer ¶
func (m *QuerySwapsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySwapsRequest) ProtoMessage ¶
func (*QuerySwapsRequest) ProtoMessage()
func (*QuerySwapsRequest) Reset ¶
func (m *QuerySwapsRequest) Reset()
func (*QuerySwapsRequest) Size ¶
func (m *QuerySwapsRequest) Size() (n int)
func (*QuerySwapsRequest) String ¶
func (m *QuerySwapsRequest) String() string
func (*QuerySwapsRequest) Unmarshal ¶
func (m *QuerySwapsRequest) Unmarshal(dAtA []byte) error
func (*QuerySwapsRequest) XXX_DiscardUnknown ¶
func (m *QuerySwapsRequest) XXX_DiscardUnknown()
func (*QuerySwapsRequest) XXX_Marshal ¶
func (m *QuerySwapsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySwapsRequest) XXX_Merge ¶
func (m *QuerySwapsRequest) XXX_Merge(src proto.Message)
func (*QuerySwapsRequest) XXX_Size ¶
func (m *QuerySwapsRequest) XXX_Size() int
func (*QuerySwapsRequest) XXX_Unmarshal ¶
func (m *QuerySwapsRequest) XXX_Unmarshal(b []byte) error
type QuerySwapsResponse ¶
type QuerySwapsResponse struct { Swaps []Swap `protobuf:"bytes,1,rep,name=swaps,proto3" json:"swaps"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QuerySwapsResponse) Descriptor ¶
func (*QuerySwapsResponse) Descriptor() ([]byte, []int)
func (*QuerySwapsResponse) Marshal ¶
func (m *QuerySwapsResponse) Marshal() (dAtA []byte, err error)
func (*QuerySwapsResponse) MarshalTo ¶
func (m *QuerySwapsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySwapsResponse) MarshalToSizedBuffer ¶
func (m *QuerySwapsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySwapsResponse) ProtoMessage ¶
func (*QuerySwapsResponse) ProtoMessage()
func (*QuerySwapsResponse) Reset ¶
func (m *QuerySwapsResponse) Reset()
func (*QuerySwapsResponse) Size ¶
func (m *QuerySwapsResponse) Size() (n int)
func (*QuerySwapsResponse) String ¶
func (m *QuerySwapsResponse) String() string
func (*QuerySwapsResponse) Unmarshal ¶
func (m *QuerySwapsResponse) Unmarshal(dAtA []byte) error
func (*QuerySwapsResponse) XXX_DiscardUnknown ¶
func (m *QuerySwapsResponse) XXX_DiscardUnknown()
func (*QuerySwapsResponse) XXX_Marshal ¶
func (m *QuerySwapsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySwapsResponse) XXX_Merge ¶
func (m *QuerySwapsResponse) XXX_Merge(src proto.Message)
func (*QuerySwapsResponse) XXX_Size ¶
func (m *QuerySwapsResponse) XXX_Size() int
func (*QuerySwapsResponse) XXX_Unmarshal ¶
func (m *QuerySwapsResponse) XXX_Unmarshal(b []byte) error
type Swap ¶
type Swap struct { TxHash []byte `protobuf:"bytes,1,opt,name=tx_hash,json=txHash,proto3" json:"tx_hash,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Amount types.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount"` }
func (*Swap) Descriptor ¶
func (*Swap) GetTxHash ¶
func (m *Swap) GetTxHash() (hash types.EthereumHash)
func (*Swap) ProtoMessage ¶
func (*Swap) ProtoMessage()
func (*Swap) XXX_DiscardUnknown ¶
func (m *Swap) XXX_DiscardUnknown()
func (*Swap) XXX_Unmarshal ¶
type UnimplementedMsgServiceServer ¶
type UnimplementedMsgServiceServer struct { }
UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServiceServer) MsgSwap ¶
func (*UnimplementedMsgServiceServer) MsgSwap(ctx context.Context, req *MsgSwapRequest) (*MsgSwapResponse, error)
type UnimplementedQueryServiceServer ¶
type UnimplementedQueryServiceServer struct { }
UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServiceServer) QueryParams ¶
func (*UnimplementedQueryServiceServer) QueryParams(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServiceServer) QuerySwap ¶
func (*UnimplementedQueryServiceServer) QuerySwap(ctx context.Context, req *QuerySwapRequest) (*QuerySwapResponse, error)
func (*UnimplementedQueryServiceServer) QuerySwaps ¶
func (*UnimplementedQueryServiceServer) QuerySwaps(ctx context.Context, req *QuerySwapsRequest) (*QuerySwapsResponse, error)