Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetLpTokenDenom(index uint32) string
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func PoolCreatorStoreKey(addr sdk.AccAddress) []byte
- func ProviderStoreKey(addr sdk.AccAddress) []byte
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SwapPoolStoreKey(denom string) []byte
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPoolCreatorList() []string
- func (m *GenesisState) GetProviderList() []string
- func (m *GenesisState) GetProviderSwitch() bool
- func (m *GenesisState) GetSwapPoolList() []*SwapPool
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgAddLiquidity
- func (*MsgAddLiquidity) Descriptor() ([]byte, []int)
- func (m *MsgAddLiquidity) GetCreator() string
- func (msg *MsgAddLiquidity) GetSignBytes() []byte
- func (msg *MsgAddLiquidity) GetSigners() []sdk.AccAddress
- func (m *MsgAddLiquidity) GetSwapPoolIndex() uint32
- func (m *MsgAddLiquidity) Marshal() (dAtA []byte, err error)
- func (m *MsgAddLiquidity) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddLiquidity) ProtoMessage()
- func (m *MsgAddLiquidity) Reset()
- func (msg *MsgAddLiquidity) Route() string
- func (m *MsgAddLiquidity) Size() (n int)
- func (m *MsgAddLiquidity) String() string
- func (msg *MsgAddLiquidity) Type() string
- func (m *MsgAddLiquidity) Unmarshal(dAtA []byte) error
- func (msg *MsgAddLiquidity) ValidateBasic() error
- func (m *MsgAddLiquidity) XXX_DiscardUnknown()
- func (m *MsgAddLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddLiquidity) XXX_Merge(src proto.Message)
- func (m *MsgAddLiquidity) XXX_Size() int
- func (m *MsgAddLiquidity) XXX_Unmarshal(b []byte) error
- type MsgAddLiquidityResponse
- func (*MsgAddLiquidityResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddLiquidityResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddLiquidityResponse) ProtoMessage()
- func (m *MsgAddLiquidityResponse) Reset()
- func (m *MsgAddLiquidityResponse) Size() (n int)
- func (m *MsgAddLiquidityResponse) String() string
- func (m *MsgAddLiquidityResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddLiquidityResponse) XXX_DiscardUnknown()
- func (m *MsgAddLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddLiquidityResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddLiquidityResponse) XXX_Size() int
- func (m *MsgAddLiquidityResponse) XXX_Unmarshal(b []byte) error
- type MsgAddPoolCreator
- func (*MsgAddPoolCreator) Descriptor() ([]byte, []int)
- func (m *MsgAddPoolCreator) GetCreator() string
- func (msg *MsgAddPoolCreator) GetSignBytes() []byte
- func (msg *MsgAddPoolCreator) GetSigners() []sdk.AccAddress
- func (m *MsgAddPoolCreator) GetUserAddress() string
- func (m *MsgAddPoolCreator) Marshal() (dAtA []byte, err error)
- func (m *MsgAddPoolCreator) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddPoolCreator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddPoolCreator) ProtoMessage()
- func (m *MsgAddPoolCreator) Reset()
- func (msg *MsgAddPoolCreator) Route() string
- func (m *MsgAddPoolCreator) Size() (n int)
- func (m *MsgAddPoolCreator) String() string
- func (msg *MsgAddPoolCreator) Type() string
- func (m *MsgAddPoolCreator) Unmarshal(dAtA []byte) error
- func (msg *MsgAddPoolCreator) ValidateBasic() error
- func (m *MsgAddPoolCreator) XXX_DiscardUnknown()
- func (m *MsgAddPoolCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddPoolCreator) XXX_Merge(src proto.Message)
- func (m *MsgAddPoolCreator) XXX_Size() int
- func (m *MsgAddPoolCreator) XXX_Unmarshal(b []byte) error
- type MsgAddPoolCreatorResponse
- func (*MsgAddPoolCreatorResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddPoolCreatorResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddPoolCreatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddPoolCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddPoolCreatorResponse) ProtoMessage()
- func (m *MsgAddPoolCreatorResponse) Reset()
- func (m *MsgAddPoolCreatorResponse) Size() (n int)
- func (m *MsgAddPoolCreatorResponse) String() string
- func (m *MsgAddPoolCreatorResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddPoolCreatorResponse) XXX_DiscardUnknown()
- func (m *MsgAddPoolCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddPoolCreatorResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddPoolCreatorResponse) XXX_Size() int
- func (m *MsgAddPoolCreatorResponse) XXX_Unmarshal(b []byte) error
- type MsgAddProvider
- func (*MsgAddProvider) Descriptor() ([]byte, []int)
- func (m *MsgAddProvider) GetCreator() string
- func (msg *MsgAddProvider) GetSignBytes() []byte
- func (msg *MsgAddProvider) GetSigners() []sdk.AccAddress
- func (m *MsgAddProvider) GetUserAddress() string
- func (m *MsgAddProvider) Marshal() (dAtA []byte, err error)
- func (m *MsgAddProvider) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddProvider) ProtoMessage()
- func (m *MsgAddProvider) Reset()
- func (msg *MsgAddProvider) Route() string
- func (m *MsgAddProvider) Size() (n int)
- func (m *MsgAddProvider) String() string
- func (msg *MsgAddProvider) Type() string
- func (m *MsgAddProvider) Unmarshal(dAtA []byte) error
- func (msg *MsgAddProvider) ValidateBasic() error
- func (m *MsgAddProvider) XXX_DiscardUnknown()
- func (m *MsgAddProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddProvider) XXX_Merge(src proto.Message)
- func (m *MsgAddProvider) XXX_Size() int
- func (m *MsgAddProvider) XXX_Unmarshal(b []byte) error
- type MsgAddProviderResponse
- func (*MsgAddProviderResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddProviderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddProviderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddProviderResponse) ProtoMessage()
- func (m *MsgAddProviderResponse) Reset()
- func (m *MsgAddProviderResponse) Size() (n int)
- func (m *MsgAddProviderResponse) String() string
- func (m *MsgAddProviderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddProviderResponse) XXX_DiscardUnknown()
- func (m *MsgAddProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddProviderResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddProviderResponse) XXX_Size() int
- func (m *MsgAddProviderResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreatePool
- func (*MsgCreatePool) Descriptor() ([]byte, []int)
- func (m *MsgCreatePool) GetCreator() string
- func (msg *MsgCreatePool) GetSignBytes() []byte
- func (msg *MsgCreatePool) GetSigners() []sdk.AccAddress
- func (m *MsgCreatePool) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePool) ProtoMessage()
- func (m *MsgCreatePool) Reset()
- func (msg *MsgCreatePool) Route() string
- func (m *MsgCreatePool) Size() (n int)
- func (m *MsgCreatePool) String() string
- func (msg *MsgCreatePool) Type() string
- func (m *MsgCreatePool) Unmarshal(dAtA []byte) error
- func (msg *MsgCreatePool) ValidateBasic() error
- func (m *MsgCreatePool) XXX_DiscardUnknown()
- func (m *MsgCreatePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePool) XXX_Merge(src proto.Message)
- func (m *MsgCreatePool) XXX_Size() int
- func (m *MsgCreatePool) XXX_Unmarshal(b []byte) error
- type MsgCreatePoolResponse
- func (*MsgCreatePoolResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePoolResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePoolResponse) ProtoMessage()
- func (m *MsgCreatePoolResponse) Reset()
- func (m *MsgCreatePoolResponse) Size() (n int)
- func (m *MsgCreatePoolResponse) String() string
- func (m *MsgCreatePoolResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePoolResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePoolResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePoolResponse) XXX_Size() int
- func (m *MsgCreatePoolResponse) XXX_Unmarshal(b []byte) error
- type MsgRemoveLiquidity
- func (*MsgRemoveLiquidity) Descriptor() ([]byte, []int)
- func (m *MsgRemoveLiquidity) GetCreator() string
- func (m *MsgRemoveLiquidity) GetInputTokenDenom() string
- func (msg *MsgRemoveLiquidity) GetSignBytes() []byte
- func (msg *MsgRemoveLiquidity) GetSigners() []sdk.AccAddress
- func (m *MsgRemoveLiquidity) GetSwapPoolIndex() uint32
- func (m *MsgRemoveLiquidity) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveLiquidity) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveLiquidity) ProtoMessage()
- func (m *MsgRemoveLiquidity) Reset()
- func (msg *MsgRemoveLiquidity) Route() string
- func (m *MsgRemoveLiquidity) Size() (n int)
- func (m *MsgRemoveLiquidity) String() string
- func (msg *MsgRemoveLiquidity) Type() string
- func (m *MsgRemoveLiquidity) Unmarshal(dAtA []byte) error
- func (msg *MsgRemoveLiquidity) ValidateBasic() error
- func (m *MsgRemoveLiquidity) XXX_DiscardUnknown()
- func (m *MsgRemoveLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveLiquidity) XXX_Merge(src proto.Message)
- func (m *MsgRemoveLiquidity) XXX_Size() int
- func (m *MsgRemoveLiquidity) XXX_Unmarshal(b []byte) error
- type MsgRemoveLiquidityResponse
- func (*MsgRemoveLiquidityResponse) Descriptor() ([]byte, []int)
- func (m *MsgRemoveLiquidityResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveLiquidityResponse) ProtoMessage()
- func (m *MsgRemoveLiquidityResponse) Reset()
- func (m *MsgRemoveLiquidityResponse) Size() (n int)
- func (m *MsgRemoveLiquidityResponse) String() string
- func (m *MsgRemoveLiquidityResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRemoveLiquidityResponse) XXX_DiscardUnknown()
- func (m *MsgRemoveLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveLiquidityResponse) XXX_Merge(src proto.Message)
- func (m *MsgRemoveLiquidityResponse) XXX_Size() int
- func (m *MsgRemoveLiquidityResponse) XXX_Unmarshal(b []byte) error
- type MsgRmPoolCreator
- func (*MsgRmPoolCreator) Descriptor() ([]byte, []int)
- func (m *MsgRmPoolCreator) GetCreator() string
- func (msg *MsgRmPoolCreator) GetSignBytes() []byte
- func (msg *MsgRmPoolCreator) GetSigners() []sdk.AccAddress
- func (m *MsgRmPoolCreator) GetUserAddress() string
- func (m *MsgRmPoolCreator) Marshal() (dAtA []byte, err error)
- func (m *MsgRmPoolCreator) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRmPoolCreator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRmPoolCreator) ProtoMessage()
- func (m *MsgRmPoolCreator) Reset()
- func (msg *MsgRmPoolCreator) Route() string
- func (m *MsgRmPoolCreator) Size() (n int)
- func (m *MsgRmPoolCreator) String() string
- func (msg *MsgRmPoolCreator) Type() string
- func (m *MsgRmPoolCreator) Unmarshal(dAtA []byte) error
- func (msg *MsgRmPoolCreator) ValidateBasic() error
- func (m *MsgRmPoolCreator) XXX_DiscardUnknown()
- func (m *MsgRmPoolCreator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRmPoolCreator) XXX_Merge(src proto.Message)
- func (m *MsgRmPoolCreator) XXX_Size() int
- func (m *MsgRmPoolCreator) XXX_Unmarshal(b []byte) error
- type MsgRmPoolCreatorResponse
- func (*MsgRmPoolCreatorResponse) Descriptor() ([]byte, []int)
- func (m *MsgRmPoolCreatorResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRmPoolCreatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRmPoolCreatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRmPoolCreatorResponse) ProtoMessage()
- func (m *MsgRmPoolCreatorResponse) Reset()
- func (m *MsgRmPoolCreatorResponse) Size() (n int)
- func (m *MsgRmPoolCreatorResponse) String() string
- func (m *MsgRmPoolCreatorResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRmPoolCreatorResponse) XXX_DiscardUnknown()
- func (m *MsgRmPoolCreatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRmPoolCreatorResponse) XXX_Merge(src proto.Message)
- func (m *MsgRmPoolCreatorResponse) XXX_Size() int
- func (m *MsgRmPoolCreatorResponse) XXX_Unmarshal(b []byte) error
- type MsgRmProvider
- func (*MsgRmProvider) Descriptor() ([]byte, []int)
- func (m *MsgRmProvider) GetCreator() string
- func (msg *MsgRmProvider) GetSignBytes() []byte
- func (msg *MsgRmProvider) GetSigners() []sdk.AccAddress
- func (m *MsgRmProvider) GetUserAddress() string
- func (m *MsgRmProvider) Marshal() (dAtA []byte, err error)
- func (m *MsgRmProvider) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRmProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRmProvider) ProtoMessage()
- func (m *MsgRmProvider) Reset()
- func (msg *MsgRmProvider) Route() string
- func (m *MsgRmProvider) Size() (n int)
- func (m *MsgRmProvider) String() string
- func (msg *MsgRmProvider) Type() string
- func (m *MsgRmProvider) Unmarshal(dAtA []byte) error
- func (msg *MsgRmProvider) ValidateBasic() error
- func (m *MsgRmProvider) XXX_DiscardUnknown()
- func (m *MsgRmProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRmProvider) XXX_Merge(src proto.Message)
- func (m *MsgRmProvider) XXX_Size() int
- func (m *MsgRmProvider) XXX_Unmarshal(b []byte) error
- type MsgRmProviderResponse
- func (*MsgRmProviderResponse) Descriptor() ([]byte, []int)
- func (m *MsgRmProviderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRmProviderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRmProviderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRmProviderResponse) ProtoMessage()
- func (m *MsgRmProviderResponse) Reset()
- func (m *MsgRmProviderResponse) Size() (n int)
- func (m *MsgRmProviderResponse) String() string
- func (m *MsgRmProviderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRmProviderResponse) XXX_DiscardUnknown()
- func (m *MsgRmProviderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRmProviderResponse) XXX_Merge(src proto.Message)
- func (m *MsgRmProviderResponse) XXX_Size() int
- func (m *MsgRmProviderResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSwap
- func (*MsgSwap) Descriptor() ([]byte, []int)
- func (m *MsgSwap) GetCreator() string
- func (msg *MsgSwap) GetSignBytes() []byte
- func (msg *MsgSwap) GetSigners() []sdk.AccAddress
- func (m *MsgSwap) GetSwapPoolIndex() uint32
- func (m *MsgSwap) Marshal() (dAtA []byte, err error)
- func (m *MsgSwap) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwap) ProtoMessage()
- func (m *MsgSwap) Reset()
- func (msg *MsgSwap) Route() string
- func (m *MsgSwap) Size() (n int)
- func (m *MsgSwap) String() string
- func (msg *MsgSwap) Type() string
- func (m *MsgSwap) Unmarshal(dAtA []byte) error
- func (msg *MsgSwap) ValidateBasic() error
- func (m *MsgSwap) XXX_DiscardUnknown()
- func (m *MsgSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwap) XXX_Merge(src proto.Message)
- func (m *MsgSwap) XXX_Size() int
- func (m *MsgSwap) XXX_Unmarshal(b []byte) error
- type MsgSwapResponse
- func (*MsgSwapResponse) Descriptor() ([]byte, []int)
- func (m *MsgSwapResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapResponse) ProtoMessage()
- func (m *MsgSwapResponse) Reset()
- func (m *MsgSwapResponse) Size() (n int)
- func (m *MsgSwapResponse) String() string
- func (m *MsgSwapResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSwapResponse) XXX_DiscardUnknown()
- func (m *MsgSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapResponse) XXX_Merge(src proto.Message)
- func (m *MsgSwapResponse) XXX_Size() int
- func (m *MsgSwapResponse) XXX_Unmarshal(b []byte) error
- type MsgToggleProviderSwitch
- func (*MsgToggleProviderSwitch) Descriptor() ([]byte, []int)
- func (m *MsgToggleProviderSwitch) GetCreator() string
- func (msg *MsgToggleProviderSwitch) GetSignBytes() []byte
- func (msg *MsgToggleProviderSwitch) GetSigners() []sdk.AccAddress
- func (m *MsgToggleProviderSwitch) Marshal() (dAtA []byte, err error)
- func (m *MsgToggleProviderSwitch) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgToggleProviderSwitch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgToggleProviderSwitch) ProtoMessage()
- func (m *MsgToggleProviderSwitch) Reset()
- func (msg *MsgToggleProviderSwitch) Route() string
- func (m *MsgToggleProviderSwitch) Size() (n int)
- func (m *MsgToggleProviderSwitch) String() string
- func (msg *MsgToggleProviderSwitch) Type() string
- func (m *MsgToggleProviderSwitch) Unmarshal(dAtA []byte) error
- func (msg *MsgToggleProviderSwitch) ValidateBasic() error
- func (m *MsgToggleProviderSwitch) XXX_DiscardUnknown()
- func (m *MsgToggleProviderSwitch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgToggleProviderSwitch) XXX_Merge(src proto.Message)
- func (m *MsgToggleProviderSwitch) XXX_Size() int
- func (m *MsgToggleProviderSwitch) XXX_Unmarshal(b []byte) error
- type MsgToggleProviderSwitchResponse
- func (*MsgToggleProviderSwitchResponse) Descriptor() ([]byte, []int)
- func (m *MsgToggleProviderSwitchResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgToggleProviderSwitchResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgToggleProviderSwitchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgToggleProviderSwitchResponse) ProtoMessage()
- func (m *MsgToggleProviderSwitchResponse) Reset()
- func (m *MsgToggleProviderSwitchResponse) Size() (n int)
- func (m *MsgToggleProviderSwitchResponse) String() string
- func (m *MsgToggleProviderSwitchResponse) Unmarshal(dAtA []byte) error
- func (m *MsgToggleProviderSwitchResponse) XXX_DiscardUnknown()
- func (m *MsgToggleProviderSwitchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgToggleProviderSwitchResponse) XXX_Merge(src proto.Message)
- func (m *MsgToggleProviderSwitchResponse) XXX_Size() int
- func (m *MsgToggleProviderSwitchResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryPoolCreatorListRequest
- func (*QueryPoolCreatorListRequest) Descriptor() ([]byte, []int)
- func (m *QueryPoolCreatorListRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolCreatorListRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolCreatorListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolCreatorListRequest) ProtoMessage()
- func (m *QueryPoolCreatorListRequest) Reset()
- func (m *QueryPoolCreatorListRequest) Size() (n int)
- func (m *QueryPoolCreatorListRequest) String() string
- func (m *QueryPoolCreatorListRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPoolCreatorListRequest) XXX_DiscardUnknown()
- func (m *QueryPoolCreatorListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolCreatorListRequest) XXX_Merge(src proto.Message)
- func (m *QueryPoolCreatorListRequest) XXX_Size() int
- func (m *QueryPoolCreatorListRequest) XXX_Unmarshal(b []byte) error
- type QueryPoolCreatorListResponse
- func (*QueryPoolCreatorListResponse) Descriptor() ([]byte, []int)
- func (m *QueryPoolCreatorListResponse) GetPoolCreatorList() []string
- func (m *QueryPoolCreatorListResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolCreatorListResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolCreatorListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolCreatorListResponse) ProtoMessage()
- func (m *QueryPoolCreatorListResponse) Reset()
- func (m *QueryPoolCreatorListResponse) Size() (n int)
- func (m *QueryPoolCreatorListResponse) String() string
- func (m *QueryPoolCreatorListResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPoolCreatorListResponse) XXX_DiscardUnknown()
- func (m *QueryPoolCreatorListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolCreatorListResponse) XXX_Merge(src proto.Message)
- func (m *QueryPoolCreatorListResponse) XXX_Size() int
- func (m *QueryPoolCreatorListResponse) XXX_Unmarshal(b []byte) error
- type QueryProviderListRequest
- func (*QueryProviderListRequest) Descriptor() ([]byte, []int)
- func (m *QueryProviderListRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryProviderListRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProviderListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProviderListRequest) ProtoMessage()
- func (m *QueryProviderListRequest) Reset()
- func (m *QueryProviderListRequest) Size() (n int)
- func (m *QueryProviderListRequest) String() string
- func (m *QueryProviderListRequest) Unmarshal(dAtA []byte) error
- func (m *QueryProviderListRequest) XXX_DiscardUnknown()
- func (m *QueryProviderListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProviderListRequest) XXX_Merge(src proto.Message)
- func (m *QueryProviderListRequest) XXX_Size() int
- func (m *QueryProviderListRequest) XXX_Unmarshal(b []byte) error
- type QueryProviderListResponse
- func (*QueryProviderListResponse) Descriptor() ([]byte, []int)
- func (m *QueryProviderListResponse) GetProviderList() []string
- func (m *QueryProviderListResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryProviderListResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProviderListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProviderListResponse) ProtoMessage()
- func (m *QueryProviderListResponse) Reset()
- func (m *QueryProviderListResponse) Size() (n int)
- func (m *QueryProviderListResponse) String() string
- func (m *QueryProviderListResponse) Unmarshal(dAtA []byte) error
- func (m *QueryProviderListResponse) XXX_DiscardUnknown()
- func (m *QueryProviderListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProviderListResponse) XXX_Merge(src proto.Message)
- func (m *QueryProviderListResponse) XXX_Size() int
- func (m *QueryProviderListResponse) XXX_Unmarshal(b []byte) error
- type QueryProviderSwitchRequest
- func (*QueryProviderSwitchRequest) Descriptor() ([]byte, []int)
- func (m *QueryProviderSwitchRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryProviderSwitchRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProviderSwitchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProviderSwitchRequest) ProtoMessage()
- func (m *QueryProviderSwitchRequest) Reset()
- func (m *QueryProviderSwitchRequest) Size() (n int)
- func (m *QueryProviderSwitchRequest) String() string
- func (m *QueryProviderSwitchRequest) Unmarshal(dAtA []byte) error
- func (m *QueryProviderSwitchRequest) XXX_DiscardUnknown()
- func (m *QueryProviderSwitchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProviderSwitchRequest) XXX_Merge(src proto.Message)
- func (m *QueryProviderSwitchRequest) XXX_Size() int
- func (m *QueryProviderSwitchRequest) XXX_Unmarshal(b []byte) error
- type QueryProviderSwitchResponse
- func (*QueryProviderSwitchResponse) Descriptor() ([]byte, []int)
- func (m *QueryProviderSwitchResponse) GetProviderSwitch() bool
- func (m *QueryProviderSwitchResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryProviderSwitchResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryProviderSwitchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryProviderSwitchResponse) ProtoMessage()
- func (m *QueryProviderSwitchResponse) Reset()
- func (m *QueryProviderSwitchResponse) Size() (n int)
- func (m *QueryProviderSwitchResponse) String() string
- func (m *QueryProviderSwitchResponse) Unmarshal(dAtA []byte) error
- func (m *QueryProviderSwitchResponse) XXX_DiscardUnknown()
- func (m *QueryProviderSwitchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryProviderSwitchResponse) XXX_Merge(src proto.Message)
- func (m *QueryProviderSwitchResponse) XXX_Size() int
- func (m *QueryProviderSwitchResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySwapPoolInfoRequest
- func (*QuerySwapPoolInfoRequest) Descriptor() ([]byte, []int)
- func (m *QuerySwapPoolInfoRequest) GetLpDenom() string
- func (m *QuerySwapPoolInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapPoolInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapPoolInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapPoolInfoRequest) ProtoMessage()
- func (m *QuerySwapPoolInfoRequest) Reset()
- func (m *QuerySwapPoolInfoRequest) Size() (n int)
- func (m *QuerySwapPoolInfoRequest) String() string
- func (m *QuerySwapPoolInfoRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySwapPoolInfoRequest) XXX_DiscardUnknown()
- func (m *QuerySwapPoolInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapPoolInfoRequest) XXX_Merge(src proto.Message)
- func (m *QuerySwapPoolInfoRequest) XXX_Size() int
- func (m *QuerySwapPoolInfoRequest) XXX_Unmarshal(b []byte) error
- type QuerySwapPoolInfoResponse
- func (*QuerySwapPoolInfoResponse) Descriptor() ([]byte, []int)
- func (m *QuerySwapPoolInfoResponse) GetSwapPool() *SwapPool
- func (m *QuerySwapPoolInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapPoolInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapPoolInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapPoolInfoResponse) ProtoMessage()
- func (m *QuerySwapPoolInfoResponse) Reset()
- func (m *QuerySwapPoolInfoResponse) Size() (n int)
- func (m *QuerySwapPoolInfoResponse) String() string
- func (m *QuerySwapPoolInfoResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySwapPoolInfoResponse) XXX_DiscardUnknown()
- func (m *QuerySwapPoolInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapPoolInfoResponse) XXX_Merge(src proto.Message)
- func (m *QuerySwapPoolInfoResponse) XXX_Size() int
- func (m *QuerySwapPoolInfoResponse) XXX_Unmarshal(b []byte) error
- type QuerySwapPoolListRequest
- func (*QuerySwapPoolListRequest) Descriptor() ([]byte, []int)
- func (m *QuerySwapPoolListRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapPoolListRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapPoolListRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapPoolListRequest) ProtoMessage()
- func (m *QuerySwapPoolListRequest) Reset()
- func (m *QuerySwapPoolListRequest) Size() (n int)
- func (m *QuerySwapPoolListRequest) String() string
- func (m *QuerySwapPoolListRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySwapPoolListRequest) XXX_DiscardUnknown()
- func (m *QuerySwapPoolListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapPoolListRequest) XXX_Merge(src proto.Message)
- func (m *QuerySwapPoolListRequest) XXX_Size() int
- func (m *QuerySwapPoolListRequest) XXX_Unmarshal(b []byte) error
- type QuerySwapPoolListResponse
- func (*QuerySwapPoolListResponse) Descriptor() ([]byte, []int)
- func (m *QuerySwapPoolListResponse) GetSwapPoolList() []*SwapPool
- func (m *QuerySwapPoolListResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapPoolListResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapPoolListResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapPoolListResponse) ProtoMessage()
- func (m *QuerySwapPoolListResponse) Reset()
- func (m *QuerySwapPoolListResponse) Size() (n int)
- func (m *QuerySwapPoolListResponse) String() string
- func (m *QuerySwapPoolListResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySwapPoolListResponse) XXX_DiscardUnknown()
- func (m *QuerySwapPoolListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapPoolListResponse) XXX_Merge(src proto.Message)
- func (m *QuerySwapPoolListResponse) XXX_Size() int
- func (m *QuerySwapPoolListResponse) XXX_Unmarshal(b []byte) error
- type SudoKeeper
- type SwapPool
- func (*SwapPool) Descriptor() ([]byte, []int)
- func (m *SwapPool) GetBaseToken() types.Coin
- func (m *SwapPool) GetIndex() uint32
- func (m *SwapPool) GetLpToken() types.Coin
- func (m *SwapPool) GetToken() types.Coin
- func (m *SwapPool) Marshal() (dAtA []byte, err error)
- func (m *SwapPool) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapPool) ProtoMessage()
- func (m *SwapPool) Reset()
- func (m *SwapPool) Size() (n int)
- func (m *SwapPool) String() string
- func (m *SwapPool) Unmarshal(dAtA []byte) error
- func (m *SwapPool) XXX_DiscardUnknown()
- func (m *SwapPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapPool) XXX_Merge(src proto.Message)
- func (m *SwapPool) XXX_Size() int
- func (m *SwapPool) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddLiquidity(ctx context.Context, req *MsgAddLiquidity) (*MsgAddLiquidityResponse, error)
- func (*UnimplementedMsgServer) AddPoolCreator(ctx context.Context, req *MsgAddPoolCreator) (*MsgAddPoolCreatorResponse, error)
- func (*UnimplementedMsgServer) AddProvider(ctx context.Context, req *MsgAddProvider) (*MsgAddProviderResponse, error)
- func (*UnimplementedMsgServer) CreatePool(ctx context.Context, req *MsgCreatePool) (*MsgCreatePoolResponse, error)
- func (*UnimplementedMsgServer) RemoveLiquidity(ctx context.Context, req *MsgRemoveLiquidity) (*MsgRemoveLiquidityResponse, error)
- func (*UnimplementedMsgServer) RmPoolCreator(ctx context.Context, req *MsgRmPoolCreator) (*MsgRmPoolCreatorResponse, error)
- func (*UnimplementedMsgServer) RmProvider(ctx context.Context, req *MsgRmProvider) (*MsgRmProviderResponse, error)
- func (*UnimplementedMsgServer) Swap(ctx context.Context, req *MsgSwap) (*MsgSwapResponse, error)
- func (*UnimplementedMsgServer) ToggleProviderSwitch(ctx context.Context, req *MsgToggleProviderSwitch) (*MsgToggleProviderSwitchResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) PoolCreatorList(ctx context.Context, req *QueryPoolCreatorListRequest) (*QueryPoolCreatorListResponse, error)
- func (*UnimplementedQueryServer) ProviderList(ctx context.Context, req *QueryProviderListRequest) (*QueryProviderListResponse, error)
- func (*UnimplementedQueryServer) ProviderSwitch(ctx context.Context, req *QueryProviderSwitchRequest) (*QueryProviderSwitchResponse, error)
- func (*UnimplementedQueryServer) SwapPoolInfo(ctx context.Context, req *QuerySwapPoolInfoRequest) (*QuerySwapPoolInfoResponse, error)
- func (*UnimplementedQueryServer) SwapPoolList(ctx context.Context, req *QuerySwapPoolListRequest) (*QuerySwapPoolListResponse, error)
Constants ¶
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
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" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const TypeMsgAddLiquidity = "add_liquidity"
const TypeMsgAddPoolCreator = "add_pool_creator"
const TypeMsgAddProvider = "add_provider"
const TypeMsgCreatePool = "create_pool"
const TypeMsgRemoveLiquidity = "remove_liquidity"
const TypeMsgRmPoolCreator = "rm_pool_creator"
const TypeMsgRmProvider = "rm_provider"
const TypeMsgSwap = "swap"
const TypeMsgToggleProviderSwitch = "toggle_provider_switch"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewAminoCodec(Amino) )
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
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( SwitchStateClose = []byte{0x00} SwitchStateOpen = []byte{0x01} )
var ( SwapPoolStoreKeyPrefix = []byte{0x01} ProviderStoreKeyPrefix = []byte{0x02} ProviderSwitchStoreKey = []byte{0x03} PoolCreatorStoreKeyPrefix = []byte{0x04} SwapPoolIndexStoreKey = []byte{0x05} )
var ( ErrInvalidLengthModels = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowModels = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupModels = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func GetLpTokenDenom ¶
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 RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func SwapPoolStoreKey ¶
Types ¶
type AccountKeeper ¶
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) 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) 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) 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 ¶
type MsgClient interface { CreatePool(ctx context.Context, in *MsgCreatePool, opts ...grpc.CallOption) (*MsgCreatePoolResponse, error) AddLiquidity(ctx context.Context, in *MsgAddLiquidity, opts ...grpc.CallOption) (*MsgAddLiquidityResponse, error) Swap(ctx context.Context, in *MsgSwap, opts ...grpc.CallOption) (*MsgSwapResponse, error) RemoveLiquidity(ctx context.Context, in *MsgRemoveLiquidity, opts ...grpc.CallOption) (*MsgRemoveLiquidityResponse, error) ToggleProviderSwitch(ctx context.Context, in *MsgToggleProviderSwitch, opts ...grpc.CallOption) (*MsgToggleProviderSwitchResponse, error) AddProvider(ctx context.Context, in *MsgAddProvider, opts ...grpc.CallOption) (*MsgAddProviderResponse, error) RmProvider(ctx context.Context, in *MsgRmProvider, opts ...grpc.CallOption) (*MsgRmProviderResponse, error) AddPoolCreator(ctx context.Context, in *MsgAddPoolCreator, opts ...grpc.CallOption) (*MsgAddPoolCreatorResponse, error) RmPoolCreator(ctx context.Context, in *MsgRmPoolCreator, opts ...grpc.CallOption) (*MsgRmPoolCreatorResponse, 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 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) 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 (*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) 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) 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 MsgServer ¶
type MsgServer interface { CreatePool(context.Context, *MsgCreatePool) (*MsgCreatePoolResponse, error) AddLiquidity(context.Context, *MsgAddLiquidity) (*MsgAddLiquidityResponse, error) Swap(context.Context, *MsgSwap) (*MsgSwapResponse, error) RemoveLiquidity(context.Context, *MsgRemoveLiquidity) (*MsgRemoveLiquidityResponse, error) ToggleProviderSwitch(context.Context, *MsgToggleProviderSwitch) (*MsgToggleProviderSwitchResponse, error) AddProvider(context.Context, *MsgAddProvider) (*MsgAddProviderResponse, error) RmProvider(context.Context, *MsgRmProvider) (*MsgRmProviderResponse, error) AddPoolCreator(context.Context, *MsgAddPoolCreator) (*MsgAddPoolCreatorResponse, error) RmPoolCreator(context.Context, *MsgRmPoolCreator) (*MsgRmPoolCreatorResponse, error) }
MsgServer is the server API for Msg service.
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 (*MsgSwap) Descriptor ¶
func (*MsgSwap) GetCreator ¶
func (*MsgSwap) GetSignBytes ¶
func (*MsgSwap) GetSigners ¶
func (msg *MsgSwap) GetSigners() []sdk.AccAddress
func (*MsgSwap) GetSwapPoolIndex ¶
func (*MsgSwap) MarshalToSizedBuffer ¶
func (*MsgSwap) ProtoMessage ¶
func (*MsgSwap) ProtoMessage()
func (*MsgSwap) ValidateBasic ¶
func (*MsgSwap) XXX_DiscardUnknown ¶
func (m *MsgSwap) XXX_DiscardUnknown()
func (*MsgSwap) XXX_Marshal ¶
func (*MsgSwap) XXX_Unmarshal ¶
type MsgSwapResponse ¶
type MsgSwapResponse struct { }
func (*MsgSwapResponse) Descriptor ¶
func (*MsgSwapResponse) Descriptor() ([]byte, []int)
func (*MsgSwapResponse) Marshal ¶
func (m *MsgSwapResponse) Marshal() (dAtA []byte, err error)
func (*MsgSwapResponse) MarshalToSizedBuffer ¶
func (m *MsgSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapResponse) ProtoMessage ¶
func (*MsgSwapResponse) ProtoMessage()
func (*MsgSwapResponse) Reset ¶
func (m *MsgSwapResponse) Reset()
func (*MsgSwapResponse) Size ¶
func (m *MsgSwapResponse) Size() (n int)
func (*MsgSwapResponse) String ¶
func (m *MsgSwapResponse) String() string
func (*MsgSwapResponse) Unmarshal ¶
func (m *MsgSwapResponse) Unmarshal(dAtA []byte) error
func (*MsgSwapResponse) XXX_DiscardUnknown ¶
func (m *MsgSwapResponse) XXX_DiscardUnknown()
func (*MsgSwapResponse) XXX_Marshal ¶
func (m *MsgSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapResponse) XXX_Merge ¶
func (m *MsgSwapResponse) XXX_Merge(src proto.Message)
func (*MsgSwapResponse) XXX_Size ¶
func (m *MsgSwapResponse) XXX_Size() int
func (*MsgSwapResponse) XXX_Unmarshal ¶
func (m *MsgSwapResponse) XXX_Unmarshal(b []byte) error
type 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 (m *MsgToggleProviderSwitchResponse) Reset()
func (*MsgToggleProviderSwitchResponse) Size ¶
func (m *MsgToggleProviderSwitchResponse) Size() (n int)
func (*MsgToggleProviderSwitchResponse) String ¶
func (m *MsgToggleProviderSwitchResponse) String() 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 (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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 (m *QueryPoolCreatorListResponse) String() 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 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) GetBaseToken ¶
func (*SwapPool) GetLpToken ¶
func (*SwapPool) MarshalToSizedBuffer ¶
func (*SwapPool) ProtoMessage ¶
func (*SwapPool) ProtoMessage()
func (*SwapPool) XXX_DiscardUnknown ¶
func (m *SwapPool) XXX_DiscardUnknown()
func (*SwapPool) XXX_Marshal ¶
func (*SwapPool) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddLiquidity ¶
func (*UnimplementedMsgServer) AddLiquidity(ctx context.Context, req *MsgAddLiquidity) (*MsgAddLiquidityResponse, error)
func (*UnimplementedMsgServer) AddPoolCreator ¶
func (*UnimplementedMsgServer) AddPoolCreator(ctx context.Context, req *MsgAddPoolCreator) (*MsgAddPoolCreatorResponse, error)
func (*UnimplementedMsgServer) AddProvider ¶
func (*UnimplementedMsgServer) AddProvider(ctx context.Context, req *MsgAddProvider) (*MsgAddProviderResponse, error)
func (*UnimplementedMsgServer) CreatePool ¶
func (*UnimplementedMsgServer) CreatePool(ctx context.Context, req *MsgCreatePool) (*MsgCreatePoolResponse, error)
func (*UnimplementedMsgServer) RemoveLiquidity ¶
func (*UnimplementedMsgServer) RemoveLiquidity(ctx context.Context, req *MsgRemoveLiquidity) (*MsgRemoveLiquidityResponse, error)
func (*UnimplementedMsgServer) RmPoolCreator ¶
func (*UnimplementedMsgServer) RmPoolCreator(ctx context.Context, req *MsgRmPoolCreator) (*MsgRmPoolCreatorResponse, error)
func (*UnimplementedMsgServer) RmProvider ¶
func (*UnimplementedMsgServer) RmProvider(ctx context.Context, req *MsgRmProvider) (*MsgRmProviderResponse, error)
func (*UnimplementedMsgServer) Swap ¶
func (*UnimplementedMsgServer) Swap(ctx context.Context, req *MsgSwap) (*MsgSwapResponse, error)
func (*UnimplementedMsgServer) ToggleProviderSwitch ¶
func (*UnimplementedMsgServer) ToggleProviderSwitch(ctx context.Context, req *MsgToggleProviderSwitch) (*MsgToggleProviderSwitchResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) PoolCreatorList ¶
func (*UnimplementedQueryServer) PoolCreatorList(ctx context.Context, req *QueryPoolCreatorListRequest) (*QueryPoolCreatorListResponse, error)
func (*UnimplementedQueryServer) ProviderList ¶
func (*UnimplementedQueryServer) ProviderList(ctx context.Context, req *QueryProviderListRequest) (*QueryProviderListResponse, error)
func (*UnimplementedQueryServer) ProviderSwitch ¶
func (*UnimplementedQueryServer) ProviderSwitch(ctx context.Context, req *QueryProviderSwitchRequest) (*QueryProviderSwitchResponse, error)
func (*UnimplementedQueryServer) SwapPoolInfo ¶
func (*UnimplementedQueryServer) SwapPoolInfo(ctx context.Context, req *QuerySwapPoolInfoRequest) (*QuerySwapPoolInfoResponse, error)
func (*UnimplementedQueryServer) SwapPoolList ¶
func (*UnimplementedQueryServer) SwapPoolList(ctx context.Context, req *QuerySwapPoolListRequest) (*QuerySwapPoolListResponse, error)
Source Files ¶
- codec.go
- errors.go
- events.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- keys.go
- message_add_liquidity.go
- message_add_pool_creator.go
- message_add_provider.go
- message_create_pool.go
- message_remove_liquidity.go
- message_rm_pool_creator.go
- message_rm_provider.go
- message_swap.go
- message_toggle_provider_switch.go
- models.pb.go
- params.go
- params.pb.go
- query.pb.go
- query.pb.gw.go
- tx.pb.go
- types.go