Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetDenomPrefix(denom string) []byte
- func GetKeyPrefixPools(poolId uint64) []byte
- func GetPoolShareDenom(poolId uint64) string
- func MustGetPoolIdFromShareDenom(denom string) uint64
- func NewPoolAddress(poolId uint64) sdk.AccAddress
- func ParamKeyTable() paramtypes.KeyTable
- 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 ValidateFutureGovernor(governor string) error
- func ValidatePoolShareDenom(denom string) error
- type AccountKeeper
- type BankKeeper
- type CommunityPoolKeeper
- type CreatePoolMsg
- type GammHooks
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetNextPoolNumber() uint64
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPools() []*types1.Any
- 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 LiquidityChangeMsg
- type LiquidityChangeType
- type MsgClient
- type MsgExitPool
- func (*MsgExitPool) Descriptor() ([]byte, []int)
- func (m *MsgExitPool) GetPoolId() uint64
- func (m *MsgExitPool) GetSender() string
- func (msg MsgExitPool) GetSignBytes() []byte
- func (msg MsgExitPool) GetSigners() []sdk.AccAddress
- func (m *MsgExitPool) GetTokenOutMins() []types.Coin
- func (msg MsgExitPool) LiquidityChangeType() LiquidityChangeType
- func (m *MsgExitPool) Marshal() (dAtA []byte, err error)
- func (m *MsgExitPool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExitPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExitPool) ProtoMessage()
- func (m *MsgExitPool) Reset()
- func (msg MsgExitPool) Route() string
- func (m *MsgExitPool) Size() (n int)
- func (m *MsgExitPool) String() string
- func (msg MsgExitPool) Type() string
- func (m *MsgExitPool) Unmarshal(dAtA []byte) error
- func (msg MsgExitPool) ValidateBasic() error
- func (m *MsgExitPool) XXX_DiscardUnknown()
- func (m *MsgExitPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExitPool) XXX_Merge(src proto.Message)
- func (m *MsgExitPool) XXX_Size() int
- func (m *MsgExitPool) XXX_Unmarshal(b []byte) error
- type MsgExitPoolResponse
- func (*MsgExitPoolResponse) Descriptor() ([]byte, []int)
- func (m *MsgExitPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgExitPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExitPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExitPoolResponse) ProtoMessage()
- func (m *MsgExitPoolResponse) Reset()
- func (m *MsgExitPoolResponse) Size() (n int)
- func (m *MsgExitPoolResponse) String() string
- func (m *MsgExitPoolResponse) Unmarshal(dAtA []byte) error
- func (m *MsgExitPoolResponse) XXX_DiscardUnknown()
- func (m *MsgExitPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExitPoolResponse) XXX_Merge(src proto.Message)
- func (m *MsgExitPoolResponse) XXX_Size() int
- func (m *MsgExitPoolResponse) XXX_Unmarshal(b []byte) error
- type MsgExitSwapExternAmountOut
- func (*MsgExitSwapExternAmountOut) Descriptor() ([]byte, []int)
- func (m *MsgExitSwapExternAmountOut) GetPoolId() uint64
- func (m *MsgExitSwapExternAmountOut) GetSender() string
- func (msg MsgExitSwapExternAmountOut) GetSignBytes() []byte
- func (msg MsgExitSwapExternAmountOut) GetSigners() []sdk.AccAddress
- func (m *MsgExitSwapExternAmountOut) GetTokenOut() types.Coin
- func (msg MsgExitSwapExternAmountOut) LiquidityChangeType() LiquidityChangeType
- func (m *MsgExitSwapExternAmountOut) Marshal() (dAtA []byte, err error)
- func (m *MsgExitSwapExternAmountOut) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExitSwapExternAmountOut) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExitSwapExternAmountOut) ProtoMessage()
- func (m *MsgExitSwapExternAmountOut) Reset()
- func (msg MsgExitSwapExternAmountOut) Route() string
- func (m *MsgExitSwapExternAmountOut) Size() (n int)
- func (m *MsgExitSwapExternAmountOut) String() string
- func (msg MsgExitSwapExternAmountOut) Type() string
- func (m *MsgExitSwapExternAmountOut) Unmarshal(dAtA []byte) error
- func (msg MsgExitSwapExternAmountOut) ValidateBasic() error
- func (m *MsgExitSwapExternAmountOut) XXX_DiscardUnknown()
- func (m *MsgExitSwapExternAmountOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExitSwapExternAmountOut) XXX_Merge(src proto.Message)
- func (m *MsgExitSwapExternAmountOut) XXX_Size() int
- func (m *MsgExitSwapExternAmountOut) XXX_Unmarshal(b []byte) error
- type MsgExitSwapExternAmountOutResponse
- func (*MsgExitSwapExternAmountOutResponse) Descriptor() ([]byte, []int)
- func (m *MsgExitSwapExternAmountOutResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgExitSwapExternAmountOutResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExitSwapExternAmountOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExitSwapExternAmountOutResponse) ProtoMessage()
- func (m *MsgExitSwapExternAmountOutResponse) Reset()
- func (m *MsgExitSwapExternAmountOutResponse) Size() (n int)
- func (m *MsgExitSwapExternAmountOutResponse) String() string
- func (m *MsgExitSwapExternAmountOutResponse) Unmarshal(dAtA []byte) error
- func (m *MsgExitSwapExternAmountOutResponse) XXX_DiscardUnknown()
- func (m *MsgExitSwapExternAmountOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExitSwapExternAmountOutResponse) XXX_Merge(src proto.Message)
- func (m *MsgExitSwapExternAmountOutResponse) XXX_Size() int
- func (m *MsgExitSwapExternAmountOutResponse) XXX_Unmarshal(b []byte) error
- type MsgExitSwapShareAmountIn
- func (*MsgExitSwapShareAmountIn) Descriptor() ([]byte, []int)
- func (m *MsgExitSwapShareAmountIn) GetPoolId() uint64
- func (m *MsgExitSwapShareAmountIn) GetSender() string
- func (msg MsgExitSwapShareAmountIn) GetSignBytes() []byte
- func (msg MsgExitSwapShareAmountIn) GetSigners() []sdk.AccAddress
- func (m *MsgExitSwapShareAmountIn) GetTokenOutDenom() string
- func (msg MsgExitSwapShareAmountIn) LiquidityChangeType() LiquidityChangeType
- func (m *MsgExitSwapShareAmountIn) Marshal() (dAtA []byte, err error)
- func (m *MsgExitSwapShareAmountIn) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExitSwapShareAmountIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExitSwapShareAmountIn) ProtoMessage()
- func (m *MsgExitSwapShareAmountIn) Reset()
- func (msg MsgExitSwapShareAmountIn) Route() string
- func (m *MsgExitSwapShareAmountIn) Size() (n int)
- func (m *MsgExitSwapShareAmountIn) String() string
- func (msg MsgExitSwapShareAmountIn) Type() string
- func (m *MsgExitSwapShareAmountIn) Unmarshal(dAtA []byte) error
- func (msg MsgExitSwapShareAmountIn) ValidateBasic() error
- func (m *MsgExitSwapShareAmountIn) XXX_DiscardUnknown()
- func (m *MsgExitSwapShareAmountIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExitSwapShareAmountIn) XXX_Merge(src proto.Message)
- func (m *MsgExitSwapShareAmountIn) XXX_Size() int
- func (m *MsgExitSwapShareAmountIn) XXX_Unmarshal(b []byte) error
- type MsgExitSwapShareAmountInResponse
- func (*MsgExitSwapShareAmountInResponse) Descriptor() ([]byte, []int)
- func (m *MsgExitSwapShareAmountInResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgExitSwapShareAmountInResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgExitSwapShareAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgExitSwapShareAmountInResponse) ProtoMessage()
- func (m *MsgExitSwapShareAmountInResponse) Reset()
- func (m *MsgExitSwapShareAmountInResponse) Size() (n int)
- func (m *MsgExitSwapShareAmountInResponse) String() string
- func (m *MsgExitSwapShareAmountInResponse) Unmarshal(dAtA []byte) error
- func (m *MsgExitSwapShareAmountInResponse) XXX_DiscardUnknown()
- func (m *MsgExitSwapShareAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgExitSwapShareAmountInResponse) XXX_Merge(src proto.Message)
- func (m *MsgExitSwapShareAmountInResponse) XXX_Size() int
- func (m *MsgExitSwapShareAmountInResponse) XXX_Unmarshal(b []byte) error
- type MsgJoinPool
- func (*MsgJoinPool) Descriptor() ([]byte, []int)
- func (m *MsgJoinPool) GetPoolId() uint64
- func (m *MsgJoinPool) GetSender() string
- func (msg MsgJoinPool) GetSignBytes() []byte
- func (msg MsgJoinPool) GetSigners() []sdk.AccAddress
- func (m *MsgJoinPool) GetTokenInMaxs() []types.Coin
- func (msg MsgJoinPool) LiquidityChangeType() LiquidityChangeType
- func (m *MsgJoinPool) Marshal() (dAtA []byte, err error)
- func (m *MsgJoinPool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgJoinPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgJoinPool) ProtoMessage()
- func (m *MsgJoinPool) Reset()
- func (msg MsgJoinPool) Route() string
- func (m *MsgJoinPool) Size() (n int)
- func (m *MsgJoinPool) String() string
- func (msg MsgJoinPool) Type() string
- func (m *MsgJoinPool) Unmarshal(dAtA []byte) error
- func (msg MsgJoinPool) ValidateBasic() error
- func (m *MsgJoinPool) XXX_DiscardUnknown()
- func (m *MsgJoinPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgJoinPool) XXX_Merge(src proto.Message)
- func (m *MsgJoinPool) XXX_Size() int
- func (m *MsgJoinPool) XXX_Unmarshal(b []byte) error
- type MsgJoinPoolResponse
- func (*MsgJoinPoolResponse) Descriptor() ([]byte, []int)
- func (m *MsgJoinPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgJoinPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgJoinPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgJoinPoolResponse) ProtoMessage()
- func (m *MsgJoinPoolResponse) Reset()
- func (m *MsgJoinPoolResponse) Size() (n int)
- func (m *MsgJoinPoolResponse) String() string
- func (m *MsgJoinPoolResponse) Unmarshal(dAtA []byte) error
- func (m *MsgJoinPoolResponse) XXX_DiscardUnknown()
- func (m *MsgJoinPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgJoinPoolResponse) XXX_Merge(src proto.Message)
- func (m *MsgJoinPoolResponse) XXX_Size() int
- func (m *MsgJoinPoolResponse) XXX_Unmarshal(b []byte) error
- type MsgJoinSwapExternAmountIn
- func (*MsgJoinSwapExternAmountIn) Descriptor() ([]byte, []int)
- func (m *MsgJoinSwapExternAmountIn) GetPoolId() uint64
- func (m *MsgJoinSwapExternAmountIn) GetSender() string
- func (msg MsgJoinSwapExternAmountIn) GetSignBytes() []byte
- func (msg MsgJoinSwapExternAmountIn) GetSigners() []sdk.AccAddress
- func (m *MsgJoinSwapExternAmountIn) GetTokenIn() types.Coin
- func (msg MsgJoinSwapExternAmountIn) LiquidityChangeType() LiquidityChangeType
- func (m *MsgJoinSwapExternAmountIn) Marshal() (dAtA []byte, err error)
- func (m *MsgJoinSwapExternAmountIn) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgJoinSwapExternAmountIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgJoinSwapExternAmountIn) ProtoMessage()
- func (m *MsgJoinSwapExternAmountIn) Reset()
- func (msg MsgJoinSwapExternAmountIn) Route() string
- func (m *MsgJoinSwapExternAmountIn) Size() (n int)
- func (m *MsgJoinSwapExternAmountIn) String() string
- func (msg MsgJoinSwapExternAmountIn) Type() string
- func (m *MsgJoinSwapExternAmountIn) Unmarshal(dAtA []byte) error
- func (msg MsgJoinSwapExternAmountIn) ValidateBasic() error
- func (m *MsgJoinSwapExternAmountIn) XXX_DiscardUnknown()
- func (m *MsgJoinSwapExternAmountIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgJoinSwapExternAmountIn) XXX_Merge(src proto.Message)
- func (m *MsgJoinSwapExternAmountIn) XXX_Size() int
- func (m *MsgJoinSwapExternAmountIn) XXX_Unmarshal(b []byte) error
- type MsgJoinSwapExternAmountInResponse
- func (*MsgJoinSwapExternAmountInResponse) Descriptor() ([]byte, []int)
- func (m *MsgJoinSwapExternAmountInResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgJoinSwapExternAmountInResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgJoinSwapExternAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgJoinSwapExternAmountInResponse) ProtoMessage()
- func (m *MsgJoinSwapExternAmountInResponse) Reset()
- func (m *MsgJoinSwapExternAmountInResponse) Size() (n int)
- func (m *MsgJoinSwapExternAmountInResponse) String() string
- func (m *MsgJoinSwapExternAmountInResponse) Unmarshal(dAtA []byte) error
- func (m *MsgJoinSwapExternAmountInResponse) XXX_DiscardUnknown()
- func (m *MsgJoinSwapExternAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgJoinSwapExternAmountInResponse) XXX_Merge(src proto.Message)
- func (m *MsgJoinSwapExternAmountInResponse) XXX_Size() int
- func (m *MsgJoinSwapExternAmountInResponse) XXX_Unmarshal(b []byte) error
- type MsgJoinSwapShareAmountOut
- func (*MsgJoinSwapShareAmountOut) Descriptor() ([]byte, []int)
- func (m *MsgJoinSwapShareAmountOut) GetPoolId() uint64
- func (m *MsgJoinSwapShareAmountOut) GetSender() string
- func (msg MsgJoinSwapShareAmountOut) GetSignBytes() []byte
- func (msg MsgJoinSwapShareAmountOut) GetSigners() []sdk.AccAddress
- func (m *MsgJoinSwapShareAmountOut) GetTokenInDenom() string
- func (msg MsgJoinSwapShareAmountOut) LiquidityChangeType() LiquidityChangeType
- func (m *MsgJoinSwapShareAmountOut) Marshal() (dAtA []byte, err error)
- func (m *MsgJoinSwapShareAmountOut) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgJoinSwapShareAmountOut) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgJoinSwapShareAmountOut) ProtoMessage()
- func (m *MsgJoinSwapShareAmountOut) Reset()
- func (msg MsgJoinSwapShareAmountOut) Route() string
- func (m *MsgJoinSwapShareAmountOut) Size() (n int)
- func (m *MsgJoinSwapShareAmountOut) String() string
- func (msg MsgJoinSwapShareAmountOut) Type() string
- func (m *MsgJoinSwapShareAmountOut) Unmarshal(dAtA []byte) error
- func (msg MsgJoinSwapShareAmountOut) ValidateBasic() error
- func (m *MsgJoinSwapShareAmountOut) XXX_DiscardUnknown()
- func (m *MsgJoinSwapShareAmountOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgJoinSwapShareAmountOut) XXX_Merge(src proto.Message)
- func (m *MsgJoinSwapShareAmountOut) XXX_Size() int
- func (m *MsgJoinSwapShareAmountOut) XXX_Unmarshal(b []byte) error
- type MsgJoinSwapShareAmountOutResponse
- func (*MsgJoinSwapShareAmountOutResponse) Descriptor() ([]byte, []int)
- func (m *MsgJoinSwapShareAmountOutResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgJoinSwapShareAmountOutResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgJoinSwapShareAmountOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgJoinSwapShareAmountOutResponse) ProtoMessage()
- func (m *MsgJoinSwapShareAmountOutResponse) Reset()
- func (m *MsgJoinSwapShareAmountOutResponse) Size() (n int)
- func (m *MsgJoinSwapShareAmountOutResponse) String() string
- func (m *MsgJoinSwapShareAmountOutResponse) Unmarshal(dAtA []byte) error
- func (m *MsgJoinSwapShareAmountOutResponse) XXX_DiscardUnknown()
- func (m *MsgJoinSwapShareAmountOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgJoinSwapShareAmountOutResponse) XXX_Merge(src proto.Message)
- func (m *MsgJoinSwapShareAmountOutResponse) XXX_Size() int
- func (m *MsgJoinSwapShareAmountOutResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSwapExactAmountIn
- func (*MsgSwapExactAmountIn) Descriptor() ([]byte, []int)
- func (m *MsgSwapExactAmountIn) GetRoutes() []SwapAmountInRoute
- func (m *MsgSwapExactAmountIn) GetSender() string
- func (msg MsgSwapExactAmountIn) GetSignBytes() []byte
- func (msg MsgSwapExactAmountIn) GetSigners() []sdk.AccAddress
- func (m *MsgSwapExactAmountIn) GetTokenIn() types.Coin
- func (m *MsgSwapExactAmountIn) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapExactAmountIn) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapExactAmountIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapExactAmountIn) ProtoMessage()
- func (m *MsgSwapExactAmountIn) Reset()
- func (msg MsgSwapExactAmountIn) Route() string
- func (m *MsgSwapExactAmountIn) Size() (n int)
- func (m *MsgSwapExactAmountIn) String() string
- func (msg MsgSwapExactAmountIn) TokenDenomsOnPath() []string
- func (msg MsgSwapExactAmountIn) TokenInDenom() string
- func (msg MsgSwapExactAmountIn) TokenOutDenom() string
- func (msg MsgSwapExactAmountIn) Type() string
- func (m *MsgSwapExactAmountIn) Unmarshal(dAtA []byte) error
- func (msg MsgSwapExactAmountIn) ValidateBasic() error
- func (m *MsgSwapExactAmountIn) XXX_DiscardUnknown()
- func (m *MsgSwapExactAmountIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapExactAmountIn) XXX_Merge(src proto.Message)
- func (m *MsgSwapExactAmountIn) XXX_Size() int
- func (m *MsgSwapExactAmountIn) XXX_Unmarshal(b []byte) error
- type MsgSwapExactAmountInResponse
- func (*MsgSwapExactAmountInResponse) Descriptor() ([]byte, []int)
- func (m *MsgSwapExactAmountInResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapExactAmountInResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapExactAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapExactAmountInResponse) ProtoMessage()
- func (m *MsgSwapExactAmountInResponse) Reset()
- func (m *MsgSwapExactAmountInResponse) Size() (n int)
- func (m *MsgSwapExactAmountInResponse) String() string
- func (m *MsgSwapExactAmountInResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSwapExactAmountInResponse) XXX_DiscardUnknown()
- func (m *MsgSwapExactAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapExactAmountInResponse) XXX_Merge(src proto.Message)
- func (m *MsgSwapExactAmountInResponse) XXX_Size() int
- func (m *MsgSwapExactAmountInResponse) XXX_Unmarshal(b []byte) error
- type MsgSwapExactAmountOut
- func (*MsgSwapExactAmountOut) Descriptor() ([]byte, []int)
- func (m *MsgSwapExactAmountOut) GetRoutes() []SwapAmountOutRoute
- func (m *MsgSwapExactAmountOut) GetSender() string
- func (msg MsgSwapExactAmountOut) GetSignBytes() []byte
- func (msg MsgSwapExactAmountOut) GetSigners() []sdk.AccAddress
- func (m *MsgSwapExactAmountOut) GetTokenOut() types.Coin
- func (m *MsgSwapExactAmountOut) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapExactAmountOut) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapExactAmountOut) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapExactAmountOut) ProtoMessage()
- func (m *MsgSwapExactAmountOut) Reset()
- func (msg MsgSwapExactAmountOut) Route() string
- func (m *MsgSwapExactAmountOut) Size() (n int)
- func (m *MsgSwapExactAmountOut) String() string
- func (msg MsgSwapExactAmountOut) TokenDenomsOnPath() []string
- func (msg MsgSwapExactAmountOut) TokenInDenom() string
- func (msg MsgSwapExactAmountOut) TokenOutDenom() string
- func (msg MsgSwapExactAmountOut) Type() string
- func (m *MsgSwapExactAmountOut) Unmarshal(dAtA []byte) error
- func (msg MsgSwapExactAmountOut) ValidateBasic() error
- func (m *MsgSwapExactAmountOut) XXX_DiscardUnknown()
- func (m *MsgSwapExactAmountOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapExactAmountOut) XXX_Merge(src proto.Message)
- func (m *MsgSwapExactAmountOut) XXX_Size() int
- func (m *MsgSwapExactAmountOut) XXX_Unmarshal(b []byte) error
- type MsgSwapExactAmountOutResponse
- func (*MsgSwapExactAmountOutResponse) Descriptor() ([]byte, []int)
- func (m *MsgSwapExactAmountOutResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapExactAmountOutResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapExactAmountOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapExactAmountOutResponse) ProtoMessage()
- func (m *MsgSwapExactAmountOutResponse) Reset()
- func (m *MsgSwapExactAmountOutResponse) Size() (n int)
- func (m *MsgSwapExactAmountOutResponse) String() string
- func (m *MsgSwapExactAmountOutResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSwapExactAmountOutResponse) XXX_DiscardUnknown()
- func (m *MsgSwapExactAmountOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapExactAmountOutResponse) XXX_Merge(src proto.Message)
- func (m *MsgSwapExactAmountOutResponse) XXX_Size() int
- func (m *MsgSwapExactAmountOutResponse) XXX_Unmarshal(b []byte) error
- type MultiGammHooks
- func (h MultiGammHooks) AfterExitPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, shareInAmount sdk.Int, ...)
- func (h MultiGammHooks) AfterJoinPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, enterCoins sdk.Coins, ...)
- func (h MultiGammHooks) AfterPoolCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)
- func (h MultiGammHooks) AfterSwap(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, input sdk.Coins, ...)
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetPoolCreationFee() github_com_cosmos_cosmos_sdk_types.Coins
- 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 (m *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 PoolAmountOutExtension
- type PoolI
- type QueryClient
- type QueryNumPoolsRequest
- func (*QueryNumPoolsRequest) Descriptor() ([]byte, []int)
- func (m *QueryNumPoolsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryNumPoolsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNumPoolsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNumPoolsRequest) ProtoMessage()
- func (m *QueryNumPoolsRequest) Reset()
- func (m *QueryNumPoolsRequest) Size() (n int)
- func (m *QueryNumPoolsRequest) String() string
- func (m *QueryNumPoolsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryNumPoolsRequest) XXX_DiscardUnknown()
- func (m *QueryNumPoolsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNumPoolsRequest) XXX_Merge(src proto.Message)
- func (m *QueryNumPoolsRequest) XXX_Size() int
- func (m *QueryNumPoolsRequest) XXX_Unmarshal(b []byte) error
- type QueryNumPoolsResponse
- func (*QueryNumPoolsResponse) Descriptor() ([]byte, []int)
- func (m *QueryNumPoolsResponse) GetNumPools() uint64
- func (m *QueryNumPoolsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryNumPoolsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryNumPoolsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryNumPoolsResponse) ProtoMessage()
- func (m *QueryNumPoolsResponse) Reset()
- func (m *QueryNumPoolsResponse) Size() (n int)
- func (m *QueryNumPoolsResponse) String() string
- func (m *QueryNumPoolsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryNumPoolsResponse) XXX_DiscardUnknown()
- func (m *QueryNumPoolsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryNumPoolsResponse) XXX_Merge(src proto.Message)
- func (m *QueryNumPoolsResponse) XXX_Size() int
- func (m *QueryNumPoolsResponse) XXX_Unmarshal(b []byte) error
- type QueryPoolParamsRequest
- func (*QueryPoolParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPoolParamsRequest) GetPoolId() uint64
- func (m *QueryPoolParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolParamsRequest) ProtoMessage()
- func (m *QueryPoolParamsRequest) Reset()
- func (m *QueryPoolParamsRequest) Size() (n int)
- func (m *QueryPoolParamsRequest) String() string
- func (m *QueryPoolParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPoolParamsRequest) XXX_DiscardUnknown()
- func (m *QueryPoolParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPoolParamsRequest) XXX_Size() int
- func (m *QueryPoolParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryPoolParamsResponse
- func (*QueryPoolParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPoolParamsResponse) GetParams() *types.Any
- func (m *QueryPoolParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolParamsResponse) ProtoMessage()
- func (m *QueryPoolParamsResponse) Reset()
- func (m *QueryPoolParamsResponse) Size() (n int)
- func (m *QueryPoolParamsResponse) String() string
- func (m *QueryPoolParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPoolParamsResponse) XXX_DiscardUnknown()
- func (m *QueryPoolParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPoolParamsResponse) XXX_Size() int
- func (m *QueryPoolParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryPoolRequest
- func (*QueryPoolRequest) Descriptor() ([]byte, []int)
- func (m *QueryPoolRequest) GetPoolId() uint64
- func (m *QueryPoolRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolRequest) ProtoMessage()
- func (m *QueryPoolRequest) Reset()
- func (m *QueryPoolRequest) Size() (n int)
- func (m *QueryPoolRequest) String() string
- func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPoolRequest) XXX_DiscardUnknown()
- func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolRequest) XXX_Merge(src proto.Message)
- func (m *QueryPoolRequest) XXX_Size() int
- func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error
- type QueryPoolResponse
- func (*QueryPoolResponse) Descriptor() ([]byte, []int)
- func (m *QueryPoolResponse) GetPool() *types.Any
- func (m *QueryPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolResponse) ProtoMessage()
- func (m *QueryPoolResponse) Reset()
- func (m *QueryPoolResponse) Size() (n int)
- func (m *QueryPoolResponse) String() string
- func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPoolResponse) XXX_DiscardUnknown()
- func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolResponse) XXX_Merge(src proto.Message)
- func (m *QueryPoolResponse) XXX_Size() int
- func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error
- type QueryPoolsRequest
- func (*QueryPoolsRequest) Descriptor() ([]byte, []int)
- func (m *QueryPoolsRequest) GetPagination() *query.PageRequest
- func (m *QueryPoolsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolsRequest) ProtoMessage()
- func (m *QueryPoolsRequest) Reset()
- func (m *QueryPoolsRequest) Size() (n int)
- func (m *QueryPoolsRequest) String() string
- func (m *QueryPoolsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryPoolsRequest) XXX_DiscardUnknown()
- func (m *QueryPoolsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolsRequest) XXX_Merge(src proto.Message)
- func (m *QueryPoolsRequest) XXX_Size() int
- func (m *QueryPoolsRequest) XXX_Unmarshal(b []byte) error
- type QueryPoolsResponse
- func (*QueryPoolsResponse) Descriptor() ([]byte, []int)
- func (m *QueryPoolsResponse) GetPagination() *query.PageResponse
- func (m *QueryPoolsResponse) GetPools() []*types.Any
- func (m *QueryPoolsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryPoolsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryPoolsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryPoolsResponse) ProtoMessage()
- func (m *QueryPoolsResponse) Reset()
- func (m *QueryPoolsResponse) Size() (n int)
- func (m *QueryPoolsResponse) String() string
- func (m *QueryPoolsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryPoolsResponse) XXX_DiscardUnknown()
- func (m *QueryPoolsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryPoolsResponse) XXX_Merge(src proto.Message)
- func (m *QueryPoolsResponse) XXX_Size() int
- func (m *QueryPoolsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySpotPriceRequest
- func (*QuerySpotPriceRequest) Descriptor() ([]byte, []int)
- func (m *QuerySpotPriceRequest) GetBaseAssetDenom() string
- func (m *QuerySpotPriceRequest) GetPoolId() uint64
- func (m *QuerySpotPriceRequest) GetQuoteAssetDenom() string
- func (m *QuerySpotPriceRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySpotPriceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySpotPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySpotPriceRequest) ProtoMessage()
- func (m *QuerySpotPriceRequest) Reset()
- func (m *QuerySpotPriceRequest) Size() (n int)
- func (m *QuerySpotPriceRequest) String() string
- func (m *QuerySpotPriceRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySpotPriceRequest) XXX_DiscardUnknown()
- func (m *QuerySpotPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySpotPriceRequest) XXX_Merge(src proto.Message)
- func (m *QuerySpotPriceRequest) XXX_Size() int
- func (m *QuerySpotPriceRequest) XXX_Unmarshal(b []byte) error
- type QuerySpotPriceResponse
- func (*QuerySpotPriceResponse) Descriptor() ([]byte, []int)
- func (m *QuerySpotPriceResponse) GetSpotPrice() string
- func (m *QuerySpotPriceResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySpotPriceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySpotPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySpotPriceResponse) ProtoMessage()
- func (m *QuerySpotPriceResponse) Reset()
- func (m *QuerySpotPriceResponse) Size() (n int)
- func (m *QuerySpotPriceResponse) String() string
- func (m *QuerySpotPriceResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySpotPriceResponse) XXX_DiscardUnknown()
- func (m *QuerySpotPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySpotPriceResponse) XXX_Merge(src proto.Message)
- func (m *QuerySpotPriceResponse) XXX_Size() int
- func (m *QuerySpotPriceResponse) XXX_Unmarshal(b []byte) error
- type QuerySwapExactAmountInRequest
- func (*QuerySwapExactAmountInRequest) Descriptor() ([]byte, []int)
- func (m *QuerySwapExactAmountInRequest) GetPoolId() uint64
- func (m *QuerySwapExactAmountInRequest) GetRoutes() []SwapAmountInRoute
- func (m *QuerySwapExactAmountInRequest) GetSender() string
- func (m *QuerySwapExactAmountInRequest) GetTokenIn() string
- func (m *QuerySwapExactAmountInRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapExactAmountInRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapExactAmountInRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapExactAmountInRequest) ProtoMessage()
- func (m *QuerySwapExactAmountInRequest) Reset()
- func (m *QuerySwapExactAmountInRequest) Size() (n int)
- func (m *QuerySwapExactAmountInRequest) String() string
- func (m *QuerySwapExactAmountInRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySwapExactAmountInRequest) XXX_DiscardUnknown()
- func (m *QuerySwapExactAmountInRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapExactAmountInRequest) XXX_Merge(src proto.Message)
- func (m *QuerySwapExactAmountInRequest) XXX_Size() int
- func (m *QuerySwapExactAmountInRequest) XXX_Unmarshal(b []byte) error
- type QuerySwapExactAmountInResponse
- func (*QuerySwapExactAmountInResponse) Descriptor() ([]byte, []int)
- func (m *QuerySwapExactAmountInResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapExactAmountInResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapExactAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapExactAmountInResponse) ProtoMessage()
- func (m *QuerySwapExactAmountInResponse) Reset()
- func (m *QuerySwapExactAmountInResponse) Size() (n int)
- func (m *QuerySwapExactAmountInResponse) String() string
- func (m *QuerySwapExactAmountInResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySwapExactAmountInResponse) XXX_DiscardUnknown()
- func (m *QuerySwapExactAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapExactAmountInResponse) XXX_Merge(src proto.Message)
- func (m *QuerySwapExactAmountInResponse) XXX_Size() int
- func (m *QuerySwapExactAmountInResponse) XXX_Unmarshal(b []byte) error
- type QuerySwapExactAmountOutRequest
- func (*QuerySwapExactAmountOutRequest) Descriptor() ([]byte, []int)
- func (m *QuerySwapExactAmountOutRequest) GetPoolId() uint64
- func (m *QuerySwapExactAmountOutRequest) GetRoutes() []SwapAmountOutRoute
- func (m *QuerySwapExactAmountOutRequest) GetSender() string
- func (m *QuerySwapExactAmountOutRequest) GetTokenOut() string
- func (m *QuerySwapExactAmountOutRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapExactAmountOutRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapExactAmountOutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapExactAmountOutRequest) ProtoMessage()
- func (m *QuerySwapExactAmountOutRequest) Reset()
- func (m *QuerySwapExactAmountOutRequest) Size() (n int)
- func (m *QuerySwapExactAmountOutRequest) String() string
- func (m *QuerySwapExactAmountOutRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySwapExactAmountOutRequest) XXX_DiscardUnknown()
- func (m *QuerySwapExactAmountOutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapExactAmountOutRequest) XXX_Merge(src proto.Message)
- func (m *QuerySwapExactAmountOutRequest) XXX_Size() int
- func (m *QuerySwapExactAmountOutRequest) XXX_Unmarshal(b []byte) error
- type QuerySwapExactAmountOutResponse
- func (*QuerySwapExactAmountOutResponse) Descriptor() ([]byte, []int)
- func (m *QuerySwapExactAmountOutResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySwapExactAmountOutResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySwapExactAmountOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySwapExactAmountOutResponse) ProtoMessage()
- func (m *QuerySwapExactAmountOutResponse) Reset()
- func (m *QuerySwapExactAmountOutResponse) Size() (n int)
- func (m *QuerySwapExactAmountOutResponse) String() string
- func (m *QuerySwapExactAmountOutResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySwapExactAmountOutResponse) XXX_DiscardUnknown()
- func (m *QuerySwapExactAmountOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySwapExactAmountOutResponse) XXX_Merge(src proto.Message)
- func (m *QuerySwapExactAmountOutResponse) XXX_Size() int
- func (m *QuerySwapExactAmountOutResponse) XXX_Unmarshal(b []byte) error
- type QueryTotalLiquidityRequest
- func (*QueryTotalLiquidityRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalLiquidityRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalLiquidityRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalLiquidityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalLiquidityRequest) ProtoMessage()
- func (m *QueryTotalLiquidityRequest) Reset()
- func (m *QueryTotalLiquidityRequest) Size() (n int)
- func (m *QueryTotalLiquidityRequest) String() string
- func (m *QueryTotalLiquidityRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalLiquidityRequest) XXX_DiscardUnknown()
- func (m *QueryTotalLiquidityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalLiquidityRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalLiquidityRequest) XXX_Size() int
- func (m *QueryTotalLiquidityRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalLiquidityResponse
- func (*QueryTotalLiquidityResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalLiquidityResponse) GetLiquidity() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryTotalLiquidityResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalLiquidityResponse) ProtoMessage()
- func (m *QueryTotalLiquidityResponse) Reset()
- func (m *QueryTotalLiquidityResponse) Size() (n int)
- func (m *QueryTotalLiquidityResponse) String() string
- func (m *QueryTotalLiquidityResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalLiquidityResponse) XXX_DiscardUnknown()
- func (m *QueryTotalLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalLiquidityResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalLiquidityResponse) XXX_Size() int
- func (m *QueryTotalLiquidityResponse) XXX_Unmarshal(b []byte) error
- type QueryTotalPoolLiquidityRequest
- func (*QueryTotalPoolLiquidityRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalPoolLiquidityRequest) GetPoolId() uint64
- func (m *QueryTotalPoolLiquidityRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalPoolLiquidityRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalPoolLiquidityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalPoolLiquidityRequest) ProtoMessage()
- func (m *QueryTotalPoolLiquidityRequest) Reset()
- func (m *QueryTotalPoolLiquidityRequest) Size() (n int)
- func (m *QueryTotalPoolLiquidityRequest) String() string
- func (m *QueryTotalPoolLiquidityRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalPoolLiquidityRequest) XXX_DiscardUnknown()
- func (m *QueryTotalPoolLiquidityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalPoolLiquidityRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalPoolLiquidityRequest) XXX_Size() int
- func (m *QueryTotalPoolLiquidityRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalPoolLiquidityResponse
- func (*QueryTotalPoolLiquidityResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalPoolLiquidityResponse) GetLiquidity() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *QueryTotalPoolLiquidityResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalPoolLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalPoolLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalPoolLiquidityResponse) ProtoMessage()
- func (m *QueryTotalPoolLiquidityResponse) Reset()
- func (m *QueryTotalPoolLiquidityResponse) Size() (n int)
- func (m *QueryTotalPoolLiquidityResponse) String() string
- func (m *QueryTotalPoolLiquidityResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalPoolLiquidityResponse) XXX_DiscardUnknown()
- func (m *QueryTotalPoolLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalPoolLiquidityResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalPoolLiquidityResponse) XXX_Size() int
- func (m *QueryTotalPoolLiquidityResponse) XXX_Unmarshal(b []byte) error
- type QueryTotalSharesRequest
- func (*QueryTotalSharesRequest) Descriptor() ([]byte, []int)
- func (m *QueryTotalSharesRequest) GetPoolId() uint64
- func (m *QueryTotalSharesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalSharesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalSharesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalSharesRequest) ProtoMessage()
- func (m *QueryTotalSharesRequest) Reset()
- func (m *QueryTotalSharesRequest) Size() (n int)
- func (m *QueryTotalSharesRequest) String() string
- func (m *QueryTotalSharesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTotalSharesRequest) XXX_DiscardUnknown()
- func (m *QueryTotalSharesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalSharesRequest) XXX_Merge(src proto.Message)
- func (m *QueryTotalSharesRequest) XXX_Size() int
- func (m *QueryTotalSharesRequest) XXX_Unmarshal(b []byte) error
- type QueryTotalSharesResponse
- func (*QueryTotalSharesResponse) Descriptor() ([]byte, []int)
- func (m *QueryTotalSharesResponse) GetTotalShares() types1.Coin
- func (m *QueryTotalSharesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTotalSharesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTotalSharesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTotalSharesResponse) ProtoMessage()
- func (m *QueryTotalSharesResponse) Reset()
- func (m *QueryTotalSharesResponse) Size() (n int)
- func (m *QueryTotalSharesResponse) String() string
- func (m *QueryTotalSharesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTotalSharesResponse) XXX_DiscardUnknown()
- func (m *QueryTotalSharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTotalSharesResponse) XXX_Merge(src proto.Message)
- func (m *QueryTotalSharesResponse) XXX_Size() int
- func (m *QueryTotalSharesResponse) XXX_Unmarshal(b []byte) error
- type SwapAmountInRoute
- func (*SwapAmountInRoute) Descriptor() ([]byte, []int)
- func (m *SwapAmountInRoute) GetPoolId() uint64
- func (m *SwapAmountInRoute) GetTokenOutDenom() string
- func (m *SwapAmountInRoute) Marshal() (dAtA []byte, err error)
- func (m *SwapAmountInRoute) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapAmountInRoute) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapAmountInRoute) ProtoMessage()
- func (m *SwapAmountInRoute) Reset()
- func (m *SwapAmountInRoute) Size() (n int)
- func (m *SwapAmountInRoute) String() string
- func (m *SwapAmountInRoute) Unmarshal(dAtA []byte) error
- func (m *SwapAmountInRoute) XXX_DiscardUnknown()
- func (m *SwapAmountInRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapAmountInRoute) XXX_Merge(src proto.Message)
- func (m *SwapAmountInRoute) XXX_Size() int
- func (m *SwapAmountInRoute) XXX_Unmarshal(b []byte) error
- type SwapAmountInRoutes
- type SwapAmountOutRoute
- func (*SwapAmountOutRoute) Descriptor() ([]byte, []int)
- func (m *SwapAmountOutRoute) GetPoolId() uint64
- func (m *SwapAmountOutRoute) GetTokenInDenom() string
- func (m *SwapAmountOutRoute) Marshal() (dAtA []byte, err error)
- func (m *SwapAmountOutRoute) MarshalTo(dAtA []byte) (int, error)
- func (m *SwapAmountOutRoute) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*SwapAmountOutRoute) ProtoMessage()
- func (m *SwapAmountOutRoute) Reset()
- func (m *SwapAmountOutRoute) Size() (n int)
- func (m *SwapAmountOutRoute) String() string
- func (m *SwapAmountOutRoute) Unmarshal(dAtA []byte) error
- func (m *SwapAmountOutRoute) XXX_DiscardUnknown()
- func (m *SwapAmountOutRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SwapAmountOutRoute) XXX_Merge(src proto.Message)
- func (m *SwapAmountOutRoute) XXX_Size() int
- func (m *SwapAmountOutRoute) XXX_Unmarshal(b []byte) error
- type SwapAmountOutRoutes
- type SwapMsgRoute
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) ExitPool(ctx context.Context, req *MsgExitPool) (*MsgExitPoolResponse, error)
- func (*UnimplementedMsgServer) ExitSwapExternAmountOut(ctx context.Context, req *MsgExitSwapExternAmountOut) (*MsgExitSwapExternAmountOutResponse, error)
- func (*UnimplementedMsgServer) ExitSwapShareAmountIn(ctx context.Context, req *MsgExitSwapShareAmountIn) (*MsgExitSwapShareAmountInResponse, error)
- func (*UnimplementedMsgServer) JoinPool(ctx context.Context, req *MsgJoinPool) (*MsgJoinPoolResponse, error)
- func (*UnimplementedMsgServer) JoinSwapExternAmountIn(ctx context.Context, req *MsgJoinSwapExternAmountIn) (*MsgJoinSwapExternAmountInResponse, error)
- func (*UnimplementedMsgServer) JoinSwapShareAmountOut(ctx context.Context, req *MsgJoinSwapShareAmountOut) (*MsgJoinSwapShareAmountOutResponse, error)
- func (*UnimplementedMsgServer) SwapExactAmountIn(ctx context.Context, req *MsgSwapExactAmountIn) (*MsgSwapExactAmountInResponse, error)
- func (*UnimplementedMsgServer) SwapExactAmountOut(ctx context.Context, req *MsgSwapExactAmountOut) (*MsgSwapExactAmountOutResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) EstimateSwapExactAmountIn(ctx context.Context, req *QuerySwapExactAmountInRequest) (*QuerySwapExactAmountInResponse, error)
- func (*UnimplementedQueryServer) EstimateSwapExactAmountOut(ctx context.Context, req *QuerySwapExactAmountOutRequest) (*QuerySwapExactAmountOutResponse, error)
- func (*UnimplementedQueryServer) NumPools(ctx context.Context, req *QueryNumPoolsRequest) (*QueryNumPoolsResponse, error)
- func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryPoolRequest) (*QueryPoolResponse, error)
- func (*UnimplementedQueryServer) PoolParams(ctx context.Context, req *QueryPoolParamsRequest) (*QueryPoolParamsResponse, error)
- func (*UnimplementedQueryServer) Pools(ctx context.Context, req *QueryPoolsRequest) (*QueryPoolsResponse, error)
- func (*UnimplementedQueryServer) SpotPrice(ctx context.Context, req *QuerySpotPriceRequest) (*QuerySpotPriceResponse, error)
- func (*UnimplementedQueryServer) TotalLiquidity(ctx context.Context, req *QueryTotalLiquidityRequest) (*QueryTotalLiquidityResponse, error)
- func (*UnimplementedQueryServer) TotalPoolLiquidity(ctx context.Context, req *QueryTotalPoolLiquidityRequest) (*QueryTotalPoolLiquidityResponse, error)
- func (*UnimplementedQueryServer) TotalShares(ctx context.Context, req *QueryTotalSharesRequest) (*QueryTotalSharesResponse, error)
Constants ¶
const ( MinPoolAssets = 2 MaxPoolAssets = 8 // Raise 10 to the power of SigFigsExponent to determine number of significant figures. // i.e. SigFigExponent = 8 is 10^8 which is 100000000. This gives 8 significant figures. SigFigsExponent = 8 )
const ( TypeEvtPoolJoined = "pool_joined" TypeEvtPoolExited = "pool_exited" TypeEvtPoolCreated = "pool_created" TypeEvtTokenSwapped = "token_swapped" AttributeValueCategory = ModuleName AttributeKeyPoolId = "pool_id" AttributeKeySwapFee = "swap_fee" AttributeKeyTokensIn = "tokens_in" AttributeKeyTokensOut = "tokens_out" )
const ( ModuleName = "gamm" StoreKey = ModuleName RouterKey = ModuleName QuerierRoute = ModuleName )
const ( TypeMsgSwapExactAmountIn = "swap_exact_amount_in" TypeMsgSwapExactAmountOut = "swap_exact_amount_out" TypeMsgJoinPool = "join_pool" TypeMsgExitPool = "exit_pool" TypeMsgJoinSwapExternAmountIn = "join_swap_extern_amount_in" TypeMsgExitSwapExternAmountOut = "exit_swap_extern_amount_out" )
constants.
Variables ¶
var ( sdk.NewIntWithDecimal(1, OneShareExponent) InitPoolSharesSupply = OneShare.MulRaw(100) // SigFigs is the amount of significant figures used to calculate SpotPrice SigFigs = sdk.NewDec(10).Power(SigFigsExponent).TruncateInt() )OneShare =
var ( ErrPoolNotFound = sdkerrors.Register(ModuleName, 1, "pool not found") ErrPoolAlreadyExist = sdkerrors.Register(ModuleName, 2, "pool already exist") ErrPoolLocked = sdkerrors.Register(ModuleName, 3, "pool is locked") ErrTooFewPoolAssets = sdkerrors.Register(ModuleName, 4, "pool should have at least 2 assets, as they must be swapping between at least two assets") ErrTooManyPoolAssets = sdkerrors.Register(ModuleName, 5, "pool has too many assets (currently capped at 8 assets per balancer pool and 2 per stableswap)") ErrLimitMaxAmount = sdkerrors.Register(ModuleName, 6, "calculated amount is larger than max amount") ErrLimitMinAmount = sdkerrors.Register(ModuleName, 7, "calculated amount is lesser than min amount") ErrInvalidMathApprox = sdkerrors.Register(ModuleName, 8, "invalid calculated result") ErrAlreadyInvalidPool = sdkerrors.Register(ModuleName, 9, "destruction on already invalid pool") ErrInvalidPool = sdkerrors.Register(ModuleName, 10, "attempting to create an invalid pool") ErrDenomNotFoundInPool = sdkerrors.Register(ModuleName, 11, "denom does not exist in pool") ErrDenomAlreadyInPool = sdkerrors.Register(ModuleName, 12, "denom already exists in the pool") ErrEmptyRoutes = sdkerrors.Register(ModuleName, 21, "routes not defined") ErrEmptyPoolAssets = sdkerrors.Register(ModuleName, 22, "PoolAssets not defined") ErrNegativeSwapFee = sdkerrors.Register(ModuleName, 23, "swap fee is negative") ErrNegativeExitFee = sdkerrors.Register(ModuleName, 24, "exit fee is negative") ErrTooMuchSwapFee = sdkerrors.Register(ModuleName, 25, "swap fee should be lesser than 1 (100%)") ErrTooMuchExitFee = sdkerrors.Register(ModuleName, 26, "exit fee should be lesser than 1 (100%)") ErrNotPositiveWeight = sdkerrors.Register(ModuleName, 27, "token weight should be greater than 0") ErrWeightTooLarge = sdkerrors.Register(ModuleName, 28, "user specified token weight should be less than 2^20") ErrNotPositiveCriteria = sdkerrors.Register(ModuleName, 29, "min out amount or max in amount should be positive") ErrNotPositiveRequireAmount = sdkerrors.Register(ModuleName, 30, "required amount should be positive") ErrTooManyTokensOut = sdkerrors.Register(ModuleName, 31, "tx is trying to get more tokens out of the pool than exist") ErrPoolParamsInvalidDenom = sdkerrors.Register(ModuleName, 50, "pool params' LBP params has an invalid denomination") ErrPoolParamsInvalidNumDenoms = sdkerrors.Register(ModuleName, 51, "pool params' LBP doesn't have same number of params as underlying pool") ErrNotImplemented = sdkerrors.Register(ModuleName, 60, "function not implemented") ErrNotStableSwapPool = sdkerrors.Register(ModuleName, 61, "not stableswap pool") ErrInvalidStableswapScalingFactors = sdkerrors.Register(ModuleName, 62, "length between liquidity and scaling factors mismatch") ErrNotScalingFactorGovernor = sdkerrors.Register(ModuleName, 63, "not scaling factor governor") )
x/gamm 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 ( // KeyNextGlobalPoolNumber defines key to store the next Pool ID to be used. KeyNextGlobalPoolNumber = []byte{0x01} // KeyPrefixPools defines prefix to store pools. KeyPrefixPools = []byte{0x02} // KeyTotalLiquidity defines key to store total liquidity. KeyTotalLiquidity = []byte{0x03} )
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 (
KeyPoolCreationFee = []byte("PoolCreationFee")
)
Parameter store keys.
var ( // ModuleCdc references the global x/bank module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/staking and // defined at the application level. ModuleCdc = codec.NewAminoCodec(amino) )
Functions ¶
func GetDenomPrefix ¶
func GetKeyPrefixPools ¶
func GetPoolShareDenom ¶
func NewPoolAddress ¶
func NewPoolAddress(poolId uint64) sdk.AccAddress
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers the necessary x/gamm interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func ValidateFutureGovernor ¶
func ValidatePoolShareDenom ¶
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { NewAccount(sdk.Context, authtypes.AccountI) authtypes.AccountI GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI SetAccount(ctx sdk.Context, acc authtypes.AccountI) GetModuleAddressAndPermissions(moduleName string) (addr sdk.AccAddress, permissions []string) }
AccountKeeper defines the account contract that must be fulfilled when creating a x/gamm keeper.
type BankKeeper ¶
type BankKeeper interface { 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 SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata) // Only needed for simulation interface matching // TODO: Look into golang syntax to make this "Everything in stakingtypes.bankkeeper + extra funcs" // I think it has to do with listing another interface as the first line here? GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins }
BankKeeper defines the banking contract that must be fulfilled when creating a x/gamm keeper.
type CommunityPoolKeeper ¶
type CommunityPoolKeeper interface {
FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}
CommunityPoolKeeper defines the contract needed to be fulfilled for distribution keeper.
type CreatePoolMsg ¶
type CreatePoolMsg interface { // The creator of the pool, who pays the PoolCreationFee, provides initial liquidity, // and gets the initial LP shares. PoolCreator() sdk.AccAddress // A stateful validation function. Validate(ctx sdk.Context) error // Initial Liquidity for the pool that the sender is required to send to the pool account InitialLiquidity() sdk.Coins // CreatePool creates a pool implementing PoolI, using data from the message. CreatePool(ctx sdk.Context, poolID uint64) (PoolI, error) }
CreatePoolMsg defines an interface that every CreatePool transaction should implement. The gamm logic will use this to create a pool.
type GammHooks ¶
type GammHooks interface { // AfterPoolCreated is called after CreatePool AfterPoolCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64) // AfterJoinPool is called after JoinPool, JoinSwapExternAmountIn, and JoinSwapShareAmountOut AfterJoinPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, enterCoins sdk.Coins, shareOutAmount sdk.Int) // AfterExitPool is called after ExitPool, ExitSwapShareAmountIn, and ExitSwapExternAmountOut AfterExitPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, shareInAmount sdk.Int, exitCoins sdk.Coins) // AfterSwap is called after SwapExactAmountIn and SwapExactAmountOut AfterSwap(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, input sdk.Coins, output sdk.Coins) }
type GenesisState ¶
type GenesisState struct { Pools []*types1.Any `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools,omitempty"` NextPoolNumber uint64 `protobuf:"varint,2,opt,name=next_pool_number,json=nextPoolNumber,proto3" json:"next_pool_number,omitempty"` Params Params `protobuf:"bytes,3,opt,name=params,proto3" json:"params"` }
GenesisState defines the gamm module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis creates a default GenesisState object.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetNextPoolNumber ¶
func (m *GenesisState) GetNextPoolNumber() uint64
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPools ¶
func (m *GenesisState) GetPools() []*types1.Any
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 LiquidityChangeMsg ¶
type LiquidityChangeMsg interface {
LiquidityChangeType() LiquidityChangeType
}
LiquidityChangeMsg defines a simple interface for determining if an LP msg is removing or adding liquidity.
type LiquidityChangeType ¶
type LiquidityChangeType int
const ( AddLiquidity LiquidityChangeType = iota RemoveLiquidity )
type MsgClient ¶
type MsgClient interface { JoinPool(ctx context.Context, in *MsgJoinPool, opts ...grpc.CallOption) (*MsgJoinPoolResponse, error) ExitPool(ctx context.Context, in *MsgExitPool, opts ...grpc.CallOption) (*MsgExitPoolResponse, error) SwapExactAmountIn(ctx context.Context, in *MsgSwapExactAmountIn, opts ...grpc.CallOption) (*MsgSwapExactAmountInResponse, error) SwapExactAmountOut(ctx context.Context, in *MsgSwapExactAmountOut, opts ...grpc.CallOption) (*MsgSwapExactAmountOutResponse, error) JoinSwapExternAmountIn(ctx context.Context, in *MsgJoinSwapExternAmountIn, opts ...grpc.CallOption) (*MsgJoinSwapExternAmountInResponse, error) ExitSwapExternAmountOut(ctx context.Context, in *MsgExitSwapExternAmountOut, opts ...grpc.CallOption) (*MsgExitSwapExternAmountOutResponse, 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 MsgExitPool ¶
type MsgExitPool struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` PoolId uint64 `protobuf:"varint,2,opt,name=poolId,proto3" json:"poolId,omitempty" yaml:"pool_id"` TokenOutMins []types.Coin `protobuf:"bytes,4,rep,name=tokenOutMins,proto3" json:"tokenOutMins" yaml:"token_out_min_amounts"` }
===================== MsgExitPool
func (*MsgExitPool) Descriptor ¶
func (*MsgExitPool) Descriptor() ([]byte, []int)
func (*MsgExitPool) GetPoolId ¶
func (m *MsgExitPool) GetPoolId() uint64
func (*MsgExitPool) GetSender ¶
func (m *MsgExitPool) GetSender() string
func (MsgExitPool) GetSignBytes ¶
func (msg MsgExitPool) GetSignBytes() []byte
func (MsgExitPool) GetSigners ¶
func (msg MsgExitPool) GetSigners() []sdk.AccAddress
func (*MsgExitPool) GetTokenOutMins ¶
func (m *MsgExitPool) GetTokenOutMins() []types.Coin
func (MsgExitPool) LiquidityChangeType ¶
func (msg MsgExitPool) LiquidityChangeType() LiquidityChangeType
func (*MsgExitPool) Marshal ¶
func (m *MsgExitPool) Marshal() (dAtA []byte, err error)
func (*MsgExitPool) MarshalToSizedBuffer ¶
func (m *MsgExitPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExitPool) ProtoMessage ¶
func (*MsgExitPool) ProtoMessage()
func (*MsgExitPool) Reset ¶
func (m *MsgExitPool) Reset()
func (MsgExitPool) Route ¶
func (msg MsgExitPool) Route() string
func (*MsgExitPool) Size ¶
func (m *MsgExitPool) Size() (n int)
func (*MsgExitPool) String ¶
func (m *MsgExitPool) String() string
func (MsgExitPool) Type ¶
func (msg MsgExitPool) Type() string
func (*MsgExitPool) Unmarshal ¶
func (m *MsgExitPool) Unmarshal(dAtA []byte) error
func (MsgExitPool) ValidateBasic ¶
func (msg MsgExitPool) ValidateBasic() error
func (*MsgExitPool) XXX_DiscardUnknown ¶
func (m *MsgExitPool) XXX_DiscardUnknown()
func (*MsgExitPool) XXX_Marshal ¶
func (m *MsgExitPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExitPool) XXX_Merge ¶
func (m *MsgExitPool) XXX_Merge(src proto.Message)
func (*MsgExitPool) XXX_Size ¶
func (m *MsgExitPool) XXX_Size() int
func (*MsgExitPool) XXX_Unmarshal ¶
func (m *MsgExitPool) XXX_Unmarshal(b []byte) error
type MsgExitPoolResponse ¶
type MsgExitPoolResponse struct { }
func (*MsgExitPoolResponse) Descriptor ¶
func (*MsgExitPoolResponse) Descriptor() ([]byte, []int)
func (*MsgExitPoolResponse) Marshal ¶
func (m *MsgExitPoolResponse) Marshal() (dAtA []byte, err error)
func (*MsgExitPoolResponse) MarshalTo ¶
func (m *MsgExitPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgExitPoolResponse) MarshalToSizedBuffer ¶
func (m *MsgExitPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExitPoolResponse) ProtoMessage ¶
func (*MsgExitPoolResponse) ProtoMessage()
func (*MsgExitPoolResponse) Reset ¶
func (m *MsgExitPoolResponse) Reset()
func (*MsgExitPoolResponse) Size ¶
func (m *MsgExitPoolResponse) Size() (n int)
func (*MsgExitPoolResponse) String ¶
func (m *MsgExitPoolResponse) String() string
func (*MsgExitPoolResponse) Unmarshal ¶
func (m *MsgExitPoolResponse) Unmarshal(dAtA []byte) error
func (*MsgExitPoolResponse) XXX_DiscardUnknown ¶
func (m *MsgExitPoolResponse) XXX_DiscardUnknown()
func (*MsgExitPoolResponse) XXX_Marshal ¶
func (m *MsgExitPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExitPoolResponse) XXX_Merge ¶
func (m *MsgExitPoolResponse) XXX_Merge(src proto.Message)
func (*MsgExitPoolResponse) XXX_Size ¶
func (m *MsgExitPoolResponse) XXX_Size() int
func (*MsgExitPoolResponse) XXX_Unmarshal ¶
func (m *MsgExitPoolResponse) XXX_Unmarshal(b []byte) error
type MsgExitSwapExternAmountOut ¶
type MsgExitSwapExternAmountOut struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` PoolId uint64 `protobuf:"varint,2,opt,name=poolId,proto3" json:"poolId,omitempty" yaml:"pool_id"` TokenOut types.Coin `protobuf:"bytes,3,opt,name=tokenOut,proto3" json:"tokenOut" yaml:"token_out"` }
===================== MsgExitSwapExternAmountOut
func (*MsgExitSwapExternAmountOut) Descriptor ¶
func (*MsgExitSwapExternAmountOut) Descriptor() ([]byte, []int)
func (*MsgExitSwapExternAmountOut) GetPoolId ¶
func (m *MsgExitSwapExternAmountOut) GetPoolId() uint64
func (*MsgExitSwapExternAmountOut) GetSender ¶
func (m *MsgExitSwapExternAmountOut) GetSender() string
func (MsgExitSwapExternAmountOut) GetSignBytes ¶
func (msg MsgExitSwapExternAmountOut) GetSignBytes() []byte
func (MsgExitSwapExternAmountOut) GetSigners ¶
func (msg MsgExitSwapExternAmountOut) GetSigners() []sdk.AccAddress
func (*MsgExitSwapExternAmountOut) GetTokenOut ¶
func (m *MsgExitSwapExternAmountOut) GetTokenOut() types.Coin
func (MsgExitSwapExternAmountOut) LiquidityChangeType ¶
func (msg MsgExitSwapExternAmountOut) LiquidityChangeType() LiquidityChangeType
func (*MsgExitSwapExternAmountOut) Marshal ¶
func (m *MsgExitSwapExternAmountOut) Marshal() (dAtA []byte, err error)
func (*MsgExitSwapExternAmountOut) MarshalTo ¶
func (m *MsgExitSwapExternAmountOut) MarshalTo(dAtA []byte) (int, error)
func (*MsgExitSwapExternAmountOut) MarshalToSizedBuffer ¶
func (m *MsgExitSwapExternAmountOut) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExitSwapExternAmountOut) ProtoMessage ¶
func (*MsgExitSwapExternAmountOut) ProtoMessage()
func (*MsgExitSwapExternAmountOut) Reset ¶
func (m *MsgExitSwapExternAmountOut) Reset()
func (MsgExitSwapExternAmountOut) Route ¶
func (msg MsgExitSwapExternAmountOut) Route() string
func (*MsgExitSwapExternAmountOut) Size ¶
func (m *MsgExitSwapExternAmountOut) Size() (n int)
func (*MsgExitSwapExternAmountOut) String ¶
func (m *MsgExitSwapExternAmountOut) String() string
func (MsgExitSwapExternAmountOut) Type ¶
func (msg MsgExitSwapExternAmountOut) Type() string
func (*MsgExitSwapExternAmountOut) Unmarshal ¶
func (m *MsgExitSwapExternAmountOut) Unmarshal(dAtA []byte) error
func (MsgExitSwapExternAmountOut) ValidateBasic ¶
func (msg MsgExitSwapExternAmountOut) ValidateBasic() error
func (*MsgExitSwapExternAmountOut) XXX_DiscardUnknown ¶
func (m *MsgExitSwapExternAmountOut) XXX_DiscardUnknown()
func (*MsgExitSwapExternAmountOut) XXX_Marshal ¶
func (m *MsgExitSwapExternAmountOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExitSwapExternAmountOut) XXX_Merge ¶
func (m *MsgExitSwapExternAmountOut) XXX_Merge(src proto.Message)
func (*MsgExitSwapExternAmountOut) XXX_Size ¶
func (m *MsgExitSwapExternAmountOut) XXX_Size() int
func (*MsgExitSwapExternAmountOut) XXX_Unmarshal ¶
func (m *MsgExitSwapExternAmountOut) XXX_Unmarshal(b []byte) error
type MsgExitSwapExternAmountOutResponse ¶
type MsgExitSwapExternAmountOutResponse struct {
}func (*MsgExitSwapExternAmountOutResponse) Descriptor ¶
func (*MsgExitSwapExternAmountOutResponse) Descriptor() ([]byte, []int)
func (*MsgExitSwapExternAmountOutResponse) Marshal ¶
func (m *MsgExitSwapExternAmountOutResponse) Marshal() (dAtA []byte, err error)
func (*MsgExitSwapExternAmountOutResponse) MarshalTo ¶
func (m *MsgExitSwapExternAmountOutResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgExitSwapExternAmountOutResponse) MarshalToSizedBuffer ¶
func (m *MsgExitSwapExternAmountOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExitSwapExternAmountOutResponse) ProtoMessage ¶
func (*MsgExitSwapExternAmountOutResponse) ProtoMessage()
func (*MsgExitSwapExternAmountOutResponse) Reset ¶
func (m *MsgExitSwapExternAmountOutResponse) Reset()
func (*MsgExitSwapExternAmountOutResponse) Size ¶
func (m *MsgExitSwapExternAmountOutResponse) Size() (n int)
func (*MsgExitSwapExternAmountOutResponse) String ¶
func (m *MsgExitSwapExternAmountOutResponse) String() string
func (*MsgExitSwapExternAmountOutResponse) Unmarshal ¶
func (m *MsgExitSwapExternAmountOutResponse) Unmarshal(dAtA []byte) error
func (*MsgExitSwapExternAmountOutResponse) XXX_DiscardUnknown ¶
func (m *MsgExitSwapExternAmountOutResponse) XXX_DiscardUnknown()
func (*MsgExitSwapExternAmountOutResponse) XXX_Marshal ¶
func (m *MsgExitSwapExternAmountOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExitSwapExternAmountOutResponse) XXX_Merge ¶
func (m *MsgExitSwapExternAmountOutResponse) XXX_Merge(src proto.Message)
func (*MsgExitSwapExternAmountOutResponse) XXX_Size ¶
func (m *MsgExitSwapExternAmountOutResponse) XXX_Size() int
func (*MsgExitSwapExternAmountOutResponse) XXX_Unmarshal ¶
func (m *MsgExitSwapExternAmountOutResponse) XXX_Unmarshal(b []byte) error
type MsgExitSwapShareAmountIn ¶
type MsgExitSwapShareAmountIn struct {}
===================== MsgExitSwapShareAmountIn
func (*MsgExitSwapShareAmountIn) Descriptor ¶
func (*MsgExitSwapShareAmountIn) Descriptor() ([]byte, []int)
func (*MsgExitSwapShareAmountIn) GetPoolId ¶
func (m *MsgExitSwapShareAmountIn) GetPoolId() uint64
func (*MsgExitSwapShareAmountIn) GetSender ¶
func (m *MsgExitSwapShareAmountIn) GetSender() string
func (MsgExitSwapShareAmountIn) GetSignBytes ¶
func (msg MsgExitSwapShareAmountIn) GetSignBytes() []byte
func (MsgExitSwapShareAmountIn) GetSigners ¶
func (msg MsgExitSwapShareAmountIn) GetSigners() []sdk.AccAddress
func (*MsgExitSwapShareAmountIn) GetTokenOutDenom ¶
func (m *MsgExitSwapShareAmountIn) GetTokenOutDenom() string
func (MsgExitSwapShareAmountIn) LiquidityChangeType ¶
func (msg MsgExitSwapShareAmountIn) LiquidityChangeType() LiquidityChangeType
func (*MsgExitSwapShareAmountIn) Marshal ¶
func (m *MsgExitSwapShareAmountIn) Marshal() (dAtA []byte, err error)
func (*MsgExitSwapShareAmountIn) MarshalTo ¶
func (m *MsgExitSwapShareAmountIn) MarshalTo(dAtA []byte) (int, error)
func (*MsgExitSwapShareAmountIn) MarshalToSizedBuffer ¶
func (m *MsgExitSwapShareAmountIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExitSwapShareAmountIn) ProtoMessage ¶
func (*MsgExitSwapShareAmountIn) ProtoMessage()
func (*MsgExitSwapShareAmountIn) Reset ¶
func (m *MsgExitSwapShareAmountIn) Reset()
func (MsgExitSwapShareAmountIn) Route ¶
func (msg MsgExitSwapShareAmountIn) Route() string
func (*MsgExitSwapShareAmountIn) Size ¶
func (m *MsgExitSwapShareAmountIn) Size() (n int)
func (*MsgExitSwapShareAmountIn) String ¶
func (m *MsgExitSwapShareAmountIn) String() string
func (MsgExitSwapShareAmountIn) Type ¶
func (msg MsgExitSwapShareAmountIn) Type() string
func (*MsgExitSwapShareAmountIn) Unmarshal ¶
func (m *MsgExitSwapShareAmountIn) Unmarshal(dAtA []byte) error
func (MsgExitSwapShareAmountIn) ValidateBasic ¶
func (msg MsgExitSwapShareAmountIn) ValidateBasic() error
func (*MsgExitSwapShareAmountIn) XXX_DiscardUnknown ¶
func (m *MsgExitSwapShareAmountIn) XXX_DiscardUnknown()
func (*MsgExitSwapShareAmountIn) XXX_Marshal ¶
func (m *MsgExitSwapShareAmountIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExitSwapShareAmountIn) XXX_Merge ¶
func (m *MsgExitSwapShareAmountIn) XXX_Merge(src proto.Message)
func (*MsgExitSwapShareAmountIn) XXX_Size ¶
func (m *MsgExitSwapShareAmountIn) XXX_Size() int
func (*MsgExitSwapShareAmountIn) XXX_Unmarshal ¶
func (m *MsgExitSwapShareAmountIn) XXX_Unmarshal(b []byte) error
type MsgExitSwapShareAmountInResponse ¶
type MsgExitSwapShareAmountInResponse struct {
}func (*MsgExitSwapShareAmountInResponse) Descriptor ¶
func (*MsgExitSwapShareAmountInResponse) Descriptor() ([]byte, []int)
func (*MsgExitSwapShareAmountInResponse) Marshal ¶
func (m *MsgExitSwapShareAmountInResponse) Marshal() (dAtA []byte, err error)
func (*MsgExitSwapShareAmountInResponse) MarshalTo ¶
func (m *MsgExitSwapShareAmountInResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgExitSwapShareAmountInResponse) MarshalToSizedBuffer ¶
func (m *MsgExitSwapShareAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgExitSwapShareAmountInResponse) ProtoMessage ¶
func (*MsgExitSwapShareAmountInResponse) ProtoMessage()
func (*MsgExitSwapShareAmountInResponse) Reset ¶
func (m *MsgExitSwapShareAmountInResponse) Reset()
func (*MsgExitSwapShareAmountInResponse) Size ¶
func (m *MsgExitSwapShareAmountInResponse) Size() (n int)
func (*MsgExitSwapShareAmountInResponse) String ¶
func (m *MsgExitSwapShareAmountInResponse) String() string
func (*MsgExitSwapShareAmountInResponse) Unmarshal ¶
func (m *MsgExitSwapShareAmountInResponse) Unmarshal(dAtA []byte) error
func (*MsgExitSwapShareAmountInResponse) XXX_DiscardUnknown ¶
func (m *MsgExitSwapShareAmountInResponse) XXX_DiscardUnknown()
func (*MsgExitSwapShareAmountInResponse) XXX_Marshal ¶
func (m *MsgExitSwapShareAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgExitSwapShareAmountInResponse) XXX_Merge ¶
func (m *MsgExitSwapShareAmountInResponse) XXX_Merge(src proto.Message)
func (*MsgExitSwapShareAmountInResponse) XXX_Size ¶
func (m *MsgExitSwapShareAmountInResponse) XXX_Size() int
func (*MsgExitSwapShareAmountInResponse) XXX_Unmarshal ¶
func (m *MsgExitSwapShareAmountInResponse) XXX_Unmarshal(b []byte) error
type MsgJoinPool ¶
type MsgJoinPool struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` PoolId uint64 `protobuf:"varint,2,opt,name=poolId,proto3" json:"poolId,omitempty" yaml:"pool_id"` TokenInMaxs []types.Coin `protobuf:"bytes,4,rep,name=tokenInMaxs,proto3" json:"tokenInMaxs" yaml:"token_in_max_amounts"` }
===================== MsgJoinPool This is really MsgJoinPoolNoSwap
func (*MsgJoinPool) Descriptor ¶
func (*MsgJoinPool) Descriptor() ([]byte, []int)
func (*MsgJoinPool) GetPoolId ¶
func (m *MsgJoinPool) GetPoolId() uint64
func (*MsgJoinPool) GetSender ¶
func (m *MsgJoinPool) GetSender() string
func (MsgJoinPool) GetSignBytes ¶
func (msg MsgJoinPool) GetSignBytes() []byte
func (MsgJoinPool) GetSigners ¶
func (msg MsgJoinPool) GetSigners() []sdk.AccAddress
func (*MsgJoinPool) GetTokenInMaxs ¶
func (m *MsgJoinPool) GetTokenInMaxs() []types.Coin
func (MsgJoinPool) LiquidityChangeType ¶
func (msg MsgJoinPool) LiquidityChangeType() LiquidityChangeType
func (*MsgJoinPool) Marshal ¶
func (m *MsgJoinPool) Marshal() (dAtA []byte, err error)
func (*MsgJoinPool) MarshalToSizedBuffer ¶
func (m *MsgJoinPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgJoinPool) ProtoMessage ¶
func (*MsgJoinPool) ProtoMessage()
func (*MsgJoinPool) Reset ¶
func (m *MsgJoinPool) Reset()
func (MsgJoinPool) Route ¶
func (msg MsgJoinPool) Route() string
func (*MsgJoinPool) Size ¶
func (m *MsgJoinPool) Size() (n int)
func (*MsgJoinPool) String ¶
func (m *MsgJoinPool) String() string
func (MsgJoinPool) Type ¶
func (msg MsgJoinPool) Type() string
func (*MsgJoinPool) Unmarshal ¶
func (m *MsgJoinPool) Unmarshal(dAtA []byte) error
func (MsgJoinPool) ValidateBasic ¶
func (msg MsgJoinPool) ValidateBasic() error
func (*MsgJoinPool) XXX_DiscardUnknown ¶
func (m *MsgJoinPool) XXX_DiscardUnknown()
func (*MsgJoinPool) XXX_Marshal ¶
func (m *MsgJoinPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgJoinPool) XXX_Merge ¶
func (m *MsgJoinPool) XXX_Merge(src proto.Message)
func (*MsgJoinPool) XXX_Size ¶
func (m *MsgJoinPool) XXX_Size() int
func (*MsgJoinPool) XXX_Unmarshal ¶
func (m *MsgJoinPool) XXX_Unmarshal(b []byte) error
type MsgJoinPoolResponse ¶
type MsgJoinPoolResponse struct { }
func (*MsgJoinPoolResponse) Descriptor ¶
func (*MsgJoinPoolResponse) Descriptor() ([]byte, []int)
func (*MsgJoinPoolResponse) Marshal ¶
func (m *MsgJoinPoolResponse) Marshal() (dAtA []byte, err error)
func (*MsgJoinPoolResponse) MarshalTo ¶
func (m *MsgJoinPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgJoinPoolResponse) MarshalToSizedBuffer ¶
func (m *MsgJoinPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgJoinPoolResponse) ProtoMessage ¶
func (*MsgJoinPoolResponse) ProtoMessage()
func (*MsgJoinPoolResponse) Reset ¶
func (m *MsgJoinPoolResponse) Reset()
func (*MsgJoinPoolResponse) Size ¶
func (m *MsgJoinPoolResponse) Size() (n int)
func (*MsgJoinPoolResponse) String ¶
func (m *MsgJoinPoolResponse) String() string
func (*MsgJoinPoolResponse) Unmarshal ¶
func (m *MsgJoinPoolResponse) Unmarshal(dAtA []byte) error
func (*MsgJoinPoolResponse) XXX_DiscardUnknown ¶
func (m *MsgJoinPoolResponse) XXX_DiscardUnknown()
func (*MsgJoinPoolResponse) XXX_Marshal ¶
func (m *MsgJoinPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgJoinPoolResponse) XXX_Merge ¶
func (m *MsgJoinPoolResponse) XXX_Merge(src proto.Message)
func (*MsgJoinPoolResponse) XXX_Size ¶
func (m *MsgJoinPoolResponse) XXX_Size() int
func (*MsgJoinPoolResponse) XXX_Unmarshal ¶
func (m *MsgJoinPoolResponse) XXX_Unmarshal(b []byte) error
type MsgJoinSwapExternAmountIn ¶
type MsgJoinSwapExternAmountIn struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` PoolId uint64 `protobuf:"varint,2,opt,name=poolId,proto3" json:"poolId,omitempty" yaml:"pool_id"` TokenIn types.Coin `protobuf:"bytes,3,opt,name=tokenIn,proto3" json:"tokenIn" yaml:"token_in"` }
===================== MsgJoinSwapExternAmountIn TODO: Rename to MsgJoinSwapExactAmountIn
func (*MsgJoinSwapExternAmountIn) Descriptor ¶
func (*MsgJoinSwapExternAmountIn) Descriptor() ([]byte, []int)
func (*MsgJoinSwapExternAmountIn) GetPoolId ¶
func (m *MsgJoinSwapExternAmountIn) GetPoolId() uint64
func (*MsgJoinSwapExternAmountIn) GetSender ¶
func (m *MsgJoinSwapExternAmountIn) GetSender() string
func (MsgJoinSwapExternAmountIn) GetSignBytes ¶
func (msg MsgJoinSwapExternAmountIn) GetSignBytes() []byte
func (MsgJoinSwapExternAmountIn) GetSigners ¶
func (msg MsgJoinSwapExternAmountIn) GetSigners() []sdk.AccAddress
func (*MsgJoinSwapExternAmountIn) GetTokenIn ¶
func (m *MsgJoinSwapExternAmountIn) GetTokenIn() types.Coin
func (MsgJoinSwapExternAmountIn) LiquidityChangeType ¶
func (msg MsgJoinSwapExternAmountIn) LiquidityChangeType() LiquidityChangeType
func (*MsgJoinSwapExternAmountIn) Marshal ¶
func (m *MsgJoinSwapExternAmountIn) Marshal() (dAtA []byte, err error)
func (*MsgJoinSwapExternAmountIn) MarshalTo ¶
func (m *MsgJoinSwapExternAmountIn) MarshalTo(dAtA []byte) (int, error)
func (*MsgJoinSwapExternAmountIn) MarshalToSizedBuffer ¶
func (m *MsgJoinSwapExternAmountIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgJoinSwapExternAmountIn) ProtoMessage ¶
func (*MsgJoinSwapExternAmountIn) ProtoMessage()
func (*MsgJoinSwapExternAmountIn) Reset ¶
func (m *MsgJoinSwapExternAmountIn) Reset()
func (MsgJoinSwapExternAmountIn) Route ¶
func (msg MsgJoinSwapExternAmountIn) Route() string
func (*MsgJoinSwapExternAmountIn) Size ¶
func (m *MsgJoinSwapExternAmountIn) Size() (n int)
func (*MsgJoinSwapExternAmountIn) String ¶
func (m *MsgJoinSwapExternAmountIn) String() string
func (MsgJoinSwapExternAmountIn) Type ¶
func (msg MsgJoinSwapExternAmountIn) Type() string
func (*MsgJoinSwapExternAmountIn) Unmarshal ¶
func (m *MsgJoinSwapExternAmountIn) Unmarshal(dAtA []byte) error
func (MsgJoinSwapExternAmountIn) ValidateBasic ¶
func (msg MsgJoinSwapExternAmountIn) ValidateBasic() error
func (*MsgJoinSwapExternAmountIn) XXX_DiscardUnknown ¶
func (m *MsgJoinSwapExternAmountIn) XXX_DiscardUnknown()
func (*MsgJoinSwapExternAmountIn) XXX_Marshal ¶
func (m *MsgJoinSwapExternAmountIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgJoinSwapExternAmountIn) XXX_Merge ¶
func (m *MsgJoinSwapExternAmountIn) XXX_Merge(src proto.Message)
func (*MsgJoinSwapExternAmountIn) XXX_Size ¶
func (m *MsgJoinSwapExternAmountIn) XXX_Size() int
func (*MsgJoinSwapExternAmountIn) XXX_Unmarshal ¶
func (m *MsgJoinSwapExternAmountIn) XXX_Unmarshal(b []byte) error
type MsgJoinSwapExternAmountInResponse ¶
type MsgJoinSwapExternAmountInResponse struct {
}func (*MsgJoinSwapExternAmountInResponse) Descriptor ¶
func (*MsgJoinSwapExternAmountInResponse) Descriptor() ([]byte, []int)
func (*MsgJoinSwapExternAmountInResponse) Marshal ¶
func (m *MsgJoinSwapExternAmountInResponse) Marshal() (dAtA []byte, err error)
func (*MsgJoinSwapExternAmountInResponse) MarshalTo ¶
func (m *MsgJoinSwapExternAmountInResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgJoinSwapExternAmountInResponse) MarshalToSizedBuffer ¶
func (m *MsgJoinSwapExternAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgJoinSwapExternAmountInResponse) ProtoMessage ¶
func (*MsgJoinSwapExternAmountInResponse) ProtoMessage()
func (*MsgJoinSwapExternAmountInResponse) Reset ¶
func (m *MsgJoinSwapExternAmountInResponse) Reset()
func (*MsgJoinSwapExternAmountInResponse) Size ¶
func (m *MsgJoinSwapExternAmountInResponse) Size() (n int)
func (*MsgJoinSwapExternAmountInResponse) String ¶
func (m *MsgJoinSwapExternAmountInResponse) String() string
func (*MsgJoinSwapExternAmountInResponse) Unmarshal ¶
func (m *MsgJoinSwapExternAmountInResponse) Unmarshal(dAtA []byte) error
func (*MsgJoinSwapExternAmountInResponse) XXX_DiscardUnknown ¶
func (m *MsgJoinSwapExternAmountInResponse) XXX_DiscardUnknown()
func (*MsgJoinSwapExternAmountInResponse) XXX_Marshal ¶
func (m *MsgJoinSwapExternAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgJoinSwapExternAmountInResponse) XXX_Merge ¶
func (m *MsgJoinSwapExternAmountInResponse) XXX_Merge(src proto.Message)
func (*MsgJoinSwapExternAmountInResponse) XXX_Size ¶
func (m *MsgJoinSwapExternAmountInResponse) XXX_Size() int
func (*MsgJoinSwapExternAmountInResponse) XXX_Unmarshal ¶
func (m *MsgJoinSwapExternAmountInResponse) XXX_Unmarshal(b []byte) error
type MsgJoinSwapShareAmountOut ¶
type MsgJoinSwapShareAmountOut struct {}
===================== MsgJoinSwapShareAmountOut
func (*MsgJoinSwapShareAmountOut) Descriptor ¶
func (*MsgJoinSwapShareAmountOut) Descriptor() ([]byte, []int)
func (*MsgJoinSwapShareAmountOut) GetPoolId ¶
func (m *MsgJoinSwapShareAmountOut) GetPoolId() uint64
func (*MsgJoinSwapShareAmountOut) GetSender ¶
func (m *MsgJoinSwapShareAmountOut) GetSender() string
func (MsgJoinSwapShareAmountOut) GetSignBytes ¶
func (msg MsgJoinSwapShareAmountOut) GetSignBytes() []byte
func (MsgJoinSwapShareAmountOut) GetSigners ¶
func (msg MsgJoinSwapShareAmountOut) GetSigners() []sdk.AccAddress
func (*MsgJoinSwapShareAmountOut) GetTokenInDenom ¶
func (m *MsgJoinSwapShareAmountOut) GetTokenInDenom() string
func (MsgJoinSwapShareAmountOut) LiquidityChangeType ¶
func (msg MsgJoinSwapShareAmountOut) LiquidityChangeType() LiquidityChangeType
func (*MsgJoinSwapShareAmountOut) Marshal ¶
func (m *MsgJoinSwapShareAmountOut) Marshal() (dAtA []byte, err error)
func (*MsgJoinSwapShareAmountOut) MarshalTo ¶
func (m *MsgJoinSwapShareAmountOut) MarshalTo(dAtA []byte) (int, error)
func (*MsgJoinSwapShareAmountOut) MarshalToSizedBuffer ¶
func (m *MsgJoinSwapShareAmountOut) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgJoinSwapShareAmountOut) ProtoMessage ¶
func (*MsgJoinSwapShareAmountOut) ProtoMessage()
func (*MsgJoinSwapShareAmountOut) Reset ¶
func (m *MsgJoinSwapShareAmountOut) Reset()
func (MsgJoinSwapShareAmountOut) Route ¶
func (msg MsgJoinSwapShareAmountOut) Route() string
func (*MsgJoinSwapShareAmountOut) Size ¶
func (m *MsgJoinSwapShareAmountOut) Size() (n int)
func (*MsgJoinSwapShareAmountOut) String ¶
func (m *MsgJoinSwapShareAmountOut) String() string
func (MsgJoinSwapShareAmountOut) Type ¶
func (msg MsgJoinSwapShareAmountOut) Type() string
func (*MsgJoinSwapShareAmountOut) Unmarshal ¶
func (m *MsgJoinSwapShareAmountOut) Unmarshal(dAtA []byte) error
func (MsgJoinSwapShareAmountOut) ValidateBasic ¶
func (msg MsgJoinSwapShareAmountOut) ValidateBasic() error
func (*MsgJoinSwapShareAmountOut) XXX_DiscardUnknown ¶
func (m *MsgJoinSwapShareAmountOut) XXX_DiscardUnknown()
func (*MsgJoinSwapShareAmountOut) XXX_Marshal ¶
func (m *MsgJoinSwapShareAmountOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgJoinSwapShareAmountOut) XXX_Merge ¶
func (m *MsgJoinSwapShareAmountOut) XXX_Merge(src proto.Message)
func (*MsgJoinSwapShareAmountOut) XXX_Size ¶
func (m *MsgJoinSwapShareAmountOut) XXX_Size() int
func (*MsgJoinSwapShareAmountOut) XXX_Unmarshal ¶
func (m *MsgJoinSwapShareAmountOut) XXX_Unmarshal(b []byte) error
type MsgJoinSwapShareAmountOutResponse ¶
type MsgJoinSwapShareAmountOutResponse struct {
}func (*MsgJoinSwapShareAmountOutResponse) Descriptor ¶
func (*MsgJoinSwapShareAmountOutResponse) Descriptor() ([]byte, []int)
func (*MsgJoinSwapShareAmountOutResponse) Marshal ¶
func (m *MsgJoinSwapShareAmountOutResponse) Marshal() (dAtA []byte, err error)
func (*MsgJoinSwapShareAmountOutResponse) MarshalTo ¶
func (m *MsgJoinSwapShareAmountOutResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgJoinSwapShareAmountOutResponse) MarshalToSizedBuffer ¶
func (m *MsgJoinSwapShareAmountOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgJoinSwapShareAmountOutResponse) ProtoMessage ¶
func (*MsgJoinSwapShareAmountOutResponse) ProtoMessage()
func (*MsgJoinSwapShareAmountOutResponse) Reset ¶
func (m *MsgJoinSwapShareAmountOutResponse) Reset()
func (*MsgJoinSwapShareAmountOutResponse) Size ¶
func (m *MsgJoinSwapShareAmountOutResponse) Size() (n int)
func (*MsgJoinSwapShareAmountOutResponse) String ¶
func (m *MsgJoinSwapShareAmountOutResponse) String() string
func (*MsgJoinSwapShareAmountOutResponse) Unmarshal ¶
func (m *MsgJoinSwapShareAmountOutResponse) Unmarshal(dAtA []byte) error
func (*MsgJoinSwapShareAmountOutResponse) XXX_DiscardUnknown ¶
func (m *MsgJoinSwapShareAmountOutResponse) XXX_DiscardUnknown()
func (*MsgJoinSwapShareAmountOutResponse) XXX_Marshal ¶
func (m *MsgJoinSwapShareAmountOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgJoinSwapShareAmountOutResponse) XXX_Merge ¶
func (m *MsgJoinSwapShareAmountOutResponse) XXX_Merge(src proto.Message)
func (*MsgJoinSwapShareAmountOutResponse) XXX_Size ¶
func (m *MsgJoinSwapShareAmountOutResponse) XXX_Size() int
func (*MsgJoinSwapShareAmountOutResponse) XXX_Unmarshal ¶
func (m *MsgJoinSwapShareAmountOutResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { JoinPool(context.Context, *MsgJoinPool) (*MsgJoinPoolResponse, error) ExitPool(context.Context, *MsgExitPool) (*MsgExitPoolResponse, error) SwapExactAmountIn(context.Context, *MsgSwapExactAmountIn) (*MsgSwapExactAmountInResponse, error) SwapExactAmountOut(context.Context, *MsgSwapExactAmountOut) (*MsgSwapExactAmountOutResponse, error) JoinSwapExternAmountIn(context.Context, *MsgJoinSwapExternAmountIn) (*MsgJoinSwapExternAmountInResponse, error) ExitSwapExternAmountOut(context.Context, *MsgExitSwapExternAmountOut) (*MsgExitSwapExternAmountOutResponse, error) }
MsgServer is the server API for Msg service.
type MsgSwapExactAmountIn ¶
type MsgSwapExactAmountIn struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` Routes []SwapAmountInRoute `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes"` TokenIn types.Coin `protobuf:"bytes,3,opt,name=tokenIn,proto3" json:"tokenIn" yaml:"token_in"` TokenOutMinAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 155-byte string literal not displayed */ }
func (*MsgSwapExactAmountIn) Descriptor ¶
func (*MsgSwapExactAmountIn) Descriptor() ([]byte, []int)
func (*MsgSwapExactAmountIn) GetRoutes ¶
func (m *MsgSwapExactAmountIn) GetRoutes() []SwapAmountInRoute
func (*MsgSwapExactAmountIn) GetSender ¶
func (m *MsgSwapExactAmountIn) GetSender() string
func (MsgSwapExactAmountIn) GetSignBytes ¶
func (msg MsgSwapExactAmountIn) GetSignBytes() []byte
func (MsgSwapExactAmountIn) GetSigners ¶
func (msg MsgSwapExactAmountIn) GetSigners() []sdk.AccAddress
func (*MsgSwapExactAmountIn) GetTokenIn ¶
func (m *MsgSwapExactAmountIn) GetTokenIn() types.Coin
func (*MsgSwapExactAmountIn) Marshal ¶
func (m *MsgSwapExactAmountIn) Marshal() (dAtA []byte, err error)
func (*MsgSwapExactAmountIn) MarshalTo ¶
func (m *MsgSwapExactAmountIn) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapExactAmountIn) MarshalToSizedBuffer ¶
func (m *MsgSwapExactAmountIn) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapExactAmountIn) ProtoMessage ¶
func (*MsgSwapExactAmountIn) ProtoMessage()
func (*MsgSwapExactAmountIn) Reset ¶
func (m *MsgSwapExactAmountIn) Reset()
func (MsgSwapExactAmountIn) Route ¶
func (msg MsgSwapExactAmountIn) Route() string
func (*MsgSwapExactAmountIn) Size ¶
func (m *MsgSwapExactAmountIn) Size() (n int)
func (*MsgSwapExactAmountIn) String ¶
func (m *MsgSwapExactAmountIn) String() string
func (MsgSwapExactAmountIn) TokenDenomsOnPath ¶
func (msg MsgSwapExactAmountIn) TokenDenomsOnPath() []string
func (MsgSwapExactAmountIn) TokenInDenom ¶
func (msg MsgSwapExactAmountIn) TokenInDenom() string
func (MsgSwapExactAmountIn) TokenOutDenom ¶
func (msg MsgSwapExactAmountIn) TokenOutDenom() string
func (MsgSwapExactAmountIn) Type ¶
func (msg MsgSwapExactAmountIn) Type() string
func (*MsgSwapExactAmountIn) Unmarshal ¶
func (m *MsgSwapExactAmountIn) Unmarshal(dAtA []byte) error
func (MsgSwapExactAmountIn) ValidateBasic ¶
func (msg MsgSwapExactAmountIn) ValidateBasic() error
func (*MsgSwapExactAmountIn) XXX_DiscardUnknown ¶
func (m *MsgSwapExactAmountIn) XXX_DiscardUnknown()
func (*MsgSwapExactAmountIn) XXX_Marshal ¶
func (m *MsgSwapExactAmountIn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapExactAmountIn) XXX_Merge ¶
func (m *MsgSwapExactAmountIn) XXX_Merge(src proto.Message)
func (*MsgSwapExactAmountIn) XXX_Size ¶
func (m *MsgSwapExactAmountIn) XXX_Size() int
func (*MsgSwapExactAmountIn) XXX_Unmarshal ¶
func (m *MsgSwapExactAmountIn) XXX_Unmarshal(b []byte) error
type MsgSwapExactAmountInResponse ¶
type MsgSwapExactAmountInResponse struct {
TokenOutAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */
}
func (*MsgSwapExactAmountInResponse) Descriptor ¶
func (*MsgSwapExactAmountInResponse) Descriptor() ([]byte, []int)
func (*MsgSwapExactAmountInResponse) Marshal ¶
func (m *MsgSwapExactAmountInResponse) Marshal() (dAtA []byte, err error)
func (*MsgSwapExactAmountInResponse) MarshalTo ¶
func (m *MsgSwapExactAmountInResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapExactAmountInResponse) MarshalToSizedBuffer ¶
func (m *MsgSwapExactAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapExactAmountInResponse) ProtoMessage ¶
func (*MsgSwapExactAmountInResponse) ProtoMessage()
func (*MsgSwapExactAmountInResponse) Reset ¶
func (m *MsgSwapExactAmountInResponse) Reset()
func (*MsgSwapExactAmountInResponse) Size ¶
func (m *MsgSwapExactAmountInResponse) Size() (n int)
func (*MsgSwapExactAmountInResponse) String ¶
func (m *MsgSwapExactAmountInResponse) String() string
func (*MsgSwapExactAmountInResponse) Unmarshal ¶
func (m *MsgSwapExactAmountInResponse) Unmarshal(dAtA []byte) error
func (*MsgSwapExactAmountInResponse) XXX_DiscardUnknown ¶
func (m *MsgSwapExactAmountInResponse) XXX_DiscardUnknown()
func (*MsgSwapExactAmountInResponse) XXX_Marshal ¶
func (m *MsgSwapExactAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapExactAmountInResponse) XXX_Merge ¶
func (m *MsgSwapExactAmountInResponse) XXX_Merge(src proto.Message)
func (*MsgSwapExactAmountInResponse) XXX_Size ¶
func (m *MsgSwapExactAmountInResponse) XXX_Size() int
func (*MsgSwapExactAmountInResponse) XXX_Unmarshal ¶
func (m *MsgSwapExactAmountInResponse) XXX_Unmarshal(b []byte) error
type MsgSwapExactAmountOut ¶
type MsgSwapExactAmountOut struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` Routes []SwapAmountOutRoute `protobuf:"bytes,2,rep,name=routes,proto3" json:"routes"` TokenInMaxAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 152-byte string literal not displayed */ TokenOut types.Coin `protobuf:"bytes,4,opt,name=tokenOut,proto3" json:"tokenOut" yaml:"token_out"` }
func (*MsgSwapExactAmountOut) Descriptor ¶
func (*MsgSwapExactAmountOut) Descriptor() ([]byte, []int)
func (*MsgSwapExactAmountOut) GetRoutes ¶
func (m *MsgSwapExactAmountOut) GetRoutes() []SwapAmountOutRoute
func (*MsgSwapExactAmountOut) GetSender ¶
func (m *MsgSwapExactAmountOut) GetSender() string
func (MsgSwapExactAmountOut) GetSignBytes ¶
func (msg MsgSwapExactAmountOut) GetSignBytes() []byte
func (MsgSwapExactAmountOut) GetSigners ¶
func (msg MsgSwapExactAmountOut) GetSigners() []sdk.AccAddress
func (*MsgSwapExactAmountOut) GetTokenOut ¶
func (m *MsgSwapExactAmountOut) GetTokenOut() types.Coin
func (*MsgSwapExactAmountOut) Marshal ¶
func (m *MsgSwapExactAmountOut) Marshal() (dAtA []byte, err error)
func (*MsgSwapExactAmountOut) MarshalTo ¶
func (m *MsgSwapExactAmountOut) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapExactAmountOut) MarshalToSizedBuffer ¶
func (m *MsgSwapExactAmountOut) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapExactAmountOut) ProtoMessage ¶
func (*MsgSwapExactAmountOut) ProtoMessage()
func (*MsgSwapExactAmountOut) Reset ¶
func (m *MsgSwapExactAmountOut) Reset()
func (MsgSwapExactAmountOut) Route ¶
func (msg MsgSwapExactAmountOut) Route() string
func (*MsgSwapExactAmountOut) Size ¶
func (m *MsgSwapExactAmountOut) Size() (n int)
func (*MsgSwapExactAmountOut) String ¶
func (m *MsgSwapExactAmountOut) String() string
func (MsgSwapExactAmountOut) TokenDenomsOnPath ¶
func (msg MsgSwapExactAmountOut) TokenDenomsOnPath() []string
func (MsgSwapExactAmountOut) TokenInDenom ¶
func (msg MsgSwapExactAmountOut) TokenInDenom() string
func (MsgSwapExactAmountOut) TokenOutDenom ¶
func (msg MsgSwapExactAmountOut) TokenOutDenom() string
func (MsgSwapExactAmountOut) Type ¶
func (msg MsgSwapExactAmountOut) Type() string
func (*MsgSwapExactAmountOut) Unmarshal ¶
func (m *MsgSwapExactAmountOut) Unmarshal(dAtA []byte) error
func (MsgSwapExactAmountOut) ValidateBasic ¶
func (msg MsgSwapExactAmountOut) ValidateBasic() error
func (*MsgSwapExactAmountOut) XXX_DiscardUnknown ¶
func (m *MsgSwapExactAmountOut) XXX_DiscardUnknown()
func (*MsgSwapExactAmountOut) XXX_Marshal ¶
func (m *MsgSwapExactAmountOut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapExactAmountOut) XXX_Merge ¶
func (m *MsgSwapExactAmountOut) XXX_Merge(src proto.Message)
func (*MsgSwapExactAmountOut) XXX_Size ¶
func (m *MsgSwapExactAmountOut) XXX_Size() int
func (*MsgSwapExactAmountOut) XXX_Unmarshal ¶
func (m *MsgSwapExactAmountOut) XXX_Unmarshal(b []byte) error
type MsgSwapExactAmountOutResponse ¶
type MsgSwapExactAmountOutResponse struct {
TokenInAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 142-byte string literal not displayed */
}
func (*MsgSwapExactAmountOutResponse) Descriptor ¶
func (*MsgSwapExactAmountOutResponse) Descriptor() ([]byte, []int)
func (*MsgSwapExactAmountOutResponse) Marshal ¶
func (m *MsgSwapExactAmountOutResponse) Marshal() (dAtA []byte, err error)
func (*MsgSwapExactAmountOutResponse) MarshalTo ¶
func (m *MsgSwapExactAmountOutResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSwapExactAmountOutResponse) MarshalToSizedBuffer ¶
func (m *MsgSwapExactAmountOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapExactAmountOutResponse) ProtoMessage ¶
func (*MsgSwapExactAmountOutResponse) ProtoMessage()
func (*MsgSwapExactAmountOutResponse) Reset ¶
func (m *MsgSwapExactAmountOutResponse) Reset()
func (*MsgSwapExactAmountOutResponse) Size ¶
func (m *MsgSwapExactAmountOutResponse) Size() (n int)
func (*MsgSwapExactAmountOutResponse) String ¶
func (m *MsgSwapExactAmountOutResponse) String() string
func (*MsgSwapExactAmountOutResponse) Unmarshal ¶
func (m *MsgSwapExactAmountOutResponse) Unmarshal(dAtA []byte) error
func (*MsgSwapExactAmountOutResponse) XXX_DiscardUnknown ¶
func (m *MsgSwapExactAmountOutResponse) XXX_DiscardUnknown()
func (*MsgSwapExactAmountOutResponse) XXX_Marshal ¶
func (m *MsgSwapExactAmountOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapExactAmountOutResponse) XXX_Merge ¶
func (m *MsgSwapExactAmountOutResponse) XXX_Merge(src proto.Message)
func (*MsgSwapExactAmountOutResponse) XXX_Size ¶
func (m *MsgSwapExactAmountOutResponse) XXX_Size() int
func (*MsgSwapExactAmountOutResponse) XXX_Unmarshal ¶
func (m *MsgSwapExactAmountOutResponse) XXX_Unmarshal(b []byte) error
type MultiGammHooks ¶
type MultiGammHooks []GammHooks
combine multiple gamm hooks, all hook functions are run in array sequence.
func NewMultiGammHooks ¶
func NewMultiGammHooks(hooks ...GammHooks) MultiGammHooks
Creates hooks for the Gamm Module.
func (MultiGammHooks) AfterExitPool ¶
func (h MultiGammHooks) AfterExitPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, shareInAmount sdk.Int, exitCoins sdk.Coins)
func (MultiGammHooks) AfterJoinPool ¶
func (h MultiGammHooks) AfterJoinPool(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, enterCoins sdk.Coins, shareOutAmount sdk.Int)
func (MultiGammHooks) AfterPoolCreated ¶
func (h MultiGammHooks) AfterPoolCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)
type Params ¶
type Params struct {
PoolCreationFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 177-byte string literal not displayed */
}
Params holds parameters for the incentives module
func (*Params) Descriptor ¶
func (*Params) GetPoolCreationFee ¶
func (m *Params) GetPoolCreationFee() github_com_cosmos_cosmos_sdk_types.Coins
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
Implements 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 PoolAmountOutExtension ¶
type PoolAmountOutExtension interface { PoolI // that would be returned if swapped for an exact number of shares (shareOutAmount). // Returns error if tokenInDenom is not in the pool or if fails to approximate // given the shareOutAmount. // This method does not mutate the pool CalcTokenInShareAmountOut( ctx sdk.Context, tokenInDenom string, shareOutAmount sdk.Int, swapFee sdk.Dec, ) (tokenInAmount sdk.Int, err error) // and swaps to an exact number of shares (shareOutAmount). JoinPoolTokenInMaxShareAmountOut( ctx sdk.Context, tokenInDenom string, shareOutAmount sdk.Int, ) (tokenInAmount sdk.Int, err error) // ExitSwapExactAmountOut removes liquidity from a specified pool with a maximum amount of LP shares (shareInMaxAmount) // and swaps to an exact amount of one of the token pairs (tokenOut). ExitSwapExactAmountOut( ctx sdk.Context, tokenOut sdk.Coin, shareInMaxAmount sdk.Int, ) (shareInAmount sdk.Int, err error) // IncreaseLiquidity increases the pool's liquidity by the specified sharesOut and coinsIn. IncreaseLiquidity(sharesOut sdk.Int, coinsIn sdk.Coins) }
PoolAmountOutExtension is an extension of the PoolI interface definiting an abstraction for pools that hold tokens. In addition, it supports JoinSwapShareAmountOut and ExitSwapExactAmountOut methods that allow joining with the exact amount of shares to get out, and exiting with exact amount of coins to get out. See definitions below.
type PoolI ¶
type PoolI interface { proto.Message GetAddress() sdk.AccAddress String() string GetId() uint64 // GetSwapFee returns the pool's swap fee, based on the current state. // Pools may choose to make their swap fees dependent upon state // (prior TWAPs, network downtime, other pool states, etc.) // hence Context is provided as an argument. GetSwapFee(ctx sdk.Context) sdk.Dec // GetExitFee returns the pool's exit fee, based on the current state. // Pools may choose to make their exit fees dependent upon state. GetExitFee(ctx sdk.Context) sdk.Dec // Returns whether the pool has swaps enabled at the moment IsActive(ctx sdk.Context) bool // GetTotalPoolLiquidity returns the coins in the pool owned by all LPs GetTotalPoolLiquidity(ctx sdk.Context) sdk.Coins GetTotalShares() sdk.Int // SwapOutAmtGivenIn swaps 'tokenIn' against the pool, for tokenOutDenom, with the provided swapFee charged. // Balance transfers are done in the keeper, but this method updates the internal pool state. SwapOutAmtGivenIn(ctx sdk.Context, tokenIn sdk.Coins, tokenOutDenom string, swapFee sdk.Dec) (tokenOut sdk.Coin, err error) // CalcOutAmtGivenIn returns how many coins SwapOutAmtGivenIn would return on these arguments. // This does not mutate the pool, or state. CalcOutAmtGivenIn(ctx sdk.Context, tokenIn sdk.Coins, tokenOutDenom string, swapFee sdk.Dec) (tokenOut sdk.Coin, err error) // SwapInAmtGivenOut swaps exactly enough tokensIn against the pool, to get the provided tokenOut amount out of the pool. // Balance transfers are done in the keeper, but this method updates the internal pool state. SwapInAmtGivenOut(ctx sdk.Context, tokenOut sdk.Coins, tokenInDenom string, swapFee sdk.Dec) (tokenIn sdk.Coin, err error) // CalcInAmtGivenOut returns how many coins SwapInAmtGivenOut would return on these arguments. // This does not mutate the pool, or state. CalcInAmtGivenOut(ctx sdk.Context, tokenOut sdk.Coins, tokenInDenom string, swapFee sdk.Dec) (tokenIn sdk.Coin, err error) // Returns the spot price of the 'base asset' in terms of the 'quote asset' in the pool, // errors if either baseAssetDenom, or quoteAssetDenom does not exist. // For example, if this was a UniV2 50-50 pool, with 2 ETH, and 8000 UST // pool.SpotPrice(ctx, "eth", "ust") = 4000.00 SpotPrice(ctx sdk.Context, baseAssetDenom string, quoteAssetDenom string) (sdk.Dec, error) // JoinPool joins the pool using all of the tokensIn provided. // The AMM swaps to the correct internal ratio should be and returns the number of shares created. // This function is mutative and updates the pool's internal state if there is no error. // It is up to pool implementation if they support LP'ing at arbitrary ratios, or a subset of ratios. // Pools are expected to guarantee LP'ing at the exact ratio, and single sided LP'ing. JoinPool(ctx sdk.Context, tokensIn sdk.Coins, swapFee sdk.Dec) (numShares sdk.Int, err error) // This does not mutate the pool, or state. CalcJoinPoolShares(ctx sdk.Context, tokensIn sdk.Coins, swapFee sdk.Dec) (numShares sdk.Int, newLiquidity sdk.Coins, err error) // ExitPool exits #numShares LP shares from the pool, decreases its internal liquidity & LP share totals, // and returns the number of coins that are being returned. // This mutates the pool and state. ExitPool(ctx sdk.Context, numShares sdk.Int, exitFee sdk.Dec) (exitedCoins sdk.Coins, err error) // This does not mutate the pool, or state. CalcExitPoolShares(ctx sdk.Context, numShares sdk.Int, exitFee sdk.Dec) (exitedCoins sdk.Coins, err error) // PokePool determines if a pool's weights need to be updated and updates // them if so. PokePool(blockTime time.Time) }
PoolI defines an interface for pools that hold tokens.
type QueryClient ¶
type QueryClient interface { Pools(ctx context.Context, in *QueryPoolsRequest, opts ...grpc.CallOption) (*QueryPoolsResponse, error) NumPools(ctx context.Context, in *QueryNumPoolsRequest, opts ...grpc.CallOption) (*QueryNumPoolsResponse, error) TotalLiquidity(ctx context.Context, in *QueryTotalLiquidityRequest, opts ...grpc.CallOption) (*QueryTotalLiquidityResponse, error) // Per Pool gRPC Endpoints Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error) PoolParams(ctx context.Context, in *QueryPoolParamsRequest, opts ...grpc.CallOption) (*QueryPoolParamsResponse, error) TotalPoolLiquidity(ctx context.Context, in *QueryTotalPoolLiquidityRequest, opts ...grpc.CallOption) (*QueryTotalPoolLiquidityResponse, error) // SpotPrice defines a gRPC query handler that returns the spot price given // a base denomination and a quote denomination. SpotPrice(ctx context.Context, in *QuerySpotPriceRequest, opts ...grpc.CallOption) (*QuerySpotPriceResponse, error) // Estimate the swap. EstimateSwapExactAmountIn(ctx context.Context, in *QuerySwapExactAmountInRequest, opts ...grpc.CallOption) (*QuerySwapExactAmountInResponse, error) EstimateSwapExactAmountOut(ctx context.Context, in *QuerySwapExactAmountOutRequest, opts ...grpc.CallOption) (*QuerySwapExactAmountOutResponse, 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 QueryNumPoolsRequest ¶
type QueryNumPoolsRequest struct { }
=============================== NumPools
func (*QueryNumPoolsRequest) Descriptor ¶
func (*QueryNumPoolsRequest) Descriptor() ([]byte, []int)
func (*QueryNumPoolsRequest) Marshal ¶
func (m *QueryNumPoolsRequest) Marshal() (dAtA []byte, err error)
func (*QueryNumPoolsRequest) MarshalTo ¶
func (m *QueryNumPoolsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryNumPoolsRequest) MarshalToSizedBuffer ¶
func (m *QueryNumPoolsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNumPoolsRequest) ProtoMessage ¶
func (*QueryNumPoolsRequest) ProtoMessage()
func (*QueryNumPoolsRequest) Reset ¶
func (m *QueryNumPoolsRequest) Reset()
func (*QueryNumPoolsRequest) Size ¶
func (m *QueryNumPoolsRequest) Size() (n int)
func (*QueryNumPoolsRequest) String ¶
func (m *QueryNumPoolsRequest) String() string
func (*QueryNumPoolsRequest) Unmarshal ¶
func (m *QueryNumPoolsRequest) Unmarshal(dAtA []byte) error
func (*QueryNumPoolsRequest) XXX_DiscardUnknown ¶
func (m *QueryNumPoolsRequest) XXX_DiscardUnknown()
func (*QueryNumPoolsRequest) XXX_Marshal ¶
func (m *QueryNumPoolsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNumPoolsRequest) XXX_Merge ¶
func (m *QueryNumPoolsRequest) XXX_Merge(src proto.Message)
func (*QueryNumPoolsRequest) XXX_Size ¶
func (m *QueryNumPoolsRequest) XXX_Size() int
func (*QueryNumPoolsRequest) XXX_Unmarshal ¶
func (m *QueryNumPoolsRequest) XXX_Unmarshal(b []byte) error
type QueryNumPoolsResponse ¶
type QueryNumPoolsResponse struct {
NumPools uint64 `protobuf:"varint,1,opt,name=numPools,proto3" json:"numPools,omitempty" yaml:"num_pools"`
}
func (*QueryNumPoolsResponse) Descriptor ¶
func (*QueryNumPoolsResponse) Descriptor() ([]byte, []int)
func (*QueryNumPoolsResponse) GetNumPools ¶
func (m *QueryNumPoolsResponse) GetNumPools() uint64
func (*QueryNumPoolsResponse) Marshal ¶
func (m *QueryNumPoolsResponse) Marshal() (dAtA []byte, err error)
func (*QueryNumPoolsResponse) MarshalTo ¶
func (m *QueryNumPoolsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryNumPoolsResponse) MarshalToSizedBuffer ¶
func (m *QueryNumPoolsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryNumPoolsResponse) ProtoMessage ¶
func (*QueryNumPoolsResponse) ProtoMessage()
func (*QueryNumPoolsResponse) Reset ¶
func (m *QueryNumPoolsResponse) Reset()
func (*QueryNumPoolsResponse) Size ¶
func (m *QueryNumPoolsResponse) Size() (n int)
func (*QueryNumPoolsResponse) String ¶
func (m *QueryNumPoolsResponse) String() string
func (*QueryNumPoolsResponse) Unmarshal ¶
func (m *QueryNumPoolsResponse) Unmarshal(dAtA []byte) error
func (*QueryNumPoolsResponse) XXX_DiscardUnknown ¶
func (m *QueryNumPoolsResponse) XXX_DiscardUnknown()
func (*QueryNumPoolsResponse) XXX_Marshal ¶
func (m *QueryNumPoolsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryNumPoolsResponse) XXX_Merge ¶
func (m *QueryNumPoolsResponse) XXX_Merge(src proto.Message)
func (*QueryNumPoolsResponse) XXX_Size ¶
func (m *QueryNumPoolsResponse) XXX_Size() int
func (*QueryNumPoolsResponse) XXX_Unmarshal ¶
func (m *QueryNumPoolsResponse) XXX_Unmarshal(b []byte) error
type QueryPoolParamsRequest ¶
type QueryPoolParamsRequest struct {
PoolId uint64 `protobuf:"varint,1,opt,name=poolId,proto3" json:"poolId,omitempty" yaml:"pool_id"`
}
=============================== PoolParams
func (*QueryPoolParamsRequest) Descriptor ¶
func (*QueryPoolParamsRequest) Descriptor() ([]byte, []int)
func (*QueryPoolParamsRequest) GetPoolId ¶
func (m *QueryPoolParamsRequest) GetPoolId() uint64
func (*QueryPoolParamsRequest) Marshal ¶
func (m *QueryPoolParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPoolParamsRequest) MarshalTo ¶
func (m *QueryPoolParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPoolParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryPoolParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolParamsRequest) ProtoMessage ¶
func (*QueryPoolParamsRequest) ProtoMessage()
func (*QueryPoolParamsRequest) Reset ¶
func (m *QueryPoolParamsRequest) Reset()
func (*QueryPoolParamsRequest) Size ¶
func (m *QueryPoolParamsRequest) Size() (n int)
func (*QueryPoolParamsRequest) String ¶
func (m *QueryPoolParamsRequest) String() string
func (*QueryPoolParamsRequest) Unmarshal ¶
func (m *QueryPoolParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryPoolParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryPoolParamsRequest) XXX_DiscardUnknown()
func (*QueryPoolParamsRequest) XXX_Marshal ¶
func (m *QueryPoolParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolParamsRequest) XXX_Merge ¶
func (m *QueryPoolParamsRequest) XXX_Merge(src proto.Message)
func (*QueryPoolParamsRequest) XXX_Size ¶
func (m *QueryPoolParamsRequest) XXX_Size() int
func (*QueryPoolParamsRequest) XXX_Unmarshal ¶
func (m *QueryPoolParamsRequest) XXX_Unmarshal(b []byte) error
type QueryPoolParamsResponse ¶
type QueryPoolParamsResponse struct {
Params *types.Any `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (*QueryPoolParamsResponse) Descriptor ¶
func (*QueryPoolParamsResponse) Descriptor() ([]byte, []int)
func (*QueryPoolParamsResponse) GetParams ¶
func (m *QueryPoolParamsResponse) GetParams() *types.Any
func (*QueryPoolParamsResponse) Marshal ¶
func (m *QueryPoolParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPoolParamsResponse) MarshalTo ¶
func (m *QueryPoolParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPoolParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryPoolParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolParamsResponse) ProtoMessage ¶
func (*QueryPoolParamsResponse) ProtoMessage()
func (*QueryPoolParamsResponse) Reset ¶
func (m *QueryPoolParamsResponse) Reset()
func (*QueryPoolParamsResponse) Size ¶
func (m *QueryPoolParamsResponse) Size() (n int)
func (*QueryPoolParamsResponse) String ¶
func (m *QueryPoolParamsResponse) String() string
func (*QueryPoolParamsResponse) Unmarshal ¶
func (m *QueryPoolParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryPoolParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryPoolParamsResponse) XXX_DiscardUnknown()
func (*QueryPoolParamsResponse) XXX_Marshal ¶
func (m *QueryPoolParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolParamsResponse) XXX_Merge ¶
func (m *QueryPoolParamsResponse) XXX_Merge(src proto.Message)
func (*QueryPoolParamsResponse) XXX_Size ¶
func (m *QueryPoolParamsResponse) XXX_Size() int
func (*QueryPoolParamsResponse) XXX_Unmarshal ¶
func (m *QueryPoolParamsResponse) XXX_Unmarshal(b []byte) error
type QueryPoolRequest ¶
type QueryPoolRequest struct {
PoolId uint64 `protobuf:"varint,1,opt,name=poolId,proto3" json:"poolId,omitempty" yaml:"pool_id"`
}
=============================== Pool
func (*QueryPoolRequest) Descriptor ¶
func (*QueryPoolRequest) Descriptor() ([]byte, []int)
func (*QueryPoolRequest) GetPoolId ¶
func (m *QueryPoolRequest) GetPoolId() uint64
func (*QueryPoolRequest) Marshal ¶
func (m *QueryPoolRequest) Marshal() (dAtA []byte, err error)
func (*QueryPoolRequest) MarshalToSizedBuffer ¶
func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolRequest) ProtoMessage ¶
func (*QueryPoolRequest) ProtoMessage()
func (*QueryPoolRequest) Reset ¶
func (m *QueryPoolRequest) Reset()
func (*QueryPoolRequest) Size ¶
func (m *QueryPoolRequest) Size() (n int)
func (*QueryPoolRequest) String ¶
func (m *QueryPoolRequest) String() string
func (*QueryPoolRequest) Unmarshal ¶
func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error
func (*QueryPoolRequest) XXX_DiscardUnknown ¶
func (m *QueryPoolRequest) XXX_DiscardUnknown()
func (*QueryPoolRequest) XXX_Marshal ¶
func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolRequest) XXX_Merge ¶
func (m *QueryPoolRequest) XXX_Merge(src proto.Message)
func (*QueryPoolRequest) XXX_Size ¶
func (m *QueryPoolRequest) XXX_Size() int
func (*QueryPoolRequest) XXX_Unmarshal ¶
func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error
type QueryPoolResponse ¶
type QueryPoolResponse struct {
Pool *types.Any `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"`
}
func (*QueryPoolResponse) Descriptor ¶
func (*QueryPoolResponse) Descriptor() ([]byte, []int)
func (*QueryPoolResponse) GetPool ¶
func (m *QueryPoolResponse) GetPool() *types.Any
func (*QueryPoolResponse) Marshal ¶
func (m *QueryPoolResponse) Marshal() (dAtA []byte, err error)
func (*QueryPoolResponse) MarshalTo ¶
func (m *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPoolResponse) MarshalToSizedBuffer ¶
func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolResponse) ProtoMessage ¶
func (*QueryPoolResponse) ProtoMessage()
func (*QueryPoolResponse) Reset ¶
func (m *QueryPoolResponse) Reset()
func (*QueryPoolResponse) Size ¶
func (m *QueryPoolResponse) Size() (n int)
func (*QueryPoolResponse) String ¶
func (m *QueryPoolResponse) String() string
func (*QueryPoolResponse) Unmarshal ¶
func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error
func (*QueryPoolResponse) XXX_DiscardUnknown ¶
func (m *QueryPoolResponse) XXX_DiscardUnknown()
func (*QueryPoolResponse) XXX_Marshal ¶
func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolResponse) XXX_Merge ¶
func (m *QueryPoolResponse) XXX_Merge(src proto.Message)
func (*QueryPoolResponse) XXX_Size ¶
func (m *QueryPoolResponse) XXX_Size() int
func (*QueryPoolResponse) XXX_Unmarshal ¶
func (m *QueryPoolResponse) XXX_Unmarshal(b []byte) error
type QueryPoolsRequest ¶
type QueryPoolsRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
=============================== Pools
func (*QueryPoolsRequest) Descriptor ¶
func (*QueryPoolsRequest) Descriptor() ([]byte, []int)
func (*QueryPoolsRequest) GetPagination ¶
func (m *QueryPoolsRequest) GetPagination() *query.PageRequest
func (*QueryPoolsRequest) Marshal ¶
func (m *QueryPoolsRequest) Marshal() (dAtA []byte, err error)
func (*QueryPoolsRequest) MarshalTo ¶
func (m *QueryPoolsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryPoolsRequest) MarshalToSizedBuffer ¶
func (m *QueryPoolsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolsRequest) ProtoMessage ¶
func (*QueryPoolsRequest) ProtoMessage()
func (*QueryPoolsRequest) Reset ¶
func (m *QueryPoolsRequest) Reset()
func (*QueryPoolsRequest) Size ¶
func (m *QueryPoolsRequest) Size() (n int)
func (*QueryPoolsRequest) String ¶
func (m *QueryPoolsRequest) String() string
func (*QueryPoolsRequest) Unmarshal ¶
func (m *QueryPoolsRequest) Unmarshal(dAtA []byte) error
func (*QueryPoolsRequest) XXX_DiscardUnknown ¶
func (m *QueryPoolsRequest) XXX_DiscardUnknown()
func (*QueryPoolsRequest) XXX_Marshal ¶
func (m *QueryPoolsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolsRequest) XXX_Merge ¶
func (m *QueryPoolsRequest) XXX_Merge(src proto.Message)
func (*QueryPoolsRequest) XXX_Size ¶
func (m *QueryPoolsRequest) XXX_Size() int
func (*QueryPoolsRequest) XXX_Unmarshal ¶
func (m *QueryPoolsRequest) XXX_Unmarshal(b []byte) error
type QueryPoolsResponse ¶
type QueryPoolsResponse struct { Pools []*types.Any `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryPoolsResponse) Descriptor ¶
func (*QueryPoolsResponse) Descriptor() ([]byte, []int)
func (*QueryPoolsResponse) GetPagination ¶
func (m *QueryPoolsResponse) GetPagination() *query.PageResponse
func (*QueryPoolsResponse) GetPools ¶
func (m *QueryPoolsResponse) GetPools() []*types.Any
func (*QueryPoolsResponse) Marshal ¶
func (m *QueryPoolsResponse) Marshal() (dAtA []byte, err error)
func (*QueryPoolsResponse) MarshalTo ¶
func (m *QueryPoolsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryPoolsResponse) MarshalToSizedBuffer ¶
func (m *QueryPoolsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryPoolsResponse) ProtoMessage ¶
func (*QueryPoolsResponse) ProtoMessage()
func (*QueryPoolsResponse) Reset ¶
func (m *QueryPoolsResponse) Reset()
func (*QueryPoolsResponse) Size ¶
func (m *QueryPoolsResponse) Size() (n int)
func (*QueryPoolsResponse) String ¶
func (m *QueryPoolsResponse) String() string
func (*QueryPoolsResponse) Unmarshal ¶
func (m *QueryPoolsResponse) Unmarshal(dAtA []byte) error
func (*QueryPoolsResponse) XXX_DiscardUnknown ¶
func (m *QueryPoolsResponse) XXX_DiscardUnknown()
func (*QueryPoolsResponse) XXX_Marshal ¶
func (m *QueryPoolsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryPoolsResponse) XXX_Merge ¶
func (m *QueryPoolsResponse) XXX_Merge(src proto.Message)
func (*QueryPoolsResponse) XXX_Size ¶
func (m *QueryPoolsResponse) XXX_Size() int
func (*QueryPoolsResponse) XXX_Unmarshal ¶
func (m *QueryPoolsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { Pools(context.Context, *QueryPoolsRequest) (*QueryPoolsResponse, error) NumPools(context.Context, *QueryNumPoolsRequest) (*QueryNumPoolsResponse, error) TotalLiquidity(context.Context, *QueryTotalLiquidityRequest) (*QueryTotalLiquidityResponse, error) // Per Pool gRPC Endpoints Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error) PoolParams(context.Context, *QueryPoolParamsRequest) (*QueryPoolParamsResponse, error) TotalPoolLiquidity(context.Context, *QueryTotalPoolLiquidityRequest) (*QueryTotalPoolLiquidityResponse, error) // SpotPrice defines a gRPC query handler that returns the spot price given // a base denomination and a quote denomination. SpotPrice(context.Context, *QuerySpotPriceRequest) (*QuerySpotPriceResponse, error) // Estimate the swap. EstimateSwapExactAmountIn(context.Context, *QuerySwapExactAmountInRequest) (*QuerySwapExactAmountInResponse, error) EstimateSwapExactAmountOut(context.Context, *QuerySwapExactAmountOutRequest) (*QuerySwapExactAmountOutResponse, error) }
QueryServer is the server API for Query service.
type QuerySpotPriceRequest ¶
type QuerySpotPriceRequest struct { PoolId uint64 `protobuf:"varint,1,opt,name=poolId,proto3" json:"poolId,omitempty" yaml:"pool_id"` BaseAssetDenom string `` /* 129-byte string literal not displayed */ QuoteAssetDenom string `` /* 133-byte string literal not displayed */ }
QuerySpotPriceRequest defines the gRPC request structure for a SpotPrice query.
func (*QuerySpotPriceRequest) Descriptor ¶
func (*QuerySpotPriceRequest) Descriptor() ([]byte, []int)
func (*QuerySpotPriceRequest) GetBaseAssetDenom ¶
func (m *QuerySpotPriceRequest) GetBaseAssetDenom() string
func (*QuerySpotPriceRequest) GetPoolId ¶
func (m *QuerySpotPriceRequest) GetPoolId() uint64
func (*QuerySpotPriceRequest) GetQuoteAssetDenom ¶
func (m *QuerySpotPriceRequest) GetQuoteAssetDenom() string
func (*QuerySpotPriceRequest) Marshal ¶
func (m *QuerySpotPriceRequest) Marshal() (dAtA []byte, err error)
func (*QuerySpotPriceRequest) MarshalTo ¶
func (m *QuerySpotPriceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySpotPriceRequest) MarshalToSizedBuffer ¶
func (m *QuerySpotPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySpotPriceRequest) ProtoMessage ¶
func (*QuerySpotPriceRequest) ProtoMessage()
func (*QuerySpotPriceRequest) Reset ¶
func (m *QuerySpotPriceRequest) Reset()
func (*QuerySpotPriceRequest) Size ¶
func (m *QuerySpotPriceRequest) Size() (n int)
func (*QuerySpotPriceRequest) String ¶
func (m *QuerySpotPriceRequest) String() string
func (*QuerySpotPriceRequest) Unmarshal ¶
func (m *QuerySpotPriceRequest) Unmarshal(dAtA []byte) error
func (*QuerySpotPriceRequest) XXX_DiscardUnknown ¶
func (m *QuerySpotPriceRequest) XXX_DiscardUnknown()
func (*QuerySpotPriceRequest) XXX_Marshal ¶
func (m *QuerySpotPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySpotPriceRequest) XXX_Merge ¶
func (m *QuerySpotPriceRequest) XXX_Merge(src proto.Message)
func (*QuerySpotPriceRequest) XXX_Size ¶
func (m *QuerySpotPriceRequest) XXX_Size() int
func (*QuerySpotPriceRequest) XXX_Unmarshal ¶
func (m *QuerySpotPriceRequest) XXX_Unmarshal(b []byte) error
type QuerySpotPriceResponse ¶
type QuerySpotPriceResponse struct { // String of the Dec. Ex) 10.203uatom SpotPrice string `protobuf:"bytes,1,opt,name=spotPrice,proto3" json:"spotPrice,omitempty" yaml:"spot_price"` }
QuerySpotPriceResponse defines the gRPC response structure for a SpotPrice query.
func (*QuerySpotPriceResponse) Descriptor ¶
func (*QuerySpotPriceResponse) Descriptor() ([]byte, []int)
func (*QuerySpotPriceResponse) GetSpotPrice ¶
func (m *QuerySpotPriceResponse) GetSpotPrice() string
func (*QuerySpotPriceResponse) Marshal ¶
func (m *QuerySpotPriceResponse) Marshal() (dAtA []byte, err error)
func (*QuerySpotPriceResponse) MarshalTo ¶
func (m *QuerySpotPriceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySpotPriceResponse) MarshalToSizedBuffer ¶
func (m *QuerySpotPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySpotPriceResponse) ProtoMessage ¶
func (*QuerySpotPriceResponse) ProtoMessage()
func (*QuerySpotPriceResponse) Reset ¶
func (m *QuerySpotPriceResponse) Reset()
func (*QuerySpotPriceResponse) Size ¶
func (m *QuerySpotPriceResponse) Size() (n int)
func (*QuerySpotPriceResponse) String ¶
func (m *QuerySpotPriceResponse) String() string
func (*QuerySpotPriceResponse) Unmarshal ¶
func (m *QuerySpotPriceResponse) Unmarshal(dAtA []byte) error
func (*QuerySpotPriceResponse) XXX_DiscardUnknown ¶
func (m *QuerySpotPriceResponse) XXX_DiscardUnknown()
func (*QuerySpotPriceResponse) XXX_Marshal ¶
func (m *QuerySpotPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySpotPriceResponse) XXX_Merge ¶
func (m *QuerySpotPriceResponse) XXX_Merge(src proto.Message)
func (*QuerySpotPriceResponse) XXX_Size ¶
func (m *QuerySpotPriceResponse) XXX_Size() int
func (*QuerySpotPriceResponse) XXX_Unmarshal ¶
func (m *QuerySpotPriceResponse) XXX_Unmarshal(b []byte) error
type QuerySwapExactAmountInRequest ¶
type QuerySwapExactAmountInRequest struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` PoolId uint64 `protobuf:"varint,2,opt,name=poolId,proto3" json:"poolId,omitempty" yaml:"pool_id"` TokenIn string `protobuf:"bytes,3,opt,name=tokenIn,proto3" json:"tokenIn,omitempty" yaml:"token_in"` Routes []SwapAmountInRoute `protobuf:"bytes,4,rep,name=routes,proto3" json:"routes" yaml:"routes"` }
=============================== EstimateSwapExactAmountIn
func (*QuerySwapExactAmountInRequest) Descriptor ¶
func (*QuerySwapExactAmountInRequest) Descriptor() ([]byte, []int)
func (*QuerySwapExactAmountInRequest) GetPoolId ¶
func (m *QuerySwapExactAmountInRequest) GetPoolId() uint64
func (*QuerySwapExactAmountInRequest) GetRoutes ¶
func (m *QuerySwapExactAmountInRequest) GetRoutes() []SwapAmountInRoute
func (*QuerySwapExactAmountInRequest) GetSender ¶
func (m *QuerySwapExactAmountInRequest) GetSender() string
func (*QuerySwapExactAmountInRequest) GetTokenIn ¶
func (m *QuerySwapExactAmountInRequest) GetTokenIn() string
func (*QuerySwapExactAmountInRequest) Marshal ¶
func (m *QuerySwapExactAmountInRequest) Marshal() (dAtA []byte, err error)
func (*QuerySwapExactAmountInRequest) MarshalTo ¶
func (m *QuerySwapExactAmountInRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySwapExactAmountInRequest) MarshalToSizedBuffer ¶
func (m *QuerySwapExactAmountInRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySwapExactAmountInRequest) ProtoMessage ¶
func (*QuerySwapExactAmountInRequest) ProtoMessage()
func (*QuerySwapExactAmountInRequest) Reset ¶
func (m *QuerySwapExactAmountInRequest) Reset()
func (*QuerySwapExactAmountInRequest) Size ¶
func (m *QuerySwapExactAmountInRequest) Size() (n int)
func (*QuerySwapExactAmountInRequest) String ¶
func (m *QuerySwapExactAmountInRequest) String() string
func (*QuerySwapExactAmountInRequest) Unmarshal ¶
func (m *QuerySwapExactAmountInRequest) Unmarshal(dAtA []byte) error
func (*QuerySwapExactAmountInRequest) XXX_DiscardUnknown ¶
func (m *QuerySwapExactAmountInRequest) XXX_DiscardUnknown()
func (*QuerySwapExactAmountInRequest) XXX_Marshal ¶
func (m *QuerySwapExactAmountInRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySwapExactAmountInRequest) XXX_Merge ¶
func (m *QuerySwapExactAmountInRequest) XXX_Merge(src proto.Message)
func (*QuerySwapExactAmountInRequest) XXX_Size ¶
func (m *QuerySwapExactAmountInRequest) XXX_Size() int
func (*QuerySwapExactAmountInRequest) XXX_Unmarshal ¶
func (m *QuerySwapExactAmountInRequest) XXX_Unmarshal(b []byte) error
type QuerySwapExactAmountInResponse ¶
type QuerySwapExactAmountInResponse struct {
TokenOutAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 145-byte string literal not displayed */
}
func (*QuerySwapExactAmountInResponse) Descriptor ¶
func (*QuerySwapExactAmountInResponse) Descriptor() ([]byte, []int)
func (*QuerySwapExactAmountInResponse) Marshal ¶
func (m *QuerySwapExactAmountInResponse) Marshal() (dAtA []byte, err error)
func (*QuerySwapExactAmountInResponse) MarshalTo ¶
func (m *QuerySwapExactAmountInResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySwapExactAmountInResponse) MarshalToSizedBuffer ¶
func (m *QuerySwapExactAmountInResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySwapExactAmountInResponse) ProtoMessage ¶
func (*QuerySwapExactAmountInResponse) ProtoMessage()
func (*QuerySwapExactAmountInResponse) Reset ¶
func (m *QuerySwapExactAmountInResponse) Reset()
func (*QuerySwapExactAmountInResponse) Size ¶
func (m *QuerySwapExactAmountInResponse) Size() (n int)
func (*QuerySwapExactAmountInResponse) String ¶
func (m *QuerySwapExactAmountInResponse) String() string
func (*QuerySwapExactAmountInResponse) Unmarshal ¶
func (m *QuerySwapExactAmountInResponse) Unmarshal(dAtA []byte) error
func (*QuerySwapExactAmountInResponse) XXX_DiscardUnknown ¶
func (m *QuerySwapExactAmountInResponse) XXX_DiscardUnknown()
func (*QuerySwapExactAmountInResponse) XXX_Marshal ¶
func (m *QuerySwapExactAmountInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySwapExactAmountInResponse) XXX_Merge ¶
func (m *QuerySwapExactAmountInResponse) XXX_Merge(src proto.Message)
func (*QuerySwapExactAmountInResponse) XXX_Size ¶
func (m *QuerySwapExactAmountInResponse) XXX_Size() int
func (*QuerySwapExactAmountInResponse) XXX_Unmarshal ¶
func (m *QuerySwapExactAmountInResponse) XXX_Unmarshal(b []byte) error
type QuerySwapExactAmountOutRequest ¶
type QuerySwapExactAmountOutRequest struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` PoolId uint64 `protobuf:"varint,2,opt,name=poolId,proto3" json:"poolId,omitempty" yaml:"pool_id"` Routes []SwapAmountOutRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes" yaml:"routes"` TokenOut string `protobuf:"bytes,4,opt,name=tokenOut,proto3" json:"tokenOut,omitempty" yaml:"token_out"` }
=============================== EstimateSwapExactAmountOut
func (*QuerySwapExactAmountOutRequest) Descriptor ¶
func (*QuerySwapExactAmountOutRequest) Descriptor() ([]byte, []int)
func (*QuerySwapExactAmountOutRequest) GetPoolId ¶
func (m *QuerySwapExactAmountOutRequest) GetPoolId() uint64
func (*QuerySwapExactAmountOutRequest) GetRoutes ¶
func (m *QuerySwapExactAmountOutRequest) GetRoutes() []SwapAmountOutRoute
func (*QuerySwapExactAmountOutRequest) GetSender ¶
func (m *QuerySwapExactAmountOutRequest) GetSender() string
func (*QuerySwapExactAmountOutRequest) GetTokenOut ¶
func (m *QuerySwapExactAmountOutRequest) GetTokenOut() string
func (*QuerySwapExactAmountOutRequest) Marshal ¶
func (m *QuerySwapExactAmountOutRequest) Marshal() (dAtA []byte, err error)
func (*QuerySwapExactAmountOutRequest) MarshalTo ¶
func (m *QuerySwapExactAmountOutRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySwapExactAmountOutRequest) MarshalToSizedBuffer ¶
func (m *QuerySwapExactAmountOutRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySwapExactAmountOutRequest) ProtoMessage ¶
func (*QuerySwapExactAmountOutRequest) ProtoMessage()
func (*QuerySwapExactAmountOutRequest) Reset ¶
func (m *QuerySwapExactAmountOutRequest) Reset()
func (*QuerySwapExactAmountOutRequest) Size ¶
func (m *QuerySwapExactAmountOutRequest) Size() (n int)
func (*QuerySwapExactAmountOutRequest) String ¶
func (m *QuerySwapExactAmountOutRequest) String() string
func (*QuerySwapExactAmountOutRequest) Unmarshal ¶
func (m *QuerySwapExactAmountOutRequest) Unmarshal(dAtA []byte) error
func (*QuerySwapExactAmountOutRequest) XXX_DiscardUnknown ¶
func (m *QuerySwapExactAmountOutRequest) XXX_DiscardUnknown()
func (*QuerySwapExactAmountOutRequest) XXX_Marshal ¶
func (m *QuerySwapExactAmountOutRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySwapExactAmountOutRequest) XXX_Merge ¶
func (m *QuerySwapExactAmountOutRequest) XXX_Merge(src proto.Message)
func (*QuerySwapExactAmountOutRequest) XXX_Size ¶
func (m *QuerySwapExactAmountOutRequest) XXX_Size() int
func (*QuerySwapExactAmountOutRequest) XXX_Unmarshal ¶
func (m *QuerySwapExactAmountOutRequest) XXX_Unmarshal(b []byte) error
type QuerySwapExactAmountOutResponse ¶
type QuerySwapExactAmountOutResponse struct {
TokenInAmount github_com_cosmos_cosmos_sdk_types.Int `` /* 142-byte string literal not displayed */
}
func (*QuerySwapExactAmountOutResponse) Descriptor ¶
func (*QuerySwapExactAmountOutResponse) Descriptor() ([]byte, []int)
func (*QuerySwapExactAmountOutResponse) Marshal ¶
func (m *QuerySwapExactAmountOutResponse) Marshal() (dAtA []byte, err error)
func (*QuerySwapExactAmountOutResponse) MarshalTo ¶
func (m *QuerySwapExactAmountOutResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySwapExactAmountOutResponse) MarshalToSizedBuffer ¶
func (m *QuerySwapExactAmountOutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySwapExactAmountOutResponse) ProtoMessage ¶
func (*QuerySwapExactAmountOutResponse) ProtoMessage()
func (*QuerySwapExactAmountOutResponse) Reset ¶
func (m *QuerySwapExactAmountOutResponse) Reset()
func (*QuerySwapExactAmountOutResponse) Size ¶
func (m *QuerySwapExactAmountOutResponse) Size() (n int)
func (*QuerySwapExactAmountOutResponse) String ¶
func (m *QuerySwapExactAmountOutResponse) String() string
func (*QuerySwapExactAmountOutResponse) Unmarshal ¶
func (m *QuerySwapExactAmountOutResponse) Unmarshal(dAtA []byte) error
func (*QuerySwapExactAmountOutResponse) XXX_DiscardUnknown ¶
func (m *QuerySwapExactAmountOutResponse) XXX_DiscardUnknown()
func (*QuerySwapExactAmountOutResponse) XXX_Marshal ¶
func (m *QuerySwapExactAmountOutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySwapExactAmountOutResponse) XXX_Merge ¶
func (m *QuerySwapExactAmountOutResponse) XXX_Merge(src proto.Message)
func (*QuerySwapExactAmountOutResponse) XXX_Size ¶
func (m *QuerySwapExactAmountOutResponse) XXX_Size() int
func (*QuerySwapExactAmountOutResponse) XXX_Unmarshal ¶
func (m *QuerySwapExactAmountOutResponse) XXX_Unmarshal(b []byte) error
type QueryTotalLiquidityRequest ¶
type QueryTotalLiquidityRequest struct { }
func (*QueryTotalLiquidityRequest) Descriptor ¶
func (*QueryTotalLiquidityRequest) Descriptor() ([]byte, []int)
func (*QueryTotalLiquidityRequest) Marshal ¶
func (m *QueryTotalLiquidityRequest) Marshal() (dAtA []byte, err error)
func (*QueryTotalLiquidityRequest) MarshalTo ¶
func (m *QueryTotalLiquidityRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalLiquidityRequest) MarshalToSizedBuffer ¶
func (m *QueryTotalLiquidityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalLiquidityRequest) ProtoMessage ¶
func (*QueryTotalLiquidityRequest) ProtoMessage()
func (*QueryTotalLiquidityRequest) Reset ¶
func (m *QueryTotalLiquidityRequest) Reset()
func (*QueryTotalLiquidityRequest) Size ¶
func (m *QueryTotalLiquidityRequest) Size() (n int)
func (*QueryTotalLiquidityRequest) String ¶
func (m *QueryTotalLiquidityRequest) String() string
func (*QueryTotalLiquidityRequest) Unmarshal ¶
func (m *QueryTotalLiquidityRequest) Unmarshal(dAtA []byte) error
func (*QueryTotalLiquidityRequest) XXX_DiscardUnknown ¶
func (m *QueryTotalLiquidityRequest) XXX_DiscardUnknown()
func (*QueryTotalLiquidityRequest) XXX_Marshal ¶
func (m *QueryTotalLiquidityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalLiquidityRequest) XXX_Merge ¶
func (m *QueryTotalLiquidityRequest) XXX_Merge(src proto.Message)
func (*QueryTotalLiquidityRequest) XXX_Size ¶
func (m *QueryTotalLiquidityRequest) XXX_Size() int
func (*QueryTotalLiquidityRequest) XXX_Unmarshal ¶
func (m *QueryTotalLiquidityRequest) XXX_Unmarshal(b []byte) error
type QueryTotalLiquidityResponse ¶
type QueryTotalLiquidityResponse struct {
Liquidity github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */
}
func (*QueryTotalLiquidityResponse) Descriptor ¶
func (*QueryTotalLiquidityResponse) Descriptor() ([]byte, []int)
func (*QueryTotalLiquidityResponse) GetLiquidity ¶
func (m *QueryTotalLiquidityResponse) GetLiquidity() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryTotalLiquidityResponse) Marshal ¶
func (m *QueryTotalLiquidityResponse) Marshal() (dAtA []byte, err error)
func (*QueryTotalLiquidityResponse) MarshalTo ¶
func (m *QueryTotalLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalLiquidityResponse) MarshalToSizedBuffer ¶
func (m *QueryTotalLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalLiquidityResponse) ProtoMessage ¶
func (*QueryTotalLiquidityResponse) ProtoMessage()
func (*QueryTotalLiquidityResponse) Reset ¶
func (m *QueryTotalLiquidityResponse) Reset()
func (*QueryTotalLiquidityResponse) Size ¶
func (m *QueryTotalLiquidityResponse) Size() (n int)
func (*QueryTotalLiquidityResponse) String ¶
func (m *QueryTotalLiquidityResponse) String() string
func (*QueryTotalLiquidityResponse) Unmarshal ¶
func (m *QueryTotalLiquidityResponse) Unmarshal(dAtA []byte) error
func (*QueryTotalLiquidityResponse) XXX_DiscardUnknown ¶
func (m *QueryTotalLiquidityResponse) XXX_DiscardUnknown()
func (*QueryTotalLiquidityResponse) XXX_Marshal ¶
func (m *QueryTotalLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalLiquidityResponse) XXX_Merge ¶
func (m *QueryTotalLiquidityResponse) XXX_Merge(src proto.Message)
func (*QueryTotalLiquidityResponse) XXX_Size ¶
func (m *QueryTotalLiquidityResponse) XXX_Size() int
func (*QueryTotalLiquidityResponse) XXX_Unmarshal ¶
func (m *QueryTotalLiquidityResponse) XXX_Unmarshal(b []byte) error
type QueryTotalPoolLiquidityRequest ¶
type QueryTotalPoolLiquidityRequest struct {
PoolId uint64 `protobuf:"varint,1,opt,name=poolId,proto3" json:"poolId,omitempty" yaml:"pool_id"`
}
=============================== PoolLiquidity
func (*QueryTotalPoolLiquidityRequest) Descriptor ¶
func (*QueryTotalPoolLiquidityRequest) Descriptor() ([]byte, []int)
func (*QueryTotalPoolLiquidityRequest) GetPoolId ¶
func (m *QueryTotalPoolLiquidityRequest) GetPoolId() uint64
func (*QueryTotalPoolLiquidityRequest) Marshal ¶
func (m *QueryTotalPoolLiquidityRequest) Marshal() (dAtA []byte, err error)
func (*QueryTotalPoolLiquidityRequest) MarshalTo ¶
func (m *QueryTotalPoolLiquidityRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalPoolLiquidityRequest) MarshalToSizedBuffer ¶
func (m *QueryTotalPoolLiquidityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalPoolLiquidityRequest) ProtoMessage ¶
func (*QueryTotalPoolLiquidityRequest) ProtoMessage()
func (*QueryTotalPoolLiquidityRequest) Reset ¶
func (m *QueryTotalPoolLiquidityRequest) Reset()
func (*QueryTotalPoolLiquidityRequest) Size ¶
func (m *QueryTotalPoolLiquidityRequest) Size() (n int)
func (*QueryTotalPoolLiquidityRequest) String ¶
func (m *QueryTotalPoolLiquidityRequest) String() string
func (*QueryTotalPoolLiquidityRequest) Unmarshal ¶
func (m *QueryTotalPoolLiquidityRequest) Unmarshal(dAtA []byte) error
func (*QueryTotalPoolLiquidityRequest) XXX_DiscardUnknown ¶
func (m *QueryTotalPoolLiquidityRequest) XXX_DiscardUnknown()
func (*QueryTotalPoolLiquidityRequest) XXX_Marshal ¶
func (m *QueryTotalPoolLiquidityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalPoolLiquidityRequest) XXX_Merge ¶
func (m *QueryTotalPoolLiquidityRequest) XXX_Merge(src proto.Message)
func (*QueryTotalPoolLiquidityRequest) XXX_Size ¶
func (m *QueryTotalPoolLiquidityRequest) XXX_Size() int
func (*QueryTotalPoolLiquidityRequest) XXX_Unmarshal ¶
func (m *QueryTotalPoolLiquidityRequest) XXX_Unmarshal(b []byte) error
type QueryTotalPoolLiquidityResponse ¶
type QueryTotalPoolLiquidityResponse struct {
Liquidity github_com_cosmos_cosmos_sdk_types.Coins `` /* 132-byte string literal not displayed */
}
func (*QueryTotalPoolLiquidityResponse) Descriptor ¶
func (*QueryTotalPoolLiquidityResponse) Descriptor() ([]byte, []int)
func (*QueryTotalPoolLiquidityResponse) GetLiquidity ¶
func (m *QueryTotalPoolLiquidityResponse) GetLiquidity() github_com_cosmos_cosmos_sdk_types.Coins
func (*QueryTotalPoolLiquidityResponse) Marshal ¶
func (m *QueryTotalPoolLiquidityResponse) Marshal() (dAtA []byte, err error)
func (*QueryTotalPoolLiquidityResponse) MarshalTo ¶
func (m *QueryTotalPoolLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalPoolLiquidityResponse) MarshalToSizedBuffer ¶
func (m *QueryTotalPoolLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalPoolLiquidityResponse) ProtoMessage ¶
func (*QueryTotalPoolLiquidityResponse) ProtoMessage()
func (*QueryTotalPoolLiquidityResponse) Reset ¶
func (m *QueryTotalPoolLiquidityResponse) Reset()
func (*QueryTotalPoolLiquidityResponse) Size ¶
func (m *QueryTotalPoolLiquidityResponse) Size() (n int)
func (*QueryTotalPoolLiquidityResponse) String ¶
func (m *QueryTotalPoolLiquidityResponse) String() string
func (*QueryTotalPoolLiquidityResponse) Unmarshal ¶
func (m *QueryTotalPoolLiquidityResponse) Unmarshal(dAtA []byte) error
func (*QueryTotalPoolLiquidityResponse) XXX_DiscardUnknown ¶
func (m *QueryTotalPoolLiquidityResponse) XXX_DiscardUnknown()
func (*QueryTotalPoolLiquidityResponse) XXX_Marshal ¶
func (m *QueryTotalPoolLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalPoolLiquidityResponse) XXX_Merge ¶
func (m *QueryTotalPoolLiquidityResponse) XXX_Merge(src proto.Message)
func (*QueryTotalPoolLiquidityResponse) XXX_Size ¶
func (m *QueryTotalPoolLiquidityResponse) XXX_Size() int
func (*QueryTotalPoolLiquidityResponse) XXX_Unmarshal ¶
func (m *QueryTotalPoolLiquidityResponse) XXX_Unmarshal(b []byte) error
type QueryTotalSharesRequest ¶
type QueryTotalSharesRequest struct {
}=============================== TotalShares
func (*QueryTotalSharesRequest) Descriptor ¶
func (*QueryTotalSharesRequest) Descriptor() ([]byte, []int)
func (*QueryTotalSharesRequest) GetPoolId ¶
func (m *QueryTotalSharesRequest) GetPoolId() uint64
func (*QueryTotalSharesRequest) Marshal ¶
func (m *QueryTotalSharesRequest) Marshal() (dAtA []byte, err error)
func (*QueryTotalSharesRequest) MarshalTo ¶
func (m *QueryTotalSharesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalSharesRequest) MarshalToSizedBuffer ¶
func (m *QueryTotalSharesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalSharesRequest) ProtoMessage ¶
func (*QueryTotalSharesRequest) ProtoMessage()
func (*QueryTotalSharesRequest) Reset ¶
func (m *QueryTotalSharesRequest) Reset()
func (*QueryTotalSharesRequest) Size ¶
func (m *QueryTotalSharesRequest) Size() (n int)
func (*QueryTotalSharesRequest) String ¶
func (m *QueryTotalSharesRequest) String() string
func (*QueryTotalSharesRequest) Unmarshal ¶
func (m *QueryTotalSharesRequest) Unmarshal(dAtA []byte) error
func (*QueryTotalSharesRequest) XXX_DiscardUnknown ¶
func (m *QueryTotalSharesRequest) XXX_DiscardUnknown()
func (*QueryTotalSharesRequest) XXX_Marshal ¶
func (m *QueryTotalSharesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalSharesRequest) XXX_Merge ¶
func (m *QueryTotalSharesRequest) XXX_Merge(src proto.Message)
func (*QueryTotalSharesRequest) XXX_Size ¶
func (m *QueryTotalSharesRequest) XXX_Size() int
func (*QueryTotalSharesRequest) XXX_Unmarshal ¶
func (m *QueryTotalSharesRequest) XXX_Unmarshal(b []byte) error
type QueryTotalSharesResponse ¶
type QueryTotalSharesResponse struct {
}func (*QueryTotalSharesResponse) Descriptor ¶
func (*QueryTotalSharesResponse) Descriptor() ([]byte, []int)
func (*QueryTotalSharesResponse) GetTotalShares ¶
func (m *QueryTotalSharesResponse) GetTotalShares() types1.Coin
func (*QueryTotalSharesResponse) Marshal ¶
func (m *QueryTotalSharesResponse) Marshal() (dAtA []byte, err error)
func (*QueryTotalSharesResponse) MarshalTo ¶
func (m *QueryTotalSharesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTotalSharesResponse) MarshalToSizedBuffer ¶
func (m *QueryTotalSharesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTotalSharesResponse) ProtoMessage ¶
func (*QueryTotalSharesResponse) ProtoMessage()
func (*QueryTotalSharesResponse) Reset ¶
func (m *QueryTotalSharesResponse) Reset()
func (*QueryTotalSharesResponse) Size ¶
func (m *QueryTotalSharesResponse) Size() (n int)
func (*QueryTotalSharesResponse) String ¶
func (m *QueryTotalSharesResponse) String() string
func (*QueryTotalSharesResponse) Unmarshal ¶
func (m *QueryTotalSharesResponse) Unmarshal(dAtA []byte) error
func (*QueryTotalSharesResponse) XXX_DiscardUnknown ¶
func (m *QueryTotalSharesResponse) XXX_DiscardUnknown()
func (*QueryTotalSharesResponse) XXX_Marshal ¶
func (m *QueryTotalSharesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTotalSharesResponse) XXX_Merge ¶
func (m *QueryTotalSharesResponse) XXX_Merge(src proto.Message)
func (*QueryTotalSharesResponse) XXX_Size ¶
func (m *QueryTotalSharesResponse) XXX_Size() int
func (*QueryTotalSharesResponse) XXX_Unmarshal ¶
func (m *QueryTotalSharesResponse) XXX_Unmarshal(b []byte) error
type SwapAmountInRoute ¶
type SwapAmountInRoute struct { PoolId uint64 `protobuf:"varint,1,opt,name=poolId,proto3" json:"poolId,omitempty" yaml:"pool_id"` TokenOutDenom string `protobuf:"bytes,2,opt,name=tokenOutDenom,proto3" json:"tokenOutDenom,omitempty" yaml:"token_out_denom"` }
===================== MsgSwapExactAmountIn
func (*SwapAmountInRoute) Descriptor ¶
func (*SwapAmountInRoute) Descriptor() ([]byte, []int)
func (*SwapAmountInRoute) GetPoolId ¶
func (m *SwapAmountInRoute) GetPoolId() uint64
func (*SwapAmountInRoute) GetTokenOutDenom ¶
func (m *SwapAmountInRoute) GetTokenOutDenom() string
func (*SwapAmountInRoute) Marshal ¶
func (m *SwapAmountInRoute) Marshal() (dAtA []byte, err error)
func (*SwapAmountInRoute) MarshalTo ¶
func (m *SwapAmountInRoute) MarshalTo(dAtA []byte) (int, error)
func (*SwapAmountInRoute) MarshalToSizedBuffer ¶
func (m *SwapAmountInRoute) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapAmountInRoute) ProtoMessage ¶
func (*SwapAmountInRoute) ProtoMessage()
func (*SwapAmountInRoute) Reset ¶
func (m *SwapAmountInRoute) Reset()
func (*SwapAmountInRoute) Size ¶
func (m *SwapAmountInRoute) Size() (n int)
func (*SwapAmountInRoute) String ¶
func (m *SwapAmountInRoute) String() string
func (*SwapAmountInRoute) Unmarshal ¶
func (m *SwapAmountInRoute) Unmarshal(dAtA []byte) error
func (*SwapAmountInRoute) XXX_DiscardUnknown ¶
func (m *SwapAmountInRoute) XXX_DiscardUnknown()
func (*SwapAmountInRoute) XXX_Marshal ¶
func (m *SwapAmountInRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapAmountInRoute) XXX_Merge ¶
func (m *SwapAmountInRoute) XXX_Merge(src proto.Message)
func (*SwapAmountInRoute) XXX_Size ¶
func (m *SwapAmountInRoute) XXX_Size() int
func (*SwapAmountInRoute) XXX_Unmarshal ¶
func (m *SwapAmountInRoute) XXX_Unmarshal(b []byte) error
type SwapAmountInRoutes ¶
type SwapAmountInRoutes []SwapAmountInRoute
func (SwapAmountInRoutes) Validate ¶
func (routes SwapAmountInRoutes) Validate() error
type SwapAmountOutRoute ¶
type SwapAmountOutRoute struct { PoolId uint64 `protobuf:"varint,1,opt,name=poolId,proto3" json:"poolId,omitempty" yaml:"pool_id"` TokenInDenom string `protobuf:"bytes,2,opt,name=tokenInDenom,proto3" json:"tokenInDenom,omitempty" yaml:"token_out_denom"` }
===================== MsgSwapExactAmountOut
func (*SwapAmountOutRoute) Descriptor ¶
func (*SwapAmountOutRoute) Descriptor() ([]byte, []int)
func (*SwapAmountOutRoute) GetPoolId ¶
func (m *SwapAmountOutRoute) GetPoolId() uint64
func (*SwapAmountOutRoute) GetTokenInDenom ¶
func (m *SwapAmountOutRoute) GetTokenInDenom() string
func (*SwapAmountOutRoute) Marshal ¶
func (m *SwapAmountOutRoute) Marshal() (dAtA []byte, err error)
func (*SwapAmountOutRoute) MarshalTo ¶
func (m *SwapAmountOutRoute) MarshalTo(dAtA []byte) (int, error)
func (*SwapAmountOutRoute) MarshalToSizedBuffer ¶
func (m *SwapAmountOutRoute) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*SwapAmountOutRoute) ProtoMessage ¶
func (*SwapAmountOutRoute) ProtoMessage()
func (*SwapAmountOutRoute) Reset ¶
func (m *SwapAmountOutRoute) Reset()
func (*SwapAmountOutRoute) Size ¶
func (m *SwapAmountOutRoute) Size() (n int)
func (*SwapAmountOutRoute) String ¶
func (m *SwapAmountOutRoute) String() string
func (*SwapAmountOutRoute) Unmarshal ¶
func (m *SwapAmountOutRoute) Unmarshal(dAtA []byte) error
func (*SwapAmountOutRoute) XXX_DiscardUnknown ¶
func (m *SwapAmountOutRoute) XXX_DiscardUnknown()
func (*SwapAmountOutRoute) XXX_Marshal ¶
func (m *SwapAmountOutRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SwapAmountOutRoute) XXX_Merge ¶
func (m *SwapAmountOutRoute) XXX_Merge(src proto.Message)
func (*SwapAmountOutRoute) XXX_Size ¶
func (m *SwapAmountOutRoute) XXX_Size() int
func (*SwapAmountOutRoute) XXX_Unmarshal ¶
func (m *SwapAmountOutRoute) XXX_Unmarshal(b []byte) error
type SwapAmountOutRoutes ¶
type SwapAmountOutRoutes []SwapAmountOutRoute
func (SwapAmountOutRoutes) Validate ¶
func (routes SwapAmountOutRoutes) Validate() error
type SwapMsgRoute ¶
type SwapMsgRoute interface { TokenInDenom() string TokenOutDenom() string TokenDenomsOnPath() []string }
SwapMsg defines a simple interface for getting the token denoms on a swap message route.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) ExitPool ¶
func (*UnimplementedMsgServer) ExitPool(ctx context.Context, req *MsgExitPool) (*MsgExitPoolResponse, error)
func (*UnimplementedMsgServer) ExitSwapExternAmountOut ¶
func (*UnimplementedMsgServer) ExitSwapExternAmountOut(ctx context.Context, req *MsgExitSwapExternAmountOut) (*MsgExitSwapExternAmountOutResponse, error)
func (*UnimplementedMsgServer) ExitSwapShareAmountIn ¶
func (*UnimplementedMsgServer) ExitSwapShareAmountIn(ctx context.Context, req *MsgExitSwapShareAmountIn) (*MsgExitSwapShareAmountInResponse, error)
func (*UnimplementedMsgServer) JoinPool ¶
func (*UnimplementedMsgServer) JoinPool(ctx context.Context, req *MsgJoinPool) (*MsgJoinPoolResponse, error)
func (*UnimplementedMsgServer) JoinSwapExternAmountIn ¶
func (*UnimplementedMsgServer) JoinSwapExternAmountIn(ctx context.Context, req *MsgJoinSwapExternAmountIn) (*MsgJoinSwapExternAmountInResponse, error)
func (*UnimplementedMsgServer) JoinSwapShareAmountOut ¶
func (*UnimplementedMsgServer) JoinSwapShareAmountOut(ctx context.Context, req *MsgJoinSwapShareAmountOut) (*MsgJoinSwapShareAmountOutResponse, error)
func (*UnimplementedMsgServer) SwapExactAmountIn ¶
func (*UnimplementedMsgServer) SwapExactAmountIn(ctx context.Context, req *MsgSwapExactAmountIn) (*MsgSwapExactAmountInResponse, error)
func (*UnimplementedMsgServer) SwapExactAmountOut ¶
func (*UnimplementedMsgServer) SwapExactAmountOut(ctx context.Context, req *MsgSwapExactAmountOut) (*MsgSwapExactAmountOutResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) EstimateSwapExactAmountIn ¶
func (*UnimplementedQueryServer) EstimateSwapExactAmountIn(ctx context.Context, req *QuerySwapExactAmountInRequest) (*QuerySwapExactAmountInResponse, error)
func (*UnimplementedQueryServer) EstimateSwapExactAmountOut ¶
func (*UnimplementedQueryServer) EstimateSwapExactAmountOut(ctx context.Context, req *QuerySwapExactAmountOutRequest) (*QuerySwapExactAmountOutResponse, error)
func (*UnimplementedQueryServer) NumPools ¶
func (*UnimplementedQueryServer) NumPools(ctx context.Context, req *QueryNumPoolsRequest) (*QueryNumPoolsResponse, error)
func (*UnimplementedQueryServer) Pool ¶
func (*UnimplementedQueryServer) Pool(ctx context.Context, req *QueryPoolRequest) (*QueryPoolResponse, error)
func (*UnimplementedQueryServer) PoolParams ¶
func (*UnimplementedQueryServer) PoolParams(ctx context.Context, req *QueryPoolParamsRequest) (*QueryPoolParamsResponse, error)
func (*UnimplementedQueryServer) Pools ¶
func (*UnimplementedQueryServer) Pools(ctx context.Context, req *QueryPoolsRequest) (*QueryPoolsResponse, error)
func (*UnimplementedQueryServer) SpotPrice ¶
func (*UnimplementedQueryServer) SpotPrice(ctx context.Context, req *QuerySpotPriceRequest) (*QuerySpotPriceResponse, error)
func (*UnimplementedQueryServer) TotalLiquidity ¶
func (*UnimplementedQueryServer) TotalLiquidity(ctx context.Context, req *QueryTotalLiquidityRequest) (*QueryTotalLiquidityResponse, error)
func (*UnimplementedQueryServer) TotalPoolLiquidity ¶
func (*UnimplementedQueryServer) TotalPoolLiquidity(ctx context.Context, req *QueryTotalPoolLiquidityRequest) (*QueryTotalPoolLiquidityResponse, error)
func (*UnimplementedQueryServer) TotalShares ¶
func (*UnimplementedQueryServer) TotalShares(ctx context.Context, req *QueryTotalSharesRequest) (*QueryTotalSharesResponse, error)