Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func BytesToTickIndex(bz []byte) (int64, error)
- func CalcAmountAsToken0(amount0, amount1 sdk.Int, price1To0 sdk.Dec) sdk.Dec
- func CalcFee(upperTickIndex, lowerTickIndex int64) int64
- func CalcGreatestMatchingRatio(targetAmount0 sdk.Int, targetAmount1 sdk.Int, amount0 sdk.Int, amount1 sdk.Int) (resultAmount0, resultAmount1 sdk.Int)
- func CalcPrice(relativeTickIndex int64) (sdk.Dec, error)
- func CalcPrice0To1(tickIndex int64) (sdk.Dec, error)
- func CalcPrice1To0(tickIndex int64) (sdk.Dec, error)
- func CalcResidualValue(amount0, amount1 sdk.Int, priceLowerTakerToMaker sdk.Dec, fee int64) (sdk.Dec, error)
- func CancelLimitOrderEvent(creator sdk.AccAddress, token0 string, token1 string, makerDenom string, ...) sdk.Event
- func CreateDepositEvent(creator sdk.AccAddress, receiver sdk.AccAddress, token0 string, token1 string, ...) sdk.Event
- func CreateMultihopSwapEvent(creator sdk.AccAddress, receiver sdk.AccAddress, makerDenom string, ...) sdk.Event
- func CreatePlaceLimitOrderEvent(creator sdk.AccAddress, receiver sdk.AccAddress, token0 string, token1 string, ...) sdk.Event
- func CreateTickUpdateLimitOrderTranche(tranche *LimitOrderTranche) sdk.Event
- func CreateTickUpdatePoolReserves(tick PoolReserves) sdk.Event
- func CreateWithdrawEvent(creator sdk.AccAddress, receiver sdk.AccAddress, token0 string, token1 string, ...) sdk.Event
- func DepositDenomPairIDPrefix(token0, token1 string) string
- func GoodTilPurgeHitLimitEvent(gas sdk.Gas) sdk.Event
- func InactiveLimitOrderTrancheKey(tradePairID *TradePairID, tickIndexTakerToMaker int64, trancheKey string) []byte
- func IsTickOutOfRange(tickIndex int64) bool
- func JITGoodTilTime() time.Time
- func KeyPrefix(p string) []byte
- func LimitOrderExpirationKey(goodTilDate time.Time, trancheRef []byte) []byte
- func LimitOrderTrancheUserAddressPrefix(address string) []byte
- func LimitOrderTrancheUserKey(address, trancheKey string) []byte
- func LiquidityIndexBytes(liquidityIndex interface{}) []byte
- func MustCalcPrice(relativeTickIndex int64) sdk.Dec
- func MustCalcPrice0To1(tickIndex int64) sdk.Dec
- func MustCalcPrice1To0(tickIndex int64) sdk.Dec
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func SortTokens(tokenA, tokenB string) (string, string)
- func TickIndexToBytes(tickTakerToMaker int64) []byte
- func TickLiquidityLimitOrderPrefix(tradePairID *TradePairID, tickIndexTakerTomMaker int64) []byte
- func TickLiquidityPrefix(tradePairID *TradePairID) []byte
- func TickUpdateEvent(token0 string, token1 string, makerDenom string, tickIndex int64, ...) sdk.Event
- func TimeBytes(timestamp time.Time) []byte
- func WithdrawFilledLimitOrderEvent(creator sdk.AccAddress, token0 string, token1 string, makerDenom string, ...) sdk.Event
- type AccountKeeper
- type BankKeeper
- type BranchableCache
- type DepositDenom
- type DepositOptions
- func (*DepositOptions) Descriptor() ([]byte, []int)
- func (m *DepositOptions) GetDisableAutoswap() bool
- func (m *DepositOptions) Marshal() (dAtA []byte, err error)
- func (m *DepositOptions) MarshalTo(dAtA []byte) (int, error)
- func (m *DepositOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DepositOptions) ProtoMessage()
- func (m *DepositOptions) Reset()
- func (m *DepositOptions) Size() (n int)
- func (m *DepositOptions) String() string
- func (m *DepositOptions) Unmarshal(dAtA []byte) error
- func (m *DepositOptions) XXX_DiscardUnknown()
- func (m *DepositOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DepositOptions) XXX_Merge(src proto.Message)
- func (m *DepositOptions) XXX_Size() int
- func (m *DepositOptions) XXX_Unmarshal(b []byte) error
- type DepositRecord
- func (*DepositRecord) Descriptor() ([]byte, []int)
- func (m *DepositRecord) GetCenterTickIndex() int64
- func (m *DepositRecord) GetFee() uint64
- func (m *DepositRecord) GetLowerTickIndex() int64
- func (m *DepositRecord) GetPairID() *PairID
- func (m *DepositRecord) GetUpperTickIndex() int64
- func (m *DepositRecord) Marshal() (dAtA []byte, err error)
- func (m *DepositRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *DepositRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DepositRecord) ProtoMessage()
- func (m *DepositRecord) Reset()
- func (m *DepositRecord) Size() (n int)
- func (m *DepositRecord) String() string
- func (m *DepositRecord) Unmarshal(dAtA []byte) error
- func (m *DepositRecord) XXX_DiscardUnknown()
- func (m *DepositRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DepositRecord) XXX_Merge(src proto.Message)
- func (m *DepositRecord) XXX_Size() int
- func (m *DepositRecord) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetInactiveLimitOrderTrancheList() []*LimitOrderTranche
- func (m *GenesisState) GetLimitOrderTrancheUserList() []*LimitOrderTrancheUser
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetTickLiquidityList() []*TickLiquidity
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type LimitOrderExpiration
- func (*LimitOrderExpiration) Descriptor() ([]byte, []int)
- func (m *LimitOrderExpiration) GetExpirationTime() time.Time
- func (m *LimitOrderExpiration) GetTrancheRef() []byte
- func (m *LimitOrderExpiration) Marshal() (dAtA []byte, err error)
- func (m *LimitOrderExpiration) MarshalTo(dAtA []byte) (int, error)
- func (m *LimitOrderExpiration) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LimitOrderExpiration) ProtoMessage()
- func (m *LimitOrderExpiration) Reset()
- func (m *LimitOrderExpiration) Size() (n int)
- func (m *LimitOrderExpiration) String() string
- func (m *LimitOrderExpiration) Unmarshal(dAtA []byte) error
- func (m *LimitOrderExpiration) XXX_DiscardUnknown()
- func (m *LimitOrderExpiration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LimitOrderExpiration) XXX_Merge(src proto.Message)
- func (m *LimitOrderExpiration) XXX_Size() int
- func (m *LimitOrderExpiration) XXX_Unmarshal(b []byte) error
- type LimitOrderTranche
- func (t LimitOrderTranche) AmountUnfilled() sdk.Dec
- func (*LimitOrderTranche) Descriptor() ([]byte, []int)
- func (m *LimitOrderTranche) GetExpirationTime() *time.Time
- func (m *LimitOrderTranche) GetKey() *LimitOrderTrancheKey
- func (t LimitOrderTranche) HasLiquidity() bool
- func (t LimitOrderTranche) HasTokenIn() bool
- func (t LimitOrderTranche) HasTokenOut() bool
- func (t LimitOrderTranche) IsExpired(ctx sdk.Context) bool
- func (t LimitOrderTranche) IsFilled() bool
- func (t LimitOrderTranche) IsJIT() bool
- func (t LimitOrderTranche) IsPlaceTranche() bool
- func (m *LimitOrderTranche) Marshal() (dAtA []byte, err error)
- func (m *LimitOrderTranche) MarshalTo(dAtA []byte) (int, error)
- func (m *LimitOrderTranche) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (t *LimitOrderTranche) PlaceMakerLimitOrder(amountIn sdk.Int)
- func (t LimitOrderTranche) Price() sdk.Dec
- func (*LimitOrderTranche) ProtoMessage()
- func (t LimitOrderTranche) RatioFilled() sdk.Dec
- func (t *LimitOrderTranche) RemoveTokenIn(trancheUser *LimitOrderTrancheUser) (amountToRemove sdk.Int)
- func (m *LimitOrderTranche) Reset()
- func (m *LimitOrderTranche) Size() (n int)
- func (m *LimitOrderTranche) String() string
- func (t *LimitOrderTranche) Swap(maxAmountTakerIn sdk.Int, maxAmountMakerOut *sdk.Int) (inAmount sdk.Int, outAmount sdk.Int)
- func (m *LimitOrderTranche) Unmarshal(dAtA []byte) error
- func (t *LimitOrderTranche) Withdraw(trancheUser *LimitOrderTrancheUser) (sdk.Int, sdk.Dec)
- func (m *LimitOrderTranche) XXX_DiscardUnknown()
- func (m *LimitOrderTranche) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LimitOrderTranche) XXX_Merge(src proto.Message)
- func (m *LimitOrderTranche) XXX_Size() int
- func (m *LimitOrderTranche) XXX_Unmarshal(b []byte) error
- type LimitOrderTrancheKey
- func (*LimitOrderTrancheKey) Descriptor() ([]byte, []int)
- func (m *LimitOrderTrancheKey) GetTickIndexTakerToMaker() int64
- func (m *LimitOrderTrancheKey) GetTradePairID() *TradePairID
- func (m *LimitOrderTrancheKey) GetTrancheKey() string
- func (p LimitOrderTrancheKey) KeyMarshal() []byte
- func (p LimitOrderTrancheKey) KeyUnmarshal(bz []byte) error
- func (m *LimitOrderTrancheKey) Marshal() (dAtA []byte, err error)
- func (m *LimitOrderTrancheKey) MarshalTo(dAtA []byte) (int, error)
- func (m *LimitOrderTrancheKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p LimitOrderTrancheKey) MustPriceTakerToMaker() (priceTakerToMaker sdk.Dec)
- func (p LimitOrderTrancheKey) PriceTakerToMaker() (priceTakerToMaker sdk.Dec, err error)
- func (*LimitOrderTrancheKey) ProtoMessage()
- func (m *LimitOrderTrancheKey) Reset()
- func (m *LimitOrderTrancheKey) Size() (n int)
- func (m *LimitOrderTrancheKey) String() string
- func (m *LimitOrderTrancheKey) Unmarshal(dAtA []byte) error
- func (m *LimitOrderTrancheKey) XXX_DiscardUnknown()
- func (m *LimitOrderTrancheKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LimitOrderTrancheKey) XXX_Merge(src proto.Message)
- func (m *LimitOrderTrancheKey) XXX_Size() int
- func (m *LimitOrderTrancheKey) XXX_Unmarshal(b []byte) error
- type LimitOrderTrancheUser
- func (*LimitOrderTrancheUser) Descriptor() ([]byte, []int)
- func (m *LimitOrderTrancheUser) GetAddress() string
- func (m *LimitOrderTrancheUser) GetOrderType() LimitOrderType
- func (m *LimitOrderTrancheUser) GetTickIndexTakerToMaker() int64
- func (m *LimitOrderTrancheUser) GetTradePairID() *TradePairID
- func (m *LimitOrderTrancheUser) GetTrancheKey() string
- func (l LimitOrderTrancheUser) IsEmpty() bool
- func (m *LimitOrderTrancheUser) Marshal() (dAtA []byte, err error)
- func (m *LimitOrderTrancheUser) MarshalTo(dAtA []byte) (int, error)
- func (m *LimitOrderTrancheUser) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LimitOrderTrancheUser) ProtoMessage()
- func (m *LimitOrderTrancheUser) Reset()
- func (m *LimitOrderTrancheUser) Size() (n int)
- func (m *LimitOrderTrancheUser) String() string
- func (m *LimitOrderTrancheUser) Unmarshal(dAtA []byte) error
- func (m *LimitOrderTrancheUser) XXX_DiscardUnknown()
- func (m *LimitOrderTrancheUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LimitOrderTrancheUser) XXX_Merge(src proto.Message)
- func (m *LimitOrderTrancheUser) XXX_Size() int
- func (m *LimitOrderTrancheUser) XXX_Unmarshal(b []byte) error
- type LimitOrderType
- func (LimitOrderType) EnumDescriptor() ([]byte, []int)
- func (l LimitOrderType) HasExpiration() bool
- func (l LimitOrderType) IsFoK() bool
- func (l LimitOrderType) IsGTC() bool
- func (l LimitOrderType) IsGoodTil() bool
- func (l LimitOrderType) IsIoC() bool
- func (l LimitOrderType) IsJIT() bool
- func (l LimitOrderType) IsTakerOnly() bool
- func (x LimitOrderType) String() string
- type Liquidity
- type LiquidityType
- type MsgCancelLimitOrder
- func (*MsgCancelLimitOrder) Descriptor() ([]byte, []int)
- func (m *MsgCancelLimitOrder) GetCreator() string
- func (msg *MsgCancelLimitOrder) GetSignBytes() []byte
- func (msg *MsgCancelLimitOrder) GetSigners() []sdk.AccAddress
- func (m *MsgCancelLimitOrder) GetTrancheKey() string
- func (m *MsgCancelLimitOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelLimitOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelLimitOrder) ProtoMessage()
- func (m *MsgCancelLimitOrder) Reset()
- func (msg *MsgCancelLimitOrder) Route() string
- func (m *MsgCancelLimitOrder) Size() (n int)
- func (m *MsgCancelLimitOrder) String() string
- func (msg *MsgCancelLimitOrder) Type() string
- func (m *MsgCancelLimitOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgCancelLimitOrder) ValidateBasic() error
- func (m *MsgCancelLimitOrder) XXX_DiscardUnknown()
- func (m *MsgCancelLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelLimitOrder) XXX_Merge(src proto.Message)
- func (m *MsgCancelLimitOrder) XXX_Size() int
- func (m *MsgCancelLimitOrder) XXX_Unmarshal(b []byte) error
- type MsgCancelLimitOrderResponse
- func (*MsgCancelLimitOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelLimitOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelLimitOrderResponse) ProtoMessage()
- func (m *MsgCancelLimitOrderResponse) Reset()
- func (m *MsgCancelLimitOrderResponse) Size() (n int)
- func (m *MsgCancelLimitOrderResponse) String() string
- func (m *MsgCancelLimitOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelLimitOrderResponse) XXX_DiscardUnknown()
- func (m *MsgCancelLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelLimitOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelLimitOrderResponse) XXX_Size() int
- func (m *MsgCancelLimitOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDeposit
- func (*MsgDeposit) Descriptor() ([]byte, []int)
- func (m *MsgDeposit) GetCreator() string
- func (m *MsgDeposit) GetFees() []uint64
- func (m *MsgDeposit) GetOptions() []*DepositOptions
- func (m *MsgDeposit) GetReceiver() string
- func (msg *MsgDeposit) GetSignBytes() []byte
- func (msg *MsgDeposit) GetSigners() []sdk.AccAddress
- func (m *MsgDeposit) GetTickIndexesAToB() []int64
- func (m *MsgDeposit) GetTokenA() string
- func (m *MsgDeposit) GetTokenB() string
- func (m *MsgDeposit) Marshal() (dAtA []byte, err error)
- func (m *MsgDeposit) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeposit) ProtoMessage()
- func (m *MsgDeposit) Reset()
- func (msg *MsgDeposit) Route() string
- func (m *MsgDeposit) Size() (n int)
- func (m *MsgDeposit) String() string
- func (msg *MsgDeposit) Type() string
- func (m *MsgDeposit) Unmarshal(dAtA []byte) error
- func (msg *MsgDeposit) ValidateBasic() error
- func (m *MsgDeposit) XXX_DiscardUnknown()
- func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeposit) XXX_Merge(src proto.Message)
- func (m *MsgDeposit) XXX_Size() int
- func (m *MsgDeposit) XXX_Unmarshal(b []byte) error
- type MsgDepositResponse
- func (*MsgDepositResponse) Descriptor() ([]byte, []int)
- func (m *MsgDepositResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDepositResponse) ProtoMessage()
- func (m *MsgDepositResponse) Reset()
- func (m *MsgDepositResponse) Size() (n int)
- func (m *MsgDepositResponse) String() string
- func (m *MsgDepositResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDepositResponse) XXX_DiscardUnknown()
- func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDepositResponse) XXX_Merge(src proto.Message)
- func (m *MsgDepositResponse) XXX_Size() int
- func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error
- type MsgMultiHopSwap
- func (*MsgMultiHopSwap) Descriptor() ([]byte, []int)
- func (m *MsgMultiHopSwap) GetCreator() string
- func (m *MsgMultiHopSwap) GetPickBestRoute() bool
- func (m *MsgMultiHopSwap) GetReceiver() string
- func (m *MsgMultiHopSwap) GetRoutes() []*MultiHopRoute
- func (msg *MsgMultiHopSwap) GetSignBytes() []byte
- func (msg *MsgMultiHopSwap) GetSigners() []sdk.AccAddress
- func (m *MsgMultiHopSwap) Marshal() (dAtA []byte, err error)
- func (m *MsgMultiHopSwap) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMultiHopSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMultiHopSwap) ProtoMessage()
- func (m *MsgMultiHopSwap) Reset()
- func (msg *MsgMultiHopSwap) Route() string
- func (m *MsgMultiHopSwap) Size() (n int)
- func (m *MsgMultiHopSwap) String() string
- func (msg *MsgMultiHopSwap) Type() string
- func (m *MsgMultiHopSwap) Unmarshal(dAtA []byte) error
- func (msg *MsgMultiHopSwap) ValidateBasic() error
- func (m *MsgMultiHopSwap) XXX_DiscardUnknown()
- func (m *MsgMultiHopSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMultiHopSwap) XXX_Merge(src proto.Message)
- func (m *MsgMultiHopSwap) XXX_Size() int
- func (m *MsgMultiHopSwap) XXX_Unmarshal(b []byte) error
- type MsgMultiHopSwapResponse
- func (*MsgMultiHopSwapResponse) Descriptor() ([]byte, []int)
- func (m *MsgMultiHopSwapResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMultiHopSwapResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMultiHopSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMultiHopSwapResponse) ProtoMessage()
- func (m *MsgMultiHopSwapResponse) Reset()
- func (m *MsgMultiHopSwapResponse) Size() (n int)
- func (m *MsgMultiHopSwapResponse) String() string
- func (m *MsgMultiHopSwapResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMultiHopSwapResponse) XXX_DiscardUnknown()
- func (m *MsgMultiHopSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMultiHopSwapResponse) XXX_Merge(src proto.Message)
- func (m *MsgMultiHopSwapResponse) XXX_Size() int
- func (m *MsgMultiHopSwapResponse) XXX_Unmarshal(b []byte) error
- type MsgPlaceLimitOrder
- func (*MsgPlaceLimitOrder) Descriptor() ([]byte, []int)
- func (m *MsgPlaceLimitOrder) GetCreator() string
- func (m *MsgPlaceLimitOrder) GetExpirationTime() *time.Time
- func (m *MsgPlaceLimitOrder) GetOrderType() LimitOrderType
- func (m *MsgPlaceLimitOrder) GetReceiver() string
- func (msg *MsgPlaceLimitOrder) GetSignBytes() []byte
- func (msg *MsgPlaceLimitOrder) GetSigners() []sdk.AccAddress
- func (m *MsgPlaceLimitOrder) GetTickIndexInToOut() int64
- func (m *MsgPlaceLimitOrder) GetTokenIn() string
- func (m *MsgPlaceLimitOrder) GetTokenOut() string
- func (m *MsgPlaceLimitOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceLimitOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceLimitOrder) ProtoMessage()
- func (m *MsgPlaceLimitOrder) Reset()
- func (msg *MsgPlaceLimitOrder) Route() string
- func (m *MsgPlaceLimitOrder) Size() (n int)
- func (m *MsgPlaceLimitOrder) String() string
- func (msg *MsgPlaceLimitOrder) Type() string
- func (m *MsgPlaceLimitOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgPlaceLimitOrder) ValidateBasic() error
- func (msg *MsgPlaceLimitOrder) ValidateGoodTilExpiration(blockTime time.Time) error
- func (m *MsgPlaceLimitOrder) XXX_DiscardUnknown()
- func (m *MsgPlaceLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceLimitOrder) XXX_Merge(src proto.Message)
- func (m *MsgPlaceLimitOrder) XXX_Size() int
- func (m *MsgPlaceLimitOrder) XXX_Unmarshal(b []byte) error
- type MsgPlaceLimitOrderResponse
- func (*MsgPlaceLimitOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgPlaceLimitOrderResponse) GetTrancheKey() string
- func (m *MsgPlaceLimitOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPlaceLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPlaceLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPlaceLimitOrderResponse) ProtoMessage()
- func (m *MsgPlaceLimitOrderResponse) Reset()
- func (m *MsgPlaceLimitOrderResponse) Size() (n int)
- func (m *MsgPlaceLimitOrderResponse) String() string
- func (m *MsgPlaceLimitOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPlaceLimitOrderResponse) XXX_DiscardUnknown()
- func (m *MsgPlaceLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPlaceLimitOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgPlaceLimitOrderResponse) XXX_Size() int
- func (m *MsgPlaceLimitOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgWithdrawFilledLimitOrder
- func (*MsgWithdrawFilledLimitOrder) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawFilledLimitOrder) GetCreator() string
- func (msg *MsgWithdrawFilledLimitOrder) GetSignBytes() []byte
- func (msg *MsgWithdrawFilledLimitOrder) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawFilledLimitOrder) GetTrancheKey() string
- func (m *MsgWithdrawFilledLimitOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawFilledLimitOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawFilledLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawFilledLimitOrder) ProtoMessage()
- func (m *MsgWithdrawFilledLimitOrder) Reset()
- func (msg *MsgWithdrawFilledLimitOrder) Route() string
- func (m *MsgWithdrawFilledLimitOrder) Size() (n int)
- func (m *MsgWithdrawFilledLimitOrder) String() string
- func (msg *MsgWithdrawFilledLimitOrder) Type() string
- func (m *MsgWithdrawFilledLimitOrder) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawFilledLimitOrder) ValidateBasic() error
- func (m *MsgWithdrawFilledLimitOrder) XXX_DiscardUnknown()
- func (m *MsgWithdrawFilledLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawFilledLimitOrder) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawFilledLimitOrder) XXX_Size() int
- func (m *MsgWithdrawFilledLimitOrder) XXX_Unmarshal(b []byte) error
- type MsgWithdrawFilledLimitOrderResponse
- func (*MsgWithdrawFilledLimitOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawFilledLimitOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawFilledLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawFilledLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawFilledLimitOrderResponse) ProtoMessage()
- func (m *MsgWithdrawFilledLimitOrderResponse) Reset()
- func (m *MsgWithdrawFilledLimitOrderResponse) Size() (n int)
- func (m *MsgWithdrawFilledLimitOrderResponse) String() string
- func (m *MsgWithdrawFilledLimitOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawFilledLimitOrderResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawFilledLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawFilledLimitOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawFilledLimitOrderResponse) XXX_Size() int
- func (m *MsgWithdrawFilledLimitOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgWithdrawal
- func (*MsgWithdrawal) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawal) GetCreator() string
- func (m *MsgWithdrawal) GetFees() []uint64
- func (m *MsgWithdrawal) GetReceiver() string
- func (msg *MsgWithdrawal) GetSignBytes() []byte
- func (msg *MsgWithdrawal) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawal) GetTickIndexesAToB() []int64
- func (m *MsgWithdrawal) GetTokenA() string
- func (m *MsgWithdrawal) GetTokenB() string
- func (m *MsgWithdrawal) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawal) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawal) ProtoMessage()
- func (m *MsgWithdrawal) Reset()
- func (msg *MsgWithdrawal) Route() string
- func (m *MsgWithdrawal) Size() (n int)
- func (m *MsgWithdrawal) String() string
- func (msg *MsgWithdrawal) Type() string
- func (m *MsgWithdrawal) Unmarshal(dAtA []byte) error
- func (msg *MsgWithdrawal) ValidateBasic() error
- func (m *MsgWithdrawal) XXX_DiscardUnknown()
- func (m *MsgWithdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawal) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawal) XXX_Size() int
- func (m *MsgWithdrawal) XXX_Unmarshal(b []byte) error
- type MsgWithdrawalResponse
- func (*MsgWithdrawalResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawalResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawalResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawalResponse) ProtoMessage()
- func (m *MsgWithdrawalResponse) Reset()
- func (m *MsgWithdrawalResponse) Size() (n int)
- func (m *MsgWithdrawalResponse) String() string
- func (m *MsgWithdrawalResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawalResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawalResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawalResponse) XXX_Size() int
- func (m *MsgWithdrawalResponse) XXX_Unmarshal(b []byte) error
- type MultiHopRoute
- func (*MultiHopRoute) Descriptor() ([]byte, []int)
- func (m *MultiHopRoute) GetHops() []string
- func (m *MultiHopRoute) Marshal() (dAtA []byte, err error)
- func (m *MultiHopRoute) MarshalTo(dAtA []byte) (int, error)
- func (m *MultiHopRoute) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MultiHopRoute) ProtoMessage()
- func (m *MultiHopRoute) Reset()
- func (m *MultiHopRoute) Size() (n int)
- func (m *MultiHopRoute) String() string
- func (m *MultiHopRoute) Unmarshal(dAtA []byte) error
- func (m *MultiHopRoute) XXX_DiscardUnknown()
- func (m *MultiHopRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MultiHopRoute) XXX_Merge(src proto.Message)
- func (m *MultiHopRoute) XXX_Size() int
- func (m *MultiHopRoute) XXX_Unmarshal(b []byte) error
- type PairID
- func (p *PairID) CanonicalString() string
- func (*PairID) Descriptor() ([]byte, []int)
- func (m *PairID) GetToken0() string
- func (m *PairID) GetToken1() string
- func (m *PairID) Marshal() (dAtA []byte, err error)
- func (m *PairID) MarshalTo(dAtA []byte) (int, error)
- func (m *PairID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *PairID) MustOppositeToken(token string) string
- func (p *PairID) MustTradePairIDFromMaker(maker string) *TradePairID
- func (p *PairID) MustTradePairIDFromTaker(taker string) *TradePairID
- func (p *PairID) OppositeToken(token string) (oppToken string, ok bool)
- func (*PairID) ProtoMessage()
- func (m *PairID) Reset()
- func (m *PairID) Size() (n int)
- func (m *PairID) String() string
- func (m *PairID) Unmarshal(dAtA []byte) error
- func (m *PairID) XXX_DiscardUnknown()
- func (m *PairID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PairID) XXX_Merge(src proto.Message)
- func (m *PairID) XXX_Size() int
- func (m *PairID) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type Pool
- func (p *Pool) CalcResidualSharesMinted(residualAmount0 sdk.Int, residualAmount1 sdk.Int) (sharesMinted sdk.Coin, err error)
- func (p *Pool) CalcSharesMinted(amount0 sdk.Int, amount1 sdk.Int, existingShares sdk.Int) (sharesMinted sdk.Coin)
- func (p *Pool) CenterTickIndex() int64
- func (p *Pool) Deposit(maxAmount0, maxAmount1, existingShares sdk.Int, autoswap bool) (inAmount0, inAmount1 sdk.Int, outShares sdk.Coin)
- func (p *Pool) Fee() uint64
- func (p *Pool) GetDepositDenom() string
- func (p *Pool) GetLowerReserve0() sdk.Int
- func (p *Pool) GetUpperReserve1() sdk.Int
- func (p *Pool) MustCalcPrice1To0Center() sdk.Dec
- func (p *Pool) Price(tradePairID *TradePairID) sdk.Dec
- func (p *Pool) RedeemValue(sharesToRemove, totalShares sdk.Int) (outAmount0, outAmount1 sdk.Int)
- func (p *Pool) Swap(tradePairID *TradePairID, maxAmountTakerIn sdk.Int, maxAmountMakerOut *sdk.Int) (amountTakerIn, amountMakerOut sdk.Int)
- func (p *Pool) Withdraw(sharesToRemove, totalShares sdk.Int) (outAmount0, outAmount1 sdk.Int)
- type PoolLiquidity
- type PoolReserves
- func (*PoolReserves) Descriptor() ([]byte, []int)
- func (m *PoolReserves) GetKey() *PoolReservesKey
- func (p PoolReserves) HasToken() bool
- func (m *PoolReserves) Marshal() (dAtA []byte, err error)
- func (m *PoolReserves) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolReserves) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolReserves) ProtoMessage()
- func (m *PoolReserves) Reset()
- func (m *PoolReserves) Size() (n int)
- func (m *PoolReserves) String() string
- func (m *PoolReserves) Unmarshal(dAtA []byte) error
- func (m *PoolReserves) XXX_DiscardUnknown()
- func (m *PoolReserves) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolReserves) XXX_Merge(src proto.Message)
- func (m *PoolReserves) XXX_Size() int
- func (m *PoolReserves) XXX_Unmarshal(b []byte) error
- type PoolReservesKey
- func (p PoolReservesKey) Counterpart() *PoolReservesKey
- func (*PoolReservesKey) Descriptor() ([]byte, []int)
- func (m *PoolReservesKey) GetFee() uint64
- func (m *PoolReservesKey) GetTickIndexTakerToMaker() int64
- func (m *PoolReservesKey) GetTradePairID() *TradePairID
- func (p PoolReservesKey) KeyMarshal() []byte
- func (p PoolReservesKey) KeyUnmarshal(bz []byte) error
- func (m *PoolReservesKey) Marshal() (dAtA []byte, err error)
- func (m *PoolReservesKey) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolReservesKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p PoolReservesKey) MustPriceTakerToMaker() (priceTakerToMaker sdk.Dec)
- func (p PoolReservesKey) PriceTakerToMaker() (priceTakerToMaker sdk.Dec, err error)
- func (*PoolReservesKey) ProtoMessage()
- func (m *PoolReservesKey) Reset()
- func (m *PoolReservesKey) Size() (n int)
- func (m *PoolReservesKey) String() string
- func (m *PoolReservesKey) Unmarshal(dAtA []byte) error
- func (m *PoolReservesKey) XXX_DiscardUnknown()
- func (m *PoolReservesKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolReservesKey) XXX_Merge(src proto.Message)
- func (m *PoolReservesKey) XXX_Size() int
- func (m *PoolReservesKey) XXX_Unmarshal(b []byte) error
- type QueryAllInactiveLimitOrderTrancheRequest
- func (*QueryAllInactiveLimitOrderTrancheRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllInactiveLimitOrderTrancheRequest) GetPagination() *query.PageRequest
- func (m *QueryAllInactiveLimitOrderTrancheRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllInactiveLimitOrderTrancheRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllInactiveLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllInactiveLimitOrderTrancheRequest) ProtoMessage()
- func (m *QueryAllInactiveLimitOrderTrancheRequest) Reset()
- func (m *QueryAllInactiveLimitOrderTrancheRequest) Size() (n int)
- func (m *QueryAllInactiveLimitOrderTrancheRequest) String() string
- func (m *QueryAllInactiveLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_DiscardUnknown()
- func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_Size() int
- func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error
- type QueryAllInactiveLimitOrderTrancheResponse
- func (*QueryAllInactiveLimitOrderTrancheResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllInactiveLimitOrderTrancheResponse) GetInactiveLimitOrderTranche() []*LimitOrderTranche
- func (m *QueryAllInactiveLimitOrderTrancheResponse) GetPagination() *query.PageResponse
- func (m *QueryAllInactiveLimitOrderTrancheResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllInactiveLimitOrderTrancheResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllInactiveLimitOrderTrancheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllInactiveLimitOrderTrancheResponse) ProtoMessage()
- func (m *QueryAllInactiveLimitOrderTrancheResponse) Reset()
- func (m *QueryAllInactiveLimitOrderTrancheResponse) Size() (n int)
- func (m *QueryAllInactiveLimitOrderTrancheResponse) String() string
- func (m *QueryAllInactiveLimitOrderTrancheResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_DiscardUnknown()
- func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_Size() int
- func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error
- type QueryAllLimitOrderTrancheRequest
- func (*QueryAllLimitOrderTrancheRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllLimitOrderTrancheRequest) GetPagination() *query.PageRequest
- func (m *QueryAllLimitOrderTrancheRequest) GetPairID() string
- func (m *QueryAllLimitOrderTrancheRequest) GetTokenIn() string
- func (m *QueryAllLimitOrderTrancheRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllLimitOrderTrancheRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllLimitOrderTrancheRequest) ProtoMessage()
- func (m *QueryAllLimitOrderTrancheRequest) Reset()
- func (m *QueryAllLimitOrderTrancheRequest) Size() (n int)
- func (m *QueryAllLimitOrderTrancheRequest) String() string
- func (m *QueryAllLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllLimitOrderTrancheRequest) XXX_DiscardUnknown()
- func (m *QueryAllLimitOrderTrancheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllLimitOrderTrancheRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllLimitOrderTrancheRequest) XXX_Size() int
- func (m *QueryAllLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error
- type QueryAllLimitOrderTrancheResponse
- func (*QueryAllLimitOrderTrancheResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllLimitOrderTrancheResponse) GetLimitOrderTranche() []*LimitOrderTranche
- func (m *QueryAllLimitOrderTrancheResponse) GetPagination() *query.PageResponse
- func (m *QueryAllLimitOrderTrancheResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllLimitOrderTrancheResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllLimitOrderTrancheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllLimitOrderTrancheResponse) ProtoMessage()
- func (m *QueryAllLimitOrderTrancheResponse) Reset()
- func (m *QueryAllLimitOrderTrancheResponse) Size() (n int)
- func (m *QueryAllLimitOrderTrancheResponse) String() string
- func (m *QueryAllLimitOrderTrancheResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllLimitOrderTrancheResponse) XXX_DiscardUnknown()
- func (m *QueryAllLimitOrderTrancheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllLimitOrderTrancheResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllLimitOrderTrancheResponse) XXX_Size() int
- func (m *QueryAllLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error
- type QueryAllLimitOrderTrancheUserRequest
- func (*QueryAllLimitOrderTrancheUserRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllLimitOrderTrancheUserRequest) GetPagination() *query.PageRequest
- func (m *QueryAllLimitOrderTrancheUserRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllLimitOrderTrancheUserRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllLimitOrderTrancheUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllLimitOrderTrancheUserRequest) ProtoMessage()
- func (m *QueryAllLimitOrderTrancheUserRequest) Reset()
- func (m *QueryAllLimitOrderTrancheUserRequest) Size() (n int)
- func (m *QueryAllLimitOrderTrancheUserRequest) String() string
- func (m *QueryAllLimitOrderTrancheUserRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllLimitOrderTrancheUserRequest) XXX_DiscardUnknown()
- func (m *QueryAllLimitOrderTrancheUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllLimitOrderTrancheUserRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllLimitOrderTrancheUserRequest) XXX_Size() int
- func (m *QueryAllLimitOrderTrancheUserRequest) XXX_Unmarshal(b []byte) error
- type QueryAllLimitOrderTrancheUserResponse
- func (*QueryAllLimitOrderTrancheUserResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllLimitOrderTrancheUserResponse) GetLimitOrderTrancheUser() []*LimitOrderTrancheUser
- func (m *QueryAllLimitOrderTrancheUserResponse) GetPagination() *query.PageResponse
- func (m *QueryAllLimitOrderTrancheUserResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllLimitOrderTrancheUserResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllLimitOrderTrancheUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllLimitOrderTrancheUserResponse) ProtoMessage()
- func (m *QueryAllLimitOrderTrancheUserResponse) Reset()
- func (m *QueryAllLimitOrderTrancheUserResponse) Size() (n int)
- func (m *QueryAllLimitOrderTrancheUserResponse) String() string
- func (m *QueryAllLimitOrderTrancheUserResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllLimitOrderTrancheUserResponse) XXX_DiscardUnknown()
- func (m *QueryAllLimitOrderTrancheUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllLimitOrderTrancheUserResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllLimitOrderTrancheUserResponse) XXX_Size() int
- func (m *QueryAllLimitOrderTrancheUserResponse) XXX_Unmarshal(b []byte) error
- type QueryAllPoolReservesRequest
- func (*QueryAllPoolReservesRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllPoolReservesRequest) GetPagination() *query.PageRequest
- func (m *QueryAllPoolReservesRequest) GetPairID() string
- func (m *QueryAllPoolReservesRequest) GetTokenIn() string
- func (m *QueryAllPoolReservesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllPoolReservesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllPoolReservesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllPoolReservesRequest) ProtoMessage()
- func (m *QueryAllPoolReservesRequest) Reset()
- func (m *QueryAllPoolReservesRequest) Size() (n int)
- func (m *QueryAllPoolReservesRequest) String() string
- func (m *QueryAllPoolReservesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllPoolReservesRequest) XXX_DiscardUnknown()
- func (m *QueryAllPoolReservesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllPoolReservesRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllPoolReservesRequest) XXX_Size() int
- func (m *QueryAllPoolReservesRequest) XXX_Unmarshal(b []byte) error
- type QueryAllPoolReservesResponse
- func (*QueryAllPoolReservesResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllPoolReservesResponse) GetPagination() *query.PageResponse
- func (m *QueryAllPoolReservesResponse) GetPoolReserves() []*PoolReserves
- func (m *QueryAllPoolReservesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllPoolReservesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllPoolReservesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllPoolReservesResponse) ProtoMessage()
- func (m *QueryAllPoolReservesResponse) Reset()
- func (m *QueryAllPoolReservesResponse) Size() (n int)
- func (m *QueryAllPoolReservesResponse) String() string
- func (m *QueryAllPoolReservesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllPoolReservesResponse) XXX_DiscardUnknown()
- func (m *QueryAllPoolReservesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllPoolReservesResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllPoolReservesResponse) XXX_Size() int
- func (m *QueryAllPoolReservesResponse) XXX_Unmarshal(b []byte) error
- type QueryAllTickLiquidityRequest
- func (*QueryAllTickLiquidityRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllTickLiquidityRequest) GetPagination() *query.PageRequest
- func (m *QueryAllTickLiquidityRequest) GetPairID() string
- func (m *QueryAllTickLiquidityRequest) GetTokenIn() string
- func (m *QueryAllTickLiquidityRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllTickLiquidityRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllTickLiquidityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllTickLiquidityRequest) ProtoMessage()
- func (m *QueryAllTickLiquidityRequest) Reset()
- func (m *QueryAllTickLiquidityRequest) Size() (n int)
- func (m *QueryAllTickLiquidityRequest) String() string
- func (m *QueryAllTickLiquidityRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllTickLiquidityRequest) XXX_DiscardUnknown()
- func (m *QueryAllTickLiquidityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllTickLiquidityRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllTickLiquidityRequest) XXX_Size() int
- func (m *QueryAllTickLiquidityRequest) XXX_Unmarshal(b []byte) error
- type QueryAllTickLiquidityResponse
- func (*QueryAllTickLiquidityResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllTickLiquidityResponse) GetPagination() *query.PageResponse
- func (m *QueryAllTickLiquidityResponse) GetTickLiquidity() []*TickLiquidity
- func (m *QueryAllTickLiquidityResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllTickLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllTickLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllTickLiquidityResponse) ProtoMessage()
- func (m *QueryAllTickLiquidityResponse) Reset()
- func (m *QueryAllTickLiquidityResponse) Size() (n int)
- func (m *QueryAllTickLiquidityResponse) String() string
- func (m *QueryAllTickLiquidityResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllTickLiquidityResponse) XXX_DiscardUnknown()
- func (m *QueryAllTickLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllTickLiquidityResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllTickLiquidityResponse) XXX_Size() int
- func (m *QueryAllTickLiquidityResponse) XXX_Unmarshal(b []byte) error
- type QueryAllUserDepositsRequest
- func (*QueryAllUserDepositsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllUserDepositsRequest) GetAddress() string
- func (m *QueryAllUserDepositsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllUserDepositsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllUserDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllUserDepositsRequest) ProtoMessage()
- func (m *QueryAllUserDepositsRequest) Reset()
- func (m *QueryAllUserDepositsRequest) Size() (n int)
- func (m *QueryAllUserDepositsRequest) String() string
- func (m *QueryAllUserDepositsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllUserDepositsRequest) XXX_DiscardUnknown()
- func (m *QueryAllUserDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllUserDepositsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllUserDepositsRequest) XXX_Size() int
- func (m *QueryAllUserDepositsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllUserDepositsResponse
- func (*QueryAllUserDepositsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllUserDepositsResponse) GetDeposits() []*DepositRecord
- func (m *QueryAllUserDepositsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllUserDepositsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllUserDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllUserDepositsResponse) ProtoMessage()
- func (m *QueryAllUserDepositsResponse) Reset()
- func (m *QueryAllUserDepositsResponse) Size() (n int)
- func (m *QueryAllUserDepositsResponse) String() string
- func (m *QueryAllUserDepositsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllUserDepositsResponse) XXX_DiscardUnknown()
- func (m *QueryAllUserDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllUserDepositsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllUserDepositsResponse) XXX_Size() int
- func (m *QueryAllUserDepositsResponse) XXX_Unmarshal(b []byte) error
- type QueryAllUserLimitOrdersRequest
- func (*QueryAllUserLimitOrdersRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllUserLimitOrdersRequest) GetAddress() string
- func (m *QueryAllUserLimitOrdersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllUserLimitOrdersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllUserLimitOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllUserLimitOrdersRequest) ProtoMessage()
- func (m *QueryAllUserLimitOrdersRequest) Reset()
- func (m *QueryAllUserLimitOrdersRequest) Size() (n int)
- func (m *QueryAllUserLimitOrdersRequest) String() string
- func (m *QueryAllUserLimitOrdersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllUserLimitOrdersRequest) XXX_DiscardUnknown()
- func (m *QueryAllUserLimitOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllUserLimitOrdersRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllUserLimitOrdersRequest) XXX_Size() int
- func (m *QueryAllUserLimitOrdersRequest) XXX_Unmarshal(b []byte) error
- type QueryAllUserLimitOrdersResponse
- func (*QueryAllUserLimitOrdersResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllUserLimitOrdersResponse) GetLimitOrders() []*LimitOrderTrancheUser
- func (m *QueryAllUserLimitOrdersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllUserLimitOrdersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllUserLimitOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllUserLimitOrdersResponse) ProtoMessage()
- func (m *QueryAllUserLimitOrdersResponse) Reset()
- func (m *QueryAllUserLimitOrdersResponse) Size() (n int)
- func (m *QueryAllUserLimitOrdersResponse) String() string
- func (m *QueryAllUserLimitOrdersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllUserLimitOrdersResponse) XXX_DiscardUnknown()
- func (m *QueryAllUserLimitOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllUserLimitOrdersResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllUserLimitOrdersResponse) XXX_Size() int
- func (m *QueryAllUserLimitOrdersResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetInactiveLimitOrderTrancheRequest
- func (*QueryGetInactiveLimitOrderTrancheRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetInactiveLimitOrderTrancheRequest) GetPairID() string
- func (m *QueryGetInactiveLimitOrderTrancheRequest) GetTickIndex() int64
- func (m *QueryGetInactiveLimitOrderTrancheRequest) GetTokenIn() string
- func (m *QueryGetInactiveLimitOrderTrancheRequest) GetTrancheKey() string
- func (m *QueryGetInactiveLimitOrderTrancheRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetInactiveLimitOrderTrancheRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetInactiveLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetInactiveLimitOrderTrancheRequest) ProtoMessage()
- func (m *QueryGetInactiveLimitOrderTrancheRequest) Reset()
- func (m *QueryGetInactiveLimitOrderTrancheRequest) Size() (n int)
- func (m *QueryGetInactiveLimitOrderTrancheRequest) String() string
- func (m *QueryGetInactiveLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_DiscardUnknown()
- func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_Size() int
- func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error
- type QueryGetInactiveLimitOrderTrancheResponse
- func (*QueryGetInactiveLimitOrderTrancheResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetInactiveLimitOrderTrancheResponse) GetInactiveLimitOrderTranche() *LimitOrderTranche
- func (m *QueryGetInactiveLimitOrderTrancheResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetInactiveLimitOrderTrancheResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetInactiveLimitOrderTrancheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetInactiveLimitOrderTrancheResponse) ProtoMessage()
- func (m *QueryGetInactiveLimitOrderTrancheResponse) Reset()
- func (m *QueryGetInactiveLimitOrderTrancheResponse) Size() (n int)
- func (m *QueryGetInactiveLimitOrderTrancheResponse) String() string
- func (m *QueryGetInactiveLimitOrderTrancheResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_DiscardUnknown()
- func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_Size() int
- func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error
- type QueryGetLimitOrderTrancheRequest
- func (*QueryGetLimitOrderTrancheRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetLimitOrderTrancheRequest) GetPairID() string
- func (m *QueryGetLimitOrderTrancheRequest) GetTickIndex() int64
- func (m *QueryGetLimitOrderTrancheRequest) GetTokenIn() string
- func (m *QueryGetLimitOrderTrancheRequest) GetTrancheKey() string
- func (m *QueryGetLimitOrderTrancheRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetLimitOrderTrancheRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetLimitOrderTrancheRequest) ProtoMessage()
- func (m *QueryGetLimitOrderTrancheRequest) Reset()
- func (m *QueryGetLimitOrderTrancheRequest) Size() (n int)
- func (m *QueryGetLimitOrderTrancheRequest) String() string
- func (m *QueryGetLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetLimitOrderTrancheRequest) XXX_DiscardUnknown()
- func (m *QueryGetLimitOrderTrancheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetLimitOrderTrancheRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetLimitOrderTrancheRequest) XXX_Size() int
- func (m *QueryGetLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error
- type QueryGetLimitOrderTrancheResponse
- func (*QueryGetLimitOrderTrancheResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetLimitOrderTrancheResponse) GetLimitOrderTranche() *LimitOrderTranche
- func (m *QueryGetLimitOrderTrancheResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetLimitOrderTrancheResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetLimitOrderTrancheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetLimitOrderTrancheResponse) ProtoMessage()
- func (m *QueryGetLimitOrderTrancheResponse) Reset()
- func (m *QueryGetLimitOrderTrancheResponse) Size() (n int)
- func (m *QueryGetLimitOrderTrancheResponse) String() string
- func (m *QueryGetLimitOrderTrancheResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetLimitOrderTrancheResponse) XXX_DiscardUnknown()
- func (m *QueryGetLimitOrderTrancheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetLimitOrderTrancheResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetLimitOrderTrancheResponse) XXX_Size() int
- func (m *QueryGetLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error
- type QueryGetLimitOrderTrancheUserRequest
- func (*QueryGetLimitOrderTrancheUserRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetLimitOrderTrancheUserRequest) GetAddress() string
- func (m *QueryGetLimitOrderTrancheUserRequest) GetTrancheKey() string
- func (m *QueryGetLimitOrderTrancheUserRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetLimitOrderTrancheUserRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetLimitOrderTrancheUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetLimitOrderTrancheUserRequest) ProtoMessage()
- func (m *QueryGetLimitOrderTrancheUserRequest) Reset()
- func (m *QueryGetLimitOrderTrancheUserRequest) Size() (n int)
- func (m *QueryGetLimitOrderTrancheUserRequest) String() string
- func (m *QueryGetLimitOrderTrancheUserRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetLimitOrderTrancheUserRequest) XXX_DiscardUnknown()
- func (m *QueryGetLimitOrderTrancheUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetLimitOrderTrancheUserRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetLimitOrderTrancheUserRequest) XXX_Size() int
- func (m *QueryGetLimitOrderTrancheUserRequest) XXX_Unmarshal(b []byte) error
- type QueryGetLimitOrderTrancheUserResponse
- func (*QueryGetLimitOrderTrancheUserResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetLimitOrderTrancheUserResponse) GetLimitOrderTrancheUser() *LimitOrderTrancheUser
- func (m *QueryGetLimitOrderTrancheUserResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetLimitOrderTrancheUserResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetLimitOrderTrancheUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetLimitOrderTrancheUserResponse) ProtoMessage()
- func (m *QueryGetLimitOrderTrancheUserResponse) Reset()
- func (m *QueryGetLimitOrderTrancheUserResponse) Size() (n int)
- func (m *QueryGetLimitOrderTrancheUserResponse) String() string
- func (m *QueryGetLimitOrderTrancheUserResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetLimitOrderTrancheUserResponse) XXX_DiscardUnknown()
- func (m *QueryGetLimitOrderTrancheUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetLimitOrderTrancheUserResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetLimitOrderTrancheUserResponse) XXX_Size() int
- func (m *QueryGetLimitOrderTrancheUserResponse) XXX_Unmarshal(b []byte) error
- type QueryGetPoolReservesRequest
- func (*QueryGetPoolReservesRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetPoolReservesRequest) GetFee() uint64
- func (m *QueryGetPoolReservesRequest) GetPairID() string
- func (m *QueryGetPoolReservesRequest) GetTickIndex() int64
- func (m *QueryGetPoolReservesRequest) GetTokenIn() string
- func (m *QueryGetPoolReservesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetPoolReservesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetPoolReservesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetPoolReservesRequest) ProtoMessage()
- func (m *QueryGetPoolReservesRequest) Reset()
- func (m *QueryGetPoolReservesRequest) Size() (n int)
- func (m *QueryGetPoolReservesRequest) String() string
- func (m *QueryGetPoolReservesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetPoolReservesRequest) XXX_DiscardUnknown()
- func (m *QueryGetPoolReservesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetPoolReservesRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetPoolReservesRequest) XXX_Size() int
- func (m *QueryGetPoolReservesRequest) XXX_Unmarshal(b []byte) error
- type QueryGetPoolReservesResponse
- func (*QueryGetPoolReservesResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetPoolReservesResponse) GetPoolReserves() *PoolReserves
- func (m *QueryGetPoolReservesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetPoolReservesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetPoolReservesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetPoolReservesResponse) ProtoMessage()
- func (m *QueryGetPoolReservesResponse) Reset()
- func (m *QueryGetPoolReservesResponse) Size() (n int)
- func (m *QueryGetPoolReservesResponse) String() string
- func (m *QueryGetPoolReservesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetPoolReservesResponse) XXX_DiscardUnknown()
- func (m *QueryGetPoolReservesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetPoolReservesResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetPoolReservesResponse) XXX_Size() int
- func (m *QueryGetPoolReservesResponse) XXX_Unmarshal(b []byte) error
- type QueryGetUserPositionsRequest
- func (*QueryGetUserPositionsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetUserPositionsRequest) GetAddress() string
- func (m *QueryGetUserPositionsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetUserPositionsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetUserPositionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetUserPositionsRequest) ProtoMessage()
- func (m *QueryGetUserPositionsRequest) Reset()
- func (m *QueryGetUserPositionsRequest) Size() (n int)
- func (m *QueryGetUserPositionsRequest) String() string
- func (m *QueryGetUserPositionsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetUserPositionsRequest) XXX_DiscardUnknown()
- func (m *QueryGetUserPositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetUserPositionsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetUserPositionsRequest) XXX_Size() int
- func (m *QueryGetUserPositionsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetUserPositionsResponse
- func (*QueryGetUserPositionsResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetUserPositionsResponse) GetUserPositions() *UserPositions
- func (m *QueryGetUserPositionsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetUserPositionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetUserPositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetUserPositionsResponse) ProtoMessage()
- func (m *QueryGetUserPositionsResponse) Reset()
- func (m *QueryGetUserPositionsResponse) Size() (n int)
- func (m *QueryGetUserPositionsResponse) String() string
- func (m *QueryGetUserPositionsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetUserPositionsResponse) XXX_DiscardUnknown()
- func (m *QueryGetUserPositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetUserPositionsResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetUserPositionsResponse) XXX_Size() int
- func (m *QueryGetUserPositionsResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() *Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type TickIteratorI
- type TickLiquidity
- func (*TickLiquidity) Descriptor() ([]byte, []int)
- func (m *TickLiquidity) GetLimitOrderTranche() *LimitOrderTranche
- func (m *TickLiquidity) GetLiquidity() isTickLiquidity_Liquidity
- func (m *TickLiquidity) GetPoolReserves() *PoolReserves
- func (t TickLiquidity) HasToken() bool
- func (m *TickLiquidity) Marshal() (dAtA []byte, err error)
- func (m *TickLiquidity) MarshalTo(dAtA []byte) (int, error)
- func (m *TickLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (t TickLiquidity) Price() sdk.Dec
- func (*TickLiquidity) ProtoMessage()
- func (m *TickLiquidity) Reset()
- func (m *TickLiquidity) Size() (n int)
- func (m *TickLiquidity) String() string
- func (t TickLiquidity) TickIndex() int64
- func (m *TickLiquidity) Unmarshal(dAtA []byte) error
- func (m *TickLiquidity) XXX_DiscardUnknown()
- func (m *TickLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TickLiquidity) XXX_Merge(src proto.Message)
- func (*TickLiquidity) XXX_OneofWrappers() []interface{}
- func (m *TickLiquidity) XXX_Size() int
- func (m *TickLiquidity) XXX_Unmarshal(b []byte) error
- type TickLiquidityKey
- type TickLiquidity_LimitOrderTranche
- type TickLiquidity_PoolReserves
- type TradePairID
- func (*TradePairID) Descriptor() ([]byte, []int)
- func (m *TradePairID) GetMakerDenom() string
- func (m *TradePairID) GetTakerDenom() string
- func (p TradePairID) IsMakerDenomToken0() bool
- func (p TradePairID) IsTakerDenomToken0() bool
- func (m *TradePairID) Marshal() (dAtA []byte, err error)
- func (m *TradePairID) MarshalTo(dAtA []byte) (int, error)
- func (m *TradePairID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p TradePairID) MustPairID() *PairID
- func (p TradePairID) MustPriceTakerToMaker(tickIndexNormalized int64) (priceTakerToMaker sdk.Dec)
- func (p TradePairID) PairID() (*PairID, error)
- func (p TradePairID) PriceTakerToMaker(tickIndexNormalized int64) (priceTakerToMaker sdk.Dec, err error)
- func (*TradePairID) ProtoMessage()
- func (m *TradePairID) Reset()
- func (p TradePairID) Reversed() *TradePairID
- func (m *TradePairID) Size() (n int)
- func (m *TradePairID) String() string
- func (p TradePairID) TickIndexNormalized(tickIndexTakerToMaker int64) int64
- func (p TradePairID) TickIndexTakerToMaker(tickIndexNormalized int64) int64
- func (m *TradePairID) Unmarshal(dAtA []byte) error
- func (m *TradePairID) XXX_DiscardUnknown()
- func (m *TradePairID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TradePairID) XXX_Merge(src proto.Message)
- func (m *TradePairID) XXX_Size() int
- func (m *TradePairID) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CancelLimitOrder(ctx context.Context, req *MsgCancelLimitOrder) (*MsgCancelLimitOrderResponse, error)
- func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*MsgDepositResponse, error)
- func (*UnimplementedMsgServer) MultiHopSwap(ctx context.Context, req *MsgMultiHopSwap) (*MsgMultiHopSwapResponse, error)
- func (*UnimplementedMsgServer) PlaceLimitOrder(ctx context.Context, req *MsgPlaceLimitOrder) (*MsgPlaceLimitOrderResponse, error)
- func (*UnimplementedMsgServer) WithdrawFilledLimitOrder(ctx context.Context, req *MsgWithdrawFilledLimitOrder) (*MsgWithdrawFilledLimitOrderResponse, error)
- func (*UnimplementedMsgServer) Withdrawal(ctx context.Context, req *MsgWithdrawal) (*MsgWithdrawalResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) GetUserPositions(ctx context.Context, req *QueryGetUserPositionsRequest) (*QueryGetUserPositionsResponse, error)
- func (*UnimplementedQueryServer) InactiveLimitOrderTranche(ctx context.Context, req *QueryGetInactiveLimitOrderTrancheRequest) (*QueryGetInactiveLimitOrderTrancheResponse, error)
- func (*UnimplementedQueryServer) InactiveLimitOrderTrancheAll(ctx context.Context, req *QueryAllInactiveLimitOrderTrancheRequest) (*QueryAllInactiveLimitOrderTrancheResponse, error)
- func (*UnimplementedQueryServer) LimitOrderTranche(ctx context.Context, req *QueryGetLimitOrderTrancheRequest) (*QueryGetLimitOrderTrancheResponse, error)
- func (*UnimplementedQueryServer) LimitOrderTrancheAll(ctx context.Context, req *QueryAllLimitOrderTrancheRequest) (*QueryAllLimitOrderTrancheResponse, error)
- func (*UnimplementedQueryServer) LimitOrderTrancheUser(ctx context.Context, req *QueryGetLimitOrderTrancheUserRequest) (*QueryGetLimitOrderTrancheUserResponse, error)
- func (*UnimplementedQueryServer) LimitOrderTrancheUserAll(ctx context.Context, req *QueryAllLimitOrderTrancheUserRequest) (*QueryAllLimitOrderTrancheUserResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) PoolReserves(ctx context.Context, req *QueryGetPoolReservesRequest) (*QueryGetPoolReservesResponse, error)
- func (*UnimplementedQueryServer) PoolReservesAll(ctx context.Context, req *QueryAllPoolReservesRequest) (*QueryAllPoolReservesResponse, error)
- func (*UnimplementedQueryServer) TickLiquidityAll(ctx context.Context, req *QueryAllTickLiquidityRequest) (*QueryAllTickLiquidityResponse, error)
- func (*UnimplementedQueryServer) UserDepositsAll(ctx context.Context, req *QueryAllUserDepositsRequest) (*QueryAllUserDepositsResponse, error)
- func (*UnimplementedQueryServer) UserLimitOrdersAll(ctx context.Context, req *QueryAllUserLimitOrdersRequest) (*QueryAllUserLimitOrdersResponse, error)
- type UserPositions
- func (*UserPositions) Descriptor() ([]byte, []int)
- func (m *UserPositions) GetLimitOrders() []*LimitOrderTrancheUser
- func (m *UserPositions) GetPoolDeposits() []*DepositRecord
- func (m *UserPositions) Marshal() (dAtA []byte, err error)
- func (m *UserPositions) MarshalTo(dAtA []byte) (int, error)
- func (m *UserPositions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UserPositions) ProtoMessage()
- func (m *UserPositions) Reset()
- func (m *UserPositions) Size() (n int)
- func (m *UserPositions) String() string
- func (m *UserPositions) Unmarshal(dAtA []byte) error
- func (m *UserPositions) XXX_DiscardUnknown()
- func (m *UserPositions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UserPositions) XXX_Merge(src proto.Message)
- func (m *UserPositions) XXX_Size() int
- func (m *UserPositions) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName defines the module name ModuleName = "dex" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_dex" Separator = "/" )
const ( // TickLiquidityKeyPrefix is the prefix to retrieve all TickLiquidity TickLiquidityKeyPrefix = "TickLiquidity/value/" // LimitOrderTrancheUserKeyPrefix is the prefix to retrieve all LimitOrderTrancheUser LimitOrderTrancheUserKeyPrefix = "LimitOrderTrancheUser/value" // LimitOrderTrancheKeyPrefix is the prefix to retrieve all LimitOrderTranche LimitOrderTrancheKeyPrefix = "LimitOrderTranche/value" // InactiveLimitOrderTrancheKeyPrefix is the prefix to retrieve all InactiveLimitOrderTranche InactiveLimitOrderTrancheKeyPrefix = "InactiveLimitOrderTranche/value/" // LimitOrderExpirationKeyPrefix is the prefix to retrieve all LimitOrderExpiration LimitOrderExpirationKeyPrefix = "LimitOrderExpiration/value/" )
const ( DepositEventKey = "Deposit" DepositEventCreator = "Creator" DepositEventToken0 = "Token0" DepositEventToken1 = "Token1" DepositEventPrice = "TickIndex" DepositEventFee = "Fee" DepositEventReceiver = "Receiver" DepositEventReserves0Deposited = "Reserves0Deposited" DepositEventReserves1Deposited = "Reserves1Deposited" )
Deposit Event Attributes
const ( WithdrawEventKey = "Withdraw" WithdrawEventCreator = "Creator" WithdrawEventToken0 = "Token0" WithdrawEventToken1 = "Token1" WithdrawEventPrice = "TickIndex" WithdrawEventFee = "Fee" WithdrawEventReceiver = "Receiver" WithdrawEventReserves0Withdrawn = "Reserves0Withdrawn" WithdrawEventReserves1Withdrawn = "Reserves1Withdrawn" )
Withdraw Event Attributes
const ( MultihopSwapEventKey = "MultihopSwap" MultihopSwapEventCreator = "Creator" MultihopSwapEventReceiver = "Receiver" MultihopSwapEventTokenIn = "TokenIn" MultihopSwapEventTokenOut = "TokenOut" MultihopSwapEventAmountIn = "AmountIn" MultihopSwapEventAmountOut = "AmountOut" MultihopSwapEventRoute = "Route" )
Multihop-Swap Event Attributes
const ( PlaceLimitOrderEventKey = "PlaceLimitOrder" PlaceLimitOrderEventCreator = "Creator" PlaceLimitOrderEventReceiver = "Receiver" PlaceLimitOrderEventToken0 = "Token0" PlaceLimitOrderEventToken1 = "Token1" PlaceLimitOrderEventTokenIn = "TokenIn" PlaceLimitOrderEventTokenOut = "TokenOut" PlaceLimitOrderEventAmountIn = "AmountIn" PlaceLimitOrderEventLimitTick = "LimitTick" PlaceLimitOrderEventOrderType = "OrderType" PlaceLimitOrderEventTrancheKey = "TrancheKey" )
Place LimitOrder Event Attributes
const ( WithdrawFilledLimitOrderEventKey = "Withdraw" WithdrawFilledLimitOrderEventCreator = "Creator" WithdrawFilledLimitOrderEventToken0 = "Token0" WithdrawFilledLimitOrderEventToken1 = "Token1" WithdrawFilledLimitOrderEventTokenIn = "TokenIn" WithdrawFilledLimitOrderEventTokenOut = "TokenOut" WithdrawFilledLimitOrderEventTrancheKey = "TrancheKey" WithdrawFilledLimitOrderEventAmountOut = "AmountOut" )
Withdraw LimitOrder Event Attributes
const ( CancelLimitOrderEventKey = "Withdraw" CancelLimitOrderEventCreator = "Creator" CancelLimitOrderEventToken0 = "Token0" CancelLimitOrderEventToken1 = "Token1" CancelLimitOrderEventTokenIn = "TokenIn" CancelLimitOrderEventTokenOut = "TokenOut" CancelLimitOrderEventTrancheKey = "TrancheKey" CancelLimitOrderEventAmountOut = "AmountOut" )
Cancel LimitOrder Event Attributes
const ( EventTypeTickUpdate = "TickUpdate" TickUpdateEventKey = "TickUpdate" TickUpdateEventToken0 = "Token0" TickUpdateEventToken1 = "Token1" TickUpdateEventTokenIn = "TokenIn" TickUpdateEventTickIndex = "TickIndex" TickUpdateEventFee = "Fee" TickUpdateEventTrancheKey = "TrancheKey" TickUpdateEventReserves = "Reserves" )
Tick Update Event Attributes
const ( GoodTilPurgeHitGasLimitEventKey = "GoodTilPurgeHitGasLimit" GoodTilPurgeHitGasLimitEventGas = "Gas" )
const ( // NOTE: have to add letter so that LP deposits are indexed ahead of LimitOrders LiquidityTypePoolReserves = "A_PoolDeposit" LiquidityTypeLimitOrder = "B_LODeposit" )
const ( // NOTE: This number is based current cost of all operations in EndBlock, // if that changes this value must be updated to ensure there is enough // remaining gas (weak proxy for timeoutPrepareProposal) to complete endBlock GoodTilPurgeGasBuffer = 50_000 ExpiringLimitOrderGas = 10_000 )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const (
)
"([a-zA-Z][a-zA-Z0-9/-]{2,127})" + "-" +
"([a-zA-Z][a-zA-Z0-9/-]{2,127})" + "-" +
`t(-?\d+)` + "-" +
`f(\d+)`const MaxTickExp uint64 = 352437
NOTE: -352,437 is the lowest possible tick at which price can be calculated with a < 1% error when using 18 digit decimal precision (via sdk.Dec)
const TypeMsgCancelLimitOrder = "cancel_limit_order"
const TypeMsgDeposit = "deposit"
const TypeMsgMultiHopSwap = "multi_hop_swap"
const TypeMsgPlaceLimitOrder = "place_limit_order"
const TypeMsgWithdrawFilledLimitOrder = "withdrawal_withdrawn_limit_order"
const TypeMsgWithdrawal = "withdrawal"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidLengthDepositRecord = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDepositRecord = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDepositRecord = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidTradingPair = sdkerrors.Register( ModuleName, 1102, "Invalid token pair:", ) // "%s<>%s", tokenA, tokenB ModuleName, 1104, "Insufficient shares:", ) // "%s does not have %s shares of type %s", address, shares, sharesID ErrValidTickNotFound = sdkerrors.Register( ModuleName, 1106, "Valid tick not found:", ) // "%d", tickIndex ErrValidPairNotFound = sdkerrors.Register( ModuleName, 1107, "Valid pair not found.", ) ErrUnbalancedTxArray = sdkerrors.Register( ModuleName, 1110, "Transaction input arrays are not of the same length.", ) ErrValidLimitOrderTrancheNotFound = sdkerrors.Register( ModuleName, 1111, "Limit order trache not found:", ) // "%d", trancheKey ErrCancelEmptyLimitOrder = sdkerrors.Register( ModuleName, 1112, "Cannot cancel additional liquidity from limit order tranche:", ) // "%d", tranche.TrancheKey ErrInsufficientLiquidity = sdkerrors.Register( ModuleName, 1114, "Not enough liquidity to complete trade", ) ErrDepositBehindPairLiquidity = sdkerrors.Register( ModuleName, 1115, "Depositing behind the opposite token pair's liquidity is currently not allowed", ) ErrPlaceLimitOrderBehindPairLiquidity = sdkerrors.Register( ModuleName, 1116, "Placing a limit order behind the opposite token pair's liquidity is currently not allowed", ) ErrTickOutsideRange = sdkerrors.Register( ModuleName, 1117, "Supplying a tick outside the range of [-352437, 352437] is not allowed", ) ErrInvalidDepositDenom = sdkerrors.Register( ModuleName, 1118, "Denom is not an instance of Duality DepositDenom", ) ErrInvalidPairIDStr = sdkerrors.Register( ModuleName, 1119, "PairID does not conform to pattern TokenA<>TokenB", ) ErrZeroDeposit = sdkerrors.Register( ModuleName, 1120, "At least one deposit amount must be > 0.", ) ErrZeroTrueDeposit = sdkerrors.Register( ModuleName, 1121, "Cannot deposit double-sided liquidity in tick with prexisting single-sided liquidity.", ) ErrWithdrawEmptyLimitOrder = sdkerrors.Register( ModuleName, 1124, "Cannot withdraw additional liqudity from this limit order at this time.", ) ErrZeroSwap = sdkerrors.Register( ModuleName, 1125, "MaxAmountIn in must be > 0 for swap.", ) ErrInvalidTokenIn = sdkerrors.Register( ModuleName, 1127, "TokenIn not in specified pair.", ) ErrActiveLimitOrderNotFound = sdkerrors.Register( ModuleName, 1128, "No active limit found. It does not exist or has already been filled", ) ErrZeroWithdraw = sdkerrors.Register( ModuleName, 1129, "Withdraw amount must be > 0.", ) ErrZeroLimitOrder = sdkerrors.Register( ModuleName, 1130, "Limit order amount must be > 0.", ) ErrNegativeLimitPrice = sdkerrors.Register( ModuleName, 1132, "LimitPrice must be > 0.", ) ModuleName, 1133, "Deposit amount is too small to issue shares", ) ErrFoKLimitOrderNotFilled = sdkerrors.Register( ModuleName, 1134, "Fill Or Kill limit order couldn't be executed in its entirety.", ) ErrInvalidTimeString = sdkerrors.Register( ModuleName, 1135, "Time string must be formatted as MM/dd/yyyy HH:mm:ss (ex. 02/05/2023 15:34:56) ", ) ErrGoodTilOrderWithoutExpiration = sdkerrors.Register( ModuleName, 1136, "Limit orders of type GOOD_TIL_TIME must supply an ExpirationTime.", ) ErrExpirationOnWrongOrderType = sdkerrors.Register( ModuleName, 1137, "Only Limit orders of type GOOD_TIL_TIME can supply an ExpirationTime.", ) ErrInvalidOrderType = sdkerrors.Register( ModuleName, 1138, "Order type must be one of: GOOD_TIL_CANCELLED, FILL_OR_KILL, IMMEDIATE_OR_CANCEL, JUST_IN_TIME, or GOOD_TIL_TIME.", ) ErrExpirationTimeInPast = sdkerrors.Register( ModuleName, 1139, "Limit order expiration time must be greater than current block time:", ) ErrExitLimitPriceHit = sdkerrors.Register( ModuleName, 1140, "ExitLimitPrice cannot be satisfied.", ) ErrAllMultiHopRoutesFailed = sdkerrors.Register( ModuleName, 1141, "All multihop routes failed limitPrice check or had insufficient liquidity", ) ErrMultihopExitTokensMismatch = sdkerrors.Register( ModuleName, 1142, "All multihop routes must have the same exit token", ) ErrMissingMultihopRoute = sdkerrors.Register( ModuleName, 1143, "Must supply at least 1 route for multihop swap", ) ErrZeroMaxAmountOut = sdkerrors.Register( ModuleName, 1144, "MaxAmountOut must be nil or > 0.", ) ErrInvalidMaxAmountOutForMaker = sdkerrors.Register( ModuleName, 1145, "MaxAmountOut can only be set for taker only limit orders.", ) ErrNegativeMaxAmountOut = sdkerrors.Register( ModuleName, 1146, "MaxAmountOut is supplied it must be > 0", ) ErrCorruptPoolLiquidity = sdkerrors.Register( ModuleName, 1147, "Each pool should have stored liquidity records for both sides", ) ErrInvalidFee = sdkerrors.Register( ModuleName, 1148, "Fee plus/minus center tick cannot exceed tick range [-352437, 352437]", ) )
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 ( ErrInvalidLengthLimitOrderExpiration = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLimitOrderExpiration = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLimitOrderExpiration = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthLimitOrderTranche = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLimitOrderTranche = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLimitOrderTranche = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthLimitOrderTrancheUser = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLimitOrderTrancheUser = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLimitOrderTrancheUser = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPairId = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPairId = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPairId = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthPoolReserves = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPoolReserves = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPoolReserves = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTickLiquidity = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTickLiquidity = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTickLiquidity = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTradePairId = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTradePairId = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTradePairId = 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 ( ErrInvalidLengthUserPositions = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowUserPositions = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupUserPositions = fmt.Errorf("proto: unexpected end of group") )
var LimitOrderType_name = map[int32]string{
0: "GOOD_TIL_CANCELLED",
1: "FILL_OR_KILL",
2: "IMMEDIATE_OR_CANCEL",
3: "JUST_IN_TIME",
4: "GOOD_TIL_TIME",
}
var LimitOrderType_value = map[string]int32{
"GOOD_TIL_CANCELLED": 0,
"FILL_OR_KILL": 1,
"IMMEDIATE_OR_CANCEL": 2,
"JUST_IN_TIME": 3,
"GOOD_TIL_TIME": 4,
}
Functions ¶
func BytesToTickIndex ¶ added in v0.3.4
func CalcAmountAsToken0 ¶ added in v0.3.4
func CalcGreatestMatchingRatio ¶ added in v0.3.4
func CalcGreatestMatchingRatio( targetAmount0 sdk.Int, targetAmount1 sdk.Int, amount0 sdk.Int, amount1 sdk.Int, ) (resultAmount0, resultAmount1 sdk.Int)
Balance trueAmount1 to the pool ratio
func CalcPrice ¶ added in v0.3.4
Calculates the price for a swap from token 0 to token 1 given a relative tick tickIndex refers to the index of a specified tick such that x * 1.0001 ^(-1 * t) = y Lower ticks offer better prices.
func CalcResidualValue ¶ added in v0.3.4
func CancelLimitOrderEvent ¶
func CreateDepositEvent ¶
func CreateMultihopSwapEvent ¶
func CreateTickUpdateLimitOrderTranche ¶
func CreateTickUpdateLimitOrderTranche(tranche *LimitOrderTranche) sdk.Event
func CreateTickUpdatePoolReserves ¶
func CreateTickUpdatePoolReserves(tick PoolReserves) sdk.Event
func CreateWithdrawEvent ¶
func InactiveLimitOrderTrancheKey ¶
func InactiveLimitOrderTrancheKey( tradePairID *TradePairID, tickIndexTakerToMaker int64, trancheKey string, ) []byte
InactiveLimitOrderTrancheKey returns the store key to retrieve a InactiveLimitOrderTranche from the index fields
func IsTickOutOfRange ¶
func JITGoodTilTime ¶
func LimitOrderExpirationKey ¶
func LimitOrderTrancheUserKey ¶
LimitOrderTrancheUserKey returns the store key to retrieve a LimitOrderTrancheUser from the index fields
func LiquidityIndexBytes ¶
func LiquidityIndexBytes(liquidityIndex interface{}) []byte
func MustCalcPrice ¶ added in v0.3.4
func MustCalcPrice0To1 ¶
func MustCalcPrice1To0 ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func SortTokens ¶ added in v0.3.4
func TickIndexToBytes ¶
func TickLiquidityLimitOrderPrefix ¶
func TickLiquidityLimitOrderPrefix( tradePairID *TradePairID, tickIndexTakerTomMaker int64, ) []byte
func TickLiquidityPrefix ¶
func TickLiquidityPrefix(tradePairID *TradePairID) []byte
func TickUpdateEvent ¶
Types ¶
type AccountKeeper ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
type BankKeeper interface { // Methods imported from bank should be defined here SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error GetBalance(ctx sdk.Context, addr sdk.AccAddress, denom string) sdk.Coin IterateAccountBalances(ctx sdk.Context, addr sdk.AccAddress, cb func(sdk.Coin) bool) SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins GetSupply(ctx sdk.Context, denom string) sdk.Coin }
BankKeeper defines the expected interface needed to retrieve account balances.
type BranchableCache ¶
func NewBranchableCache ¶
func NewBranchableCache(ctx sdk.Context) BranchableCache
func (BranchableCache) Branch ¶
func (bc BranchableCache) Branch() BranchableCache
type DepositDenom ¶
func NewDepositDenom ¶
func NewDepositDenom(pairID *PairID, tick int64, fee uint64) *DepositDenom
func NewDepositDenomFromString ¶
func NewDepositDenomFromString(denom string) (depositDenom *DepositDenom, err error)
func (DepositDenom) String ¶
func (d DepositDenom) String() string
type DepositOptions ¶
type DepositOptions struct {
DisableAutoswap bool `protobuf:"varint,1,opt,name=disable_autoswap,json=disableAutoswap,proto3" json:"disable_autoswap,omitempty"`
}
func (*DepositOptions) Descriptor ¶
func (*DepositOptions) Descriptor() ([]byte, []int)
func (*DepositOptions) GetDisableAutoswap ¶ added in v0.2.1
func (m *DepositOptions) GetDisableAutoswap() bool
func (*DepositOptions) Marshal ¶
func (m *DepositOptions) Marshal() (dAtA []byte, err error)
func (*DepositOptions) MarshalToSizedBuffer ¶
func (m *DepositOptions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DepositOptions) ProtoMessage ¶
func (*DepositOptions) ProtoMessage()
func (*DepositOptions) Reset ¶
func (m *DepositOptions) Reset()
func (*DepositOptions) Size ¶
func (m *DepositOptions) Size() (n int)
func (*DepositOptions) String ¶
func (m *DepositOptions) String() string
func (*DepositOptions) Unmarshal ¶
func (m *DepositOptions) Unmarshal(dAtA []byte) error
func (*DepositOptions) XXX_DiscardUnknown ¶
func (m *DepositOptions) XXX_DiscardUnknown()
func (*DepositOptions) XXX_Marshal ¶
func (m *DepositOptions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DepositOptions) XXX_Merge ¶
func (m *DepositOptions) XXX_Merge(src proto.Message)
func (*DepositOptions) XXX_Size ¶
func (m *DepositOptions) XXX_Size() int
func (*DepositOptions) XXX_Unmarshal ¶
func (m *DepositOptions) XXX_Unmarshal(b []byte) error
type DepositRecord ¶
type DepositRecord struct { PairID *PairID `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` CenterTickIndex int64 `protobuf:"varint,3,opt,name=centerTickIndex,proto3" json:"centerTickIndex,omitempty"` LowerTickIndex int64 `protobuf:"varint,4,opt,name=lowerTickIndex,proto3" json:"lowerTickIndex,omitempty"` UpperTickIndex int64 `protobuf:"varint,5,opt,name=upperTickIndex,proto3" json:"upperTickIndex,omitempty"` Fee uint64 `protobuf:"varint,6,opt,name=fee,proto3" json:"fee,omitempty"` }
func (*DepositRecord) Descriptor ¶
func (*DepositRecord) Descriptor() ([]byte, []int)
func (*DepositRecord) GetCenterTickIndex ¶
func (m *DepositRecord) GetCenterTickIndex() int64
func (*DepositRecord) GetFee ¶
func (m *DepositRecord) GetFee() uint64
func (*DepositRecord) GetLowerTickIndex ¶
func (m *DepositRecord) GetLowerTickIndex() int64
func (*DepositRecord) GetPairID ¶
func (m *DepositRecord) GetPairID() *PairID
func (*DepositRecord) GetUpperTickIndex ¶
func (m *DepositRecord) GetUpperTickIndex() int64
func (*DepositRecord) Marshal ¶
func (m *DepositRecord) Marshal() (dAtA []byte, err error)
func (*DepositRecord) MarshalToSizedBuffer ¶
func (m *DepositRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DepositRecord) ProtoMessage ¶
func (*DepositRecord) ProtoMessage()
func (*DepositRecord) Reset ¶
func (m *DepositRecord) Reset()
func (*DepositRecord) Size ¶
func (m *DepositRecord) Size() (n int)
func (*DepositRecord) String ¶
func (m *DepositRecord) String() string
func (*DepositRecord) Unmarshal ¶
func (m *DepositRecord) Unmarshal(dAtA []byte) error
func (*DepositRecord) XXX_DiscardUnknown ¶
func (m *DepositRecord) XXX_DiscardUnknown()
func (*DepositRecord) XXX_Marshal ¶
func (m *DepositRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DepositRecord) XXX_Merge ¶
func (m *DepositRecord) XXX_Merge(src proto.Message)
func (*DepositRecord) XXX_Size ¶
func (m *DepositRecord) XXX_Size() int
func (*DepositRecord) XXX_Unmarshal ¶
func (m *DepositRecord) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` TickLiquidityList []*TickLiquidity `protobuf:"bytes,2,rep,name=tickLiquidityList,proto3" json:"tickLiquidityList,omitempty"` InactiveLimitOrderTrancheList []*LimitOrderTranche `protobuf:"bytes,6,rep,name=inactiveLimitOrderTrancheList,proto3" json:"inactiveLimitOrderTrancheList,omitempty"` LimitOrderTrancheUserList []*LimitOrderTrancheUser `protobuf:"bytes,7,rep,name=limitOrderTrancheUserList,proto3" json:"limitOrderTrancheUserList,omitempty"` }
GenesisState defines the dex module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetInactiveLimitOrderTrancheList ¶
func (m *GenesisState) GetInactiveLimitOrderTrancheList() []*LimitOrderTranche
func (*GenesisState) GetLimitOrderTrancheUserList ¶
func (m *GenesisState) GetLimitOrderTrancheUserList() []*LimitOrderTrancheUser
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetTickLiquidityList ¶
func (m *GenesisState) GetTickLiquidityList() []*TickLiquidity
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type LimitOrderExpiration ¶
type LimitOrderExpiration struct { // see limitOrderTranche.proto for details on goodTilDate ExpirationTime time.Time `protobuf:"bytes,1,opt,name=expirationTime,proto3,stdtime" json:"expirationTime"` TrancheRef []byte `protobuf:"bytes,2,opt,name=trancheRef,proto3" json:"trancheRef,omitempty"` }
func (*LimitOrderExpiration) Descriptor ¶
func (*LimitOrderExpiration) Descriptor() ([]byte, []int)
func (*LimitOrderExpiration) GetExpirationTime ¶
func (m *LimitOrderExpiration) GetExpirationTime() time.Time
func (*LimitOrderExpiration) GetTrancheRef ¶
func (m *LimitOrderExpiration) GetTrancheRef() []byte
func (*LimitOrderExpiration) Marshal ¶
func (m *LimitOrderExpiration) Marshal() (dAtA []byte, err error)
func (*LimitOrderExpiration) MarshalTo ¶
func (m *LimitOrderExpiration) MarshalTo(dAtA []byte) (int, error)
func (*LimitOrderExpiration) MarshalToSizedBuffer ¶
func (m *LimitOrderExpiration) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LimitOrderExpiration) ProtoMessage ¶
func (*LimitOrderExpiration) ProtoMessage()
func (*LimitOrderExpiration) Reset ¶
func (m *LimitOrderExpiration) Reset()
func (*LimitOrderExpiration) Size ¶
func (m *LimitOrderExpiration) Size() (n int)
func (*LimitOrderExpiration) String ¶
func (m *LimitOrderExpiration) String() string
func (*LimitOrderExpiration) Unmarshal ¶
func (m *LimitOrderExpiration) Unmarshal(dAtA []byte) error
func (*LimitOrderExpiration) XXX_DiscardUnknown ¶
func (m *LimitOrderExpiration) XXX_DiscardUnknown()
func (*LimitOrderExpiration) XXX_Marshal ¶
func (m *LimitOrderExpiration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LimitOrderExpiration) XXX_Merge ¶
func (m *LimitOrderExpiration) XXX_Merge(src proto.Message)
func (*LimitOrderExpiration) XXX_Size ¶
func (m *LimitOrderExpiration) XXX_Size() int
func (*LimitOrderExpiration) XXX_Unmarshal ¶
func (m *LimitOrderExpiration) XXX_Unmarshal(b []byte) error
type LimitOrderTranche ¶
type LimitOrderTranche struct { Key *LimitOrderTrancheKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `` /* 155-byte string literal not displayed */ ReservesTakerDenom github_com_cosmos_cosmos_sdk_types.Int `` /* 155-byte string literal not displayed */ TotalMakerDenom github_com_cosmos_cosmos_sdk_types.Int `` /* 143-byte string literal not displayed */ TotalTakerDenom github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */ // JIT orders also use goodTilDate to handle deletion but represent a special case // All JIT orders have a goodTilDate of 0 and an exception is made to still still treat these orders as live // Order deletion still functions the same and the orders will be deleted at the end of the block ExpirationTime *time.Time `protobuf:"bytes,6,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"` PriceTakerToMaker github_com_cosmos_cosmos_sdk_types.Dec `` /* 152-byte string literal not displayed */ }
func MustNewLimitOrderTranche ¶ added in v0.3.4
func MustNewLimitOrderTranche( makerDenom string, takerDenom string, trancheKey string, tickIndex int64, reservesMakerDenom sdk.Int, reservesTakerDenom sdk.Int, totalMakerDenom sdk.Int, totalTakerDenom sdk.Int, ) *LimitOrderTranche
Useful for testing
func NewLimitOrderTranche ¶ added in v0.3.4
func (LimitOrderTranche) AmountUnfilled ¶
func (t LimitOrderTranche) AmountUnfilled() sdk.Dec
func (*LimitOrderTranche) Descriptor ¶
func (*LimitOrderTranche) Descriptor() ([]byte, []int)
func (*LimitOrderTranche) GetExpirationTime ¶
func (m *LimitOrderTranche) GetExpirationTime() *time.Time
func (*LimitOrderTranche) GetKey ¶ added in v0.3.4
func (m *LimitOrderTranche) GetKey() *LimitOrderTrancheKey
func (LimitOrderTranche) HasLiquidity ¶
func (t LimitOrderTranche) HasLiquidity() bool
func (LimitOrderTranche) HasTokenIn ¶
func (t LimitOrderTranche) HasTokenIn() bool
func (LimitOrderTranche) HasTokenOut ¶
func (t LimitOrderTranche) HasTokenOut() bool
func (LimitOrderTranche) IsFilled ¶
func (t LimitOrderTranche) IsFilled() bool
func (LimitOrderTranche) IsJIT ¶
func (t LimitOrderTranche) IsJIT() bool
func (LimitOrderTranche) IsPlaceTranche ¶
func (t LimitOrderTranche) IsPlaceTranche() bool
func (*LimitOrderTranche) Marshal ¶
func (m *LimitOrderTranche) Marshal() (dAtA []byte, err error)
func (*LimitOrderTranche) MarshalTo ¶
func (m *LimitOrderTranche) MarshalTo(dAtA []byte) (int, error)
func (*LimitOrderTranche) MarshalToSizedBuffer ¶
func (m *LimitOrderTranche) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LimitOrderTranche) PlaceMakerLimitOrder ¶
func (t *LimitOrderTranche) PlaceMakerLimitOrder(amountIn sdk.Int)
func (LimitOrderTranche) Price ¶
func (t LimitOrderTranche) Price() sdk.Dec
func (*LimitOrderTranche) ProtoMessage ¶
func (*LimitOrderTranche) ProtoMessage()
func (LimitOrderTranche) RatioFilled ¶
func (t LimitOrderTranche) RatioFilled() sdk.Dec
func (*LimitOrderTranche) RemoveTokenIn ¶
func (t *LimitOrderTranche) RemoveTokenIn( trancheUser *LimitOrderTrancheUser, ) (amountToRemove sdk.Int)
func (*LimitOrderTranche) Reset ¶
func (m *LimitOrderTranche) Reset()
func (*LimitOrderTranche) Size ¶
func (m *LimitOrderTranche) Size() (n int)
func (*LimitOrderTranche) String ¶
func (m *LimitOrderTranche) String() string
func (*LimitOrderTranche) Unmarshal ¶
func (m *LimitOrderTranche) Unmarshal(dAtA []byte) error
func (*LimitOrderTranche) Withdraw ¶
func (t *LimitOrderTranche) Withdraw(trancheUser *LimitOrderTrancheUser) (sdk.Int, sdk.Dec)
func (*LimitOrderTranche) XXX_DiscardUnknown ¶
func (m *LimitOrderTranche) XXX_DiscardUnknown()
func (*LimitOrderTranche) XXX_Marshal ¶
func (m *LimitOrderTranche) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LimitOrderTranche) XXX_Merge ¶
func (m *LimitOrderTranche) XXX_Merge(src proto.Message)
func (*LimitOrderTranche) XXX_Size ¶
func (m *LimitOrderTranche) XXX_Size() int
func (*LimitOrderTranche) XXX_Unmarshal ¶
func (m *LimitOrderTranche) XXX_Unmarshal(b []byte) error
type LimitOrderTrancheKey ¶ added in v0.3.4
type LimitOrderTrancheKey struct { TradePairID *TradePairID `protobuf:"bytes,1,opt,name=tradePairID,proto3" json:"tradePairID,omitempty"` TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=tickIndexTakerToMaker,proto3" json:"tickIndexTakerToMaker,omitempty"` TrancheKey string `protobuf:"bytes,3,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` }
func (*LimitOrderTrancheKey) Descriptor ¶ added in v0.3.4
func (*LimitOrderTrancheKey) Descriptor() ([]byte, []int)
func (*LimitOrderTrancheKey) GetTickIndexTakerToMaker ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) GetTickIndexTakerToMaker() int64
func (*LimitOrderTrancheKey) GetTradePairID ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) GetTradePairID() *TradePairID
func (*LimitOrderTrancheKey) GetTrancheKey ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) GetTrancheKey() string
func (LimitOrderTrancheKey) KeyMarshal ¶ added in v0.3.4
func (p LimitOrderTrancheKey) KeyMarshal() []byte
func (LimitOrderTrancheKey) KeyUnmarshal ¶ added in v0.3.4
func (p LimitOrderTrancheKey) KeyUnmarshal(bz []byte) error
func (*LimitOrderTrancheKey) Marshal ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) Marshal() (dAtA []byte, err error)
func (*LimitOrderTrancheKey) MarshalTo ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) MarshalTo(dAtA []byte) (int, error)
func (*LimitOrderTrancheKey) MarshalToSizedBuffer ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (LimitOrderTrancheKey) MustPriceTakerToMaker ¶ added in v0.3.4
func (p LimitOrderTrancheKey) MustPriceTakerToMaker() (priceTakerToMaker sdk.Dec)
func (LimitOrderTrancheKey) PriceTakerToMaker ¶ added in v0.3.4
func (p LimitOrderTrancheKey) PriceTakerToMaker() (priceTakerToMaker sdk.Dec, err error)
func (*LimitOrderTrancheKey) ProtoMessage ¶ added in v0.3.4
func (*LimitOrderTrancheKey) ProtoMessage()
func (*LimitOrderTrancheKey) Reset ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) Reset()
func (*LimitOrderTrancheKey) Size ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) Size() (n int)
func (*LimitOrderTrancheKey) String ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) String() string
func (*LimitOrderTrancheKey) Unmarshal ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) Unmarshal(dAtA []byte) error
func (*LimitOrderTrancheKey) XXX_DiscardUnknown ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) XXX_DiscardUnknown()
func (*LimitOrderTrancheKey) XXX_Marshal ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LimitOrderTrancheKey) XXX_Merge ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) XXX_Merge(src proto.Message)
func (*LimitOrderTrancheKey) XXX_Size ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) XXX_Size() int
func (*LimitOrderTrancheKey) XXX_Unmarshal ¶ added in v0.3.4
func (m *LimitOrderTrancheKey) XXX_Unmarshal(b []byte) error
type LimitOrderTrancheUser ¶
type LimitOrderTrancheUser struct { TradePairID *TradePairID `protobuf:"bytes,1,opt,name=tradePairID,proto3" json:"tradePairID,omitempty"` TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=tickIndexTakerToMaker,proto3" json:"tickIndexTakerToMaker,omitempty"` TrancheKey string `protobuf:"bytes,3,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` Address string `protobuf:"bytes,4,opt,name=address,proto3" json:"address,omitempty"` OrderType LimitOrderType `protobuf:"varint,8,opt,name=orderType,proto3,enum=dualitylabs.duality.dex.LimitOrderType" json:"orderType,omitempty"` }
func (*LimitOrderTrancheUser) Descriptor ¶
func (*LimitOrderTrancheUser) Descriptor() ([]byte, []int)
func (*LimitOrderTrancheUser) GetAddress ¶
func (m *LimitOrderTrancheUser) GetAddress() string
func (*LimitOrderTrancheUser) GetOrderType ¶
func (m *LimitOrderTrancheUser) GetOrderType() LimitOrderType
func (*LimitOrderTrancheUser) GetTickIndexTakerToMaker ¶ added in v0.3.4
func (m *LimitOrderTrancheUser) GetTickIndexTakerToMaker() int64
func (*LimitOrderTrancheUser) GetTradePairID ¶ added in v0.3.4
func (m *LimitOrderTrancheUser) GetTradePairID() *TradePairID
func (*LimitOrderTrancheUser) GetTrancheKey ¶
func (m *LimitOrderTrancheUser) GetTrancheKey() string
func (LimitOrderTrancheUser) IsEmpty ¶
func (l LimitOrderTrancheUser) IsEmpty() bool
func (*LimitOrderTrancheUser) Marshal ¶
func (m *LimitOrderTrancheUser) Marshal() (dAtA []byte, err error)
func (*LimitOrderTrancheUser) MarshalTo ¶
func (m *LimitOrderTrancheUser) MarshalTo(dAtA []byte) (int, error)
func (*LimitOrderTrancheUser) MarshalToSizedBuffer ¶
func (m *LimitOrderTrancheUser) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LimitOrderTrancheUser) ProtoMessage ¶
func (*LimitOrderTrancheUser) ProtoMessage()
func (*LimitOrderTrancheUser) Reset ¶
func (m *LimitOrderTrancheUser) Reset()
func (*LimitOrderTrancheUser) Size ¶
func (m *LimitOrderTrancheUser) Size() (n int)
func (*LimitOrderTrancheUser) String ¶
func (m *LimitOrderTrancheUser) String() string
func (*LimitOrderTrancheUser) Unmarshal ¶
func (m *LimitOrderTrancheUser) Unmarshal(dAtA []byte) error
func (*LimitOrderTrancheUser) XXX_DiscardUnknown ¶
func (m *LimitOrderTrancheUser) XXX_DiscardUnknown()
func (*LimitOrderTrancheUser) XXX_Marshal ¶
func (m *LimitOrderTrancheUser) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LimitOrderTrancheUser) XXX_Merge ¶
func (m *LimitOrderTrancheUser) XXX_Merge(src proto.Message)
func (*LimitOrderTrancheUser) XXX_Size ¶
func (m *LimitOrderTrancheUser) XXX_Size() int
func (*LimitOrderTrancheUser) XXX_Unmarshal ¶
func (m *LimitOrderTrancheUser) XXX_Unmarshal(b []byte) error
type LimitOrderType ¶
type LimitOrderType int32
const ( LimitOrderType_GOOD_TIL_CANCELLED LimitOrderType = 0 LimitOrderType_FILL_OR_KILL LimitOrderType = 1 LimitOrderType_IMMEDIATE_OR_CANCEL LimitOrderType = 2 LimitOrderType_JUST_IN_TIME LimitOrderType = 3 LimitOrderType_GOOD_TIL_TIME LimitOrderType = 4 )
func (LimitOrderType) EnumDescriptor ¶
func (LimitOrderType) EnumDescriptor() ([]byte, []int)
func (LimitOrderType) HasExpiration ¶
func (l LimitOrderType) HasExpiration() bool
func (LimitOrderType) IsFoK ¶
func (l LimitOrderType) IsFoK() bool
func (LimitOrderType) IsGTC ¶
func (l LimitOrderType) IsGTC() bool
func (LimitOrderType) IsGoodTil ¶
func (l LimitOrderType) IsGoodTil() bool
func (LimitOrderType) IsIoC ¶
func (l LimitOrderType) IsIoC() bool
func (LimitOrderType) IsJIT ¶
func (l LimitOrderType) IsJIT() bool
func (LimitOrderType) IsTakerOnly ¶ added in v0.3.0
func (l LimitOrderType) IsTakerOnly() bool
func (LimitOrderType) String ¶
func (x LimitOrderType) String() string
type Liquidity ¶ added in v0.3.4
type Liquidity interface { Swap(maxAmountTakerIn sdk.Int, maxAmountMakerOut *sdk.Int) (inAmount, outAmount sdk.Int) Price() sdk.Dec }
func NewPoolLiquidity ¶ added in v0.3.4
func NewPoolLiquidity(tradePairID *TradePairID, pool *Pool) Liquidity
type LiquidityType ¶ added in v0.3.4
type LiquidityType int
const ( LiquidityType_PoolReserves LiquidityType = iota LiquidityType_LimitOrder )
type MsgCancelLimitOrder ¶
type MsgCancelLimitOrder struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` TrancheKey string `protobuf:"bytes,2,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` }
func NewMsgCancelLimitOrder ¶
func NewMsgCancelLimitOrder(creator, trancheKey string) *MsgCancelLimitOrder
func (*MsgCancelLimitOrder) Descriptor ¶
func (*MsgCancelLimitOrder) Descriptor() ([]byte, []int)
func (*MsgCancelLimitOrder) GetCreator ¶
func (m *MsgCancelLimitOrder) GetCreator() string
func (*MsgCancelLimitOrder) GetSignBytes ¶
func (msg *MsgCancelLimitOrder) GetSignBytes() []byte
func (*MsgCancelLimitOrder) GetSigners ¶
func (msg *MsgCancelLimitOrder) GetSigners() []sdk.AccAddress
func (*MsgCancelLimitOrder) GetTrancheKey ¶
func (m *MsgCancelLimitOrder) GetTrancheKey() string
func (*MsgCancelLimitOrder) Marshal ¶
func (m *MsgCancelLimitOrder) Marshal() (dAtA []byte, err error)
func (*MsgCancelLimitOrder) MarshalTo ¶
func (m *MsgCancelLimitOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelLimitOrder) MarshalToSizedBuffer ¶
func (m *MsgCancelLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelLimitOrder) ProtoMessage ¶
func (*MsgCancelLimitOrder) ProtoMessage()
func (*MsgCancelLimitOrder) Reset ¶
func (m *MsgCancelLimitOrder) Reset()
func (*MsgCancelLimitOrder) Route ¶
func (msg *MsgCancelLimitOrder) Route() string
func (*MsgCancelLimitOrder) Size ¶
func (m *MsgCancelLimitOrder) Size() (n int)
func (*MsgCancelLimitOrder) String ¶
func (m *MsgCancelLimitOrder) String() string
func (*MsgCancelLimitOrder) Type ¶
func (msg *MsgCancelLimitOrder) Type() string
func (*MsgCancelLimitOrder) Unmarshal ¶
func (m *MsgCancelLimitOrder) Unmarshal(dAtA []byte) error
func (*MsgCancelLimitOrder) ValidateBasic ¶
func (msg *MsgCancelLimitOrder) ValidateBasic() error
func (*MsgCancelLimitOrder) XXX_DiscardUnknown ¶
func (m *MsgCancelLimitOrder) XXX_DiscardUnknown()
func (*MsgCancelLimitOrder) XXX_Marshal ¶
func (m *MsgCancelLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelLimitOrder) XXX_Merge ¶
func (m *MsgCancelLimitOrder) XXX_Merge(src proto.Message)
func (*MsgCancelLimitOrder) XXX_Size ¶
func (m *MsgCancelLimitOrder) XXX_Size() int
func (*MsgCancelLimitOrder) XXX_Unmarshal ¶
func (m *MsgCancelLimitOrder) XXX_Unmarshal(b []byte) error
type MsgCancelLimitOrderResponse ¶
type MsgCancelLimitOrderResponse struct { }
func (*MsgCancelLimitOrderResponse) Descriptor ¶
func (*MsgCancelLimitOrderResponse) Descriptor() ([]byte, []int)
func (*MsgCancelLimitOrderResponse) Marshal ¶
func (m *MsgCancelLimitOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelLimitOrderResponse) MarshalTo ¶
func (m *MsgCancelLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelLimitOrderResponse) MarshalToSizedBuffer ¶
func (m *MsgCancelLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelLimitOrderResponse) ProtoMessage ¶
func (*MsgCancelLimitOrderResponse) ProtoMessage()
func (*MsgCancelLimitOrderResponse) Reset ¶
func (m *MsgCancelLimitOrderResponse) Reset()
func (*MsgCancelLimitOrderResponse) Size ¶
func (m *MsgCancelLimitOrderResponse) Size() (n int)
func (*MsgCancelLimitOrderResponse) String ¶
func (m *MsgCancelLimitOrderResponse) String() string
func (*MsgCancelLimitOrderResponse) Unmarshal ¶
func (m *MsgCancelLimitOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelLimitOrderResponse) XXX_DiscardUnknown ¶
func (m *MsgCancelLimitOrderResponse) XXX_DiscardUnknown()
func (*MsgCancelLimitOrderResponse) XXX_Marshal ¶
func (m *MsgCancelLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelLimitOrderResponse) XXX_Merge ¶
func (m *MsgCancelLimitOrderResponse) XXX_Merge(src proto.Message)
func (*MsgCancelLimitOrderResponse) XXX_Size ¶
func (m *MsgCancelLimitOrderResponse) XXX_Size() int
func (*MsgCancelLimitOrderResponse) XXX_Unmarshal ¶
func (m *MsgCancelLimitOrderResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { Deposit(ctx context.Context, in *MsgDeposit, opts ...grpc.CallOption) (*MsgDepositResponse, error) Withdrawal(ctx context.Context, in *MsgWithdrawal, opts ...grpc.CallOption) (*MsgWithdrawalResponse, error) PlaceLimitOrder(ctx context.Context, in *MsgPlaceLimitOrder, opts ...grpc.CallOption) (*MsgPlaceLimitOrderResponse, error) WithdrawFilledLimitOrder(ctx context.Context, in *MsgWithdrawFilledLimitOrder, opts ...grpc.CallOption) (*MsgWithdrawFilledLimitOrderResponse, error) CancelLimitOrder(ctx context.Context, in *MsgCancelLimitOrder, opts ...grpc.CallOption) (*MsgCancelLimitOrderResponse, error) MultiHopSwap(ctx context.Context, in *MsgMultiHopSwap, opts ...grpc.CallOption) (*MsgMultiHopSwapResponse, 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 MsgDeposit ¶
type MsgDeposit struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` TokenA string `protobuf:"bytes,3,opt,name=tokenA,proto3" json:"tokenA,omitempty"` TokenB string `protobuf:"bytes,4,opt,name=tokenB,proto3" json:"tokenB,omitempty"` AmountsA []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,5,rep,name=amountsA,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountA" yaml:"amountsA"` AmountsB []github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,6,rep,name=amountsB,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountB" yaml:"amountsB"` TickIndexesAToB []int64 `protobuf:"varint,7,rep,packed,name=tickIndexesAToB,proto3" json:"tickIndexesAToB,omitempty"` Fees []uint64 `protobuf:"varint,8,rep,packed,name=fees,proto3" json:"fees,omitempty"` Options []*DepositOptions `protobuf:"bytes,9,rep,name=Options,proto3" json:"Options,omitempty"` }
func NewMsgDeposit ¶
func NewMsgDeposit( creator, receiver, tokenA, tokenB string, amountsA, amountsB []sdk.Int, tickIndexes []int64, fees []uint64, depositOptions []*DepositOptions, ) *MsgDeposit
func (*MsgDeposit) Descriptor ¶
func (*MsgDeposit) Descriptor() ([]byte, []int)
func (*MsgDeposit) GetCreator ¶
func (m *MsgDeposit) GetCreator() string
func (*MsgDeposit) GetFees ¶
func (m *MsgDeposit) GetFees() []uint64
func (*MsgDeposit) GetOptions ¶
func (m *MsgDeposit) GetOptions() []*DepositOptions
func (*MsgDeposit) GetReceiver ¶
func (m *MsgDeposit) GetReceiver() string
func (*MsgDeposit) GetSignBytes ¶
func (msg *MsgDeposit) GetSignBytes() []byte
func (*MsgDeposit) GetSigners ¶
func (msg *MsgDeposit) GetSigners() []sdk.AccAddress
func (*MsgDeposit) GetTickIndexesAToB ¶
func (m *MsgDeposit) GetTickIndexesAToB() []int64
func (*MsgDeposit) GetTokenA ¶
func (m *MsgDeposit) GetTokenA() string
func (*MsgDeposit) GetTokenB ¶
func (m *MsgDeposit) GetTokenB() string
func (*MsgDeposit) Marshal ¶
func (m *MsgDeposit) Marshal() (dAtA []byte, err error)
func (*MsgDeposit) MarshalToSizedBuffer ¶
func (m *MsgDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeposit) ProtoMessage ¶
func (*MsgDeposit) ProtoMessage()
func (*MsgDeposit) Reset ¶
func (m *MsgDeposit) Reset()
func (*MsgDeposit) Route ¶
func (msg *MsgDeposit) Route() string
func (*MsgDeposit) Size ¶
func (m *MsgDeposit) Size() (n int)
func (*MsgDeposit) String ¶
func (m *MsgDeposit) String() string
func (*MsgDeposit) Type ¶
func (msg *MsgDeposit) Type() string
func (*MsgDeposit) Unmarshal ¶
func (m *MsgDeposit) Unmarshal(dAtA []byte) error
func (*MsgDeposit) ValidateBasic ¶
func (msg *MsgDeposit) ValidateBasic() error
func (*MsgDeposit) XXX_DiscardUnknown ¶
func (m *MsgDeposit) XXX_DiscardUnknown()
func (*MsgDeposit) XXX_Marshal ¶
func (m *MsgDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeposit) XXX_Merge ¶
func (m *MsgDeposit) XXX_Merge(src proto.Message)
func (*MsgDeposit) XXX_Size ¶
func (m *MsgDeposit) XXX_Size() int
func (*MsgDeposit) XXX_Unmarshal ¶
func (m *MsgDeposit) XXX_Unmarshal(b []byte) error
type MsgDepositResponse ¶
type MsgDepositResponse struct { Reserve0Deposited []github_com_cosmos_cosmos_sdk_types.Int `` /* 152-byte string literal not displayed */ Reserve1Deposited []github_com_cosmos_cosmos_sdk_types.Int `` /* 152-byte string literal not displayed */ }
func (*MsgDepositResponse) Descriptor ¶
func (*MsgDepositResponse) Descriptor() ([]byte, []int)
func (*MsgDepositResponse) Marshal ¶
func (m *MsgDepositResponse) Marshal() (dAtA []byte, err error)
func (*MsgDepositResponse) MarshalTo ¶
func (m *MsgDepositResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDepositResponse) MarshalToSizedBuffer ¶
func (m *MsgDepositResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDepositResponse) ProtoMessage ¶
func (*MsgDepositResponse) ProtoMessage()
func (*MsgDepositResponse) Reset ¶
func (m *MsgDepositResponse) Reset()
func (*MsgDepositResponse) Size ¶
func (m *MsgDepositResponse) Size() (n int)
func (*MsgDepositResponse) String ¶
func (m *MsgDepositResponse) String() string
func (*MsgDepositResponse) Unmarshal ¶
func (m *MsgDepositResponse) Unmarshal(dAtA []byte) error
func (*MsgDepositResponse) XXX_DiscardUnknown ¶
func (m *MsgDepositResponse) XXX_DiscardUnknown()
func (*MsgDepositResponse) XXX_Marshal ¶
func (m *MsgDepositResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDepositResponse) XXX_Merge ¶
func (m *MsgDepositResponse) XXX_Merge(src proto.Message)
func (*MsgDepositResponse) XXX_Size ¶
func (m *MsgDepositResponse) XXX_Size() int
func (*MsgDepositResponse) XXX_Unmarshal ¶
func (m *MsgDepositResponse) XXX_Unmarshal(b []byte) error
type MsgMultiHopSwap ¶
type MsgMultiHopSwap struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` Routes []*MultiHopRoute `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"` AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` ExitLimitPrice github_com_cosmos_cosmos_sdk_types.Dec `` /* 143-byte string literal not displayed */ // If pickBestRoute == true then all routes are run and the route with the best price is chosen // otherwise, the first succesful route is used. PickBestRoute bool `protobuf:"varint,6,opt,name=pickBestRoute,proto3" json:"pickBestRoute,omitempty"` }
func NewMsgMultiHopSwap ¶
func (*MsgMultiHopSwap) Descriptor ¶
func (*MsgMultiHopSwap) Descriptor() ([]byte, []int)
func (*MsgMultiHopSwap) GetCreator ¶
func (m *MsgMultiHopSwap) GetCreator() string
func (*MsgMultiHopSwap) GetPickBestRoute ¶
func (m *MsgMultiHopSwap) GetPickBestRoute() bool
func (*MsgMultiHopSwap) GetReceiver ¶
func (m *MsgMultiHopSwap) GetReceiver() string
func (*MsgMultiHopSwap) GetRoutes ¶
func (m *MsgMultiHopSwap) GetRoutes() []*MultiHopRoute
func (*MsgMultiHopSwap) GetSignBytes ¶
func (msg *MsgMultiHopSwap) GetSignBytes() []byte
func (*MsgMultiHopSwap) GetSigners ¶
func (msg *MsgMultiHopSwap) GetSigners() []sdk.AccAddress
func (*MsgMultiHopSwap) Marshal ¶
func (m *MsgMultiHopSwap) Marshal() (dAtA []byte, err error)
func (*MsgMultiHopSwap) MarshalToSizedBuffer ¶
func (m *MsgMultiHopSwap) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMultiHopSwap) ProtoMessage ¶
func (*MsgMultiHopSwap) ProtoMessage()
func (*MsgMultiHopSwap) Reset ¶
func (m *MsgMultiHopSwap) Reset()
func (*MsgMultiHopSwap) Route ¶
func (msg *MsgMultiHopSwap) Route() string
func (*MsgMultiHopSwap) Size ¶
func (m *MsgMultiHopSwap) Size() (n int)
func (*MsgMultiHopSwap) String ¶
func (m *MsgMultiHopSwap) String() string
func (*MsgMultiHopSwap) Type ¶
func (msg *MsgMultiHopSwap) Type() string
func (*MsgMultiHopSwap) Unmarshal ¶
func (m *MsgMultiHopSwap) Unmarshal(dAtA []byte) error
func (*MsgMultiHopSwap) ValidateBasic ¶
func (msg *MsgMultiHopSwap) ValidateBasic() error
func (*MsgMultiHopSwap) XXX_DiscardUnknown ¶
func (m *MsgMultiHopSwap) XXX_DiscardUnknown()
func (*MsgMultiHopSwap) XXX_Marshal ¶
func (m *MsgMultiHopSwap) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMultiHopSwap) XXX_Merge ¶
func (m *MsgMultiHopSwap) XXX_Merge(src proto.Message)
func (*MsgMultiHopSwap) XXX_Size ¶
func (m *MsgMultiHopSwap) XXX_Size() int
func (*MsgMultiHopSwap) XXX_Unmarshal ¶
func (m *MsgMultiHopSwap) XXX_Unmarshal(b []byte) error
type MsgMultiHopSwapResponse ¶
type MsgMultiHopSwapResponse struct {
CoinOut github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,1,opt,name=coinOut,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinOut"`
}
func (*MsgMultiHopSwapResponse) Descriptor ¶
func (*MsgMultiHopSwapResponse) Descriptor() ([]byte, []int)
func (*MsgMultiHopSwapResponse) Marshal ¶
func (m *MsgMultiHopSwapResponse) Marshal() (dAtA []byte, err error)
func (*MsgMultiHopSwapResponse) MarshalTo ¶
func (m *MsgMultiHopSwapResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMultiHopSwapResponse) MarshalToSizedBuffer ¶
func (m *MsgMultiHopSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMultiHopSwapResponse) ProtoMessage ¶
func (*MsgMultiHopSwapResponse) ProtoMessage()
func (*MsgMultiHopSwapResponse) Reset ¶
func (m *MsgMultiHopSwapResponse) Reset()
func (*MsgMultiHopSwapResponse) Size ¶
func (m *MsgMultiHopSwapResponse) Size() (n int)
func (*MsgMultiHopSwapResponse) String ¶
func (m *MsgMultiHopSwapResponse) String() string
func (*MsgMultiHopSwapResponse) Unmarshal ¶
func (m *MsgMultiHopSwapResponse) Unmarshal(dAtA []byte) error
func (*MsgMultiHopSwapResponse) XXX_DiscardUnknown ¶
func (m *MsgMultiHopSwapResponse) XXX_DiscardUnknown()
func (*MsgMultiHopSwapResponse) XXX_Marshal ¶
func (m *MsgMultiHopSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMultiHopSwapResponse) XXX_Merge ¶
func (m *MsgMultiHopSwapResponse) XXX_Merge(src proto.Message)
func (*MsgMultiHopSwapResponse) XXX_Size ¶
func (m *MsgMultiHopSwapResponse) XXX_Size() int
func (*MsgMultiHopSwapResponse) XXX_Unmarshal ¶
func (m *MsgMultiHopSwapResponse) XXX_Unmarshal(b []byte) error
type MsgPlaceLimitOrder ¶
type MsgPlaceLimitOrder struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` TokenIn string `protobuf:"bytes,3,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` TokenOut string `protobuf:"bytes,4,opt,name=tokenOut,proto3" json:"tokenOut,omitempty"` TickIndexInToOut int64 `protobuf:"varint,5,opt,name=tickIndexInToOut,proto3" json:"tickIndexInToOut,omitempty"` AmountIn github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,7,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"` OrderType LimitOrderType `protobuf:"varint,8,opt,name=orderType,proto3,enum=dualitylabs.duality.dex.LimitOrderType" json:"orderType,omitempty"` // expirationTime is only valid iff orderType == GOOD_TIL_TIME. ExpirationTime *time.Time `protobuf:"bytes,9,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"` MaxAmountOut *github_com_cosmos_cosmos_sdk_types.Int `` /* 138-byte string literal not displayed */ }
func NewMsgPlaceLimitOrder ¶
func NewMsgPlaceLimitOrder( creator, receiver, tokenIn, tokenOut string, tickIndex int64, amountIn sdk.Int, orderType LimitOrderType, goodTil *time.Time, maxAmountOut *sdk.Int, ) *MsgPlaceLimitOrder
func (*MsgPlaceLimitOrder) Descriptor ¶
func (*MsgPlaceLimitOrder) Descriptor() ([]byte, []int)
func (*MsgPlaceLimitOrder) GetCreator ¶
func (m *MsgPlaceLimitOrder) GetCreator() string
func (*MsgPlaceLimitOrder) GetExpirationTime ¶
func (m *MsgPlaceLimitOrder) GetExpirationTime() *time.Time
func (*MsgPlaceLimitOrder) GetOrderType ¶
func (m *MsgPlaceLimitOrder) GetOrderType() LimitOrderType
func (*MsgPlaceLimitOrder) GetReceiver ¶
func (m *MsgPlaceLimitOrder) GetReceiver() string
func (*MsgPlaceLimitOrder) GetSignBytes ¶
func (msg *MsgPlaceLimitOrder) GetSignBytes() []byte
func (*MsgPlaceLimitOrder) GetSigners ¶
func (msg *MsgPlaceLimitOrder) GetSigners() []sdk.AccAddress
func (*MsgPlaceLimitOrder) GetTickIndexInToOut ¶ added in v0.3.4
func (m *MsgPlaceLimitOrder) GetTickIndexInToOut() int64
func (*MsgPlaceLimitOrder) GetTokenIn ¶
func (m *MsgPlaceLimitOrder) GetTokenIn() string
func (*MsgPlaceLimitOrder) GetTokenOut ¶
func (m *MsgPlaceLimitOrder) GetTokenOut() string
func (*MsgPlaceLimitOrder) Marshal ¶
func (m *MsgPlaceLimitOrder) Marshal() (dAtA []byte, err error)
func (*MsgPlaceLimitOrder) MarshalTo ¶
func (m *MsgPlaceLimitOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceLimitOrder) MarshalToSizedBuffer ¶
func (m *MsgPlaceLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceLimitOrder) ProtoMessage ¶
func (*MsgPlaceLimitOrder) ProtoMessage()
func (*MsgPlaceLimitOrder) Reset ¶
func (m *MsgPlaceLimitOrder) Reset()
func (*MsgPlaceLimitOrder) Route ¶
func (msg *MsgPlaceLimitOrder) Route() string
func (*MsgPlaceLimitOrder) Size ¶
func (m *MsgPlaceLimitOrder) Size() (n int)
func (*MsgPlaceLimitOrder) String ¶
func (m *MsgPlaceLimitOrder) String() string
func (*MsgPlaceLimitOrder) Type ¶
func (msg *MsgPlaceLimitOrder) Type() string
func (*MsgPlaceLimitOrder) Unmarshal ¶
func (m *MsgPlaceLimitOrder) Unmarshal(dAtA []byte) error
func (*MsgPlaceLimitOrder) ValidateBasic ¶
func (msg *MsgPlaceLimitOrder) ValidateBasic() error
func (*MsgPlaceLimitOrder) ValidateGoodTilExpiration ¶
func (msg *MsgPlaceLimitOrder) ValidateGoodTilExpiration(blockTime time.Time) error
func (*MsgPlaceLimitOrder) XXX_DiscardUnknown ¶
func (m *MsgPlaceLimitOrder) XXX_DiscardUnknown()
func (*MsgPlaceLimitOrder) XXX_Marshal ¶
func (m *MsgPlaceLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceLimitOrder) XXX_Merge ¶
func (m *MsgPlaceLimitOrder) XXX_Merge(src proto.Message)
func (*MsgPlaceLimitOrder) XXX_Size ¶
func (m *MsgPlaceLimitOrder) XXX_Size() int
func (*MsgPlaceLimitOrder) XXX_Unmarshal ¶
func (m *MsgPlaceLimitOrder) XXX_Unmarshal(b []byte) error
type MsgPlaceLimitOrderResponse ¶
type MsgPlaceLimitOrderResponse struct { TrancheKey string `protobuf:"bytes,1,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` // Total amount of coin used for the limit order CoinIn github_com_cosmos_cosmos_sdk_types.Coin `protobuf:"bytes,2,opt,name=coinIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Coin" json:"coinIn" yaml:"coinIn"` // Total amount of coin received from the taker portion of the limit order // This is the amount of coin immediately available in the users account after executing the // limit order. It does not include any future proceeds from the maker portion which will have withdrawn in the future TakerCoinOut github_com_cosmos_cosmos_sdk_types.Coin `` /* 138-byte string literal not displayed */ }
func (*MsgPlaceLimitOrderResponse) Descriptor ¶
func (*MsgPlaceLimitOrderResponse) Descriptor() ([]byte, []int)
func (*MsgPlaceLimitOrderResponse) GetTrancheKey ¶
func (m *MsgPlaceLimitOrderResponse) GetTrancheKey() string
func (*MsgPlaceLimitOrderResponse) Marshal ¶
func (m *MsgPlaceLimitOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgPlaceLimitOrderResponse) MarshalTo ¶
func (m *MsgPlaceLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPlaceLimitOrderResponse) MarshalToSizedBuffer ¶
func (m *MsgPlaceLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPlaceLimitOrderResponse) ProtoMessage ¶
func (*MsgPlaceLimitOrderResponse) ProtoMessage()
func (*MsgPlaceLimitOrderResponse) Reset ¶
func (m *MsgPlaceLimitOrderResponse) Reset()
func (*MsgPlaceLimitOrderResponse) Size ¶
func (m *MsgPlaceLimitOrderResponse) Size() (n int)
func (*MsgPlaceLimitOrderResponse) String ¶
func (m *MsgPlaceLimitOrderResponse) String() string
func (*MsgPlaceLimitOrderResponse) Unmarshal ¶
func (m *MsgPlaceLimitOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgPlaceLimitOrderResponse) XXX_DiscardUnknown ¶
func (m *MsgPlaceLimitOrderResponse) XXX_DiscardUnknown()
func (*MsgPlaceLimitOrderResponse) XXX_Marshal ¶
func (m *MsgPlaceLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPlaceLimitOrderResponse) XXX_Merge ¶
func (m *MsgPlaceLimitOrderResponse) XXX_Merge(src proto.Message)
func (*MsgPlaceLimitOrderResponse) XXX_Size ¶
func (m *MsgPlaceLimitOrderResponse) XXX_Size() int
func (*MsgPlaceLimitOrderResponse) XXX_Unmarshal ¶
func (m *MsgPlaceLimitOrderResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { Deposit(context.Context, *MsgDeposit) (*MsgDepositResponse, error) Withdrawal(context.Context, *MsgWithdrawal) (*MsgWithdrawalResponse, error) PlaceLimitOrder(context.Context, *MsgPlaceLimitOrder) (*MsgPlaceLimitOrderResponse, error) WithdrawFilledLimitOrder(context.Context, *MsgWithdrawFilledLimitOrder) (*MsgWithdrawFilledLimitOrderResponse, error) CancelLimitOrder(context.Context, *MsgCancelLimitOrder) (*MsgCancelLimitOrderResponse, error) MultiHopSwap(context.Context, *MsgMultiHopSwap) (*MsgMultiHopSwapResponse, error) }
MsgServer is the server API for Msg service.
type MsgWithdrawFilledLimitOrder ¶
type MsgWithdrawFilledLimitOrder struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` TrancheKey string `protobuf:"bytes,2,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` }
func NewMsgWithdrawFilledLimitOrder ¶
func NewMsgWithdrawFilledLimitOrder(creator, trancheKey string) *MsgWithdrawFilledLimitOrder
func (*MsgWithdrawFilledLimitOrder) Descriptor ¶
func (*MsgWithdrawFilledLimitOrder) Descriptor() ([]byte, []int)
func (*MsgWithdrawFilledLimitOrder) GetCreator ¶
func (m *MsgWithdrawFilledLimitOrder) GetCreator() string
func (*MsgWithdrawFilledLimitOrder) GetSignBytes ¶
func (msg *MsgWithdrawFilledLimitOrder) GetSignBytes() []byte
func (*MsgWithdrawFilledLimitOrder) GetSigners ¶
func (msg *MsgWithdrawFilledLimitOrder) GetSigners() []sdk.AccAddress
func (*MsgWithdrawFilledLimitOrder) GetTrancheKey ¶
func (m *MsgWithdrawFilledLimitOrder) GetTrancheKey() string
func (*MsgWithdrawFilledLimitOrder) Marshal ¶
func (m *MsgWithdrawFilledLimitOrder) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawFilledLimitOrder) MarshalTo ¶
func (m *MsgWithdrawFilledLimitOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawFilledLimitOrder) MarshalToSizedBuffer ¶
func (m *MsgWithdrawFilledLimitOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawFilledLimitOrder) ProtoMessage ¶
func (*MsgWithdrawFilledLimitOrder) ProtoMessage()
func (*MsgWithdrawFilledLimitOrder) Reset ¶
func (m *MsgWithdrawFilledLimitOrder) Reset()
func (*MsgWithdrawFilledLimitOrder) Route ¶
func (msg *MsgWithdrawFilledLimitOrder) Route() string
func (*MsgWithdrawFilledLimitOrder) Size ¶
func (m *MsgWithdrawFilledLimitOrder) Size() (n int)
func (*MsgWithdrawFilledLimitOrder) String ¶
func (m *MsgWithdrawFilledLimitOrder) String() string
func (*MsgWithdrawFilledLimitOrder) Type ¶
func (msg *MsgWithdrawFilledLimitOrder) Type() string
func (*MsgWithdrawFilledLimitOrder) Unmarshal ¶
func (m *MsgWithdrawFilledLimitOrder) Unmarshal(dAtA []byte) error
func (*MsgWithdrawFilledLimitOrder) ValidateBasic ¶
func (msg *MsgWithdrawFilledLimitOrder) ValidateBasic() error
func (*MsgWithdrawFilledLimitOrder) XXX_DiscardUnknown ¶
func (m *MsgWithdrawFilledLimitOrder) XXX_DiscardUnknown()
func (*MsgWithdrawFilledLimitOrder) XXX_Marshal ¶
func (m *MsgWithdrawFilledLimitOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawFilledLimitOrder) XXX_Merge ¶
func (m *MsgWithdrawFilledLimitOrder) XXX_Merge(src proto.Message)
func (*MsgWithdrawFilledLimitOrder) XXX_Size ¶
func (m *MsgWithdrawFilledLimitOrder) XXX_Size() int
func (*MsgWithdrawFilledLimitOrder) XXX_Unmarshal ¶
func (m *MsgWithdrawFilledLimitOrder) XXX_Unmarshal(b []byte) error
type MsgWithdrawFilledLimitOrderResponse ¶
type MsgWithdrawFilledLimitOrderResponse struct { }
func (*MsgWithdrawFilledLimitOrderResponse) Descriptor ¶
func (*MsgWithdrawFilledLimitOrderResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawFilledLimitOrderResponse) Marshal ¶
func (m *MsgWithdrawFilledLimitOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawFilledLimitOrderResponse) MarshalTo ¶
func (m *MsgWithdrawFilledLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawFilledLimitOrderResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawFilledLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawFilledLimitOrderResponse) ProtoMessage ¶
func (*MsgWithdrawFilledLimitOrderResponse) ProtoMessage()
func (*MsgWithdrawFilledLimitOrderResponse) Reset ¶
func (m *MsgWithdrawFilledLimitOrderResponse) Reset()
func (*MsgWithdrawFilledLimitOrderResponse) Size ¶
func (m *MsgWithdrawFilledLimitOrderResponse) Size() (n int)
func (*MsgWithdrawFilledLimitOrderResponse) String ¶
func (m *MsgWithdrawFilledLimitOrderResponse) String() string
func (*MsgWithdrawFilledLimitOrderResponse) Unmarshal ¶
func (m *MsgWithdrawFilledLimitOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawFilledLimitOrderResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawFilledLimitOrderResponse) XXX_DiscardUnknown()
func (*MsgWithdrawFilledLimitOrderResponse) XXX_Marshal ¶
func (m *MsgWithdrawFilledLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawFilledLimitOrderResponse) XXX_Merge ¶
func (m *MsgWithdrawFilledLimitOrderResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawFilledLimitOrderResponse) XXX_Size ¶
func (m *MsgWithdrawFilledLimitOrderResponse) XXX_Size() int
func (*MsgWithdrawFilledLimitOrderResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawFilledLimitOrderResponse) XXX_Unmarshal(b []byte) error
type MsgWithdrawal ¶
type MsgWithdrawal struct { Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Receiver string `protobuf:"bytes,2,opt,name=receiver,proto3" json:"receiver,omitempty"` TokenA string `protobuf:"bytes,3,opt,name=tokenA,proto3" json:"tokenA,omitempty"` TokenB string `protobuf:"bytes,4,opt,name=tokenB,proto3" json:"tokenB,omitempty"` TickIndexesAToB []int64 `protobuf:"varint,6,rep,packed,name=tickIndexesAToB,proto3" json:"tickIndexesAToB,omitempty"` Fees []uint64 `protobuf:"varint,7,rep,packed,name=fees,proto3" json:"fees,omitempty"` }
func NewMsgWithdrawal ¶
func (*MsgWithdrawal) Descriptor ¶
func (*MsgWithdrawal) Descriptor() ([]byte, []int)
func (*MsgWithdrawal) GetCreator ¶
func (m *MsgWithdrawal) GetCreator() string
func (*MsgWithdrawal) GetFees ¶
func (m *MsgWithdrawal) GetFees() []uint64
func (*MsgWithdrawal) GetReceiver ¶
func (m *MsgWithdrawal) GetReceiver() string
func (*MsgWithdrawal) GetSignBytes ¶
func (msg *MsgWithdrawal) GetSignBytes() []byte
func (*MsgWithdrawal) GetSigners ¶
func (msg *MsgWithdrawal) GetSigners() []sdk.AccAddress
func (*MsgWithdrawal) GetTickIndexesAToB ¶
func (m *MsgWithdrawal) GetTickIndexesAToB() []int64
func (*MsgWithdrawal) GetTokenA ¶
func (m *MsgWithdrawal) GetTokenA() string
func (*MsgWithdrawal) GetTokenB ¶
func (m *MsgWithdrawal) GetTokenB() string
func (*MsgWithdrawal) Marshal ¶
func (m *MsgWithdrawal) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawal) MarshalToSizedBuffer ¶
func (m *MsgWithdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawal) ProtoMessage ¶
func (*MsgWithdrawal) ProtoMessage()
func (*MsgWithdrawal) Reset ¶
func (m *MsgWithdrawal) Reset()
func (*MsgWithdrawal) Route ¶
func (msg *MsgWithdrawal) Route() string
func (*MsgWithdrawal) Size ¶
func (m *MsgWithdrawal) Size() (n int)
func (*MsgWithdrawal) String ¶
func (m *MsgWithdrawal) String() string
func (*MsgWithdrawal) Type ¶
func (msg *MsgWithdrawal) Type() string
func (*MsgWithdrawal) Unmarshal ¶
func (m *MsgWithdrawal) Unmarshal(dAtA []byte) error
func (*MsgWithdrawal) ValidateBasic ¶
func (msg *MsgWithdrawal) ValidateBasic() error
func (*MsgWithdrawal) XXX_DiscardUnknown ¶
func (m *MsgWithdrawal) XXX_DiscardUnknown()
func (*MsgWithdrawal) XXX_Marshal ¶
func (m *MsgWithdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawal) XXX_Merge ¶
func (m *MsgWithdrawal) XXX_Merge(src proto.Message)
func (*MsgWithdrawal) XXX_Size ¶
func (m *MsgWithdrawal) XXX_Size() int
func (*MsgWithdrawal) XXX_Unmarshal ¶
func (m *MsgWithdrawal) XXX_Unmarshal(b []byte) error
type MsgWithdrawalResponse ¶
type MsgWithdrawalResponse struct { }
func (*MsgWithdrawalResponse) Descriptor ¶
func (*MsgWithdrawalResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawalResponse) Marshal ¶
func (m *MsgWithdrawalResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawalResponse) MarshalTo ¶
func (m *MsgWithdrawalResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawalResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawalResponse) ProtoMessage ¶
func (*MsgWithdrawalResponse) ProtoMessage()
func (*MsgWithdrawalResponse) Reset ¶
func (m *MsgWithdrawalResponse) Reset()
func (*MsgWithdrawalResponse) Size ¶
func (m *MsgWithdrawalResponse) Size() (n int)
func (*MsgWithdrawalResponse) String ¶
func (m *MsgWithdrawalResponse) String() string
func (*MsgWithdrawalResponse) Unmarshal ¶
func (m *MsgWithdrawalResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawalResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawalResponse) XXX_DiscardUnknown()
func (*MsgWithdrawalResponse) XXX_Marshal ¶
func (m *MsgWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawalResponse) XXX_Merge ¶
func (m *MsgWithdrawalResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawalResponse) XXX_Size ¶
func (m *MsgWithdrawalResponse) XXX_Size() int
func (*MsgWithdrawalResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawalResponse) XXX_Unmarshal(b []byte) error
type MultiHopRoute ¶
type MultiHopRoute struct {
Hops []string `protobuf:"bytes,1,rep,name=hops,proto3" json:"hops,omitempty"`
}
func (*MultiHopRoute) Descriptor ¶
func (*MultiHopRoute) Descriptor() ([]byte, []int)
func (*MultiHopRoute) GetHops ¶
func (m *MultiHopRoute) GetHops() []string
func (*MultiHopRoute) Marshal ¶
func (m *MultiHopRoute) Marshal() (dAtA []byte, err error)
func (*MultiHopRoute) MarshalToSizedBuffer ¶
func (m *MultiHopRoute) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MultiHopRoute) ProtoMessage ¶
func (*MultiHopRoute) ProtoMessage()
func (*MultiHopRoute) Reset ¶
func (m *MultiHopRoute) Reset()
func (*MultiHopRoute) Size ¶
func (m *MultiHopRoute) Size() (n int)
func (*MultiHopRoute) String ¶
func (m *MultiHopRoute) String() string
func (*MultiHopRoute) Unmarshal ¶
func (m *MultiHopRoute) Unmarshal(dAtA []byte) error
func (*MultiHopRoute) XXX_DiscardUnknown ¶
func (m *MultiHopRoute) XXX_DiscardUnknown()
func (*MultiHopRoute) XXX_Marshal ¶
func (m *MultiHopRoute) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MultiHopRoute) XXX_Merge ¶
func (m *MultiHopRoute) XXX_Merge(src proto.Message)
func (*MultiHopRoute) XXX_Size ¶
func (m *MultiHopRoute) XXX_Size() int
func (*MultiHopRoute) XXX_Unmarshal ¶
func (m *MultiHopRoute) XXX_Unmarshal(b []byte) error
type PairID ¶
type PairID struct { Token0 string `protobuf:"bytes,1,opt,name=token0,proto3" json:"token0,omitempty"` Token1 string `protobuf:"bytes,2,opt,name=token1,proto3" json:"token1,omitempty"` }
func MustNewPairID ¶ added in v0.3.4
func NewPairIDFromCanonicalString ¶ added in v0.3.4
func NewPairIDFromUnsorted ¶ added in v0.3.4
func (*PairID) CanonicalString ¶ added in v0.3.4
func (*PairID) Descriptor ¶
func (*PairID) MarshalToSizedBuffer ¶
func (*PairID) MustOppositeToken ¶
func (*PairID) MustTradePairIDFromMaker ¶ added in v0.3.4
func (p *PairID) MustTradePairIDFromMaker(maker string) *TradePairID
func (*PairID) MustTradePairIDFromTaker ¶ added in v0.3.4
func (p *PairID) MustTradePairIDFromTaker(taker string) *TradePairID
func (*PairID) OppositeToken ¶
func (*PairID) ProtoMessage ¶
func (*PairID) ProtoMessage()
func (*PairID) XXX_DiscardUnknown ¶
func (m *PairID) XXX_DiscardUnknown()
func (*PairID) XXX_Marshal ¶
func (*PairID) XXX_Unmarshal ¶
type Params ¶
type Params struct { }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Pool ¶ added in v0.3.4
type Pool struct { LowerTick0 *PoolReserves UpperTick1 *PoolReserves }
func (*Pool) CalcResidualSharesMinted ¶ added in v0.3.4
func (*Pool) CalcSharesMinted ¶ added in v0.3.4
func (*Pool) CenterTickIndex ¶ added in v0.3.4
func (*Pool) Deposit ¶ added in v0.3.4
func (p *Pool) Deposit( maxAmount0, maxAmount1, existingShares sdk.Int, autoswap bool, ) (inAmount0, inAmount1 sdk.Int, outShares sdk.Coin)
Mutates the Pool object and returns relevant change variables. Deposit is not committed until pool.save() is called or the underlying ticks are saved; this method does not use any keeper methods.
func (*Pool) GetDepositDenom ¶ added in v0.3.4
func (*Pool) GetLowerReserve0 ¶ added in v0.3.4
func (*Pool) GetUpperReserve1 ¶ added in v0.3.4
func (*Pool) MustCalcPrice1To0Center ¶ added in v0.3.4
func (*Pool) RedeemValue ¶ added in v0.3.4
type PoolLiquidity ¶ added in v0.3.4
type PoolLiquidity struct { TradePairID *TradePairID Pool *Pool }
func (*PoolLiquidity) Price ¶ added in v0.3.4
func (pl *PoolLiquidity) Price() sdk.Dec
type PoolReserves ¶
type PoolReserves struct { Key *PoolReservesKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` ReservesMakerDenom github_com_cosmos_cosmos_sdk_types.Int `` /* 155-byte string literal not displayed */ PriceTakerToMaker github_com_cosmos_cosmos_sdk_types.Dec `` /* 152-byte string literal not displayed */ PriceOppositeTakerToMaker github_com_cosmos_cosmos_sdk_types.Dec `` /* 176-byte string literal not displayed */ }
func MustNewPoolReserves ¶ added in v0.3.4
func MustNewPoolReserves( poolReservesID *PoolReservesKey, ) *PoolReserves
func NewPoolReserves ¶ added in v0.3.4
func NewPoolReserves( poolReservesID *PoolReservesKey, ) (*PoolReserves, error)
func NewPoolReservesFromCounterpart ¶ added in v0.3.4
func NewPoolReservesFromCounterpart( counterpart *PoolReserves, ) *PoolReserves
func (*PoolReserves) Descriptor ¶
func (*PoolReserves) Descriptor() ([]byte, []int)
func (*PoolReserves) GetKey ¶ added in v0.3.4
func (m *PoolReserves) GetKey() *PoolReservesKey
func (PoolReserves) HasToken ¶
func (p PoolReserves) HasToken() bool
func (*PoolReserves) Marshal ¶
func (m *PoolReserves) Marshal() (dAtA []byte, err error)
func (*PoolReserves) MarshalToSizedBuffer ¶
func (m *PoolReserves) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PoolReserves) ProtoMessage ¶
func (*PoolReserves) ProtoMessage()
func (*PoolReserves) Reset ¶
func (m *PoolReserves) Reset()
func (*PoolReserves) Size ¶
func (m *PoolReserves) Size() (n int)
func (*PoolReserves) String ¶
func (m *PoolReserves) String() string
func (*PoolReserves) Unmarshal ¶
func (m *PoolReserves) Unmarshal(dAtA []byte) error
func (*PoolReserves) XXX_DiscardUnknown ¶
func (m *PoolReserves) XXX_DiscardUnknown()
func (*PoolReserves) XXX_Marshal ¶
func (m *PoolReserves) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PoolReserves) XXX_Merge ¶
func (m *PoolReserves) XXX_Merge(src proto.Message)
func (*PoolReserves) XXX_Size ¶
func (m *PoolReserves) XXX_Size() int
func (*PoolReserves) XXX_Unmarshal ¶
func (m *PoolReserves) XXX_Unmarshal(b []byte) error
type PoolReservesKey ¶ added in v0.3.4
type PoolReservesKey struct { TradePairID *TradePairID `protobuf:"bytes,1,opt,name=tradePairID,proto3" json:"tradePairID,omitempty"` TickIndexTakerToMaker int64 `protobuf:"varint,2,opt,name=TickIndexTakerToMaker,proto3" json:"TickIndexTakerToMaker,omitempty"` Fee uint64 `protobuf:"varint,3,opt,name=Fee,proto3" json:"Fee,omitempty"` }
func (PoolReservesKey) Counterpart ¶ added in v0.3.4
func (p PoolReservesKey) Counterpart() *PoolReservesKey
func (*PoolReservesKey) Descriptor ¶ added in v0.3.4
func (*PoolReservesKey) Descriptor() ([]byte, []int)
func (*PoolReservesKey) GetFee ¶ added in v0.3.4
func (m *PoolReservesKey) GetFee() uint64
func (*PoolReservesKey) GetTickIndexTakerToMaker ¶ added in v0.3.4
func (m *PoolReservesKey) GetTickIndexTakerToMaker() int64
func (*PoolReservesKey) GetTradePairID ¶ added in v0.3.4
func (m *PoolReservesKey) GetTradePairID() *TradePairID
func (PoolReservesKey) KeyMarshal ¶ added in v0.3.4
func (p PoolReservesKey) KeyMarshal() []byte
func (PoolReservesKey) KeyUnmarshal ¶ added in v0.3.4
func (p PoolReservesKey) KeyUnmarshal(bz []byte) error
func (*PoolReservesKey) Marshal ¶ added in v0.3.4
func (m *PoolReservesKey) Marshal() (dAtA []byte, err error)
func (*PoolReservesKey) MarshalTo ¶ added in v0.3.4
func (m *PoolReservesKey) MarshalTo(dAtA []byte) (int, error)
func (*PoolReservesKey) MarshalToSizedBuffer ¶ added in v0.3.4
func (m *PoolReservesKey) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (PoolReservesKey) MustPriceTakerToMaker ¶ added in v0.3.4
func (p PoolReservesKey) MustPriceTakerToMaker() (priceTakerToMaker sdk.Dec)
func (PoolReservesKey) PriceTakerToMaker ¶ added in v0.3.4
func (p PoolReservesKey) PriceTakerToMaker() (priceTakerToMaker sdk.Dec, err error)
func (*PoolReservesKey) ProtoMessage ¶ added in v0.3.4
func (*PoolReservesKey) ProtoMessage()
func (*PoolReservesKey) Reset ¶ added in v0.3.4
func (m *PoolReservesKey) Reset()
func (*PoolReservesKey) Size ¶ added in v0.3.4
func (m *PoolReservesKey) Size() (n int)
func (*PoolReservesKey) String ¶ added in v0.3.4
func (m *PoolReservesKey) String() string
func (*PoolReservesKey) Unmarshal ¶ added in v0.3.4
func (m *PoolReservesKey) Unmarshal(dAtA []byte) error
func (*PoolReservesKey) XXX_DiscardUnknown ¶ added in v0.3.4
func (m *PoolReservesKey) XXX_DiscardUnknown()
func (*PoolReservesKey) XXX_Marshal ¶ added in v0.3.4
func (m *PoolReservesKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PoolReservesKey) XXX_Merge ¶ added in v0.3.4
func (m *PoolReservesKey) XXX_Merge(src proto.Message)
func (*PoolReservesKey) XXX_Size ¶ added in v0.3.4
func (m *PoolReservesKey) XXX_Size() int
func (*PoolReservesKey) XXX_Unmarshal ¶ added in v0.3.4
func (m *PoolReservesKey) XXX_Unmarshal(b []byte) error
type QueryAllInactiveLimitOrderTrancheRequest ¶
type QueryAllInactiveLimitOrderTrancheRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllInactiveLimitOrderTrancheRequest) Descriptor ¶
func (*QueryAllInactiveLimitOrderTrancheRequest) Descriptor() ([]byte, []int)
func (*QueryAllInactiveLimitOrderTrancheRequest) GetPagination ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) GetPagination() *query.PageRequest
func (*QueryAllInactiveLimitOrderTrancheRequest) Marshal ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllInactiveLimitOrderTrancheRequest) MarshalTo ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllInactiveLimitOrderTrancheRequest) MarshalToSizedBuffer ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllInactiveLimitOrderTrancheRequest) ProtoMessage ¶
func (*QueryAllInactiveLimitOrderTrancheRequest) ProtoMessage()
func (*QueryAllInactiveLimitOrderTrancheRequest) Reset ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) Reset()
func (*QueryAllInactiveLimitOrderTrancheRequest) Size ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) Size() (n int)
func (*QueryAllInactiveLimitOrderTrancheRequest) String ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) String() string
func (*QueryAllInactiveLimitOrderTrancheRequest) Unmarshal ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error
func (*QueryAllInactiveLimitOrderTrancheRequest) XXX_DiscardUnknown ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_DiscardUnknown()
func (*QueryAllInactiveLimitOrderTrancheRequest) XXX_Marshal ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllInactiveLimitOrderTrancheRequest) XXX_Merge ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_Merge(src proto.Message)
func (*QueryAllInactiveLimitOrderTrancheRequest) XXX_Size ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_Size() int
func (*QueryAllInactiveLimitOrderTrancheRequest) XXX_Unmarshal ¶
func (m *QueryAllInactiveLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error
type QueryAllInactiveLimitOrderTrancheResponse ¶
type QueryAllInactiveLimitOrderTrancheResponse struct { InactiveLimitOrderTranche []*LimitOrderTranche `protobuf:"bytes,1,rep,name=inactiveLimitOrderTranche,proto3" json:"inactiveLimitOrderTranche,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllInactiveLimitOrderTrancheResponse) Descriptor ¶
func (*QueryAllInactiveLimitOrderTrancheResponse) Descriptor() ([]byte, []int)
func (*QueryAllInactiveLimitOrderTrancheResponse) GetInactiveLimitOrderTranche ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) GetInactiveLimitOrderTranche() []*LimitOrderTranche
func (*QueryAllInactiveLimitOrderTrancheResponse) GetPagination ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) GetPagination() *query.PageResponse
func (*QueryAllInactiveLimitOrderTrancheResponse) Marshal ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllInactiveLimitOrderTrancheResponse) MarshalTo ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllInactiveLimitOrderTrancheResponse) MarshalToSizedBuffer ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllInactiveLimitOrderTrancheResponse) ProtoMessage ¶
func (*QueryAllInactiveLimitOrderTrancheResponse) ProtoMessage()
func (*QueryAllInactiveLimitOrderTrancheResponse) Reset ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) Reset()
func (*QueryAllInactiveLimitOrderTrancheResponse) Size ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) Size() (n int)
func (*QueryAllInactiveLimitOrderTrancheResponse) String ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) String() string
func (*QueryAllInactiveLimitOrderTrancheResponse) Unmarshal ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) Unmarshal(dAtA []byte) error
func (*QueryAllInactiveLimitOrderTrancheResponse) XXX_DiscardUnknown ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_DiscardUnknown()
func (*QueryAllInactiveLimitOrderTrancheResponse) XXX_Marshal ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllInactiveLimitOrderTrancheResponse) XXX_Merge ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_Merge(src proto.Message)
func (*QueryAllInactiveLimitOrderTrancheResponse) XXX_Size ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_Size() int
func (*QueryAllInactiveLimitOrderTrancheResponse) XXX_Unmarshal ¶
func (m *QueryAllInactiveLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error
type QueryAllLimitOrderTrancheRequest ¶
type QueryAllLimitOrderTrancheRequest struct { PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllLimitOrderTrancheRequest) Descriptor ¶
func (*QueryAllLimitOrderTrancheRequest) Descriptor() ([]byte, []int)
func (*QueryAllLimitOrderTrancheRequest) GetPagination ¶
func (m *QueryAllLimitOrderTrancheRequest) GetPagination() *query.PageRequest
func (*QueryAllLimitOrderTrancheRequest) GetPairID ¶
func (m *QueryAllLimitOrderTrancheRequest) GetPairID() string
func (*QueryAllLimitOrderTrancheRequest) GetTokenIn ¶
func (m *QueryAllLimitOrderTrancheRequest) GetTokenIn() string
func (*QueryAllLimitOrderTrancheRequest) Marshal ¶
func (m *QueryAllLimitOrderTrancheRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllLimitOrderTrancheRequest) MarshalTo ¶
func (m *QueryAllLimitOrderTrancheRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllLimitOrderTrancheRequest) MarshalToSizedBuffer ¶
func (m *QueryAllLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllLimitOrderTrancheRequest) ProtoMessage ¶
func (*QueryAllLimitOrderTrancheRequest) ProtoMessage()
func (*QueryAllLimitOrderTrancheRequest) Reset ¶
func (m *QueryAllLimitOrderTrancheRequest) Reset()
func (*QueryAllLimitOrderTrancheRequest) Size ¶
func (m *QueryAllLimitOrderTrancheRequest) Size() (n int)
func (*QueryAllLimitOrderTrancheRequest) String ¶
func (m *QueryAllLimitOrderTrancheRequest) String() string
func (*QueryAllLimitOrderTrancheRequest) Unmarshal ¶
func (m *QueryAllLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error
func (*QueryAllLimitOrderTrancheRequest) XXX_DiscardUnknown ¶
func (m *QueryAllLimitOrderTrancheRequest) XXX_DiscardUnknown()
func (*QueryAllLimitOrderTrancheRequest) XXX_Marshal ¶
func (m *QueryAllLimitOrderTrancheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllLimitOrderTrancheRequest) XXX_Merge ¶
func (m *QueryAllLimitOrderTrancheRequest) XXX_Merge(src proto.Message)
func (*QueryAllLimitOrderTrancheRequest) XXX_Size ¶
func (m *QueryAllLimitOrderTrancheRequest) XXX_Size() int
func (*QueryAllLimitOrderTrancheRequest) XXX_Unmarshal ¶
func (m *QueryAllLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error
type QueryAllLimitOrderTrancheResponse ¶
type QueryAllLimitOrderTrancheResponse struct { LimitOrderTranche []*LimitOrderTranche `protobuf:"bytes,1,rep,name=LimitOrderTranche,proto3" json:"LimitOrderTranche,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllLimitOrderTrancheResponse) Descriptor ¶
func (*QueryAllLimitOrderTrancheResponse) Descriptor() ([]byte, []int)
func (*QueryAllLimitOrderTrancheResponse) GetLimitOrderTranche ¶
func (m *QueryAllLimitOrderTrancheResponse) GetLimitOrderTranche() []*LimitOrderTranche
func (*QueryAllLimitOrderTrancheResponse) GetPagination ¶
func (m *QueryAllLimitOrderTrancheResponse) GetPagination() *query.PageResponse
func (*QueryAllLimitOrderTrancheResponse) Marshal ¶
func (m *QueryAllLimitOrderTrancheResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllLimitOrderTrancheResponse) MarshalTo ¶
func (m *QueryAllLimitOrderTrancheResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllLimitOrderTrancheResponse) MarshalToSizedBuffer ¶
func (m *QueryAllLimitOrderTrancheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllLimitOrderTrancheResponse) ProtoMessage ¶
func (*QueryAllLimitOrderTrancheResponse) ProtoMessage()
func (*QueryAllLimitOrderTrancheResponse) Reset ¶
func (m *QueryAllLimitOrderTrancheResponse) Reset()
func (*QueryAllLimitOrderTrancheResponse) Size ¶
func (m *QueryAllLimitOrderTrancheResponse) Size() (n int)
func (*QueryAllLimitOrderTrancheResponse) String ¶
func (m *QueryAllLimitOrderTrancheResponse) String() string
func (*QueryAllLimitOrderTrancheResponse) Unmarshal ¶
func (m *QueryAllLimitOrderTrancheResponse) Unmarshal(dAtA []byte) error
func (*QueryAllLimitOrderTrancheResponse) XXX_DiscardUnknown ¶
func (m *QueryAllLimitOrderTrancheResponse) XXX_DiscardUnknown()
func (*QueryAllLimitOrderTrancheResponse) XXX_Marshal ¶
func (m *QueryAllLimitOrderTrancheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllLimitOrderTrancheResponse) XXX_Merge ¶
func (m *QueryAllLimitOrderTrancheResponse) XXX_Merge(src proto.Message)
func (*QueryAllLimitOrderTrancheResponse) XXX_Size ¶
func (m *QueryAllLimitOrderTrancheResponse) XXX_Size() int
func (*QueryAllLimitOrderTrancheResponse) XXX_Unmarshal ¶
func (m *QueryAllLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error
type QueryAllLimitOrderTrancheUserRequest ¶
type QueryAllLimitOrderTrancheUserRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllLimitOrderTrancheUserRequest) Descriptor ¶
func (*QueryAllLimitOrderTrancheUserRequest) Descriptor() ([]byte, []int)
func (*QueryAllLimitOrderTrancheUserRequest) GetPagination ¶
func (m *QueryAllLimitOrderTrancheUserRequest) GetPagination() *query.PageRequest
func (*QueryAllLimitOrderTrancheUserRequest) Marshal ¶
func (m *QueryAllLimitOrderTrancheUserRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllLimitOrderTrancheUserRequest) MarshalTo ¶
func (m *QueryAllLimitOrderTrancheUserRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllLimitOrderTrancheUserRequest) MarshalToSizedBuffer ¶
func (m *QueryAllLimitOrderTrancheUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllLimitOrderTrancheUserRequest) ProtoMessage ¶
func (*QueryAllLimitOrderTrancheUserRequest) ProtoMessage()
func (*QueryAllLimitOrderTrancheUserRequest) Reset ¶
func (m *QueryAllLimitOrderTrancheUserRequest) Reset()
func (*QueryAllLimitOrderTrancheUserRequest) Size ¶
func (m *QueryAllLimitOrderTrancheUserRequest) Size() (n int)
func (*QueryAllLimitOrderTrancheUserRequest) String ¶
func (m *QueryAllLimitOrderTrancheUserRequest) String() string
func (*QueryAllLimitOrderTrancheUserRequest) Unmarshal ¶
func (m *QueryAllLimitOrderTrancheUserRequest) Unmarshal(dAtA []byte) error
func (*QueryAllLimitOrderTrancheUserRequest) XXX_DiscardUnknown ¶
func (m *QueryAllLimitOrderTrancheUserRequest) XXX_DiscardUnknown()
func (*QueryAllLimitOrderTrancheUserRequest) XXX_Marshal ¶
func (m *QueryAllLimitOrderTrancheUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllLimitOrderTrancheUserRequest) XXX_Merge ¶
func (m *QueryAllLimitOrderTrancheUserRequest) XXX_Merge(src proto.Message)
func (*QueryAllLimitOrderTrancheUserRequest) XXX_Size ¶
func (m *QueryAllLimitOrderTrancheUserRequest) XXX_Size() int
func (*QueryAllLimitOrderTrancheUserRequest) XXX_Unmarshal ¶
func (m *QueryAllLimitOrderTrancheUserRequest) XXX_Unmarshal(b []byte) error
type QueryAllLimitOrderTrancheUserResponse ¶
type QueryAllLimitOrderTrancheUserResponse struct { LimitOrderTrancheUser []*LimitOrderTrancheUser `protobuf:"bytes,1,rep,name=LimitOrderTrancheUser,proto3" json:"LimitOrderTrancheUser,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllLimitOrderTrancheUserResponse) Descriptor ¶
func (*QueryAllLimitOrderTrancheUserResponse) Descriptor() ([]byte, []int)
func (*QueryAllLimitOrderTrancheUserResponse) GetLimitOrderTrancheUser ¶
func (m *QueryAllLimitOrderTrancheUserResponse) GetLimitOrderTrancheUser() []*LimitOrderTrancheUser
func (*QueryAllLimitOrderTrancheUserResponse) GetPagination ¶
func (m *QueryAllLimitOrderTrancheUserResponse) GetPagination() *query.PageResponse
func (*QueryAllLimitOrderTrancheUserResponse) Marshal ¶
func (m *QueryAllLimitOrderTrancheUserResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllLimitOrderTrancheUserResponse) MarshalTo ¶
func (m *QueryAllLimitOrderTrancheUserResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllLimitOrderTrancheUserResponse) MarshalToSizedBuffer ¶
func (m *QueryAllLimitOrderTrancheUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllLimitOrderTrancheUserResponse) ProtoMessage ¶
func (*QueryAllLimitOrderTrancheUserResponse) ProtoMessage()
func (*QueryAllLimitOrderTrancheUserResponse) Reset ¶
func (m *QueryAllLimitOrderTrancheUserResponse) Reset()
func (*QueryAllLimitOrderTrancheUserResponse) Size ¶
func (m *QueryAllLimitOrderTrancheUserResponse) Size() (n int)
func (*QueryAllLimitOrderTrancheUserResponse) String ¶
func (m *QueryAllLimitOrderTrancheUserResponse) String() string
func (*QueryAllLimitOrderTrancheUserResponse) Unmarshal ¶
func (m *QueryAllLimitOrderTrancheUserResponse) Unmarshal(dAtA []byte) error
func (*QueryAllLimitOrderTrancheUserResponse) XXX_DiscardUnknown ¶
func (m *QueryAllLimitOrderTrancheUserResponse) XXX_DiscardUnknown()
func (*QueryAllLimitOrderTrancheUserResponse) XXX_Marshal ¶
func (m *QueryAllLimitOrderTrancheUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllLimitOrderTrancheUserResponse) XXX_Merge ¶
func (m *QueryAllLimitOrderTrancheUserResponse) XXX_Merge(src proto.Message)
func (*QueryAllLimitOrderTrancheUserResponse) XXX_Size ¶
func (m *QueryAllLimitOrderTrancheUserResponse) XXX_Size() int
func (*QueryAllLimitOrderTrancheUserResponse) XXX_Unmarshal ¶
func (m *QueryAllLimitOrderTrancheUserResponse) XXX_Unmarshal(b []byte) error
type QueryAllPoolReservesRequest ¶
type QueryAllPoolReservesRequest struct { PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllPoolReservesRequest) Descriptor ¶
func (*QueryAllPoolReservesRequest) Descriptor() ([]byte, []int)
func (*QueryAllPoolReservesRequest) GetPagination ¶
func (m *QueryAllPoolReservesRequest) GetPagination() *query.PageRequest
func (*QueryAllPoolReservesRequest) GetPairID ¶
func (m *QueryAllPoolReservesRequest) GetPairID() string
func (*QueryAllPoolReservesRequest) GetTokenIn ¶
func (m *QueryAllPoolReservesRequest) GetTokenIn() string
func (*QueryAllPoolReservesRequest) Marshal ¶
func (m *QueryAllPoolReservesRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllPoolReservesRequest) MarshalTo ¶
func (m *QueryAllPoolReservesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllPoolReservesRequest) MarshalToSizedBuffer ¶
func (m *QueryAllPoolReservesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllPoolReservesRequest) ProtoMessage ¶
func (*QueryAllPoolReservesRequest) ProtoMessage()
func (*QueryAllPoolReservesRequest) Reset ¶
func (m *QueryAllPoolReservesRequest) Reset()
func (*QueryAllPoolReservesRequest) Size ¶
func (m *QueryAllPoolReservesRequest) Size() (n int)
func (*QueryAllPoolReservesRequest) String ¶
func (m *QueryAllPoolReservesRequest) String() string
func (*QueryAllPoolReservesRequest) Unmarshal ¶
func (m *QueryAllPoolReservesRequest) Unmarshal(dAtA []byte) error
func (*QueryAllPoolReservesRequest) XXX_DiscardUnknown ¶
func (m *QueryAllPoolReservesRequest) XXX_DiscardUnknown()
func (*QueryAllPoolReservesRequest) XXX_Marshal ¶
func (m *QueryAllPoolReservesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllPoolReservesRequest) XXX_Merge ¶
func (m *QueryAllPoolReservesRequest) XXX_Merge(src proto.Message)
func (*QueryAllPoolReservesRequest) XXX_Size ¶
func (m *QueryAllPoolReservesRequest) XXX_Size() int
func (*QueryAllPoolReservesRequest) XXX_Unmarshal ¶
func (m *QueryAllPoolReservesRequest) XXX_Unmarshal(b []byte) error
type QueryAllPoolReservesResponse ¶
type QueryAllPoolReservesResponse struct { PoolReserves []*PoolReserves `protobuf:"bytes,1,rep,name=poolReserves,proto3" json:"poolReserves,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllPoolReservesResponse) Descriptor ¶
func (*QueryAllPoolReservesResponse) Descriptor() ([]byte, []int)
func (*QueryAllPoolReservesResponse) GetPagination ¶
func (m *QueryAllPoolReservesResponse) GetPagination() *query.PageResponse
func (*QueryAllPoolReservesResponse) GetPoolReserves ¶
func (m *QueryAllPoolReservesResponse) GetPoolReserves() []*PoolReserves
func (*QueryAllPoolReservesResponse) Marshal ¶
func (m *QueryAllPoolReservesResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllPoolReservesResponse) MarshalTo ¶
func (m *QueryAllPoolReservesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllPoolReservesResponse) MarshalToSizedBuffer ¶
func (m *QueryAllPoolReservesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllPoolReservesResponse) ProtoMessage ¶
func (*QueryAllPoolReservesResponse) ProtoMessage()
func (*QueryAllPoolReservesResponse) Reset ¶
func (m *QueryAllPoolReservesResponse) Reset()
func (*QueryAllPoolReservesResponse) Size ¶
func (m *QueryAllPoolReservesResponse) Size() (n int)
func (*QueryAllPoolReservesResponse) String ¶
func (m *QueryAllPoolReservesResponse) String() string
func (*QueryAllPoolReservesResponse) Unmarshal ¶
func (m *QueryAllPoolReservesResponse) Unmarshal(dAtA []byte) error
func (*QueryAllPoolReservesResponse) XXX_DiscardUnknown ¶
func (m *QueryAllPoolReservesResponse) XXX_DiscardUnknown()
func (*QueryAllPoolReservesResponse) XXX_Marshal ¶
func (m *QueryAllPoolReservesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllPoolReservesResponse) XXX_Merge ¶
func (m *QueryAllPoolReservesResponse) XXX_Merge(src proto.Message)
func (*QueryAllPoolReservesResponse) XXX_Size ¶
func (m *QueryAllPoolReservesResponse) XXX_Size() int
func (*QueryAllPoolReservesResponse) XXX_Unmarshal ¶
func (m *QueryAllPoolReservesResponse) XXX_Unmarshal(b []byte) error
type QueryAllTickLiquidityRequest ¶
type QueryAllTickLiquidityRequest struct { PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` Pagination *query.PageRequest `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllTickLiquidityRequest) Descriptor ¶
func (*QueryAllTickLiquidityRequest) Descriptor() ([]byte, []int)
func (*QueryAllTickLiquidityRequest) GetPagination ¶
func (m *QueryAllTickLiquidityRequest) GetPagination() *query.PageRequest
func (*QueryAllTickLiquidityRequest) GetPairID ¶
func (m *QueryAllTickLiquidityRequest) GetPairID() string
func (*QueryAllTickLiquidityRequest) GetTokenIn ¶
func (m *QueryAllTickLiquidityRequest) GetTokenIn() string
func (*QueryAllTickLiquidityRequest) Marshal ¶
func (m *QueryAllTickLiquidityRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllTickLiquidityRequest) MarshalTo ¶
func (m *QueryAllTickLiquidityRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllTickLiquidityRequest) MarshalToSizedBuffer ¶
func (m *QueryAllTickLiquidityRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllTickLiquidityRequest) ProtoMessage ¶
func (*QueryAllTickLiquidityRequest) ProtoMessage()
func (*QueryAllTickLiquidityRequest) Reset ¶
func (m *QueryAllTickLiquidityRequest) Reset()
func (*QueryAllTickLiquidityRequest) Size ¶
func (m *QueryAllTickLiquidityRequest) Size() (n int)
func (*QueryAllTickLiquidityRequest) String ¶
func (m *QueryAllTickLiquidityRequest) String() string
func (*QueryAllTickLiquidityRequest) Unmarshal ¶
func (m *QueryAllTickLiquidityRequest) Unmarshal(dAtA []byte) error
func (*QueryAllTickLiquidityRequest) XXX_DiscardUnknown ¶
func (m *QueryAllTickLiquidityRequest) XXX_DiscardUnknown()
func (*QueryAllTickLiquidityRequest) XXX_Marshal ¶
func (m *QueryAllTickLiquidityRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllTickLiquidityRequest) XXX_Merge ¶
func (m *QueryAllTickLiquidityRequest) XXX_Merge(src proto.Message)
func (*QueryAllTickLiquidityRequest) XXX_Size ¶
func (m *QueryAllTickLiquidityRequest) XXX_Size() int
func (*QueryAllTickLiquidityRequest) XXX_Unmarshal ¶
func (m *QueryAllTickLiquidityRequest) XXX_Unmarshal(b []byte) error
type QueryAllTickLiquidityResponse ¶
type QueryAllTickLiquidityResponse struct { TickLiquidity []*TickLiquidity `protobuf:"bytes,1,rep,name=tickLiquidity,proto3" json:"tickLiquidity,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllTickLiquidityResponse) Descriptor ¶
func (*QueryAllTickLiquidityResponse) Descriptor() ([]byte, []int)
func (*QueryAllTickLiquidityResponse) GetPagination ¶
func (m *QueryAllTickLiquidityResponse) GetPagination() *query.PageResponse
func (*QueryAllTickLiquidityResponse) GetTickLiquidity ¶
func (m *QueryAllTickLiquidityResponse) GetTickLiquidity() []*TickLiquidity
func (*QueryAllTickLiquidityResponse) Marshal ¶
func (m *QueryAllTickLiquidityResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllTickLiquidityResponse) MarshalTo ¶
func (m *QueryAllTickLiquidityResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllTickLiquidityResponse) MarshalToSizedBuffer ¶
func (m *QueryAllTickLiquidityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllTickLiquidityResponse) ProtoMessage ¶
func (*QueryAllTickLiquidityResponse) ProtoMessage()
func (*QueryAllTickLiquidityResponse) Reset ¶
func (m *QueryAllTickLiquidityResponse) Reset()
func (*QueryAllTickLiquidityResponse) Size ¶
func (m *QueryAllTickLiquidityResponse) Size() (n int)
func (*QueryAllTickLiquidityResponse) String ¶
func (m *QueryAllTickLiquidityResponse) String() string
func (*QueryAllTickLiquidityResponse) Unmarshal ¶
func (m *QueryAllTickLiquidityResponse) Unmarshal(dAtA []byte) error
func (*QueryAllTickLiquidityResponse) XXX_DiscardUnknown ¶
func (m *QueryAllTickLiquidityResponse) XXX_DiscardUnknown()
func (*QueryAllTickLiquidityResponse) XXX_Marshal ¶
func (m *QueryAllTickLiquidityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllTickLiquidityResponse) XXX_Merge ¶
func (m *QueryAllTickLiquidityResponse) XXX_Merge(src proto.Message)
func (*QueryAllTickLiquidityResponse) XXX_Size ¶
func (m *QueryAllTickLiquidityResponse) XXX_Size() int
func (*QueryAllTickLiquidityResponse) XXX_Unmarshal ¶
func (m *QueryAllTickLiquidityResponse) XXX_Unmarshal(b []byte) error
type QueryAllUserDepositsRequest ¶
type QueryAllUserDepositsRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*QueryAllUserDepositsRequest) Descriptor ¶
func (*QueryAllUserDepositsRequest) Descriptor() ([]byte, []int)
func (*QueryAllUserDepositsRequest) GetAddress ¶
func (m *QueryAllUserDepositsRequest) GetAddress() string
func (*QueryAllUserDepositsRequest) Marshal ¶
func (m *QueryAllUserDepositsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllUserDepositsRequest) MarshalTo ¶
func (m *QueryAllUserDepositsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllUserDepositsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllUserDepositsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllUserDepositsRequest) ProtoMessage ¶
func (*QueryAllUserDepositsRequest) ProtoMessage()
func (*QueryAllUserDepositsRequest) Reset ¶
func (m *QueryAllUserDepositsRequest) Reset()
func (*QueryAllUserDepositsRequest) Size ¶
func (m *QueryAllUserDepositsRequest) Size() (n int)
func (*QueryAllUserDepositsRequest) String ¶
func (m *QueryAllUserDepositsRequest) String() string
func (*QueryAllUserDepositsRequest) Unmarshal ¶
func (m *QueryAllUserDepositsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllUserDepositsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllUserDepositsRequest) XXX_DiscardUnknown()
func (*QueryAllUserDepositsRequest) XXX_Marshal ¶
func (m *QueryAllUserDepositsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllUserDepositsRequest) XXX_Merge ¶
func (m *QueryAllUserDepositsRequest) XXX_Merge(src proto.Message)
func (*QueryAllUserDepositsRequest) XXX_Size ¶
func (m *QueryAllUserDepositsRequest) XXX_Size() int
func (*QueryAllUserDepositsRequest) XXX_Unmarshal ¶
func (m *QueryAllUserDepositsRequest) XXX_Unmarshal(b []byte) error
type QueryAllUserDepositsResponse ¶
type QueryAllUserDepositsResponse struct {
Deposits []*DepositRecord `protobuf:"bytes,1,rep,name=Deposits,proto3" json:"Deposits,omitempty"`
}
func (*QueryAllUserDepositsResponse) Descriptor ¶
func (*QueryAllUserDepositsResponse) Descriptor() ([]byte, []int)
func (*QueryAllUserDepositsResponse) GetDeposits ¶
func (m *QueryAllUserDepositsResponse) GetDeposits() []*DepositRecord
func (*QueryAllUserDepositsResponse) Marshal ¶
func (m *QueryAllUserDepositsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllUserDepositsResponse) MarshalTo ¶
func (m *QueryAllUserDepositsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllUserDepositsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllUserDepositsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllUserDepositsResponse) ProtoMessage ¶
func (*QueryAllUserDepositsResponse) ProtoMessage()
func (*QueryAllUserDepositsResponse) Reset ¶
func (m *QueryAllUserDepositsResponse) Reset()
func (*QueryAllUserDepositsResponse) Size ¶
func (m *QueryAllUserDepositsResponse) Size() (n int)
func (*QueryAllUserDepositsResponse) String ¶
func (m *QueryAllUserDepositsResponse) String() string
func (*QueryAllUserDepositsResponse) Unmarshal ¶
func (m *QueryAllUserDepositsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllUserDepositsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllUserDepositsResponse) XXX_DiscardUnknown()
func (*QueryAllUserDepositsResponse) XXX_Marshal ¶
func (m *QueryAllUserDepositsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllUserDepositsResponse) XXX_Merge ¶
func (m *QueryAllUserDepositsResponse) XXX_Merge(src proto.Message)
func (*QueryAllUserDepositsResponse) XXX_Size ¶
func (m *QueryAllUserDepositsResponse) XXX_Size() int
func (*QueryAllUserDepositsResponse) XXX_Unmarshal ¶
func (m *QueryAllUserDepositsResponse) XXX_Unmarshal(b []byte) error
type QueryAllUserLimitOrdersRequest ¶
type QueryAllUserLimitOrdersRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*QueryAllUserLimitOrdersRequest) Descriptor ¶
func (*QueryAllUserLimitOrdersRequest) Descriptor() ([]byte, []int)
func (*QueryAllUserLimitOrdersRequest) GetAddress ¶
func (m *QueryAllUserLimitOrdersRequest) GetAddress() string
func (*QueryAllUserLimitOrdersRequest) Marshal ¶
func (m *QueryAllUserLimitOrdersRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllUserLimitOrdersRequest) MarshalTo ¶
func (m *QueryAllUserLimitOrdersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllUserLimitOrdersRequest) MarshalToSizedBuffer ¶
func (m *QueryAllUserLimitOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllUserLimitOrdersRequest) ProtoMessage ¶
func (*QueryAllUserLimitOrdersRequest) ProtoMessage()
func (*QueryAllUserLimitOrdersRequest) Reset ¶
func (m *QueryAllUserLimitOrdersRequest) Reset()
func (*QueryAllUserLimitOrdersRequest) Size ¶
func (m *QueryAllUserLimitOrdersRequest) Size() (n int)
func (*QueryAllUserLimitOrdersRequest) String ¶
func (m *QueryAllUserLimitOrdersRequest) String() string
func (*QueryAllUserLimitOrdersRequest) Unmarshal ¶
func (m *QueryAllUserLimitOrdersRequest) Unmarshal(dAtA []byte) error
func (*QueryAllUserLimitOrdersRequest) XXX_DiscardUnknown ¶
func (m *QueryAllUserLimitOrdersRequest) XXX_DiscardUnknown()
func (*QueryAllUserLimitOrdersRequest) XXX_Marshal ¶
func (m *QueryAllUserLimitOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllUserLimitOrdersRequest) XXX_Merge ¶
func (m *QueryAllUserLimitOrdersRequest) XXX_Merge(src proto.Message)
func (*QueryAllUserLimitOrdersRequest) XXX_Size ¶
func (m *QueryAllUserLimitOrdersRequest) XXX_Size() int
func (*QueryAllUserLimitOrdersRequest) XXX_Unmarshal ¶
func (m *QueryAllUserLimitOrdersRequest) XXX_Unmarshal(b []byte) error
type QueryAllUserLimitOrdersResponse ¶
type QueryAllUserLimitOrdersResponse struct {
LimitOrders []*LimitOrderTrancheUser `protobuf:"bytes,1,rep,name=limitOrders,proto3" json:"limitOrders,omitempty"`
}
func (*QueryAllUserLimitOrdersResponse) Descriptor ¶
func (*QueryAllUserLimitOrdersResponse) Descriptor() ([]byte, []int)
func (*QueryAllUserLimitOrdersResponse) GetLimitOrders ¶
func (m *QueryAllUserLimitOrdersResponse) GetLimitOrders() []*LimitOrderTrancheUser
func (*QueryAllUserLimitOrdersResponse) Marshal ¶
func (m *QueryAllUserLimitOrdersResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllUserLimitOrdersResponse) MarshalTo ¶
func (m *QueryAllUserLimitOrdersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllUserLimitOrdersResponse) MarshalToSizedBuffer ¶
func (m *QueryAllUserLimitOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllUserLimitOrdersResponse) ProtoMessage ¶
func (*QueryAllUserLimitOrdersResponse) ProtoMessage()
func (*QueryAllUserLimitOrdersResponse) Reset ¶
func (m *QueryAllUserLimitOrdersResponse) Reset()
func (*QueryAllUserLimitOrdersResponse) Size ¶
func (m *QueryAllUserLimitOrdersResponse) Size() (n int)
func (*QueryAllUserLimitOrdersResponse) String ¶
func (m *QueryAllUserLimitOrdersResponse) String() string
func (*QueryAllUserLimitOrdersResponse) Unmarshal ¶
func (m *QueryAllUserLimitOrdersResponse) Unmarshal(dAtA []byte) error
func (*QueryAllUserLimitOrdersResponse) XXX_DiscardUnknown ¶
func (m *QueryAllUserLimitOrdersResponse) XXX_DiscardUnknown()
func (*QueryAllUserLimitOrdersResponse) XXX_Marshal ¶
func (m *QueryAllUserLimitOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllUserLimitOrdersResponse) XXX_Merge ¶
func (m *QueryAllUserLimitOrdersResponse) XXX_Merge(src proto.Message)
func (*QueryAllUserLimitOrdersResponse) XXX_Size ¶
func (m *QueryAllUserLimitOrdersResponse) XXX_Size() int
func (*QueryAllUserLimitOrdersResponse) XXX_Unmarshal ¶
func (m *QueryAllUserLimitOrdersResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Queries a LimitOrderTrancheUser by index. LimitOrderTrancheUser(ctx context.Context, in *QueryGetLimitOrderTrancheUserRequest, opts ...grpc.CallOption) (*QueryGetLimitOrderTrancheUserResponse, error) // Queries a list of LimitOrderTrancheMap items. LimitOrderTrancheUserAll(ctx context.Context, in *QueryAllLimitOrderTrancheUserRequest, opts ...grpc.CallOption) (*QueryAllLimitOrderTrancheUserResponse, error) // Queries a LimitOrderTranche by index. LimitOrderTranche(ctx context.Context, in *QueryGetLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryGetLimitOrderTrancheResponse, error) // Queries a list of LimitOrderTranche items for a given pairID / TokenIn combination. LimitOrderTrancheAll(ctx context.Context, in *QueryAllLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryAllLimitOrderTrancheResponse, error) // Queries a list of GetUserPositions items. GetUserPositions(ctx context.Context, in *QueryGetUserPositionsRequest, opts ...grpc.CallOption) (*QueryGetUserPositionsResponse, error) // Queries a list of UserDeposits items. UserDepositsAll(ctx context.Context, in *QueryAllUserDepositsRequest, opts ...grpc.CallOption) (*QueryAllUserDepositsResponse, error) // Queries a list of UserLimitOrders items. UserLimitOrdersAll(ctx context.Context, in *QueryAllUserLimitOrdersRequest, opts ...grpc.CallOption) (*QueryAllUserLimitOrdersResponse, error) // Queries a list of TickLiquidity items. TickLiquidityAll(ctx context.Context, in *QueryAllTickLiquidityRequest, opts ...grpc.CallOption) (*QueryAllTickLiquidityResponse, error) // Queries a InactiveLimitOrderTranche by index. InactiveLimitOrderTranche(ctx context.Context, in *QueryGetInactiveLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryGetInactiveLimitOrderTrancheResponse, error) // Queries a list of InactiveLimitOrderTranche items. InactiveLimitOrderTrancheAll(ctx context.Context, in *QueryAllInactiveLimitOrderTrancheRequest, opts ...grpc.CallOption) (*QueryAllInactiveLimitOrderTrancheResponse, error) // Queries a list of PoolReserves items. PoolReservesAll(ctx context.Context, in *QueryAllPoolReservesRequest, opts ...grpc.CallOption) (*QueryAllPoolReservesResponse, error) // Queries a PoolReserve by index PoolReserves(ctx context.Context, in *QueryGetPoolReservesRequest, opts ...grpc.CallOption) (*QueryGetPoolReservesResponse, 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 QueryGetInactiveLimitOrderTrancheRequest ¶
type QueryGetInactiveLimitOrderTrancheRequest struct { PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` TickIndex int64 `protobuf:"varint,3,opt,name=tickIndex,proto3" json:"tickIndex,omitempty"` TrancheKey string `protobuf:"bytes,4,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` }
func (*QueryGetInactiveLimitOrderTrancheRequest) Descriptor ¶
func (*QueryGetInactiveLimitOrderTrancheRequest) Descriptor() ([]byte, []int)
func (*QueryGetInactiveLimitOrderTrancheRequest) GetPairID ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) GetPairID() string
func (*QueryGetInactiveLimitOrderTrancheRequest) GetTickIndex ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) GetTickIndex() int64
func (*QueryGetInactiveLimitOrderTrancheRequest) GetTokenIn ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) GetTokenIn() string
func (*QueryGetInactiveLimitOrderTrancheRequest) GetTrancheKey ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) GetTrancheKey() string
func (*QueryGetInactiveLimitOrderTrancheRequest) Marshal ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetInactiveLimitOrderTrancheRequest) MarshalTo ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetInactiveLimitOrderTrancheRequest) MarshalToSizedBuffer ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetInactiveLimitOrderTrancheRequest) ProtoMessage ¶
func (*QueryGetInactiveLimitOrderTrancheRequest) ProtoMessage()
func (*QueryGetInactiveLimitOrderTrancheRequest) Reset ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) Reset()
func (*QueryGetInactiveLimitOrderTrancheRequest) Size ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) Size() (n int)
func (*QueryGetInactiveLimitOrderTrancheRequest) String ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) String() string
func (*QueryGetInactiveLimitOrderTrancheRequest) Unmarshal ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error
func (*QueryGetInactiveLimitOrderTrancheRequest) XXX_DiscardUnknown ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_DiscardUnknown()
func (*QueryGetInactiveLimitOrderTrancheRequest) XXX_Marshal ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetInactiveLimitOrderTrancheRequest) XXX_Merge ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_Merge(src proto.Message)
func (*QueryGetInactiveLimitOrderTrancheRequest) XXX_Size ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_Size() int
func (*QueryGetInactiveLimitOrderTrancheRequest) XXX_Unmarshal ¶
func (m *QueryGetInactiveLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error
type QueryGetInactiveLimitOrderTrancheResponse ¶
type QueryGetInactiveLimitOrderTrancheResponse struct {
InactiveLimitOrderTranche *LimitOrderTranche `protobuf:"bytes,1,opt,name=inactiveLimitOrderTranche,proto3" json:"inactiveLimitOrderTranche,omitempty"`
}
func (*QueryGetInactiveLimitOrderTrancheResponse) Descriptor ¶
func (*QueryGetInactiveLimitOrderTrancheResponse) Descriptor() ([]byte, []int)
func (*QueryGetInactiveLimitOrderTrancheResponse) GetInactiveLimitOrderTranche ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) GetInactiveLimitOrderTranche() *LimitOrderTranche
func (*QueryGetInactiveLimitOrderTrancheResponse) Marshal ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetInactiveLimitOrderTrancheResponse) MarshalTo ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetInactiveLimitOrderTrancheResponse) MarshalToSizedBuffer ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetInactiveLimitOrderTrancheResponse) ProtoMessage ¶
func (*QueryGetInactiveLimitOrderTrancheResponse) ProtoMessage()
func (*QueryGetInactiveLimitOrderTrancheResponse) Reset ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) Reset()
func (*QueryGetInactiveLimitOrderTrancheResponse) Size ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) Size() (n int)
func (*QueryGetInactiveLimitOrderTrancheResponse) String ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) String() string
func (*QueryGetInactiveLimitOrderTrancheResponse) Unmarshal ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) Unmarshal(dAtA []byte) error
func (*QueryGetInactiveLimitOrderTrancheResponse) XXX_DiscardUnknown ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_DiscardUnknown()
func (*QueryGetInactiveLimitOrderTrancheResponse) XXX_Marshal ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetInactiveLimitOrderTrancheResponse) XXX_Merge ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_Merge(src proto.Message)
func (*QueryGetInactiveLimitOrderTrancheResponse) XXX_Size ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_Size() int
func (*QueryGetInactiveLimitOrderTrancheResponse) XXX_Unmarshal ¶
func (m *QueryGetInactiveLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error
type QueryGetLimitOrderTrancheRequest ¶
type QueryGetLimitOrderTrancheRequest struct { PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` TickIndex int64 `protobuf:"varint,2,opt,name=tickIndex,proto3" json:"tickIndex,omitempty"` TokenIn string `protobuf:"bytes,3,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` TrancheKey string `protobuf:"bytes,4,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` }
func (*QueryGetLimitOrderTrancheRequest) Descriptor ¶
func (*QueryGetLimitOrderTrancheRequest) Descriptor() ([]byte, []int)
func (*QueryGetLimitOrderTrancheRequest) GetPairID ¶
func (m *QueryGetLimitOrderTrancheRequest) GetPairID() string
func (*QueryGetLimitOrderTrancheRequest) GetTickIndex ¶
func (m *QueryGetLimitOrderTrancheRequest) GetTickIndex() int64
func (*QueryGetLimitOrderTrancheRequest) GetTokenIn ¶
func (m *QueryGetLimitOrderTrancheRequest) GetTokenIn() string
func (*QueryGetLimitOrderTrancheRequest) GetTrancheKey ¶
func (m *QueryGetLimitOrderTrancheRequest) GetTrancheKey() string
func (*QueryGetLimitOrderTrancheRequest) Marshal ¶
func (m *QueryGetLimitOrderTrancheRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetLimitOrderTrancheRequest) MarshalTo ¶
func (m *QueryGetLimitOrderTrancheRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetLimitOrderTrancheRequest) MarshalToSizedBuffer ¶
func (m *QueryGetLimitOrderTrancheRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetLimitOrderTrancheRequest) ProtoMessage ¶
func (*QueryGetLimitOrderTrancheRequest) ProtoMessage()
func (*QueryGetLimitOrderTrancheRequest) Reset ¶
func (m *QueryGetLimitOrderTrancheRequest) Reset()
func (*QueryGetLimitOrderTrancheRequest) Size ¶
func (m *QueryGetLimitOrderTrancheRequest) Size() (n int)
func (*QueryGetLimitOrderTrancheRequest) String ¶
func (m *QueryGetLimitOrderTrancheRequest) String() string
func (*QueryGetLimitOrderTrancheRequest) Unmarshal ¶
func (m *QueryGetLimitOrderTrancheRequest) Unmarshal(dAtA []byte) error
func (*QueryGetLimitOrderTrancheRequest) XXX_DiscardUnknown ¶
func (m *QueryGetLimitOrderTrancheRequest) XXX_DiscardUnknown()
func (*QueryGetLimitOrderTrancheRequest) XXX_Marshal ¶
func (m *QueryGetLimitOrderTrancheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetLimitOrderTrancheRequest) XXX_Merge ¶
func (m *QueryGetLimitOrderTrancheRequest) XXX_Merge(src proto.Message)
func (*QueryGetLimitOrderTrancheRequest) XXX_Size ¶
func (m *QueryGetLimitOrderTrancheRequest) XXX_Size() int
func (*QueryGetLimitOrderTrancheRequest) XXX_Unmarshal ¶
func (m *QueryGetLimitOrderTrancheRequest) XXX_Unmarshal(b []byte) error
type QueryGetLimitOrderTrancheResponse ¶
type QueryGetLimitOrderTrancheResponse struct {
LimitOrderTranche *LimitOrderTranche `protobuf:"bytes,1,opt,name=LimitOrderTranche,proto3" json:"LimitOrderTranche,omitempty"`
}
func (*QueryGetLimitOrderTrancheResponse) Descriptor ¶
func (*QueryGetLimitOrderTrancheResponse) Descriptor() ([]byte, []int)
func (*QueryGetLimitOrderTrancheResponse) GetLimitOrderTranche ¶
func (m *QueryGetLimitOrderTrancheResponse) GetLimitOrderTranche() *LimitOrderTranche
func (*QueryGetLimitOrderTrancheResponse) Marshal ¶
func (m *QueryGetLimitOrderTrancheResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetLimitOrderTrancheResponse) MarshalTo ¶
func (m *QueryGetLimitOrderTrancheResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetLimitOrderTrancheResponse) MarshalToSizedBuffer ¶
func (m *QueryGetLimitOrderTrancheResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetLimitOrderTrancheResponse) ProtoMessage ¶
func (*QueryGetLimitOrderTrancheResponse) ProtoMessage()
func (*QueryGetLimitOrderTrancheResponse) Reset ¶
func (m *QueryGetLimitOrderTrancheResponse) Reset()
func (*QueryGetLimitOrderTrancheResponse) Size ¶
func (m *QueryGetLimitOrderTrancheResponse) Size() (n int)
func (*QueryGetLimitOrderTrancheResponse) String ¶
func (m *QueryGetLimitOrderTrancheResponse) String() string
func (*QueryGetLimitOrderTrancheResponse) Unmarshal ¶
func (m *QueryGetLimitOrderTrancheResponse) Unmarshal(dAtA []byte) error
func (*QueryGetLimitOrderTrancheResponse) XXX_DiscardUnknown ¶
func (m *QueryGetLimitOrderTrancheResponse) XXX_DiscardUnknown()
func (*QueryGetLimitOrderTrancheResponse) XXX_Marshal ¶
func (m *QueryGetLimitOrderTrancheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetLimitOrderTrancheResponse) XXX_Merge ¶
func (m *QueryGetLimitOrderTrancheResponse) XXX_Merge(src proto.Message)
func (*QueryGetLimitOrderTrancheResponse) XXX_Size ¶
func (m *QueryGetLimitOrderTrancheResponse) XXX_Size() int
func (*QueryGetLimitOrderTrancheResponse) XXX_Unmarshal ¶
func (m *QueryGetLimitOrderTrancheResponse) XXX_Unmarshal(b []byte) error
type QueryGetLimitOrderTrancheUserRequest ¶
type QueryGetLimitOrderTrancheUserRequest struct { Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` TrancheKey string `protobuf:"bytes,2,opt,name=trancheKey,proto3" json:"trancheKey,omitempty"` }
func (*QueryGetLimitOrderTrancheUserRequest) Descriptor ¶
func (*QueryGetLimitOrderTrancheUserRequest) Descriptor() ([]byte, []int)
func (*QueryGetLimitOrderTrancheUserRequest) GetAddress ¶
func (m *QueryGetLimitOrderTrancheUserRequest) GetAddress() string
func (*QueryGetLimitOrderTrancheUserRequest) GetTrancheKey ¶
func (m *QueryGetLimitOrderTrancheUserRequest) GetTrancheKey() string
func (*QueryGetLimitOrderTrancheUserRequest) Marshal ¶
func (m *QueryGetLimitOrderTrancheUserRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetLimitOrderTrancheUserRequest) MarshalTo ¶
func (m *QueryGetLimitOrderTrancheUserRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetLimitOrderTrancheUserRequest) MarshalToSizedBuffer ¶
func (m *QueryGetLimitOrderTrancheUserRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetLimitOrderTrancheUserRequest) ProtoMessage ¶
func (*QueryGetLimitOrderTrancheUserRequest) ProtoMessage()
func (*QueryGetLimitOrderTrancheUserRequest) Reset ¶
func (m *QueryGetLimitOrderTrancheUserRequest) Reset()
func (*QueryGetLimitOrderTrancheUserRequest) Size ¶
func (m *QueryGetLimitOrderTrancheUserRequest) Size() (n int)
func (*QueryGetLimitOrderTrancheUserRequest) String ¶
func (m *QueryGetLimitOrderTrancheUserRequest) String() string
func (*QueryGetLimitOrderTrancheUserRequest) Unmarshal ¶
func (m *QueryGetLimitOrderTrancheUserRequest) Unmarshal(dAtA []byte) error
func (*QueryGetLimitOrderTrancheUserRequest) XXX_DiscardUnknown ¶
func (m *QueryGetLimitOrderTrancheUserRequest) XXX_DiscardUnknown()
func (*QueryGetLimitOrderTrancheUserRequest) XXX_Marshal ¶
func (m *QueryGetLimitOrderTrancheUserRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetLimitOrderTrancheUserRequest) XXX_Merge ¶
func (m *QueryGetLimitOrderTrancheUserRequest) XXX_Merge(src proto.Message)
func (*QueryGetLimitOrderTrancheUserRequest) XXX_Size ¶
func (m *QueryGetLimitOrderTrancheUserRequest) XXX_Size() int
func (*QueryGetLimitOrderTrancheUserRequest) XXX_Unmarshal ¶
func (m *QueryGetLimitOrderTrancheUserRequest) XXX_Unmarshal(b []byte) error
type QueryGetLimitOrderTrancheUserResponse ¶
type QueryGetLimitOrderTrancheUserResponse struct {
LimitOrderTrancheUser *LimitOrderTrancheUser `protobuf:"bytes,1,opt,name=LimitOrderTrancheUser,proto3" json:"LimitOrderTrancheUser,omitempty"`
}
func (*QueryGetLimitOrderTrancheUserResponse) Descriptor ¶
func (*QueryGetLimitOrderTrancheUserResponse) Descriptor() ([]byte, []int)
func (*QueryGetLimitOrderTrancheUserResponse) GetLimitOrderTrancheUser ¶
func (m *QueryGetLimitOrderTrancheUserResponse) GetLimitOrderTrancheUser() *LimitOrderTrancheUser
func (*QueryGetLimitOrderTrancheUserResponse) Marshal ¶
func (m *QueryGetLimitOrderTrancheUserResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetLimitOrderTrancheUserResponse) MarshalTo ¶
func (m *QueryGetLimitOrderTrancheUserResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetLimitOrderTrancheUserResponse) MarshalToSizedBuffer ¶
func (m *QueryGetLimitOrderTrancheUserResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetLimitOrderTrancheUserResponse) ProtoMessage ¶
func (*QueryGetLimitOrderTrancheUserResponse) ProtoMessage()
func (*QueryGetLimitOrderTrancheUserResponse) Reset ¶
func (m *QueryGetLimitOrderTrancheUserResponse) Reset()
func (*QueryGetLimitOrderTrancheUserResponse) Size ¶
func (m *QueryGetLimitOrderTrancheUserResponse) Size() (n int)
func (*QueryGetLimitOrderTrancheUserResponse) String ¶
func (m *QueryGetLimitOrderTrancheUserResponse) String() string
func (*QueryGetLimitOrderTrancheUserResponse) Unmarshal ¶
func (m *QueryGetLimitOrderTrancheUserResponse) Unmarshal(dAtA []byte) error
func (*QueryGetLimitOrderTrancheUserResponse) XXX_DiscardUnknown ¶
func (m *QueryGetLimitOrderTrancheUserResponse) XXX_DiscardUnknown()
func (*QueryGetLimitOrderTrancheUserResponse) XXX_Marshal ¶
func (m *QueryGetLimitOrderTrancheUserResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetLimitOrderTrancheUserResponse) XXX_Merge ¶
func (m *QueryGetLimitOrderTrancheUserResponse) XXX_Merge(src proto.Message)
func (*QueryGetLimitOrderTrancheUserResponse) XXX_Size ¶
func (m *QueryGetLimitOrderTrancheUserResponse) XXX_Size() int
func (*QueryGetLimitOrderTrancheUserResponse) XXX_Unmarshal ¶
func (m *QueryGetLimitOrderTrancheUserResponse) XXX_Unmarshal(b []byte) error
type QueryGetPoolReservesRequest ¶
type QueryGetPoolReservesRequest struct { PairID string `protobuf:"bytes,1,opt,name=pairID,proto3" json:"pairID,omitempty"` TokenIn string `protobuf:"bytes,2,opt,name=tokenIn,proto3" json:"tokenIn,omitempty"` TickIndex int64 `protobuf:"varint,3,opt,name=tickIndex,proto3" json:"tickIndex,omitempty"` Fee uint64 `protobuf:"varint,4,opt,name=fee,proto3" json:"fee,omitempty"` }
func (*QueryGetPoolReservesRequest) Descriptor ¶
func (*QueryGetPoolReservesRequest) Descriptor() ([]byte, []int)
func (*QueryGetPoolReservesRequest) GetFee ¶
func (m *QueryGetPoolReservesRequest) GetFee() uint64
func (*QueryGetPoolReservesRequest) GetPairID ¶
func (m *QueryGetPoolReservesRequest) GetPairID() string
func (*QueryGetPoolReservesRequest) GetTickIndex ¶
func (m *QueryGetPoolReservesRequest) GetTickIndex() int64
func (*QueryGetPoolReservesRequest) GetTokenIn ¶
func (m *QueryGetPoolReservesRequest) GetTokenIn() string
func (*QueryGetPoolReservesRequest) Marshal ¶
func (m *QueryGetPoolReservesRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetPoolReservesRequest) MarshalTo ¶
func (m *QueryGetPoolReservesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetPoolReservesRequest) MarshalToSizedBuffer ¶
func (m *QueryGetPoolReservesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetPoolReservesRequest) ProtoMessage ¶
func (*QueryGetPoolReservesRequest) ProtoMessage()
func (*QueryGetPoolReservesRequest) Reset ¶
func (m *QueryGetPoolReservesRequest) Reset()
func (*QueryGetPoolReservesRequest) Size ¶
func (m *QueryGetPoolReservesRequest) Size() (n int)
func (*QueryGetPoolReservesRequest) String ¶
func (m *QueryGetPoolReservesRequest) String() string
func (*QueryGetPoolReservesRequest) Unmarshal ¶
func (m *QueryGetPoolReservesRequest) Unmarshal(dAtA []byte) error
func (*QueryGetPoolReservesRequest) XXX_DiscardUnknown ¶
func (m *QueryGetPoolReservesRequest) XXX_DiscardUnknown()
func (*QueryGetPoolReservesRequest) XXX_Marshal ¶
func (m *QueryGetPoolReservesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetPoolReservesRequest) XXX_Merge ¶
func (m *QueryGetPoolReservesRequest) XXX_Merge(src proto.Message)
func (*QueryGetPoolReservesRequest) XXX_Size ¶
func (m *QueryGetPoolReservesRequest) XXX_Size() int
func (*QueryGetPoolReservesRequest) XXX_Unmarshal ¶
func (m *QueryGetPoolReservesRequest) XXX_Unmarshal(b []byte) error
type QueryGetPoolReservesResponse ¶
type QueryGetPoolReservesResponse struct {
PoolReserves *PoolReserves `protobuf:"bytes,1,opt,name=poolReserves,proto3" json:"poolReserves,omitempty"`
}
func (*QueryGetPoolReservesResponse) Descriptor ¶
func (*QueryGetPoolReservesResponse) Descriptor() ([]byte, []int)
func (*QueryGetPoolReservesResponse) GetPoolReserves ¶
func (m *QueryGetPoolReservesResponse) GetPoolReserves() *PoolReserves
func (*QueryGetPoolReservesResponse) Marshal ¶
func (m *QueryGetPoolReservesResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetPoolReservesResponse) MarshalTo ¶
func (m *QueryGetPoolReservesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetPoolReservesResponse) MarshalToSizedBuffer ¶
func (m *QueryGetPoolReservesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetPoolReservesResponse) ProtoMessage ¶
func (*QueryGetPoolReservesResponse) ProtoMessage()
func (*QueryGetPoolReservesResponse) Reset ¶
func (m *QueryGetPoolReservesResponse) Reset()
func (*QueryGetPoolReservesResponse) Size ¶
func (m *QueryGetPoolReservesResponse) Size() (n int)
func (*QueryGetPoolReservesResponse) String ¶
func (m *QueryGetPoolReservesResponse) String() string
func (*QueryGetPoolReservesResponse) Unmarshal ¶
func (m *QueryGetPoolReservesResponse) Unmarshal(dAtA []byte) error
func (*QueryGetPoolReservesResponse) XXX_DiscardUnknown ¶
func (m *QueryGetPoolReservesResponse) XXX_DiscardUnknown()
func (*QueryGetPoolReservesResponse) XXX_Marshal ¶
func (m *QueryGetPoolReservesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetPoolReservesResponse) XXX_Merge ¶
func (m *QueryGetPoolReservesResponse) XXX_Merge(src proto.Message)
func (*QueryGetPoolReservesResponse) XXX_Size ¶
func (m *QueryGetPoolReservesResponse) XXX_Size() int
func (*QueryGetPoolReservesResponse) XXX_Unmarshal ¶
func (m *QueryGetPoolReservesResponse) XXX_Unmarshal(b []byte) error
type QueryGetUserPositionsRequest ¶
type QueryGetUserPositionsRequest struct {
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}
func (*QueryGetUserPositionsRequest) Descriptor ¶
func (*QueryGetUserPositionsRequest) Descriptor() ([]byte, []int)
func (*QueryGetUserPositionsRequest) GetAddress ¶
func (m *QueryGetUserPositionsRequest) GetAddress() string
func (*QueryGetUserPositionsRequest) Marshal ¶
func (m *QueryGetUserPositionsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetUserPositionsRequest) MarshalTo ¶
func (m *QueryGetUserPositionsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetUserPositionsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetUserPositionsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetUserPositionsRequest) ProtoMessage ¶
func (*QueryGetUserPositionsRequest) ProtoMessage()
func (*QueryGetUserPositionsRequest) Reset ¶
func (m *QueryGetUserPositionsRequest) Reset()
func (*QueryGetUserPositionsRequest) Size ¶
func (m *QueryGetUserPositionsRequest) Size() (n int)
func (*QueryGetUserPositionsRequest) String ¶
func (m *QueryGetUserPositionsRequest) String() string
func (*QueryGetUserPositionsRequest) Unmarshal ¶
func (m *QueryGetUserPositionsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetUserPositionsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetUserPositionsRequest) XXX_DiscardUnknown()
func (*QueryGetUserPositionsRequest) XXX_Marshal ¶
func (m *QueryGetUserPositionsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetUserPositionsRequest) XXX_Merge ¶
func (m *QueryGetUserPositionsRequest) XXX_Merge(src proto.Message)
func (*QueryGetUserPositionsRequest) XXX_Size ¶
func (m *QueryGetUserPositionsRequest) XXX_Size() int
func (*QueryGetUserPositionsRequest) XXX_Unmarshal ¶
func (m *QueryGetUserPositionsRequest) XXX_Unmarshal(b []byte) error
type QueryGetUserPositionsResponse ¶
type QueryGetUserPositionsResponse struct {
UserPositions *UserPositions `protobuf:"bytes,1,opt,name=UserPositions,proto3" json:"UserPositions,omitempty"`
}
func (*QueryGetUserPositionsResponse) Descriptor ¶
func (*QueryGetUserPositionsResponse) Descriptor() ([]byte, []int)
func (*QueryGetUserPositionsResponse) GetUserPositions ¶
func (m *QueryGetUserPositionsResponse) GetUserPositions() *UserPositions
func (*QueryGetUserPositionsResponse) Marshal ¶
func (m *QueryGetUserPositionsResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetUserPositionsResponse) MarshalTo ¶
func (m *QueryGetUserPositionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetUserPositionsResponse) MarshalToSizedBuffer ¶
func (m *QueryGetUserPositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetUserPositionsResponse) ProtoMessage ¶
func (*QueryGetUserPositionsResponse) ProtoMessage()
func (*QueryGetUserPositionsResponse) Reset ¶
func (m *QueryGetUserPositionsResponse) Reset()
func (*QueryGetUserPositionsResponse) Size ¶
func (m *QueryGetUserPositionsResponse) Size() (n int)
func (*QueryGetUserPositionsResponse) String ¶
func (m *QueryGetUserPositionsResponse) String() string
func (*QueryGetUserPositionsResponse) Unmarshal ¶
func (m *QueryGetUserPositionsResponse) Unmarshal(dAtA []byte) error
func (*QueryGetUserPositionsResponse) XXX_DiscardUnknown ¶
func (m *QueryGetUserPositionsResponse) XXX_DiscardUnknown()
func (*QueryGetUserPositionsResponse) XXX_Marshal ¶
func (m *QueryGetUserPositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetUserPositionsResponse) XXX_Merge ¶
func (m *QueryGetUserPositionsResponse) XXX_Merge(src proto.Message)
func (*QueryGetUserPositionsResponse) XXX_Size ¶
func (m *QueryGetUserPositionsResponse) XXX_Size() int
func (*QueryGetUserPositionsResponse) XXX_Unmarshal ¶
func (m *QueryGetUserPositionsResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params holds all the parameters of this module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // Queries a LimitOrderTrancheUser by index. LimitOrderTrancheUser(context.Context, *QueryGetLimitOrderTrancheUserRequest) (*QueryGetLimitOrderTrancheUserResponse, error) // Queries a list of LimitOrderTrancheMap items. LimitOrderTrancheUserAll(context.Context, *QueryAllLimitOrderTrancheUserRequest) (*QueryAllLimitOrderTrancheUserResponse, error) // Queries a LimitOrderTranche by index. LimitOrderTranche(context.Context, *QueryGetLimitOrderTrancheRequest) (*QueryGetLimitOrderTrancheResponse, error) // Queries a list of LimitOrderTranche items for a given pairID / TokenIn combination. LimitOrderTrancheAll(context.Context, *QueryAllLimitOrderTrancheRequest) (*QueryAllLimitOrderTrancheResponse, error) // Queries a list of GetUserPositions items. GetUserPositions(context.Context, *QueryGetUserPositionsRequest) (*QueryGetUserPositionsResponse, error) // Queries a list of UserDeposits items. UserDepositsAll(context.Context, *QueryAllUserDepositsRequest) (*QueryAllUserDepositsResponse, error) // Queries a list of UserLimitOrders items. UserLimitOrdersAll(context.Context, *QueryAllUserLimitOrdersRequest) (*QueryAllUserLimitOrdersResponse, error) // Queries a list of TickLiquidity items. TickLiquidityAll(context.Context, *QueryAllTickLiquidityRequest) (*QueryAllTickLiquidityResponse, error) // Queries a InactiveLimitOrderTranche by index. InactiveLimitOrderTranche(context.Context, *QueryGetInactiveLimitOrderTrancheRequest) (*QueryGetInactiveLimitOrderTrancheResponse, error) // Queries a list of InactiveLimitOrderTranche items. InactiveLimitOrderTrancheAll(context.Context, *QueryAllInactiveLimitOrderTrancheRequest) (*QueryAllInactiveLimitOrderTrancheResponse, error) // Queries a list of PoolReserves items. PoolReservesAll(context.Context, *QueryAllPoolReservesRequest) (*QueryAllPoolReservesResponse, error) // Queries a PoolReserve by index PoolReserves(context.Context, *QueryGetPoolReservesRequest) (*QueryGetPoolReservesResponse, error) }
QueryServer is the server API for Query service.
type TickIteratorI ¶
type TickIteratorI interface { Next() Valid() bool Close() error Value() TickLiquidity }
type TickLiquidity ¶
type TickLiquidity struct { // Types that are valid to be assigned to Liquidity: // *TickLiquidity_PoolReserves // *TickLiquidity_LimitOrderTranche Liquidity isTickLiquidity_Liquidity `protobuf_oneof:"liquidity"` }
func (*TickLiquidity) Descriptor ¶
func (*TickLiquidity) Descriptor() ([]byte, []int)
func (*TickLiquidity) GetLimitOrderTranche ¶
func (m *TickLiquidity) GetLimitOrderTranche() *LimitOrderTranche
func (*TickLiquidity) GetLiquidity ¶
func (m *TickLiquidity) GetLiquidity() isTickLiquidity_Liquidity
func (*TickLiquidity) GetPoolReserves ¶
func (m *TickLiquidity) GetPoolReserves() *PoolReserves
func (TickLiquidity) HasToken ¶
func (t TickLiquidity) HasToken() bool
func (*TickLiquidity) Marshal ¶
func (m *TickLiquidity) Marshal() (dAtA []byte, err error)
func (*TickLiquidity) MarshalToSizedBuffer ¶
func (m *TickLiquidity) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (TickLiquidity) Price ¶ added in v0.3.4
func (t TickLiquidity) Price() sdk.Dec
func (*TickLiquidity) ProtoMessage ¶
func (*TickLiquidity) ProtoMessage()
func (*TickLiquidity) Reset ¶
func (m *TickLiquidity) Reset()
func (*TickLiquidity) Size ¶
func (m *TickLiquidity) Size() (n int)
func (*TickLiquidity) String ¶
func (m *TickLiquidity) String() string
func (TickLiquidity) TickIndex ¶
func (t TickLiquidity) TickIndex() int64
func (*TickLiquidity) Unmarshal ¶
func (m *TickLiquidity) Unmarshal(dAtA []byte) error
func (*TickLiquidity) XXX_DiscardUnknown ¶
func (m *TickLiquidity) XXX_DiscardUnknown()
func (*TickLiquidity) XXX_Marshal ¶
func (m *TickLiquidity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TickLiquidity) XXX_Merge ¶
func (m *TickLiquidity) XXX_Merge(src proto.Message)
func (*TickLiquidity) XXX_OneofWrappers ¶
func (*TickLiquidity) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*TickLiquidity) XXX_Size ¶
func (m *TickLiquidity) XXX_Size() int
func (*TickLiquidity) XXX_Unmarshal ¶
func (m *TickLiquidity) XXX_Unmarshal(b []byte) error
type TickLiquidityKey ¶
type TickLiquidity_LimitOrderTranche ¶
type TickLiquidity_LimitOrderTranche struct {
LimitOrderTranche *LimitOrderTranche `protobuf:"bytes,2,opt,name=limitOrderTranche,proto3,oneof" json:"limitOrderTranche,omitempty"`
}
func (*TickLiquidity_LimitOrderTranche) MarshalTo ¶
func (m *TickLiquidity_LimitOrderTranche) MarshalTo(dAtA []byte) (int, error)
func (*TickLiquidity_LimitOrderTranche) MarshalToSizedBuffer ¶
func (m *TickLiquidity_LimitOrderTranche) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TickLiquidity_LimitOrderTranche) Size ¶
func (m *TickLiquidity_LimitOrderTranche) Size() (n int)
type TickLiquidity_PoolReserves ¶
type TickLiquidity_PoolReserves struct {
PoolReserves *PoolReserves `protobuf:"bytes,1,opt,name=poolReserves,proto3,oneof" json:"poolReserves,omitempty"`
}
func (*TickLiquidity_PoolReserves) MarshalTo ¶
func (m *TickLiquidity_PoolReserves) MarshalTo(dAtA []byte) (int, error)
func (*TickLiquidity_PoolReserves) MarshalToSizedBuffer ¶
func (m *TickLiquidity_PoolReserves) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TickLiquidity_PoolReserves) Size ¶
func (m *TickLiquidity_PoolReserves) Size() (n int)
type TradePairID ¶ added in v0.3.4
type TradePairID struct { MakerDenom string `protobuf:"bytes,2,opt,name=makerDenom,proto3" json:"makerDenom,omitempty"` TakerDenom string `protobuf:"bytes,3,opt,name=takerDenom,proto3" json:"takerDenom,omitempty"` }
func MustNewTradePairID ¶ added in v0.3.4
func MustNewTradePairID(takerDenom, makerDenom string) *TradePairID
func NewTradePairID ¶ added in v0.3.4
func NewTradePairID(takerDenom, makerDenom string) (*TradePairID, error)
func NewTradePairIDFromMaker ¶ added in v0.3.4
func NewTradePairIDFromMaker(pairID *PairID, makerDenom string) *TradePairID
func NewTradePairIDFromTaker ¶ added in v0.3.4
func NewTradePairIDFromTaker(pairID *PairID, takerDenom string) *TradePairID
func (*TradePairID) Descriptor ¶ added in v0.3.4
func (*TradePairID) Descriptor() ([]byte, []int)
func (*TradePairID) GetMakerDenom ¶ added in v0.3.4
func (m *TradePairID) GetMakerDenom() string
func (*TradePairID) GetTakerDenom ¶ added in v0.3.4
func (m *TradePairID) GetTakerDenom() string
func (TradePairID) IsMakerDenomToken0 ¶ added in v0.3.4
func (p TradePairID) IsMakerDenomToken0() bool
func (TradePairID) IsTakerDenomToken0 ¶ added in v0.3.4
func (p TradePairID) IsTakerDenomToken0() bool
func (*TradePairID) Marshal ¶ added in v0.3.4
func (m *TradePairID) Marshal() (dAtA []byte, err error)
func (*TradePairID) MarshalTo ¶ added in v0.3.4
func (m *TradePairID) MarshalTo(dAtA []byte) (int, error)
func (*TradePairID) MarshalToSizedBuffer ¶ added in v0.3.4
func (m *TradePairID) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (TradePairID) MustPairID ¶ added in v0.3.4
func (p TradePairID) MustPairID() *PairID
func (TradePairID) MustPriceTakerToMaker ¶ added in v0.3.4
func (p TradePairID) MustPriceTakerToMaker(tickIndexNormalized int64) (priceTakerToMaker sdk.Dec)
func (TradePairID) PairID ¶ added in v0.3.4
func (p TradePairID) PairID() (*PairID, error)
func (TradePairID) PriceTakerToMaker ¶ added in v0.3.4
func (p TradePairID) PriceTakerToMaker(tickIndexNormalized int64) (priceTakerToMaker sdk.Dec, err error)
func (*TradePairID) ProtoMessage ¶ added in v0.3.4
func (*TradePairID) ProtoMessage()
func (*TradePairID) Reset ¶ added in v0.3.4
func (m *TradePairID) Reset()
func (TradePairID) Reversed ¶ added in v0.3.4
func (p TradePairID) Reversed() *TradePairID
func (*TradePairID) Size ¶ added in v0.3.4
func (m *TradePairID) Size() (n int)
func (*TradePairID) String ¶ added in v0.3.4
func (m *TradePairID) String() string
func (TradePairID) TickIndexNormalized ¶ added in v0.3.4
func (p TradePairID) TickIndexNormalized(tickIndexTakerToMaker int64) int64
func (TradePairID) TickIndexTakerToMaker ¶ added in v0.3.4
func (p TradePairID) TickIndexTakerToMaker(tickIndexNormalized int64) int64
func (*TradePairID) Unmarshal ¶ added in v0.3.4
func (m *TradePairID) Unmarshal(dAtA []byte) error
func (*TradePairID) XXX_DiscardUnknown ¶ added in v0.3.4
func (m *TradePairID) XXX_DiscardUnknown()
func (*TradePairID) XXX_Marshal ¶ added in v0.3.4
func (m *TradePairID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TradePairID) XXX_Merge ¶ added in v0.3.4
func (m *TradePairID) XXX_Merge(src proto.Message)
func (*TradePairID) XXX_Size ¶ added in v0.3.4
func (m *TradePairID) XXX_Size() int
func (*TradePairID) XXX_Unmarshal ¶ added in v0.3.4
func (m *TradePairID) XXX_Unmarshal(b []byte) error
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CancelLimitOrder ¶
func (*UnimplementedMsgServer) CancelLimitOrder(ctx context.Context, req *MsgCancelLimitOrder) (*MsgCancelLimitOrderResponse, error)
func (*UnimplementedMsgServer) Deposit ¶
func (*UnimplementedMsgServer) Deposit(ctx context.Context, req *MsgDeposit) (*MsgDepositResponse, error)
func (*UnimplementedMsgServer) MultiHopSwap ¶
func (*UnimplementedMsgServer) MultiHopSwap(ctx context.Context, req *MsgMultiHopSwap) (*MsgMultiHopSwapResponse, error)
func (*UnimplementedMsgServer) PlaceLimitOrder ¶
func (*UnimplementedMsgServer) PlaceLimitOrder(ctx context.Context, req *MsgPlaceLimitOrder) (*MsgPlaceLimitOrderResponse, error)
func (*UnimplementedMsgServer) WithdrawFilledLimitOrder ¶
func (*UnimplementedMsgServer) WithdrawFilledLimitOrder(ctx context.Context, req *MsgWithdrawFilledLimitOrder) (*MsgWithdrawFilledLimitOrderResponse, error)
func (*UnimplementedMsgServer) Withdrawal ¶
func (*UnimplementedMsgServer) Withdrawal(ctx context.Context, req *MsgWithdrawal) (*MsgWithdrawalResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) GetUserPositions ¶
func (*UnimplementedQueryServer) GetUserPositions(ctx context.Context, req *QueryGetUserPositionsRequest) (*QueryGetUserPositionsResponse, error)
func (*UnimplementedQueryServer) InactiveLimitOrderTranche ¶
func (*UnimplementedQueryServer) InactiveLimitOrderTranche(ctx context.Context, req *QueryGetInactiveLimitOrderTrancheRequest) (*QueryGetInactiveLimitOrderTrancheResponse, error)
func (*UnimplementedQueryServer) InactiveLimitOrderTrancheAll ¶
func (*UnimplementedQueryServer) InactiveLimitOrderTrancheAll(ctx context.Context, req *QueryAllInactiveLimitOrderTrancheRequest) (*QueryAllInactiveLimitOrderTrancheResponse, error)
func (*UnimplementedQueryServer) LimitOrderTranche ¶
func (*UnimplementedQueryServer) LimitOrderTranche(ctx context.Context, req *QueryGetLimitOrderTrancheRequest) (*QueryGetLimitOrderTrancheResponse, error)
func (*UnimplementedQueryServer) LimitOrderTrancheAll ¶
func (*UnimplementedQueryServer) LimitOrderTrancheAll(ctx context.Context, req *QueryAllLimitOrderTrancheRequest) (*QueryAllLimitOrderTrancheResponse, error)
func (*UnimplementedQueryServer) LimitOrderTrancheUser ¶
func (*UnimplementedQueryServer) LimitOrderTrancheUser(ctx context.Context, req *QueryGetLimitOrderTrancheUserRequest) (*QueryGetLimitOrderTrancheUserResponse, error)
func (*UnimplementedQueryServer) LimitOrderTrancheUserAll ¶
func (*UnimplementedQueryServer) LimitOrderTrancheUserAll(ctx context.Context, req *QueryAllLimitOrderTrancheUserRequest) (*QueryAllLimitOrderTrancheUserResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) PoolReserves ¶
func (*UnimplementedQueryServer) PoolReserves(ctx context.Context, req *QueryGetPoolReservesRequest) (*QueryGetPoolReservesResponse, error)
func (*UnimplementedQueryServer) PoolReservesAll ¶
func (*UnimplementedQueryServer) PoolReservesAll(ctx context.Context, req *QueryAllPoolReservesRequest) (*QueryAllPoolReservesResponse, error)
func (*UnimplementedQueryServer) TickLiquidityAll ¶
func (*UnimplementedQueryServer) TickLiquidityAll(ctx context.Context, req *QueryAllTickLiquidityRequest) (*QueryAllTickLiquidityResponse, error)
func (*UnimplementedQueryServer) UserDepositsAll ¶
func (*UnimplementedQueryServer) UserDepositsAll(ctx context.Context, req *QueryAllUserDepositsRequest) (*QueryAllUserDepositsResponse, error)
func (*UnimplementedQueryServer) UserLimitOrdersAll ¶
func (*UnimplementedQueryServer) UserLimitOrdersAll(ctx context.Context, req *QueryAllUserLimitOrdersRequest) (*QueryAllUserLimitOrdersResponse, error)
type UserPositions ¶
type UserPositions struct { PoolDeposits []*DepositRecord `protobuf:"bytes,1,rep,name=PoolDeposits,proto3" json:"PoolDeposits,omitempty"` LimitOrders []*LimitOrderTrancheUser `protobuf:"bytes,2,rep,name=LimitOrders,proto3" json:"LimitOrders,omitempty"` }
func (*UserPositions) Descriptor ¶
func (*UserPositions) Descriptor() ([]byte, []int)
func (*UserPositions) GetLimitOrders ¶
func (m *UserPositions) GetLimitOrders() []*LimitOrderTrancheUser
func (*UserPositions) GetPoolDeposits ¶
func (m *UserPositions) GetPoolDeposits() []*DepositRecord
func (*UserPositions) Marshal ¶
func (m *UserPositions) Marshal() (dAtA []byte, err error)
func (*UserPositions) MarshalToSizedBuffer ¶
func (m *UserPositions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UserPositions) ProtoMessage ¶
func (*UserPositions) ProtoMessage()
func (*UserPositions) Reset ¶
func (m *UserPositions) Reset()
func (*UserPositions) Size ¶
func (m *UserPositions) Size() (n int)
func (*UserPositions) String ¶
func (m *UserPositions) String() string
func (*UserPositions) Unmarshal ¶
func (m *UserPositions) Unmarshal(dAtA []byte) error
func (*UserPositions) XXX_DiscardUnknown ¶
func (m *UserPositions) XXX_DiscardUnknown()
func (*UserPositions) XXX_Marshal ¶
func (m *UserPositions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UserPositions) XXX_Merge ¶
func (m *UserPositions) XXX_Merge(src proto.Message)
func (*UserPositions) XXX_Size ¶
func (m *UserPositions) XXX_Size() int
func (*UserPositions) XXX_Unmarshal ¶
func (m *UserPositions) XXX_Unmarshal(b []byte) error
Source Files ¶
- branchable_cache.go
- codec.go
- deposit_denom.go
- deposit_record.pb.go
- errors.go
- events.go
- expected_keepers.go
- genesis.go
- genesis.pb.go
- keys.go
- limit_order_expiration.pb.go
- limit_order_tranche.go
- limit_order_tranche.pb.go
- limit_order_tranche_key.go
- limit_order_tranche_user.go
- limit_order_tranche_user.pb.go
- limit_order_type.go
- liquidity.go
- message_cancel_limit_order.go
- message_deposit.go
- message_multi_hop_swap.go
- message_place_limit_order.go
- message_withdrawl.go
- message_withdrawl_filled_limit_order.go
- pair_id.go
- pair_id.pb.go
- params.go
- params.pb.go
- pool.go
- pool_liquidity.go
- pool_reserves.go
- pool_reserves.pb.go
- pool_reserves_key.go
- price.go
- query.pb.go
- query.pb.gw.go
- tick_iterator.go
- tick_liquidity.go
- tick_liquidity.pb.go
- tick_liquidity_key.go
- trade_pair_id.go
- trade_pair_id.pb.go
- tx.pb.go
- types.go
- user_positions.pb.go