Documentation ¶
Overview ¶
nolint
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetLptDenom(sequence uint64) string
- func GetLptDenomKey(lptDenom string) []byte
- func GetPoolId(counterpartyDenom string) string
- func GetPoolKey(pooId string) []byte
- func GetReservePoolAddr(lptDenom string) sdk.AccAddress
- func GetTokenPairByDenom(inputDenom, outputDenom string) string
- func ParamKeyTable() exported.KeyTable
- func ParseLptDenom(lptDenom string) (uint64, error)
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateCounterpartyDenom(counterpartydenom string) error
- func ValidateDeadline(deadline int64) error
- func ValidateExactStandardAmt(standardAmt sdkmath.Int) error
- func ValidateGenesis(data GenesisState) error
- func ValidateInput(input Input) error
- func ValidateLiquidity(minLiquidity sdkmath.Int) error
- func ValidateLptDenom(lptDenom string) error
- func ValidateMaxToken(maxToken sdk.Coin) error
- func ValidateMinStandardAmt(minStandardAmt sdkmath.Int) error
- func ValidateMinToken(minToken sdkmath.Int) error
- func ValidateOutput(output Output) error
- func ValidatePoolSequenceId(poolId uint64) error
- func ValidateToken(exactToken sdk.Coin) error
- func ValidateWithdrawLiquidity(liquidity sdk.Coin) error
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPool() []Pool
- func (m *GenesisState) GetSequence() uint64
- func (m *GenesisState) GetStandardDenom() string
- 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 (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 Input
- func (*Input) Descriptor() ([]byte, []int)
- func (m *Input) Marshal() (dAtA []byte, err error)
- func (m *Input) MarshalTo(dAtA []byte) (int, error)
- func (m *Input) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Input) ProtoMessage()
- func (m *Input) Reset()
- func (m *Input) Size() (n int)
- func (m *Input) String() string
- func (m *Input) Unmarshal(dAtA []byte) error
- func (m *Input) XXX_DiscardUnknown()
- func (m *Input) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Input) XXX_Merge(src proto.Message)
- func (m *Input) XXX_Size() int
- func (m *Input) XXX_Unmarshal(b []byte) error
- type MsgAddLiquidity
- func (*MsgAddLiquidity) Descriptor() ([]byte, []int)
- func (msg MsgAddLiquidity) GetSignBytes() []byte
- func (msg MsgAddLiquidity) GetSigners() []sdk.AccAddress
- 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 MsgAddUnilateralLiquidity
- func (*MsgAddUnilateralLiquidity) Descriptor() ([]byte, []int)
- func (m MsgAddUnilateralLiquidity) GetSignBytes() []byte
- func (m MsgAddUnilateralLiquidity) GetSigners() []sdk.AccAddress
- func (m *MsgAddUnilateralLiquidity) Marshal() (dAtA []byte, err error)
- func (m *MsgAddUnilateralLiquidity) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddUnilateralLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddUnilateralLiquidity) ProtoMessage()
- func (m *MsgAddUnilateralLiquidity) Reset()
- func (m MsgAddUnilateralLiquidity) Route() string
- func (m *MsgAddUnilateralLiquidity) Size() (n int)
- func (m *MsgAddUnilateralLiquidity) String() string
- func (m MsgAddUnilateralLiquidity) Type() string
- func (m *MsgAddUnilateralLiquidity) Unmarshal(dAtA []byte) error
- func (m MsgAddUnilateralLiquidity) ValidateBasic() error
- func (m *MsgAddUnilateralLiquidity) XXX_DiscardUnknown()
- func (m *MsgAddUnilateralLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddUnilateralLiquidity) XXX_Merge(src proto.Message)
- func (m *MsgAddUnilateralLiquidity) XXX_Size() int
- func (m *MsgAddUnilateralLiquidity) XXX_Unmarshal(b []byte) error
- type MsgAddUnilateralLiquidityResponse
- func (*MsgAddUnilateralLiquidityResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddUnilateralLiquidityResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddUnilateralLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddUnilateralLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddUnilateralLiquidityResponse) ProtoMessage()
- func (m *MsgAddUnilateralLiquidityResponse) Reset()
- func (m *MsgAddUnilateralLiquidityResponse) Size() (n int)
- func (m *MsgAddUnilateralLiquidityResponse) String() string
- func (m *MsgAddUnilateralLiquidityResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddUnilateralLiquidityResponse) XXX_DiscardUnknown()
- func (m *MsgAddUnilateralLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddUnilateralLiquidityResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddUnilateralLiquidityResponse) XXX_Size() int
- func (m *MsgAddUnilateralLiquidityResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgRemoveLiquidity
- func (*MsgRemoveLiquidity) Descriptor() ([]byte, []int)
- func (msg MsgRemoveLiquidity) GetSignBytes() []byte
- func (msg MsgRemoveLiquidity) GetSigners() []sdk.AccAddress
- 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 MsgRemoveUnilateralLiquidity
- func (*MsgRemoveUnilateralLiquidity) Descriptor() ([]byte, []int)
- func (m MsgRemoveUnilateralLiquidity) GetSignBytes() []byte
- func (m MsgRemoveUnilateralLiquidity) GetSigners() []sdk.AccAddress
- func (m *MsgRemoveUnilateralLiquidity) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveUnilateralLiquidity) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveUnilateralLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveUnilateralLiquidity) ProtoMessage()
- func (m *MsgRemoveUnilateralLiquidity) Reset()
- func (m MsgRemoveUnilateralLiquidity) Route() string
- func (m *MsgRemoveUnilateralLiquidity) Size() (n int)
- func (m *MsgRemoveUnilateralLiquidity) String() string
- func (m MsgRemoveUnilateralLiquidity) Type() string
- func (m *MsgRemoveUnilateralLiquidity) Unmarshal(dAtA []byte) error
- func (m MsgRemoveUnilateralLiquidity) ValidateBasic() error
- func (m *MsgRemoveUnilateralLiquidity) XXX_DiscardUnknown()
- func (m *MsgRemoveUnilateralLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveUnilateralLiquidity) XXX_Merge(src proto.Message)
- func (m *MsgRemoveUnilateralLiquidity) XXX_Size() int
- func (m *MsgRemoveUnilateralLiquidity) XXX_Unmarshal(b []byte) error
- type MsgRemoveUnilateralLiquidityResponse
- func (*MsgRemoveUnilateralLiquidityResponse) Descriptor() ([]byte, []int)
- func (m *MsgRemoveUnilateralLiquidityResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveUnilateralLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveUnilateralLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveUnilateralLiquidityResponse) ProtoMessage()
- func (m *MsgRemoveUnilateralLiquidityResponse) Reset()
- func (m *MsgRemoveUnilateralLiquidityResponse) Size() (n int)
- func (m *MsgRemoveUnilateralLiquidityResponse) String() string
- func (m *MsgRemoveUnilateralLiquidityResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRemoveUnilateralLiquidityResponse) XXX_DiscardUnknown()
- func (m *MsgRemoveUnilateralLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveUnilateralLiquidityResponse) XXX_Merge(src proto.Message)
- func (m *MsgRemoveUnilateralLiquidityResponse) XXX_Size() int
- func (m *MsgRemoveUnilateralLiquidityResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSwapCoinResponse
- func (*MsgSwapCoinResponse) Descriptor() ([]byte, []int)
- func (m *MsgSwapCoinResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapCoinResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapCoinResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapCoinResponse) ProtoMessage()
- func (m *MsgSwapCoinResponse) Reset()
- func (m *MsgSwapCoinResponse) Size() (n int)
- func (m *MsgSwapCoinResponse) String() string
- func (m *MsgSwapCoinResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSwapCoinResponse) XXX_DiscardUnknown()
- func (m *MsgSwapCoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapCoinResponse) XXX_Merge(src proto.Message)
- func (m *MsgSwapCoinResponse) XXX_Size() int
- func (m *MsgSwapCoinResponse) XXX_Unmarshal(b []byte) error
- type MsgSwapOrder
- func (*MsgSwapOrder) Descriptor() ([]byte, []int)
- func (msg MsgSwapOrder) GetSignBytes() []byte
- func (msg MsgSwapOrder) GetSigners() []sdk.AccAddress
- func (m *MsgSwapOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapOrder) ProtoMessage()
- func (m *MsgSwapOrder) Reset()
- func (msg MsgSwapOrder) Route() string
- func (m *MsgSwapOrder) Size() (n int)
- func (m *MsgSwapOrder) String() string
- func (msg MsgSwapOrder) Type() string
- func (m *MsgSwapOrder) Unmarshal(dAtA []byte) error
- func (msg MsgSwapOrder) ValidateBasic() error
- func (m *MsgSwapOrder) XXX_DiscardUnknown()
- func (m *MsgSwapOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapOrder) XXX_Merge(src proto.Message)
- func (m *MsgSwapOrder) XXX_Size() int
- func (m *MsgSwapOrder) XXX_Unmarshal(b []byte) error
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetSignBytes() []byte
- func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) ValidateBasic() error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type Output
- func (*Output) Descriptor() ([]byte, []int)
- func (m *Output) Marshal() (dAtA []byte, err error)
- func (m *Output) MarshalTo(dAtA []byte) (int, error)
- func (m *Output) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Output) ProtoMessage()
- func (m *Output) Reset()
- func (m *Output) Size() (n int)
- func (m *Output) String() string
- func (m *Output) Unmarshal(dAtA []byte) error
- func (m *Output) XXX_DiscardUnknown()
- func (m *Output) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Output) XXX_Merge(src proto.Message)
- func (m *Output) XXX_Size() int
- func (m *Output) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- 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() exported.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 Pool
- func (*Pool) Descriptor() ([]byte, []int)
- func (m *Pool) Marshal() (dAtA []byte, err error)
- func (m *Pool) MarshalTo(dAtA []byte) (int, error)
- func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pool) ProtoMessage()
- func (m *Pool) Reset()
- func (m *Pool) Size() (n int)
- func (m *Pool) String() string
- func (m *Pool) Unmarshal(dAtA []byte) error
- func (m *Pool) XXX_DiscardUnknown()
- func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pool) XXX_Merge(src proto.Message)
- func (m *Pool) XXX_Size() int
- func (m *Pool) XXX_Unmarshal(b []byte) error
- type PoolInfo
- func (*PoolInfo) Descriptor() ([]byte, []int)
- func (m *PoolInfo) GetEscrowAddress() string
- func (m *PoolInfo) GetFee() string
- func (m *PoolInfo) GetId() string
- func (m *PoolInfo) GetLpt() types.Coin
- func (m *PoolInfo) GetStandard() types.Coin
- func (m *PoolInfo) GetToken() types.Coin
- func (m *PoolInfo) Marshal() (dAtA []byte, err error)
- func (m *PoolInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolInfo) ProtoMessage()
- func (m *PoolInfo) Reset()
- func (m *PoolInfo) Size() (n int)
- func (m *PoolInfo) String() string
- func (m *PoolInfo) Unmarshal(dAtA []byte) error
- func (m *PoolInfo) XXX_DiscardUnknown()
- func (m *PoolInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolInfo) XXX_Merge(src proto.Message)
- func (m *PoolInfo) XXX_Size() int
- func (m *PoolInfo) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryLiquidityPoolRequest
- func (*QueryLiquidityPoolRequest) Descriptor() ([]byte, []int)
- func (m *QueryLiquidityPoolRequest) GetLptDenom() string
- func (m *QueryLiquidityPoolRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryLiquidityPoolRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLiquidityPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLiquidityPoolRequest) ProtoMessage()
- func (m *QueryLiquidityPoolRequest) Reset()
- func (m *QueryLiquidityPoolRequest) Size() (n int)
- func (m *QueryLiquidityPoolRequest) String() string
- func (m *QueryLiquidityPoolRequest) Unmarshal(dAtA []byte) error
- func (m *QueryLiquidityPoolRequest) XXX_DiscardUnknown()
- func (m *QueryLiquidityPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLiquidityPoolRequest) XXX_Merge(src proto.Message)
- func (m *QueryLiquidityPoolRequest) XXX_Size() int
- func (m *QueryLiquidityPoolRequest) XXX_Unmarshal(b []byte) error
- type QueryLiquidityPoolResponse
- func (*QueryLiquidityPoolResponse) Descriptor() ([]byte, []int)
- func (m *QueryLiquidityPoolResponse) GetPool() PoolInfo
- func (m *QueryLiquidityPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryLiquidityPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLiquidityPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLiquidityPoolResponse) ProtoMessage()
- func (m *QueryLiquidityPoolResponse) Reset()
- func (m *QueryLiquidityPoolResponse) Size() (n int)
- func (m *QueryLiquidityPoolResponse) String() string
- func (m *QueryLiquidityPoolResponse) Unmarshal(dAtA []byte) error
- func (m *QueryLiquidityPoolResponse) XXX_DiscardUnknown()
- func (m *QueryLiquidityPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLiquidityPoolResponse) XXX_Merge(src proto.Message)
- func (m *QueryLiquidityPoolResponse) XXX_Size() int
- func (m *QueryLiquidityPoolResponse) XXX_Unmarshal(b []byte) error
- type QueryLiquidityPoolsRequest
- func (*QueryLiquidityPoolsRequest) Descriptor() ([]byte, []int)
- func (m *QueryLiquidityPoolsRequest) GetPagination() *query.PageRequest
- func (m *QueryLiquidityPoolsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryLiquidityPoolsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLiquidityPoolsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLiquidityPoolsRequest) ProtoMessage()
- func (m *QueryLiquidityPoolsRequest) Reset()
- func (m *QueryLiquidityPoolsRequest) Size() (n int)
- func (m *QueryLiquidityPoolsRequest) String() string
- func (m *QueryLiquidityPoolsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryLiquidityPoolsRequest) XXX_DiscardUnknown()
- func (m *QueryLiquidityPoolsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLiquidityPoolsRequest) XXX_Merge(src proto.Message)
- func (m *QueryLiquidityPoolsRequest) XXX_Size() int
- func (m *QueryLiquidityPoolsRequest) XXX_Unmarshal(b []byte) error
- type QueryLiquidityPoolsResponse
- func (*QueryLiquidityPoolsResponse) Descriptor() ([]byte, []int)
- func (m *QueryLiquidityPoolsResponse) GetPagination() *query.PageResponse
- func (m *QueryLiquidityPoolsResponse) GetPools() []PoolInfo
- func (m *QueryLiquidityPoolsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryLiquidityPoolsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLiquidityPoolsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLiquidityPoolsResponse) ProtoMessage()
- func (m *QueryLiquidityPoolsResponse) Reset()
- func (m *QueryLiquidityPoolsResponse) Size() (n int)
- func (m *QueryLiquidityPoolsResponse) String() string
- func (m *QueryLiquidityPoolsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryLiquidityPoolsResponse) XXX_DiscardUnknown()
- func (m *QueryLiquidityPoolsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLiquidityPoolsResponse) XXX_Merge(src proto.Message)
- func (m *QueryLiquidityPoolsResponse) XXX_Size() int
- func (m *QueryLiquidityPoolsResponse) XXX_Unmarshal(b []byte) error
- 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 QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddLiquidity(ctx context.Context, req *MsgAddLiquidity) (*MsgAddLiquidityResponse, error)
- func (*UnimplementedMsgServer) AddUnilateralLiquidity(ctx context.Context, req *MsgAddUnilateralLiquidity) (*MsgAddUnilateralLiquidityResponse, error)
- func (*UnimplementedMsgServer) RemoveLiquidity(ctx context.Context, req *MsgRemoveLiquidity) (*MsgRemoveLiquidityResponse, error)
- func (*UnimplementedMsgServer) RemoveUnilateralLiquidity(ctx context.Context, req *MsgRemoveUnilateralLiquidity) (*MsgRemoveUnilateralLiquidityResponse, error)
- func (*UnimplementedMsgServer) SwapCoin(ctx context.Context, req *MsgSwapOrder) (*MsgSwapCoinResponse, error)
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) LiquidityPool(ctx context.Context, req *QueryLiquidityPoolRequest) (*QueryLiquidityPoolResponse, error)
- func (*UnimplementedQueryServer) LiquidityPools(ctx context.Context, req *QueryLiquidityPoolsRequest) (*QueryLiquidityPoolsResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
Constants ¶
const ( EventTypeSwap = "swap" EventTypeAddLiquidity = "add_liquidity" EventTypeRemoveLiquidity = "remove_liquidity" EventTypeAddUnilateralLiquidity = "add_unilateral_liquidity" EventTypeRemoveUnilateralLiquidity = "remove_unilateral_liquidity" AttributeValueCategory = ModuleName AttributeValueAmount = "amount" AttributeValueSender = "sender" AttributeValueRecipient = "recipient" AttributeValueIsBuyOrder = "is_buy_order" AttributeValueTokenPair = "token_pair" AttributeValueTokenUnilateral = "token_unilateral" AttributeValueLptDenom = "lpt_denom" )
coinswap module event types
const ( // ModuleName is the name of the module. ModuleName = "coinswap" // RouterKey is the message route for the coinswap module. RouterKey = ModuleName // StoreKey is the default store key for the coinswap module. StoreKey = ModuleName // QuerierRoute is the querier route for the coinswap module. QuerierRoute = StoreKey // KeyNextPoolSequence is the key used to store the next pool sequence in // the keeper. KeyNextPoolSequence = "nextPoolSequence" // KeyPool is the key used to store the pool information in // the keeper. KeyPool = "pool" // KeyPoolLptDenom is the key used to store the pool information in // the keeper. KeyPoolLptDenom = "lptDenom" // prefix for parameters for module x/coinswap ParamsKey = "params" )
const ( // LptTokenPrefix defines the prefix of liquidity token LptTokenPrefix = "lpt" // LptTokenFormat defines the name of liquidity token LptTokenFormat = "lpt-%d" // TypeMsgAddLiquidity defines the type of MsgAddLiquidity TypeMsgAddLiquidity = "add_liquidity" // TypeMsgAddUnilateralLiquidity defines the type of MsgAddUnilateralLiquidity TypeMsgAddUnilateralLiquidity = "add_unilateral_liquidity" // TypeMsgRemoveLiquidity defines the type of MsgRemoveLiquidity TypeMsgRemoveLiquidity = "remove_liquidity" // TypeMsgRemoveUnilateralLiquidity defines the type of MsgRemoveUnilateralLiquidity TypeMsgRemoveUnilateralLiquidity = "remove_unilateral_liquidity" // TypeMsgSwapOrder defines the type of MsgSwapOrder TypeMsgSwapOrder = "swap_order" )
Variables ¶
var ( ErrInvalidLengthCoinswap = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowCoinswap = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupCoinswap = fmt.Errorf("proto: unexpected end of group") )
var ( ErrReservePoolNotExists = errorsmod.Register(ModuleName, 2, "reserve pool not exists") ErrEqualDenom = errorsmod.Register(ModuleName, 3, "input and output denomination are equal") ErrNotContainStandardDenom = errorsmod.Register(ModuleName, 4, "must have one standard denom") ErrMustStandardDenom = errorsmod.Register(ModuleName, 5, "must be standard denom") ErrInvalidDenom = errorsmod.Register(ModuleName, 6, "invalid denom") ErrInvalidDeadline = errorsmod.Register(ModuleName, 7, "invalid deadline") ErrConstraintNotMet = errorsmod.Register(ModuleName, 8, "constraint not met") ErrInsufficientFunds = errorsmod.Register(ModuleName, 9, "insufficient funds") )
coinswap 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 ( KeyFee = []byte("Fee") // fee key KeyPoolCreationFee = []byte("PoolCreationFee") // fee key KeyTaxRate = []byte("TaxRate") // fee key KeyStandardDenom = []byte("StandardDenom") // standard token denom key KeyUnilateralLiquidityFee = []byte("UnilateralLiquidityFee") // fee key )
Parameter store keys
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func GetLptDenom ¶ added in v1.5.0
GetLptDenom returns the pool coin denom by specified sequence.
func GetLptDenomKey ¶ added in v1.5.0
GetLptDenomKey return the stored pool key for the given liquidity pool token denom.
func GetPoolKey ¶ added in v1.5.0
GetPoolKey return the stored pool key for the given pooId.
func GetReservePoolAddr ¶
func GetReservePoolAddr(lptDenom string) sdk.AccAddress
GetReservePoolAddr returns the pool address for the provided liquidity denomination.
func GetTokenPairByDenom ¶
GetTokenPairByDenom returns the token pair for the provided denominations
func ParamKeyTable ¶
ParamKeyTable returns the TypeTable for coinswap module
func ParseLptDenom ¶ added in v1.5.0
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers concrete types on the codec.
func RegisterMsgServer ¶ added in v1.2.0
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 ValidateCounterpartyDenom ¶ added in v1.7.0
ValidateCounterpartyDenom verifies whether the counterparty denom is legal
func ValidateDeadline ¶ added in v1.2.1
ValidateDeadline verifies whether the given deadline is legal
func ValidateExactStandardAmt ¶ added in v1.2.1
ValidateExactStandardAmt verifies whether the standard token amount is legal
func ValidateGenesis ¶
func ValidateGenesis(data GenesisState) error
ValidateGenesis validates the given genesis state
func ValidateInput ¶ added in v1.2.1
ValidateInput verifies whether the given input is legal
func ValidateLiquidity ¶ added in v1.7.0
ValidateLiquidity verifies whether the minimum liquidity is legal
func ValidateLptDenom ¶ added in v1.5.0
ValidateLptDenom returns nil if the Liquidity pool token denom is valid
func ValidateMaxToken ¶ added in v1.2.1
ValidateMaxToken verifies whether the maximum token is legal
func ValidateMinStandardAmt ¶ added in v1.2.1
ValidateMinStandardAmt verifies whether the minimum standard amount is legal
func ValidateMinToken ¶ added in v1.2.1
ValidateMinToken verifies whether the minimum token amount is legal
func ValidateOutput ¶ added in v1.2.1
ValidateOutput verifies whether the given output is legal
func ValidatePoolSequenceId ¶ added in v1.7.0
ValidatePoolSequenceId returns nil if the pool id is valid
func ValidateToken ¶ added in v1.7.0
ValidateToken verifies whether the exact token is legal
func ValidateWithdrawLiquidity ¶ added in v1.2.1
ValidateWithdrawLiquidity verifies whether the given liquidity is legal
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI GetModuleAddress(name string) sdk.AccAddress IterateAccounts(ctx sdk.Context, cb func(account authtypes.AccountI) (stop bool)) }
AccountKeeper defines the expected account keeper
type BankKeeper ¶
type BankKeeper interface { SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin GetSupply(ctx sdk.Context, denom string) sdk.Coin IterateTotalSupply(ctx sdk.Context, cb func(sdk.Coin) bool) SendCoinsFromModuleToAccount( ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins, ) error SendCoinsFromAccountToModule( ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins, ) error SendCoinsFromModuleToModule( ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins, ) error BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetBlockedAddresses() map[string]bool }
BankKeeper defines the expected bank keeper
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` StandardDenom string `protobuf:"bytes,2,opt,name=standard_denom,json=standardDenom,proto3" json:"standard_denom,omitempty"` Pool []Pool `protobuf:"bytes,3,rep,name=pool,proto3" json:"pool"` Sequence uint64 `protobuf:"varint,4,opt,name=sequence,proto3" json:"sequence,omitempty"` }
GenesisState defines the coinswap module's genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState creates a default GenesisState object
func NewGenesisState ¶
func NewGenesisState(params Params, denom string) *GenesisState
NewGenesisState is the constructor function for GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPool ¶ added in v1.5.0
func (m *GenesisState) GetPool() []Pool
func (*GenesisState) GetSequence ¶ added in v1.5.0
func (m *GenesisState) GetSequence() uint64
func (*GenesisState) GetStandardDenom ¶ added in v1.2.0
func (m *GenesisState) GetStandardDenom() string
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) 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 Input ¶
type Input struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Coin types.Coin `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin"` }
Input defines the properties of order's input
func (*Input) Descriptor ¶
func (*Input) ProtoMessage ¶
func (*Input) ProtoMessage()
func (*Input) XXX_DiscardUnknown ¶
func (m *Input) XXX_DiscardUnknown()
func (*Input) XXX_Marshal ¶
func (*Input) XXX_Unmarshal ¶
type MsgAddLiquidity ¶
type MsgAddLiquidity struct { MaxToken types.Coin `protobuf:"bytes,1,opt,name=max_token,json=maxToken,proto3" json:"max_token"` ExactStandardAmt github_com_cosmos_cosmos_sdk_types.Int `` /* 151-byte string literal not displayed */ MinLiquidity github_com_cosmos_cosmos_sdk_types.Int `` /* 137-byte string literal not displayed */ Deadline int64 `protobuf:"varint,4,opt,name=deadline,proto3" json:"deadline,omitempty"` Sender string `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"` }
MsgAddLiquidity defines a msg for adding liquidity to a reserve pool
func NewMsgAddLiquidity ¶
func NewMsgAddLiquidity( maxToken sdk.Coin, exactStandardAmt sdkmath.Int, minLiquidity sdkmath.Int, deadline int64, sender string, ) *MsgAddLiquidity
NewMsgAddLiquidity creates a new MsgAddLiquidity object.
func (*MsgAddLiquidity) Descriptor ¶
func (*MsgAddLiquidity) Descriptor() ([]byte, []int)
func (MsgAddLiquidity) GetSignBytes ¶
func (msg MsgAddLiquidity) GetSignBytes() []byte
GetSignBytes implements Msg.
func (MsgAddLiquidity) GetSigners ¶
func (msg MsgAddLiquidity) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
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) Size ¶
func (m *MsgAddLiquidity) Size() (n int)
func (*MsgAddLiquidity) String ¶
func (m *MsgAddLiquidity) String() string
func (*MsgAddLiquidity) Unmarshal ¶
func (m *MsgAddLiquidity) Unmarshal(dAtA []byte) error
func (MsgAddLiquidity) ValidateBasic ¶
func (msg MsgAddLiquidity) ValidateBasic() error
ValidateBasic implements Msg.
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 ¶ added in v1.2.0
type MsgAddLiquidityResponse struct {
MintToken *types.Coin `protobuf:"bytes,1,opt,name=mint_token,json=mintToken,proto3" json:"mint_token,omitempty"`
}
MsgAddLiquidityResponse defines the Msg/AddLiquidity response type
func (*MsgAddLiquidityResponse) Descriptor ¶ added in v1.2.0
func (*MsgAddLiquidityResponse) Descriptor() ([]byte, []int)
func (*MsgAddLiquidityResponse) Marshal ¶ added in v1.2.0
func (m *MsgAddLiquidityResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddLiquidityResponse) MarshalTo ¶ added in v1.2.0
func (m *MsgAddLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddLiquidityResponse) MarshalToSizedBuffer ¶ added in v1.2.0
func (m *MsgAddLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddLiquidityResponse) ProtoMessage ¶ added in v1.2.0
func (*MsgAddLiquidityResponse) ProtoMessage()
func (*MsgAddLiquidityResponse) Reset ¶ added in v1.2.0
func (m *MsgAddLiquidityResponse) Reset()
func (*MsgAddLiquidityResponse) Size ¶ added in v1.2.0
func (m *MsgAddLiquidityResponse) Size() (n int)
func (*MsgAddLiquidityResponse) String ¶ added in v1.2.0
func (m *MsgAddLiquidityResponse) String() string
func (*MsgAddLiquidityResponse) Unmarshal ¶ added in v1.2.0
func (m *MsgAddLiquidityResponse) Unmarshal(dAtA []byte) error
func (*MsgAddLiquidityResponse) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *MsgAddLiquidityResponse) XXX_DiscardUnknown()
func (*MsgAddLiquidityResponse) XXX_Marshal ¶ added in v1.2.0
func (m *MsgAddLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddLiquidityResponse) XXX_Merge ¶ added in v1.2.0
func (m *MsgAddLiquidityResponse) XXX_Merge(src proto.Message)
func (*MsgAddLiquidityResponse) XXX_Size ¶ added in v1.2.0
func (m *MsgAddLiquidityResponse) XXX_Size() int
func (*MsgAddLiquidityResponse) XXX_Unmarshal ¶ added in v1.2.0
func (m *MsgAddLiquidityResponse) XXX_Unmarshal(b []byte) error
type MsgAddUnilateralLiquidity ¶ added in v1.7.0
type MsgAddUnilateralLiquidity struct { CounterpartyDenom string `protobuf:"bytes,1,opt,name=counterparty_denom,json=counterpartyDenom,proto3" json:"counterparty_denom,omitempty"` ExactToken types.Coin `protobuf:"bytes,2,opt,name=exact_token,json=exactToken,proto3" json:"exact_token"` MinLiquidity github_com_cosmos_cosmos_sdk_types.Int `` /* 137-byte string literal not displayed */ Deadline int64 `protobuf:"varint,4,opt,name=deadline,proto3" json:"deadline,omitempty"` Sender string `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"` }
MsgAddLiquidityUni defines a msg for adding liquidity unilaterally to a reserve pool
func NewMsgAddUnilateralLiquidity ¶ added in v1.7.0
func NewMsgAddUnilateralLiquidity( counterpartyDenom string, exactToken sdk.Coin, minLiquidity sdkmath.Int, deadline int64, sender string, ) *MsgAddUnilateralLiquidity
---------------------------------------------------------------------------
MsgAddUnilateralLiquidity
---------------------------------------------------------------------------
func (*MsgAddUnilateralLiquidity) Descriptor ¶ added in v1.7.0
func (*MsgAddUnilateralLiquidity) Descriptor() ([]byte, []int)
func (MsgAddUnilateralLiquidity) GetSignBytes ¶ added in v1.7.0
func (m MsgAddUnilateralLiquidity) GetSignBytes() []byte
func (MsgAddUnilateralLiquidity) GetSigners ¶ added in v1.7.0
func (m MsgAddUnilateralLiquidity) GetSigners() []sdk.AccAddress
func (*MsgAddUnilateralLiquidity) Marshal ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidity) Marshal() (dAtA []byte, err error)
func (*MsgAddUnilateralLiquidity) MarshalTo ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidity) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddUnilateralLiquidity) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddUnilateralLiquidity) ProtoMessage ¶ added in v1.7.0
func (*MsgAddUnilateralLiquidity) ProtoMessage()
func (*MsgAddUnilateralLiquidity) Reset ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidity) Reset()
func (MsgAddUnilateralLiquidity) Route ¶ added in v1.7.0
func (m MsgAddUnilateralLiquidity) Route() string
func (*MsgAddUnilateralLiquidity) Size ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidity) Size() (n int)
func (*MsgAddUnilateralLiquidity) String ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidity) String() string
func (MsgAddUnilateralLiquidity) Type ¶ added in v1.7.0
func (m MsgAddUnilateralLiquidity) Type() string
func (*MsgAddUnilateralLiquidity) Unmarshal ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidity) Unmarshal(dAtA []byte) error
func (MsgAddUnilateralLiquidity) ValidateBasic ¶ added in v1.7.0
func (m MsgAddUnilateralLiquidity) ValidateBasic() error
func (*MsgAddUnilateralLiquidity) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidity) XXX_DiscardUnknown()
func (*MsgAddUnilateralLiquidity) XXX_Marshal ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddUnilateralLiquidity) XXX_Merge ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidity) XXX_Merge(src proto.Message)
func (*MsgAddUnilateralLiquidity) XXX_Size ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidity) XXX_Size() int
func (*MsgAddUnilateralLiquidity) XXX_Unmarshal ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidity) XXX_Unmarshal(b []byte) error
type MsgAddUnilateralLiquidityResponse ¶ added in v1.7.0
type MsgAddUnilateralLiquidityResponse struct {
MintToken *types.Coin `protobuf:"bytes,1,opt,name=mint_token,json=mintToken,proto3" json:"mint_token,omitempty"`
}
MsgAddLiquidityUniResponse defines the Msg/AddLiquidityUni response type
func (*MsgAddUnilateralLiquidityResponse) Descriptor ¶ added in v1.7.0
func (*MsgAddUnilateralLiquidityResponse) Descriptor() ([]byte, []int)
func (*MsgAddUnilateralLiquidityResponse) Marshal ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidityResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddUnilateralLiquidityResponse) MarshalTo ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddUnilateralLiquidityResponse) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddUnilateralLiquidityResponse) ProtoMessage ¶ added in v1.7.0
func (*MsgAddUnilateralLiquidityResponse) ProtoMessage()
func (*MsgAddUnilateralLiquidityResponse) Reset ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidityResponse) Reset()
func (*MsgAddUnilateralLiquidityResponse) Size ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidityResponse) Size() (n int)
func (*MsgAddUnilateralLiquidityResponse) String ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidityResponse) String() string
func (*MsgAddUnilateralLiquidityResponse) Unmarshal ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidityResponse) Unmarshal(dAtA []byte) error
func (*MsgAddUnilateralLiquidityResponse) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidityResponse) XXX_DiscardUnknown()
func (*MsgAddUnilateralLiquidityResponse) XXX_Marshal ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddUnilateralLiquidityResponse) XXX_Merge ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidityResponse) XXX_Merge(src proto.Message)
func (*MsgAddUnilateralLiquidityResponse) XXX_Size ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidityResponse) XXX_Size() int
func (*MsgAddUnilateralLiquidityResponse) XXX_Unmarshal ¶ added in v1.7.0
func (m *MsgAddUnilateralLiquidityResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶ added in v1.2.0
type MsgClient interface { // AddLiquidity defines a method for depositing some tokens to the liquidity // pool AddLiquidity(ctx context.Context, in *MsgAddLiquidity, opts ...grpc.CallOption) (*MsgAddLiquidityResponse, error) // AddUnilateralLiquidity defines a method for depositing some tokens // unilaterally to the liquidity pool AddUnilateralLiquidity(ctx context.Context, in *MsgAddUnilateralLiquidity, opts ...grpc.CallOption) (*MsgAddUnilateralLiquidityResponse, error) // RemoveLiquidity defines a method for withdraw some tokens from the // liquidity pool RemoveLiquidity(ctx context.Context, in *MsgRemoveLiquidity, opts ...grpc.CallOption) (*MsgRemoveLiquidityResponse, error) // RemoveUnilateralLiquidity defines a method for withdraw some tokens // unilaterally from the liquidity pool RemoveUnilateralLiquidity(ctx context.Context, in *MsgRemoveUnilateralLiquidity, opts ...grpc.CallOption) (*MsgRemoveUnilateralLiquidityResponse, error) // SwapCoin defines a method for swapping a token with the other token from // the liquidity pool SwapCoin(ctx context.Context, in *MsgSwapOrder, opts ...grpc.CallOption) (*MsgSwapCoinResponse, error) // UpdateParams defines a governance operation for updating the x/coinswap // module parameters. The authority is defined in the keeper. // // Since: cosmos-sdk 0.47 UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 ¶ added in v1.2.0
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgRemoveLiquidity ¶
type MsgRemoveLiquidity struct { WithdrawLiquidity types.Coin `protobuf:"bytes,1,opt,name=withdraw_liquidity,json=withdrawLiquidity,proto3" json:"withdraw_liquidity"` MinToken github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=min_token,json=minToken,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"min_token"` MinStandardAmt github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */ Deadline int64 `protobuf:"varint,4,opt,name=deadline,proto3" json:"deadline,omitempty"` Sender string `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"` }
MsgRemoveLiquidity defines a msg for removing liquidity from a reserve pool
func NewMsgRemoveLiquidity ¶
func NewMsgRemoveLiquidity( minToken sdkmath.Int, withdrawLiquidity sdk.Coin, minStandardAmt sdkmath.Int, deadline int64, sender string, ) *MsgRemoveLiquidity
NewMsgRemoveLiquidity creates a new MsgRemoveLiquidity object
func (*MsgRemoveLiquidity) Descriptor ¶
func (*MsgRemoveLiquidity) Descriptor() ([]byte, []int)
func (MsgRemoveLiquidity) GetSignBytes ¶
func (msg MsgRemoveLiquidity) GetSignBytes() []byte
GetSignBytes implements Msg.
func (MsgRemoveLiquidity) GetSigners ¶
func (msg MsgRemoveLiquidity) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
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
Route implements Msg.
func (*MsgRemoveLiquidity) Size ¶
func (m *MsgRemoveLiquidity) Size() (n int)
func (*MsgRemoveLiquidity) String ¶
func (m *MsgRemoveLiquidity) String() string
func (*MsgRemoveLiquidity) Unmarshal ¶
func (m *MsgRemoveLiquidity) Unmarshal(dAtA []byte) error
func (MsgRemoveLiquidity) ValidateBasic ¶
func (msg MsgRemoveLiquidity) ValidateBasic() error
ValidateBasic implements Msg.
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 ¶ added in v1.2.0
type MsgRemoveLiquidityResponse struct {
WithdrawCoins []types.Coin `protobuf:"bytes,1,rep,name=withdraw_coins,json=withdrawCoins,proto3" json:"withdraw_coins"`
}
MsgRemoveLiquidityResponse defines the Msg/RemoveLiquidity response type
func (*MsgRemoveLiquidityResponse) Descriptor ¶ added in v1.2.0
func (*MsgRemoveLiquidityResponse) Descriptor() ([]byte, []int)
func (*MsgRemoveLiquidityResponse) Marshal ¶ added in v1.2.0
func (m *MsgRemoveLiquidityResponse) Marshal() (dAtA []byte, err error)
func (*MsgRemoveLiquidityResponse) MarshalTo ¶ added in v1.2.0
func (m *MsgRemoveLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveLiquidityResponse) MarshalToSizedBuffer ¶ added in v1.2.0
func (m *MsgRemoveLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveLiquidityResponse) ProtoMessage ¶ added in v1.2.0
func (*MsgRemoveLiquidityResponse) ProtoMessage()
func (*MsgRemoveLiquidityResponse) Reset ¶ added in v1.2.0
func (m *MsgRemoveLiquidityResponse) Reset()
func (*MsgRemoveLiquidityResponse) Size ¶ added in v1.2.0
func (m *MsgRemoveLiquidityResponse) Size() (n int)
func (*MsgRemoveLiquidityResponse) String ¶ added in v1.2.0
func (m *MsgRemoveLiquidityResponse) String() string
func (*MsgRemoveLiquidityResponse) Unmarshal ¶ added in v1.2.0
func (m *MsgRemoveLiquidityResponse) Unmarshal(dAtA []byte) error
func (*MsgRemoveLiquidityResponse) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *MsgRemoveLiquidityResponse) XXX_DiscardUnknown()
func (*MsgRemoveLiquidityResponse) XXX_Marshal ¶ added in v1.2.0
func (m *MsgRemoveLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveLiquidityResponse) XXX_Merge ¶ added in v1.2.0
func (m *MsgRemoveLiquidityResponse) XXX_Merge(src proto.Message)
func (*MsgRemoveLiquidityResponse) XXX_Size ¶ added in v1.2.0
func (m *MsgRemoveLiquidityResponse) XXX_Size() int
func (*MsgRemoveLiquidityResponse) XXX_Unmarshal ¶ added in v1.2.0
func (m *MsgRemoveLiquidityResponse) XXX_Unmarshal(b []byte) error
type MsgRemoveUnilateralLiquidity ¶ added in v1.7.0
type MsgRemoveUnilateralLiquidity struct { CounterpartyDenom string `protobuf:"bytes,1,opt,name=counterparty_denom,json=counterpartyDenom,proto3" json:"counterparty_denom,omitempty"` MinToken types.Coin `protobuf:"bytes,2,opt,name=min_token,json=minToken,proto3" json:"min_token"` ExactLiquidity github_com_cosmos_cosmos_sdk_types.Int `` /* 143-byte string literal not displayed */ Deadline int64 `protobuf:"varint,4,opt,name=deadline,proto3" json:"deadline,omitempty"` Sender string `protobuf:"bytes,5,opt,name=sender,proto3" json:"sender,omitempty"` }
MsgRemoveUnilateralLiquidity defines a msg for removing liquiditys unilaterally to a reserve pool
func NewMsgRemoveUnilateralLiquidity ¶ added in v1.7.0
func NewMsgRemoveUnilateralLiquidity( couterpartyDenom string, minToken sdk.Coin, exactLiquidity sdkmath.Int, deadline int64, sender string, ) *MsgRemoveUnilateralLiquidity
---------------------------------------------------------------------------
MsgRemoveUnilateralLiquidity
---------------------------------------------------------------------------
func (*MsgRemoveUnilateralLiquidity) Descriptor ¶ added in v1.7.0
func (*MsgRemoveUnilateralLiquidity) Descriptor() ([]byte, []int)
func (MsgRemoveUnilateralLiquidity) GetSignBytes ¶ added in v1.7.0
func (m MsgRemoveUnilateralLiquidity) GetSignBytes() []byte
func (MsgRemoveUnilateralLiquidity) GetSigners ¶ added in v1.7.0
func (m MsgRemoveUnilateralLiquidity) GetSigners() []sdk.AccAddress
func (*MsgRemoveUnilateralLiquidity) Marshal ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidity) Marshal() (dAtA []byte, err error)
func (*MsgRemoveUnilateralLiquidity) MarshalTo ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidity) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveUnilateralLiquidity) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveUnilateralLiquidity) ProtoMessage ¶ added in v1.7.0
func (*MsgRemoveUnilateralLiquidity) ProtoMessage()
func (*MsgRemoveUnilateralLiquidity) Reset ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidity) Reset()
func (MsgRemoveUnilateralLiquidity) Route ¶ added in v1.7.0
func (m MsgRemoveUnilateralLiquidity) Route() string
func (*MsgRemoveUnilateralLiquidity) Size ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidity) Size() (n int)
func (*MsgRemoveUnilateralLiquidity) String ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidity) String() string
func (MsgRemoveUnilateralLiquidity) Type ¶ added in v1.7.0
func (m MsgRemoveUnilateralLiquidity) Type() string
func (*MsgRemoveUnilateralLiquidity) Unmarshal ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidity) Unmarshal(dAtA []byte) error
func (MsgRemoveUnilateralLiquidity) ValidateBasic ¶ added in v1.7.0
func (m MsgRemoveUnilateralLiquidity) ValidateBasic() error
func (*MsgRemoveUnilateralLiquidity) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidity) XXX_DiscardUnknown()
func (*MsgRemoveUnilateralLiquidity) XXX_Marshal ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveUnilateralLiquidity) XXX_Merge ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidity) XXX_Merge(src proto.Message)
func (*MsgRemoveUnilateralLiquidity) XXX_Size ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidity) XXX_Size() int
func (*MsgRemoveUnilateralLiquidity) XXX_Unmarshal ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidity) XXX_Unmarshal(b []byte) error
type MsgRemoveUnilateralLiquidityResponse ¶ added in v1.7.0
type MsgRemoveUnilateralLiquidityResponse struct {
WithdrawCoins []types.Coin `protobuf:"bytes,1,rep,name=withdraw_coins,json=withdrawCoins,proto3" json:"withdraw_coins"`
}
MsgRemoveUnilateralLiquidityResponse defines the Msg/RemoveLiquidity response type
func (*MsgRemoveUnilateralLiquidityResponse) Descriptor ¶ added in v1.7.0
func (*MsgRemoveUnilateralLiquidityResponse) Descriptor() ([]byte, []int)
func (*MsgRemoveUnilateralLiquidityResponse) Marshal ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidityResponse) Marshal() (dAtA []byte, err error)
func (*MsgRemoveUnilateralLiquidityResponse) MarshalTo ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveUnilateralLiquidityResponse) MarshalToSizedBuffer ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveUnilateralLiquidityResponse) ProtoMessage ¶ added in v1.7.0
func (*MsgRemoveUnilateralLiquidityResponse) ProtoMessage()
func (*MsgRemoveUnilateralLiquidityResponse) Reset ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidityResponse) Reset()
func (*MsgRemoveUnilateralLiquidityResponse) Size ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidityResponse) Size() (n int)
func (*MsgRemoveUnilateralLiquidityResponse) String ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidityResponse) String() string
func (*MsgRemoveUnilateralLiquidityResponse) Unmarshal ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidityResponse) Unmarshal(dAtA []byte) error
func (*MsgRemoveUnilateralLiquidityResponse) XXX_DiscardUnknown ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidityResponse) XXX_DiscardUnknown()
func (*MsgRemoveUnilateralLiquidityResponse) XXX_Marshal ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveUnilateralLiquidityResponse) XXX_Merge ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidityResponse) XXX_Merge(src proto.Message)
func (*MsgRemoveUnilateralLiquidityResponse) XXX_Size ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidityResponse) XXX_Size() int
func (*MsgRemoveUnilateralLiquidityResponse) XXX_Unmarshal ¶ added in v1.7.0
func (m *MsgRemoveUnilateralLiquidityResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶ added in v1.2.0
type MsgServer interface { // AddLiquidity defines a method for depositing some tokens to the liquidity // pool AddLiquidity(context.Context, *MsgAddLiquidity) (*MsgAddLiquidityResponse, error) // AddUnilateralLiquidity defines a method for depositing some tokens // unilaterally to the liquidity pool AddUnilateralLiquidity(context.Context, *MsgAddUnilateralLiquidity) (*MsgAddUnilateralLiquidityResponse, error) // RemoveLiquidity defines a method for withdraw some tokens from the // liquidity pool RemoveLiquidity(context.Context, *MsgRemoveLiquidity) (*MsgRemoveLiquidityResponse, error) // RemoveUnilateralLiquidity defines a method for withdraw some tokens // unilaterally from the liquidity pool RemoveUnilateralLiquidity(context.Context, *MsgRemoveUnilateralLiquidity) (*MsgRemoveUnilateralLiquidityResponse, error) // SwapCoin defines a method for swapping a token with the other token from // the liquidity pool SwapCoin(context.Context, *MsgSwapOrder) (*MsgSwapCoinResponse, error) // UpdateParams defines a governance operation for updating the x/coinswap // module parameters. The authority is defined in the keeper. // // Since: cosmos-sdk 0.47 UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgSwapCoinResponse ¶ added in v1.2.0
type MsgSwapCoinResponse struct { }
MsgSwapCoinResponse defines the Msg/SwapCoin response type
func (*MsgSwapCoinResponse) Descriptor ¶ added in v1.2.0
func (*MsgSwapCoinResponse) Descriptor() ([]byte, []int)
func (*MsgSwapCoinResponse) Marshal ¶ added in v1.2.0
func (m *MsgSwapCoinResponse) Marshal() (dAtA []byte, err error)
func (*MsgSwapCoinResponse) MarshalTo ¶ added in v1.2.0
func (m *MsgSwapCoinResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapCoinResponse) MarshalToSizedBuffer ¶ added in v1.2.0
func (m *MsgSwapCoinResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapCoinResponse) ProtoMessage ¶ added in v1.2.0
func (*MsgSwapCoinResponse) ProtoMessage()
func (*MsgSwapCoinResponse) Reset ¶ added in v1.2.0
func (m *MsgSwapCoinResponse) Reset()
func (*MsgSwapCoinResponse) Size ¶ added in v1.2.0
func (m *MsgSwapCoinResponse) Size() (n int)
func (*MsgSwapCoinResponse) String ¶ added in v1.2.0
func (m *MsgSwapCoinResponse) String() string
func (*MsgSwapCoinResponse) Unmarshal ¶ added in v1.2.0
func (m *MsgSwapCoinResponse) Unmarshal(dAtA []byte) error
func (*MsgSwapCoinResponse) XXX_DiscardUnknown ¶ added in v1.2.0
func (m *MsgSwapCoinResponse) XXX_DiscardUnknown()
func (*MsgSwapCoinResponse) XXX_Marshal ¶ added in v1.2.0
func (m *MsgSwapCoinResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapCoinResponse) XXX_Merge ¶ added in v1.2.0
func (m *MsgSwapCoinResponse) XXX_Merge(src proto.Message)
func (*MsgSwapCoinResponse) XXX_Size ¶ added in v1.2.0
func (m *MsgSwapCoinResponse) XXX_Size() int
func (*MsgSwapCoinResponse) XXX_Unmarshal ¶ added in v1.2.0
func (m *MsgSwapCoinResponse) XXX_Unmarshal(b []byte) error
type MsgSwapOrder ¶
type MsgSwapOrder struct { Input Input `protobuf:"bytes,1,opt,name=input,proto3" json:"input"` Output Output `protobuf:"bytes,2,opt,name=output,proto3" json:"output"` Deadline int64 `protobuf:"varint,3,opt,name=deadline,proto3" json:"deadline,omitempty"` IsBuyOrder bool `protobuf:"varint,4,opt,name=is_buy_order,json=isBuyOrder,proto3" json:"is_buy_order,omitempty"` }
MsgSwapOrder defines a msg for swap order
func NewMsgSwapOrder ¶
func NewMsgSwapOrder( input Input, output Output, deadline int64, isBuyOrder bool, ) *MsgSwapOrder
NewMsgSwapOrder creates a new MsgSwapOrder object.
func (*MsgSwapOrder) Descriptor ¶
func (*MsgSwapOrder) Descriptor() ([]byte, []int)
func (MsgSwapOrder) GetSignBytes ¶
func (msg MsgSwapOrder) GetSignBytes() []byte
GetSignBytes implements Msg.
func (MsgSwapOrder) GetSigners ¶
func (msg MsgSwapOrder) GetSigners() []sdk.AccAddress
GetSigners implements Msg.
func (*MsgSwapOrder) Marshal ¶
func (m *MsgSwapOrder) Marshal() (dAtA []byte, err error)
func (*MsgSwapOrder) MarshalToSizedBuffer ¶
func (m *MsgSwapOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapOrder) ProtoMessage ¶
func (*MsgSwapOrder) ProtoMessage()
func (*MsgSwapOrder) Reset ¶
func (m *MsgSwapOrder) Reset()
func (*MsgSwapOrder) Size ¶
func (m *MsgSwapOrder) Size() (n int)
func (*MsgSwapOrder) String ¶
func (m *MsgSwapOrder) String() string
func (*MsgSwapOrder) Unmarshal ¶
func (m *MsgSwapOrder) Unmarshal(dAtA []byte) error
func (MsgSwapOrder) ValidateBasic ¶
func (msg MsgSwapOrder) ValidateBasic() error
ValidateBasic implements Msg.
func (*MsgSwapOrder) XXX_DiscardUnknown ¶
func (m *MsgSwapOrder) XXX_DiscardUnknown()
func (*MsgSwapOrder) XXX_Marshal ¶
func (m *MsgSwapOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapOrder) XXX_Merge ¶
func (m *MsgSwapOrder) XXX_Merge(src proto.Message)
func (*MsgSwapOrder) XXX_Size ¶
func (m *MsgSwapOrder) XXX_Size() int
func (*MsgSwapOrder) XXX_Unmarshal ¶
func (m *MsgSwapOrder) XXX_Unmarshal(b []byte) error
type MsgUpdateParams ¶ added in v1.8.0
type MsgUpdateParams struct { // authority is the address that controls the module (defaults to x/gov unless // overwritten). Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params defines the x/coinswap parameters to update. // // NOTE: All parameters must be supplied. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParams is the Msg/UpdateParams request type.
Since: cosmos-sdk 0.47
func (*MsgUpdateParams) Descriptor ¶ added in v1.8.0
func (*MsgUpdateParams) Descriptor() ([]byte, []int)
func (*MsgUpdateParams) GetSignBytes ¶ added in v1.8.0
func (m *MsgUpdateParams) GetSignBytes() []byte
GetSignBytes returns the raw bytes for a MsgUpdateParams message that the expected signer needs to sign.
func (*MsgUpdateParams) GetSigners ¶ added in v1.8.0
func (m *MsgUpdateParams) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for a MsgUpdateParams message
func (*MsgUpdateParams) Marshal ¶ added in v1.8.0
func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParams) MarshalTo ¶ added in v1.8.0
func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParams) MarshalToSizedBuffer ¶ added in v1.8.0
func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParams) ProtoMessage ¶ added in v1.8.0
func (*MsgUpdateParams) ProtoMessage()
func (*MsgUpdateParams) Reset ¶ added in v1.8.0
func (m *MsgUpdateParams) Reset()
func (*MsgUpdateParams) Size ¶ added in v1.8.0
func (m *MsgUpdateParams) Size() (n int)
func (*MsgUpdateParams) String ¶ added in v1.8.0
func (m *MsgUpdateParams) String() string
func (*MsgUpdateParams) Unmarshal ¶ added in v1.8.0
func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
func (*MsgUpdateParams) ValidateBasic ¶ added in v1.8.0
func (m *MsgUpdateParams) ValidateBasic() error
ValidateBasic executes sanity validation on the provided data
func (*MsgUpdateParams) XXX_DiscardUnknown ¶ added in v1.8.0
func (m *MsgUpdateParams) XXX_DiscardUnknown()
func (*MsgUpdateParams) XXX_Marshal ¶ added in v1.8.0
func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParams) XXX_Merge ¶ added in v1.8.0
func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
func (*MsgUpdateParams) XXX_Size ¶ added in v1.8.0
func (m *MsgUpdateParams) XXX_Size() int
func (*MsgUpdateParams) XXX_Unmarshal ¶ added in v1.8.0
func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v1.8.0
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.
Since: cosmos-sdk 0.47
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v1.8.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v1.8.0
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v1.8.0
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v1.8.0
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v1.8.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v1.8.0
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v1.8.0
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v1.8.0
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v1.8.0
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v1.8.0
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v1.8.0
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v1.8.0
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v1.8.0
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v1.8.0
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type Output ¶
type Output struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` Coin types.Coin `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin"` }
Output defines the properties of order's output
func (*Output) Descriptor ¶
func (*Output) MarshalToSizedBuffer ¶
func (*Output) ProtoMessage ¶
func (*Output) ProtoMessage()
func (*Output) XXX_DiscardUnknown ¶
func (m *Output) XXX_DiscardUnknown()
func (*Output) XXX_Marshal ¶
func (*Output) XXX_Unmarshal ¶
type Params ¶
type Params struct { Fee github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,1,opt,name=fee,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"fee"` PoolCreationFee types.Coin `protobuf:"bytes,2,opt,name=pool_creation_fee,json=poolCreationFee,proto3" json:"pool_creation_fee"` TaxRate github_com_cosmos_cosmos_sdk_types.Dec `protobuf:"bytes,3,opt,name=tax_rate,json=taxRate,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Dec" json:"tax_rate"` UnilateralLiquidityFee github_com_cosmos_cosmos_sdk_types.Dec `` /* 169-byte string literal not displayed */ }
Params defines token module's parameters
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns the default coinswap module parameters
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() exported.ParamSetPairs
ParamSetPairs implements paramtypes.KeyValuePairs
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Pool ¶ added in v1.5.0
type Pool struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // denom of base coin of the pool StandardDenom string `protobuf:"bytes,2,opt,name=standard_denom,json=standardDenom,proto3" json:"standard_denom,omitempty"` // denom of counterparty coin of the pool CounterpartyDenom string `protobuf:"bytes,3,opt,name=counterparty_denom,json=counterpartyDenom,proto3" json:"counterparty_denom,omitempty"` // escrow account for deposit tokens EscrowAddress string `protobuf:"bytes,4,opt,name=escrow_address,json=escrowAddress,proto3" json:"escrow_address,omitempty"` // denom of the liquidity pool coin LptDenom string `protobuf:"bytes,5,opt,name=lpt_denom,json=lptDenom,proto3" json:"lpt_denom,omitempty"` }
Pool defines the properties the liquidity pool
func (*Pool) Descriptor ¶ added in v1.5.0
func (*Pool) MarshalToSizedBuffer ¶ added in v1.5.0
func (*Pool) ProtoMessage ¶ added in v1.5.0
func (*Pool) ProtoMessage()
func (*Pool) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *Pool) XXX_DiscardUnknown()
func (*Pool) XXX_Marshal ¶ added in v1.5.0
func (*Pool) XXX_Unmarshal ¶ added in v1.5.0
type PoolInfo ¶ added in v1.5.0
type PoolInfo struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // escrow account for deposit tokens EscrowAddress string `protobuf:"bytes,2,opt,name=escrow_address,json=escrowAddress,proto3" json:"escrow_address,omitempty"` // main token balance Standard types.Coin `protobuf:"bytes,3,opt,name=standard,proto3" json:"standard"` // counterparty token balance Token types.Coin `protobuf:"bytes,4,opt,name=token,proto3" json:"token"` // liquidity token balance Lpt types.Coin `protobuf:"bytes,5,opt,name=lpt,proto3" json:"lpt"` // liquidity pool fee Fee string `protobuf:"bytes,6,opt,name=fee,proto3" json:"fee,omitempty"` }
PoolInfo defines the properties the liquidity pool
func (*PoolInfo) Descriptor ¶ added in v1.5.0
func (*PoolInfo) GetEscrowAddress ¶ added in v1.5.0
func (*PoolInfo) GetStandard ¶ added in v1.5.0
func (*PoolInfo) MarshalToSizedBuffer ¶ added in v1.5.0
func (*PoolInfo) ProtoMessage ¶ added in v1.5.0
func (*PoolInfo) ProtoMessage()
func (*PoolInfo) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *PoolInfo) XXX_DiscardUnknown()
func (*PoolInfo) XXX_Marshal ¶ added in v1.5.0
func (*PoolInfo) XXX_Unmarshal ¶ added in v1.5.0
type QueryClient ¶
type QueryClient interface { // LiquidityPool returns the liquidity pool for the provided lpt_denom LiquidityPool(ctx context.Context, in *QueryLiquidityPoolRequest, opts ...grpc.CallOption) (*QueryLiquidityPoolResponse, error) // LiquidityPools returns all the liquidity pools available LiquidityPools(ctx context.Context, in *QueryLiquidityPoolsRequest, opts ...grpc.CallOption) (*QueryLiquidityPoolsResponse, error) // Params queries the parameters of x/coinswap module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryLiquidityPoolRequest ¶ added in v1.5.0
type QueryLiquidityPoolRequest struct {
LptDenom string `protobuf:"bytes,1,opt,name=lpt_denom,json=lptDenom,proto3" json:"lpt_denom,omitempty"`
}
QueryLiquidityPoolRequest is request type for the Query/LiquidityPool RPC method
func (*QueryLiquidityPoolRequest) Descriptor ¶ added in v1.5.0
func (*QueryLiquidityPoolRequest) Descriptor() ([]byte, []int)
func (*QueryLiquidityPoolRequest) GetLptDenom ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) GetLptDenom() string
func (*QueryLiquidityPoolRequest) Marshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) Marshal() (dAtA []byte, err error)
func (*QueryLiquidityPoolRequest) MarshalTo ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryLiquidityPoolRequest) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLiquidityPoolRequest) ProtoMessage ¶ added in v1.5.0
func (*QueryLiquidityPoolRequest) ProtoMessage()
func (*QueryLiquidityPoolRequest) Reset ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) Reset()
func (*QueryLiquidityPoolRequest) Size ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) Size() (n int)
func (*QueryLiquidityPoolRequest) String ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) String() string
func (*QueryLiquidityPoolRequest) Unmarshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) Unmarshal(dAtA []byte) error
func (*QueryLiquidityPoolRequest) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) XXX_DiscardUnknown()
func (*QueryLiquidityPoolRequest) XXX_Marshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLiquidityPoolRequest) XXX_Merge ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) XXX_Merge(src proto.Message)
func (*QueryLiquidityPoolRequest) XXX_Size ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) XXX_Size() int
func (*QueryLiquidityPoolRequest) XXX_Unmarshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolRequest) XXX_Unmarshal(b []byte) error
type QueryLiquidityPoolResponse ¶ added in v1.5.0
type QueryLiquidityPoolResponse struct {
Pool PoolInfo `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool"`
}
QueryLiquidityPoolResponse is response type for the Query/LiquidityPool RPC method
func (*QueryLiquidityPoolResponse) Descriptor ¶ added in v1.5.0
func (*QueryLiquidityPoolResponse) Descriptor() ([]byte, []int)
func (*QueryLiquidityPoolResponse) GetPool ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) GetPool() PoolInfo
func (*QueryLiquidityPoolResponse) Marshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) Marshal() (dAtA []byte, err error)
func (*QueryLiquidityPoolResponse) MarshalTo ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryLiquidityPoolResponse) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLiquidityPoolResponse) ProtoMessage ¶ added in v1.5.0
func (*QueryLiquidityPoolResponse) ProtoMessage()
func (*QueryLiquidityPoolResponse) Reset ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) Reset()
func (*QueryLiquidityPoolResponse) Size ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) Size() (n int)
func (*QueryLiquidityPoolResponse) String ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) String() string
func (*QueryLiquidityPoolResponse) Unmarshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) Unmarshal(dAtA []byte) error
func (*QueryLiquidityPoolResponse) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) XXX_DiscardUnknown()
func (*QueryLiquidityPoolResponse) XXX_Marshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLiquidityPoolResponse) XXX_Merge ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) XXX_Merge(src proto.Message)
func (*QueryLiquidityPoolResponse) XXX_Size ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) XXX_Size() int
func (*QueryLiquidityPoolResponse) XXX_Unmarshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolResponse) XXX_Unmarshal(b []byte) error
type QueryLiquidityPoolsRequest ¶ added in v1.5.0
type QueryLiquidityPoolsRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryLiquidityPoolsRequest is request type for the Query/LiquidityPools RPC method
func (*QueryLiquidityPoolsRequest) Descriptor ¶ added in v1.5.0
func (*QueryLiquidityPoolsRequest) Descriptor() ([]byte, []int)
func (*QueryLiquidityPoolsRequest) GetPagination ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) GetPagination() *query.PageRequest
func (*QueryLiquidityPoolsRequest) Marshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) Marshal() (dAtA []byte, err error)
func (*QueryLiquidityPoolsRequest) MarshalTo ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryLiquidityPoolsRequest) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLiquidityPoolsRequest) ProtoMessage ¶ added in v1.5.0
func (*QueryLiquidityPoolsRequest) ProtoMessage()
func (*QueryLiquidityPoolsRequest) Reset ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) Reset()
func (*QueryLiquidityPoolsRequest) Size ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) Size() (n int)
func (*QueryLiquidityPoolsRequest) String ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) String() string
func (*QueryLiquidityPoolsRequest) Unmarshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) Unmarshal(dAtA []byte) error
func (*QueryLiquidityPoolsRequest) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) XXX_DiscardUnknown()
func (*QueryLiquidityPoolsRequest) XXX_Marshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLiquidityPoolsRequest) XXX_Merge ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) XXX_Merge(src proto.Message)
func (*QueryLiquidityPoolsRequest) XXX_Size ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) XXX_Size() int
func (*QueryLiquidityPoolsRequest) XXX_Unmarshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolsRequest) XXX_Unmarshal(b []byte) error
type QueryLiquidityPoolsResponse ¶ added in v1.5.0
type QueryLiquidityPoolsResponse struct { Pools []PoolInfo `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryLiquidityPoolsResponse is response type for the Query/LiquidityPools RPC method
func (*QueryLiquidityPoolsResponse) Descriptor ¶ added in v1.5.0
func (*QueryLiquidityPoolsResponse) Descriptor() ([]byte, []int)
func (*QueryLiquidityPoolsResponse) GetPagination ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) GetPagination() *query.PageResponse
func (*QueryLiquidityPoolsResponse) GetPools ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) GetPools() []PoolInfo
func (*QueryLiquidityPoolsResponse) Marshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) Marshal() (dAtA []byte, err error)
func (*QueryLiquidityPoolsResponse) MarshalTo ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryLiquidityPoolsResponse) MarshalToSizedBuffer ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLiquidityPoolsResponse) ProtoMessage ¶ added in v1.5.0
func (*QueryLiquidityPoolsResponse) ProtoMessage()
func (*QueryLiquidityPoolsResponse) Reset ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) Reset()
func (*QueryLiquidityPoolsResponse) Size ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) Size() (n int)
func (*QueryLiquidityPoolsResponse) String ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) String() string
func (*QueryLiquidityPoolsResponse) Unmarshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) Unmarshal(dAtA []byte) error
func (*QueryLiquidityPoolsResponse) XXX_DiscardUnknown ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) XXX_DiscardUnknown()
func (*QueryLiquidityPoolsResponse) XXX_Marshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLiquidityPoolsResponse) XXX_Merge ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) XXX_Merge(src proto.Message)
func (*QueryLiquidityPoolsResponse) XXX_Size ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) XXX_Size() int
func (*QueryLiquidityPoolsResponse) XXX_Unmarshal ¶ added in v1.5.0
func (m *QueryLiquidityPoolsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶ added in v1.8.0
type QueryParamsRequest struct { }
QueryParamsRequest defines the request type for querying x/coinswap parameters.
func (*QueryParamsRequest) Descriptor ¶ added in v1.8.0
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v1.8.0
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v1.8.0
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v1.8.0
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v1.8.0
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v1.8.0
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v1.8.0
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v1.8.0
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v1.8.0
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v1.8.0
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v1.8.0
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v1.8.0
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v1.8.0
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v1.8.0
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v1.8.0
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParamsResponse defines the response type for querying x/coinswap parameters.
func (*QueryParamsResponse) Descriptor ¶ added in v1.8.0
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v1.8.0
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v1.8.0
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v1.8.0
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v1.8.0
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v1.8.0
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v1.8.0
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v1.8.0
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v1.8.0
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v1.8.0
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v1.8.0
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v1.8.0
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v1.8.0
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v1.8.0
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v1.8.0
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // LiquidityPool returns the liquidity pool for the provided lpt_denom LiquidityPool(context.Context, *QueryLiquidityPoolRequest) (*QueryLiquidityPoolResponse, error) // LiquidityPools returns all the liquidity pools available LiquidityPools(context.Context, *QueryLiquidityPoolsRequest) (*QueryLiquidityPoolsResponse, error) // Params queries the parameters of x/coinswap module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶ added in v1.2.0
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddLiquidity ¶ added in v1.2.0
func (*UnimplementedMsgServer) AddLiquidity(ctx context.Context, req *MsgAddLiquidity) (*MsgAddLiquidityResponse, error)
func (*UnimplementedMsgServer) AddUnilateralLiquidity ¶ added in v1.7.0
func (*UnimplementedMsgServer) AddUnilateralLiquidity(ctx context.Context, req *MsgAddUnilateralLiquidity) (*MsgAddUnilateralLiquidityResponse, error)
func (*UnimplementedMsgServer) RemoveLiquidity ¶ added in v1.2.0
func (*UnimplementedMsgServer) RemoveLiquidity(ctx context.Context, req *MsgRemoveLiquidity) (*MsgRemoveLiquidityResponse, error)
func (*UnimplementedMsgServer) RemoveUnilateralLiquidity ¶ added in v1.7.0
func (*UnimplementedMsgServer) RemoveUnilateralLiquidity(ctx context.Context, req *MsgRemoveUnilateralLiquidity) (*MsgRemoveUnilateralLiquidityResponse, error)
func (*UnimplementedMsgServer) SwapCoin ¶ added in v1.2.0
func (*UnimplementedMsgServer) SwapCoin(ctx context.Context, req *MsgSwapOrder) (*MsgSwapCoinResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v1.8.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) LiquidityPool ¶ added in v1.5.0
func (*UnimplementedQueryServer) LiquidityPool(ctx context.Context, req *QueryLiquidityPoolRequest) (*QueryLiquidityPoolResponse, error)
func (*UnimplementedQueryServer) LiquidityPools ¶ added in v1.5.0
func (*UnimplementedQueryServer) LiquidityPools(ctx context.Context, req *QueryLiquidityPoolsRequest) (*QueryLiquidityPoolsResponse, error)
func (*UnimplementedQueryServer) Params ¶ added in v1.8.0
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)