types

package
v16.0.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// Precomputed values for min and max tick
	MinInitializedTick, MaxTick int64 = -108000000, 342000000
	// If we consume all liquidity and cross the min initialized tick,
	// our current tick will equal to MinInitializedTick - 1 with zero liquidity.
	// However, note that this tick cannot be crossed. If current tick
	// equals to this tick, it is only possible to swap in the right (one for zero)
	// direction.
	// Note, that this behavior is different from MaxTick since our "active range"
	// invariant is [lower tick, uppper tick). As a result, when we consume all lower
	// tick liquiditty, we must cross it and get kicked out of it.
	MinCurrentTick                int64 = MinInitializedTick - 1
	ExponentAtPriceOne            int64 = -6
	ConcentratedGasFeeForSwap           = 10_000
	BaseGasFeeForNewIncentive           = 10_000
	BaseGasFeeForInitializingTick       = 10_000
)
View Source
const (
	TypeEvtCreatePosition            = "create_position"
	TypeEvtWithdrawPosition          = "withdraw_position"
	TypeEvtAddToPosition             = "add_to_position"
	TypeEvtTotalCollectSpreadRewards = "total_collect_spread_rewards"
	TypeEvtCollectSpreadRewards      = "collect_spread_rewards"
	TypeEvtTotalCollectIncentives    = "total_collect_incentives"
	TypeEvtCollectIncentives         = "collect_incentives"
	TypeEvtCreateIncentive           = "create_incentive"
	TypeEvtFungifyChargedPosition    = "fungify_charged_position"
	TypeEvtMoveRewards               = "move_rewards"
	TypeEvtCrossTick                 = "cross_tick"

	AttributeValueCategory                                         = ModuleName
	AttributeKeyPositionId                                         = "position_id"
	AttributeKeyNewPositionId                                      = "new_position_id"
	AttributeKeyPoolId                                             = "pool_id"
	AttributeAmount0                                               = "amount0"
	AttributeAmount1                                               = "amount1"
	AttributeKeySpreadFactor                                       = "spread_factor"
	AttributeKeyTokensIn                                           = "tokens_in"
	AttributeKeyTokensOut                                          = "tokens_out"
	AttributeKeyForfeitedTokens                                    = "forfeited_tokens"
	AttributeLiquidity                                             = "liquidity"
	AttributeJoinTime                                              = "join_time"
	AttributeLowerTick                                             = "lower_tick"
	AttributeUpperTick                                             = "upper_tick"
	TypeEvtPoolJoined                                              = "pool_joined"
	TypeEvtPoolExited                                              = "pool_exited"
	TypeEvtTokenSwapped                                            = "token_swapped"
	AttributeIncentiveCoin                                         = "incentive_coin"
	AttributeIncentiveEmissionRate                                 = "incentive_emission_rate"
	AttributeIncentiveStartTime                                    = "incentive_start_time"
	AttributeIncentiveMinUptime                                    = "incentive_min_uptime"
	AttributeInputPositionIds                                      = "input_position_ids"
	AttributeOutputPositionId                                      = "output_position_id"
	AttributePoolAccumName                                         = "pool_accum_name"
	AttributeOldPositionAccumName                                  = "old_position_accum_name"
	AttributeNewPositionAccumName                                  = "new_position_accum_name"
	AttributeGlobalGrowth                                          = "global_growth"
	AttributeInsideGrowth                                          = "inside_growth"
	AttributeMovedRewards                                          = "moved_rewards"
	AttributeClaimableIncentives                                   = "claimable_incentives"
	AttributeKeyTickIndex                                          = "tick_idx"
	AttributeKeySpreadRewardGrowthOppositeDirectionOfLastTraversal = "spread_reward_growth"
	AttributeKeyUptimeGrowthOppositeDirectionOfLastTraversal       = "uptime_growth"
)
View Source
const (
	ProposalTypeCreateConcentratedLiquidityPool = "CreateConcentratedLiquidityPool"
	ProposalTypeTickSpacingDecrease             = "TickSpacingDecrease"
)
View Source
const (
	ModuleName = "concentratedliquidity"
	RouterKey  = ModuleName

	StoreKey     = ModuleName
	KeySeparator = "|"

	ConcentratedLiquidityTokenPrefix = "cl/pool"
)
View Source
const (
	TypeMsgCreatePosition          = "create-position"
	TypeAddToPosition              = "add-to-position"
	TypeMsgWithdrawPosition        = "withdraw-position"
	TypeMsgCollectSpreadRewards    = "collect-spread-rewards"
	TypeMsgCollectIncentives       = "collect-incentives"
	TypeMsgFungifyChargedPositions = "fungify-charged-positions"
)

constants.

Variables

View Source
var (
	MaxSpotPrice       = sdk.MustNewDecFromStr("100000000000000000000000000000000000000")
	MinSpotPrice       = sdk.MustNewDecFromStr("0.000000000001") // 10^-12
	MaxSqrtPrice       = osmomath.MustMonotonicSqrt(MaxSpotPrice)
	MinSqrtPrice       = osmomath.MustMonotonicSqrt(MinSpotPrice)
	MaxSqrtPriceBigDec = osmomath.BigDecFromSDKDec(MaxSqrtPrice)
	MinSqrtPriceBigDec = osmomath.BigDecFromSDKDec(MinSqrtPrice)
	// Supported uptimes preset to 1 ns, 1 min, 1 hr, 1D, 1W, 2W
	SupportedUptimes        = []time.Duration{time.Nanosecond, time.Minute, time.Hour, time.Hour * 24, time.Hour * 24 * 7, time.Hour * 24 * 7 * 2}
	AuthorizedTickSpacing   = []uint64{1, 10, 100, 1000}
	AuthorizedSpreadFactors = []sdk.Dec{
		sdk.ZeroDec(),
		sdk.MustNewDecFromStr("0.0001"),
		sdk.MustNewDecFromStr("0.0005"),
		sdk.MustNewDecFromStr("0.001"),
		sdk.MustNewDecFromStr("0.002"),
		sdk.MustNewDecFromStr("0.003"),
		sdk.MustNewDecFromStr("0.005"),
	}
	DefaultBalancerSharesDiscount = sdk.MustNewDecFromStr("0.05")
	// By default, we only authorize one nanosecond (one block) uptime as an option
	DefaultAuthorizedUptimes = []time.Duration{time.Nanosecond}
)
View Source
var (
	ErrKeyNotFound                        = errors.New("key not found")
	ErrValueParse                         = errors.New("value parse error")
	ErrPositionNotFound                   = errors.New("position not found")
	ErrZeroPositionId                     = errors.New("invalid position id, cannot be 0")
	ErrPermissionlessPoolCreationDisabled = errors.New("permissionless pool creation is disabled for the concentrated liquidity module")
	ErrZeroLiquidity                      = errors.New("liquidity cannot be 0")
	ErrNextTickInfoNil                    = errors.New("next tick info cannot be nil")
	ErrPoolNil                            = errors.New("pool cannot be nil")
)
View Source
var (
	ErrInvalidLengthGov        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGov          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthIncentiveRecord        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowIncentiveRecord          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupIncentiveRecord = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	TickPrefix      = []byte{0x01}
	PositionPrefix  = []byte{0x02}
	PoolPrefix      = []byte{0x03}
	IncentivePrefix = []byte{0x04}

	// n.b. negative prefix must be less than the positive prefix for proper iteration
	TickNegativePrefix = []byte{0x05}
	TickPositivePrefix = []byte{0x06}

	KeyNextGlobalPositionId = []byte{0x07}

	PositionIdPrefix                      = []byte{0x08}
	PoolPositionPrefix                    = []byte{0x09}
	SpreadRewardPositionAccumulatorPrefix = []byte{0x0A}
	KeySpreadRewardPoolAccumulatorPrefix  = []byte{0x0B}
	UptimeAccumulatorPrefix               = []byte{0x0C}
	PositionToLockPrefix                  = []byte{0x0D}
	FullRangeLiquidityPrefix              = []byte{0x0E}
	BalancerFullRangePrefix               = []byte{0x0F}
	LockToPositionPrefix                  = []byte{0x10}
	ConcentratedLockPrefix                = []byte{0x11}

	KeyNextGlobalIncentiveRecordId = []byte{0x12}

	KeyTotalLiquidity = []byte{0x13}

	// TickPrefix + pool id
	KeyTickPrefixByPoolIdLengthBytes = len(TickPrefix) + uint64ByteSize
	// TickPrefix + pool id + sign byte(negative / positive prefix) + tick index: 18bytes in total
	KeyTickLengthBytes = KeyTickPrefixByPoolIdLengthBytes + 1 + uint64ByteSize
)

Key prefixes

View Source
var (
	KeyAuthorizedTickSpacing              = []byte("AuthorizedTickSpacing")
	KeyAuthorizedSpreadFactors            = []byte("AuthorizedSpreadFactors")
	KeyDiscountRate                       = []byte("DiscountRate")
	KeyAuthorizedQuoteDenoms              = []byte("AuthorizedQuoteDenoms")
	KeyAuthorizedUptimes                  = []byte("AuthorizedUptimes")
	KeyIsPermisionlessPoolCreationEnabled = []byte("IsPermisionlessPoolCreationEnabled")
)

Parameter store keys.

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 (
	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 (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func GetConcentratedLockupDenomFromPoolId

func GetConcentratedLockupDenomFromPoolId(poolId uint64) string

GetConcentratedLockupDenomFromPoolId returns the concentrated lockup denom for a given pool id.

func GetDenomPrefix

func GetDenomPrefix(denom string) []byte

func GetPoolIdFromShareDenom

func GetPoolIdFromShareDenom(denom string) (uint64, error)

Helper Functions

func KeyAddressAndPoolId

func KeyAddressAndPoolId(addr sdk.AccAddress, poolId uint64) []byte

KeyAddressAndPoolId returns the prefix key used to create KeyAddressPoolIdPositionId, which only includes addr + pool id. This key can be used to iterate over users positions for a specific pool.

func KeyAddressPoolIdPositionId

func KeyAddressPoolIdPositionId(addr sdk.AccAddress, poolId uint64, positionId uint64) []byte

KeyAddressPoolIdPositionId returns the full key needed to store the position id for given addr + pool id + position id combination.

func KeyBalancerFullRange

func KeyBalancerFullRange(clPoolId, balancerPoolId, uptimeIndex uint64) []byte

func KeyFullRangeLiquidityPrefix

func KeyFullRangeLiquidityPrefix(poolId uint64) []byte

KeyFullRangeLiquidityPrefix returns the prefix used to keep track of full range liquidity for each pool.

func KeyIncentiveRecord

func KeyIncentiveRecord(poolId uint64, minUptimeIndex int, id uint64) []byte

Incentive Prefix Keys KeyIncentiveRecord is the key used to store incentive records using the combination of pool id + min uptime index + incentive record id.

func KeyLockIdForPositionId

func KeyLockIdForPositionId(lockId uint64) []byte

KeyLockIdForPositionId returns the key consisted of (KeyLockIdForPositionId | lockId)

func KeyPool

func KeyPool(poolId uint64) []byte

Pool Prefix Keys KeyPool is used to map a pool id to a pool struct

func KeyPoolIncentiveRecords

func KeyPoolIncentiveRecords(poolId uint64) []byte

KeyPoolIncentiveRecords returns the prefix key for incentives records using given pool id. This can be used to iterate over all incentive records for the pool.

func KeyPoolPosition

func KeyPoolPosition(poolId uint64) []byte

func KeyPoolPositionPositionId

func KeyPoolPositionPositionId(poolId uint64, positionId uint64) []byte

func KeyPositionId

func KeyPositionId(positionId uint64) []byte

KeyPositionId returns the prefix the key consisted of (PositionIdPrefix | position Id) and is used to store position info.

func KeyPositionIdForLock

func KeyPositionIdForLock(positionId uint64) []byte

KeyPositionIdForLock returns the key consisted of (PositionToLockPrefix | position Id)

func KeySpreadRewardPoolAccumulator

func KeySpreadRewardPoolAccumulator(poolId uint64) string

This is guaranteed to not contain "||" so it can be used as an accumulator name.

func KeySpreadRewardPositionAccumulator

func KeySpreadRewardPositionAccumulator(positionId uint64) string

func KeyTick

func KeyTick(poolId uint64, tickIndex int64) []byte

KeyTick generates a tick key for a given pool and tick index by concatenating the tick prefix key (generated using keyTickPrefixByPoolIdPrealloc) with the sign prefix(TickNegativePrefix / TickPositivePrefix) and the tick index bytes. This function is used to create unique keys for ticks and store specified tick info for each pool.

Parameters: - poolId (uint64): The pool id for which the tick key is to be generated. - tickIndex (int64): The tick index for which the tick key is to be generated.

Returns: - []byte: A byte slice representing the generated tick key.

func KeyTickPrefixByPoolId

func KeyTickPrefixByPoolId(poolId uint64) []byte

KeyTickPrefixByPoolId generates a tick prefix key for a given pool by calling the keyTickPrefixByPoolIdPrealloc function with the appropriate pre-allocated memory size. This key indicates the first prefix bytes of the KeyTick and can be used to iterate over ticks for the given pool id. The resulting tick prefix key is used as a base for generating unique tick keys within a pool.

Parameters: - poolId (uint64): The pool id for which the tick prefix key is to be generated.

Returns: - []byte: A byte slice representing the generated tick prefix key.

func KeyUptimeAccumulator

func KeyUptimeAccumulator(poolId uint64, uptimeIndex uint64) string

Uptme Accumulator Prefix Keys This is guaranteed to not contain "||" so it can be used as an accumulator name.

func KeyUptimeIncentiveRecords

func KeyUptimeIncentiveRecords(poolId uint64, minUptimeIndex int) []byte

KeyUptimeIncentiveRecords returns the prefix key for incentives records using the combination of pool id + min uptime index. This can be used to iterate over incentive records for the pool id + min upttime index combination.

func KeyUserPositions

func KeyUserPositions(addr sdk.AccAddress) []byte

KeyUserPositions returns the prefix key used to create KeyAddressPoolIdPositionId, which only includes the addr. This key can be used to iterate over all positions that a specific address has.

func MustGetPoolIdFromShareDenom

func MustGetPoolIdFromShareDenom(denom string) uint64

func NewCreateConcentratedLiquidityPoolsProposal

func NewCreateConcentratedLiquidityPoolsProposal(title, description string, records []PoolRecord) govtypes.Content

NewCreateConcentratedLiquidityPoolsProposal returns a new instance of a create concentrated liquidity pool proposal struct.

func NewTickSpacingDecreaseProposal

func NewTickSpacingDecreaseProposal(title, description string, records []PoolIdToTickSpacingRecord) govtypes.Content

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamTable for concentrated-liquidity module.

func PositionIdForLockIdKeys

func PositionIdForLockIdKeys(positionId, lockId uint64) (positionIdToLockIdKey []byte, lockIdToPositionIdKey []byte)

PositionId<>LockId and LockId<>PositionId Prefix Keys

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func TickIndexFromBytes

func TickIndexFromBytes(bz []byte) (int64, error)

TickIndexFromBytes converts an encoded tick index to an int64 value. It returns an error if the encoded tick has invalid length.

func TickIndexToBytes

func TickIndexToBytes(tickIndex int64) []byte

TickIndexToBytes converts a tick index to a byte slice. The encoding is: - Negative tick indexes are prefixed with a byte `b` - Positive tick indexes are prefixed with a byte `b + 1`. - Then we encode sign || BigEndian(uint64(tickIndex))

This leading sign byte is to ensure we can iterate over the tick indexes in order. 2's complement guarantees that negative integers are in order when iterating. However they are not in order relative to positive integers (as 2's complement flips the leading bit) Hence we use the leading sign byte to ensure that negative tick indexes are in order relative to positive tick indexes. TODO: Test key iteration property

Types

type AccountKeeper

type AccountKeeper interface {
	GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
}

type AddToLastPositionInPoolError

type AddToLastPositionInPoolError struct {
	PoolId     uint64
	PositionId uint64
}

func (AddToLastPositionInPoolError) Error

type AddressPoolPositionIdNotFoundError

type AddressPoolPositionIdNotFoundError struct {
	PositionId uint64
	Owner      string
	PoolId     uint64
}

func (AddressPoolPositionIdNotFoundError) Error

type Amount0IsNegativeError

type Amount0IsNegativeError struct {
	Amount0 sdk.Int
}

func (Amount0IsNegativeError) Error

func (e Amount0IsNegativeError) Error() string

type Amount1IsNegativeError

type Amount1IsNegativeError struct {
	Amount1 sdk.Int
}

func (Amount1IsNegativeError) Error

func (e Amount1IsNegativeError) Error() string

type AmountGreaterThanMaxError

type AmountGreaterThanMaxError struct {
	TokenAmount sdk.Int
	TokenMax    sdk.Int
}

func (AmountGreaterThanMaxError) Error

type AmountLessThanMinError

type AmountLessThanMinError struct {
	TokenAmount sdk.Int
	TokenMin    sdk.Int
}

func (AmountLessThanMinError) Error

func (e AmountLessThanMinError) Error() string

type BalancerRecordNotClearedError

type BalancerRecordNotClearedError struct {
	ClPoolId       uint64
	BalancerPoolId uint64
	UptimeIndex    uint64
}

func (BalancerRecordNotClearedError) Error

type BalancerRecordNotFoundError

type BalancerRecordNotFoundError struct {
	ClPoolId       uint64
	BalancerPoolId uint64
	UptimeIndex    uint64
}

func (BalancerRecordNotFoundError) Error

type BankKeeper

type BankKeeper interface {
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetDenomMetaData(ctx sdk.Context, denom string) (banktypes.Metadata, bool)
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	HasBalance(ctx sdk.Context, addr sdk.AccAddress, amt sdk.Coin) bool
	MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
}

BankKeeper defines the banking contract that must be fulfilled when creating a x/concentrated-liquidity keeper.

type CoinLengthError

type CoinLengthError struct {
	MaxLength int
	Length    int
}

func (CoinLengthError) Error

func (e CoinLengthError) Error() string

type CommunityPoolKeeper

type CommunityPoolKeeper interface {
	FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}

CommunityPoolKeeper defines the contract needed to be fulfilled for distribution keeper.

type ComputedSqrtPriceInequalityError

type ComputedSqrtPriceInequalityError struct {
	IsZeroForOne                 bool
	NextInitializedTickSqrtPrice osmomath.BigDec
	ComputedSqrtPrice            osmomath.BigDec
}

func (ComputedSqrtPriceInequalityError) Error

type ConcentratedLiquidityListener

type ConcentratedLiquidityListener interface {
	// AfterConcentratedPoolCreated runs after a concentrated liquidity poos is initialized.
	AfterConcentratedPoolCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)
	// AfterInitialPoolPositionCreated is called after the first position is created in a concentrated
	// liquidity pool.
	AfterInitialPoolPositionCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)
	// AfterLastPoolPositionRemoved is called after the last position is removed in a concentrated
	// liquidity pool.
	AfterLastPoolPositionRemoved(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)
	// AfterConcentratedPoolSwap is called after a swap in a concentrated liquidity pool.
	AfterConcentratedPoolSwap(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, input sdk.Coins, output sdk.Coins)
}

type ConcentratedLiquidityListeners

type ConcentratedLiquidityListeners []ConcentratedLiquidityListener

func NewConcentratedLiquidityListeners

func NewConcentratedLiquidityListeners(listeners ...ConcentratedLiquidityListener) ConcentratedLiquidityListeners

Creates hooks for the x/concentrated-liquidity module.

func (ConcentratedLiquidityListeners) AfterConcentratedPoolCreated

func (l ConcentratedLiquidityListeners) AfterConcentratedPoolCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)

func (ConcentratedLiquidityListeners) AfterConcentratedPoolSwap

func (l ConcentratedLiquidityListeners) AfterConcentratedPoolSwap(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, input sdk.Coins, output sdk.Coins)

func (ConcentratedLiquidityListeners) AfterInitialPoolPositionCreated

func (l ConcentratedLiquidityListeners) AfterInitialPoolPositionCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)

func (ConcentratedLiquidityListeners) AfterLastPoolPositionRemoved

func (l ConcentratedLiquidityListeners) AfterLastPoolPositionRemoved(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)

type ConcentratedPoolExtension

type ConcentratedPoolExtension interface {
	poolmanagertypes.PoolI

	IsCurrentTickInRange(lowerTick, upperTick int64) bool
	GetIncentivesAddress() sdk.AccAddress
	GetSpreadRewardsAddress() sdk.AccAddress
	GetToken0() string
	GetToken1() string
	GetCurrentSqrtPrice() osmomath.BigDec
	GetCurrentTick() int64
	GetExponentAtPriceOne() int64
	GetTickSpacing() uint64
	GetLiquidity() sdk.Dec
	GetLastLiquidityUpdate() time.Time
	SetCurrentSqrtPrice(newSqrtPrice osmomath.BigDec)
	SetCurrentTick(newTick int64)
	SetTickSpacing(newTickSpacing uint64)
	SetLastLiquidityUpdate(newTime time.Time)

	UpdateLiquidity(newLiquidity sdk.Dec)
	ApplySwap(newLiquidity sdk.Dec, newCurrentTick int64, newCurrentSqrtPrice osmomath.BigDec) error
	CalcActualAmounts(ctx sdk.Context, lowerTick, upperTick int64, liquidityDelta sdk.Dec) (actualAmountDenom0 sdk.Dec, actualAmountDenom1 sdk.Dec, err error)
	UpdateLiquidityIfActivePosition(ctx sdk.Context, lowerTick, upperTick int64, liquidityDelta sdk.Dec) bool
}

type CreateConcentratedLiquidityPoolsProposal

type CreateConcentratedLiquidityPoolsProposal struct {
	Title       string       `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string       `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	PoolRecords []PoolRecord `protobuf:"bytes,3,rep,name=pool_records,json=poolRecords,proto3" json:"pool_records" yaml:"pool_records"`
}

CreateConcentratedLiquidityPoolsProposal is a gov Content type for creating concentrated liquidity pools. If a CreateConcentratedLiquidityPoolsProposal passes, the pools are created via pool manager module account.

func (*CreateConcentratedLiquidityPoolsProposal) Descriptor

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

func (*CreateConcentratedLiquidityPoolsProposal) Equal

func (this *CreateConcentratedLiquidityPoolsProposal) Equal(that interface{}) bool

func (*CreateConcentratedLiquidityPoolsProposal) GetDescription

GetDescription gets the description of the proposal

func (*CreateConcentratedLiquidityPoolsProposal) GetTitle

func (*CreateConcentratedLiquidityPoolsProposal) Marshal

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

func (*CreateConcentratedLiquidityPoolsProposal) MarshalTo

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

func (*CreateConcentratedLiquidityPoolsProposal) MarshalToSizedBuffer

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

func (*CreateConcentratedLiquidityPoolsProposal) ProposalRoute

ProposalRoute returns the router key for the proposal

func (*CreateConcentratedLiquidityPoolsProposal) ProposalType

ProposalType returns the type of the proposal

func (*CreateConcentratedLiquidityPoolsProposal) ProtoMessage

func (*CreateConcentratedLiquidityPoolsProposal) Reset

func (*CreateConcentratedLiquidityPoolsProposal) Size

func (CreateConcentratedLiquidityPoolsProposal) String

String returns a string containing the pool incentives proposal.

func (*CreateConcentratedLiquidityPoolsProposal) Unmarshal

func (*CreateConcentratedLiquidityPoolsProposal) ValidateBasic

ValidateBasic validates a governance proposal's abstract and basic contents

func (*CreateConcentratedLiquidityPoolsProposal) XXX_DiscardUnknown

func (m *CreateConcentratedLiquidityPoolsProposal) XXX_DiscardUnknown()

func (*CreateConcentratedLiquidityPoolsProposal) XXX_Marshal

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

func (*CreateConcentratedLiquidityPoolsProposal) XXX_Merge

func (*CreateConcentratedLiquidityPoolsProposal) XXX_Size

func (*CreateConcentratedLiquidityPoolsProposal) XXX_Unmarshal

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

type DenomDuplicatedError

type DenomDuplicatedError struct {
	TokenInDenom  string
	TokenOutDenom string
}

func (DenomDuplicatedError) Error

func (e DenomDuplicatedError) Error() string

type ErrInvalidBalancerPoolLiquidityError

type ErrInvalidBalancerPoolLiquidityError struct {
	ClPoolId              uint64
	BalancerPoolId        uint64
	BalancerPoolLiquidity sdk.Coins
}

func (ErrInvalidBalancerPoolLiquidityError) Error

type GAMMKeeper

type GAMMKeeper interface {
	GetTotalPoolLiquidity(ctx sdk.Context, poolId uint64) (sdk.Coins, error)
	GetLinkedBalancerPoolID(ctx sdk.Context, poolIdEntering uint64) (uint64, error)
	GetTotalPoolShares(ctx sdk.Context, poolId uint64) (sdk.Int, error)
}

type IncentiveInsufficientBalanceError

type IncentiveInsufficientBalanceError struct {
	PoolId          uint64
	IncentiveDenom  string
	IncentiveAmount sdk.Int
}

func (IncentiveInsufficientBalanceError) Error

type IncentiveRecord

type IncentiveRecord struct {
	// incentive_id is the id uniquely identifying this incentive record.
	IncentiveId uint64 `protobuf:"varint,1,opt,name=incentive_id,json=incentiveId,proto3" json:"incentive_id,omitempty" yaml:"incentive_id"`
	PoolId      uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// incentive record body holds necessary
	IncentiveRecordBody IncentiveRecordBody `` /* 139-byte string literal not displayed */
	// min_uptime is the minimum uptime required for liquidity to qualify for this
	// incentive. It should be always be one of the supported uptimes in
	// types.SupportedUptimes
	MinUptime time.Duration `protobuf:"bytes,5,opt,name=min_uptime,json=minUptime,proto3,stdduration" json:"min_uptime" yaml:"min_uptime"`
}

IncentiveRecord is the high-level struct we use to deal with an independent incentive being distributed on a pool. Note that PoolId, Denom, and MinUptime are included in the key so we avoid storing them in state, hence the distinction between IncentiveRecord and IncentiveRecordBody.

func (*IncentiveRecord) Descriptor

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

func (*IncentiveRecord) GetIncentiveId

func (m *IncentiveRecord) GetIncentiveId() uint64

func (*IncentiveRecord) GetIncentiveRecordBody

func (m *IncentiveRecord) GetIncentiveRecordBody() IncentiveRecordBody

func (*IncentiveRecord) GetMinUptime

func (m *IncentiveRecord) GetMinUptime() time.Duration

func (*IncentiveRecord) GetPoolId

func (m *IncentiveRecord) GetPoolId() uint64

func (*IncentiveRecord) Marshal

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

func (*IncentiveRecord) MarshalTo

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

func (*IncentiveRecord) MarshalToSizedBuffer

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

func (*IncentiveRecord) ProtoMessage

func (*IncentiveRecord) ProtoMessage()

func (*IncentiveRecord) Reset

func (m *IncentiveRecord) Reset()

func (*IncentiveRecord) Size

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

func (*IncentiveRecord) String

func (m *IncentiveRecord) String() string

func (*IncentiveRecord) Unmarshal

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

func (*IncentiveRecord) XXX_DiscardUnknown

func (m *IncentiveRecord) XXX_DiscardUnknown()

func (*IncentiveRecord) XXX_Marshal

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

func (*IncentiveRecord) XXX_Merge

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

func (*IncentiveRecord) XXX_Size

func (m *IncentiveRecord) XXX_Size() int

func (*IncentiveRecord) XXX_Unmarshal

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

type IncentiveRecordBody

type IncentiveRecordBody struct {
	// remaining_coin is the total amount of incentives to be distributed
	RemainingCoin types1.DecCoin `` /* 169-byte string literal not displayed */
	// emission_rate is the incentive emission rate per second
	EmissionRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
	// start_time is the time when the incentive starts distributing
	StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"`
}

IncentiveRecordBody represents the body stored in state for each individual record.

func (*IncentiveRecordBody) Descriptor

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

func (*IncentiveRecordBody) GetRemainingCoin

func (m *IncentiveRecordBody) GetRemainingCoin() types1.DecCoin

func (*IncentiveRecordBody) GetStartTime

func (m *IncentiveRecordBody) GetStartTime() time.Time

func (*IncentiveRecordBody) Marshal

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

func (*IncentiveRecordBody) MarshalTo

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

func (*IncentiveRecordBody) MarshalToSizedBuffer

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

func (*IncentiveRecordBody) ProtoMessage

func (*IncentiveRecordBody) ProtoMessage()

func (*IncentiveRecordBody) Reset

func (m *IncentiveRecordBody) Reset()

func (*IncentiveRecordBody) Size

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

func (*IncentiveRecordBody) String

func (m *IncentiveRecordBody) String() string

func (*IncentiveRecordBody) Unmarshal

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

func (*IncentiveRecordBody) XXX_DiscardUnknown

func (m *IncentiveRecordBody) XXX_DiscardUnknown()

func (*IncentiveRecordBody) XXX_Marshal

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

func (*IncentiveRecordBody) XXX_Merge

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

func (*IncentiveRecordBody) XXX_Size

func (m *IncentiveRecordBody) XXX_Size() int

func (*IncentiveRecordBody) XXX_Unmarshal

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

type IncentiveRecordNotFoundError

type IncentiveRecordNotFoundError struct {
	PoolId            uint64
	MinUptime         time.Duration
	IncentiveRecordId uint64
}

func (IncentiveRecordNotFoundError) Error

type IncentivesKeeper

type IncentivesKeeper interface {
	AddToGaugeRewards(ctx sdk.Context, owner sdk.AccAddress, coins sdk.Coins, gaugeID uint64) error
}

type InitialLiquidityZeroError

type InitialLiquidityZeroError struct {
	Amount0 sdk.Int
	Amount1 sdk.Int
}

func (InitialLiquidityZeroError) Error

type InsufficientLiquidityCreatedError

type InsufficientLiquidityCreatedError struct {
	Actual      sdk.Int
	Minimum     sdk.Int
	IsTokenZero bool
}

func (InsufficientLiquidityCreatedError) Error

type InsufficientLiquidityError

type InsufficientLiquidityError struct {
	Actual    sdk.Dec
	Available sdk.Dec
}

func (InsufficientLiquidityError) Error

type InsufficientPoolBalanceError

type InsufficientPoolBalanceError struct {
	Err error
}

func (InsufficientPoolBalanceError) Error

func (*InsufficientPoolBalanceError) Unwrap

func (e *InsufficientPoolBalanceError) Unwrap() error

type InsufficientUserBalanceError

type InsufficientUserBalanceError struct {
	Err error
}

func (InsufficientUserBalanceError) Error

func (*InsufficientUserBalanceError) Unwrap

func (e *InsufficientUserBalanceError) Unwrap() error

type InvalidAmountCalculatedError

type InvalidAmountCalculatedError struct {
	Amount sdk.Int
}

func (InvalidAmountCalculatedError) Error

type InvalidDirectionError

type InvalidDirectionError struct {
	PoolTick   int64
	TargetTick int64
	ZeroForOne bool
}

func (InvalidDirectionError) Error

func (e InvalidDirectionError) Error() string

type InvalidDiscountRateError

type InvalidDiscountRateError struct {
	DiscountRate sdk.Dec
}

func (InvalidDiscountRateError) Error

func (e InvalidDiscountRateError) Error() string

type InvalidIncentiveCoinError

type InvalidIncentiveCoinError struct {
	PoolId        uint64
	IncentiveCoin sdk.Coin
}

func (InvalidIncentiveCoinError) Error

type InvalidKeyComponentError

type InvalidKeyComponentError struct {
	KeyStr                string
	KeySeparator          string
	NumComponentsExpected int
	ComponentsExpectedStr string
}

func (InvalidKeyComponentError) Error

func (e InvalidKeyComponentError) Error() string

type InvalidLowerUpperTickError

type InvalidLowerUpperTickError struct {
	LowerTick int64
	UpperTick int64
}

x/concentrated-liquidity module sentinel errors.

func (InvalidLowerUpperTickError) Error

type InvalidMinUptimeError

type InvalidMinUptimeError struct {
	PoolId            uint64
	MinUptime         time.Duration
	AuthorizedUptimes []time.Duration
}

func (InvalidMinUptimeError) Error

func (e InvalidMinUptimeError) Error() string

type InvalidNextIncentiveRecordIdError

type InvalidNextIncentiveRecordIdError struct {
	NextIncentiveRecordId uint64
}

func (InvalidNextIncentiveRecordIdError) Error

type InvalidNextPositionIdError

type InvalidNextPositionIdError struct {
	NextPositionId uint64
}

func (InvalidNextPositionIdError) Error

type InvalidPrefixError

type InvalidPrefixError struct {
	Actual   string
	Expected string
}

func (InvalidPrefixError) Error

func (e InvalidPrefixError) Error() string

type InvalidSpreadFactorError

type InvalidSpreadFactorError struct {
	ActualSpreadFactor sdk.Dec
}

func (InvalidSpreadFactorError) Error

func (e InvalidSpreadFactorError) Error() string

type InvalidTickError

type InvalidTickError struct {
	Tick    int64
	IsLower bool
	MinTick int64
	MaxTick int64
}

func (InvalidTickError) Error

func (e InvalidTickError) Error() string

type InvalidTickIndexEncodingError

type InvalidTickIndexEncodingError struct {
	Length int
}

func (InvalidTickIndexEncodingError) Error

type InvalidTickKeyByteLengthError

type InvalidTickKeyByteLengthError struct {
	Length int
}

func (InvalidTickKeyByteLengthError) Error

type InvalidUptimeIndexError

type InvalidUptimeIndexError struct {
	MinUptime        time.Duration
	SupportedUptimes []time.Duration
}

func (InvalidUptimeIndexError) Error

func (e InvalidUptimeIndexError) Error() string

type JoinTimeMismatchError

type JoinTimeMismatchError struct {
	PositionId uint64
	Expected   time.Time
	Got        time.Time
}

func (JoinTimeMismatchError) Error

func (e JoinTimeMismatchError) Error() string

type LiquidityWithdrawalError

type LiquidityWithdrawalError struct {
	PositionID       uint64
	RequestedAmount  sdk.Dec
	CurrentLiquidity sdk.Dec
}

func (LiquidityWithdrawalError) Error

func (e LiquidityWithdrawalError) Error() string

type LockIdToPositionIdNotFoundError

type LockIdToPositionIdNotFoundError struct {
	LockId uint64
}

func (LockIdToPositionIdNotFoundError) Error

type LockNotMatureError

type LockNotMatureError struct {
	PositionId uint64
	LockId     uint64
}

func (LockNotMatureError) Error

func (e LockNotMatureError) Error() string

type LockupKeeper

type LockupKeeper interface {
	GetLockByID(ctx sdk.Context, lockID uint64) (*lockuptypes.PeriodLock, error)
	// Despite the name, BeginForceUnlock is really BeginUnlock
	// TODO: Fix this in future code update
	BeginForceUnlock(ctx sdk.Context, lockID uint64, coins sdk.Coins) (uint64, error)
	ForceUnlock(ctx sdk.Context, lock lockuptypes.PeriodLock) error
	CreateLock(ctx sdk.Context, owner sdk.AccAddress, coins sdk.Coins, duration time.Duration) (lockuptypes.PeriodLock, error)
	CreateLockNoSend(ctx sdk.Context, owner sdk.AccAddress, coins sdk.Coins, duration time.Duration) (lockuptypes.PeriodLock, error)
	SlashTokensFromLockByID(ctx sdk.Context, lockID uint64, coins sdk.Coins) (*lockuptypes.PeriodLock, error)
	GetLockedDenom(ctx sdk.Context, denom string, duration time.Duration) sdk.Int
}

LockupKeeper defines the expected interface needed to retrieve locks.

type LowerTickMismatchError

type LowerTickMismatchError struct {
	PositionId uint64
	Expected   int64
	Got        int64
}

func (LowerTickMismatchError) Error

func (e LowerTickMismatchError) Error() string

type MatchingDenomError

type MatchingDenomError struct {
	Denom string
}

func (MatchingDenomError) Error

func (e MatchingDenomError) Error() string

type ModifySamePositionAccumulatorError

type ModifySamePositionAccumulatorError struct {
	PositionAccName string
}

func (ModifySamePositionAccumulatorError) Error

type MsgAddToPosition

type MsgAddToPosition struct {
	PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty" yaml:"position_id"`
	Sender     string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	// amount0 represents the amount of token0 willing to put in.
	Amount0 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount0,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount0" yaml:"amount_0"`
	// amount1 represents the amount of token1 willing to put in.
	Amount1 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount1,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount1" yaml:"amount_1"`
	// token_min_amount0 represents the minimum amount of token0 desired from the
	// new position being created. Note that this field indicates the min amount0
	// corresponding to the liquidity that is being added, not the total
	// liquidity of the position.
	TokenMinAmount0 github_com_cosmos_cosmos_sdk_types.Int `` /* 173-byte string literal not displayed */
	// token_min_amount1 represents the minimum amount of token1 desired from the
	// new position being created. Note that this field indicates the min amount1
	// corresponding to the liquidity that is being added, not the total
	// liquidity of the position.
	TokenMinAmount1 github_com_cosmos_cosmos_sdk_types.Int `` /* 173-byte string literal not displayed */
}

===================== MsgAddToPosition

func (*MsgAddToPosition) Descriptor

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

func (*MsgAddToPosition) GetPositionId

func (m *MsgAddToPosition) GetPositionId() uint64

func (*MsgAddToPosition) GetSender

func (m *MsgAddToPosition) GetSender() string

func (MsgAddToPosition) GetSignBytes

func (msg MsgAddToPosition) GetSignBytes() []byte

func (MsgAddToPosition) GetSigners

func (msg MsgAddToPosition) GetSigners() []sdk.AccAddress

func (*MsgAddToPosition) Marshal

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

func (*MsgAddToPosition) MarshalTo

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

func (*MsgAddToPosition) MarshalToSizedBuffer

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

func (*MsgAddToPosition) ProtoMessage

func (*MsgAddToPosition) ProtoMessage()

func (*MsgAddToPosition) Reset

func (m *MsgAddToPosition) Reset()

func (MsgAddToPosition) Route

func (msg MsgAddToPosition) Route() string

func (*MsgAddToPosition) Size

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

func (*MsgAddToPosition) String

func (m *MsgAddToPosition) String() string

func (MsgAddToPosition) Type

func (msg MsgAddToPosition) Type() string

func (*MsgAddToPosition) Unmarshal

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

func (MsgAddToPosition) ValidateBasic

func (msg MsgAddToPosition) ValidateBasic() error

func (*MsgAddToPosition) XXX_DiscardUnknown

func (m *MsgAddToPosition) XXX_DiscardUnknown()

func (*MsgAddToPosition) XXX_Marshal

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

func (*MsgAddToPosition) XXX_Merge

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

func (*MsgAddToPosition) XXX_Size

func (m *MsgAddToPosition) XXX_Size() int

func (*MsgAddToPosition) XXX_Unmarshal

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

type MsgAddToPositionResponse

type MsgAddToPositionResponse struct {
	PositionId uint64                                 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty" yaml:"position_id"`
	Amount0    github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount0,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount0" yaml:"amount0"`
	Amount1    github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount1,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount1" yaml:"amount1"`
}

func (*MsgAddToPositionResponse) Descriptor

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

func (*MsgAddToPositionResponse) GetPositionId

func (m *MsgAddToPositionResponse) GetPositionId() uint64

func (*MsgAddToPositionResponse) Marshal

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

func (*MsgAddToPositionResponse) MarshalTo

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

func (*MsgAddToPositionResponse) MarshalToSizedBuffer

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

func (*MsgAddToPositionResponse) ProtoMessage

func (*MsgAddToPositionResponse) ProtoMessage()

func (*MsgAddToPositionResponse) Reset

func (m *MsgAddToPositionResponse) Reset()

func (*MsgAddToPositionResponse) Size

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

func (*MsgAddToPositionResponse) String

func (m *MsgAddToPositionResponse) String() string

func (*MsgAddToPositionResponse) Unmarshal

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

func (*MsgAddToPositionResponse) XXX_DiscardUnknown

func (m *MsgAddToPositionResponse) XXX_DiscardUnknown()

func (*MsgAddToPositionResponse) XXX_Marshal

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

func (*MsgAddToPositionResponse) XXX_Merge

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

func (*MsgAddToPositionResponse) XXX_Size

func (m *MsgAddToPositionResponse) XXX_Size() int

func (*MsgAddToPositionResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	CreatePosition(ctx context.Context, in *MsgCreatePosition, opts ...grpc.CallOption) (*MsgCreatePositionResponse, error)
	WithdrawPosition(ctx context.Context, in *MsgWithdrawPosition, opts ...grpc.CallOption) (*MsgWithdrawPositionResponse, error)
	// AddToPosition attempts to add amount0 and amount1 to a position
	// with the given position id.
	// To maintain backwards-compatibility with future implementations of
	// charging, this function deletes the old position and creates a new one with
	// the resulting amount after addition.
	AddToPosition(ctx context.Context, in *MsgAddToPosition, opts ...grpc.CallOption) (*MsgAddToPositionResponse, error)
	CollectSpreadRewards(ctx context.Context, in *MsgCollectSpreadRewards, opts ...grpc.CallOption) (*MsgCollectSpreadRewardsResponse, error)
	CollectIncentives(ctx context.Context, in *MsgCollectIncentives, opts ...grpc.CallOption) (*MsgCollectIncentivesResponse, 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 MsgCollectIncentives

type MsgCollectIncentives struct {
	PositionIds []uint64 `protobuf:"varint,1,rep,packed,name=position_ids,json=positionIds,proto3" json:"position_ids,omitempty" yaml:"position_ids"`
	Sender      string   `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
}

===================== MsgCollectIncentives

func (*MsgCollectIncentives) Descriptor

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

func (*MsgCollectIncentives) GetPositionIds

func (m *MsgCollectIncentives) GetPositionIds() []uint64

func (*MsgCollectIncentives) GetSender

func (m *MsgCollectIncentives) GetSender() string

func (MsgCollectIncentives) GetSignBytes

func (msg MsgCollectIncentives) GetSignBytes() []byte

func (MsgCollectIncentives) GetSigners

func (msg MsgCollectIncentives) GetSigners() []sdk.AccAddress

func (*MsgCollectIncentives) Marshal

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

func (*MsgCollectIncentives) MarshalTo

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

func (*MsgCollectIncentives) MarshalToSizedBuffer

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

func (*MsgCollectIncentives) ProtoMessage

func (*MsgCollectIncentives) ProtoMessage()

func (*MsgCollectIncentives) Reset

func (m *MsgCollectIncentives) Reset()

func (MsgCollectIncentives) Route

func (msg MsgCollectIncentives) Route() string

func (*MsgCollectIncentives) Size

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

func (*MsgCollectIncentives) String

func (m *MsgCollectIncentives) String() string

func (MsgCollectIncentives) Type

func (msg MsgCollectIncentives) Type() string

func (*MsgCollectIncentives) Unmarshal

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

func (MsgCollectIncentives) ValidateBasic

func (msg MsgCollectIncentives) ValidateBasic() error

func (*MsgCollectIncentives) XXX_DiscardUnknown

func (m *MsgCollectIncentives) XXX_DiscardUnknown()

func (*MsgCollectIncentives) XXX_Marshal

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

func (*MsgCollectIncentives) XXX_Merge

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

func (*MsgCollectIncentives) XXX_Size

func (m *MsgCollectIncentives) XXX_Size() int

func (*MsgCollectIncentives) XXX_Unmarshal

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

type MsgCollectIncentivesResponse

type MsgCollectIncentivesResponse struct {
	CollectedIncentives github_com_cosmos_cosmos_sdk_types.Coins `` /* 190-byte string literal not displayed */
	ForfeitedIncentives github_com_cosmos_cosmos_sdk_types.Coins `` /* 190-byte string literal not displayed */
}

func (*MsgCollectIncentivesResponse) Descriptor

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

func (*MsgCollectIncentivesResponse) GetCollectedIncentives

func (*MsgCollectIncentivesResponse) GetForfeitedIncentives

func (*MsgCollectIncentivesResponse) Marshal

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

func (*MsgCollectIncentivesResponse) MarshalTo

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

func (*MsgCollectIncentivesResponse) MarshalToSizedBuffer

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

func (*MsgCollectIncentivesResponse) ProtoMessage

func (*MsgCollectIncentivesResponse) ProtoMessage()

func (*MsgCollectIncentivesResponse) Reset

func (m *MsgCollectIncentivesResponse) Reset()

func (*MsgCollectIncentivesResponse) Size

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

func (*MsgCollectIncentivesResponse) String

func (*MsgCollectIncentivesResponse) Unmarshal

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

func (*MsgCollectIncentivesResponse) XXX_DiscardUnknown

func (m *MsgCollectIncentivesResponse) XXX_DiscardUnknown()

func (*MsgCollectIncentivesResponse) XXX_Marshal

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

func (*MsgCollectIncentivesResponse) XXX_Merge

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

func (*MsgCollectIncentivesResponse) XXX_Size

func (m *MsgCollectIncentivesResponse) XXX_Size() int

func (*MsgCollectIncentivesResponse) XXX_Unmarshal

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

type MsgCollectSpreadRewards

type MsgCollectSpreadRewards struct {
	PositionIds []uint64 `protobuf:"varint,1,rep,packed,name=position_ids,json=positionIds,proto3" json:"position_ids,omitempty" yaml:"position_ids"`
	Sender      string   `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
}

===================== MsgCollectSpreadRewards

func (*MsgCollectSpreadRewards) Descriptor

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

func (*MsgCollectSpreadRewards) GetPositionIds

func (m *MsgCollectSpreadRewards) GetPositionIds() []uint64

func (*MsgCollectSpreadRewards) GetSender

func (m *MsgCollectSpreadRewards) GetSender() string

func (MsgCollectSpreadRewards) GetSignBytes

func (msg MsgCollectSpreadRewards) GetSignBytes() []byte

func (MsgCollectSpreadRewards) GetSigners

func (msg MsgCollectSpreadRewards) GetSigners() []sdk.AccAddress

func (*MsgCollectSpreadRewards) Marshal

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

func (*MsgCollectSpreadRewards) MarshalTo

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

func (*MsgCollectSpreadRewards) MarshalToSizedBuffer

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

func (*MsgCollectSpreadRewards) ProtoMessage

func (*MsgCollectSpreadRewards) ProtoMessage()

func (*MsgCollectSpreadRewards) Reset

func (m *MsgCollectSpreadRewards) Reset()

func (MsgCollectSpreadRewards) Route

func (msg MsgCollectSpreadRewards) Route() string

func (*MsgCollectSpreadRewards) Size

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

func (*MsgCollectSpreadRewards) String

func (m *MsgCollectSpreadRewards) String() string

func (MsgCollectSpreadRewards) Type

func (msg MsgCollectSpreadRewards) Type() string

func (*MsgCollectSpreadRewards) Unmarshal

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

func (MsgCollectSpreadRewards) ValidateBasic

func (msg MsgCollectSpreadRewards) ValidateBasic() error

func (*MsgCollectSpreadRewards) XXX_DiscardUnknown

func (m *MsgCollectSpreadRewards) XXX_DiscardUnknown()

func (*MsgCollectSpreadRewards) XXX_Marshal

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

func (*MsgCollectSpreadRewards) XXX_Merge

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

func (*MsgCollectSpreadRewards) XXX_Size

func (m *MsgCollectSpreadRewards) XXX_Size() int

func (*MsgCollectSpreadRewards) XXX_Unmarshal

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

type MsgCollectSpreadRewardsResponse

type MsgCollectSpreadRewardsResponse struct {
	CollectedSpreadRewards github_com_cosmos_cosmos_sdk_types.Coins `` /* 205-byte string literal not displayed */
}

func (*MsgCollectSpreadRewardsResponse) Descriptor

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

func (*MsgCollectSpreadRewardsResponse) GetCollectedSpreadRewards

func (*MsgCollectSpreadRewardsResponse) Marshal

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

func (*MsgCollectSpreadRewardsResponse) MarshalTo

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

func (*MsgCollectSpreadRewardsResponse) MarshalToSizedBuffer

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

func (*MsgCollectSpreadRewardsResponse) ProtoMessage

func (*MsgCollectSpreadRewardsResponse) ProtoMessage()

func (*MsgCollectSpreadRewardsResponse) Reset

func (*MsgCollectSpreadRewardsResponse) Size

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

func (*MsgCollectSpreadRewardsResponse) String

func (*MsgCollectSpreadRewardsResponse) Unmarshal

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

func (*MsgCollectSpreadRewardsResponse) XXX_DiscardUnknown

func (m *MsgCollectSpreadRewardsResponse) XXX_DiscardUnknown()

func (*MsgCollectSpreadRewardsResponse) XXX_Marshal

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

func (*MsgCollectSpreadRewardsResponse) XXX_Merge

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

func (*MsgCollectSpreadRewardsResponse) XXX_Size

func (m *MsgCollectSpreadRewardsResponse) XXX_Size() int

func (*MsgCollectSpreadRewardsResponse) XXX_Unmarshal

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

type MsgCreatePosition

type MsgCreatePosition struct {
	PoolId    uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"`
	Sender    string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	LowerTick int64  `protobuf:"varint,3,opt,name=lower_tick,json=lowerTick,proto3" json:"lower_tick,omitempty" yaml:"lower_tick"`
	UpperTick int64  `protobuf:"varint,4,opt,name=upper_tick,json=upperTick,proto3" json:"upper_tick,omitempty" yaml:"upper_tick"`
	// tokens_provided is the amount of tokens provided for the position.
	// It must at a minimum be of length 1 (for a single sided position)
	// and at a maximum be of length 2 (for a position that straddles the current
	// tick).
	TokensProvided  github_com_cosmos_cosmos_sdk_types.Coins `` /* 147-byte string literal not displayed */
	TokenMinAmount0 github_com_cosmos_cosmos_sdk_types.Int   `` /* 173-byte string literal not displayed */
	TokenMinAmount1 github_com_cosmos_cosmos_sdk_types.Int   `` /* 173-byte string literal not displayed */
}

===================== MsgCreatePosition

func (*MsgCreatePosition) Descriptor

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

func (*MsgCreatePosition) GetLowerTick

func (m *MsgCreatePosition) GetLowerTick() int64

func (*MsgCreatePosition) GetPoolId

func (m *MsgCreatePosition) GetPoolId() uint64

func (*MsgCreatePosition) GetSender

func (m *MsgCreatePosition) GetSender() string

func (MsgCreatePosition) GetSignBytes

func (msg MsgCreatePosition) GetSignBytes() []byte

func (MsgCreatePosition) GetSigners

func (msg MsgCreatePosition) GetSigners() []sdk.AccAddress

func (*MsgCreatePosition) GetTokensProvided

func (*MsgCreatePosition) GetUpperTick

func (m *MsgCreatePosition) GetUpperTick() int64

func (*MsgCreatePosition) Marshal

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

func (*MsgCreatePosition) MarshalTo

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

func (*MsgCreatePosition) MarshalToSizedBuffer

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

func (*MsgCreatePosition) ProtoMessage

func (*MsgCreatePosition) ProtoMessage()

func (*MsgCreatePosition) Reset

func (m *MsgCreatePosition) Reset()

func (MsgCreatePosition) Route

func (msg MsgCreatePosition) Route() string

func (*MsgCreatePosition) Size

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

func (*MsgCreatePosition) String

func (m *MsgCreatePosition) String() string

func (MsgCreatePosition) Type

func (msg MsgCreatePosition) Type() string

func (*MsgCreatePosition) Unmarshal

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

func (MsgCreatePosition) ValidateBasic

func (msg MsgCreatePosition) ValidateBasic() error

func (*MsgCreatePosition) XXX_DiscardUnknown

func (m *MsgCreatePosition) XXX_DiscardUnknown()

func (*MsgCreatePosition) XXX_Marshal

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

func (*MsgCreatePosition) XXX_Merge

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

func (*MsgCreatePosition) XXX_Size

func (m *MsgCreatePosition) XXX_Size() int

func (*MsgCreatePosition) XXX_Unmarshal

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

type MsgCreatePositionResponse

type MsgCreatePositionResponse struct {
	PositionId       uint64                                 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty" yaml:"position_id"`
	Amount0          github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount0,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount0" yaml:"amount0"`
	Amount1          github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount1,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount1" yaml:"amount1"`
	LiquidityCreated github_com_cosmos_cosmos_sdk_types.Dec `` /* 174-byte string literal not displayed */
	// the lower and upper tick are in the response because there are
	// instances in which multiple ticks represent the same price, so
	// we may move their provided tick to the canonical tick that represents
	// the same price.
	LowerTick int64 `protobuf:"varint,6,opt,name=lower_tick,json=lowerTick,proto3" json:"lower_tick,omitempty" yaml:"lower_tick"`
	UpperTick int64 `protobuf:"varint,7,opt,name=upper_tick,json=upperTick,proto3" json:"upper_tick,omitempty" yaml:"upper_tick"`
}

func (*MsgCreatePositionResponse) Descriptor

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

func (*MsgCreatePositionResponse) GetLowerTick

func (m *MsgCreatePositionResponse) GetLowerTick() int64

func (*MsgCreatePositionResponse) GetPositionId

func (m *MsgCreatePositionResponse) GetPositionId() uint64

func (*MsgCreatePositionResponse) GetUpperTick

func (m *MsgCreatePositionResponse) GetUpperTick() int64

func (*MsgCreatePositionResponse) Marshal

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

func (*MsgCreatePositionResponse) MarshalTo

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

func (*MsgCreatePositionResponse) MarshalToSizedBuffer

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

func (*MsgCreatePositionResponse) ProtoMessage

func (*MsgCreatePositionResponse) ProtoMessage()

func (*MsgCreatePositionResponse) Reset

func (m *MsgCreatePositionResponse) Reset()

func (*MsgCreatePositionResponse) Size

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

func (*MsgCreatePositionResponse) String

func (m *MsgCreatePositionResponse) String() string

func (*MsgCreatePositionResponse) Unmarshal

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

func (*MsgCreatePositionResponse) XXX_DiscardUnknown

func (m *MsgCreatePositionResponse) XXX_DiscardUnknown()

func (*MsgCreatePositionResponse) XXX_Marshal

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

func (*MsgCreatePositionResponse) XXX_Merge

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

func (*MsgCreatePositionResponse) XXX_Size

func (m *MsgCreatePositionResponse) XXX_Size() int

func (*MsgCreatePositionResponse) XXX_Unmarshal

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

type MsgFungifyChargedPositions

type MsgFungifyChargedPositions struct {
	PositionIds []uint64 `protobuf:"varint,1,rep,packed,name=position_ids,json=positionIds,proto3" json:"position_ids,omitempty" yaml:"position_ids"`
	Sender      string   `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
}

===================== MsgFungifyChargedPositions

func (*MsgFungifyChargedPositions) Descriptor

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

func (*MsgFungifyChargedPositions) GetPositionIds

func (m *MsgFungifyChargedPositions) GetPositionIds() []uint64

func (*MsgFungifyChargedPositions) GetSender

func (m *MsgFungifyChargedPositions) GetSender() string

func (MsgFungifyChargedPositions) GetSignBytes

func (msg MsgFungifyChargedPositions) GetSignBytes() []byte

func (MsgFungifyChargedPositions) GetSigners

func (msg MsgFungifyChargedPositions) GetSigners() []sdk.AccAddress

func (*MsgFungifyChargedPositions) Marshal

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

func (*MsgFungifyChargedPositions) MarshalTo

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

func (*MsgFungifyChargedPositions) MarshalToSizedBuffer

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

func (*MsgFungifyChargedPositions) ProtoMessage

func (*MsgFungifyChargedPositions) ProtoMessage()

func (*MsgFungifyChargedPositions) Reset

func (m *MsgFungifyChargedPositions) Reset()

func (MsgFungifyChargedPositions) Route

func (msg MsgFungifyChargedPositions) Route() string

func (*MsgFungifyChargedPositions) Size

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

func (*MsgFungifyChargedPositions) String

func (m *MsgFungifyChargedPositions) String() string

func (MsgFungifyChargedPositions) Type

func (*MsgFungifyChargedPositions) Unmarshal

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

func (MsgFungifyChargedPositions) ValidateBasic

func (msg MsgFungifyChargedPositions) ValidateBasic() error

func (*MsgFungifyChargedPositions) XXX_DiscardUnknown

func (m *MsgFungifyChargedPositions) XXX_DiscardUnknown()

func (*MsgFungifyChargedPositions) XXX_Marshal

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

func (*MsgFungifyChargedPositions) XXX_Merge

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

func (*MsgFungifyChargedPositions) XXX_Size

func (m *MsgFungifyChargedPositions) XXX_Size() int

func (*MsgFungifyChargedPositions) XXX_Unmarshal

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

type MsgFungifyChargedPositionsResponse

type MsgFungifyChargedPositionsResponse struct {
	NewPositionId uint64 `` /* 126-byte string literal not displayed */
}

func (*MsgFungifyChargedPositionsResponse) Descriptor

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

func (*MsgFungifyChargedPositionsResponse) GetNewPositionId

func (m *MsgFungifyChargedPositionsResponse) GetNewPositionId() uint64

func (*MsgFungifyChargedPositionsResponse) Marshal

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

func (*MsgFungifyChargedPositionsResponse) MarshalTo

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

func (*MsgFungifyChargedPositionsResponse) MarshalToSizedBuffer

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

func (*MsgFungifyChargedPositionsResponse) ProtoMessage

func (*MsgFungifyChargedPositionsResponse) ProtoMessage()

func (*MsgFungifyChargedPositionsResponse) Reset

func (*MsgFungifyChargedPositionsResponse) Size

func (*MsgFungifyChargedPositionsResponse) String

func (*MsgFungifyChargedPositionsResponse) Unmarshal

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

func (*MsgFungifyChargedPositionsResponse) XXX_DiscardUnknown

func (m *MsgFungifyChargedPositionsResponse) XXX_DiscardUnknown()

func (*MsgFungifyChargedPositionsResponse) XXX_Marshal

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

func (*MsgFungifyChargedPositionsResponse) XXX_Merge

func (*MsgFungifyChargedPositionsResponse) XXX_Size

func (*MsgFungifyChargedPositionsResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	CreatePosition(context.Context, *MsgCreatePosition) (*MsgCreatePositionResponse, error)
	WithdrawPosition(context.Context, *MsgWithdrawPosition) (*MsgWithdrawPositionResponse, error)
	// AddToPosition attempts to add amount0 and amount1 to a position
	// with the given position id.
	// To maintain backwards-compatibility with future implementations of
	// charging, this function deletes the old position and creates a new one with
	// the resulting amount after addition.
	AddToPosition(context.Context, *MsgAddToPosition) (*MsgAddToPositionResponse, error)
	CollectSpreadRewards(context.Context, *MsgCollectSpreadRewards) (*MsgCollectSpreadRewardsResponse, error)
	CollectIncentives(context.Context, *MsgCollectIncentives) (*MsgCollectIncentivesResponse, error)
}

MsgServer is the server API for Msg service.

type MsgWithdrawPosition

type MsgWithdrawPosition struct {
	PositionId      uint64                                 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty" yaml:"position_id"`
	Sender          string                                 `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"`
	LiquidityAmount github_com_cosmos_cosmos_sdk_types.Dec `` /* 170-byte string literal not displayed */
}

===================== MsgWithdrawPosition

func (*MsgWithdrawPosition) Descriptor

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

func (*MsgWithdrawPosition) GetPositionId

func (m *MsgWithdrawPosition) GetPositionId() uint64

func (*MsgWithdrawPosition) GetSender

func (m *MsgWithdrawPosition) GetSender() string

func (MsgWithdrawPosition) GetSignBytes

func (msg MsgWithdrawPosition) GetSignBytes() []byte

func (MsgWithdrawPosition) GetSigners

func (msg MsgWithdrawPosition) GetSigners() []sdk.AccAddress

func (*MsgWithdrawPosition) Marshal

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

func (*MsgWithdrawPosition) MarshalTo

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

func (*MsgWithdrawPosition) MarshalToSizedBuffer

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

func (*MsgWithdrawPosition) ProtoMessage

func (*MsgWithdrawPosition) ProtoMessage()

func (*MsgWithdrawPosition) Reset

func (m *MsgWithdrawPosition) Reset()

func (MsgWithdrawPosition) Route

func (msg MsgWithdrawPosition) Route() string

func (*MsgWithdrawPosition) Size

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

func (*MsgWithdrawPosition) String

func (m *MsgWithdrawPosition) String() string

func (MsgWithdrawPosition) Type

func (msg MsgWithdrawPosition) Type() string

func (*MsgWithdrawPosition) Unmarshal

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

func (MsgWithdrawPosition) ValidateBasic

func (msg MsgWithdrawPosition) ValidateBasic() error

func (*MsgWithdrawPosition) XXX_DiscardUnknown

func (m *MsgWithdrawPosition) XXX_DiscardUnknown()

func (*MsgWithdrawPosition) XXX_Marshal

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

func (*MsgWithdrawPosition) XXX_Merge

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

func (*MsgWithdrawPosition) XXX_Size

func (m *MsgWithdrawPosition) XXX_Size() int

func (*MsgWithdrawPosition) XXX_Unmarshal

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

type MsgWithdrawPositionResponse

type MsgWithdrawPositionResponse struct {
	Amount0 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount0,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount0" yaml:"amount0"`
	Amount1 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount1,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount1" yaml:"amount1"`
}

func (*MsgWithdrawPositionResponse) Descriptor

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

func (*MsgWithdrawPositionResponse) Marshal

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

func (*MsgWithdrawPositionResponse) MarshalTo

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

func (*MsgWithdrawPositionResponse) MarshalToSizedBuffer

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

func (*MsgWithdrawPositionResponse) ProtoMessage

func (*MsgWithdrawPositionResponse) ProtoMessage()

func (*MsgWithdrawPositionResponse) Reset

func (m *MsgWithdrawPositionResponse) Reset()

func (*MsgWithdrawPositionResponse) Size

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

func (*MsgWithdrawPositionResponse) String

func (m *MsgWithdrawPositionResponse) String() string

func (*MsgWithdrawPositionResponse) Unmarshal

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

func (*MsgWithdrawPositionResponse) XXX_DiscardUnknown

func (m *MsgWithdrawPositionResponse) XXX_DiscardUnknown()

func (*MsgWithdrawPositionResponse) XXX_Marshal

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

func (*MsgWithdrawPositionResponse) XXX_Merge

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

func (*MsgWithdrawPositionResponse) XXX_Size

func (m *MsgWithdrawPositionResponse) XXX_Size() int

func (*MsgWithdrawPositionResponse) XXX_Unmarshal

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

type NegativeAmountAddedError

type NegativeAmountAddedError struct {
	PositionId   uint64
	Asset0Amount sdk.Int
	Asset1Amount sdk.Int
}

func (NegativeAmountAddedError) Error

func (e NegativeAmountAddedError) Error() string

type NegativeDurationError

type NegativeDurationError struct {
	Duration time.Duration
}

func (NegativeDurationError) Error

func (e NegativeDurationError) Error() string

type NegativeLiquidityError

type NegativeLiquidityError struct {
	Liquidity sdk.Dec
}

func (NegativeLiquidityError) Error

func (e NegativeLiquidityError) Error() string

type NoSpotPriceWhenNoLiquidityError

type NoSpotPriceWhenNoLiquidityError struct {
	PoolId uint64
}

func (NoSpotPriceWhenNoLiquidityError) Error

type NonPositiveEmissionRateError

type NonPositiveEmissionRateError struct {
	PoolId       uint64
	EmissionRate sdk.Dec
}

func (NonPositiveEmissionRateError) Error

type NonPositiveLiquidityForNewPositionError

type NonPositiveLiquidityForNewPositionError struct {
	LiquidityDelta sdk.Dec
	PositionId     uint64
}

func (NonPositiveLiquidityForNewPositionError) Error

type NotPositionOwnerError

type NotPositionOwnerError struct {
	PositionId uint64
	Address    string
}

func (NotPositionOwnerError) Error

func (e NotPositionOwnerError) Error() string

type NotPositiveRequireAmountError

type NotPositiveRequireAmountError struct {
	Amount string
}

func (NotPositiveRequireAmountError) Error

type NumCoinsError

type NumCoinsError struct {
	NumCoins int
}

func (NumCoinsError) Error

func (e NumCoinsError) Error() string

type OverChargeSwapOutGivenInError

type OverChargeSwapOutGivenInError struct {
	AmountSpecifiedRemaining sdk.Dec
}

func (OverChargeSwapOutGivenInError) Error

type Params

type Params struct {
	// authorized_tick_spacing is an array of uint64s that represents the tick
	// spacing values concentrated-liquidity pools can be created with. For
	// example, an authorized_tick_spacing of [1, 10, 30] allows for pools
	// to be created with tick spacing of 1, 10, or 30.
	AuthorizedTickSpacing   []uint64                                 `` /* 165-byte string literal not displayed */
	AuthorizedSpreadFactors []github_com_cosmos_cosmos_sdk_types.Dec `` /* 205-byte string literal not displayed */
	// balancer_shares_reward_discount is the rate by which incentives flowing
	// from CL to Balancer pools will be discounted to encourage LPs to migrate.
	// e.g. a rate of 0.05 means Balancer LPs get 5% less incentives than full
	// range CL LPs.
	// This field can range from (0,1]. If set to 1, it indicates that all
	// incentives stay at cl pool.
	BalancerSharesRewardDiscount github_com_cosmos_cosmos_sdk_types.Dec `` /* 228-byte string literal not displayed */
	// authorized_quote_denoms is a list of quote denoms that can be used as
	// token1 when creating a pool. We limit the quote assets to a small set for
	// the purposes of having convinient price increments stemming from tick to
	// price conversion. These increments are in a human readable magnitude only
	// for token1 as a quote. For limit orders in the future, this will be a
	// desirable property in terms of UX as to allow users to set limit orders at
	// prices in terms of token1 (quote asset) that are easy to reason about.
	AuthorizedQuoteDenoms []string        `` /* 157-byte string literal not displayed */
	AuthorizedUptimes     []time.Duration `` /* 140-byte string literal not displayed */
	// is_permissionless_pool_creation_enabled is a boolean that determines if
	// concentrated liquidity pools can be created via message. At launch,
	// we consider allowing only governance to create pools, and then later
	// allowing permissionless pool creation by switching this flag to true
	// with a governance proposal.
	IsPermissionlessPoolCreationEnabled bool `` /* 220-byte string literal not displayed */
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns default concentrated-liquidity module parameters.

func NewParams

func NewParams(authorizedTickSpacing []uint64, authorizedSpreadFactors []sdk.Dec, discountRate sdk.Dec, authorizedQuoteDenoms []string, authorizedUptimes []time.Duration, isPermissionlessPoolCreationEnabled bool) Params

func (*Params) Descriptor

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

func (*Params) GetAuthorizedQuoteDenoms

func (m *Params) GetAuthorizedQuoteDenoms() []string

func (*Params) GetAuthorizedTickSpacing

func (m *Params) GetAuthorizedTickSpacing() []uint64

func (*Params) GetAuthorizedUptimes

func (m *Params) GetAuthorizedUptimes() []time.Duration

func (*Params) GetIsPermissionlessPoolCreationEnabled

func (m *Params) GetIsPermissionlessPoolCreationEnabled() bool

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 implements 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 (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate 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 PoolIdToTickSpacingRecord

type PoolIdToTickSpacingRecord struct {
	PoolId         uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	NewTickSpacing uint64 `protobuf:"varint,2,opt,name=new_tick_spacing,json=newTickSpacing,proto3" json:"new_tick_spacing,omitempty"`
}

PoolIdToTickSpacingRecord is a struct that contains a pool id to new tick spacing pair.

func (*PoolIdToTickSpacingRecord) Descriptor

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

func (*PoolIdToTickSpacingRecord) Equal

func (this *PoolIdToTickSpacingRecord) Equal(that interface{}) bool

func (*PoolIdToTickSpacingRecord) GetNewTickSpacing

func (m *PoolIdToTickSpacingRecord) GetNewTickSpacing() uint64

func (*PoolIdToTickSpacingRecord) GetPoolId

func (m *PoolIdToTickSpacingRecord) GetPoolId() uint64

func (*PoolIdToTickSpacingRecord) Marshal

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

func (*PoolIdToTickSpacingRecord) MarshalTo

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

func (*PoolIdToTickSpacingRecord) MarshalToSizedBuffer

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

func (*PoolIdToTickSpacingRecord) ProtoMessage

func (*PoolIdToTickSpacingRecord) ProtoMessage()

func (*PoolIdToTickSpacingRecord) Reset

func (m *PoolIdToTickSpacingRecord) Reset()

func (*PoolIdToTickSpacingRecord) Size

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

func (*PoolIdToTickSpacingRecord) String

func (m *PoolIdToTickSpacingRecord) String() string

func (*PoolIdToTickSpacingRecord) Unmarshal

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

func (*PoolIdToTickSpacingRecord) XXX_DiscardUnknown

func (m *PoolIdToTickSpacingRecord) XXX_DiscardUnknown()

func (*PoolIdToTickSpacingRecord) XXX_Marshal

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

func (*PoolIdToTickSpacingRecord) XXX_Merge

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

func (*PoolIdToTickSpacingRecord) XXX_Size

func (m *PoolIdToTickSpacingRecord) XXX_Size() int

func (*PoolIdToTickSpacingRecord) XXX_Unmarshal

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

type PoolIncentivesKeeper

type PoolIncentivesKeeper interface {
	GetPoolGaugeId(ctx sdk.Context, poolId uint64, lockableDuration time.Duration) (uint64, error)
	GetLongestLockableDuration(ctx sdk.Context) (time.Duration, error)
}

type PoolManagerKeeper

type PoolManagerKeeper interface {
	CreatePool(ctx sdk.Context, msg poolmanagertypes.CreatePoolMsg) (uint64, error)
	GetNextPoolId(ctx sdk.Context) uint64
	CreateConcentratedPoolAsPoolManager(ctx sdk.Context, msg poolmanagertypes.CreatePoolMsg) (poolmanagertypes.PoolI, error)
}

PoolManagerKeeper defines the interface needed to be fulfilled for the poolmanager keeper.

type PoolNotFoundError

type PoolNotFoundError struct {
	PoolId uint64
}

func (PoolNotFoundError) Error

func (e PoolNotFoundError) Error() string

type PoolPositionIdNotFoundError

type PoolPositionIdNotFoundError struct {
	PositionId uint64
	PoolId     uint64
}

func (PoolPositionIdNotFoundError) Error

type PoolRecord

type PoolRecord struct {
	Denom0             string                                 `protobuf:"bytes,1,opt,name=denom0,proto3" json:"denom0,omitempty" yaml:"denom0"`
	Denom1             string                                 `protobuf:"bytes,2,opt,name=denom1,proto3" json:"denom1,omitempty" yaml:"denom1"`
	TickSpacing        uint64                                 `protobuf:"varint,3,opt,name=tick_spacing,json=tickSpacing,proto3" json:"tick_spacing,omitempty" yaml:"tick_spacing"`
	ExponentAtPriceOne github_com_cosmos_cosmos_sdk_types.Int `` /* 188-byte string literal not displayed */
	SpreadFactor       github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */
}

func (*PoolRecord) Descriptor

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

func (*PoolRecord) Equal

func (this *PoolRecord) Equal(that interface{}) bool

func (*PoolRecord) GetDenom0

func (m *PoolRecord) GetDenom0() string

func (*PoolRecord) GetDenom1

func (m *PoolRecord) GetDenom1() string

func (*PoolRecord) GetTickSpacing

func (m *PoolRecord) GetTickSpacing() uint64

func (*PoolRecord) Marshal

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

func (*PoolRecord) MarshalTo

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

func (*PoolRecord) MarshalToSizedBuffer

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

func (*PoolRecord) ProtoMessage

func (*PoolRecord) ProtoMessage()

func (*PoolRecord) Reset

func (m *PoolRecord) Reset()

func (*PoolRecord) Size

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

func (*PoolRecord) String

func (m *PoolRecord) String() string

func (*PoolRecord) Unmarshal

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

func (*PoolRecord) XXX_DiscardUnknown

func (m *PoolRecord) XXX_DiscardUnknown()

func (*PoolRecord) XXX_Marshal

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

func (*PoolRecord) XXX_Merge

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

func (*PoolRecord) XXX_Size

func (m *PoolRecord) XXX_Size() int

func (*PoolRecord) XXX_Unmarshal

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

type PositionAlreadyExistsError

type PositionAlreadyExistsError struct {
	PoolId    uint64
	LowerTick int64
	UpperTick int64
	JoinTime  time.Time
}

func (PositionAlreadyExistsError) Error

type PositionIdNotFoundError

type PositionIdNotFoundError struct {
	PositionId uint64
}

func (PositionIdNotFoundError) Error

func (e PositionIdNotFoundError) Error() string

type PositionIdToLockNotFoundError

type PositionIdToLockNotFoundError struct {
	PositionId uint64
}

func (PositionIdToLockNotFoundError) Error

type PositionNotFoundError

type PositionNotFoundError struct {
	PoolId    uint64
	LowerTick int64
	UpperTick int64
	JoinTime  time.Time
}

func (PositionNotFoundError) Error

func (e PositionNotFoundError) Error() string

type PositionNotFullRangeError

type PositionNotFullRangeError struct {
	PositionId uint64
	LowerTick  int64
	UpperTick  int64
}

func (PositionNotFullRangeError) Error

type PositionNotFullyChargedError

type PositionNotFullyChargedError struct {
	PositionId               uint64
	PositionJoinTime         time.Time
	FullyChargedMinTimestamp time.Time
}

func (PositionNotFullyChargedError) Error

type PositionOwnerMismatchError

type PositionOwnerMismatchError struct {
	PositionOwner string
	Sender        string
}

func (PositionOwnerMismatchError) Error

type PositionQuantityTooLowError

type PositionQuantityTooLowError struct {
	MinNumPositions int
	NumPositions    int
}

func (PositionQuantityTooLowError) Error

type PositionSuperfluidStakedError

type PositionSuperfluidStakedError struct {
	PositionId uint64
}

func (PositionSuperfluidStakedError) Error

type PositionsNotInSamePoolError

type PositionsNotInSamePoolError struct {
	Position1PoolId uint64
	Position2PoolId uint64
}

func (PositionsNotInSamePoolError) Error

type PositionsNotInSameTickRangeError

type PositionsNotInSameTickRangeError struct {
	Position1TickLower int64
	Position1TickUpper int64
	Position2TickLower int64
	Position2TickUpper int64
}

func (PositionsNotInSameTickRangeError) Error

type PriceBoundError

type PriceBoundError struct {
	ProvidedPrice sdk.Dec
	MinSpotPrice  sdk.Dec
	MaxSpotPrice  sdk.Dec
}

func (PriceBoundError) Error

func (e PriceBoundError) Error() string

type QualifyingLiquidityOrTimeElapsedNotPositiveError

type QualifyingLiquidityOrTimeElapsedNotPositiveError struct {
	QualifyingLiquidity sdk.Dec
	TimeElapsed         sdk.Dec
}

func (QualifyingLiquidityOrTimeElapsedNotPositiveError) Error

type QueryRangeUnsupportedError

type QueryRangeUnsupportedError struct {
	RequestedRange sdk.Int
	MaxRange       sdk.Int
}

func (QueryRangeUnsupportedError) Error

type RanOutOfTicksForPoolError

type RanOutOfTicksForPoolError struct {
	PoolId uint64
}

func (RanOutOfTicksForPoolError) Error

type SpotPriceNegativeError

type SpotPriceNegativeError struct {
	ProvidedPrice sdk.Dec
}

func (SpotPriceNegativeError) Error

func (e SpotPriceNegativeError) Error() string

type SpreadRewardPositionNotFoundError

type SpreadRewardPositionNotFoundError struct {
	PositionId uint64
}

func (SpreadRewardPositionNotFoundError) Error

type SqrtPriceNegativeError

type SqrtPriceNegativeError struct {
	ProvidedSqrtPrice osmomath.BigDec
}

func (SqrtPriceNegativeError) Error

func (e SqrtPriceNegativeError) Error() string

type SqrtPriceToTickError

type SqrtPriceToTickError struct {
	OutOfBounds bool
}

func (SqrtPriceToTickError) Error

func (e SqrtPriceToTickError) Error() string

type SqrtPriceValidationError

type SqrtPriceValidationError struct {
	SqrtPriceLimit osmomath.BigDec
	LowerBound     osmomath.BigDec
	UpperBound     osmomath.BigDec
}

func (SqrtPriceValidationError) Error

func (e SqrtPriceValidationError) Error() string

type SqrtRootCalculationError

type SqrtRootCalculationError struct {
	SqrtPriceLimit sdk.Dec
}

func (SqrtRootCalculationError) Error

func (e SqrtRootCalculationError) Error() string

type StartTimeTooEarlyError

type StartTimeTooEarlyError struct {
	PoolId           uint64
	CurrentBlockTime time.Time
	StartTime        time.Time
}

func (StartTimeTooEarlyError) Error

func (e StartTimeTooEarlyError) Error() string

type SwapNoProgressError

type SwapNoProgressError struct {
	PoolId           uint64
	UserProvidedCoin sdk.Coin
}

func (SwapNoProgressError) Error

func (e SwapNoProgressError) Error() string

type SwapNoProgressWithConsumptionError

type SwapNoProgressWithConsumptionError struct {
	ComputedSqrtPrice osmomath.BigDec
	AmountIn          sdk.Dec
	AmountOut         sdk.Dec
}

func (SwapNoProgressWithConsumptionError) Error

type TickIndexMaximumError

type TickIndexMaximumError struct {
	MaxTick int64
}

func (TickIndexMaximumError) Error

func (e TickIndexMaximumError) Error() string

type TickIndexMinimumError

type TickIndexMinimumError struct {
	MinTick int64
}

func (TickIndexMinimumError) Error

func (e TickIndexMinimumError) Error() string

type TickIndexNotWithinBoundariesError

type TickIndexNotWithinBoundariesError struct {
	MaxTick    int64
	MinTick    int64
	ActualTick int64
}

func (TickIndexNotWithinBoundariesError) Error

type TickNotFoundError

type TickNotFoundError struct {
	Tick int64
}

func (TickNotFoundError) Error

func (e TickNotFoundError) Error() string

type TickSpacingBoundaryError

type TickSpacingBoundaryError struct {
	TickSpacing        uint64
	TickSpacingMinimum uint64
	TickSpacingMaximum uint64
}

func (TickSpacingBoundaryError) Error

func (e TickSpacingBoundaryError) Error() string

type TickSpacingDecreaseProposal

type TickSpacingDecreaseProposal struct {
	Title                      string                      `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description                string                      `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	PoolIdToTickSpacingRecords []PoolIdToTickSpacingRecord `` /* 137-byte string literal not displayed */
}

TickSpacingDecreaseProposal is a gov Content type for proposing a tick spacing decrease for a pool. The proposal will fail if one of the pools do not exist, or if the new tick spacing is not less than the current tick spacing.

func (*TickSpacingDecreaseProposal) Descriptor

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

func (*TickSpacingDecreaseProposal) Equal

func (this *TickSpacingDecreaseProposal) Equal(that interface{}) bool

func (*TickSpacingDecreaseProposal) GetDescription

func (p *TickSpacingDecreaseProposal) GetDescription() string

GetDescription gets the description of the proposal

func (*TickSpacingDecreaseProposal) GetTitle

func (p *TickSpacingDecreaseProposal) GetTitle() string

GetTitle gets the title of the proposal

func (*TickSpacingDecreaseProposal) Marshal

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

func (*TickSpacingDecreaseProposal) MarshalTo

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

func (*TickSpacingDecreaseProposal) MarshalToSizedBuffer

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

func (*TickSpacingDecreaseProposal) ProposalRoute

func (p *TickSpacingDecreaseProposal) ProposalRoute() string

ProposalRoute returns the router key for the proposal

func (*TickSpacingDecreaseProposal) ProposalType

func (p *TickSpacingDecreaseProposal) ProposalType() string

ProposalType returns the type of the proposal

func (*TickSpacingDecreaseProposal) ProtoMessage

func (*TickSpacingDecreaseProposal) ProtoMessage()

func (*TickSpacingDecreaseProposal) Reset

func (m *TickSpacingDecreaseProposal) Reset()

func (*TickSpacingDecreaseProposal) Size

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

func (TickSpacingDecreaseProposal) String

String returns a string containing the decrease tick spacing proposal.

func (*TickSpacingDecreaseProposal) Unmarshal

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

func (*TickSpacingDecreaseProposal) ValidateBasic

func (p *TickSpacingDecreaseProposal) ValidateBasic() error

ValidateBasic validates a governance proposal's abstract and basic contents.

func (*TickSpacingDecreaseProposal) XXX_DiscardUnknown

func (m *TickSpacingDecreaseProposal) XXX_DiscardUnknown()

func (*TickSpacingDecreaseProposal) XXX_Marshal

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

func (*TickSpacingDecreaseProposal) XXX_Merge

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

func (*TickSpacingDecreaseProposal) XXX_Size

func (m *TickSpacingDecreaseProposal) XXX_Size() int

func (*TickSpacingDecreaseProposal) XXX_Unmarshal

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

type TickSpacingError

type TickSpacingError struct {
	TickSpacing uint64
	LowerTick   int64
	UpperTick   int64
}

func (TickSpacingError) Error

func (e TickSpacingError) Error() string

type TickToSqrtPriceConversionError

type TickToSqrtPriceConversionError struct {
	NextTick int64
}

func (TickToSqrtPriceConversionError) Error

type TimeElapsedNotPositiveError

type TimeElapsedNotPositiveError struct {
	TimeElapsed sdk.Dec
}

func (TimeElapsedNotPositiveError) Error

type TokenInDenomNotInPoolError

type TokenInDenomNotInPoolError struct {
	TokenInDenom string
}

func (TokenInDenomNotInPoolError) Error

type TokenOutDenomNotInPoolError

type TokenOutDenomNotInPoolError struct {
	TokenOutDenom string
}

func (TokenOutDenomNotInPoolError) Error

type UnauthorizedQuoteDenomError

type UnauthorizedQuoteDenomError struct {
	ProvidedQuoteDenom    string
	AuthorizedQuoteDenoms []string
}

func (UnauthorizedQuoteDenomError) Error

type UnauthorizedSpreadFactorError

type UnauthorizedSpreadFactorError struct {
	ProvidedSpreadFactor    sdk.Dec
	AuthorizedSpreadFactors []sdk.Dec
}

func (UnauthorizedSpreadFactorError) Error

type UnauthorizedTickSpacingError

type UnauthorizedTickSpacingError struct {
	ProvidedTickSpacing    uint64
	AuthorizedTickSpacings []uint64
}

func (UnauthorizedTickSpacingError) Error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddToPosition

func (*UnimplementedMsgServer) CollectIncentives

func (*UnimplementedMsgServer) CollectSpreadRewards

func (*UnimplementedMsgServer) CreatePosition

func (*UnimplementedMsgServer) WithdrawPosition

type UninitializedPoolWithLiquidityError

type UninitializedPoolWithLiquidityError struct {
	PoolId uint64
}

func (UninitializedPoolWithLiquidityError) Error

type UpperTickMismatchError

type UpperTickMismatchError struct {
	PositionId uint64
	Expected   int64
	Got        int64
}

func (UpperTickMismatchError) Error

func (e UpperTickMismatchError) Error() string

type UptimeNotSupportedError

type UptimeNotSupportedError struct {
	Uptime time.Duration
}

func (UptimeNotSupportedError) Error

func (e UptimeNotSupportedError) Error() string

type ValueNotFoundForKeyError

type ValueNotFoundForKeyError struct {
	Key []byte
}

func (ValueNotFoundForKeyError) Error

func (e ValueNotFoundForKeyError) Error() string

type ValueParseError

type ValueParseError struct {
	Wrapped error
}

func (ValueParseError) Error

func (e ValueParseError) Error() string

func (ValueParseError) Unwrap

func (e ValueParseError) Unwrap() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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