Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AuthorityCandidates() []sdk.AccAddress
- func DefaultAuthority() sdk.AccAddress
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- 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 Config
- type EventAddDenomMetadata
- func (*EventAddDenomMetadata) Descriptor() ([]byte, []int)
- func (m *EventAddDenomMetadata) GetMetadata() types1.Metadata
- func (m *EventAddDenomMetadata) Marshal() (dAtA []byte, err error)
- func (m *EventAddDenomMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *EventAddDenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventAddDenomMetadata) ProtoMessage()
- func (m *EventAddDenomMetadata) Reset()
- func (m *EventAddDenomMetadata) Size() (n int)
- func (m *EventAddDenomMetadata) String() string
- func (m *EventAddDenomMetadata) Unmarshal(dAtA []byte) error
- func (m *EventAddDenomMetadata) XXX_DiscardUnknown()
- func (m *EventAddDenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventAddDenomMetadata) XXX_Merge(src proto.Message)
- func (m *EventAddDenomMetadata) XXX_Size() int
- func (m *EventAddDenomMetadata) XXX_Unmarshal(b []byte) error
- type EventSetSwap
- func (*EventSetSwap) Descriptor() ([]byte, []int)
- func (m *EventSetSwap) GetSwap() Swap
- func (m *EventSetSwap) Marshal() (dAtA []byte, err error)
- func (m *EventSetSwap) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSetSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSetSwap) ProtoMessage()
- func (m *EventSetSwap) Reset()
- func (m *EventSetSwap) Size() (n int)
- func (m *EventSetSwap) String() string
- func (m *EventSetSwap) Unmarshal(dAtA []byte) error
- func (m *EventSetSwap) XXX_DiscardUnknown()
- func (m *EventSetSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSetSwap) XXX_Merge(src proto.Message)
- func (m *EventSetSwap) XXX_Size() int
- func (m *EventSetSwap) XXX_Unmarshal(b []byte) error
- type EventSwapCoins
- func (*EventSwapCoins) Descriptor() ([]byte, []int)
- func (m *EventSwapCoins) GetAddress() string
- func (m *EventSwapCoins) GetFromCoinAmount() types.Coin
- func (m *EventSwapCoins) GetToCoinAmount() types.Coin
- func (m *EventSwapCoins) Marshal() (dAtA []byte, err error)
- func (m *EventSwapCoins) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSwapCoins) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSwapCoins) ProtoMessage()
- func (m *EventSwapCoins) Reset()
- func (m *EventSwapCoins) Size() (n int)
- func (m *EventSwapCoins) String() string
- func (m *EventSwapCoins) Unmarshal(dAtA []byte) error
- func (m *EventSwapCoins) XXX_DiscardUnknown()
- func (m *EventSwapCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSwapCoins) XXX_Merge(src proto.Message)
- func (m *EventSwapCoins) XXX_Size() int
- func (m *EventSwapCoins) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetSwapStats() SwapStats
- func (m *GenesisState) GetSwappeds() []Swapped
- func (m *GenesisState) GetSwaps() []Swap
- 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 MsgClient
- type MsgServer
- type MsgSetSwap
- func (*MsgSetSwap) Descriptor() ([]byte, []int)
- func (m *MsgSetSwap) GetAuthority() string
- func (m *MsgSetSwap) GetSignBytes() []byte
- func (m *MsgSetSwap) GetSigners() []sdk.AccAddress
- func (m *MsgSetSwap) GetSwap() Swap
- func (m *MsgSetSwap) GetToDenomMetadata() types1.Metadata
- func (m *MsgSetSwap) Marshal() (dAtA []byte, err error)
- func (m *MsgSetSwap) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetSwap) ProtoMessage()
- func (m *MsgSetSwap) Reset()
- func (m *MsgSetSwap) Route() string
- func (m *MsgSetSwap) Size() (n int)
- func (m *MsgSetSwap) String() string
- func (m *MsgSetSwap) Type() string
- func (m *MsgSetSwap) Unmarshal(dAtA []byte) error
- func (m *MsgSetSwap) ValidateBasic() error
- func (m *MsgSetSwap) XXX_DiscardUnknown()
- func (m *MsgSetSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetSwap) XXX_Merge(src proto.Message)
- func (m *MsgSetSwap) XXX_Size() int
- func (m *MsgSetSwap) XXX_Unmarshal(b []byte) error
- type MsgSetSwapResponse
- func (*MsgSetSwapResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetSwapResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetSwapResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetSwapResponse) ProtoMessage()
- func (m *MsgSetSwapResponse) Reset()
- func (m *MsgSetSwapResponse) Size() (n int)
- func (m *MsgSetSwapResponse) String() string
- func (m *MsgSetSwapResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetSwapResponse) XXX_DiscardUnknown()
- func (m *MsgSetSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetSwapResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetSwapResponse) XXX_Size() int
- func (m *MsgSetSwapResponse) XXX_Unmarshal(b []byte) error
- type MsgSwap
- func (*MsgSwap) Descriptor() ([]byte, []int)
- func (m *MsgSwap) GetFromAddress() string
- func (m *MsgSwap) GetFromCoinAmount() types.Coin
- func (m *MsgSwap) GetSignBytes() []byte
- func (m *MsgSwap) GetSignerBytes() []byte
- func (m *MsgSwap) GetSigners() []sdk.AccAddress
- func (m *MsgSwap) GetToDenom() string
- func (m *MsgSwap) Marshal() (dAtA []byte, err error)
- func (m *MsgSwap) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwap) ProtoMessage()
- func (m *MsgSwap) Reset()
- func (m *MsgSwap) Route() string
- func (m *MsgSwap) Size() (n int)
- func (m *MsgSwap) String() string
- func (m *MsgSwap) Type() string
- func (m *MsgSwap) Unmarshal(dAtA []byte) error
- func (m *MsgSwap) ValidateBasic() error
- func (m *MsgSwap) XXX_DiscardUnknown()
- func (m *MsgSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwap) XXX_Merge(src proto.Message)
- func (m *MsgSwap) XXX_Size() int
- func (m *MsgSwap) XXX_Unmarshal(b []byte) error
- type MsgSwapAll
- func (*MsgSwapAll) Descriptor() ([]byte, []int)
- func (m *MsgSwapAll) GetFromAddress() string
- func (m *MsgSwapAll) GetFromDenom() string
- func (m *MsgSwapAll) GetSignBytes() []byte
- func (m *MsgSwapAll) GetSigners() []sdk.AccAddress
- func (m *MsgSwapAll) GetToDenom() string
- func (m *MsgSwapAll) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapAll) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapAll) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapAll) ProtoMessage()
- func (m *MsgSwapAll) Reset()
- func (m *MsgSwapAll) Route() string
- func (m *MsgSwapAll) Size() (n int)
- func (m *MsgSwapAll) String() string
- func (m *MsgSwapAll) Type() string
- func (m *MsgSwapAll) Unmarshal(dAtA []byte) error
- func (m *MsgSwapAll) ValidateBasic() error
- func (m *MsgSwapAll) XXX_DiscardUnknown()
- func (m *MsgSwapAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapAll) XXX_Merge(src proto.Message)
- func (m *MsgSwapAll) XXX_Size() int
- func (m *MsgSwapAll) XXX_Unmarshal(b []byte) error
- type MsgSwapAllResponse
- func (*MsgSwapAllResponse) Descriptor() ([]byte, []int)
- func (m *MsgSwapAllResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapAllResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapAllResponse) ProtoMessage()
- func (m *MsgSwapAllResponse) Reset()
- func (m *MsgSwapAllResponse) Size() (n int)
- func (m *MsgSwapAllResponse) String() string
- func (m *MsgSwapAllResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSwapAllResponse) XXX_DiscardUnknown()
- func (m *MsgSwapAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapAllResponse) XXX_Merge(src proto.Message)
- func (m *MsgSwapAllResponse) XXX_Size() int
- func (m *MsgSwapAllResponse) 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 QueryClient
- type QueryServer
- type QuerySwapRequest
- func (*QuerySwapRequest) Descriptor() ([]byte, []int)
- func (m *QuerySwapRequest) GetFromDenom() string
- func (m *QuerySwapRequest) GetToDenom() string
- 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) Validate() 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) GetSwap() Swap
- 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 QuerySwappedRequest
- func (*QuerySwappedRequest) Descriptor() ([]byte, []int)
- func (m *QuerySwappedRequest) GetFromDenom() string
- func (m *QuerySwappedRequest) GetToDenom() string
- func (m *QuerySwappedRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySwappedRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwappedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwappedRequest) ProtoMessage()
- func (m *QuerySwappedRequest) Reset()
- func (m *QuerySwappedRequest) Size() (n int)
- func (m *QuerySwappedRequest) String() string
- func (m *QuerySwappedRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySwappedRequest) XXX_DiscardUnknown()
- func (m *QuerySwappedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwappedRequest) XXX_Merge(src proto.Message)
- func (m *QuerySwappedRequest) XXX_Size() int
- func (m *QuerySwappedRequest) XXX_Unmarshal(b []byte) error
- type QuerySwappedResponse
- func (*QuerySwappedResponse) Descriptor() ([]byte, []int)
- func (m *QuerySwappedResponse) GetFromCoinAmount() types.Coin
- func (m *QuerySwappedResponse) GetToCoinAmount() types.Coin
- func (m *QuerySwappedResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySwappedResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwappedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwappedResponse) ProtoMessage()
- func (m *QuerySwappedResponse) Reset()
- func (m *QuerySwappedResponse) Size() (n int)
- func (m *QuerySwappedResponse) String() string
- func (m *QuerySwappedResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySwappedResponse) XXX_DiscardUnknown()
- func (m *QuerySwappedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwappedResponse) XXX_Merge(src proto.Message)
- func (m *QuerySwappedResponse) XXX_Size() int
- func (m *QuerySwappedResponse) XXX_Unmarshal(b []byte) error
- type QuerySwapsRequest
- func (*QuerySwapsRequest) Descriptor() ([]byte, []int)
- func (m *QuerySwapsRequest) GetPagination() *query.PageRequest
- 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) GetPagination() *query.PageResponse
- func (m *QuerySwapsResponse) GetSwaps() []Swap
- 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 QueryTotalSwappableToCoinAmountRequest
- func (*QueryTotalSwappableToCoinAmountRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalSwappableToCoinAmountRequest) GetFromDenom() string
- func (m *QueryTotalSwappableToCoinAmountRequest) GetToDenom() string
- func (m *QueryTotalSwappableToCoinAmountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalSwappableToCoinAmountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalSwappableToCoinAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalSwappableToCoinAmountRequest) ProtoMessage()
- func (m *QueryTotalSwappableToCoinAmountRequest) Reset()
- func (m *QueryTotalSwappableToCoinAmountRequest) Size() (n int)
- func (m *QueryTotalSwappableToCoinAmountRequest) String() string
- func (m *QueryTotalSwappableToCoinAmountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalSwappableToCoinAmountRequest) XXX_DiscardUnknown()
- func (m *QueryTotalSwappableToCoinAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalSwappableToCoinAmountRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalSwappableToCoinAmountRequest) XXX_Size() int
- func (m *QueryTotalSwappableToCoinAmountRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalSwappableToCoinAmountResponse
- func (*QueryTotalSwappableToCoinAmountResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalSwappableToCoinAmountResponse) GetSwappableAmount() types.Coin
- func (m *QueryTotalSwappableToCoinAmountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalSwappableToCoinAmountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalSwappableToCoinAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalSwappableToCoinAmountResponse) ProtoMessage()
- func (m *QueryTotalSwappableToCoinAmountResponse) Reset()
- func (m *QueryTotalSwappableToCoinAmountResponse) Size() (n int)
- func (m *QueryTotalSwappableToCoinAmountResponse) String() string
- func (m *QueryTotalSwappableToCoinAmountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalSwappableToCoinAmountResponse) XXX_DiscardUnknown()
- func (m *QueryTotalSwappableToCoinAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalSwappableToCoinAmountResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalSwappableToCoinAmountResponse) XXX_Size() int
- func (m *QueryTotalSwappableToCoinAmountResponse) XXX_Unmarshal(b []byte) error
- type Swap
- func (*Swap) Descriptor() ([]byte, []int)
- func (m *Swap) GetFromDenom() string
- func (m *Swap) GetToDenom() string
- 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 (s *Swap) ValidateBasic() 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 SwapStats
- func (*SwapStats) Descriptor() ([]byte, []int)
- func (m *SwapStats) GetSwapCount() int32
- func (m *SwapStats) Marshal() (dAtA []byte, err error)
- func (m *SwapStats) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapStats) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapStats) ProtoMessage()
- func (m *SwapStats) Reset()
- func (m *SwapStats) Size() (n int)
- func (m *SwapStats) String() string
- func (m *SwapStats) Unmarshal(dAtA []byte) error
- func (s *SwapStats) ValidateBasic() error
- func (m *SwapStats) XXX_DiscardUnknown()
- func (m *SwapStats) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapStats) XXX_Merge(src proto.Message)
- func (m *SwapStats) XXX_Size() int
- func (m *SwapStats) XXX_Unmarshal(b []byte) error
- type Swapped
- func (*Swapped) Descriptor() ([]byte, []int)
- func (m *Swapped) GetFromCoinAmount() types.Coin
- func (m *Swapped) GetToCoinAmount() types.Coin
- func (m *Swapped) Marshal() (dAtA []byte, err error)
- func (m *Swapped) MarshalTo(dAtA []byte) (int, error)
- func (m *Swapped) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Swapped) ProtoMessage()
- func (m *Swapped) Reset()
- func (m *Swapped) Size() (n int)
- func (m *Swapped) String() string
- func (m *Swapped) Unmarshal(dAtA []byte) error
- func (s *Swapped) ValidateBasic() error
- func (m *Swapped) XXX_DiscardUnknown()
- func (m *Swapped) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Swapped) XXX_Merge(src proto.Message)
- func (m *Swapped) XXX_Size() int
- func (m *Swapped) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) SetSwap(ctx context.Context, req *MsgSetSwap) (*MsgSetSwapResponse, error)
- func (*UnimplementedMsgServer) Swap(ctx context.Context, req *MsgSwap) (*MsgSwapResponse, error)
- func (*UnimplementedMsgServer) SwapAll(ctx context.Context, req *MsgSwapAll) (*MsgSwapAllResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Swap(ctx context.Context, req *QuerySwapRequest) (*QuerySwapResponse, error)
- func (*UnimplementedQueryServer) Swapped(ctx context.Context, req *QuerySwappedRequest) (*QuerySwappedResponse, error)
- func (*UnimplementedQueryServer) Swaps(ctx context.Context, req *QuerySwapsRequest) (*QuerySwapsResponse, error)
- func (*UnimplementedQueryServer) TotalSwappableToCoinAmount(ctx context.Context, req *QueryTotalSwappableToCoinAmountRequest) (*QueryTotalSwappableToCoinAmountResponse, error)
Constants ¶
const ( // ModuleName defines the module name ModuleName = "fswap" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for fswap RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName )
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewAminoCodec(Amino) )
var ( ErrInvalidState = sdkerrors.Register(ModuleName, 2, "swap module invalid state") ErrCanNotHaveMoreSwap = sdkerrors.Register(ModuleName, 3, "no more swap allowed") ErrSwappedNotFound = sdkerrors.Register(ModuleName, 4, "swapped does not exist") ErrExceedSwappableToCoinAmount = sdkerrors.Register(ModuleName, 5, "exceed swappable to-coin amount") )
x/fswap module sentinel errors
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthFswap = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFswap = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFswap = 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") )
Functions ¶
func AuthorityCandidates ¶
func AuthorityCandidates() []sdk.AccAddress
func DefaultAuthority ¶
func DefaultAuthority() sdk.AccAddress
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers concrete types on the LegacyAmino codec
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type Config ¶
func DefaultConfig ¶
func DefaultConfig() Config
type EventAddDenomMetadata ¶
type EventAddDenomMetadata struct {
Metadata types1.Metadata `protobuf:"bytes,1,opt,name=metadata,proto3" json:"metadata" yaml:"denom_metadata"`
}
func (*EventAddDenomMetadata) Descriptor ¶
func (*EventAddDenomMetadata) Descriptor() ([]byte, []int)
func (*EventAddDenomMetadata) GetMetadata ¶
func (m *EventAddDenomMetadata) GetMetadata() types1.Metadata
func (*EventAddDenomMetadata) Marshal ¶
func (m *EventAddDenomMetadata) Marshal() (dAtA []byte, err error)
func (*EventAddDenomMetadata) MarshalTo ¶
func (m *EventAddDenomMetadata) MarshalTo(dAtA []byte) (int, error)
func (*EventAddDenomMetadata) MarshalToSizedBuffer ¶
func (m *EventAddDenomMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventAddDenomMetadata) ProtoMessage ¶
func (*EventAddDenomMetadata) ProtoMessage()
func (*EventAddDenomMetadata) Reset ¶
func (m *EventAddDenomMetadata) Reset()
func (*EventAddDenomMetadata) Size ¶
func (m *EventAddDenomMetadata) Size() (n int)
func (*EventAddDenomMetadata) String ¶
func (m *EventAddDenomMetadata) String() string
func (*EventAddDenomMetadata) Unmarshal ¶
func (m *EventAddDenomMetadata) Unmarshal(dAtA []byte) error
func (*EventAddDenomMetadata) XXX_DiscardUnknown ¶
func (m *EventAddDenomMetadata) XXX_DiscardUnknown()
func (*EventAddDenomMetadata) XXX_Marshal ¶
func (m *EventAddDenomMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventAddDenomMetadata) XXX_Merge ¶
func (m *EventAddDenomMetadata) XXX_Merge(src proto.Message)
func (*EventAddDenomMetadata) XXX_Size ¶
func (m *EventAddDenomMetadata) XXX_Size() int
func (*EventAddDenomMetadata) XXX_Unmarshal ¶
func (m *EventAddDenomMetadata) XXX_Unmarshal(b []byte) error
type EventSetSwap ¶
type EventSetSwap struct {
Swap Swap `protobuf:"bytes,1,opt,name=swap,proto3" json:"swap"`
}
func (*EventSetSwap) Descriptor ¶
func (*EventSetSwap) Descriptor() ([]byte, []int)
func (*EventSetSwap) GetSwap ¶
func (m *EventSetSwap) GetSwap() Swap
func (*EventSetSwap) Marshal ¶
func (m *EventSetSwap) Marshal() (dAtA []byte, err error)
func (*EventSetSwap) MarshalToSizedBuffer ¶
func (m *EventSetSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSetSwap) ProtoMessage ¶
func (*EventSetSwap) ProtoMessage()
func (*EventSetSwap) Reset ¶
func (m *EventSetSwap) Reset()
func (*EventSetSwap) Size ¶
func (m *EventSetSwap) Size() (n int)
func (*EventSetSwap) String ¶
func (m *EventSetSwap) String() string
func (*EventSetSwap) Unmarshal ¶
func (m *EventSetSwap) Unmarshal(dAtA []byte) error
func (*EventSetSwap) XXX_DiscardUnknown ¶
func (m *EventSetSwap) XXX_DiscardUnknown()
func (*EventSetSwap) XXX_Marshal ¶
func (m *EventSetSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSetSwap) XXX_Merge ¶
func (m *EventSetSwap) XXX_Merge(src proto.Message)
func (*EventSetSwap) XXX_Size ¶
func (m *EventSetSwap) XXX_Size() int
func (*EventSetSwap) XXX_Unmarshal ¶
func (m *EventSetSwap) XXX_Unmarshal(b []byte) error
type EventSwapCoins ¶
type EventSwapCoins struct { // holder's address Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // from-coin amount FromCoinAmount types.Coin `` /* 152-byte string literal not displayed */ // to-coin amount ToCoinAmount types.Coin `` /* 146-byte string literal not displayed */ }
func (*EventSwapCoins) Descriptor ¶
func (*EventSwapCoins) Descriptor() ([]byte, []int)
func (*EventSwapCoins) GetAddress ¶
func (m *EventSwapCoins) GetAddress() string
func (*EventSwapCoins) GetFromCoinAmount ¶
func (m *EventSwapCoins) GetFromCoinAmount() types.Coin
func (*EventSwapCoins) GetToCoinAmount ¶
func (m *EventSwapCoins) GetToCoinAmount() types.Coin
func (*EventSwapCoins) Marshal ¶
func (m *EventSwapCoins) Marshal() (dAtA []byte, err error)
func (*EventSwapCoins) MarshalToSizedBuffer ¶
func (m *EventSwapCoins) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSwapCoins) ProtoMessage ¶
func (*EventSwapCoins) ProtoMessage()
func (*EventSwapCoins) Reset ¶
func (m *EventSwapCoins) Reset()
func (*EventSwapCoins) Size ¶
func (m *EventSwapCoins) Size() (n int)
func (*EventSwapCoins) String ¶
func (m *EventSwapCoins) String() string
func (*EventSwapCoins) Unmarshal ¶
func (m *EventSwapCoins) Unmarshal(dAtA []byte) error
func (*EventSwapCoins) XXX_DiscardUnknown ¶
func (m *EventSwapCoins) XXX_DiscardUnknown()
func (*EventSwapCoins) XXX_Marshal ¶
func (m *EventSwapCoins) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSwapCoins) XXX_Merge ¶
func (m *EventSwapCoins) XXX_Merge(src proto.Message)
func (*EventSwapCoins) XXX_Size ¶
func (m *EventSwapCoins) XXX_Size() int
func (*EventSwapCoins) XXX_Unmarshal ¶
func (m *EventSwapCoins) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Swaps []Swap `protobuf:"bytes,1,rep,name=swaps,proto3" json:"swaps"` SwapStats SwapStats `protobuf:"bytes,2,opt,name=swap_stats,json=swapStats,proto3" json:"swap_stats"` Swappeds []Swapped `protobuf:"bytes,3,rep,name=swappeds,proto3" json:"swappeds"` }
GenesisState defines the fswap 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) GetSwapStats ¶
func (m *GenesisState) GetSwapStats() SwapStats
func (*GenesisState) GetSwappeds ¶
func (m *GenesisState) GetSwappeds() []Swapped
func (*GenesisState) GetSwaps ¶
func (m *GenesisState) GetSwaps() []Swap
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 MsgClient ¶
type MsgClient interface { Swap(ctx context.Context, in *MsgSwap, opts ...grpc.CallOption) (*MsgSwapResponse, error) SwapAll(ctx context.Context, in *MsgSwapAll, opts ...grpc.CallOption) (*MsgSwapAllResponse, error) SetSwap(ctx context.Context, in *MsgSetSwap, opts ...grpc.CallOption) (*MsgSetSwapResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgServer ¶
type MsgServer interface { Swap(context.Context, *MsgSwap) (*MsgSwapResponse, error) SwapAll(context.Context, *MsgSwapAll) (*MsgSwapAllResponse, error) SetSwap(context.Context, *MsgSetSwap) (*MsgSetSwapResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetSwap ¶
type MsgSetSwap struct { // authority is the address of the privileged account. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Swap Swap `protobuf:"bytes,2,opt,name=swap,proto3" json:"swap"` ToDenomMetadata types1.Metadata `protobuf:"bytes,3,opt,name=to_denom_metadata,json=toDenomMetadata,proto3" json:"to_denom_metadata" yaml:"denom_metadata"` }
func (*MsgSetSwap) Descriptor ¶
func (*MsgSetSwap) Descriptor() ([]byte, []int)
func (*MsgSetSwap) GetAuthority ¶
func (m *MsgSetSwap) GetAuthority() string
func (*MsgSetSwap) GetSignBytes ¶
func (m *MsgSetSwap) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg.GetSignBytes method.
func (*MsgSetSwap) GetSigners ¶
func (m *MsgSetSwap) GetSigners() []sdk.AccAddress
func (*MsgSetSwap) GetSwap ¶
func (m *MsgSetSwap) GetSwap() Swap
func (*MsgSetSwap) GetToDenomMetadata ¶
func (m *MsgSetSwap) GetToDenomMetadata() types1.Metadata
func (*MsgSetSwap) Marshal ¶
func (m *MsgSetSwap) Marshal() (dAtA []byte, err error)
func (*MsgSetSwap) MarshalToSizedBuffer ¶
func (m *MsgSetSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetSwap) ProtoMessage ¶
func (*MsgSetSwap) ProtoMessage()
func (*MsgSetSwap) Reset ¶
func (m *MsgSetSwap) Reset()
func (*MsgSetSwap) Route ¶
func (m *MsgSetSwap) Route() string
Route implements the LegacyMsg.Route method.
func (*MsgSetSwap) Size ¶
func (m *MsgSetSwap) Size() (n int)
func (*MsgSetSwap) String ¶
func (m *MsgSetSwap) String() string
func (*MsgSetSwap) Type ¶
func (m *MsgSetSwap) Type() string
Type implements the LegacyMsg.Type method.
func (*MsgSetSwap) Unmarshal ¶
func (m *MsgSetSwap) Unmarshal(dAtA []byte) error
func (*MsgSetSwap) ValidateBasic ¶
func (m *MsgSetSwap) ValidateBasic() error
func (*MsgSetSwap) XXX_DiscardUnknown ¶
func (m *MsgSetSwap) XXX_DiscardUnknown()
func (*MsgSetSwap) XXX_Marshal ¶
func (m *MsgSetSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetSwap) XXX_Merge ¶
func (m *MsgSetSwap) XXX_Merge(src proto.Message)
func (*MsgSetSwap) XXX_Size ¶
func (m *MsgSetSwap) XXX_Size() int
func (*MsgSetSwap) XXX_Unmarshal ¶
func (m *MsgSetSwap) XXX_Unmarshal(b []byte) error
type MsgSetSwapResponse ¶
type MsgSetSwapResponse struct { }
func (*MsgSetSwapResponse) Descriptor ¶
func (*MsgSetSwapResponse) Descriptor() ([]byte, []int)
func (*MsgSetSwapResponse) Marshal ¶
func (m *MsgSetSwapResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetSwapResponse) MarshalTo ¶
func (m *MsgSetSwapResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetSwapResponse) MarshalToSizedBuffer ¶
func (m *MsgSetSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetSwapResponse) ProtoMessage ¶
func (*MsgSetSwapResponse) ProtoMessage()
func (*MsgSetSwapResponse) Reset ¶
func (m *MsgSetSwapResponse) Reset()
func (*MsgSetSwapResponse) Size ¶
func (m *MsgSetSwapResponse) Size() (n int)
func (*MsgSetSwapResponse) String ¶
func (m *MsgSetSwapResponse) String() string
func (*MsgSetSwapResponse) Unmarshal ¶
func (m *MsgSetSwapResponse) Unmarshal(dAtA []byte) error
func (*MsgSetSwapResponse) XXX_DiscardUnknown ¶
func (m *MsgSetSwapResponse) XXX_DiscardUnknown()
func (*MsgSetSwapResponse) XXX_Marshal ¶
func (m *MsgSetSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetSwapResponse) XXX_Merge ¶
func (m *MsgSetSwapResponse) XXX_Merge(src proto.Message)
func (*MsgSetSwapResponse) XXX_Size ¶
func (m *MsgSetSwapResponse) XXX_Size() int
func (*MsgSetSwapResponse) XXX_Unmarshal ¶
func (m *MsgSetSwapResponse) XXX_Unmarshal(b []byte) error
type MsgSwap ¶
type MsgSwap struct { // holder's address FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` // from-coin amount FromCoinAmount types.Coin `` /* 152-byte string literal not displayed */ ToDenom string `protobuf:"bytes,3,opt,name=to_denom,json=toDenom,proto3" json:"to_denom,omitempty"` }
func (*MsgSwap) Descriptor ¶
func (*MsgSwap) GetFromAddress ¶
func (*MsgSwap) GetFromCoinAmount ¶
func (*MsgSwap) GetSignBytes ¶
GetSignBytes implements the LegacyMsg.GetSignBytes method.
func (*MsgSwap) GetSignerBytes ¶
func (*MsgSwap) GetSigners ¶
func (m *MsgSwap) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgSwap) GetToDenom ¶
func (*MsgSwap) MarshalToSizedBuffer ¶
func (*MsgSwap) ProtoMessage ¶
func (*MsgSwap) ProtoMessage()
func (*MsgSwap) ValidateBasic ¶
ValidateBasic Implements Msg.
func (*MsgSwap) XXX_DiscardUnknown ¶
func (m *MsgSwap) XXX_DiscardUnknown()
func (*MsgSwap) XXX_Marshal ¶
func (*MsgSwap) XXX_Unmarshal ¶
type MsgSwapAll ¶
type MsgSwapAll struct { // holder's address FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` FromDenom string `protobuf:"bytes,2,opt,name=from_denom,json=fromDenom,proto3" json:"from_denom,omitempty"` ToDenom string `protobuf:"bytes,3,opt,name=to_denom,json=toDenom,proto3" json:"to_denom,omitempty"` }
func (*MsgSwapAll) Descriptor ¶
func (*MsgSwapAll) Descriptor() ([]byte, []int)
func (*MsgSwapAll) GetFromAddress ¶
func (m *MsgSwapAll) GetFromAddress() string
func (*MsgSwapAll) GetFromDenom ¶
func (m *MsgSwapAll) GetFromDenom() string
func (*MsgSwapAll) GetSignBytes ¶
func (m *MsgSwapAll) GetSignBytes() []byte
GetSignBytes implements the LegacyMsg.GetSignBytes method.
func (*MsgSwapAll) GetSigners ¶
func (m *MsgSwapAll) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgSwapAll) GetToDenom ¶
func (m *MsgSwapAll) GetToDenom() string
func (*MsgSwapAll) Marshal ¶
func (m *MsgSwapAll) Marshal() (dAtA []byte, err error)
func (*MsgSwapAll) MarshalToSizedBuffer ¶
func (m *MsgSwapAll) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapAll) ProtoMessage ¶
func (*MsgSwapAll) ProtoMessage()
func (*MsgSwapAll) Reset ¶
func (m *MsgSwapAll) Reset()
func (*MsgSwapAll) Route ¶
func (m *MsgSwapAll) Route() string
Route implements the LegacyMsg.Route method.
func (*MsgSwapAll) Size ¶
func (m *MsgSwapAll) Size() (n int)
func (*MsgSwapAll) String ¶
func (m *MsgSwapAll) String() string
func (*MsgSwapAll) Type ¶
func (m *MsgSwapAll) Type() string
Type implements the LegacyMsg.Type method.
func (*MsgSwapAll) Unmarshal ¶
func (m *MsgSwapAll) Unmarshal(dAtA []byte) error
func (*MsgSwapAll) ValidateBasic ¶
func (m *MsgSwapAll) ValidateBasic() error
ValidateBasic Implements Msg.
func (*MsgSwapAll) XXX_DiscardUnknown ¶
func (m *MsgSwapAll) XXX_DiscardUnknown()
func (*MsgSwapAll) XXX_Marshal ¶
func (m *MsgSwapAll) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapAll) XXX_Merge ¶
func (m *MsgSwapAll) XXX_Merge(src proto.Message)
func (*MsgSwapAll) XXX_Size ¶
func (m *MsgSwapAll) XXX_Size() int
func (*MsgSwapAll) XXX_Unmarshal ¶
func (m *MsgSwapAll) XXX_Unmarshal(b []byte) error
type MsgSwapAllResponse ¶
type MsgSwapAllResponse struct { }
func (*MsgSwapAllResponse) Descriptor ¶
func (*MsgSwapAllResponse) Descriptor() ([]byte, []int)
func (*MsgSwapAllResponse) Marshal ¶
func (m *MsgSwapAllResponse) Marshal() (dAtA []byte, err error)
func (*MsgSwapAllResponse) MarshalTo ¶
func (m *MsgSwapAllResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapAllResponse) MarshalToSizedBuffer ¶
func (m *MsgSwapAllResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapAllResponse) ProtoMessage ¶
func (*MsgSwapAllResponse) ProtoMessage()
func (*MsgSwapAllResponse) Reset ¶
func (m *MsgSwapAllResponse) Reset()
func (*MsgSwapAllResponse) Size ¶
func (m *MsgSwapAllResponse) Size() (n int)
func (*MsgSwapAllResponse) String ¶
func (m *MsgSwapAllResponse) String() string
func (*MsgSwapAllResponse) Unmarshal ¶
func (m *MsgSwapAllResponse) Unmarshal(dAtA []byte) error
func (*MsgSwapAllResponse) XXX_DiscardUnknown ¶
func (m *MsgSwapAllResponse) XXX_DiscardUnknown()
func (*MsgSwapAllResponse) XXX_Marshal ¶
func (m *MsgSwapAllResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapAllResponse) XXX_Merge ¶
func (m *MsgSwapAllResponse) XXX_Merge(src proto.Message)
func (*MsgSwapAllResponse) XXX_Size ¶
func (m *MsgSwapAllResponse) XXX_Size() int
func (*MsgSwapAllResponse) XXX_Unmarshal ¶
func (m *MsgSwapAllResponse) 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 QueryClient ¶
type QueryClient interface { // Swapped queries the current swapped status that includes a burnt amount of from-coin and a minted amount of // to-coin. Swapped(ctx context.Context, in *QuerySwappedRequest, opts ...grpc.CallOption) (*QuerySwappedResponse, error) // TotalSwappableToCoinAmount queries the current swappable amount for to-coin. TotalSwappableToCoinAmount(ctx context.Context, in *QueryTotalSwappableToCoinAmountRequest, opts ...grpc.CallOption) (*QueryTotalSwappableToCoinAmountResponse, error) // Swap queries a swap Swap(ctx context.Context, in *QuerySwapRequest, opts ...grpc.CallOption) (*QuerySwapResponse, error) // Swaps queries all the swap that registered Swaps(ctx context.Context, in *QuerySwapsRequest, opts ...grpc.CallOption) (*QuerySwapsResponse, 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 QueryServer ¶
type QueryServer interface { // Swapped queries the current swapped status that includes a burnt amount of from-coin and a minted amount of // to-coin. Swapped(context.Context, *QuerySwappedRequest) (*QuerySwappedResponse, error) // TotalSwappableToCoinAmount queries the current swappable amount for to-coin. TotalSwappableToCoinAmount(context.Context, *QueryTotalSwappableToCoinAmountRequest) (*QueryTotalSwappableToCoinAmountResponse, error) // Swap queries a swap Swap(context.Context, *QuerySwapRequest) (*QuerySwapResponse, error) // Swaps queries all the swap that registered Swaps(context.Context, *QuerySwapsRequest) (*QuerySwapsResponse, error) }
QueryServer is the server API for Query service.
type QuerySwapRequest ¶
type QuerySwapRequest struct { FromDenom string `protobuf:"bytes,1,opt,name=from_denom,json=fromDenom,proto3" json:"from_denom,omitempty"` ToDenom string `protobuf:"bytes,2,opt,name=to_denom,json=toDenom,proto3" json:"to_denom,omitempty"` }
func (*QuerySwapRequest) Descriptor ¶
func (*QuerySwapRequest) Descriptor() ([]byte, []int)
func (*QuerySwapRequest) GetFromDenom ¶
func (m *QuerySwapRequest) GetFromDenom() string
func (*QuerySwapRequest) GetToDenom ¶
func (m *QuerySwapRequest) GetToDenom() string
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) Validate ¶
func (m *QuerySwapRequest) Validate() 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) GetSwap ¶
func (m *QuerySwapResponse) GetSwap() Swap
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 QuerySwappedRequest ¶
type QuerySwappedRequest struct { FromDenom string `protobuf:"bytes,1,opt,name=from_denom,json=fromDenom,proto3" json:"from_denom,omitempty"` ToDenom string `protobuf:"bytes,2,opt,name=to_denom,json=toDenom,proto3" json:"to_denom,omitempty"` }
func (*QuerySwappedRequest) Descriptor ¶
func (*QuerySwappedRequest) Descriptor() ([]byte, []int)
func (*QuerySwappedRequest) GetFromDenom ¶
func (m *QuerySwappedRequest) GetFromDenom() string
func (*QuerySwappedRequest) GetToDenom ¶
func (m *QuerySwappedRequest) GetToDenom() string
func (*QuerySwappedRequest) Marshal ¶
func (m *QuerySwappedRequest) Marshal() (dAtA []byte, err error)
func (*QuerySwappedRequest) MarshalTo ¶
func (m *QuerySwappedRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySwappedRequest) MarshalToSizedBuffer ¶
func (m *QuerySwappedRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySwappedRequest) ProtoMessage ¶
func (*QuerySwappedRequest) ProtoMessage()
func (*QuerySwappedRequest) Reset ¶
func (m *QuerySwappedRequest) Reset()
func (*QuerySwappedRequest) Size ¶
func (m *QuerySwappedRequest) Size() (n int)
func (*QuerySwappedRequest) String ¶
func (m *QuerySwappedRequest) String() string
func (*QuerySwappedRequest) Unmarshal ¶
func (m *QuerySwappedRequest) Unmarshal(dAtA []byte) error
func (*QuerySwappedRequest) XXX_DiscardUnknown ¶
func (m *QuerySwappedRequest) XXX_DiscardUnknown()
func (*QuerySwappedRequest) XXX_Marshal ¶
func (m *QuerySwappedRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySwappedRequest) XXX_Merge ¶
func (m *QuerySwappedRequest) XXX_Merge(src proto.Message)
func (*QuerySwappedRequest) XXX_Size ¶
func (m *QuerySwappedRequest) XXX_Size() int
func (*QuerySwappedRequest) XXX_Unmarshal ¶
func (m *QuerySwappedRequest) XXX_Unmarshal(b []byte) error
type QuerySwappedResponse ¶
type QuerySwappedResponse struct { FromCoinAmount types.Coin `` /* 152-byte string literal not displayed */ ToCoinAmount types.Coin `` /* 146-byte string literal not displayed */ }
func (*QuerySwappedResponse) Descriptor ¶
func (*QuerySwappedResponse) Descriptor() ([]byte, []int)
func (*QuerySwappedResponse) GetFromCoinAmount ¶
func (m *QuerySwappedResponse) GetFromCoinAmount() types.Coin
func (*QuerySwappedResponse) GetToCoinAmount ¶
func (m *QuerySwappedResponse) GetToCoinAmount() types.Coin
func (*QuerySwappedResponse) Marshal ¶
func (m *QuerySwappedResponse) Marshal() (dAtA []byte, err error)
func (*QuerySwappedResponse) MarshalTo ¶
func (m *QuerySwappedResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySwappedResponse) MarshalToSizedBuffer ¶
func (m *QuerySwappedResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySwappedResponse) ProtoMessage ¶
func (*QuerySwappedResponse) ProtoMessage()
func (*QuerySwappedResponse) Reset ¶
func (m *QuerySwappedResponse) Reset()
func (*QuerySwappedResponse) Size ¶
func (m *QuerySwappedResponse) Size() (n int)
func (*QuerySwappedResponse) String ¶
func (m *QuerySwappedResponse) String() string
func (*QuerySwappedResponse) Unmarshal ¶
func (m *QuerySwappedResponse) Unmarshal(dAtA []byte) error
func (*QuerySwappedResponse) XXX_DiscardUnknown ¶
func (m *QuerySwappedResponse) XXX_DiscardUnknown()
func (*QuerySwappedResponse) XXX_Marshal ¶
func (m *QuerySwappedResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySwappedResponse) XXX_Merge ¶
func (m *QuerySwappedResponse) XXX_Merge(src proto.Message)
func (*QuerySwappedResponse) XXX_Size ¶
func (m *QuerySwappedResponse) XXX_Size() int
func (*QuerySwappedResponse) XXX_Unmarshal ¶
func (m *QuerySwappedResponse) XXX_Unmarshal(b []byte) error
type QuerySwapsRequest ¶
type QuerySwapsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QuerySwapsRequest) Descriptor ¶
func (*QuerySwapsRequest) Descriptor() ([]byte, []int)
func (*QuerySwapsRequest) GetPagination ¶
func (m *QuerySwapsRequest) GetPagination() *query.PageRequest
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) GetPagination ¶
func (m *QuerySwapsResponse) GetPagination() *query.PageResponse
func (*QuerySwapsResponse) GetSwaps ¶
func (m *QuerySwapsResponse) GetSwaps() []Swap
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 QueryTotalSwappableToCoinAmountRequest ¶
type QueryTotalSwappableToCoinAmountRequest struct { FromDenom string `protobuf:"bytes,1,opt,name=from_denom,json=fromDenom,proto3" json:"from_denom,omitempty"` ToDenom string `protobuf:"bytes,2,opt,name=to_denom,json=toDenom,proto3" json:"to_denom,omitempty"` }
func (*QueryTotalSwappableToCoinAmountRequest) Descriptor ¶
func (*QueryTotalSwappableToCoinAmountRequest) Descriptor() ([]byte, []int)
func (*QueryTotalSwappableToCoinAmountRequest) GetFromDenom ¶
func (m *QueryTotalSwappableToCoinAmountRequest) GetFromDenom() string
func (*QueryTotalSwappableToCoinAmountRequest) GetToDenom ¶
func (m *QueryTotalSwappableToCoinAmountRequest) GetToDenom() string
func (*QueryTotalSwappableToCoinAmountRequest) Marshal ¶
func (m *QueryTotalSwappableToCoinAmountRequest) Marshal() (dAtA []byte, err error)
func (*QueryTotalSwappableToCoinAmountRequest) MarshalTo ¶
func (m *QueryTotalSwappableToCoinAmountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalSwappableToCoinAmountRequest) MarshalToSizedBuffer ¶
func (m *QueryTotalSwappableToCoinAmountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalSwappableToCoinAmountRequest) ProtoMessage ¶
func (*QueryTotalSwappableToCoinAmountRequest) ProtoMessage()
func (*QueryTotalSwappableToCoinAmountRequest) Reset ¶
func (m *QueryTotalSwappableToCoinAmountRequest) Reset()
func (*QueryTotalSwappableToCoinAmountRequest) Size ¶
func (m *QueryTotalSwappableToCoinAmountRequest) Size() (n int)
func (*QueryTotalSwappableToCoinAmountRequest) String ¶
func (m *QueryTotalSwappableToCoinAmountRequest) String() string
func (*QueryTotalSwappableToCoinAmountRequest) Unmarshal ¶
func (m *QueryTotalSwappableToCoinAmountRequest) Unmarshal(dAtA []byte) error
func (*QueryTotalSwappableToCoinAmountRequest) XXX_DiscardUnknown ¶
func (m *QueryTotalSwappableToCoinAmountRequest) XXX_DiscardUnknown()
func (*QueryTotalSwappableToCoinAmountRequest) XXX_Marshal ¶
func (m *QueryTotalSwappableToCoinAmountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalSwappableToCoinAmountRequest) XXX_Merge ¶
func (m *QueryTotalSwappableToCoinAmountRequest) XXX_Merge(src proto.Message)
func (*QueryTotalSwappableToCoinAmountRequest) XXX_Size ¶
func (m *QueryTotalSwappableToCoinAmountRequest) XXX_Size() int
func (*QueryTotalSwappableToCoinAmountRequest) XXX_Unmarshal ¶
func (m *QueryTotalSwappableToCoinAmountRequest) XXX_Unmarshal(b []byte) error
type QueryTotalSwappableToCoinAmountResponse ¶
type QueryTotalSwappableToCoinAmountResponse struct {
SwappableAmount types.Coin `` /* 153-byte string literal not displayed */
}
func (*QueryTotalSwappableToCoinAmountResponse) Descriptor ¶
func (*QueryTotalSwappableToCoinAmountResponse) Descriptor() ([]byte, []int)
func (*QueryTotalSwappableToCoinAmountResponse) GetSwappableAmount ¶
func (m *QueryTotalSwappableToCoinAmountResponse) GetSwappableAmount() types.Coin
func (*QueryTotalSwappableToCoinAmountResponse) Marshal ¶
func (m *QueryTotalSwappableToCoinAmountResponse) Marshal() (dAtA []byte, err error)
func (*QueryTotalSwappableToCoinAmountResponse) MarshalTo ¶
func (m *QueryTotalSwappableToCoinAmountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalSwappableToCoinAmountResponse) MarshalToSizedBuffer ¶
func (m *QueryTotalSwappableToCoinAmountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalSwappableToCoinAmountResponse) ProtoMessage ¶
func (*QueryTotalSwappableToCoinAmountResponse) ProtoMessage()
func (*QueryTotalSwappableToCoinAmountResponse) Reset ¶
func (m *QueryTotalSwappableToCoinAmountResponse) Reset()
func (*QueryTotalSwappableToCoinAmountResponse) Size ¶
func (m *QueryTotalSwappableToCoinAmountResponse) Size() (n int)
func (*QueryTotalSwappableToCoinAmountResponse) String ¶
func (m *QueryTotalSwappableToCoinAmountResponse) String() string
func (*QueryTotalSwappableToCoinAmountResponse) Unmarshal ¶
func (m *QueryTotalSwappableToCoinAmountResponse) Unmarshal(dAtA []byte) error
func (*QueryTotalSwappableToCoinAmountResponse) XXX_DiscardUnknown ¶
func (m *QueryTotalSwappableToCoinAmountResponse) XXX_DiscardUnknown()
func (*QueryTotalSwappableToCoinAmountResponse) XXX_Marshal ¶
func (m *QueryTotalSwappableToCoinAmountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalSwappableToCoinAmountResponse) XXX_Merge ¶
func (m *QueryTotalSwappableToCoinAmountResponse) XXX_Merge(src proto.Message)
func (*QueryTotalSwappableToCoinAmountResponse) XXX_Size ¶
func (m *QueryTotalSwappableToCoinAmountResponse) XXX_Size() int
func (*QueryTotalSwappableToCoinAmountResponse) XXX_Unmarshal ¶
func (m *QueryTotalSwappableToCoinAmountResponse) XXX_Unmarshal(b []byte) error
type Swap ¶
type Swap struct { FromDenom string `protobuf:"bytes,1,opt,name=from_denom,json=fromDenom,proto3" json:"from_denom,omitempty"` ToDenom string `protobuf:"bytes,2,opt,name=to_denom,json=toDenom,proto3" json:"to_denom,omitempty"` AmountCapForToDenom github_com_Finschia_finschia_sdk_types.Int `` /* 168-byte string literal not displayed */ SwapRate github_com_Finschia_finschia_sdk_types.Dec `` /* 129-byte string literal not displayed */ }
func (*Swap) Descriptor ¶
func (*Swap) GetFromDenom ¶
func (*Swap) GetToDenom ¶
func (*Swap) ProtoMessage ¶
func (*Swap) ProtoMessage()
func (*Swap) ValidateBasic ¶
ValidateBasic validates the set of Swap
func (*Swap) XXX_DiscardUnknown ¶
func (m *Swap) XXX_DiscardUnknown()
func (*Swap) XXX_Unmarshal ¶
type SwapStats ¶
type SwapStats struct {
SwapCount int32 `protobuf:"varint,1,opt,name=swap_count,json=swapCount,proto3" json:"swap_count,omitempty"`
}
func (*SwapStats) Descriptor ¶
func (*SwapStats) GetSwapCount ¶
func (*SwapStats) MarshalToSizedBuffer ¶
func (*SwapStats) ProtoMessage ¶
func (*SwapStats) ProtoMessage()
func (*SwapStats) ValidateBasic ¶
ValidateBasic validates the set of SwapStats
func (*SwapStats) XXX_DiscardUnknown ¶
func (m *SwapStats) XXX_DiscardUnknown()
func (*SwapStats) XXX_Marshal ¶
func (*SwapStats) XXX_Unmarshal ¶
type Swapped ¶
type Swapped struct { FromCoinAmount types.Coin `` /* 152-byte string literal not displayed */ ToCoinAmount types.Coin `` /* 146-byte string literal not displayed */ }
func (*Swapped) Descriptor ¶
func (*Swapped) GetFromCoinAmount ¶
func (*Swapped) GetToCoinAmount ¶
func (*Swapped) MarshalToSizedBuffer ¶
func (*Swapped) ProtoMessage ¶
func (*Swapped) ProtoMessage()
func (*Swapped) ValidateBasic ¶
ValidateBasic validates the set of Swapped
func (*Swapped) XXX_DiscardUnknown ¶
func (m *Swapped) XXX_DiscardUnknown()
func (*Swapped) XXX_Marshal ¶
func (*Swapped) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) SetSwap ¶
func (*UnimplementedMsgServer) SetSwap(ctx context.Context, req *MsgSetSwap) (*MsgSetSwapResponse, error)
func (*UnimplementedMsgServer) Swap ¶
func (*UnimplementedMsgServer) Swap(ctx context.Context, req *MsgSwap) (*MsgSwapResponse, error)
func (*UnimplementedMsgServer) SwapAll ¶
func (*UnimplementedMsgServer) SwapAll(ctx context.Context, req *MsgSwapAll) (*MsgSwapAllResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Swap ¶
func (*UnimplementedQueryServer) Swap(ctx context.Context, req *QuerySwapRequest) (*QuerySwapResponse, error)
func (*UnimplementedQueryServer) Swapped ¶
func (*UnimplementedQueryServer) Swapped(ctx context.Context, req *QuerySwappedRequest) (*QuerySwappedResponse, error)
func (*UnimplementedQueryServer) Swaps ¶
func (*UnimplementedQueryServer) Swaps(ctx context.Context, req *QuerySwapsRequest) (*QuerySwapsResponse, error)
func (*UnimplementedQueryServer) TotalSwappableToCoinAmount ¶
func (*UnimplementedQueryServer) TotalSwappableToCoinAmount(ctx context.Context, req *QueryTotalSwappableToCoinAmountRequest) (*QueryTotalSwappableToCoinAmountResponse, error)