types

package
v0.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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 = "/"
)
View Source
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/"
)
View Source
const (
	DepositEventKey                = "Deposit"
	DepositEventCreator            = "Creator"
	DepositEventToken0             = "TokenZero"
	DepositEventToken1             = "TokenOne"
	DepositEventPrice              = "TickIndex"
	DepositEventFee                = "Fee"
	DepositEventReceiver           = "Receiver"
	DepositEventReserves0Deposited = "ReservesZeroDeposited"
	DepositEventReserves1Deposited = "ReservesOneDeposited"
	DepositEventSharesMinted       = "SharesMinted"
)

Deposit Event Attributes

View Source
const (
	WithdrawEventKey                = "Withdraw"
	WithdrawEventCreator            = "Creator"
	WithdrawEventToken0             = "TokenZero"
	WithdrawEventToken1             = "TokenOne"
	WithdrawEventPrice              = "TickIndex"
	WithdrawEventFee                = "Fee"
	WithdrawEventReceiver           = "Receiver"
	WithdrawEventReserves0Withdrawn = "ReservesZeroWithdrawn"
	WithdrawEventReserves1Withdrawn = "ReservesOneWithdrawn"
	WithdrawEventSharesRemoved      = "SharesRemoved"
)

Withdraw Event Attributes

View Source
const (
	MultihopSwapEventKey       = "MultihopSwap"
	MultihopSwapEventCreator   = "Creator"
	MultihopSwapEventReceiver  = "Receiver"
	MultihopSwapEventTokenIn   = "TokenIn"
	MultihopSwapEventTokenOut  = "TokenOut"
	MultihopSwapEventAmountIn  = "AmountIn"
	MultihopSwapEventAmountOut = "AmountOut"
	MultihopSwapEventRoute     = "Route"
)

Multihop-Swap Event Attributes

View Source
const (
	PlaceLimitOrderEventKey        = "PlaceLimitOrder"
	PlaceLimitOrderEventCreator    = "Creator"
	PlaceLimitOrderEventReceiver   = "Receiver"
	PlaceLimitOrderEventToken0     = "TokenZero"
	PlaceLimitOrderEventToken1     = "TokenOne"
	PlaceLimitOrderEventTokenIn    = "TokenIn"
	PlaceLimitOrderEventTokenOut   = "TokenOut"
	PlaceLimitOrderEventAmountIn   = "AmountIn"
	PlaceLimitOrderEventLimitTick  = "LimitTick"
	PlaceLimitOrderEventOrderType  = "OrderType"
	PlaceLimitOrderEventShares     = "Shares"
	PlaceLimitOrderEventTrancheKey = "TrancheKey"
)

Place LimitOrder Event Attributes

View Source
const (
	WithdrawFilledLimitOrderEventKey        = "Withdraw"
	WithdrawFilledLimitOrderEventCreator    = "Creator"
	WithdrawFilledLimitOrderEventToken0     = "TokenZero"
	WithdrawFilledLimitOrderEventToken1     = "TokenOne"
	WithdrawFilledLimitOrderEventTokenIn    = "TokenIn"
	WithdrawFilledLimitOrderEventTokenOut   = "TokenOut"
	WithdrawFilledLimitOrderEventTrancheKey = "TrancheKey"
	WithdrawFilledLimitOrderEventAmountOut  = "AmountOut"
)

Withdraw LimitOrder Event Attributes

View Source
const (
	CancelLimitOrderEventKey        = "Withdraw"
	CancelLimitOrderEventCreator    = "Creator"
	CancelLimitOrderEventToken0     = "TokenZero"
	CancelLimitOrderEventToken1     = "TokenOne"
	CancelLimitOrderEventTokenIn    = "TokenIn"
	CancelLimitOrderEventTokenOut   = "TokenOut"
	CancelLimitOrderEventTrancheKey = "TrancheKey"
	CancelLimitOrderEventAmountOut  = "AmountOut"
)

Cancel LimitOrder Event Attributes

View Source
const (
	EventTypeTickUpdate       = "TickUpdate"
	TickUpdateEventKey        = "TickUpdate"
	TickUpdateEventToken0     = "TokenZero"
	TickUpdateEventToken1     = "TokenOne"
	TickUpdateEventTokenIn    = "TokenIn"
	TickUpdateEventTickIndex  = "TickIndex"
	TickUpdateEventFee        = "Fee"
	TickUpdateEventTrancheKey = "TrancheKey"
	TickUpdateEventReserves   = "Reserves"
)

Tick Update Event Attributes

View Source
const (
	GoodTilPurgeHitGasLimitEventKey = "GoodTilPurgeHitGasLimit"
	GoodTilPurgeHitGasLimitEventGas = "Gas"
)
View Source
const (
	// NOTE: have to add letter so that LP deposits are indexed ahead of LimitOrders
	LiquidityTypePoolReserves = "A_PoolDeposit"
	LiquidityTypeLimitOrder   = "B_LODeposit"
)
View Source
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
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	DepositSharesPrefix = "DualityPoolShares"
)
View Source
const LPsharesRegexpStr = "^" + DepositSharesPrefix + "-" +

	"([a-zA-Z][a-zA-Z0-9/-]{2,127})" + "-" +

	"([a-zA-Z][a-zA-Z0-9/-]{2,127})" + "-" +

	`t(-?\d+)` + "-" +

	`f(\d+)`
View Source
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)

View Source
const TypeMsgCancelLimitOrder = "cancel_limit_order"
View Source
const TypeMsgDeposit = "deposit"
View Source
const TypeMsgMultiHopSwap = "multi_hop_swap"
View Source
const TypeMsgPlaceLimitOrder = "place_limit_order"
View Source
const TypeMsgWithdrawFilledLimitOrder = "withdrawal_withdrawn_limit_order"
View Source
const TypeMsgWithdrawal = "withdrawal"

Variables

View Source
var (
	ErrInvalidLengthDepositRecord        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDepositRecord          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDepositRecord = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidTradingPair = sdkerrors.Register(
		ModuleName,
		1102,
		"Invalid token pair:",
	) // "%s<>%s", tokenA, tokenB
	ErrInsufficientShares = sdkerrors.Register(
		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.",
	)
	ErrDepositShareUnderflow = sdkerrors.Register(
		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]",
	)
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthLimitOrderExpiration        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLimitOrderExpiration          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLimitOrderExpiration = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthLimitOrderTranche        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLimitOrderTranche          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLimitOrderTranche = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthLimitOrderTrancheUser        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowLimitOrderTrancheUser          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupLimitOrderTrancheUser = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPairId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPairId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPairId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPool        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPool          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPool = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthPoolReserves        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPoolReserves          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPoolReserves = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTickLiquidity        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTickLiquidity          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTickLiquidity = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTradePairId        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTradePairId          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTradePairId = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthUserPositions        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUserPositions          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupUserPositions = fmt.Errorf("proto: unexpected end of group")
)
View Source
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",
}
View Source
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 BytesToTickIndex(bz []byte) (int64, error)

func CalcAmountAsToken0 added in v0.3.4

func CalcAmountAsToken0(amount0, amount1 sdk.Int, price1To0 sdk.Dec) sdk.Dec

func CalcFee added in v0.3.4

func CalcFee(upperTickIndex, lowerTickIndex int64) int64

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

func CalcPrice(relativeTickIndex int64) (sdk.Dec, error)

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 CalcPrice0To1

func CalcPrice0To1(tickIndex int64) (sdk.Dec, error)

func CalcPrice1To0

func CalcPrice1To0(tickIndex int64) (sdk.Dec, error)

func CalcResidualValue added in v0.3.4

func CalcResidualValue(
	amount0, amount1 sdk.Int,
	priceLowerTakerToMaker sdk.Dec,
	fee int64,
) (sdk.Dec, error)

func CancelLimitOrderEvent

func CancelLimitOrderEvent(
	creator sdk.AccAddress,
	token0 string,
	token1 string,
	makerDenom string,
	tokenOut string,
	amountOut sdk.Int,
	trancheKey string,
) sdk.Event

func CreateDepositEvent

func CreateDepositEvent(
	creator sdk.AccAddress,
	receiver sdk.AccAddress,
	token0 string,
	token1 string,
	tickIndex int64,
	fee uint64,
	depositAmountReserve0 sdk.Int,
	depositAmountReserve1 sdk.Int,
	sharesMinted sdk.Int,
) sdk.Event

func CreateMultihopSwapEvent

func CreateMultihopSwapEvent(
	creator sdk.AccAddress,
	receiver sdk.AccAddress,
	makerDenom string,
	tokenOut string,
	amountIn sdk.Int,
	amountOut sdk.Int,
	route []string,
) sdk.Event

func CreatePlaceLimitOrderEvent

func CreatePlaceLimitOrderEvent(
	creator sdk.AccAddress,
	receiver sdk.AccAddress,
	token0 string,
	token1 string,
	makerDenom string,
	tokenOut string,
	amountIn sdk.Int,
	limitTick int64,
	orderType string,
	shares sdk.Int,
	trancheKey string,
) sdk.Event

func CreateTickUpdateLimitOrderTranche

func CreateTickUpdateLimitOrderTranche(tranche *LimitOrderTranche) sdk.Event

func CreateTickUpdatePoolReserves

func CreateTickUpdatePoolReserves(tick PoolReserves) sdk.Event

func CreateWithdrawEvent

func CreateWithdrawEvent(
	creator sdk.AccAddress,
	receiver sdk.AccAddress,
	token0 string,
	token1 string,
	tickIndex int64,
	fee uint64,
	withdrawAmountReserve0 sdk.Int,
	withdrawAmountReserve1 sdk.Int,
	sharesRemoved sdk.Int,
) sdk.Event

func DepositDenomPairIDPrefix

func DepositDenomPairIDPrefix(token0, token1 string) string

func GoodTilPurgeHitLimitEvent

func GoodTilPurgeHitLimitEvent(gas sdk.Gas) sdk.Event

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 IsTickOutOfRange(tickIndex int64) bool

func JITGoodTilTime

func JITGoodTilTime() time.Time

func KeyPrefix

func KeyPrefix(p string) []byte

func LimitOrderExpirationKey

func LimitOrderExpirationKey(
	goodTilDate time.Time,
	trancheRef []byte,
) []byte

func LimitOrderTrancheUserAddressPrefix

func LimitOrderTrancheUserAddressPrefix(address string) []byte

func LimitOrderTrancheUserKey

func LimitOrderTrancheUserKey(address, trancheKey string) []byte

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 MustCalcPrice(relativeTickIndex int64) sdk.Dec

func MustCalcPrice0To1

func MustCalcPrice0To1(tickIndex int64) sdk.Dec

func MustCalcPrice1To0

func MustCalcPrice1To0(tickIndex int64) sdk.Dec

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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 SortTokens(tokenA, tokenB string) (string, string)

func TickIndexToBytes

func TickIndexToBytes(tickTakerToMaker int64) []byte

func TickLiquidityLimitOrderPrefix

func TickLiquidityLimitOrderPrefix(
	tradePairID *TradePairID,
	tickIndexTakerTomMaker int64,
) []byte

func TickLiquidityPrefix

func TickLiquidityPrefix(tradePairID *TradePairID) []byte

func TickUpdateEvent

func TickUpdateEvent(
	token0 string,
	token1 string,
	makerDenom string,
	tickIndex int64,
	reserves sdk.Int,
	otherAttrs ...sdk.Attribute,
) sdk.Event

func TimeBytes

func TimeBytes(timestamp time.Time) []byte

func WithdrawFilledLimitOrderEvent

func WithdrawFilledLimitOrderEvent(
	creator sdk.AccAddress,
	token0 string,
	token1 string,
	makerDenom string,
	tokenOut string,
	amountOut sdk.Int,
	trancheKey string,
) sdk.Event

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

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

type BranchableCache struct {
	Parent *BranchableCache
	Ctx    sdk.Context
	// contains filtered or unexported fields
}

func NewBranchableCache

func NewBranchableCache(ctx sdk.Context) *BranchableCache

func (*BranchableCache) Branch

func (bc *BranchableCache) Branch() *BranchableCache

func (*BranchableCache) WriteCache added in v0.4.0

func (bc *BranchableCache) WriteCache()

type DepositDenom

type DepositDenom struct {
	PairID *PairID
	Tick   int64
	Fee    uint64
}

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) MarshalTo

func (m *DepositOptions) MarshalTo(dAtA []byte) (int, 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"`
	SharesOwned     github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	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) MarshalTo

func (m *DepositRecord) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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 NewLimitOrderTranche(
	makerDenom string,
	takerDenom string,
	trancheKey string,
	tickIndex int64,
	reservesMakerDenom sdk.Int,
	reservesTakerDenom sdk.Int,
	totalMakerDenom sdk.Int,
	totalTakerDenom sdk.Int,
) (*LimitOrderTranche, error)

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 (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) IsExpired

func (t LimitOrderTranche) IsExpired(ctx sdk.Context) 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) Swap

func (t *LimitOrderTranche) Swap(maxAmountTakerIn sdk.Int, maxAmountMakerOut *sdk.Int) (
	inAmount sdk.Int,
	outAmount sdk.Int,
)

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"`
	SharesOwned           github_com_cosmos_cosmos_sdk_types.Int `` /* 134-byte string literal not displayed */
	SharesWithdrawn       github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */
	SharesCancelled       github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */
	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) MarshalTo

func (m *MsgDeposit) MarshalTo(dAtA []byte) (int, 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 NewMsgMultiHopSwap(
	creator string,
	receiever string,
	routesArr [][]string,
	amountIn sdk.Int,
	exitLimitPrice sdk.Dec,
	pickBestRoute bool,
) *MsgMultiHopSwap

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) MarshalTo

func (m *MsgMultiHopSwap) MarshalTo(dAtA []byte) (int, 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 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 (*MsgWithdrawFilledLimitOrderResponse) Size

func (*MsgWithdrawFilledLimitOrderResponse) 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 (*MsgWithdrawFilledLimitOrderResponse) XXX_Size

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"`
	SharesToRemove  []github_com_cosmos_cosmos_sdk_types.Int `` /* 143-byte string literal not displayed */
	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 NewMsgWithdrawal(creator,
	receiver,
	tokenA,
	tokenB string,
	sharesToRemove []sdk.Int,
	tickIndexes []int64,
	fees []uint64,
) *MsgWithdrawal

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) MarshalTo

func (m *MsgWithdrawal) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MultiHopRoute) MarshalTo(dAtA []byte) (int, 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 MustNewPairID(token0, token1 string) *PairID

func NewPairID added in v0.3.4

func NewPairID(token0, token1 string) (*PairID, error)

func NewPairIDFromCanonicalString added in v0.3.4

func NewPairIDFromCanonicalString(pairIDStr string) (*PairID, error)

func NewPairIDFromUnsorted added in v0.3.4

func NewPairIDFromUnsorted(tokenA, tokenB string) (*PairID, error)

func (*PairID) CanonicalString added in v0.3.4

func (p *PairID) CanonicalString() string

func (*PairID) Descriptor

func (*PairID) Descriptor() ([]byte, []int)

func (*PairID) GetToken0

func (m *PairID) GetToken0() string

func (*PairID) GetToken1

func (m *PairID) GetToken1() string

func (*PairID) Marshal

func (m *PairID) Marshal() (dAtA []byte, err error)

func (*PairID) MarshalTo

func (m *PairID) MarshalTo(dAtA []byte) (int, error)

func (*PairID) MarshalToSizedBuffer

func (m *PairID) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*PairID) MustOppositeToken

func (p *PairID) MustOppositeToken(token string) string

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 (p *PairID) OppositeToken(token string) (oppToken string, ok bool)

func (*PairID) ProtoMessage

func (*PairID) ProtoMessage()

func (*PairID) Reset

func (m *PairID) Reset()

func (*PairID) Size

func (m *PairID) Size() (n int)

func (*PairID) String

func (m *PairID) String() string

func (*PairID) Unmarshal

func (m *PairID) Unmarshal(dAtA []byte) error

func (*PairID) XXX_DiscardUnknown

func (m *PairID) XXX_DiscardUnknown()

func (*PairID) XXX_Marshal

func (m *PairID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PairID) XXX_Merge

func (m *PairID) XXX_Merge(src proto.Message)

func (*PairID) XXX_Size

func (m *PairID) XXX_Size() int

func (*PairID) XXX_Unmarshal

func (m *PairID) XXX_Unmarshal(b []byte) error

type Params

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() *Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() *Params

NewParams creates a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type Pool added in v0.3.4

type Pool struct {
	LowerTick0 *PoolReserves `protobuf:"bytes,1,opt,name=lower_tick0,json=lowerTick0,proto3" json:"lower_tick0,omitempty"`
	UpperTick1 *PoolReserves `protobuf:"bytes,2,opt,name=upper_tick1,json=upperTick1,proto3" json:"upper_tick1,omitempty"`
}

func NewPool added in v0.4.0

func NewPool(
	pairID *PairID,
	centerTickIndexNormalized int64,
	fee uint64,
) (*Pool, error)

func (*Pool) CalcResidualSharesMinted added in v0.3.4

func (p *Pool) CalcResidualSharesMinted(
	residualAmount0 sdk.Int,
	residualAmount1 sdk.Int,
) (sharesMinted sdk.Coin, err error)

func (*Pool) CalcSharesMinted added in v0.3.4

func (p *Pool) CalcSharesMinted(
	amount0 sdk.Int,
	amount1 sdk.Int,
	existingShares sdk.Int,
) (sharesMinted sdk.Coin)

func (*Pool) CenterTickIndex added in v0.3.4

func (p *Pool) CenterTickIndex() int64

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) Descriptor added in v0.4.0

func (*Pool) Descriptor() ([]byte, []int)

func (*Pool) Fee added in v0.3.4

func (p *Pool) Fee() uint64

func (*Pool) GetDepositDenom added in v0.3.4

func (p *Pool) GetDepositDenom() string

func (*Pool) GetLowerReserve0 added in v0.3.4

func (p *Pool) GetLowerReserve0() sdk.Int

func (*Pool) GetLowerTick0 added in v0.4.0

func (m *Pool) GetLowerTick0() *PoolReserves

func (*Pool) GetUpperReserve1 added in v0.3.4

func (p *Pool) GetUpperReserve1() sdk.Int

func (*Pool) GetUpperTick1 added in v0.4.0

func (m *Pool) GetUpperTick1() *PoolReserves

func (*Pool) Marshal added in v0.4.0

func (m *Pool) Marshal() (dAtA []byte, err error)

func (*Pool) MarshalTo added in v0.4.0

func (m *Pool) MarshalTo(dAtA []byte) (int, error)

func (*Pool) MarshalToSizedBuffer added in v0.4.0

func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Pool) MustCalcPrice1To0Center added in v0.3.4

func (p *Pool) MustCalcPrice1To0Center() sdk.Dec

func (*Pool) Price added in v0.3.4

func (p *Pool) Price(tradePairID *TradePairID) sdk.Dec

func (*Pool) ProtoMessage added in v0.4.0

func (*Pool) ProtoMessage()

func (*Pool) RedeemValue added in v0.3.4

func (p *Pool) RedeemValue(sharesToRemove, totalShares sdk.Int) (outAmount0, outAmount1 sdk.Int)

func (*Pool) Reset added in v0.4.0

func (m *Pool) Reset()

func (*Pool) Size added in v0.4.0

func (m *Pool) Size() (n int)

func (*Pool) String added in v0.4.0

func (m *Pool) String() string

func (*Pool) Swap added in v0.3.4

func (p *Pool) Swap(
	tradePairID *TradePairID,
	maxAmountTakerIn sdk.Int,
	maxAmountMakerOut *sdk.Int,
) (amountTakerIn, amountMakerOut sdk.Int)

func (*Pool) Unmarshal added in v0.4.0

func (m *Pool) Unmarshal(dAtA []byte) error

func (*Pool) Withdraw added in v0.3.4

func (p *Pool) Withdraw(sharesToRemove, totalShares sdk.Int) (outAmount0, outAmount1 sdk.Int)

func (*Pool) XXX_DiscardUnknown added in v0.4.0

func (m *Pool) XXX_DiscardUnknown()

func (*Pool) XXX_Marshal added in v0.4.0

func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pool) XXX_Merge added in v0.4.0

func (m *Pool) XXX_Merge(src proto.Message)

func (*Pool) XXX_Size added in v0.4.0

func (m *Pool) XXX_Size() int

func (*Pool) XXX_Unmarshal added in v0.4.0

func (m *Pool) XXX_Unmarshal(b []byte) error

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

func (*PoolLiquidity) Swap added in v0.3.4

func (pl *PoolLiquidity) Swap(
	maxAmountTakerDenomIn sdk.Int,
	maxAmountMakerDenomOut *sdk.Int,
) (inAmount, outAmount sdk.Int)

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) MarshalTo

func (m *PoolReserves) MarshalTo(dAtA []byte) (int, 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 (*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) Reset

func (*QueryAllInactiveLimitOrderTrancheRequest) Size

func (*QueryAllInactiveLimitOrderTrancheRequest) String

func (*QueryAllInactiveLimitOrderTrancheRequest) Unmarshal

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 (*QueryAllInactiveLimitOrderTrancheRequest) XXX_Size

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 (*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) Reset

func (*QueryAllInactiveLimitOrderTrancheResponse) Size

func (*QueryAllInactiveLimitOrderTrancheResponse) String

func (*QueryAllInactiveLimitOrderTrancheResponse) Unmarshal

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 (*QueryAllInactiveLimitOrderTrancheResponse) XXX_Size

func (*QueryAllInactiveLimitOrderTrancheResponse) XXX_Unmarshal

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 (*QueryAllLimitOrderTrancheRequest) GetPairID

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 (*QueryAllLimitOrderTrancheRequest) Size

func (m *QueryAllLimitOrderTrancheRequest) Size() (n int)

func (*QueryAllLimitOrderTrancheRequest) 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 (*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 (*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 (*QueryAllLimitOrderTrancheResponse) Size

func (m *QueryAllLimitOrderTrancheResponse) Size() (n int)

func (*QueryAllLimitOrderTrancheResponse) 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 (*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 (*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 (*QueryAllLimitOrderTrancheUserRequest) Size

func (*QueryAllLimitOrderTrancheUserRequest) 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 (*QueryAllLimitOrderTrancheUserRequest) XXX_Size

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 (*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 (*QueryAllLimitOrderTrancheUserResponse) Size

func (*QueryAllLimitOrderTrancheUserResponse) 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 (*QueryAllLimitOrderTrancheUserResponse) XXX_Size

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 (*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 (*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 (*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 (*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 (*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 (*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 (*QueryAllUserLimitOrdersResponse) Size

func (m *QueryAllUserLimitOrdersResponse) Size() (n int)

func (*QueryAllUserLimitOrdersResponse) 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)
	// Queries the simulated result of a multihop swap
	EstimateMultiHopSwap(ctx context.Context, in *QueryEstimateMultiHopSwapRequest, opts ...grpc.CallOption) (*QueryEstimateMultiHopSwapResponse, error)
	// Queries the simulated result of a multihop swap
	EstimatePlaceLimitOrder(ctx context.Context, in *QueryEstimatePlaceLimitOrderRequest, opts ...grpc.CallOption) (*QueryEstimatePlaceLimitOrderResponse, error)
	// Queries the pool for a pair, tick and fee
	Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, 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 QueryEstimateMultiHopSwapRequest added in v0.4.0

type QueryEstimateMultiHopSwapRequest 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 (*QueryEstimateMultiHopSwapRequest) Descriptor added in v0.4.0

func (*QueryEstimateMultiHopSwapRequest) Descriptor() ([]byte, []int)

func (*QueryEstimateMultiHopSwapRequest) GetCreator added in v0.4.0

func (m *QueryEstimateMultiHopSwapRequest) GetCreator() string

func (*QueryEstimateMultiHopSwapRequest) GetPickBestRoute added in v0.4.0

func (m *QueryEstimateMultiHopSwapRequest) GetPickBestRoute() bool

func (*QueryEstimateMultiHopSwapRequest) GetReceiver added in v0.4.0

func (m *QueryEstimateMultiHopSwapRequest) GetReceiver() string

func (*QueryEstimateMultiHopSwapRequest) GetRoutes added in v0.4.0

func (*QueryEstimateMultiHopSwapRequest) Marshal added in v0.4.0

func (m *QueryEstimateMultiHopSwapRequest) Marshal() (dAtA []byte, err error)

func (*QueryEstimateMultiHopSwapRequest) MarshalTo added in v0.4.0

func (m *QueryEstimateMultiHopSwapRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryEstimateMultiHopSwapRequest) MarshalToSizedBuffer added in v0.4.0

func (m *QueryEstimateMultiHopSwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEstimateMultiHopSwapRequest) ProtoMessage added in v0.4.0

func (*QueryEstimateMultiHopSwapRequest) ProtoMessage()

func (*QueryEstimateMultiHopSwapRequest) Reset added in v0.4.0

func (*QueryEstimateMultiHopSwapRequest) Size added in v0.4.0

func (m *QueryEstimateMultiHopSwapRequest) Size() (n int)

func (*QueryEstimateMultiHopSwapRequest) String added in v0.4.0

func (*QueryEstimateMultiHopSwapRequest) Unmarshal added in v0.4.0

func (m *QueryEstimateMultiHopSwapRequest) Unmarshal(dAtA []byte) error

func (*QueryEstimateMultiHopSwapRequest) XXX_DiscardUnknown added in v0.4.0

func (m *QueryEstimateMultiHopSwapRequest) XXX_DiscardUnknown()

func (*QueryEstimateMultiHopSwapRequest) XXX_Marshal added in v0.4.0

func (m *QueryEstimateMultiHopSwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEstimateMultiHopSwapRequest) XXX_Merge added in v0.4.0

func (*QueryEstimateMultiHopSwapRequest) XXX_Size added in v0.4.0

func (m *QueryEstimateMultiHopSwapRequest) XXX_Size() int

func (*QueryEstimateMultiHopSwapRequest) XXX_Unmarshal added in v0.4.0

func (m *QueryEstimateMultiHopSwapRequest) XXX_Unmarshal(b []byte) error

type QueryEstimateMultiHopSwapResponse added in v0.4.0

type QueryEstimateMultiHopSwapResponse 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 (*QueryEstimateMultiHopSwapResponse) Descriptor added in v0.4.0

func (*QueryEstimateMultiHopSwapResponse) Descriptor() ([]byte, []int)

func (*QueryEstimateMultiHopSwapResponse) Marshal added in v0.4.0

func (m *QueryEstimateMultiHopSwapResponse) Marshal() (dAtA []byte, err error)

func (*QueryEstimateMultiHopSwapResponse) MarshalTo added in v0.4.0

func (m *QueryEstimateMultiHopSwapResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryEstimateMultiHopSwapResponse) MarshalToSizedBuffer added in v0.4.0

func (m *QueryEstimateMultiHopSwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEstimateMultiHopSwapResponse) ProtoMessage added in v0.4.0

func (*QueryEstimateMultiHopSwapResponse) ProtoMessage()

func (*QueryEstimateMultiHopSwapResponse) Reset added in v0.4.0

func (*QueryEstimateMultiHopSwapResponse) Size added in v0.4.0

func (m *QueryEstimateMultiHopSwapResponse) Size() (n int)

func (*QueryEstimateMultiHopSwapResponse) String added in v0.4.0

func (*QueryEstimateMultiHopSwapResponse) Unmarshal added in v0.4.0

func (m *QueryEstimateMultiHopSwapResponse) Unmarshal(dAtA []byte) error

func (*QueryEstimateMultiHopSwapResponse) XXX_DiscardUnknown added in v0.4.0

func (m *QueryEstimateMultiHopSwapResponse) XXX_DiscardUnknown()

func (*QueryEstimateMultiHopSwapResponse) XXX_Marshal added in v0.4.0

func (m *QueryEstimateMultiHopSwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEstimateMultiHopSwapResponse) XXX_Merge added in v0.4.0

func (*QueryEstimateMultiHopSwapResponse) XXX_Size added in v0.4.0

func (m *QueryEstimateMultiHopSwapResponse) XXX_Size() int

func (*QueryEstimateMultiHopSwapResponse) XXX_Unmarshal added in v0.4.0

func (m *QueryEstimateMultiHopSwapResponse) XXX_Unmarshal(b []byte) error

type QueryEstimatePlaceLimitOrderRequest added in v0.4.0

type QueryEstimatePlaceLimitOrderRequest 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,6,opt,name=amountIn,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amountIn" yaml:"amountIn"`
	OrderType        LimitOrderType                         `protobuf:"varint,7,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,8,opt,name=expirationTime,proto3,stdtime" json:"expirationTime,omitempty"`
	MaxAmountOut   *github_com_cosmos_cosmos_sdk_types.Int `` /* 137-byte string literal not displayed */
}

func (*QueryEstimatePlaceLimitOrderRequest) Descriptor added in v0.4.0

func (*QueryEstimatePlaceLimitOrderRequest) Descriptor() ([]byte, []int)

func (*QueryEstimatePlaceLimitOrderRequest) GetCreator added in v0.4.0

func (*QueryEstimatePlaceLimitOrderRequest) GetExpirationTime added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderRequest) GetExpirationTime() *time.Time

func (*QueryEstimatePlaceLimitOrderRequest) GetOrderType added in v0.4.0

func (*QueryEstimatePlaceLimitOrderRequest) GetReceiver added in v0.4.0

func (*QueryEstimatePlaceLimitOrderRequest) GetTickIndexInToOut added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderRequest) GetTickIndexInToOut() int64

func (*QueryEstimatePlaceLimitOrderRequest) GetTokenIn added in v0.4.0

func (*QueryEstimatePlaceLimitOrderRequest) GetTokenOut added in v0.4.0

func (*QueryEstimatePlaceLimitOrderRequest) Marshal added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderRequest) Marshal() (dAtA []byte, err error)

func (*QueryEstimatePlaceLimitOrderRequest) MarshalTo added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryEstimatePlaceLimitOrderRequest) MarshalToSizedBuffer added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEstimatePlaceLimitOrderRequest) ProtoMessage added in v0.4.0

func (*QueryEstimatePlaceLimitOrderRequest) ProtoMessage()

func (*QueryEstimatePlaceLimitOrderRequest) Reset added in v0.4.0

func (*QueryEstimatePlaceLimitOrderRequest) Size added in v0.4.0

func (*QueryEstimatePlaceLimitOrderRequest) String added in v0.4.0

func (*QueryEstimatePlaceLimitOrderRequest) Unmarshal added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderRequest) Unmarshal(dAtA []byte) error

func (*QueryEstimatePlaceLimitOrderRequest) XXX_DiscardUnknown added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderRequest) XXX_DiscardUnknown()

func (*QueryEstimatePlaceLimitOrderRequest) XXX_Marshal added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEstimatePlaceLimitOrderRequest) XXX_Merge added in v0.4.0

func (*QueryEstimatePlaceLimitOrderRequest) XXX_Size added in v0.4.0

func (*QueryEstimatePlaceLimitOrderRequest) XXX_Unmarshal added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderRequest) XXX_Unmarshal(b []byte) error

type QueryEstimatePlaceLimitOrderResponse added in v0.4.0

type QueryEstimatePlaceLimitOrderResponse struct {
	// Total amount of coin used for the limit order
	// You can derive makerLimitInCoin using the equation: totalInCoin = swapInCoin + makerLimitInCoin
	TotalInCoin github_com_cosmos_cosmos_sdk_types.Coin `` /* 135-byte string literal not displayed */
	// Total amount of the token in that was immediately swapped for swapOutCoin
	SwapInCoin github_com_cosmos_cosmos_sdk_types.Coin `` /* 132-byte string literal not displayed */
	// 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
	SwapOutCoin github_com_cosmos_cosmos_sdk_types.Coin `` /* 135-byte string literal not displayed */
}

func (*QueryEstimatePlaceLimitOrderResponse) Descriptor added in v0.4.0

func (*QueryEstimatePlaceLimitOrderResponse) Descriptor() ([]byte, []int)

func (*QueryEstimatePlaceLimitOrderResponse) Marshal added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderResponse) Marshal() (dAtA []byte, err error)

func (*QueryEstimatePlaceLimitOrderResponse) MarshalTo added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryEstimatePlaceLimitOrderResponse) MarshalToSizedBuffer added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryEstimatePlaceLimitOrderResponse) ProtoMessage added in v0.4.0

func (*QueryEstimatePlaceLimitOrderResponse) ProtoMessage()

func (*QueryEstimatePlaceLimitOrderResponse) Reset added in v0.4.0

func (*QueryEstimatePlaceLimitOrderResponse) Size added in v0.4.0

func (*QueryEstimatePlaceLimitOrderResponse) String added in v0.4.0

func (*QueryEstimatePlaceLimitOrderResponse) Unmarshal added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderResponse) Unmarshal(dAtA []byte) error

func (*QueryEstimatePlaceLimitOrderResponse) XXX_DiscardUnknown added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderResponse) XXX_DiscardUnknown()

func (*QueryEstimatePlaceLimitOrderResponse) XXX_Marshal added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryEstimatePlaceLimitOrderResponse) XXX_Merge added in v0.4.0

func (*QueryEstimatePlaceLimitOrderResponse) XXX_Size added in v0.4.0

func (*QueryEstimatePlaceLimitOrderResponse) XXX_Unmarshal added in v0.4.0

func (m *QueryEstimatePlaceLimitOrderResponse) XXX_Unmarshal(b []byte) error

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 (*QueryGetInactiveLimitOrderTrancheRequest) GetTickIndex

func (*QueryGetInactiveLimitOrderTrancheRequest) GetTokenIn

func (*QueryGetInactiveLimitOrderTrancheRequest) GetTrancheKey

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) Reset

func (*QueryGetInactiveLimitOrderTrancheRequest) Size

func (*QueryGetInactiveLimitOrderTrancheRequest) String

func (*QueryGetInactiveLimitOrderTrancheRequest) Unmarshal

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 (*QueryGetInactiveLimitOrderTrancheRequest) XXX_Size

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) Reset

func (*QueryGetInactiveLimitOrderTrancheResponse) Size

func (*QueryGetInactiveLimitOrderTrancheResponse) String

func (*QueryGetInactiveLimitOrderTrancheResponse) Unmarshal

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 (*QueryGetInactiveLimitOrderTrancheResponse) XXX_Size

func (*QueryGetInactiveLimitOrderTrancheResponse) XXX_Unmarshal

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 (*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 (*QueryGetLimitOrderTrancheRequest) Size

func (m *QueryGetLimitOrderTrancheRequest) Size() (n int)

func (*QueryGetLimitOrderTrancheRequest) 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 (*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 (*QueryGetLimitOrderTrancheResponse) Size

func (m *QueryGetLimitOrderTrancheResponse) Size() (n int)

func (*QueryGetLimitOrderTrancheResponse) 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 (*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 (*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 (*QueryGetLimitOrderTrancheUserRequest) Size

func (*QueryGetLimitOrderTrancheUserRequest) 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 (*QueryGetLimitOrderTrancheUserRequest) XXX_Size

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 (*QueryGetLimitOrderTrancheUserResponse) Size

func (*QueryGetLimitOrderTrancheUserResponse) 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 (*QueryGetLimitOrderTrancheUserResponse) XXX_Size

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 (*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 (*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 (*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 QueryPoolRequest added in v0.4.0

type QueryPoolRequest 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"`
	Fee       uint64 `protobuf:"varint,3,opt,name=fee,proto3" json:"fee,omitempty"`
}

func (*QueryPoolRequest) Descriptor added in v0.4.0

func (*QueryPoolRequest) Descriptor() ([]byte, []int)

func (*QueryPoolRequest) GetFee added in v0.4.0

func (m *QueryPoolRequest) GetFee() uint64

func (*QueryPoolRequest) GetPairID added in v0.4.0

func (m *QueryPoolRequest) GetPairID() string

func (*QueryPoolRequest) GetTickIndex added in v0.4.0

func (m *QueryPoolRequest) GetTickIndex() int64

func (*QueryPoolRequest) Marshal added in v0.4.0

func (m *QueryPoolRequest) Marshal() (dAtA []byte, err error)

func (*QueryPoolRequest) MarshalTo added in v0.4.0

func (m *QueryPoolRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryPoolRequest) MarshalToSizedBuffer added in v0.4.0

func (m *QueryPoolRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPoolRequest) ProtoMessage added in v0.4.0

func (*QueryPoolRequest) ProtoMessage()

func (*QueryPoolRequest) Reset added in v0.4.0

func (m *QueryPoolRequest) Reset()

func (*QueryPoolRequest) Size added in v0.4.0

func (m *QueryPoolRequest) Size() (n int)

func (*QueryPoolRequest) String added in v0.4.0

func (m *QueryPoolRequest) String() string

func (*QueryPoolRequest) Unmarshal added in v0.4.0

func (m *QueryPoolRequest) Unmarshal(dAtA []byte) error

func (*QueryPoolRequest) XXX_DiscardUnknown added in v0.4.0

func (m *QueryPoolRequest) XXX_DiscardUnknown()

func (*QueryPoolRequest) XXX_Marshal added in v0.4.0

func (m *QueryPoolRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPoolRequest) XXX_Merge added in v0.4.0

func (m *QueryPoolRequest) XXX_Merge(src proto.Message)

func (*QueryPoolRequest) XXX_Size added in v0.4.0

func (m *QueryPoolRequest) XXX_Size() int

func (*QueryPoolRequest) XXX_Unmarshal added in v0.4.0

func (m *QueryPoolRequest) XXX_Unmarshal(b []byte) error

type QueryPoolResponse added in v0.4.0

type QueryPoolResponse struct {
	Pool *Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"`
}

func (*QueryPoolResponse) Descriptor added in v0.4.0

func (*QueryPoolResponse) Descriptor() ([]byte, []int)

func (*QueryPoolResponse) GetPool added in v0.4.0

func (m *QueryPoolResponse) GetPool() *Pool

func (*QueryPoolResponse) Marshal added in v0.4.0

func (m *QueryPoolResponse) Marshal() (dAtA []byte, err error)

func (*QueryPoolResponse) MarshalTo added in v0.4.0

func (m *QueryPoolResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryPoolResponse) MarshalToSizedBuffer added in v0.4.0

func (m *QueryPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryPoolResponse) ProtoMessage added in v0.4.0

func (*QueryPoolResponse) ProtoMessage()

func (*QueryPoolResponse) Reset added in v0.4.0

func (m *QueryPoolResponse) Reset()

func (*QueryPoolResponse) Size added in v0.4.0

func (m *QueryPoolResponse) Size() (n int)

func (*QueryPoolResponse) String added in v0.4.0

func (m *QueryPoolResponse) String() string

func (*QueryPoolResponse) Unmarshal added in v0.4.0

func (m *QueryPoolResponse) Unmarshal(dAtA []byte) error

func (*QueryPoolResponse) XXX_DiscardUnknown added in v0.4.0

func (m *QueryPoolResponse) XXX_DiscardUnknown()

func (*QueryPoolResponse) XXX_Marshal added in v0.4.0

func (m *QueryPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryPoolResponse) XXX_Merge added in v0.4.0

func (m *QueryPoolResponse) XXX_Merge(src proto.Message)

func (*QueryPoolResponse) XXX_Size added in v0.4.0

func (m *QueryPoolResponse) XXX_Size() int

func (*QueryPoolResponse) XXX_Unmarshal added in v0.4.0

func (m *QueryPoolResponse) 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)
	// Queries the simulated result of a multihop swap
	EstimateMultiHopSwap(context.Context, *QueryEstimateMultiHopSwapRequest) (*QueryEstimateMultiHopSwapResponse, error)
	// Queries the simulated result of a multihop swap
	EstimatePlaceLimitOrder(context.Context, *QueryEstimatePlaceLimitOrderRequest) (*QueryEstimatePlaceLimitOrderResponse, error)
	// Queries the pool for a pair, tick and fee
	Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, 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) MarshalTo

func (m *TickLiquidity) MarshalTo(dAtA []byte) (int, 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 TickLiquidityKey interface {
	KeyMarshal() []byte
	KeyUnmarshal([]byte) error
	PriceTakerToMaker() (priceTakerToMaker sdk.Dec, err error)
}

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) Deposit

func (*UnimplementedMsgServer) MultiHopSwap

func (*UnimplementedMsgServer) PlaceLimitOrder

func (*UnimplementedMsgServer) WithdrawFilledLimitOrder

func (*UnimplementedMsgServer) Withdrawal

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) EstimateMultiHopSwap added in v0.4.0

func (*UnimplementedQueryServer) EstimatePlaceLimitOrder added in v0.4.0

func (*UnimplementedQueryServer) GetUserPositions

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Pool added in v0.4.0

func (*UnimplementedQueryServer) PoolReserves

func (*UnimplementedQueryServer) PoolReservesAll

func (*UnimplementedQueryServer) TickLiquidityAll

func (*UnimplementedQueryServer) UserDepositsAll

func (*UnimplementedQueryServer) UserLimitOrdersAll

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) MarshalTo

func (m *UserPositions) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL