v1

package
v12.0.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
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 (
	ErrInvalidLengthMsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	DefaultSwapEnabled = false
	DefaultSwapDenom   = sdk.DefaultBondDenom
	DefaultApproveBy   = authtypes.NewModuleAddress(types.ModuleName).String()
)
View Source
var (
	KeySwapEnabled = []byte("SwapEnabled")
	KeySwapDenom   = []byte("SwapDenom")
	KeyApproveBy   = []byte("ApproveBy")
)
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 (
	ErrInvalidLengthQuerier        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuerier          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuerier = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSwap        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSwap          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSwap = 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) Descriptor() ([]byte, []int)

func (*EventSwap) Marshal

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

func (*EventSwap) MarshalTo

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

func (*EventSwap) MarshalToSizedBuffer

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

func (*EventSwap) ProtoMessage

func (*EventSwap) ProtoMessage()

func (*EventSwap) Reset

func (m *EventSwap) Reset()

func (*EventSwap) Size

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

func (*EventSwap) String

func (m *EventSwap) String() string

func (*EventSwap) Unmarshal

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

func (*EventSwap) XXX_DiscardUnknown

func (m *EventSwap) XXX_DiscardUnknown()

func (*EventSwap) XXX_Marshal

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

func (*EventSwap) XXX_Merge

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

func (*EventSwap) XXX_Size

func (m *EventSwap) XXX_Size() int

func (*EventSwap) XXX_Unmarshal

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

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) 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 (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) MarshalTo

func (m *MsgSwapRequest) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MsgSwapResponse) MarshalTo(dAtA []byte) (int, 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 NewParams

func NewParams(swapEnabled bool, swapDenom, approveBy string) Params

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 (m *Params) ParamSetPairs() paramstypes.ParamSetPairs

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) Validate

func (m *Params) Validate() error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type 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) MarshalTo

func (m *QuerySwapRequest) MarshalTo(dAtA []byte) (int, 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) Descriptor() ([]byte, []int)

func (*Swap) GetTxHash

func (m *Swap) GetTxHash() (hash types.EthereumHash)

func (*Swap) Marshal

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

func (*Swap) MarshalTo

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

func (*Swap) MarshalToSizedBuffer

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

func (*Swap) ProtoMessage

func (*Swap) ProtoMessage()

func (*Swap) Reset

func (m *Swap) Reset()

func (*Swap) Size

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

func (*Swap) String

func (m *Swap) String() string

func (*Swap) Unmarshal

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

func (*Swap) Validate

func (m *Swap) Validate() error

func (*Swap) XXX_DiscardUnknown

func (m *Swap) XXX_DiscardUnknown()

func (*Swap) XXX_Marshal

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

func (*Swap) XXX_Merge

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

func (*Swap) XXX_Size

func (m *Swap) XXX_Size() int

func (*Swap) XXX_Unmarshal

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

type Swaps

type Swaps []Swap

type UnimplementedMsgServiceServer

type UnimplementedMsgServiceServer struct {
}

UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServiceServer) MsgSwap

type UnimplementedQueryServiceServer

type UnimplementedQueryServiceServer struct {
}

UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServiceServer) QueryParams

func (*UnimplementedQueryServiceServer) QuerySwap

func (*UnimplementedQueryServiceServer) QuerySwaps

Jump to

Keyboard shortcuts

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