types

package
v0.49.1 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: Apache-2.0 Imports: 31 Imported by: 1

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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

View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
View Source
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

View Source
var (
	ErrInvalidLengthEvent        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvent          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthFswap        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFswap          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFswap = 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 (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = 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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type Config

type Config struct {
	MaxSwaps      int
	UpdateAllowed bool
}

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

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

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

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) Validate

func (gs *GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type 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

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

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

func (*MsgSwap) GetFromAddress

func (m *MsgSwap) GetFromAddress() string

func (*MsgSwap) GetFromCoinAmount

func (m *MsgSwap) GetFromCoinAmount() types.Coin

func (*MsgSwap) GetSignBytes

func (m *MsgSwap) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg.GetSignBytes method.

func (*MsgSwap) GetSignerBytes

func (m *MsgSwap) GetSignerBytes() []byte

func (*MsgSwap) GetSigners

func (m *MsgSwap) GetSigners() []sdk.AccAddress

GetSigners Implements Msg.

func (*MsgSwap) GetToDenom

func (m *MsgSwap) GetToDenom() string

func (*MsgSwap) Marshal

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

func (*MsgSwap) MarshalTo

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

func (*MsgSwap) MarshalToSizedBuffer

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

func (*MsgSwap) ProtoMessage

func (*MsgSwap) ProtoMessage()

func (*MsgSwap) Reset

func (m *MsgSwap) Reset()

func (*MsgSwap) Route

func (m *MsgSwap) Route() string

Route implements the LegacyMsg.Route method.

func (*MsgSwap) Size

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

func (*MsgSwap) String

func (m *MsgSwap) String() string

func (*MsgSwap) Type

func (m *MsgSwap) Type() string

Type implements the LegacyMsg.Type method.

func (*MsgSwap) Unmarshal

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

func (*MsgSwap) ValidateBasic

func (m *MsgSwap) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgSwap) XXX_DiscardUnknown

func (m *MsgSwap) XXX_DiscardUnknown()

func (*MsgSwap) XXX_Marshal

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

func (*MsgSwap) XXX_Merge

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

func (*MsgSwap) XXX_Size

func (m *MsgSwap) XXX_Size() int

func (*MsgSwap) XXX_Unmarshal

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

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

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

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) Reset

func (*QueryTotalSwappableToCoinAmountRequest) Size

func (*QueryTotalSwappableToCoinAmountRequest) 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 (*QueryTotalSwappableToCoinAmountRequest) XXX_Size

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) Reset

func (*QueryTotalSwappableToCoinAmountResponse) Size

func (*QueryTotalSwappableToCoinAmountResponse) 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 (*QueryTotalSwappableToCoinAmountResponse) XXX_Size

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) Descriptor() ([]byte, []int)

func (*Swap) GetFromDenom

func (m *Swap) GetFromDenom() string

func (*Swap) GetToDenom

func (m *Swap) GetToDenom() string

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) ValidateBasic

func (s *Swap) ValidateBasic() error

ValidateBasic validates the set of Swap

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 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) Descriptor() ([]byte, []int)

func (*SwapStats) GetSwapCount

func (m *SwapStats) GetSwapCount() int32

func (*SwapStats) Marshal

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

func (*SwapStats) MarshalTo

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

func (*SwapStats) MarshalToSizedBuffer

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

func (*SwapStats) ProtoMessage

func (*SwapStats) ProtoMessage()

func (*SwapStats) Reset

func (m *SwapStats) Reset()

func (*SwapStats) Size

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

func (*SwapStats) String

func (m *SwapStats) String() string

func (*SwapStats) Unmarshal

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

func (*SwapStats) ValidateBasic

func (s *SwapStats) ValidateBasic() error

ValidateBasic validates the set of SwapStats

func (*SwapStats) XXX_DiscardUnknown

func (m *SwapStats) XXX_DiscardUnknown()

func (*SwapStats) XXX_Marshal

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

func (*SwapStats) XXX_Merge

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

func (*SwapStats) XXX_Size

func (m *SwapStats) XXX_Size() int

func (*SwapStats) XXX_Unmarshal

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

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) Descriptor() ([]byte, []int)

func (*Swapped) GetFromCoinAmount

func (m *Swapped) GetFromCoinAmount() types.Coin

func (*Swapped) GetToCoinAmount

func (m *Swapped) GetToCoinAmount() types.Coin

func (*Swapped) Marshal

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

func (*Swapped) MarshalTo

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

func (*Swapped) MarshalToSizedBuffer

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

func (*Swapped) ProtoMessage

func (*Swapped) ProtoMessage()

func (*Swapped) Reset

func (m *Swapped) Reset()

func (*Swapped) Size

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

func (*Swapped) String

func (m *Swapped) String() string

func (*Swapped) Unmarshal

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

func (*Swapped) ValidateBasic

func (s *Swapped) ValidateBasic() error

ValidateBasic validates the set of Swapped

func (*Swapped) XXX_DiscardUnknown

func (m *Swapped) XXX_DiscardUnknown()

func (*Swapped) XXX_Marshal

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

func (*Swapped) XXX_Merge

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

func (*Swapped) XXX_Size

func (m *Swapped) XXX_Size() int

func (*Swapped) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) SetSwap

func (*UnimplementedMsgServer) Swap

func (*UnimplementedMsgServer) SwapAll

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Swap

func (*UnimplementedQueryServer) Swapped

func (*UnimplementedQueryServer) Swaps

Jump to

Keyboard shortcuts

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