types

package
v0.0.0-...-3315d20 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeSwap            = "swap"
	EventTypeCreatePool      = "create_pool"
	EventTypeAddLiquidity    = "add_liquidity"
	EventTypeRemoveLiquidity = "remove_liquidity"

	AttributeKeyAccount              = "account"
	AttributeKeyLpDenom              = "lp_denom"
	AttributeKeyInputToken           = "input_token"
	AttributeKeyOutputToken          = "output_token"
	AttributeKeyFeeAmount            = "fee_amount"
	AttributeKeyPoolBaseTokenBalance = "pool_base_token_balance"
	AttributeKeyPoolTokenBalance     = "pool_token_balance"

	AttributeKeyAddBaseToken = "add_base_token"
	AttributeKeyAddToken     = "add_token"
	AttributeKeyNewTotalUnit = "new_total_unit"
	AttributeKeyAddLpUnit    = "add_lp_unit"

	AttributeKeyRemoveUnit            = "remove_unit"
	AttributeKeySwapUnit              = "swap_unit"
	AttributeKeyRemoveBaseTokenAmount = "remove_base_token_amount"
	AttributeKeyRemoveTokenAmount     = "remove_token_amount"
)

sudo module event types

View Source
const (
	// ModuleName defines the module name
	ModuleName = "rdex"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_rdex"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgAddLiquidity = "add_liquidity"
View Source
const TypeMsgAddPoolCreator = "add_pool_creator"
View Source
const TypeMsgAddProvider = "add_provider"
View Source
const TypeMsgCreatePool = "create_pool"
View Source
const TypeMsgRemoveLiquidity = "remove_liquidity"
View Source
const TypeMsgRmPoolCreator = "rm_pool_creator"
View Source
const TypeMsgRmProvider = "rm_provider"
View Source
const TypeMsgSwap = "swap"
View Source
const TypeMsgToggleProviderSwitch = "toggle_provider_switch"

Variables

View Source
var (
	Amino     = codec.NewLegacyAmino()
	ModuleCdc = codec.NewAminoCodec(Amino)
)
View Source
var (
	ErrSample                           = sdkerrors.Register(ModuleName, 1100, "sample error")
	ErrSwapPoolAlreadyExist             = sdkerrors.Register(ModuleName, 1101, "swap pool already exist")
	ErrInvalidAddress                   = sdkerrors.Register(ModuleName, 1102, "invalid address")
	ErrUserTokenBalanceInsufficient     = sdkerrors.Register(ModuleName, 1103, "user token balance insufficient")
	ErrUserBaseTokenBalanceInsufficient = sdkerrors.Register(ModuleName, 1104, "user base token balance insufficient")
	ErrSwapPoolNotExit                  = sdkerrors.Register(ModuleName, 1105, "swap pool not exist")
	ErrAddLpUnitZero                    = sdkerrors.Register(ModuleName, 1106, "add lp unit is zero")
	ErrSwapAmountTooFew                 = sdkerrors.Register(ModuleName, 1107, "swap amount too few")
	ErrLessThanMinOutAmount             = sdkerrors.Register(ModuleName, 1108, "less than min out amount")
	ErrInsufficientLpTokenBalance       = sdkerrors.Register(ModuleName, 1109, "insufficient lp balance")
	ErrUnitAmount                       = sdkerrors.Register(ModuleName, 1110, "unit amount error")
	ErrPoolTokenBalanceInsufficient     = sdkerrors.Register(ModuleName, 1111, "pool token balance insufficient")
	ErrPoolBaseTokenBalanceInsufficient = sdkerrors.Register(ModuleName, 1112, "pool base token balance insufficient")
	ErrPoolOneSideZero                  = sdkerrors.Register(ModuleName, 1113, "pool one side zero")
	ErrProviderNotExist                 = sdkerrors.Register(ModuleName, 1114, "provider not exist")
	ErrPermissionDeny                   = sdkerrors.Register(ModuleName, 1115, "permission deny")
	ErrDenomUnmatchSwapPool             = sdkerrors.Register(ModuleName, 1116, "denom unmatch swap pool")
)

x/rdex module sentinel errors

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 (
	SwitchStateClose = []byte{0x00}
	SwitchStateOpen  = []byte{0x01}
)
View Source
var (
	SwapPoolStoreKeyPrefix    = []byte{0x01}
	ProviderStoreKeyPrefix    = []byte{0x02}
	ProviderSwitchStoreKey    = []byte{0x03}
	PoolCreatorStoreKeyPrefix = []byte{0x04}
	SwapPoolIndexStoreKey     = []byte{0x05}
)
View Source
var (
	ErrInvalidLengthModels        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowModels          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupModels = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	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 GetLpTokenDenom

func GetLpTokenDenom(index uint32) string

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func PoolCreatorStoreKey

func PoolCreatorStoreKey(addr sdk.AccAddress) []byte

func ProviderStoreKey

func ProviderStoreKey(addr sdk.AccAddress) []byte

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SwapPoolStoreKey

func SwapPoolStoreKey(denom string) []byte

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	//HasDenomMetaData(ctx sdk.Context, denom string) bool
	GetSupply(ctx sdk.Context, denom string) sdk.Coin
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
}

type GenesisState

type GenesisState struct {
	Params          Params      `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	SwapPoolList    []*SwapPool `protobuf:"bytes,2,rep,name=swapPoolList,proto3" json:"swapPoolList,omitempty"`
	ProviderList    []string    `protobuf:"bytes,3,rep,name=providerList,proto3" json:"providerList,omitempty"`
	ProviderSwitch  bool        `protobuf:"varint,4,opt,name=providerSwitch,proto3" json:"providerSwitch,omitempty"`
	PoolCreatorList []string    `protobuf:"bytes,5,rep,name=poolCreatorList,proto3" json:"poolCreatorList,omitempty"`
}

GenesisState defines the rdex 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) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPoolCreatorList

func (m *GenesisState) GetPoolCreatorList() []string

func (*GenesisState) GetProviderList

func (m *GenesisState) GetProviderList() []string

func (*GenesisState) GetProviderSwitch

func (m *GenesisState) GetProviderSwitch() bool

func (*GenesisState) GetSwapPoolList

func (m *GenesisState) GetSwapPoolList() []*SwapPool

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 MsgAddLiquidity

type MsgAddLiquidity struct {
	Creator       string                                  `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	SwapPoolIndex uint32                                  `protobuf:"varint,2,opt,name=swapPoolIndex,proto3" json:"swapPoolIndex"`
	Token0        github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=token0,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"token0"`
	Token1        github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,4,opt,name=token1,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"token1"`
}

func NewMsgAddLiquidity

func NewMsgAddLiquidity(creator string, swapPoolIndex uint32, token0, token1 sdk.Coin) *MsgAddLiquidity

func (*MsgAddLiquidity) Descriptor

func (*MsgAddLiquidity) Descriptor() ([]byte, []int)

func (*MsgAddLiquidity) GetCreator

func (m *MsgAddLiquidity) GetCreator() string

func (*MsgAddLiquidity) GetSignBytes

func (msg *MsgAddLiquidity) GetSignBytes() []byte

func (*MsgAddLiquidity) GetSigners

func (msg *MsgAddLiquidity) GetSigners() []sdk.AccAddress

func (*MsgAddLiquidity) GetSwapPoolIndex

func (m *MsgAddLiquidity) GetSwapPoolIndex() uint32

func (*MsgAddLiquidity) Marshal

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

func (*MsgAddLiquidity) MarshalTo

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

func (*MsgAddLiquidity) MarshalToSizedBuffer

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

func (*MsgAddLiquidity) ProtoMessage

func (*MsgAddLiquidity) ProtoMessage()

func (*MsgAddLiquidity) Reset

func (m *MsgAddLiquidity) Reset()

func (*MsgAddLiquidity) Route

func (msg *MsgAddLiquidity) Route() string

func (*MsgAddLiquidity) Size

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

func (*MsgAddLiquidity) String

func (m *MsgAddLiquidity) String() string

func (*MsgAddLiquidity) Type

func (msg *MsgAddLiquidity) Type() string

func (*MsgAddLiquidity) Unmarshal

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

func (*MsgAddLiquidity) ValidateBasic

func (msg *MsgAddLiquidity) ValidateBasic() error

func (*MsgAddLiquidity) XXX_DiscardUnknown

func (m *MsgAddLiquidity) XXX_DiscardUnknown()

func (*MsgAddLiquidity) XXX_Marshal

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

func (*MsgAddLiquidity) XXX_Merge

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

func (*MsgAddLiquidity) XXX_Size

func (m *MsgAddLiquidity) XXX_Size() int

func (*MsgAddLiquidity) XXX_Unmarshal

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

type MsgAddLiquidityResponse

type MsgAddLiquidityResponse struct {
}

func (*MsgAddLiquidityResponse) Descriptor

func (*MsgAddLiquidityResponse) Descriptor() ([]byte, []int)

func (*MsgAddLiquidityResponse) Marshal

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

func (*MsgAddLiquidityResponse) MarshalTo

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

func (*MsgAddLiquidityResponse) MarshalToSizedBuffer

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

func (*MsgAddLiquidityResponse) ProtoMessage

func (*MsgAddLiquidityResponse) ProtoMessage()

func (*MsgAddLiquidityResponse) Reset

func (m *MsgAddLiquidityResponse) Reset()

func (*MsgAddLiquidityResponse) Size

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

func (*MsgAddLiquidityResponse) String

func (m *MsgAddLiquidityResponse) String() string

func (*MsgAddLiquidityResponse) Unmarshal

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

func (*MsgAddLiquidityResponse) XXX_DiscardUnknown

func (m *MsgAddLiquidityResponse) XXX_DiscardUnknown()

func (*MsgAddLiquidityResponse) XXX_Marshal

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

func (*MsgAddLiquidityResponse) XXX_Merge

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

func (*MsgAddLiquidityResponse) XXX_Size

func (m *MsgAddLiquidityResponse) XXX_Size() int

func (*MsgAddLiquidityResponse) XXX_Unmarshal

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

type MsgAddPoolCreator

type MsgAddPoolCreator struct {
	Creator     string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	UserAddress string `protobuf:"bytes,2,opt,name=userAddress,proto3" json:"userAddress,omitempty"`
}

func NewMsgAddPoolCreator

func NewMsgAddPoolCreator(creator string, userAddress string) *MsgAddPoolCreator

func (*MsgAddPoolCreator) Descriptor

func (*MsgAddPoolCreator) Descriptor() ([]byte, []int)

func (*MsgAddPoolCreator) GetCreator

func (m *MsgAddPoolCreator) GetCreator() string

func (*MsgAddPoolCreator) GetSignBytes

func (msg *MsgAddPoolCreator) GetSignBytes() []byte

func (*MsgAddPoolCreator) GetSigners

func (msg *MsgAddPoolCreator) GetSigners() []sdk.AccAddress

func (*MsgAddPoolCreator) GetUserAddress

func (m *MsgAddPoolCreator) GetUserAddress() string

func (*MsgAddPoolCreator) Marshal

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

func (*MsgAddPoolCreator) MarshalTo

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

func (*MsgAddPoolCreator) MarshalToSizedBuffer

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

func (*MsgAddPoolCreator) ProtoMessage

func (*MsgAddPoolCreator) ProtoMessage()

func (*MsgAddPoolCreator) Reset

func (m *MsgAddPoolCreator) Reset()

func (*MsgAddPoolCreator) Route

func (msg *MsgAddPoolCreator) Route() string

func (*MsgAddPoolCreator) Size

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

func (*MsgAddPoolCreator) String

func (m *MsgAddPoolCreator) String() string

func (*MsgAddPoolCreator) Type

func (msg *MsgAddPoolCreator) Type() string

func (*MsgAddPoolCreator) Unmarshal

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

func (*MsgAddPoolCreator) ValidateBasic

func (msg *MsgAddPoolCreator) ValidateBasic() error

func (*MsgAddPoolCreator) XXX_DiscardUnknown

func (m *MsgAddPoolCreator) XXX_DiscardUnknown()

func (*MsgAddPoolCreator) XXX_Marshal

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

func (*MsgAddPoolCreator) XXX_Merge

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

func (*MsgAddPoolCreator) XXX_Size

func (m *MsgAddPoolCreator) XXX_Size() int

func (*MsgAddPoolCreator) XXX_Unmarshal

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

type MsgAddPoolCreatorResponse

type MsgAddPoolCreatorResponse struct {
}

func (*MsgAddPoolCreatorResponse) Descriptor

func (*MsgAddPoolCreatorResponse) Descriptor() ([]byte, []int)

func (*MsgAddPoolCreatorResponse) Marshal

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

func (*MsgAddPoolCreatorResponse) MarshalTo

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

func (*MsgAddPoolCreatorResponse) MarshalToSizedBuffer

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

func (*MsgAddPoolCreatorResponse) ProtoMessage

func (*MsgAddPoolCreatorResponse) ProtoMessage()

func (*MsgAddPoolCreatorResponse) Reset

func (m *MsgAddPoolCreatorResponse) Reset()

func (*MsgAddPoolCreatorResponse) Size

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

func (*MsgAddPoolCreatorResponse) String

func (m *MsgAddPoolCreatorResponse) String() string

func (*MsgAddPoolCreatorResponse) Unmarshal

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

func (*MsgAddPoolCreatorResponse) XXX_DiscardUnknown

func (m *MsgAddPoolCreatorResponse) XXX_DiscardUnknown()

func (*MsgAddPoolCreatorResponse) XXX_Marshal

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

func (*MsgAddPoolCreatorResponse) XXX_Merge

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

func (*MsgAddPoolCreatorResponse) XXX_Size

func (m *MsgAddPoolCreatorResponse) XXX_Size() int

func (*MsgAddPoolCreatorResponse) XXX_Unmarshal

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

type MsgAddProvider

type MsgAddProvider struct {
	Creator     string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	UserAddress string `protobuf:"bytes,2,opt,name=userAddress,proto3" json:"userAddress,omitempty"`
}

func NewMsgAddProvider

func NewMsgAddProvider(creator string, userAddress string) *MsgAddProvider

func (*MsgAddProvider) Descriptor

func (*MsgAddProvider) Descriptor() ([]byte, []int)

func (*MsgAddProvider) GetCreator

func (m *MsgAddProvider) GetCreator() string

func (*MsgAddProvider) GetSignBytes

func (msg *MsgAddProvider) GetSignBytes() []byte

func (*MsgAddProvider) GetSigners

func (msg *MsgAddProvider) GetSigners() []sdk.AccAddress

func (*MsgAddProvider) GetUserAddress

func (m *MsgAddProvider) GetUserAddress() string

func (*MsgAddProvider) Marshal

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

func (*MsgAddProvider) MarshalTo

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

func (*MsgAddProvider) MarshalToSizedBuffer

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

func (*MsgAddProvider) ProtoMessage

func (*MsgAddProvider) ProtoMessage()

func (*MsgAddProvider) Reset

func (m *MsgAddProvider) Reset()

func (*MsgAddProvider) Route

func (msg *MsgAddProvider) Route() string

func (*MsgAddProvider) Size

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

func (*MsgAddProvider) String

func (m *MsgAddProvider) String() string

func (*MsgAddProvider) Type

func (msg *MsgAddProvider) Type() string

func (*MsgAddProvider) Unmarshal

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

func (*MsgAddProvider) ValidateBasic

func (msg *MsgAddProvider) ValidateBasic() error

func (*MsgAddProvider) XXX_DiscardUnknown

func (m *MsgAddProvider) XXX_DiscardUnknown()

func (*MsgAddProvider) XXX_Marshal

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

func (*MsgAddProvider) XXX_Merge

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

func (*MsgAddProvider) XXX_Size

func (m *MsgAddProvider) XXX_Size() int

func (*MsgAddProvider) XXX_Unmarshal

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

type MsgAddProviderResponse

type MsgAddProviderResponse struct {
}

func (*MsgAddProviderResponse) Descriptor

func (*MsgAddProviderResponse) Descriptor() ([]byte, []int)

func (*MsgAddProviderResponse) Marshal

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

func (*MsgAddProviderResponse) MarshalTo

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

func (*MsgAddProviderResponse) MarshalToSizedBuffer

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

func (*MsgAddProviderResponse) ProtoMessage

func (*MsgAddProviderResponse) ProtoMessage()

func (*MsgAddProviderResponse) Reset

func (m *MsgAddProviderResponse) Reset()

func (*MsgAddProviderResponse) Size

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

func (*MsgAddProviderResponse) String

func (m *MsgAddProviderResponse) String() string

func (*MsgAddProviderResponse) Unmarshal

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

func (*MsgAddProviderResponse) XXX_DiscardUnknown

func (m *MsgAddProviderResponse) XXX_DiscardUnknown()

func (*MsgAddProviderResponse) XXX_Marshal

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

func (*MsgAddProviderResponse) XXX_Merge

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

func (*MsgAddProviderResponse) XXX_Size

func (m *MsgAddProviderResponse) XXX_Size() int

func (*MsgAddProviderResponse) XXX_Unmarshal

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

type MsgClient

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 MsgCreatePool

type MsgCreatePool struct {
	Creator string                                  `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Token0  github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=token0,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"token0"`
	Token1  github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=token1,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"token1"`
}

func NewMsgCreatePool

func NewMsgCreatePool(creator string, token0, token1 sdk.Coin) *MsgCreatePool

func (*MsgCreatePool) Descriptor

func (*MsgCreatePool) Descriptor() ([]byte, []int)

func (*MsgCreatePool) GetCreator

func (m *MsgCreatePool) GetCreator() string

func (*MsgCreatePool) GetSignBytes

func (msg *MsgCreatePool) GetSignBytes() []byte

func (*MsgCreatePool) GetSigners

func (msg *MsgCreatePool) GetSigners() []sdk.AccAddress

func (*MsgCreatePool) Marshal

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

func (*MsgCreatePool) MarshalTo

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

func (*MsgCreatePool) MarshalToSizedBuffer

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

func (*MsgCreatePool) ProtoMessage

func (*MsgCreatePool) ProtoMessage()

func (*MsgCreatePool) Reset

func (m *MsgCreatePool) Reset()

func (*MsgCreatePool) Route

func (msg *MsgCreatePool) Route() string

func (*MsgCreatePool) Size

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

func (*MsgCreatePool) String

func (m *MsgCreatePool) String() string

func (*MsgCreatePool) Type

func (msg *MsgCreatePool) Type() string

func (*MsgCreatePool) Unmarshal

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

func (*MsgCreatePool) ValidateBasic

func (msg *MsgCreatePool) ValidateBasic() error

func (*MsgCreatePool) XXX_DiscardUnknown

func (m *MsgCreatePool) XXX_DiscardUnknown()

func (*MsgCreatePool) XXX_Marshal

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

func (*MsgCreatePool) XXX_Merge

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

func (*MsgCreatePool) XXX_Size

func (m *MsgCreatePool) XXX_Size() int

func (*MsgCreatePool) XXX_Unmarshal

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

type MsgCreatePoolResponse

type MsgCreatePoolResponse struct {
}

func (*MsgCreatePoolResponse) Descriptor

func (*MsgCreatePoolResponse) Descriptor() ([]byte, []int)

func (*MsgCreatePoolResponse) Marshal

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

func (*MsgCreatePoolResponse) MarshalTo

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

func (*MsgCreatePoolResponse) MarshalToSizedBuffer

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

func (*MsgCreatePoolResponse) ProtoMessage

func (*MsgCreatePoolResponse) ProtoMessage()

func (*MsgCreatePoolResponse) Reset

func (m *MsgCreatePoolResponse) Reset()

func (*MsgCreatePoolResponse) Size

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

func (*MsgCreatePoolResponse) String

func (m *MsgCreatePoolResponse) String() string

func (*MsgCreatePoolResponse) Unmarshal

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

func (*MsgCreatePoolResponse) XXX_DiscardUnknown

func (m *MsgCreatePoolResponse) XXX_DiscardUnknown()

func (*MsgCreatePoolResponse) XXX_Marshal

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

func (*MsgCreatePoolResponse) XXX_Merge

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

func (*MsgCreatePoolResponse) XXX_Size

func (m *MsgCreatePoolResponse) XXX_Size() int

func (*MsgCreatePoolResponse) XXX_Unmarshal

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

type MsgRemoveLiquidity

type MsgRemoveLiquidity struct {
	Creator         string                                  `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	SwapPoolIndex   uint32                                  `protobuf:"varint,2,opt,name=swapPoolIndex,proto3" json:"swapPoolIndex"`
	RmUnit          github_com_cosmos_cosmos_sdk_types.Int  `protobuf:"bytes,3,opt,name=rmUnit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"rmUnit"`
	SwapUnit        github_com_cosmos_cosmos_sdk_types.Int  `protobuf:"bytes,4,opt,name=swapUnit,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"swapUnit"`
	MinOutToken0    github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,5,opt,name=minOutToken0,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"minOutToken0"`
	MinOutToken1    github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,6,opt,name=minOutToken1,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"minOutToken1"`
	InputTokenDenom string                                  `protobuf:"bytes,7,opt,name=inputTokenDenom,proto3" json:"inputTokenDenom,omitempty"`
}

func NewMsgRemoveLiquidity

func NewMsgRemoveLiquidity(creator string, swapPoolIndex uint32, rmUnit, swapUnit sdk.Int, minOutToken0, minOutToken1 sdk.Coin, inputTokenDenom string) *MsgRemoveLiquidity

func (*MsgRemoveLiquidity) Descriptor

func (*MsgRemoveLiquidity) Descriptor() ([]byte, []int)

func (*MsgRemoveLiquidity) GetCreator

func (m *MsgRemoveLiquidity) GetCreator() string

func (*MsgRemoveLiquidity) GetInputTokenDenom

func (m *MsgRemoveLiquidity) GetInputTokenDenom() string

func (*MsgRemoveLiquidity) GetSignBytes

func (msg *MsgRemoveLiquidity) GetSignBytes() []byte

func (*MsgRemoveLiquidity) GetSigners

func (msg *MsgRemoveLiquidity) GetSigners() []sdk.AccAddress

func (*MsgRemoveLiquidity) GetSwapPoolIndex

func (m *MsgRemoveLiquidity) GetSwapPoolIndex() uint32

func (*MsgRemoveLiquidity) Marshal

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

func (*MsgRemoveLiquidity) MarshalTo

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

func (*MsgRemoveLiquidity) MarshalToSizedBuffer

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

func (*MsgRemoveLiquidity) ProtoMessage

func (*MsgRemoveLiquidity) ProtoMessage()

func (*MsgRemoveLiquidity) Reset

func (m *MsgRemoveLiquidity) Reset()

func (*MsgRemoveLiquidity) Route

func (msg *MsgRemoveLiquidity) Route() string

func (*MsgRemoveLiquidity) Size

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

func (*MsgRemoveLiquidity) String

func (m *MsgRemoveLiquidity) String() string

func (*MsgRemoveLiquidity) Type

func (msg *MsgRemoveLiquidity) Type() string

func (*MsgRemoveLiquidity) Unmarshal

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

func (*MsgRemoveLiquidity) ValidateBasic

func (msg *MsgRemoveLiquidity) ValidateBasic() error

func (*MsgRemoveLiquidity) XXX_DiscardUnknown

func (m *MsgRemoveLiquidity) XXX_DiscardUnknown()

func (*MsgRemoveLiquidity) XXX_Marshal

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

func (*MsgRemoveLiquidity) XXX_Merge

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

func (*MsgRemoveLiquidity) XXX_Size

func (m *MsgRemoveLiquidity) XXX_Size() int

func (*MsgRemoveLiquidity) XXX_Unmarshal

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

type MsgRemoveLiquidityResponse

type MsgRemoveLiquidityResponse struct {
}

func (*MsgRemoveLiquidityResponse) Descriptor

func (*MsgRemoveLiquidityResponse) Descriptor() ([]byte, []int)

func (*MsgRemoveLiquidityResponse) Marshal

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

func (*MsgRemoveLiquidityResponse) MarshalTo

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

func (*MsgRemoveLiquidityResponse) MarshalToSizedBuffer

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

func (*MsgRemoveLiquidityResponse) ProtoMessage

func (*MsgRemoveLiquidityResponse) ProtoMessage()

func (*MsgRemoveLiquidityResponse) Reset

func (m *MsgRemoveLiquidityResponse) Reset()

func (*MsgRemoveLiquidityResponse) Size

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

func (*MsgRemoveLiquidityResponse) String

func (m *MsgRemoveLiquidityResponse) String() string

func (*MsgRemoveLiquidityResponse) Unmarshal

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

func (*MsgRemoveLiquidityResponse) XXX_DiscardUnknown

func (m *MsgRemoveLiquidityResponse) XXX_DiscardUnknown()

func (*MsgRemoveLiquidityResponse) XXX_Marshal

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

func (*MsgRemoveLiquidityResponse) XXX_Merge

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

func (*MsgRemoveLiquidityResponse) XXX_Size

func (m *MsgRemoveLiquidityResponse) XXX_Size() int

func (*MsgRemoveLiquidityResponse) XXX_Unmarshal

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

type MsgRmPoolCreator

type MsgRmPoolCreator struct {
	Creator     string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	UserAddress string `protobuf:"bytes,2,opt,name=userAddress,proto3" json:"userAddress,omitempty"`
}

func NewMsgRmPoolCreator

func NewMsgRmPoolCreator(creator string, userAddress string) *MsgRmPoolCreator

func (*MsgRmPoolCreator) Descriptor

func (*MsgRmPoolCreator) Descriptor() ([]byte, []int)

func (*MsgRmPoolCreator) GetCreator

func (m *MsgRmPoolCreator) GetCreator() string

func (*MsgRmPoolCreator) GetSignBytes

func (msg *MsgRmPoolCreator) GetSignBytes() []byte

func (*MsgRmPoolCreator) GetSigners

func (msg *MsgRmPoolCreator) GetSigners() []sdk.AccAddress

func (*MsgRmPoolCreator) GetUserAddress

func (m *MsgRmPoolCreator) GetUserAddress() string

func (*MsgRmPoolCreator) Marshal

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

func (*MsgRmPoolCreator) MarshalTo

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

func (*MsgRmPoolCreator) MarshalToSizedBuffer

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

func (*MsgRmPoolCreator) ProtoMessage

func (*MsgRmPoolCreator) ProtoMessage()

func (*MsgRmPoolCreator) Reset

func (m *MsgRmPoolCreator) Reset()

func (*MsgRmPoolCreator) Route

func (msg *MsgRmPoolCreator) Route() string

func (*MsgRmPoolCreator) Size

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

func (*MsgRmPoolCreator) String

func (m *MsgRmPoolCreator) String() string

func (*MsgRmPoolCreator) Type

func (msg *MsgRmPoolCreator) Type() string

func (*MsgRmPoolCreator) Unmarshal

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

func (*MsgRmPoolCreator) ValidateBasic

func (msg *MsgRmPoolCreator) ValidateBasic() error

func (*MsgRmPoolCreator) XXX_DiscardUnknown

func (m *MsgRmPoolCreator) XXX_DiscardUnknown()

func (*MsgRmPoolCreator) XXX_Marshal

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

func (*MsgRmPoolCreator) XXX_Merge

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

func (*MsgRmPoolCreator) XXX_Size

func (m *MsgRmPoolCreator) XXX_Size() int

func (*MsgRmPoolCreator) XXX_Unmarshal

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

type MsgRmPoolCreatorResponse

type MsgRmPoolCreatorResponse struct {
}

func (*MsgRmPoolCreatorResponse) Descriptor

func (*MsgRmPoolCreatorResponse) Descriptor() ([]byte, []int)

func (*MsgRmPoolCreatorResponse) Marshal

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

func (*MsgRmPoolCreatorResponse) MarshalTo

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

func (*MsgRmPoolCreatorResponse) MarshalToSizedBuffer

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

func (*MsgRmPoolCreatorResponse) ProtoMessage

func (*MsgRmPoolCreatorResponse) ProtoMessage()

func (*MsgRmPoolCreatorResponse) Reset

func (m *MsgRmPoolCreatorResponse) Reset()

func (*MsgRmPoolCreatorResponse) Size

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

func (*MsgRmPoolCreatorResponse) String

func (m *MsgRmPoolCreatorResponse) String() string

func (*MsgRmPoolCreatorResponse) Unmarshal

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

func (*MsgRmPoolCreatorResponse) XXX_DiscardUnknown

func (m *MsgRmPoolCreatorResponse) XXX_DiscardUnknown()

func (*MsgRmPoolCreatorResponse) XXX_Marshal

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

func (*MsgRmPoolCreatorResponse) XXX_Merge

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

func (*MsgRmPoolCreatorResponse) XXX_Size

func (m *MsgRmPoolCreatorResponse) XXX_Size() int

func (*MsgRmPoolCreatorResponse) XXX_Unmarshal

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

type MsgRmProvider

type MsgRmProvider struct {
	Creator     string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	UserAddress string `protobuf:"bytes,2,opt,name=userAddress,proto3" json:"userAddress,omitempty"`
}

func NewMsgRmProvider

func NewMsgRmProvider(creator string, userAddress string) *MsgRmProvider

func (*MsgRmProvider) Descriptor

func (*MsgRmProvider) Descriptor() ([]byte, []int)

func (*MsgRmProvider) GetCreator

func (m *MsgRmProvider) GetCreator() string

func (*MsgRmProvider) GetSignBytes

func (msg *MsgRmProvider) GetSignBytes() []byte

func (*MsgRmProvider) GetSigners

func (msg *MsgRmProvider) GetSigners() []sdk.AccAddress

func (*MsgRmProvider) GetUserAddress

func (m *MsgRmProvider) GetUserAddress() string

func (*MsgRmProvider) Marshal

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

func (*MsgRmProvider) MarshalTo

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

func (*MsgRmProvider) MarshalToSizedBuffer

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

func (*MsgRmProvider) ProtoMessage

func (*MsgRmProvider) ProtoMessage()

func (*MsgRmProvider) Reset

func (m *MsgRmProvider) Reset()

func (*MsgRmProvider) Route

func (msg *MsgRmProvider) Route() string

func (*MsgRmProvider) Size

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

func (*MsgRmProvider) String

func (m *MsgRmProvider) String() string

func (*MsgRmProvider) Type

func (msg *MsgRmProvider) Type() string

func (*MsgRmProvider) Unmarshal

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

func (*MsgRmProvider) ValidateBasic

func (msg *MsgRmProvider) ValidateBasic() error

func (*MsgRmProvider) XXX_DiscardUnknown

func (m *MsgRmProvider) XXX_DiscardUnknown()

func (*MsgRmProvider) XXX_Marshal

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

func (*MsgRmProvider) XXX_Merge

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

func (*MsgRmProvider) XXX_Size

func (m *MsgRmProvider) XXX_Size() int

func (*MsgRmProvider) XXX_Unmarshal

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

type MsgRmProviderResponse

type MsgRmProviderResponse struct {
}

func (*MsgRmProviderResponse) Descriptor

func (*MsgRmProviderResponse) Descriptor() ([]byte, []int)

func (*MsgRmProviderResponse) Marshal

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

func (*MsgRmProviderResponse) MarshalTo

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

func (*MsgRmProviderResponse) MarshalToSizedBuffer

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

func (*MsgRmProviderResponse) ProtoMessage

func (*MsgRmProviderResponse) ProtoMessage()

func (*MsgRmProviderResponse) Reset

func (m *MsgRmProviderResponse) Reset()

func (*MsgRmProviderResponse) Size

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

func (*MsgRmProviderResponse) String

func (m *MsgRmProviderResponse) String() string

func (*MsgRmProviderResponse) Unmarshal

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

func (*MsgRmProviderResponse) XXX_DiscardUnknown

func (m *MsgRmProviderResponse) XXX_DiscardUnknown()

func (*MsgRmProviderResponse) XXX_Marshal

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

func (*MsgRmProviderResponse) XXX_Merge

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

func (*MsgRmProviderResponse) XXX_Size

func (m *MsgRmProviderResponse) XXX_Size() int

func (*MsgRmProviderResponse) XXX_Unmarshal

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

type MsgSwap

type MsgSwap struct {
	Creator       string                                  `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	SwapPoolIndex uint32                                  `protobuf:"varint,2,opt,name=swapPoolIndex,proto3" json:"swapPoolIndex"`
	InputToken    github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,3,opt,name=inputToken,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"inputToken"`
	MinOutToken   github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,4,opt,name=minOutToken,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"minOutToken"`
}

func NewMsgSwap

func NewMsgSwap(creator string, swapPoolIndex uint32, inputToken, minOutToken sdk.Coin) *MsgSwap

func (*MsgSwap) Descriptor

func (*MsgSwap) Descriptor() ([]byte, []int)

func (*MsgSwap) GetCreator

func (m *MsgSwap) GetCreator() string

func (*MsgSwap) GetSignBytes

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

func (*MsgSwap) GetSigners

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

func (*MsgSwap) GetSwapPoolIndex

func (m *MsgSwap) GetSwapPoolIndex() uint32

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 (msg *MsgSwap) Route() string

func (*MsgSwap) Size

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

func (*MsgSwap) String

func (m *MsgSwap) String() string

func (*MsgSwap) Type

func (msg *MsgSwap) Type() string

func (*MsgSwap) Unmarshal

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

func (*MsgSwap) ValidateBasic

func (msg *MsgSwap) ValidateBasic() error

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 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 MsgToggleProviderSwitch

type MsgToggleProviderSwitch struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
}

func NewMsgToggleProviderSwitch

func NewMsgToggleProviderSwitch(creator string) *MsgToggleProviderSwitch

func (*MsgToggleProviderSwitch) Descriptor

func (*MsgToggleProviderSwitch) Descriptor() ([]byte, []int)

func (*MsgToggleProviderSwitch) GetCreator

func (m *MsgToggleProviderSwitch) GetCreator() string

func (*MsgToggleProviderSwitch) GetSignBytes

func (msg *MsgToggleProviderSwitch) GetSignBytes() []byte

func (*MsgToggleProviderSwitch) GetSigners

func (msg *MsgToggleProviderSwitch) GetSigners() []sdk.AccAddress

func (*MsgToggleProviderSwitch) Marshal

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

func (*MsgToggleProviderSwitch) MarshalTo

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

func (*MsgToggleProviderSwitch) MarshalToSizedBuffer

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

func (*MsgToggleProviderSwitch) ProtoMessage

func (*MsgToggleProviderSwitch) ProtoMessage()

func (*MsgToggleProviderSwitch) Reset

func (m *MsgToggleProviderSwitch) Reset()

func (*MsgToggleProviderSwitch) Route

func (msg *MsgToggleProviderSwitch) Route() string

func (*MsgToggleProviderSwitch) Size

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

func (*MsgToggleProviderSwitch) String

func (m *MsgToggleProviderSwitch) String() string

func (*MsgToggleProviderSwitch) Type

func (msg *MsgToggleProviderSwitch) Type() string

func (*MsgToggleProviderSwitch) Unmarshal

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

func (*MsgToggleProviderSwitch) ValidateBasic

func (msg *MsgToggleProviderSwitch) ValidateBasic() error

func (*MsgToggleProviderSwitch) XXX_DiscardUnknown

func (m *MsgToggleProviderSwitch) XXX_DiscardUnknown()

func (*MsgToggleProviderSwitch) XXX_Marshal

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

func (*MsgToggleProviderSwitch) XXX_Merge

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

func (*MsgToggleProviderSwitch) XXX_Size

func (m *MsgToggleProviderSwitch) XXX_Size() int

func (*MsgToggleProviderSwitch) XXX_Unmarshal

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

type MsgToggleProviderSwitchResponse

type MsgToggleProviderSwitchResponse struct {
}

func (*MsgToggleProviderSwitchResponse) Descriptor

func (*MsgToggleProviderSwitchResponse) Descriptor() ([]byte, []int)

func (*MsgToggleProviderSwitchResponse) Marshal

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

func (*MsgToggleProviderSwitchResponse) MarshalTo

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

func (*MsgToggleProviderSwitchResponse) MarshalToSizedBuffer

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

func (*MsgToggleProviderSwitchResponse) ProtoMessage

func (*MsgToggleProviderSwitchResponse) ProtoMessage()

func (*MsgToggleProviderSwitchResponse) Reset

func (*MsgToggleProviderSwitchResponse) Size

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

func (*MsgToggleProviderSwitchResponse) String

func (*MsgToggleProviderSwitchResponse) Unmarshal

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

func (*MsgToggleProviderSwitchResponse) XXX_DiscardUnknown

func (m *MsgToggleProviderSwitchResponse) XXX_DiscardUnknown()

func (*MsgToggleProviderSwitchResponse) XXX_Marshal

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

func (*MsgToggleProviderSwitchResponse) XXX_Merge

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

func (*MsgToggleProviderSwitchResponse) XXX_Size

func (m *MsgToggleProviderSwitchResponse) XXX_Size() int

func (*MsgToggleProviderSwitchResponse) XXX_Unmarshal

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

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of SwapPoolInfo items.
	SwapPoolInfo(ctx context.Context, in *QuerySwapPoolInfoRequest, opts ...grpc.CallOption) (*QuerySwapPoolInfoResponse, error)
	// Queries a list of SwapPoolList items.
	SwapPoolList(ctx context.Context, in *QuerySwapPoolListRequest, opts ...grpc.CallOption) (*QuerySwapPoolListResponse, error)
	// Queries a list of ProviderList items.
	ProviderList(ctx context.Context, in *QueryProviderListRequest, opts ...grpc.CallOption) (*QueryProviderListResponse, error)
	// Queries a list of PoolCreatorList items.
	PoolCreatorList(ctx context.Context, in *QueryPoolCreatorListRequest, opts ...grpc.CallOption) (*QueryPoolCreatorListResponse, error)
	// Queries a list of ProviderSwitch items.
	ProviderSwitch(ctx context.Context, in *QueryProviderSwitchRequest, opts ...grpc.CallOption) (*QueryProviderSwitchResponse, 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 QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor

func (*QueryParamsRequest) Descriptor() ([]byte, []int)

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor

func (*QueryParamsResponse) Descriptor() ([]byte, []int)

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryPoolCreatorListRequest

type QueryPoolCreatorListRequest struct {
}

func (*QueryPoolCreatorListRequest) Descriptor

func (*QueryPoolCreatorListRequest) Descriptor() ([]byte, []int)

func (*QueryPoolCreatorListRequest) Marshal

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

func (*QueryPoolCreatorListRequest) MarshalTo

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

func (*QueryPoolCreatorListRequest) MarshalToSizedBuffer

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

func (*QueryPoolCreatorListRequest) ProtoMessage

func (*QueryPoolCreatorListRequest) ProtoMessage()

func (*QueryPoolCreatorListRequest) Reset

func (m *QueryPoolCreatorListRequest) Reset()

func (*QueryPoolCreatorListRequest) Size

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

func (*QueryPoolCreatorListRequest) String

func (m *QueryPoolCreatorListRequest) String() string

func (*QueryPoolCreatorListRequest) Unmarshal

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

func (*QueryPoolCreatorListRequest) XXX_DiscardUnknown

func (m *QueryPoolCreatorListRequest) XXX_DiscardUnknown()

func (*QueryPoolCreatorListRequest) XXX_Marshal

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

func (*QueryPoolCreatorListRequest) XXX_Merge

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

func (*QueryPoolCreatorListRequest) XXX_Size

func (m *QueryPoolCreatorListRequest) XXX_Size() int

func (*QueryPoolCreatorListRequest) XXX_Unmarshal

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

type QueryPoolCreatorListResponse

type QueryPoolCreatorListResponse struct {
	PoolCreatorList []string `protobuf:"bytes,1,rep,name=poolCreatorList,proto3" json:"poolCreatorList,omitempty"`
}

func (*QueryPoolCreatorListResponse) Descriptor

func (*QueryPoolCreatorListResponse) Descriptor() ([]byte, []int)

func (*QueryPoolCreatorListResponse) GetPoolCreatorList

func (m *QueryPoolCreatorListResponse) GetPoolCreatorList() []string

func (*QueryPoolCreatorListResponse) Marshal

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

func (*QueryPoolCreatorListResponse) MarshalTo

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

func (*QueryPoolCreatorListResponse) MarshalToSizedBuffer

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

func (*QueryPoolCreatorListResponse) ProtoMessage

func (*QueryPoolCreatorListResponse) ProtoMessage()

func (*QueryPoolCreatorListResponse) Reset

func (m *QueryPoolCreatorListResponse) Reset()

func (*QueryPoolCreatorListResponse) Size

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

func (*QueryPoolCreatorListResponse) String

func (*QueryPoolCreatorListResponse) Unmarshal

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

func (*QueryPoolCreatorListResponse) XXX_DiscardUnknown

func (m *QueryPoolCreatorListResponse) XXX_DiscardUnknown()

func (*QueryPoolCreatorListResponse) XXX_Marshal

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

func (*QueryPoolCreatorListResponse) XXX_Merge

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

func (*QueryPoolCreatorListResponse) XXX_Size

func (m *QueryPoolCreatorListResponse) XXX_Size() int

func (*QueryPoolCreatorListResponse) XXX_Unmarshal

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

type QueryProviderListRequest

type QueryProviderListRequest struct {
}

func (*QueryProviderListRequest) Descriptor

func (*QueryProviderListRequest) Descriptor() ([]byte, []int)

func (*QueryProviderListRequest) Marshal

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

func (*QueryProviderListRequest) MarshalTo

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

func (*QueryProviderListRequest) MarshalToSizedBuffer

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

func (*QueryProviderListRequest) ProtoMessage

func (*QueryProviderListRequest) ProtoMessage()

func (*QueryProviderListRequest) Reset

func (m *QueryProviderListRequest) Reset()

func (*QueryProviderListRequest) Size

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

func (*QueryProviderListRequest) String

func (m *QueryProviderListRequest) String() string

func (*QueryProviderListRequest) Unmarshal

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

func (*QueryProviderListRequest) XXX_DiscardUnknown

func (m *QueryProviderListRequest) XXX_DiscardUnknown()

func (*QueryProviderListRequest) XXX_Marshal

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

func (*QueryProviderListRequest) XXX_Merge

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

func (*QueryProviderListRequest) XXX_Size

func (m *QueryProviderListRequest) XXX_Size() int

func (*QueryProviderListRequest) XXX_Unmarshal

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

type QueryProviderListResponse

type QueryProviderListResponse struct {
	ProviderList []string `protobuf:"bytes,1,rep,name=providerList,proto3" json:"providerList,omitempty"`
}

func (*QueryProviderListResponse) Descriptor

func (*QueryProviderListResponse) Descriptor() ([]byte, []int)

func (*QueryProviderListResponse) GetProviderList

func (m *QueryProviderListResponse) GetProviderList() []string

func (*QueryProviderListResponse) Marshal

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

func (*QueryProviderListResponse) MarshalTo

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

func (*QueryProviderListResponse) MarshalToSizedBuffer

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

func (*QueryProviderListResponse) ProtoMessage

func (*QueryProviderListResponse) ProtoMessage()

func (*QueryProviderListResponse) Reset

func (m *QueryProviderListResponse) Reset()

func (*QueryProviderListResponse) Size

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

func (*QueryProviderListResponse) String

func (m *QueryProviderListResponse) String() string

func (*QueryProviderListResponse) Unmarshal

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

func (*QueryProviderListResponse) XXX_DiscardUnknown

func (m *QueryProviderListResponse) XXX_DiscardUnknown()

func (*QueryProviderListResponse) XXX_Marshal

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

func (*QueryProviderListResponse) XXX_Merge

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

func (*QueryProviderListResponse) XXX_Size

func (m *QueryProviderListResponse) XXX_Size() int

func (*QueryProviderListResponse) XXX_Unmarshal

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

type QueryProviderSwitchRequest

type QueryProviderSwitchRequest struct {
}

func (*QueryProviderSwitchRequest) Descriptor

func (*QueryProviderSwitchRequest) Descriptor() ([]byte, []int)

func (*QueryProviderSwitchRequest) Marshal

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

func (*QueryProviderSwitchRequest) MarshalTo

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

func (*QueryProviderSwitchRequest) MarshalToSizedBuffer

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

func (*QueryProviderSwitchRequest) ProtoMessage

func (*QueryProviderSwitchRequest) ProtoMessage()

func (*QueryProviderSwitchRequest) Reset

func (m *QueryProviderSwitchRequest) Reset()

func (*QueryProviderSwitchRequest) Size

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

func (*QueryProviderSwitchRequest) String

func (m *QueryProviderSwitchRequest) String() string

func (*QueryProviderSwitchRequest) Unmarshal

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

func (*QueryProviderSwitchRequest) XXX_DiscardUnknown

func (m *QueryProviderSwitchRequest) XXX_DiscardUnknown()

func (*QueryProviderSwitchRequest) XXX_Marshal

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

func (*QueryProviderSwitchRequest) XXX_Merge

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

func (*QueryProviderSwitchRequest) XXX_Size

func (m *QueryProviderSwitchRequest) XXX_Size() int

func (*QueryProviderSwitchRequest) XXX_Unmarshal

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

type QueryProviderSwitchResponse

type QueryProviderSwitchResponse struct {
	ProviderSwitch bool `protobuf:"varint,1,opt,name=providerSwitch,proto3" json:"providerSwitch,omitempty"`
}

func (*QueryProviderSwitchResponse) Descriptor

func (*QueryProviderSwitchResponse) Descriptor() ([]byte, []int)

func (*QueryProviderSwitchResponse) GetProviderSwitch

func (m *QueryProviderSwitchResponse) GetProviderSwitch() bool

func (*QueryProviderSwitchResponse) Marshal

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

func (*QueryProviderSwitchResponse) MarshalTo

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

func (*QueryProviderSwitchResponse) MarshalToSizedBuffer

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

func (*QueryProviderSwitchResponse) ProtoMessage

func (*QueryProviderSwitchResponse) ProtoMessage()

func (*QueryProviderSwitchResponse) Reset

func (m *QueryProviderSwitchResponse) Reset()

func (*QueryProviderSwitchResponse) Size

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

func (*QueryProviderSwitchResponse) String

func (m *QueryProviderSwitchResponse) String() string

func (*QueryProviderSwitchResponse) Unmarshal

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

func (*QueryProviderSwitchResponse) XXX_DiscardUnknown

func (m *QueryProviderSwitchResponse) XXX_DiscardUnknown()

func (*QueryProviderSwitchResponse) XXX_Marshal

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

func (*QueryProviderSwitchResponse) XXX_Merge

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

func (*QueryProviderSwitchResponse) XXX_Size

func (m *QueryProviderSwitchResponse) XXX_Size() int

func (*QueryProviderSwitchResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of SwapPoolInfo items.
	SwapPoolInfo(context.Context, *QuerySwapPoolInfoRequest) (*QuerySwapPoolInfoResponse, error)
	// Queries a list of SwapPoolList items.
	SwapPoolList(context.Context, *QuerySwapPoolListRequest) (*QuerySwapPoolListResponse, error)
	// Queries a list of ProviderList items.
	ProviderList(context.Context, *QueryProviderListRequest) (*QueryProviderListResponse, error)
	// Queries a list of PoolCreatorList items.
	PoolCreatorList(context.Context, *QueryPoolCreatorListRequest) (*QueryPoolCreatorListResponse, error)
	// Queries a list of ProviderSwitch items.
	ProviderSwitch(context.Context, *QueryProviderSwitchRequest) (*QueryProviderSwitchResponse, error)
}

QueryServer is the server API for Query service.

type QuerySwapPoolInfoRequest

type QuerySwapPoolInfoRequest struct {
	LpDenom string `protobuf:"bytes,1,opt,name=lpDenom,proto3" json:"lpDenom,omitempty"`
}

func (*QuerySwapPoolInfoRequest) Descriptor

func (*QuerySwapPoolInfoRequest) Descriptor() ([]byte, []int)

func (*QuerySwapPoolInfoRequest) GetLpDenom

func (m *QuerySwapPoolInfoRequest) GetLpDenom() string

func (*QuerySwapPoolInfoRequest) Marshal

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

func (*QuerySwapPoolInfoRequest) MarshalTo

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

func (*QuerySwapPoolInfoRequest) MarshalToSizedBuffer

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

func (*QuerySwapPoolInfoRequest) ProtoMessage

func (*QuerySwapPoolInfoRequest) ProtoMessage()

func (*QuerySwapPoolInfoRequest) Reset

func (m *QuerySwapPoolInfoRequest) Reset()

func (*QuerySwapPoolInfoRequest) Size

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

func (*QuerySwapPoolInfoRequest) String

func (m *QuerySwapPoolInfoRequest) String() string

func (*QuerySwapPoolInfoRequest) Unmarshal

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

func (*QuerySwapPoolInfoRequest) XXX_DiscardUnknown

func (m *QuerySwapPoolInfoRequest) XXX_DiscardUnknown()

func (*QuerySwapPoolInfoRequest) XXX_Marshal

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

func (*QuerySwapPoolInfoRequest) XXX_Merge

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

func (*QuerySwapPoolInfoRequest) XXX_Size

func (m *QuerySwapPoolInfoRequest) XXX_Size() int

func (*QuerySwapPoolInfoRequest) XXX_Unmarshal

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

type QuerySwapPoolInfoResponse

type QuerySwapPoolInfoResponse struct {
	SwapPool *SwapPool `protobuf:"bytes,1,opt,name=swapPool,proto3" json:"swapPool,omitempty"`
}

func (*QuerySwapPoolInfoResponse) Descriptor

func (*QuerySwapPoolInfoResponse) Descriptor() ([]byte, []int)

func (*QuerySwapPoolInfoResponse) GetSwapPool

func (m *QuerySwapPoolInfoResponse) GetSwapPool() *SwapPool

func (*QuerySwapPoolInfoResponse) Marshal

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

func (*QuerySwapPoolInfoResponse) MarshalTo

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

func (*QuerySwapPoolInfoResponse) MarshalToSizedBuffer

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

func (*QuerySwapPoolInfoResponse) ProtoMessage

func (*QuerySwapPoolInfoResponse) ProtoMessage()

func (*QuerySwapPoolInfoResponse) Reset

func (m *QuerySwapPoolInfoResponse) Reset()

func (*QuerySwapPoolInfoResponse) Size

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

func (*QuerySwapPoolInfoResponse) String

func (m *QuerySwapPoolInfoResponse) String() string

func (*QuerySwapPoolInfoResponse) Unmarshal

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

func (*QuerySwapPoolInfoResponse) XXX_DiscardUnknown

func (m *QuerySwapPoolInfoResponse) XXX_DiscardUnknown()

func (*QuerySwapPoolInfoResponse) XXX_Marshal

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

func (*QuerySwapPoolInfoResponse) XXX_Merge

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

func (*QuerySwapPoolInfoResponse) XXX_Size

func (m *QuerySwapPoolInfoResponse) XXX_Size() int

func (*QuerySwapPoolInfoResponse) XXX_Unmarshal

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

type QuerySwapPoolListRequest

type QuerySwapPoolListRequest struct {
}

func (*QuerySwapPoolListRequest) Descriptor

func (*QuerySwapPoolListRequest) Descriptor() ([]byte, []int)

func (*QuerySwapPoolListRequest) Marshal

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

func (*QuerySwapPoolListRequest) MarshalTo

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

func (*QuerySwapPoolListRequest) MarshalToSizedBuffer

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

func (*QuerySwapPoolListRequest) ProtoMessage

func (*QuerySwapPoolListRequest) ProtoMessage()

func (*QuerySwapPoolListRequest) Reset

func (m *QuerySwapPoolListRequest) Reset()

func (*QuerySwapPoolListRequest) Size

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

func (*QuerySwapPoolListRequest) String

func (m *QuerySwapPoolListRequest) String() string

func (*QuerySwapPoolListRequest) Unmarshal

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

func (*QuerySwapPoolListRequest) XXX_DiscardUnknown

func (m *QuerySwapPoolListRequest) XXX_DiscardUnknown()

func (*QuerySwapPoolListRequest) XXX_Marshal

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

func (*QuerySwapPoolListRequest) XXX_Merge

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

func (*QuerySwapPoolListRequest) XXX_Size

func (m *QuerySwapPoolListRequest) XXX_Size() int

func (*QuerySwapPoolListRequest) XXX_Unmarshal

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

type QuerySwapPoolListResponse

type QuerySwapPoolListResponse struct {
	SwapPoolList []*SwapPool `protobuf:"bytes,1,rep,name=swapPoolList,proto3" json:"swapPoolList,omitempty"`
}

func (*QuerySwapPoolListResponse) Descriptor

func (*QuerySwapPoolListResponse) Descriptor() ([]byte, []int)

func (*QuerySwapPoolListResponse) GetSwapPoolList

func (m *QuerySwapPoolListResponse) GetSwapPoolList() []*SwapPool

func (*QuerySwapPoolListResponse) Marshal

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

func (*QuerySwapPoolListResponse) MarshalTo

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

func (*QuerySwapPoolListResponse) MarshalToSizedBuffer

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

func (*QuerySwapPoolListResponse) ProtoMessage

func (*QuerySwapPoolListResponse) ProtoMessage()

func (*QuerySwapPoolListResponse) Reset

func (m *QuerySwapPoolListResponse) Reset()

func (*QuerySwapPoolListResponse) Size

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

func (*QuerySwapPoolListResponse) String

func (m *QuerySwapPoolListResponse) String() string

func (*QuerySwapPoolListResponse) Unmarshal

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

func (*QuerySwapPoolListResponse) XXX_DiscardUnknown

func (m *QuerySwapPoolListResponse) XXX_DiscardUnknown()

func (*QuerySwapPoolListResponse) XXX_Marshal

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

func (*QuerySwapPoolListResponse) XXX_Merge

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

func (*QuerySwapPoolListResponse) XXX_Size

func (m *QuerySwapPoolListResponse) XXX_Size() int

func (*QuerySwapPoolListResponse) XXX_Unmarshal

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

type SudoKeeper

type SudoKeeper interface {
	IsAdmin(ctx sdk.Context, address string) bool
}

type SwapPool

type SwapPool struct {
	Index     uint32     `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	LpToken   types.Coin `protobuf:"bytes,2,opt,name=lpToken,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"lpToken"`
	BaseToken types.Coin `protobuf:"bytes,3,opt,name=baseToken,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"baseToken"`
	Token     types.Coin `protobuf:"bytes,4,opt,name=token,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coin" json:"token"`
}

func (*SwapPool) Descriptor

func (*SwapPool) Descriptor() ([]byte, []int)

func (*SwapPool) GetBaseToken

func (m *SwapPool) GetBaseToken() types.Coin

func (*SwapPool) GetIndex

func (m *SwapPool) GetIndex() uint32

func (*SwapPool) GetLpToken

func (m *SwapPool) GetLpToken() types.Coin

func (*SwapPool) GetToken

func (m *SwapPool) GetToken() types.Coin

func (*SwapPool) Marshal

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

func (*SwapPool) MarshalTo

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

func (*SwapPool) MarshalToSizedBuffer

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

func (*SwapPool) ProtoMessage

func (*SwapPool) ProtoMessage()

func (*SwapPool) Reset

func (m *SwapPool) Reset()

func (*SwapPool) Size

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

func (*SwapPool) String

func (m *SwapPool) String() string

func (*SwapPool) Unmarshal

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

func (*SwapPool) XXX_DiscardUnknown

func (m *SwapPool) XXX_DiscardUnknown()

func (*SwapPool) XXX_Marshal

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

func (*SwapPool) XXX_Merge

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

func (*SwapPool) XXX_Size

func (m *SwapPool) XXX_Size() int

func (*SwapPool) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddLiquidity

func (*UnimplementedMsgServer) AddPoolCreator

func (*UnimplementedMsgServer) AddProvider

func (*UnimplementedMsgServer) CreatePool

func (*UnimplementedMsgServer) RemoveLiquidity

func (*UnimplementedMsgServer) RmPoolCreator

func (*UnimplementedMsgServer) RmProvider

func (*UnimplementedMsgServer) Swap

func (*UnimplementedMsgServer) ToggleProviderSwitch

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) PoolCreatorList

func (*UnimplementedQueryServer) ProviderList

func (*UnimplementedQueryServer) ProviderSwitch

func (*UnimplementedQueryServer) SwapPoolInfo

func (*UnimplementedQueryServer) SwapPoolList

Jump to

Keyboard shortcuts

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