Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetCLPModuleAddress() sdk.AccAddress
- func GetDefaultCLPAdmin() sdk.AccAddress
- func GetLiquidityProviderKey(externalTicker string, lp string) []byte
- func GetPoolKey(externalTicker string, nativeTicker string) ([]byte, error)
- 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 VerifyRange(num, low, high int) bool
- type Asset
- func (*Asset) Descriptor() ([]byte, []int)
- func (a Asset) Equals(a2 Asset) bool
- func (m *Asset) GetSymbol() string
- func (a Asset) IsEmpty() bool
- func (m *Asset) Marshal() (dAtA []byte, err error)
- func (m *Asset) MarshalTo(dAtA []byte) (int, error)
- func (m *Asset) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Asset) ProtoMessage()
- func (m *Asset) Reset()
- func (m *Asset) Size() (n int)
- func (m *Asset) String() string
- func (m *Asset) Unmarshal(dAtA []byte) error
- func (a Asset) Validate() bool
- func (m *Asset) XXX_DiscardUnknown()
- func (m *Asset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Asset) XXX_Merge(src proto.Message)
- func (m *Asset) XXX_Size() int
- func (m *Asset) XXX_Unmarshal(b []byte) error
- type AssetListReq
- func (*AssetListReq) Descriptor() ([]byte, []int)
- func (m *AssetListReq) Marshal() (dAtA []byte, err error)
- func (m *AssetListReq) MarshalTo(dAtA []byte) (int, error)
- func (m *AssetListReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AssetListReq) ProtoMessage()
- func (m *AssetListReq) Reset()
- func (m *AssetListReq) Size() (n int)
- func (m *AssetListReq) String() string
- func (m *AssetListReq) Unmarshal(dAtA []byte) error
- func (m *AssetListReq) XXX_DiscardUnknown()
- func (m *AssetListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssetListReq) XXX_Merge(src proto.Message)
- func (m *AssetListReq) XXX_Size() int
- func (m *AssetListReq) XXX_Unmarshal(b []byte) error
- type AssetListRes
- func (*AssetListRes) Descriptor() ([]byte, []int)
- func (m *AssetListRes) GetAssets() []*Asset
- func (m *AssetListRes) GetHeight() int64
- func (m *AssetListRes) GetPagination() *query.PageResponse
- func (m *AssetListRes) Marshal() (dAtA []byte, err error)
- func (m *AssetListRes) MarshalTo(dAtA []byte) (int, error)
- func (m *AssetListRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*AssetListRes) ProtoMessage()
- func (m *AssetListRes) Reset()
- func (m *AssetListRes) Size() (n int)
- func (m *AssetListRes) String() string
- func (m *AssetListRes) Unmarshal(dAtA []byte) error
- func (m *AssetListRes) XXX_DiscardUnknown()
- func (m *AssetListRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AssetListRes) XXX_Merge(src proto.Message)
- func (m *AssetListRes) XXX_Size() int
- func (m *AssetListRes) XXX_Unmarshal(b []byte) error
- type Assets
- type AuthKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetAddressWhitelist() []string
- func (m *GenesisState) GetLiquidityProviders() []*LiquidityProvider
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetPoolList() []*Pool
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type LiquidityProvider
- func (*LiquidityProvider) Descriptor() ([]byte, []int)
- func (m *LiquidityProvider) GetAsset() *Asset
- func (m *LiquidityProvider) GetLiquidityProviderAddress() string
- func (m *LiquidityProvider) Marshal() (dAtA []byte, err error)
- func (m *LiquidityProvider) MarshalTo(dAtA []byte) (int, error)
- func (m *LiquidityProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LiquidityProvider) ProtoMessage()
- func (m *LiquidityProvider) Reset()
- func (m *LiquidityProvider) Size() (n int)
- func (m *LiquidityProvider) String() string
- func (m *LiquidityProvider) Unmarshal(dAtA []byte) error
- func (l LiquidityProvider) Validate() bool
- func (m *LiquidityProvider) XXX_DiscardUnknown()
- func (m *LiquidityProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiquidityProvider) XXX_Merge(src proto.Message)
- func (m *LiquidityProvider) XXX_Size() int
- func (m *LiquidityProvider) XXX_Unmarshal(b []byte) error
- type LiquidityProviderData
- func (*LiquidityProviderData) Descriptor() ([]byte, []int)
- func (m *LiquidityProviderData) GetExternalAssetBalance() string
- func (m *LiquidityProviderData) GetLiquidityProvider() *LiquidityProvider
- func (m *LiquidityProviderData) GetNativeAssetBalance() string
- func (m *LiquidityProviderData) Marshal() (dAtA []byte, err error)
- func (m *LiquidityProviderData) MarshalTo(dAtA []byte) (int, error)
- func (m *LiquidityProviderData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LiquidityProviderData) ProtoMessage()
- func (m *LiquidityProviderData) Reset()
- func (m *LiquidityProviderData) Size() (n int)
- func (m *LiquidityProviderData) String() string
- func (m *LiquidityProviderData) Unmarshal(dAtA []byte) error
- func (m *LiquidityProviderData) XXX_DiscardUnknown()
- func (m *LiquidityProviderData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiquidityProviderData) XXX_Merge(src proto.Message)
- func (m *LiquidityProviderData) XXX_Size() int
- func (m *LiquidityProviderData) XXX_Unmarshal(b []byte) error
- type LiquidityProviderDataReq
- func (*LiquidityProviderDataReq) Descriptor() ([]byte, []int)
- func (m *LiquidityProviderDataReq) Marshal() (dAtA []byte, err error)
- func (m *LiquidityProviderDataReq) MarshalTo(dAtA []byte) (int, error)
- func (m *LiquidityProviderDataReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LiquidityProviderDataReq) ProtoMessage()
- func (m *LiquidityProviderDataReq) Reset()
- func (m *LiquidityProviderDataReq) Size() (n int)
- func (m *LiquidityProviderDataReq) String() string
- func (m *LiquidityProviderDataReq) Unmarshal(dAtA []byte) error
- func (m *LiquidityProviderDataReq) XXX_DiscardUnknown()
- func (m *LiquidityProviderDataReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiquidityProviderDataReq) XXX_Merge(src proto.Message)
- func (m *LiquidityProviderDataReq) XXX_Size() int
- func (m *LiquidityProviderDataReq) XXX_Unmarshal(b []byte) error
- type LiquidityProviderDataRes
- func (*LiquidityProviderDataRes) Descriptor() ([]byte, []int)
- func (m *LiquidityProviderDataRes) GetHeight() int64
- func (m *LiquidityProviderDataRes) GetLiquidityProviderData() []*LiquidityProviderData
- func (m *LiquidityProviderDataRes) GetPagination() *query.PageRequest
- func (m *LiquidityProviderDataRes) Marshal() (dAtA []byte, err error)
- func (m *LiquidityProviderDataRes) MarshalTo(dAtA []byte) (int, error)
- func (m *LiquidityProviderDataRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LiquidityProviderDataRes) ProtoMessage()
- func (m *LiquidityProviderDataRes) Reset()
- func (m *LiquidityProviderDataRes) Size() (n int)
- func (m *LiquidityProviderDataRes) String() string
- func (m *LiquidityProviderDataRes) Unmarshal(dAtA []byte) error
- func (m *LiquidityProviderDataRes) XXX_DiscardUnknown()
- func (m *LiquidityProviderDataRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiquidityProviderDataRes) XXX_Merge(src proto.Message)
- func (m *LiquidityProviderDataRes) XXX_Size() int
- func (m *LiquidityProviderDataRes) XXX_Unmarshal(b []byte) error
- type LiquidityProviderListReq
- func (*LiquidityProviderListReq) Descriptor() ([]byte, []int)
- func (m *LiquidityProviderListReq) Marshal() (dAtA []byte, err error)
- func (m *LiquidityProviderListReq) MarshalTo(dAtA []byte) (int, error)
- func (m *LiquidityProviderListReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LiquidityProviderListReq) ProtoMessage()
- func (m *LiquidityProviderListReq) Reset()
- func (m *LiquidityProviderListReq) Size() (n int)
- func (m *LiquidityProviderListReq) String() string
- func (m *LiquidityProviderListReq) Unmarshal(dAtA []byte) error
- func (m *LiquidityProviderListReq) XXX_DiscardUnknown()
- func (m *LiquidityProviderListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiquidityProviderListReq) XXX_Merge(src proto.Message)
- func (m *LiquidityProviderListReq) XXX_Size() int
- func (m *LiquidityProviderListReq) XXX_Unmarshal(b []byte) error
- type LiquidityProviderListRes
- func (*LiquidityProviderListRes) Descriptor() ([]byte, []int)
- func (m *LiquidityProviderListRes) GetHeight() int64
- func (m *LiquidityProviderListRes) GetLiquidityProviders() []*LiquidityProvider
- func (m *LiquidityProviderListRes) GetPagination() *query.PageResponse
- func (m *LiquidityProviderListRes) Marshal() (dAtA []byte, err error)
- func (m *LiquidityProviderListRes) MarshalTo(dAtA []byte) (int, error)
- func (m *LiquidityProviderListRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LiquidityProviderListRes) ProtoMessage()
- func (m *LiquidityProviderListRes) Reset()
- func (m *LiquidityProviderListRes) Size() (n int)
- func (m *LiquidityProviderListRes) String() string
- func (m *LiquidityProviderListRes) Unmarshal(dAtA []byte) error
- func (m *LiquidityProviderListRes) XXX_DiscardUnknown()
- func (m *LiquidityProviderListRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiquidityProviderListRes) XXX_Merge(src proto.Message)
- func (m *LiquidityProviderListRes) XXX_Size() int
- func (m *LiquidityProviderListRes) XXX_Unmarshal(b []byte) error
- type LiquidityProviderReq
- func (*LiquidityProviderReq) Descriptor() ([]byte, []int)
- func (m *LiquidityProviderReq) Marshal() (dAtA []byte, err error)
- func (m *LiquidityProviderReq) MarshalTo(dAtA []byte) (int, error)
- func (m *LiquidityProviderReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LiquidityProviderReq) ProtoMessage()
- func (m *LiquidityProviderReq) Reset()
- func (m *LiquidityProviderReq) Size() (n int)
- func (m *LiquidityProviderReq) String() string
- func (m *LiquidityProviderReq) Unmarshal(dAtA []byte) error
- func (m *LiquidityProviderReq) XXX_DiscardUnknown()
- func (m *LiquidityProviderReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiquidityProviderReq) XXX_Merge(src proto.Message)
- func (m *LiquidityProviderReq) XXX_Size() int
- func (m *LiquidityProviderReq) XXX_Unmarshal(b []byte) error
- type LiquidityProviderRes
- func (*LiquidityProviderRes) Descriptor() ([]byte, []int)
- func (m *LiquidityProviderRes) GetExternalAssetBalance() string
- func (m *LiquidityProviderRes) GetHeight() int64
- func (m *LiquidityProviderRes) GetLiquidityProvider() *LiquidityProvider
- func (m *LiquidityProviderRes) GetNativeAssetBalance() string
- func (m *LiquidityProviderRes) Marshal() (dAtA []byte, err error)
- func (m *LiquidityProviderRes) MarshalTo(dAtA []byte) (int, error)
- func (m *LiquidityProviderRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LiquidityProviderRes) ProtoMessage()
- func (m *LiquidityProviderRes) Reset()
- func (m *LiquidityProviderRes) Size() (n int)
- func (m *LiquidityProviderRes) String() string
- func (m *LiquidityProviderRes) Unmarshal(dAtA []byte) error
- func (m *LiquidityProviderRes) XXX_DiscardUnknown()
- func (m *LiquidityProviderRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiquidityProviderRes) XXX_Merge(src proto.Message)
- func (m *LiquidityProviderRes) XXX_Size() int
- func (m *LiquidityProviderRes) XXX_Unmarshal(b []byte) error
- type LiquidityProviders
- type LiquidityProvidersReq
- func (*LiquidityProvidersReq) Descriptor() ([]byte, []int)
- func (m *LiquidityProvidersReq) Marshal() (dAtA []byte, err error)
- func (m *LiquidityProvidersReq) MarshalTo(dAtA []byte) (int, error)
- func (m *LiquidityProvidersReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LiquidityProvidersReq) ProtoMessage()
- func (m *LiquidityProvidersReq) Reset()
- func (m *LiquidityProvidersReq) Size() (n int)
- func (m *LiquidityProvidersReq) String() string
- func (m *LiquidityProvidersReq) Unmarshal(dAtA []byte) error
- func (m *LiquidityProvidersReq) XXX_DiscardUnknown()
- func (m *LiquidityProvidersReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiquidityProvidersReq) XXX_Merge(src proto.Message)
- func (m *LiquidityProvidersReq) XXX_Size() int
- func (m *LiquidityProvidersReq) XXX_Unmarshal(b []byte) error
- type LiquidityProvidersRes
- func (*LiquidityProvidersRes) Descriptor() ([]byte, []int)
- func (m *LiquidityProvidersRes) GetHeight() int64
- func (m *LiquidityProvidersRes) GetLiquidityProviders() []*LiquidityProvider
- func (m *LiquidityProvidersRes) GetPagination() *query.PageResponse
- func (m *LiquidityProvidersRes) Marshal() (dAtA []byte, err error)
- func (m *LiquidityProvidersRes) MarshalTo(dAtA []byte) (int, error)
- func (m *LiquidityProvidersRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LiquidityProvidersRes) ProtoMessage()
- func (m *LiquidityProvidersRes) Reset()
- func (m *LiquidityProvidersRes) Size() (n int)
- func (m *LiquidityProvidersRes) String() string
- func (m *LiquidityProvidersRes) Unmarshal(dAtA []byte) error
- func (m *LiquidityProvidersRes) XXX_DiscardUnknown()
- func (m *LiquidityProvidersRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LiquidityProvidersRes) XXX_Merge(src proto.Message)
- func (m *LiquidityProvidersRes) XXX_Size() int
- func (m *LiquidityProvidersRes) XXX_Unmarshal(b []byte) error
- type MsgAddLiquidity
- func (*MsgAddLiquidity) Descriptor() ([]byte, []int)
- func (m *MsgAddLiquidity) GetExternalAsset() *Asset
- func (m MsgAddLiquidity) GetSignBytes() []byte
- func (m *MsgAddLiquidity) GetSigner() string
- func (m MsgAddLiquidity) GetSigners() []sdk.AccAddress
- func (m *MsgAddLiquidity) Marshal() (dAtA []byte, err error)
- func (m *MsgAddLiquidity) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddLiquidity) ProtoMessage()
- func (m *MsgAddLiquidity) Reset()
- func (m MsgAddLiquidity) Route() string
- func (m *MsgAddLiquidity) Size() (n int)
- func (m *MsgAddLiquidity) String() string
- func (m MsgAddLiquidity) Type() string
- func (m *MsgAddLiquidity) Unmarshal(dAtA []byte) error
- func (m MsgAddLiquidity) ValidateBasic() error
- func (m *MsgAddLiquidity) XXX_DiscardUnknown()
- func (m *MsgAddLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddLiquidity) XXX_Merge(src proto.Message)
- func (m *MsgAddLiquidity) XXX_Size() int
- func (m *MsgAddLiquidity) XXX_Unmarshal(b []byte) error
- type MsgAddLiquidityResponse
- func (*MsgAddLiquidityResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddLiquidityResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddLiquidityResponse) ProtoMessage()
- func (m *MsgAddLiquidityResponse) Reset()
- func (m *MsgAddLiquidityResponse) Size() (n int)
- func (m *MsgAddLiquidityResponse) String() string
- func (m *MsgAddLiquidityResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddLiquidityResponse) XXX_DiscardUnknown()
- func (m *MsgAddLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddLiquidityResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddLiquidityResponse) XXX_Size() int
- func (m *MsgAddLiquidityResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreatePool
- func (*MsgCreatePool) Descriptor() ([]byte, []int)
- func (m *MsgCreatePool) GetExternalAsset() *Asset
- func (m MsgCreatePool) GetSignBytes() []byte
- func (m *MsgCreatePool) GetSigner() string
- func (m MsgCreatePool) GetSigners() []sdk.AccAddress
- func (m *MsgCreatePool) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePool) ProtoMessage()
- func (m *MsgCreatePool) Reset()
- func (m MsgCreatePool) Route() string
- func (m *MsgCreatePool) Size() (n int)
- func (m *MsgCreatePool) String() string
- func (m MsgCreatePool) Type() string
- func (m *MsgCreatePool) Unmarshal(dAtA []byte) error
- func (m MsgCreatePool) ValidateBasic() error
- func (m *MsgCreatePool) XXX_DiscardUnknown()
- func (m *MsgCreatePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePool) XXX_Merge(src proto.Message)
- func (m *MsgCreatePool) XXX_Size() int
- func (m *MsgCreatePool) XXX_Unmarshal(b []byte) error
- type MsgCreatePoolResponse
- func (*MsgCreatePoolResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePoolResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePoolResponse) ProtoMessage()
- func (m *MsgCreatePoolResponse) Reset()
- func (m *MsgCreatePoolResponse) Size() (n int)
- func (m *MsgCreatePoolResponse) String() string
- func (m *MsgCreatePoolResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePoolResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePoolResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePoolResponse) XXX_Size() int
- func (m *MsgCreatePoolResponse) XXX_Unmarshal(b []byte) error
- type MsgDecommissionPool
- func (*MsgDecommissionPool) Descriptor() ([]byte, []int)
- func (m MsgDecommissionPool) GetSignBytes() []byte
- func (m *MsgDecommissionPool) GetSigner() string
- func (m MsgDecommissionPool) GetSigners() []sdk.AccAddress
- func (m *MsgDecommissionPool) GetSymbol() string
- func (m *MsgDecommissionPool) Marshal() (dAtA []byte, err error)
- func (m *MsgDecommissionPool) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDecommissionPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDecommissionPool) ProtoMessage()
- func (m *MsgDecommissionPool) Reset()
- func (m MsgDecommissionPool) Route() string
- func (m *MsgDecommissionPool) Size() (n int)
- func (m *MsgDecommissionPool) String() string
- func (m MsgDecommissionPool) Type() string
- func (m *MsgDecommissionPool) Unmarshal(dAtA []byte) error
- func (m MsgDecommissionPool) ValidateBasic() error
- func (m *MsgDecommissionPool) XXX_DiscardUnknown()
- func (m *MsgDecommissionPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDecommissionPool) XXX_Merge(src proto.Message)
- func (m *MsgDecommissionPool) XXX_Size() int
- func (m *MsgDecommissionPool) XXX_Unmarshal(b []byte) error
- type MsgDecommissionPoolResponse
- func (*MsgDecommissionPoolResponse) Descriptor() ([]byte, []int)
- func (m *MsgDecommissionPoolResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDecommissionPoolResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDecommissionPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDecommissionPoolResponse) ProtoMessage()
- func (m *MsgDecommissionPoolResponse) Reset()
- func (m *MsgDecommissionPoolResponse) Size() (n int)
- func (m *MsgDecommissionPoolResponse) String() string
- func (m *MsgDecommissionPoolResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDecommissionPoolResponse) XXX_DiscardUnknown()
- func (m *MsgDecommissionPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDecommissionPoolResponse) XXX_Merge(src proto.Message)
- func (m *MsgDecommissionPoolResponse) XXX_Size() int
- func (m *MsgDecommissionPoolResponse) XXX_Unmarshal(b []byte) error
- type MsgRemoveLiquidity
- func (*MsgRemoveLiquidity) Descriptor() ([]byte, []int)
- func (m *MsgRemoveLiquidity) GetExternalAsset() *Asset
- func (m MsgRemoveLiquidity) GetSignBytes() []byte
- func (m *MsgRemoveLiquidity) GetSigner() string
- func (m MsgRemoveLiquidity) GetSigners() []sdk.AccAddress
- func (m *MsgRemoveLiquidity) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveLiquidity) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveLiquidity) ProtoMessage()
- func (m *MsgRemoveLiquidity) Reset()
- func (m MsgRemoveLiquidity) Route() string
- func (m *MsgRemoveLiquidity) Size() (n int)
- func (m *MsgRemoveLiquidity) String() string
- func (m MsgRemoveLiquidity) Type() string
- func (m *MsgRemoveLiquidity) Unmarshal(dAtA []byte) error
- func (m MsgRemoveLiquidity) ValidateBasic() error
- func (m *MsgRemoveLiquidity) XXX_DiscardUnknown()
- func (m *MsgRemoveLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveLiquidity) XXX_Merge(src proto.Message)
- func (m *MsgRemoveLiquidity) XXX_Size() int
- func (m *MsgRemoveLiquidity) XXX_Unmarshal(b []byte) error
- type MsgRemoveLiquidityResponse
- func (*MsgRemoveLiquidityResponse) Descriptor() ([]byte, []int)
- func (m *MsgRemoveLiquidityResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRemoveLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRemoveLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRemoveLiquidityResponse) ProtoMessage()
- func (m *MsgRemoveLiquidityResponse) Reset()
- func (m *MsgRemoveLiquidityResponse) Size() (n int)
- func (m *MsgRemoveLiquidityResponse) String() string
- func (m *MsgRemoveLiquidityResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRemoveLiquidityResponse) XXX_DiscardUnknown()
- func (m *MsgRemoveLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRemoveLiquidityResponse) XXX_Merge(src proto.Message)
- func (m *MsgRemoveLiquidityResponse) XXX_Size() int
- func (m *MsgRemoveLiquidityResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSwap
- func (*MsgSwap) Descriptor() ([]byte, []int)
- func (m *MsgSwap) GetReceivedAsset() *Asset
- func (m *MsgSwap) GetSentAsset() *Asset
- func (m MsgSwap) GetSignBytes() []byte
- func (m *MsgSwap) GetSigner() string
- func (m MsgSwap) GetSigners() []sdk.AccAddress
- func (m *MsgSwap) Marshal() (dAtA []byte, err error)
- func (m *MsgSwap) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwap) ProtoMessage()
- func (m *MsgSwap) Reset()
- func (m MsgSwap) Route() string
- func (m *MsgSwap) Size() (n int)
- func (m *MsgSwap) String() string
- func (m MsgSwap) Type() string
- func (m *MsgSwap) Unmarshal(dAtA []byte) error
- func (m MsgSwap) ValidateBasic() error
- func (m *MsgSwap) XXX_DiscardUnknown()
- func (m *MsgSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwap) XXX_Merge(src proto.Message)
- func (m *MsgSwap) XXX_Size() int
- func (m *MsgSwap) XXX_Unmarshal(b []byte) error
- type MsgSwapResponse
- func (*MsgSwapResponse) Descriptor() ([]byte, []int)
- func (m *MsgSwapResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSwapResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSwapResponse) ProtoMessage()
- func (m *MsgSwapResponse) Reset()
- func (m *MsgSwapResponse) Size() (n int)
- func (m *MsgSwapResponse) String() string
- func (m *MsgSwapResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSwapResponse) XXX_DiscardUnknown()
- func (m *MsgSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSwapResponse) XXX_Merge(src proto.Message)
- func (m *MsgSwapResponse) XXX_Size() int
- func (m *MsgSwapResponse) XXX_Unmarshal(b []byte) error
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (p Params) Equal(p2 Params) bool
- func (m *Params) GetMinCreatePoolThreshold() uint64
- 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 Pool
- func (*Pool) Descriptor() ([]byte, []int)
- func (m *Pool) GetExternalAsset() *Asset
- func (m *Pool) Marshal() (dAtA []byte, err error)
- func (m *Pool) MarshalTo(dAtA []byte) (int, error)
- func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Pool) ProtoMessage()
- func (m *Pool) Reset()
- func (m *Pool) Size() (n int)
- func (m *Pool) String() string
- func (m *Pool) Unmarshal(dAtA []byte) error
- func (p Pool) Validate() bool
- func (m *Pool) XXX_DiscardUnknown()
- func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Pool) XXX_Merge(src proto.Message)
- func (m *Pool) XXX_Size() int
- func (m *Pool) XXX_Unmarshal(b []byte) error
- type PoolReq
- func (*PoolReq) Descriptor() ([]byte, []int)
- func (m *PoolReq) Marshal() (dAtA []byte, err error)
- func (m *PoolReq) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolReq) ProtoMessage()
- func (m *PoolReq) Reset()
- func (m *PoolReq) Size() (n int)
- func (m *PoolReq) String() string
- func (m *PoolReq) Unmarshal(dAtA []byte) error
- func (m *PoolReq) XXX_DiscardUnknown()
- func (m *PoolReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolReq) XXX_Merge(src proto.Message)
- func (m *PoolReq) XXX_Size() int
- func (m *PoolReq) XXX_Unmarshal(b []byte) error
- type PoolRes
- func (*PoolRes) Descriptor() ([]byte, []int)
- func (m *PoolRes) GetClpModuleAddress() string
- func (m *PoolRes) GetHeight() int64
- func (m *PoolRes) GetPool() *Pool
- func (m *PoolRes) Marshal() (dAtA []byte, err error)
- func (m *PoolRes) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolRes) ProtoMessage()
- func (m *PoolRes) Reset()
- func (m *PoolRes) Size() (n int)
- func (m *PoolRes) String() string
- func (m *PoolRes) Unmarshal(dAtA []byte) error
- func (m *PoolRes) XXX_DiscardUnknown()
- func (m *PoolRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolRes) XXX_Merge(src proto.Message)
- func (m *PoolRes) XXX_Size() int
- func (m *PoolRes) XXX_Unmarshal(b []byte) error
- type Pools
- type PoolsReq
- func (*PoolsReq) Descriptor() ([]byte, []int)
- func (m *PoolsReq) GetPagination() *query.PageRequest
- func (m *PoolsReq) Marshal() (dAtA []byte, err error)
- func (m *PoolsReq) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolsReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolsReq) ProtoMessage()
- func (m *PoolsReq) Reset()
- func (m *PoolsReq) Size() (n int)
- func (m *PoolsReq) String() string
- func (m *PoolsReq) Unmarshal(dAtA []byte) error
- func (m *PoolsReq) XXX_DiscardUnknown()
- func (m *PoolsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolsReq) XXX_Merge(src proto.Message)
- func (m *PoolsReq) XXX_Size() int
- func (m *PoolsReq) XXX_Unmarshal(b []byte) error
- type PoolsRes
- func (*PoolsRes) Descriptor() ([]byte, []int)
- func (m *PoolsRes) GetClpModuleAddress() string
- func (m *PoolsRes) GetHeight() int64
- func (m *PoolsRes) GetPagination() *query.PageResponse
- func (m *PoolsRes) GetPools() []*Pool
- func (m *PoolsRes) Marshal() (dAtA []byte, err error)
- func (m *PoolsRes) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolsRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolsRes) ProtoMessage()
- func (m *PoolsRes) Reset()
- func (m *PoolsRes) Size() (n int)
- func (m *PoolsRes) String() string
- func (m *PoolsRes) Unmarshal(dAtA []byte) error
- func (m *PoolsRes) XXX_DiscardUnknown()
- func (m *PoolsRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolsRes) XXX_Merge(src proto.Message)
- func (m *PoolsRes) XXX_Size() int
- func (m *PoolsRes) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type TokenRegistryKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddLiquidity(ctx context.Context, req *MsgAddLiquidity) (*MsgAddLiquidityResponse, error)
- func (*UnimplementedMsgServer) CreatePool(ctx context.Context, req *MsgCreatePool) (*MsgCreatePoolResponse, error)
- func (*UnimplementedMsgServer) DecommissionPool(ctx context.Context, req *MsgDecommissionPool) (*MsgDecommissionPoolResponse, error)
- func (*UnimplementedMsgServer) RemoveLiquidity(ctx context.Context, req *MsgRemoveLiquidity) (*MsgRemoveLiquidityResponse, error)
- func (*UnimplementedMsgServer) Swap(ctx context.Context, req *MsgSwap) (*MsgSwapResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) GetAssetList(ctx context.Context, req *AssetListReq) (*AssetListRes, error)
- func (*UnimplementedQueryServer) GetLiquidityProvider(ctx context.Context, req *LiquidityProviderReq) (*LiquidityProviderRes, error)
- func (*UnimplementedQueryServer) GetLiquidityProviderData(ctx context.Context, req *LiquidityProviderDataReq) (*LiquidityProviderDataRes, error)
- func (*UnimplementedQueryServer) GetLiquidityProviderList(ctx context.Context, req *LiquidityProviderListReq) (*LiquidityProviderListRes, error)
- func (*UnimplementedQueryServer) GetLiquidityProviders(ctx context.Context, req *LiquidityProvidersReq) (*LiquidityProvidersRes, error)
- func (*UnimplementedQueryServer) GetPool(ctx context.Context, req *PoolReq) (*PoolRes, error)
- func (*UnimplementedQueryServer) GetPools(ctx context.Context, req *PoolsReq) (*PoolsRes, error)
- type WhiteList
- func (*WhiteList) Descriptor() ([]byte, []int)
- func (m *WhiteList) GetValidatorList() []string
- func (m *WhiteList) Marshal() (dAtA []byte, err error)
- func (m *WhiteList) MarshalTo(dAtA []byte) (int, error)
- func (m *WhiteList) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WhiteList) ProtoMessage()
- func (m *WhiteList) Reset()
- func (m *WhiteList) Size() (n int)
- func (m *WhiteList) String() string
- func (m *WhiteList) Unmarshal(dAtA []byte) error
- func (m *WhiteList) XXX_DiscardUnknown()
- func (m *WhiteList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WhiteList) XXX_Merge(src proto.Message)
- func (m *WhiteList) XXX_Size() int
- func (m *WhiteList) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeCreatePool = "created_new_pool" EventTypeDecommissionPool = "decommission_pool" EventTypeCreateLiquidityProvider = "created_new_liquidity_provider" EventTypeAddLiquidity = "added_liquidity" EventTypeRemoveLiquidity = "removed_liquidity" EventTypeSwap = "swap_successful" EventTypeSwapFailed = "swap_failed" AttributeKeyThreshold = "min_threshold" AttributeKeySwapAmount = "swap_amount" AttributeKeyLiquidityFee = "liquidity_fee" AttributeKeyPriceImpact = "price_impact" AttributeKeyInPool = "in_pool" AttributeKeyOutPool = "out_pool" AttributeKeyPool = "pool" AttributeKeyHeight = "height" AttributeKeyLiquidityProvider = "liquidity_provider" AttributeValueCategory = ModuleName )
const ( // ModuleName is the name of the module ModuleName = "clp" // StoreKey to be used when creating the KVStore StoreKey = ModuleName // RouterKey to be used for routing msgs RouterKey = ModuleName // QuerierRoute to be used for querier msgs QuerierRoute = ModuleName NativeSymbol = "rowan" PoolThrehold = "1000000000000000000" PoolUnitsMinValue = "1000000000" MaxSymbolLength = 71 MaxWbasis = 10000 )
const ( DefaultParamspace = ModuleName DefaultMinCreatePoolThreshold uint64 = 100 )
Default parameter namespace
const ( QueryPool = "pool" QueryPools = "allpools" QueryAssetList = "assetList" QueryLiquidityProvider = "liquidityProvider" QueryLiquidityProviderData = "liquidityProviderData" QueryLPList = "lpList" QueryAllLP = "allLp" )
Variables ¶
var ( ErrInvalid = sdkerrors.Register(ModuleName, 1, "invalid") ErrPoolDoesNotExist = sdkerrors.Register(ModuleName, 2, "pool does not exist") ErrLiquidityProviderDoesNotExist = sdkerrors.Register(ModuleName, 3, "liquidity Provider does not exist") ErrInValidAsset = sdkerrors.Register(ModuleName, 4, "asset is invalid") ErrInValidAmount = sdkerrors.Register(ModuleName, 5, "amount is invalid") ErrTotalAmountTooLow = sdkerrors.Register(ModuleName, 7, "total amount is less than minimum threshold") ErrNotEnoughAssetTokens = sdkerrors.Register(ModuleName, 8, "not enough received asset tokens to swap") ErrInvalidAsymmetry = sdkerrors.Register(ModuleName, 9, "Asymmetry has to be between -10000 and 10000") ErrInvalidWBasis = sdkerrors.Register(ModuleName, 10, "WBasisPoints has to be positive") ErrBalanceTooHigh = sdkerrors.Register(ModuleName, 11, "Pool Balance too high to be decommissioned") ErrUnableToSetPool = sdkerrors.Register(ModuleName, 12, "Unable to set pool") ErrUnableToDestroyPool = sdkerrors.Register(ModuleName, 13, "Unable to destroy pool") ErrUnableToCreatePool = sdkerrors.Register(ModuleName, 14, "Unable to create pool") ErrBalanceNotAvailable = sdkerrors.Register(ModuleName, 18, "user does not have enough balance of the required coin") ErrTokenNotSupported = sdkerrors.Register(ModuleName, 19, "Token not supported by sifchain") ErrUnableToAddBalance = sdkerrors.Register(ModuleName, 20, "unable to add balance") ErrNotEnoughLiquidity = sdkerrors.Register(ModuleName, 21, "pool does not have sufficient balance") ErrPoolTooShallow = sdkerrors.Register(ModuleName, 23, "Cannot withdraw pool is too shallow") ErrOverFlow = sdkerrors.Register(ModuleName, 24, "IntegerOverflow") ErrUnableToAddLiquidity = sdkerrors.Register(ModuleName, 25, "Unable to add liquidity") ErrUnableToRemoveLiquidity = sdkerrors.Register(ModuleName, 26, "Unable to remove liquidity") ErrUnableToSwap = sdkerrors.Register(ModuleName, 27, "Unable to swap") ErrUnableToRemoveLiquidityProvider = sdkerrors.Register(ModuleName, 28, "Unable to add liquidity provider") ErrUnableToDecommissionPool = sdkerrors.Register(ModuleName, 29, "Unable to decommission pool") ErrUnableToParseInt = sdkerrors.Register(ModuleName, 30, "Unable to parse to Int") ErrReceivedAmountBelowExpected = sdkerrors.Register(ModuleName, 31, "Unable to swap, received amount is below expected") ErrAmountTooLow = sdkerrors.Register(ModuleName, 32, "Tx amount is too low") )
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 ( PoolPrefix = []byte{0x00} // key for storing Pools LiquidityProviderPrefix = []byte{0x01} // key for storing Liquidity Providers WhiteListValidatorPrefix = []byte{0x02} // Key to store WhiteList , allowed to decommission pools )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuerier = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuerier = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuerier = 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 ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var (
KeyMinCreatePoolThreshold = []byte("MinCreatePoolThreshold")
)
Parameter store keys
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func GetCLPModuleAddress ¶
func GetCLPModuleAddress() sdk.AccAddress
func GetDefaultCLPAdmin ¶
func GetDefaultCLPAdmin() sdk.AccAddress
func GetLiquidityProviderKey ¶
Generate key to store a Liquidity Provider The key is of the format ticker_lpaddress Example : eth_sif1azpar20ck9lpys89r8x7zc8yu0qzgvtp48ng5v and converted into bytes after adding a prefix
func GetPoolKey ¶
Generates a key for storing a specific pool The key is of the format externalticker_nativeticker Example : eth_rwn and converted into bytes after adding a prefix
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterCodec registers concrete types on codec
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 VerifyRange ¶
Types ¶
type Asset ¶
type Asset struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
}
func GetSettlementAsset ¶
func GetSettlementAsset() Asset
func (*Asset) Descriptor ¶
func (*Asset) ProtoMessage ¶
func (*Asset) ProtoMessage()
func (*Asset) XXX_DiscardUnknown ¶
func (m *Asset) XXX_DiscardUnknown()
func (*Asset) XXX_Marshal ¶
func (*Asset) XXX_Unmarshal ¶
type AssetListReq ¶
type AssetListReq struct { LpAddress string `protobuf:"bytes,1,opt,name=lp_address,json=lpAddress,proto3" json:"lp_address,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*AssetListReq) Descriptor ¶
func (*AssetListReq) Descriptor() ([]byte, []int)
func (*AssetListReq) Marshal ¶
func (m *AssetListReq) Marshal() (dAtA []byte, err error)
func (*AssetListReq) MarshalToSizedBuffer ¶
func (m *AssetListReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AssetListReq) ProtoMessage ¶
func (*AssetListReq) ProtoMessage()
func (*AssetListReq) Reset ¶
func (m *AssetListReq) Reset()
func (*AssetListReq) Size ¶
func (m *AssetListReq) Size() (n int)
func (*AssetListReq) String ¶
func (m *AssetListReq) String() string
func (*AssetListReq) Unmarshal ¶
func (m *AssetListReq) Unmarshal(dAtA []byte) error
func (*AssetListReq) XXX_DiscardUnknown ¶
func (m *AssetListReq) XXX_DiscardUnknown()
func (*AssetListReq) XXX_Marshal ¶
func (m *AssetListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssetListReq) XXX_Merge ¶
func (m *AssetListReq) XXX_Merge(src proto.Message)
func (*AssetListReq) XXX_Size ¶
func (m *AssetListReq) XXX_Size() int
func (*AssetListReq) XXX_Unmarshal ¶
func (m *AssetListReq) XXX_Unmarshal(b []byte) error
type AssetListRes ¶
type AssetListRes struct { Assets []*Asset `protobuf:"bytes,1,rep,name=assets,proto3" json:"assets,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*AssetListRes) Descriptor ¶
func (*AssetListRes) Descriptor() ([]byte, []int)
func (*AssetListRes) GetAssets ¶
func (m *AssetListRes) GetAssets() []*Asset
func (*AssetListRes) GetHeight ¶
func (m *AssetListRes) GetHeight() int64
func (*AssetListRes) GetPagination ¶
func (m *AssetListRes) GetPagination() *query.PageResponse
func (*AssetListRes) Marshal ¶
func (m *AssetListRes) Marshal() (dAtA []byte, err error)
func (*AssetListRes) MarshalToSizedBuffer ¶
func (m *AssetListRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*AssetListRes) ProtoMessage ¶
func (*AssetListRes) ProtoMessage()
func (*AssetListRes) Reset ¶
func (m *AssetListRes) Reset()
func (*AssetListRes) Size ¶
func (m *AssetListRes) Size() (n int)
func (*AssetListRes) String ¶
func (m *AssetListRes) String() string
func (*AssetListRes) Unmarshal ¶
func (m *AssetListRes) Unmarshal(dAtA []byte) error
func (*AssetListRes) XXX_DiscardUnknown ¶
func (m *AssetListRes) XXX_DiscardUnknown()
func (*AssetListRes) XXX_Marshal ¶
func (m *AssetListRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AssetListRes) XXX_Merge ¶
func (m *AssetListRes) XXX_Merge(src proto.Message)
func (*AssetListRes) XXX_Size ¶
func (m *AssetListRes) XXX_Size() int
func (*AssetListRes) XXX_Unmarshal ¶
func (m *AssetListRes) XXX_Unmarshal(b []byte) error
type AuthKeeper ¶
type AuthKeeper interface { SetModuleAccount(sdk.Context, authtypes.ModuleAccountI) GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI }
type BankKeeper ¶
type BankKeeper interface { SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error 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 MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool }
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` AddressWhitelist []string `protobuf:"bytes,2,rep,name=address_whitelist,json=addressWhitelist,proto3" json:"address_whitelist,omitempty"` PoolList []*Pool `protobuf:"bytes,3,rep,name=pool_list,json=poolList,proto3" json:"pool_list,omitempty"` LiquidityProviders []*LiquidityProvider `protobuf:"bytes,4,rep,name=liquidity_providers,json=liquidityProviders,proto3" json:"liquidity_providers,omitempty"` }
GenesisState - all clp state that must be provided at genesis TODO: Add parameters to Genesis state ,such as minimum liquidity required to create a pool
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState gets the raw genesis raw message for testing
func GetGenesisStateFromAppState ¶
func GetGenesisStateFromAppState(marshaler codec.JSONCodec, appState map[string]json.RawMessage) GenesisState
func NewGenesisState ¶
func NewGenesisState(params Params) GenesisState
NewGenesisState creates a new GenesisState instance
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetAddressWhitelist ¶
func (m *GenesisState) GetAddressWhitelist() []string
func (*GenesisState) GetLiquidityProviders ¶
func (m *GenesisState) GetLiquidityProviders() []*LiquidityProvider
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetPoolList ¶
func (m *GenesisState) GetPoolList() []*Pool
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type LiquidityProvider ¶
type LiquidityProvider struct { Asset *Asset `protobuf:"bytes,1,opt,name=asset,proto3" json:"asset,omitempty"` LiquidityProviderUnits github_com_cosmos_cosmos_sdk_types.Uint `` /* 202-byte string literal not displayed */ LiquidityProviderAddress string `` /* 135-byte string literal not displayed */ }
func NewLiquidityProvider ¶
func NewLiquidityProvider(asset *Asset, liquidityProviderUnits sdk.Uint, liquidityProviderAddress sdk.AccAddress) LiquidityProvider
NewLiquidityProvider returns a new LiquidityProvider
func (*LiquidityProvider) Descriptor ¶
func (*LiquidityProvider) Descriptor() ([]byte, []int)
func (*LiquidityProvider) GetAsset ¶
func (m *LiquidityProvider) GetAsset() *Asset
func (*LiquidityProvider) GetLiquidityProviderAddress ¶
func (m *LiquidityProvider) GetLiquidityProviderAddress() string
func (*LiquidityProvider) Marshal ¶
func (m *LiquidityProvider) Marshal() (dAtA []byte, err error)
func (*LiquidityProvider) MarshalTo ¶
func (m *LiquidityProvider) MarshalTo(dAtA []byte) (int, error)
func (*LiquidityProvider) MarshalToSizedBuffer ¶
func (m *LiquidityProvider) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LiquidityProvider) ProtoMessage ¶
func (*LiquidityProvider) ProtoMessage()
func (*LiquidityProvider) Reset ¶
func (m *LiquidityProvider) Reset()
func (*LiquidityProvider) Size ¶
func (m *LiquidityProvider) Size() (n int)
func (*LiquidityProvider) String ¶
func (m *LiquidityProvider) String() string
func (*LiquidityProvider) Unmarshal ¶
func (m *LiquidityProvider) Unmarshal(dAtA []byte) error
func (LiquidityProvider) Validate ¶
func (l LiquidityProvider) Validate() bool
func (*LiquidityProvider) XXX_DiscardUnknown ¶
func (m *LiquidityProvider) XXX_DiscardUnknown()
func (*LiquidityProvider) XXX_Marshal ¶
func (m *LiquidityProvider) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiquidityProvider) XXX_Merge ¶
func (m *LiquidityProvider) XXX_Merge(src proto.Message)
func (*LiquidityProvider) XXX_Size ¶
func (m *LiquidityProvider) XXX_Size() int
func (*LiquidityProvider) XXX_Unmarshal ¶
func (m *LiquidityProvider) XXX_Unmarshal(b []byte) error
type LiquidityProviderData ¶
type LiquidityProviderData struct { LiquidityProvider *LiquidityProvider `protobuf:"bytes,1,opt,name=liquidity_provider,json=liquidityProvider,proto3" json:"liquidity_provider,omitempty"` NativeAssetBalance string `protobuf:"bytes,2,opt,name=native_asset_balance,json=nativeAssetBalance,proto3" json:"native_asset_balance,omitempty"` ExternalAssetBalance string `protobuf:"bytes,3,opt,name=external_asset_balance,json=externalAssetBalance,proto3" json:"external_asset_balance,omitempty"` }
func NewLiquidityProviderData ¶
func NewLiquidityProviderData(liquidityProvider LiquidityProvider, nativeBalance string, externalBalance string) LiquidityProviderData
func (*LiquidityProviderData) Descriptor ¶
func (*LiquidityProviderData) Descriptor() ([]byte, []int)
func (*LiquidityProviderData) GetExternalAssetBalance ¶
func (m *LiquidityProviderData) GetExternalAssetBalance() string
func (*LiquidityProviderData) GetLiquidityProvider ¶
func (m *LiquidityProviderData) GetLiquidityProvider() *LiquidityProvider
func (*LiquidityProviderData) GetNativeAssetBalance ¶
func (m *LiquidityProviderData) GetNativeAssetBalance() string
func (*LiquidityProviderData) Marshal ¶
func (m *LiquidityProviderData) Marshal() (dAtA []byte, err error)
func (*LiquidityProviderData) MarshalTo ¶
func (m *LiquidityProviderData) MarshalTo(dAtA []byte) (int, error)
func (*LiquidityProviderData) MarshalToSizedBuffer ¶
func (m *LiquidityProviderData) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LiquidityProviderData) ProtoMessage ¶
func (*LiquidityProviderData) ProtoMessage()
func (*LiquidityProviderData) Reset ¶
func (m *LiquidityProviderData) Reset()
func (*LiquidityProviderData) Size ¶
func (m *LiquidityProviderData) Size() (n int)
func (*LiquidityProviderData) String ¶
func (m *LiquidityProviderData) String() string
func (*LiquidityProviderData) Unmarshal ¶
func (m *LiquidityProviderData) Unmarshal(dAtA []byte) error
func (*LiquidityProviderData) XXX_DiscardUnknown ¶
func (m *LiquidityProviderData) XXX_DiscardUnknown()
func (*LiquidityProviderData) XXX_Marshal ¶
func (m *LiquidityProviderData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiquidityProviderData) XXX_Merge ¶
func (m *LiquidityProviderData) XXX_Merge(src proto.Message)
func (*LiquidityProviderData) XXX_Size ¶
func (m *LiquidityProviderData) XXX_Size() int
func (*LiquidityProviderData) XXX_Unmarshal ¶
func (m *LiquidityProviderData) XXX_Unmarshal(b []byte) error
type LiquidityProviderDataReq ¶
type LiquidityProviderDataReq struct { LpAddress string `protobuf:"bytes,1,opt,name=lp_address,json=lpAddress,proto3" json:"lp_address,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*LiquidityProviderDataReq) Descriptor ¶
func (*LiquidityProviderDataReq) Descriptor() ([]byte, []int)
func (*LiquidityProviderDataReq) Marshal ¶
func (m *LiquidityProviderDataReq) Marshal() (dAtA []byte, err error)
func (*LiquidityProviderDataReq) MarshalTo ¶
func (m *LiquidityProviderDataReq) MarshalTo(dAtA []byte) (int, error)
func (*LiquidityProviderDataReq) MarshalToSizedBuffer ¶
func (m *LiquidityProviderDataReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LiquidityProviderDataReq) ProtoMessage ¶
func (*LiquidityProviderDataReq) ProtoMessage()
func (*LiquidityProviderDataReq) Reset ¶
func (m *LiquidityProviderDataReq) Reset()
func (*LiquidityProviderDataReq) Size ¶
func (m *LiquidityProviderDataReq) Size() (n int)
func (*LiquidityProviderDataReq) String ¶
func (m *LiquidityProviderDataReq) String() string
func (*LiquidityProviderDataReq) Unmarshal ¶
func (m *LiquidityProviderDataReq) Unmarshal(dAtA []byte) error
func (*LiquidityProviderDataReq) XXX_DiscardUnknown ¶
func (m *LiquidityProviderDataReq) XXX_DiscardUnknown()
func (*LiquidityProviderDataReq) XXX_Marshal ¶
func (m *LiquidityProviderDataReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiquidityProviderDataReq) XXX_Merge ¶
func (m *LiquidityProviderDataReq) XXX_Merge(src proto.Message)
func (*LiquidityProviderDataReq) XXX_Size ¶
func (m *LiquidityProviderDataReq) XXX_Size() int
func (*LiquidityProviderDataReq) XXX_Unmarshal ¶
func (m *LiquidityProviderDataReq) XXX_Unmarshal(b []byte) error
type LiquidityProviderDataRes ¶
type LiquidityProviderDataRes struct { LiquidityProviderData []*LiquidityProviderData `` /* 126-byte string literal not displayed */ Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func NewLiquidityProviderDataResponse ¶
func NewLiquidityProviderDataResponse(liquidityProviderData []*LiquidityProviderData, height int64) LiquidityProviderDataRes
func (*LiquidityProviderDataRes) Descriptor ¶
func (*LiquidityProviderDataRes) Descriptor() ([]byte, []int)
func (*LiquidityProviderDataRes) GetHeight ¶
func (m *LiquidityProviderDataRes) GetHeight() int64
func (*LiquidityProviderDataRes) GetLiquidityProviderData ¶
func (m *LiquidityProviderDataRes) GetLiquidityProviderData() []*LiquidityProviderData
func (*LiquidityProviderDataRes) GetPagination ¶
func (m *LiquidityProviderDataRes) GetPagination() *query.PageRequest
func (*LiquidityProviderDataRes) Marshal ¶
func (m *LiquidityProviderDataRes) Marshal() (dAtA []byte, err error)
func (*LiquidityProviderDataRes) MarshalTo ¶
func (m *LiquidityProviderDataRes) MarshalTo(dAtA []byte) (int, error)
func (*LiquidityProviderDataRes) MarshalToSizedBuffer ¶
func (m *LiquidityProviderDataRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LiquidityProviderDataRes) ProtoMessage ¶
func (*LiquidityProviderDataRes) ProtoMessage()
func (*LiquidityProviderDataRes) Reset ¶
func (m *LiquidityProviderDataRes) Reset()
func (*LiquidityProviderDataRes) Size ¶
func (m *LiquidityProviderDataRes) Size() (n int)
func (*LiquidityProviderDataRes) String ¶
func (m *LiquidityProviderDataRes) String() string
func (*LiquidityProviderDataRes) Unmarshal ¶
func (m *LiquidityProviderDataRes) Unmarshal(dAtA []byte) error
func (*LiquidityProviderDataRes) XXX_DiscardUnknown ¶
func (m *LiquidityProviderDataRes) XXX_DiscardUnknown()
func (*LiquidityProviderDataRes) XXX_Marshal ¶
func (m *LiquidityProviderDataRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiquidityProviderDataRes) XXX_Merge ¶
func (m *LiquidityProviderDataRes) XXX_Merge(src proto.Message)
func (*LiquidityProviderDataRes) XXX_Size ¶
func (m *LiquidityProviderDataRes) XXX_Size() int
func (*LiquidityProviderDataRes) XXX_Unmarshal ¶
func (m *LiquidityProviderDataRes) XXX_Unmarshal(b []byte) error
type LiquidityProviderListReq ¶
type LiquidityProviderListReq struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*LiquidityProviderListReq) Descriptor ¶
func (*LiquidityProviderListReq) Descriptor() ([]byte, []int)
func (*LiquidityProviderListReq) Marshal ¶
func (m *LiquidityProviderListReq) Marshal() (dAtA []byte, err error)
func (*LiquidityProviderListReq) MarshalTo ¶
func (m *LiquidityProviderListReq) MarshalTo(dAtA []byte) (int, error)
func (*LiquidityProviderListReq) MarshalToSizedBuffer ¶
func (m *LiquidityProviderListReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LiquidityProviderListReq) ProtoMessage ¶
func (*LiquidityProviderListReq) ProtoMessage()
func (*LiquidityProviderListReq) Reset ¶
func (m *LiquidityProviderListReq) Reset()
func (*LiquidityProviderListReq) Size ¶
func (m *LiquidityProviderListReq) Size() (n int)
func (*LiquidityProviderListReq) String ¶
func (m *LiquidityProviderListReq) String() string
func (*LiquidityProviderListReq) Unmarshal ¶
func (m *LiquidityProviderListReq) Unmarshal(dAtA []byte) error
func (*LiquidityProviderListReq) XXX_DiscardUnknown ¶
func (m *LiquidityProviderListReq) XXX_DiscardUnknown()
func (*LiquidityProviderListReq) XXX_Marshal ¶
func (m *LiquidityProviderListReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiquidityProviderListReq) XXX_Merge ¶
func (m *LiquidityProviderListReq) XXX_Merge(src proto.Message)
func (*LiquidityProviderListReq) XXX_Size ¶
func (m *LiquidityProviderListReq) XXX_Size() int
func (*LiquidityProviderListReq) XXX_Unmarshal ¶
func (m *LiquidityProviderListReq) XXX_Unmarshal(b []byte) error
type LiquidityProviderListRes ¶
type LiquidityProviderListRes struct { LiquidityProviders []*LiquidityProvider `protobuf:"bytes,1,rep,name=liquidity_providers,json=liquidityProviders,proto3" json:"liquidity_providers,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*LiquidityProviderListRes) Descriptor ¶
func (*LiquidityProviderListRes) Descriptor() ([]byte, []int)
func (*LiquidityProviderListRes) GetHeight ¶
func (m *LiquidityProviderListRes) GetHeight() int64
func (*LiquidityProviderListRes) GetLiquidityProviders ¶
func (m *LiquidityProviderListRes) GetLiquidityProviders() []*LiquidityProvider
func (*LiquidityProviderListRes) GetPagination ¶
func (m *LiquidityProviderListRes) GetPagination() *query.PageResponse
func (*LiquidityProviderListRes) Marshal ¶
func (m *LiquidityProviderListRes) Marshal() (dAtA []byte, err error)
func (*LiquidityProviderListRes) MarshalTo ¶
func (m *LiquidityProviderListRes) MarshalTo(dAtA []byte) (int, error)
func (*LiquidityProviderListRes) MarshalToSizedBuffer ¶
func (m *LiquidityProviderListRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LiquidityProviderListRes) ProtoMessage ¶
func (*LiquidityProviderListRes) ProtoMessage()
func (*LiquidityProviderListRes) Reset ¶
func (m *LiquidityProviderListRes) Reset()
func (*LiquidityProviderListRes) Size ¶
func (m *LiquidityProviderListRes) Size() (n int)
func (*LiquidityProviderListRes) String ¶
func (m *LiquidityProviderListRes) String() string
func (*LiquidityProviderListRes) Unmarshal ¶
func (m *LiquidityProviderListRes) Unmarshal(dAtA []byte) error
func (*LiquidityProviderListRes) XXX_DiscardUnknown ¶
func (m *LiquidityProviderListRes) XXX_DiscardUnknown()
func (*LiquidityProviderListRes) XXX_Marshal ¶
func (m *LiquidityProviderListRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiquidityProviderListRes) XXX_Merge ¶
func (m *LiquidityProviderListRes) XXX_Merge(src proto.Message)
func (*LiquidityProviderListRes) XXX_Size ¶
func (m *LiquidityProviderListRes) XXX_Size() int
func (*LiquidityProviderListRes) XXX_Unmarshal ¶
func (m *LiquidityProviderListRes) XXX_Unmarshal(b []byte) error
type LiquidityProviderReq ¶
type LiquidityProviderReq struct { Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` LpAddress string `protobuf:"bytes,2,opt,name=lp_address,json=lpAddress,proto3" json:"lp_address,omitempty"` }
func (*LiquidityProviderReq) Descriptor ¶
func (*LiquidityProviderReq) Descriptor() ([]byte, []int)
func (*LiquidityProviderReq) Marshal ¶
func (m *LiquidityProviderReq) Marshal() (dAtA []byte, err error)
func (*LiquidityProviderReq) MarshalTo ¶
func (m *LiquidityProviderReq) MarshalTo(dAtA []byte) (int, error)
func (*LiquidityProviderReq) MarshalToSizedBuffer ¶
func (m *LiquidityProviderReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LiquidityProviderReq) ProtoMessage ¶
func (*LiquidityProviderReq) ProtoMessage()
func (*LiquidityProviderReq) Reset ¶
func (m *LiquidityProviderReq) Reset()
func (*LiquidityProviderReq) Size ¶
func (m *LiquidityProviderReq) Size() (n int)
func (*LiquidityProviderReq) String ¶
func (m *LiquidityProviderReq) String() string
func (*LiquidityProviderReq) Unmarshal ¶
func (m *LiquidityProviderReq) Unmarshal(dAtA []byte) error
func (*LiquidityProviderReq) XXX_DiscardUnknown ¶
func (m *LiquidityProviderReq) XXX_DiscardUnknown()
func (*LiquidityProviderReq) XXX_Marshal ¶
func (m *LiquidityProviderReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiquidityProviderReq) XXX_Merge ¶
func (m *LiquidityProviderReq) XXX_Merge(src proto.Message)
func (*LiquidityProviderReq) XXX_Size ¶
func (m *LiquidityProviderReq) XXX_Size() int
func (*LiquidityProviderReq) XXX_Unmarshal ¶
func (m *LiquidityProviderReq) XXX_Unmarshal(b []byte) error
type LiquidityProviderRes ¶
type LiquidityProviderRes struct { LiquidityProvider *LiquidityProvider `protobuf:"bytes,1,opt,name=liquidity_provider,json=liquidityProvider,proto3" json:"liquidity_provider,omitempty"` NativeAssetBalance string `protobuf:"bytes,2,opt,name=native_asset_balance,json=nativeAssetBalance,proto3" json:"native_asset_balance,omitempty"` ExternalAssetBalance string `protobuf:"bytes,3,opt,name=external_asset_balance,json=externalAssetBalance,proto3" json:"external_asset_balance,omitempty"` Height int64 `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"` }
func NewLiquidityProviderResponse ¶
func NewLiquidityProviderResponse(liquidityProvider LiquidityProvider, height int64, nativeBalance string, externalBalance string) LiquidityProviderRes
func (*LiquidityProviderRes) Descriptor ¶
func (*LiquidityProviderRes) Descriptor() ([]byte, []int)
func (*LiquidityProviderRes) GetExternalAssetBalance ¶
func (m *LiquidityProviderRes) GetExternalAssetBalance() string
func (*LiquidityProviderRes) GetHeight ¶
func (m *LiquidityProviderRes) GetHeight() int64
func (*LiquidityProviderRes) GetLiquidityProvider ¶
func (m *LiquidityProviderRes) GetLiquidityProvider() *LiquidityProvider
func (*LiquidityProviderRes) GetNativeAssetBalance ¶
func (m *LiquidityProviderRes) GetNativeAssetBalance() string
func (*LiquidityProviderRes) Marshal ¶
func (m *LiquidityProviderRes) Marshal() (dAtA []byte, err error)
func (*LiquidityProviderRes) MarshalTo ¶
func (m *LiquidityProviderRes) MarshalTo(dAtA []byte) (int, error)
func (*LiquidityProviderRes) MarshalToSizedBuffer ¶
func (m *LiquidityProviderRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LiquidityProviderRes) ProtoMessage ¶
func (*LiquidityProviderRes) ProtoMessage()
func (*LiquidityProviderRes) Reset ¶
func (m *LiquidityProviderRes) Reset()
func (*LiquidityProviderRes) Size ¶
func (m *LiquidityProviderRes) Size() (n int)
func (*LiquidityProviderRes) String ¶
func (m *LiquidityProviderRes) String() string
func (*LiquidityProviderRes) Unmarshal ¶
func (m *LiquidityProviderRes) Unmarshal(dAtA []byte) error
func (*LiquidityProviderRes) XXX_DiscardUnknown ¶
func (m *LiquidityProviderRes) XXX_DiscardUnknown()
func (*LiquidityProviderRes) XXX_Marshal ¶
func (m *LiquidityProviderRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiquidityProviderRes) XXX_Merge ¶
func (m *LiquidityProviderRes) XXX_Merge(src proto.Message)
func (*LiquidityProviderRes) XXX_Size ¶
func (m *LiquidityProviderRes) XXX_Size() int
func (*LiquidityProviderRes) XXX_Unmarshal ¶
func (m *LiquidityProviderRes) XXX_Unmarshal(b []byte) error
type LiquidityProviders ¶
type LiquidityProviders []LiquidityProvider
type LiquidityProvidersReq ¶
type LiquidityProvidersReq struct {
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*LiquidityProvidersReq) Descriptor ¶
func (*LiquidityProvidersReq) Descriptor() ([]byte, []int)
func (*LiquidityProvidersReq) Marshal ¶
func (m *LiquidityProvidersReq) Marshal() (dAtA []byte, err error)
func (*LiquidityProvidersReq) MarshalTo ¶
func (m *LiquidityProvidersReq) MarshalTo(dAtA []byte) (int, error)
func (*LiquidityProvidersReq) MarshalToSizedBuffer ¶
func (m *LiquidityProvidersReq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LiquidityProvidersReq) ProtoMessage ¶
func (*LiquidityProvidersReq) ProtoMessage()
func (*LiquidityProvidersReq) Reset ¶
func (m *LiquidityProvidersReq) Reset()
func (*LiquidityProvidersReq) Size ¶
func (m *LiquidityProvidersReq) Size() (n int)
func (*LiquidityProvidersReq) String ¶
func (m *LiquidityProvidersReq) String() string
func (*LiquidityProvidersReq) Unmarshal ¶
func (m *LiquidityProvidersReq) Unmarshal(dAtA []byte) error
func (*LiquidityProvidersReq) XXX_DiscardUnknown ¶
func (m *LiquidityProvidersReq) XXX_DiscardUnknown()
func (*LiquidityProvidersReq) XXX_Marshal ¶
func (m *LiquidityProvidersReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiquidityProvidersReq) XXX_Merge ¶
func (m *LiquidityProvidersReq) XXX_Merge(src proto.Message)
func (*LiquidityProvidersReq) XXX_Size ¶
func (m *LiquidityProvidersReq) XXX_Size() int
func (*LiquidityProvidersReq) XXX_Unmarshal ¶
func (m *LiquidityProvidersReq) XXX_Unmarshal(b []byte) error
type LiquidityProvidersRes ¶
type LiquidityProvidersRes struct { LiquidityProviders []*LiquidityProvider `protobuf:"bytes,1,rep,name=liquidity_providers,json=liquidityProviders,proto3" json:"liquidity_providers,omitempty"` Height int64 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*LiquidityProvidersRes) Descriptor ¶
func (*LiquidityProvidersRes) Descriptor() ([]byte, []int)
func (*LiquidityProvidersRes) GetHeight ¶
func (m *LiquidityProvidersRes) GetHeight() int64
func (*LiquidityProvidersRes) GetLiquidityProviders ¶
func (m *LiquidityProvidersRes) GetLiquidityProviders() []*LiquidityProvider
func (*LiquidityProvidersRes) GetPagination ¶
func (m *LiquidityProvidersRes) GetPagination() *query.PageResponse
func (*LiquidityProvidersRes) Marshal ¶
func (m *LiquidityProvidersRes) Marshal() (dAtA []byte, err error)
func (*LiquidityProvidersRes) MarshalTo ¶
func (m *LiquidityProvidersRes) MarshalTo(dAtA []byte) (int, error)
func (*LiquidityProvidersRes) MarshalToSizedBuffer ¶
func (m *LiquidityProvidersRes) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LiquidityProvidersRes) ProtoMessage ¶
func (*LiquidityProvidersRes) ProtoMessage()
func (*LiquidityProvidersRes) Reset ¶
func (m *LiquidityProvidersRes) Reset()
func (*LiquidityProvidersRes) Size ¶
func (m *LiquidityProvidersRes) Size() (n int)
func (*LiquidityProvidersRes) String ¶
func (m *LiquidityProvidersRes) String() string
func (*LiquidityProvidersRes) Unmarshal ¶
func (m *LiquidityProvidersRes) Unmarshal(dAtA []byte) error
func (*LiquidityProvidersRes) XXX_DiscardUnknown ¶
func (m *LiquidityProvidersRes) XXX_DiscardUnknown()
func (*LiquidityProvidersRes) XXX_Marshal ¶
func (m *LiquidityProvidersRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LiquidityProvidersRes) XXX_Merge ¶
func (m *LiquidityProvidersRes) XXX_Merge(src proto.Message)
func (*LiquidityProvidersRes) XXX_Size ¶
func (m *LiquidityProvidersRes) XXX_Size() int
func (*LiquidityProvidersRes) XXX_Unmarshal ¶
func (m *LiquidityProvidersRes) XXX_Unmarshal(b []byte) error
type MsgAddLiquidity ¶
type MsgAddLiquidity struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` ExternalAsset *Asset `protobuf:"bytes,2,opt,name=external_asset,json=externalAsset,proto3" json:"external_asset,omitempty" yaml:"external_asset"` NativeAssetAmount github_com_cosmos_cosmos_sdk_types.Uint `` /* 182-byte string literal not displayed */ ExternalAssetAmount github_com_cosmos_cosmos_sdk_types.Uint `` /* 190-byte string literal not displayed */ }
func NewMsgAddLiquidity ¶
func NewMsgAddLiquidity(signer sdk.AccAddress, externalAsset Asset, nativeAssetAmount sdk.Uint, externalAssetAmount sdk.Uint) MsgAddLiquidity
func (*MsgAddLiquidity) Descriptor ¶
func (*MsgAddLiquidity) Descriptor() ([]byte, []int)
func (*MsgAddLiquidity) GetExternalAsset ¶
func (m *MsgAddLiquidity) GetExternalAsset() *Asset
func (MsgAddLiquidity) GetSignBytes ¶
func (m MsgAddLiquidity) GetSignBytes() []byte
func (*MsgAddLiquidity) GetSigner ¶
func (m *MsgAddLiquidity) GetSigner() string
func (MsgAddLiquidity) GetSigners ¶
func (m MsgAddLiquidity) GetSigners() []sdk.AccAddress
func (*MsgAddLiquidity) Marshal ¶
func (m *MsgAddLiquidity) Marshal() (dAtA []byte, err error)
func (*MsgAddLiquidity) MarshalToSizedBuffer ¶
func (m *MsgAddLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddLiquidity) ProtoMessage ¶
func (*MsgAddLiquidity) ProtoMessage()
func (*MsgAddLiquidity) Reset ¶
func (m *MsgAddLiquidity) Reset()
func (MsgAddLiquidity) Route ¶
func (m MsgAddLiquidity) Route() string
func (*MsgAddLiquidity) Size ¶
func (m *MsgAddLiquidity) Size() (n int)
func (*MsgAddLiquidity) String ¶
func (m *MsgAddLiquidity) String() string
func (MsgAddLiquidity) Type ¶
func (m MsgAddLiquidity) Type() string
func (*MsgAddLiquidity) Unmarshal ¶
func (m *MsgAddLiquidity) Unmarshal(dAtA []byte) error
func (MsgAddLiquidity) ValidateBasic ¶
func (m MsgAddLiquidity) ValidateBasic() error
func (*MsgAddLiquidity) XXX_DiscardUnknown ¶
func (m *MsgAddLiquidity) XXX_DiscardUnknown()
func (*MsgAddLiquidity) XXX_Marshal ¶
func (m *MsgAddLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddLiquidity) XXX_Merge ¶
func (m *MsgAddLiquidity) XXX_Merge(src proto.Message)
func (*MsgAddLiquidity) XXX_Size ¶
func (m *MsgAddLiquidity) XXX_Size() int
func (*MsgAddLiquidity) XXX_Unmarshal ¶
func (m *MsgAddLiquidity) XXX_Unmarshal(b []byte) error
type MsgAddLiquidityResponse ¶
type MsgAddLiquidityResponse struct { }
func (*MsgAddLiquidityResponse) Descriptor ¶
func (*MsgAddLiquidityResponse) Descriptor() ([]byte, []int)
func (*MsgAddLiquidityResponse) Marshal ¶
func (m *MsgAddLiquidityResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddLiquidityResponse) MarshalTo ¶
func (m *MsgAddLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddLiquidityResponse) MarshalToSizedBuffer ¶
func (m *MsgAddLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddLiquidityResponse) ProtoMessage ¶
func (*MsgAddLiquidityResponse) ProtoMessage()
func (*MsgAddLiquidityResponse) Reset ¶
func (m *MsgAddLiquidityResponse) Reset()
func (*MsgAddLiquidityResponse) Size ¶
func (m *MsgAddLiquidityResponse) Size() (n int)
func (*MsgAddLiquidityResponse) String ¶
func (m *MsgAddLiquidityResponse) String() string
func (*MsgAddLiquidityResponse) Unmarshal ¶
func (m *MsgAddLiquidityResponse) Unmarshal(dAtA []byte) error
func (*MsgAddLiquidityResponse) XXX_DiscardUnknown ¶
func (m *MsgAddLiquidityResponse) XXX_DiscardUnknown()
func (*MsgAddLiquidityResponse) XXX_Marshal ¶
func (m *MsgAddLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddLiquidityResponse) XXX_Merge ¶
func (m *MsgAddLiquidityResponse) XXX_Merge(src proto.Message)
func (*MsgAddLiquidityResponse) XXX_Size ¶
func (m *MsgAddLiquidityResponse) XXX_Size() int
func (*MsgAddLiquidityResponse) XXX_Unmarshal ¶
func (m *MsgAddLiquidityResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { RemoveLiquidity(ctx context.Context, in *MsgRemoveLiquidity, opts ...grpc.CallOption) (*MsgRemoveLiquidityResponse, error) CreatePool(ctx context.Context, in *MsgCreatePool, opts ...grpc.CallOption) (*MsgCreatePoolResponse, error) AddLiquidity(ctx context.Context, in *MsgAddLiquidity, opts ...grpc.CallOption) (*MsgAddLiquidityResponse, error) Swap(ctx context.Context, in *MsgSwap, opts ...grpc.CallOption) (*MsgSwapResponse, error) DecommissionPool(ctx context.Context, in *MsgDecommissionPool, opts ...grpc.CallOption) (*MsgDecommissionPoolResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCreatePool ¶
type MsgCreatePool struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` ExternalAsset *Asset `protobuf:"bytes,2,opt,name=external_asset,json=externalAsset,proto3" json:"external_asset,omitempty" yaml:"external_asset"` NativeAssetAmount github_com_cosmos_cosmos_sdk_types.Uint `` /* 182-byte string literal not displayed */ ExternalAssetAmount github_com_cosmos_cosmos_sdk_types.Uint `` /* 190-byte string literal not displayed */ }
func NewMsgCreatePool ¶
func NewMsgCreatePool(signer sdk.AccAddress, externalAsset Asset, nativeAssetAmount sdk.Uint, externalAssetAmount sdk.Uint) MsgCreatePool
func (*MsgCreatePool) Descriptor ¶
func (*MsgCreatePool) Descriptor() ([]byte, []int)
func (*MsgCreatePool) GetExternalAsset ¶
func (m *MsgCreatePool) GetExternalAsset() *Asset
func (MsgCreatePool) GetSignBytes ¶
func (m MsgCreatePool) GetSignBytes() []byte
func (*MsgCreatePool) GetSigner ¶
func (m *MsgCreatePool) GetSigner() string
func (MsgCreatePool) GetSigners ¶
func (m MsgCreatePool) GetSigners() []sdk.AccAddress
func (*MsgCreatePool) Marshal ¶
func (m *MsgCreatePool) Marshal() (dAtA []byte, err error)
func (*MsgCreatePool) MarshalToSizedBuffer ¶
func (m *MsgCreatePool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePool) ProtoMessage ¶
func (*MsgCreatePool) ProtoMessage()
func (*MsgCreatePool) Reset ¶
func (m *MsgCreatePool) Reset()
func (MsgCreatePool) Route ¶
func (m MsgCreatePool) Route() string
func (*MsgCreatePool) Size ¶
func (m *MsgCreatePool) Size() (n int)
func (*MsgCreatePool) String ¶
func (m *MsgCreatePool) String() string
func (MsgCreatePool) Type ¶
func (m MsgCreatePool) Type() string
func (*MsgCreatePool) Unmarshal ¶
func (m *MsgCreatePool) Unmarshal(dAtA []byte) error
func (MsgCreatePool) ValidateBasic ¶
func (m MsgCreatePool) ValidateBasic() error
func (*MsgCreatePool) XXX_DiscardUnknown ¶
func (m *MsgCreatePool) XXX_DiscardUnknown()
func (*MsgCreatePool) XXX_Marshal ¶
func (m *MsgCreatePool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePool) XXX_Merge ¶
func (m *MsgCreatePool) XXX_Merge(src proto.Message)
func (*MsgCreatePool) XXX_Size ¶
func (m *MsgCreatePool) XXX_Size() int
func (*MsgCreatePool) XXX_Unmarshal ¶
func (m *MsgCreatePool) XXX_Unmarshal(b []byte) error
type MsgCreatePoolResponse ¶
type MsgCreatePoolResponse struct { }
func (*MsgCreatePoolResponse) Descriptor ¶
func (*MsgCreatePoolResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePoolResponse) Marshal ¶
func (m *MsgCreatePoolResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePoolResponse) MarshalTo ¶
func (m *MsgCreatePoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePoolResponse) MarshalToSizedBuffer ¶
func (m *MsgCreatePoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePoolResponse) ProtoMessage ¶
func (*MsgCreatePoolResponse) ProtoMessage()
func (*MsgCreatePoolResponse) Reset ¶
func (m *MsgCreatePoolResponse) Reset()
func (*MsgCreatePoolResponse) Size ¶
func (m *MsgCreatePoolResponse) Size() (n int)
func (*MsgCreatePoolResponse) String ¶
func (m *MsgCreatePoolResponse) String() string
func (*MsgCreatePoolResponse) Unmarshal ¶
func (m *MsgCreatePoolResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePoolResponse) XXX_DiscardUnknown ¶
func (m *MsgCreatePoolResponse) XXX_DiscardUnknown()
func (*MsgCreatePoolResponse) XXX_Marshal ¶
func (m *MsgCreatePoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePoolResponse) XXX_Merge ¶
func (m *MsgCreatePoolResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePoolResponse) XXX_Size ¶
func (m *MsgCreatePoolResponse) XXX_Size() int
func (*MsgCreatePoolResponse) XXX_Unmarshal ¶
func (m *MsgCreatePoolResponse) XXX_Unmarshal(b []byte) error
type MsgDecommissionPool ¶
type MsgDecommissionPool struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty" yaml:"symbol"` }
func NewMsgDecommissionPool ¶
func NewMsgDecommissionPool(signer sdk.AccAddress, symbol string) MsgDecommissionPool
func (*MsgDecommissionPool) Descriptor ¶
func (*MsgDecommissionPool) Descriptor() ([]byte, []int)
func (MsgDecommissionPool) GetSignBytes ¶
func (m MsgDecommissionPool) GetSignBytes() []byte
func (*MsgDecommissionPool) GetSigner ¶
func (m *MsgDecommissionPool) GetSigner() string
func (MsgDecommissionPool) GetSigners ¶
func (m MsgDecommissionPool) GetSigners() []sdk.AccAddress
func (*MsgDecommissionPool) GetSymbol ¶
func (m *MsgDecommissionPool) GetSymbol() string
func (*MsgDecommissionPool) Marshal ¶
func (m *MsgDecommissionPool) Marshal() (dAtA []byte, err error)
func (*MsgDecommissionPool) MarshalTo ¶
func (m *MsgDecommissionPool) MarshalTo(dAtA []byte) (int, error)
func (*MsgDecommissionPool) MarshalToSizedBuffer ¶
func (m *MsgDecommissionPool) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDecommissionPool) ProtoMessage ¶
func (*MsgDecommissionPool) ProtoMessage()
func (*MsgDecommissionPool) Reset ¶
func (m *MsgDecommissionPool) Reset()
func (MsgDecommissionPool) Route ¶
func (m MsgDecommissionPool) Route() string
func (*MsgDecommissionPool) Size ¶
func (m *MsgDecommissionPool) Size() (n int)
func (*MsgDecommissionPool) String ¶
func (m *MsgDecommissionPool) String() string
func (MsgDecommissionPool) Type ¶
func (m MsgDecommissionPool) Type() string
func (*MsgDecommissionPool) Unmarshal ¶
func (m *MsgDecommissionPool) Unmarshal(dAtA []byte) error
func (MsgDecommissionPool) ValidateBasic ¶
func (m MsgDecommissionPool) ValidateBasic() error
func (*MsgDecommissionPool) XXX_DiscardUnknown ¶
func (m *MsgDecommissionPool) XXX_DiscardUnknown()
func (*MsgDecommissionPool) XXX_Marshal ¶
func (m *MsgDecommissionPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDecommissionPool) XXX_Merge ¶
func (m *MsgDecommissionPool) XXX_Merge(src proto.Message)
func (*MsgDecommissionPool) XXX_Size ¶
func (m *MsgDecommissionPool) XXX_Size() int
func (*MsgDecommissionPool) XXX_Unmarshal ¶
func (m *MsgDecommissionPool) XXX_Unmarshal(b []byte) error
type MsgDecommissionPoolResponse ¶
type MsgDecommissionPoolResponse struct { }
func (*MsgDecommissionPoolResponse) Descriptor ¶
func (*MsgDecommissionPoolResponse) Descriptor() ([]byte, []int)
func (*MsgDecommissionPoolResponse) Marshal ¶
func (m *MsgDecommissionPoolResponse) Marshal() (dAtA []byte, err error)
func (*MsgDecommissionPoolResponse) MarshalTo ¶
func (m *MsgDecommissionPoolResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDecommissionPoolResponse) MarshalToSizedBuffer ¶
func (m *MsgDecommissionPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDecommissionPoolResponse) ProtoMessage ¶
func (*MsgDecommissionPoolResponse) ProtoMessage()
func (*MsgDecommissionPoolResponse) Reset ¶
func (m *MsgDecommissionPoolResponse) Reset()
func (*MsgDecommissionPoolResponse) Size ¶
func (m *MsgDecommissionPoolResponse) Size() (n int)
func (*MsgDecommissionPoolResponse) String ¶
func (m *MsgDecommissionPoolResponse) String() string
func (*MsgDecommissionPoolResponse) Unmarshal ¶
func (m *MsgDecommissionPoolResponse) Unmarshal(dAtA []byte) error
func (*MsgDecommissionPoolResponse) XXX_DiscardUnknown ¶
func (m *MsgDecommissionPoolResponse) XXX_DiscardUnknown()
func (*MsgDecommissionPoolResponse) XXX_Marshal ¶
func (m *MsgDecommissionPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDecommissionPoolResponse) XXX_Merge ¶
func (m *MsgDecommissionPoolResponse) XXX_Merge(src proto.Message)
func (*MsgDecommissionPoolResponse) XXX_Size ¶
func (m *MsgDecommissionPoolResponse) XXX_Size() int
func (*MsgDecommissionPoolResponse) XXX_Unmarshal ¶
func (m *MsgDecommissionPoolResponse) XXX_Unmarshal(b []byte) error
type MsgRemoveLiquidity ¶
type MsgRemoveLiquidity struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` ExternalAsset *Asset `protobuf:"bytes,2,opt,name=external_asset,json=externalAsset,proto3" json:"external_asset,omitempty" yaml:"external_asset"` WBasisPoints github_com_cosmos_cosmos_sdk_types.Int `` /* 161-byte string literal not displayed */ Asymmetry github_com_cosmos_cosmos_sdk_types.Int `` /* 128-byte string literal not displayed */ }
func NewMsgRemoveLiquidity ¶
func NewMsgRemoveLiquidity(signer sdk.AccAddress, externalAsset Asset, wBasisPoints sdk.Int, asymmetry sdk.Int) MsgRemoveLiquidity
func (*MsgRemoveLiquidity) Descriptor ¶
func (*MsgRemoveLiquidity) Descriptor() ([]byte, []int)
func (*MsgRemoveLiquidity) GetExternalAsset ¶
func (m *MsgRemoveLiquidity) GetExternalAsset() *Asset
func (MsgRemoveLiquidity) GetSignBytes ¶
func (m MsgRemoveLiquidity) GetSignBytes() []byte
func (*MsgRemoveLiquidity) GetSigner ¶
func (m *MsgRemoveLiquidity) GetSigner() string
func (MsgRemoveLiquidity) GetSigners ¶
func (m MsgRemoveLiquidity) GetSigners() []sdk.AccAddress
func (*MsgRemoveLiquidity) Marshal ¶
func (m *MsgRemoveLiquidity) Marshal() (dAtA []byte, err error)
func (*MsgRemoveLiquidity) MarshalTo ¶
func (m *MsgRemoveLiquidity) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveLiquidity) MarshalToSizedBuffer ¶
func (m *MsgRemoveLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveLiquidity) ProtoMessage ¶
func (*MsgRemoveLiquidity) ProtoMessage()
func (*MsgRemoveLiquidity) Reset ¶
func (m *MsgRemoveLiquidity) Reset()
func (MsgRemoveLiquidity) Route ¶
func (m MsgRemoveLiquidity) Route() string
func (*MsgRemoveLiquidity) Size ¶
func (m *MsgRemoveLiquidity) Size() (n int)
func (*MsgRemoveLiquidity) String ¶
func (m *MsgRemoveLiquidity) String() string
func (MsgRemoveLiquidity) Type ¶
func (m MsgRemoveLiquidity) Type() string
func (*MsgRemoveLiquidity) Unmarshal ¶
func (m *MsgRemoveLiquidity) Unmarshal(dAtA []byte) error
func (MsgRemoveLiquidity) ValidateBasic ¶
func (m MsgRemoveLiquidity) ValidateBasic() error
func (*MsgRemoveLiquidity) XXX_DiscardUnknown ¶
func (m *MsgRemoveLiquidity) XXX_DiscardUnknown()
func (*MsgRemoveLiquidity) XXX_Marshal ¶
func (m *MsgRemoveLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveLiquidity) XXX_Merge ¶
func (m *MsgRemoveLiquidity) XXX_Merge(src proto.Message)
func (*MsgRemoveLiquidity) XXX_Size ¶
func (m *MsgRemoveLiquidity) XXX_Size() int
func (*MsgRemoveLiquidity) XXX_Unmarshal ¶
func (m *MsgRemoveLiquidity) XXX_Unmarshal(b []byte) error
type MsgRemoveLiquidityResponse ¶
type MsgRemoveLiquidityResponse struct { }
func (*MsgRemoveLiquidityResponse) Descriptor ¶
func (*MsgRemoveLiquidityResponse) Descriptor() ([]byte, []int)
func (*MsgRemoveLiquidityResponse) Marshal ¶
func (m *MsgRemoveLiquidityResponse) Marshal() (dAtA []byte, err error)
func (*MsgRemoveLiquidityResponse) MarshalTo ¶
func (m *MsgRemoveLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRemoveLiquidityResponse) MarshalToSizedBuffer ¶
func (m *MsgRemoveLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRemoveLiquidityResponse) ProtoMessage ¶
func (*MsgRemoveLiquidityResponse) ProtoMessage()
func (*MsgRemoveLiquidityResponse) Reset ¶
func (m *MsgRemoveLiquidityResponse) Reset()
func (*MsgRemoveLiquidityResponse) Size ¶
func (m *MsgRemoveLiquidityResponse) Size() (n int)
func (*MsgRemoveLiquidityResponse) String ¶
func (m *MsgRemoveLiquidityResponse) String() string
func (*MsgRemoveLiquidityResponse) Unmarshal ¶
func (m *MsgRemoveLiquidityResponse) Unmarshal(dAtA []byte) error
func (*MsgRemoveLiquidityResponse) XXX_DiscardUnknown ¶
func (m *MsgRemoveLiquidityResponse) XXX_DiscardUnknown()
func (*MsgRemoveLiquidityResponse) XXX_Marshal ¶
func (m *MsgRemoveLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRemoveLiquidityResponse) XXX_Merge ¶
func (m *MsgRemoveLiquidityResponse) XXX_Merge(src proto.Message)
func (*MsgRemoveLiquidityResponse) XXX_Size ¶
func (m *MsgRemoveLiquidityResponse) XXX_Size() int
func (*MsgRemoveLiquidityResponse) XXX_Unmarshal ¶
func (m *MsgRemoveLiquidityResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { RemoveLiquidity(context.Context, *MsgRemoveLiquidity) (*MsgRemoveLiquidityResponse, error) CreatePool(context.Context, *MsgCreatePool) (*MsgCreatePoolResponse, error) AddLiquidity(context.Context, *MsgAddLiquidity) (*MsgAddLiquidityResponse, error) Swap(context.Context, *MsgSwap) (*MsgSwapResponse, error) DecommissionPool(context.Context, *MsgDecommissionPool) (*MsgDecommissionPoolResponse, error) }
MsgServer is the server API for Msg service.
type MsgSwap ¶
type MsgSwap struct { Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty" yaml:"signer"` SentAsset *Asset `protobuf:"bytes,2,opt,name=sent_asset,json=sentAsset,proto3" json:"sent_asset,omitempty" yaml:"sent_asset"` ReceivedAsset *Asset `protobuf:"bytes,3,opt,name=received_asset,json=receivedAsset,proto3" json:"received_asset,omitempty" yaml:"received_asset"` SentAmount github_com_cosmos_cosmos_sdk_types.Uint `` /* 151-byte string literal not displayed */ MinReceivingAmount github_com_cosmos_cosmos_sdk_types.Uint `` /* 186-byte string literal not displayed */ }
func NewMsgSwap ¶
func (*MsgSwap) Descriptor ¶
func (*MsgSwap) GetReceivedAsset ¶
func (*MsgSwap) GetSentAsset ¶
func (MsgSwap) GetSignBytes ¶
func (MsgSwap) GetSigners ¶
func (m MsgSwap) GetSigners() []sdk.AccAddress
func (*MsgSwap) MarshalToSizedBuffer ¶
func (*MsgSwap) ProtoMessage ¶
func (*MsgSwap) ProtoMessage()
func (MsgSwap) ValidateBasic ¶
func (*MsgSwap) XXX_DiscardUnknown ¶
func (m *MsgSwap) XXX_DiscardUnknown()
func (*MsgSwap) XXX_Marshal ¶
func (*MsgSwap) XXX_Unmarshal ¶
type MsgSwapResponse ¶
type MsgSwapResponse struct { }
func (*MsgSwapResponse) Descriptor ¶
func (*MsgSwapResponse) Descriptor() ([]byte, []int)
func (*MsgSwapResponse) Marshal ¶
func (m *MsgSwapResponse) Marshal() (dAtA []byte, err error)
func (*MsgSwapResponse) MarshalToSizedBuffer ¶
func (m *MsgSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSwapResponse) ProtoMessage ¶
func (*MsgSwapResponse) ProtoMessage()
func (*MsgSwapResponse) Reset ¶
func (m *MsgSwapResponse) Reset()
func (*MsgSwapResponse) Size ¶
func (m *MsgSwapResponse) Size() (n int)
func (*MsgSwapResponse) String ¶
func (m *MsgSwapResponse) String() string
func (*MsgSwapResponse) Unmarshal ¶
func (m *MsgSwapResponse) Unmarshal(dAtA []byte) error
func (*MsgSwapResponse) XXX_DiscardUnknown ¶
func (m *MsgSwapResponse) XXX_DiscardUnknown()
func (*MsgSwapResponse) XXX_Marshal ¶
func (m *MsgSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSwapResponse) XXX_Merge ¶
func (m *MsgSwapResponse) XXX_Merge(src proto.Message)
func (*MsgSwapResponse) XXX_Size ¶
func (m *MsgSwapResponse) XXX_Size() int
func (*MsgSwapResponse) XXX_Unmarshal ¶
func (m *MsgSwapResponse) XXX_Unmarshal(b []byte) error
type ParamSubspace ¶
type ParamSubspace interface { WithKeyTable(table paramtypes.KeyTable) paramtypes.Subspace Get(ctx sdk.Context, key []byte, ptr interface{}) GetParamSet(ctx sdk.Context, ps paramtypes.ParamSet) SetParamSet(ctx sdk.Context, ps paramtypes.ParamSet) }
ParamSubspace defines the expected Subspace interfacace
type Params ¶
type Params struct {
MinCreatePoolThreshold uint64 `` /* 132-byte string literal not displayed */
}
Params - used for initializing default parameter for clp at genesis
func DefaultParams ¶
func DefaultParams() Params
DefaultParams defines the parameters for this module
func (*Params) Descriptor ¶
func (*Params) GetMinCreatePoolThreshold ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
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 Pool ¶
type Pool struct { ExternalAsset *Asset `protobuf:"bytes,1,opt,name=external_asset,json=externalAsset,proto3" json:"external_asset,omitempty"` NativeAssetBalance github_com_cosmos_cosmos_sdk_types.Uint `` /* 186-byte string literal not displayed */ ExternalAssetBalance github_com_cosmos_cosmos_sdk_types.Uint `` /* 194-byte string literal not displayed */ PoolUnits github_com_cosmos_cosmos_sdk_types.Uint `` /* 147-byte string literal not displayed */ }
func NewPool ¶
func NewPool(externalAsset *Asset, nativeAssetBalance, externalAssetBalance, poolUnits sdk.Uint) Pool
NewPool returns a new Pool
func (*Pool) Descriptor ¶
func (*Pool) GetExternalAsset ¶
func (*Pool) ProtoMessage ¶
func (*Pool) ProtoMessage()
func (*Pool) XXX_DiscardUnknown ¶
func (m *Pool) XXX_DiscardUnknown()
func (*Pool) XXX_Unmarshal ¶
type PoolReq ¶
type PoolReq struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
}
func NewQueryReqGetPool ¶
func (*PoolReq) Descriptor ¶
func (*PoolReq) MarshalToSizedBuffer ¶
func (*PoolReq) ProtoMessage ¶
func (*PoolReq) ProtoMessage()
func (*PoolReq) XXX_DiscardUnknown ¶
func (m *PoolReq) XXX_DiscardUnknown()
func (*PoolReq) XXX_Marshal ¶
func (*PoolReq) XXX_Unmarshal ¶
type PoolRes ¶
type PoolRes struct { Pool *Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"` ClpModuleAddress string `protobuf:"bytes,2,opt,name=clp_module_address,json=clpModuleAddress,proto3" json:"clp_module_address,omitempty"` Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` }
func (*PoolRes) Descriptor ¶
func (*PoolRes) GetClpModuleAddress ¶
func (*PoolRes) MarshalToSizedBuffer ¶
func (*PoolRes) ProtoMessage ¶
func (*PoolRes) ProtoMessage()
func (*PoolRes) XXX_DiscardUnknown ¶
func (m *PoolRes) XXX_DiscardUnknown()
func (*PoolRes) XXX_Marshal ¶
func (*PoolRes) XXX_Unmarshal ¶
type PoolsReq ¶
type PoolsReq struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*PoolsReq) Descriptor ¶
func (*PoolsReq) GetPagination ¶
func (m *PoolsReq) GetPagination() *query.PageRequest
func (*PoolsReq) MarshalToSizedBuffer ¶
func (*PoolsReq) ProtoMessage ¶
func (*PoolsReq) ProtoMessage()
func (*PoolsReq) XXX_DiscardUnknown ¶
func (m *PoolsReq) XXX_DiscardUnknown()
func (*PoolsReq) XXX_Marshal ¶
func (*PoolsReq) XXX_Unmarshal ¶
type PoolsRes ¶
type PoolsRes struct { Pools []*Pool `protobuf:"bytes,1,rep,name=pools,proto3" json:"pools,omitempty"` ClpModuleAddress string `protobuf:"bytes,2,opt,name=clp_module_address,json=clpModuleAddress,proto3" json:"clp_module_address,omitempty"` Height int64 `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*PoolsRes) Descriptor ¶
func (*PoolsRes) GetClpModuleAddress ¶
func (*PoolsRes) GetPagination ¶
func (m *PoolsRes) GetPagination() *query.PageResponse
func (*PoolsRes) MarshalToSizedBuffer ¶
func (*PoolsRes) ProtoMessage ¶
func (*PoolsRes) ProtoMessage()
func (*PoolsRes) XXX_DiscardUnknown ¶
func (m *PoolsRes) XXX_DiscardUnknown()
func (*PoolsRes) XXX_Marshal ¶
func (*PoolsRes) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { GetPool(ctx context.Context, in *PoolReq, opts ...grpc.CallOption) (*PoolRes, error) GetPools(ctx context.Context, in *PoolsReq, opts ...grpc.CallOption) (*PoolsRes, error) GetLiquidityProvider(ctx context.Context, in *LiquidityProviderReq, opts ...grpc.CallOption) (*LiquidityProviderRes, error) GetLiquidityProviderData(ctx context.Context, in *LiquidityProviderDataReq, opts ...grpc.CallOption) (*LiquidityProviderDataRes, error) GetAssetList(ctx context.Context, in *AssetListReq, opts ...grpc.CallOption) (*AssetListRes, error) GetLiquidityProviders(ctx context.Context, in *LiquidityProvidersReq, opts ...grpc.CallOption) (*LiquidityProvidersRes, error) GetLiquidityProviderList(ctx context.Context, in *LiquidityProviderListReq, opts ...grpc.CallOption) (*LiquidityProviderListRes, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryServer ¶
type QueryServer interface { GetPool(context.Context, *PoolReq) (*PoolRes, error) GetPools(context.Context, *PoolsReq) (*PoolsRes, error) GetLiquidityProvider(context.Context, *LiquidityProviderReq) (*LiquidityProviderRes, error) GetLiquidityProviderData(context.Context, *LiquidityProviderDataReq) (*LiquidityProviderDataRes, error) GetAssetList(context.Context, *AssetListReq) (*AssetListRes, error) GetLiquidityProviders(context.Context, *LiquidityProvidersReq) (*LiquidityProvidersRes, error) GetLiquidityProviderList(context.Context, *LiquidityProviderListReq) (*LiquidityProviderListRes, error) }
QueryServer is the server API for Query service.
type TokenRegistryKeeper ¶
type TokenRegistryKeeper interface { GetEntry(registry tokenregistryTypes.Registry, denom string) (*tokenregistryTypes.RegistryEntry, error) CheckEntryPermissions(entry *tokenregistryTypes.RegistryEntry, permissions []tokenregistryTypes.Permission) bool GetRegistry(ctx sdk.Context) tokenregistryTypes.Registry }
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddLiquidity ¶
func (*UnimplementedMsgServer) AddLiquidity(ctx context.Context, req *MsgAddLiquidity) (*MsgAddLiquidityResponse, error)
func (*UnimplementedMsgServer) CreatePool ¶
func (*UnimplementedMsgServer) CreatePool(ctx context.Context, req *MsgCreatePool) (*MsgCreatePoolResponse, error)
func (*UnimplementedMsgServer) DecommissionPool ¶
func (*UnimplementedMsgServer) DecommissionPool(ctx context.Context, req *MsgDecommissionPool) (*MsgDecommissionPoolResponse, error)
func (*UnimplementedMsgServer) RemoveLiquidity ¶
func (*UnimplementedMsgServer) RemoveLiquidity(ctx context.Context, req *MsgRemoveLiquidity) (*MsgRemoveLiquidityResponse, error)
func (*UnimplementedMsgServer) Swap ¶
func (*UnimplementedMsgServer) Swap(ctx context.Context, req *MsgSwap) (*MsgSwapResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) GetAssetList ¶
func (*UnimplementedQueryServer) GetAssetList(ctx context.Context, req *AssetListReq) (*AssetListRes, error)
func (*UnimplementedQueryServer) GetLiquidityProvider ¶
func (*UnimplementedQueryServer) GetLiquidityProvider(ctx context.Context, req *LiquidityProviderReq) (*LiquidityProviderRes, error)
func (*UnimplementedQueryServer) GetLiquidityProviderData ¶
func (*UnimplementedQueryServer) GetLiquidityProviderData(ctx context.Context, req *LiquidityProviderDataReq) (*LiquidityProviderDataRes, error)
func (*UnimplementedQueryServer) GetLiquidityProviderList ¶
func (*UnimplementedQueryServer) GetLiquidityProviderList(ctx context.Context, req *LiquidityProviderListReq) (*LiquidityProviderListRes, error)
func (*UnimplementedQueryServer) GetLiquidityProviders ¶
func (*UnimplementedQueryServer) GetLiquidityProviders(ctx context.Context, req *LiquidityProvidersReq) (*LiquidityProvidersRes, error)
type WhiteList ¶
type WhiteList struct {
ValidatorList []string `protobuf:"bytes,1,rep,name=validator_list,json=validatorList,proto3" json:"validator_list,omitempty"`
}
func (*WhiteList) Descriptor ¶
func (*WhiteList) GetValidatorList ¶
func (*WhiteList) MarshalToSizedBuffer ¶
func (*WhiteList) ProtoMessage ¶
func (*WhiteList) ProtoMessage()
func (*WhiteList) XXX_DiscardUnknown ¶
func (m *WhiteList) XXX_DiscardUnknown()