types

package
v15.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Index

Constants

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.

View Source
const (
	// Precomputed values for min and max tick
	MinTick, MaxTick int64 = -162000000, 342000000
)

Variables

View Source
var (
	ConcentratedGasFeeForSwap = 10_000
	MaxSpotPrice              = sdk.MustNewDecFromStr("100000000000000000000000000000000000000")
	MinSpotPrice              = sdk.MustNewDecFromStr("0.000000000000000001")
	MaxSqrtPrice, _           = MaxSpotPrice.ApproxRoot(2)
	MinSqrtPrice, _           = MinSpotPrice.ApproxRoot(2)
	// 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}
	ExponentAtPriceOne      int64 = -6
	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"),
	}
	BaseGasFeeForNewIncentive     = 10_000
	DefaultBalancerSharesDiscount = sdk.MustNewDecFromStr("0.05")
	// By default, we only authorize one nanosecond (one block) uptime as an option
	DefaultAuthorizedUptimes      = []time.Duration{time.Nanosecond}
	BaseGasFeeForInitializingTick = 10_000
)
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}

	// 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 added in v15.5.0

func GetConcentratedLockupDenomFromPoolId(poolId uint64) string

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

func GetPoolIdFromShareDenom added in v15.5.0

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 added in v15.5.0

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

func KeyFullRangeLiquidityPrefix added in v15.8.0

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, denom string, addr sdk.AccAddress) []byte

Incentive Prefix Keys KeyIncentiveRecord is the key used to store incentive record struct for the pool id + min uptime index + denom + addr combination.

func KeyLockIdForPositionId added in v15.5.0

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 added in v15.5.0

func KeyPositionIdForLock(positionId uint64) []byte

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

func KeySpreadRewardPoolAccumulator added in v15.8.0

func KeySpreadRewardPoolAccumulator(poolId uint64) string

func KeySpreadRewardPositionAccumulator added in v15.8.0

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

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 added in v15.5.0

func MustGetPoolIdFromShareDenom(denom string) uint64

func NewCreateConcentratedLiquidityPoolsProposal added in v15.8.0

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

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

func NewTickSpacingDecreaseProposal added in v15.5.0

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

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamTable for concentrated-liquidity module.

func PositionIdForLockIdKeys added in v15.5.0

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. Negative tick indexes are prefixed with 0x00 a byte and positive tick indexes are prefixed with a 0x01 byte. We do this because big endian byte encoding does not give us in order iteration in state due to the tick index values being signed integers, thus iterating starting from positive then to negative.

Types

type AccountKeeper added in v15.5.0

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

type AddToLastPositionInPoolError added in v15.5.0

type AddToLastPositionInPoolError struct {
	PoolId     uint64
	PositionId uint64
}

func (AddToLastPositionInPoolError) Error added in v15.5.0

type AddressPoolPositionIdNotFoundError

type AddressPoolPositionIdNotFoundError struct {
	PositionId uint64
	Owner      string
	PoolId     uint64
}

func (AddressPoolPositionIdNotFoundError) Error

type Amount0IsNegativeError added in v15.5.0

type Amount0IsNegativeError struct {
	Amount0 sdk.Int
}

func (Amount0IsNegativeError) Error added in v15.5.0

func (e Amount0IsNegativeError) Error() string

type Amount1IsNegativeError added in v15.5.0

type Amount1IsNegativeError struct {
	Amount1 sdk.Int
}

func (Amount1IsNegativeError) Error added in v15.5.0

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 added in v15.5.0

type BalancerRecordNotClearedError struct {
	ClPoolId       uint64
	BalancerPoolId uint64
	UptimeIndex    uint64
}

func (BalancerRecordNotClearedError) Error added in v15.5.0

type BalancerRecordNotFoundError added in v15.5.0

type BalancerRecordNotFoundError struct {
	ClPoolId       uint64
	BalancerPoolId uint64
	UptimeIndex    uint64
}

func (BalancerRecordNotFoundError) Error added in v15.5.0

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 added in v15.5.0

type CoinLengthError struct {
	MaxLength int
	Length    int
}

func (CoinLengthError) Error added in v15.5.0

func (e CoinLengthError) Error() string

type CommunityPoolKeeper added in v15.5.0

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 ConcentratedLiquidityListener added in v15.5.0

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 added in v15.5.0

type ConcentratedLiquidityListeners []ConcentratedLiquidityListener

func NewConcentratedLiquidityListeners added in v15.5.0

func NewConcentratedLiquidityListeners(listeners ...ConcentratedLiquidityListener) ConcentratedLiquidityListeners

Creates hooks for the x/concentrated-liquidity module.

func (ConcentratedLiquidityListeners) AfterConcentratedPoolCreated added in v15.5.0

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

func (ConcentratedLiquidityListeners) AfterConcentratedPoolSwap added in v15.5.0

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

func (ConcentratedLiquidityListeners) AfterInitialPoolPositionCreated added in v15.5.0

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

func (ConcentratedLiquidityListeners) AfterLastPoolPositionRemoved added in v15.5.0

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

type ConcentratedPoolExtension

type ConcentratedPoolExtension interface {
	poolmanagertypes.PoolI

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

	UpdateLiquidity(newLiquidity sdk.Dec)
	ApplySwap(newLiquidity sdk.Dec, newCurrentTick int64, newCurrentSqrtPrice sdk.Dec) 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 added in v15.8.0

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 added in v15.8.0

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

func (*CreateConcentratedLiquidityPoolsProposal) Equal added in v15.8.0

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

func (*CreateConcentratedLiquidityPoolsProposal) GetDescription added in v15.8.0

GetDescription gets the description of the proposal

func (*CreateConcentratedLiquidityPoolsProposal) GetTitle added in v15.8.0

func (*CreateConcentratedLiquidityPoolsProposal) Marshal added in v15.8.0

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

func (*CreateConcentratedLiquidityPoolsProposal) MarshalTo added in v15.8.0

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

func (*CreateConcentratedLiquidityPoolsProposal) MarshalToSizedBuffer added in v15.8.0

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

func (*CreateConcentratedLiquidityPoolsProposal) ProposalRoute added in v15.8.0

ProposalRoute returns the router key for the proposal

func (*CreateConcentratedLiquidityPoolsProposal) ProposalType added in v15.8.0

ProposalType returns the type of the proposal

func (*CreateConcentratedLiquidityPoolsProposal) ProtoMessage added in v15.8.0

func (*CreateConcentratedLiquidityPoolsProposal) Reset added in v15.8.0

func (*CreateConcentratedLiquidityPoolsProposal) Size added in v15.8.0

func (CreateConcentratedLiquidityPoolsProposal) String added in v15.8.0

String returns a string containing the pool incentives proposal.

func (*CreateConcentratedLiquidityPoolsProposal) Unmarshal added in v15.8.0

func (*CreateConcentratedLiquidityPoolsProposal) ValidateBasic added in v15.8.0

ValidateBasic validates a governance proposal's abstract and basic contents

func (*CreateConcentratedLiquidityPoolsProposal) XXX_DiscardUnknown added in v15.8.0

func (m *CreateConcentratedLiquidityPoolsProposal) XXX_DiscardUnknown()

func (*CreateConcentratedLiquidityPoolsProposal) XXX_Marshal added in v15.8.0

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

func (*CreateConcentratedLiquidityPoolsProposal) XXX_Merge added in v15.8.0

func (*CreateConcentratedLiquidityPoolsProposal) XXX_Size added in v15.8.0

func (*CreateConcentratedLiquidityPoolsProposal) XXX_Unmarshal added in v15.8.0

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 added in v15.5.0

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

func (ErrInvalidBalancerPoolLiquidityError) Error added in v15.5.0

type GAMMKeeper added in v15.5.0

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 {
	PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"`
	// incentive_denom is the denom of the token being distributed as part of this
	// incentive record
	IncentiveDenom string `` /* 126-byte string literal not displayed */
	// incentiveCreator is the address that created the incentive record. This
	// address does not have any special privileges – it is only kept to keep
	// incentive records created by different addresses separate.
	IncentiveCreatorAddr string `` /* 153-byte string literal not displayed */
	// 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) GetIncentiveCreatorAddr

func (m *IncentiveRecord) GetIncentiveCreatorAddr() string

func (*IncentiveRecord) GetIncentiveDenom

func (m *IncentiveRecord) GetIncentiveDenom() string

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_amount is the total amount of incentives to be distributed
	RemainingAmount github_com_cosmos_cosmos_sdk_types.Dec `` /* 170-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) 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
	IncentiveDenom      string
	MinUptime           time.Duration
	IncentiveCreatorStr string
}

func (IncentiveRecordNotFoundError) Error

type IncentivesKeeper added in v15.5.0

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 added in v15.5.0

type InvalidDiscountRateError struct {
	DiscountRate sdk.Dec
}

func (InvalidDiscountRateError) Error added in v15.5.0

func (e InvalidDiscountRateError) Error() string

type InvalidIncentiveCoinError added in v15.5.0

type InvalidIncentiveCoinError struct {
	PoolId        uint64
	IncentiveCoin sdk.Coin
}

func (InvalidIncentiveCoinError) Error added in v15.5.0

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 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 added in v15.8.0

type InvalidSpreadFactorError struct {
	ActualSpreadFactor sdk.Dec
}

func (InvalidSpreadFactorError) Error added in v15.8.0

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 added in v15.5.0

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

func (JoinTimeMismatchError) Error added in v15.5.0

func (e JoinTimeMismatchError) Error() string

type LiquidityWithdrawalError added in v15.5.0

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

func (LiquidityWithdrawalError) Error added in v15.5.0

func (e LiquidityWithdrawalError) Error() string

type LockIdToPositionIdNotFoundError added in v15.5.0

type LockIdToPositionIdNotFoundError struct {
	LockId uint64
}

func (LockIdToPositionIdNotFoundError) Error added in v15.5.0

type LockNotMatureError added in v15.5.0

type LockNotMatureError struct {
	PositionId uint64
	LockId     uint64
}

func (LockNotMatureError) Error added in v15.5.0

func (e LockNotMatureError) Error() string

type LockupKeeper added in v15.5.0

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 added in v15.5.0

type LowerTickMismatchError struct {
	PositionId uint64
	Expected   int64
	Got        int64
}

func (LowerTickMismatchError) Error added in v15.5.0

func (e LowerTickMismatchError) Error() string

type MatchingDenomError added in v15.5.0

type MatchingDenomError struct {
	Denom string
}

func (MatchingDenomError) Error added in v15.5.0

func (e MatchingDenomError) Error() string

type ModifySamePositionAccumulatorError added in v15.5.0

type ModifySamePositionAccumulatorError struct {
	PositionAccName string
}

func (ModifySamePositionAccumulatorError) Error added in v15.5.0

type MsgAddToPosition added in v15.5.0

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:"amount1"`
	// 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 total liquidity of the position, not just the
	// liquidity that is being added.
	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 total liquidity of the position, not just the
	// liquidity that is being added.
	TokenMinAmount1 github_com_cosmos_cosmos_sdk_types.Int `` /* 173-byte string literal not displayed */
}

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

func (*MsgAddToPosition) Descriptor added in v15.5.0

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

func (*MsgAddToPosition) GetPositionId added in v15.5.0

func (m *MsgAddToPosition) GetPositionId() uint64

func (*MsgAddToPosition) GetSender added in v15.5.0

func (m *MsgAddToPosition) GetSender() string

func (MsgAddToPosition) GetSignBytes added in v15.5.0

func (msg MsgAddToPosition) GetSignBytes() []byte

func (MsgAddToPosition) GetSigners added in v15.5.0

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

func (*MsgAddToPosition) Marshal added in v15.5.0

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

func (*MsgAddToPosition) MarshalTo added in v15.5.0

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

func (*MsgAddToPosition) MarshalToSizedBuffer added in v15.5.0

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

func (*MsgAddToPosition) ProtoMessage added in v15.5.0

func (*MsgAddToPosition) ProtoMessage()

func (*MsgAddToPosition) Reset added in v15.5.0

func (m *MsgAddToPosition) Reset()

func (MsgAddToPosition) Route added in v15.5.0

func (msg MsgAddToPosition) Route() string

func (*MsgAddToPosition) Size added in v15.5.0

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

func (*MsgAddToPosition) String added in v15.5.0

func (m *MsgAddToPosition) String() string

func (MsgAddToPosition) Type added in v15.5.0

func (msg MsgAddToPosition) Type() string

func (*MsgAddToPosition) Unmarshal added in v15.5.0

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

func (MsgAddToPosition) ValidateBasic added in v15.5.0

func (msg MsgAddToPosition) ValidateBasic() error

func (*MsgAddToPosition) XXX_DiscardUnknown added in v15.5.0

func (m *MsgAddToPosition) XXX_DiscardUnknown()

func (*MsgAddToPosition) XXX_Marshal added in v15.5.0

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

func (*MsgAddToPosition) XXX_Merge added in v15.5.0

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

func (*MsgAddToPosition) XXX_Size added in v15.5.0

func (m *MsgAddToPosition) XXX_Size() int

func (*MsgAddToPosition) XXX_Unmarshal added in v15.5.0

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

type MsgAddToPositionResponse added in v15.5.0

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 added in v15.5.0

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

func (*MsgAddToPositionResponse) GetPositionId added in v15.5.0

func (m *MsgAddToPositionResponse) GetPositionId() uint64

func (*MsgAddToPositionResponse) Marshal added in v15.5.0

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

func (*MsgAddToPositionResponse) MarshalTo added in v15.5.0

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

func (*MsgAddToPositionResponse) MarshalToSizedBuffer added in v15.5.0

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

func (*MsgAddToPositionResponse) ProtoMessage added in v15.5.0

func (*MsgAddToPositionResponse) ProtoMessage()

func (*MsgAddToPositionResponse) Reset added in v15.5.0

func (m *MsgAddToPositionResponse) Reset()

func (*MsgAddToPositionResponse) Size added in v15.5.0

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

func (*MsgAddToPositionResponse) String added in v15.5.0

func (m *MsgAddToPositionResponse) String() string

func (*MsgAddToPositionResponse) Unmarshal added in v15.5.0

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

func (*MsgAddToPositionResponse) XXX_DiscardUnknown added in v15.5.0

func (m *MsgAddToPositionResponse) XXX_DiscardUnknown()

func (*MsgAddToPositionResponse) XXX_Marshal added in v15.5.0

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

func (*MsgAddToPositionResponse) XXX_Merge added in v15.5.0

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

func (*MsgAddToPositionResponse) XXX_Size added in v15.5.0

func (m *MsgAddToPositionResponse) XXX_Size() int

func (*MsgAddToPositionResponse) XXX_Unmarshal added in v15.5.0

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)
	FungifyChargedPositions(ctx context.Context, in *MsgFungifyChargedPositions, opts ...grpc.CallOption) (*MsgFungifyChargedPositionsResponse, 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 []types.Coin `` /* 136-byte string literal not displayed */
	ForfeitedIncentives []types.Coin `` /* 136-byte string literal not displayed */
}

func (*MsgCollectIncentivesResponse) Descriptor

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

func (*MsgCollectIncentivesResponse) GetCollectedIncentives

func (m *MsgCollectIncentivesResponse) GetCollectedIncentives() []types.Coin

func (*MsgCollectIncentivesResponse) GetForfeitedIncentives added in v15.5.0

func (m *MsgCollectIncentivesResponse) GetForfeitedIncentives() []types.Coin

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 added in v15.8.0

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 added in v15.8.0

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

func (*MsgCollectSpreadRewards) GetPositionIds added in v15.8.0

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

func (*MsgCollectSpreadRewards) GetSender added in v15.8.0

func (m *MsgCollectSpreadRewards) GetSender() string

func (MsgCollectSpreadRewards) GetSignBytes added in v15.8.0

func (msg MsgCollectSpreadRewards) GetSignBytes() []byte

func (MsgCollectSpreadRewards) GetSigners added in v15.8.0

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

func (*MsgCollectSpreadRewards) Marshal added in v15.8.0

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

func (*MsgCollectSpreadRewards) MarshalTo added in v15.8.0

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

func (*MsgCollectSpreadRewards) MarshalToSizedBuffer added in v15.8.0

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

func (*MsgCollectSpreadRewards) ProtoMessage added in v15.8.0

func (*MsgCollectSpreadRewards) ProtoMessage()

func (*MsgCollectSpreadRewards) Reset added in v15.8.0

func (m *MsgCollectSpreadRewards) Reset()

func (MsgCollectSpreadRewards) Route added in v15.8.0

func (msg MsgCollectSpreadRewards) Route() string

func (*MsgCollectSpreadRewards) Size added in v15.8.0

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

func (*MsgCollectSpreadRewards) String added in v15.8.0

func (m *MsgCollectSpreadRewards) String() string

func (MsgCollectSpreadRewards) Type added in v15.8.0

func (msg MsgCollectSpreadRewards) Type() string

func (*MsgCollectSpreadRewards) Unmarshal added in v15.8.0

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

func (MsgCollectSpreadRewards) ValidateBasic added in v15.8.0

func (msg MsgCollectSpreadRewards) ValidateBasic() error

func (*MsgCollectSpreadRewards) XXX_DiscardUnknown added in v15.8.0

func (m *MsgCollectSpreadRewards) XXX_DiscardUnknown()

func (*MsgCollectSpreadRewards) XXX_Marshal added in v15.8.0

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

func (*MsgCollectSpreadRewards) XXX_Merge added in v15.8.0

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

func (*MsgCollectSpreadRewards) XXX_Size added in v15.8.0

func (m *MsgCollectSpreadRewards) XXX_Size() int

func (*MsgCollectSpreadRewards) XXX_Unmarshal added in v15.8.0

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

type MsgCollectSpreadRewardsResponse added in v15.8.0

type MsgCollectSpreadRewardsResponse struct {
	CollectedSpreadRewards []types.Coin `` /* 151-byte string literal not displayed */
}

func (*MsgCollectSpreadRewardsResponse) Descriptor added in v15.8.0

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

func (*MsgCollectSpreadRewardsResponse) GetCollectedSpreadRewards added in v15.8.0

func (m *MsgCollectSpreadRewardsResponse) GetCollectedSpreadRewards() []types.Coin

func (*MsgCollectSpreadRewardsResponse) Marshal added in v15.8.0

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

func (*MsgCollectSpreadRewardsResponse) MarshalTo added in v15.8.0

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

func (*MsgCollectSpreadRewardsResponse) MarshalToSizedBuffer added in v15.8.0

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

func (*MsgCollectSpreadRewardsResponse) ProtoMessage added in v15.8.0

func (*MsgCollectSpreadRewardsResponse) ProtoMessage()

func (*MsgCollectSpreadRewardsResponse) Reset added in v15.8.0

func (*MsgCollectSpreadRewardsResponse) Size added in v15.8.0

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

func (*MsgCollectSpreadRewardsResponse) String added in v15.8.0

func (*MsgCollectSpreadRewardsResponse) Unmarshal added in v15.8.0

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

func (*MsgCollectSpreadRewardsResponse) XXX_DiscardUnknown added in v15.8.0

func (m *MsgCollectSpreadRewardsResponse) XXX_DiscardUnknown()

func (*MsgCollectSpreadRewardsResponse) XXX_Marshal added in v15.8.0

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

func (*MsgCollectSpreadRewardsResponse) XXX_Merge added in v15.8.0

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

func (*MsgCollectSpreadRewardsResponse) XXX_Size added in v15.8.0

func (m *MsgCollectSpreadRewardsResponse) XXX_Size() int

func (*MsgCollectSpreadRewardsResponse) XXX_Unmarshal added in v15.8.0

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 added in v15.5.0

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"`
	JoinTime         time.Time                              `protobuf:"bytes,4,opt,name=join_time,json=joinTime,proto3,stdtime" json:"join_time" yaml:"join_time"`
	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) GetJoinTime

func (m *MsgCreatePositionResponse) GetJoinTime() time.Time

func (*MsgCreatePositionResponse) GetLowerTick added in v15.8.0

func (m *MsgCreatePositionResponse) GetLowerTick() int64

func (*MsgCreatePositionResponse) GetPositionId

func (m *MsgCreatePositionResponse) GetPositionId() uint64

func (*MsgCreatePositionResponse) GetUpperTick added in v15.8.0

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 added in v15.5.0

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 added in v15.5.0

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

func (*MsgFungifyChargedPositions) GetPositionIds added in v15.5.0

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

func (*MsgFungifyChargedPositions) GetSender added in v15.5.0

func (m *MsgFungifyChargedPositions) GetSender() string

func (MsgFungifyChargedPositions) GetSignBytes added in v15.5.0

func (msg MsgFungifyChargedPositions) GetSignBytes() []byte

func (MsgFungifyChargedPositions) GetSigners added in v15.5.0

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

func (*MsgFungifyChargedPositions) Marshal added in v15.5.0

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

func (*MsgFungifyChargedPositions) MarshalTo added in v15.5.0

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

func (*MsgFungifyChargedPositions) MarshalToSizedBuffer added in v15.5.0

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

func (*MsgFungifyChargedPositions) ProtoMessage added in v15.5.0

func (*MsgFungifyChargedPositions) ProtoMessage()

func (*MsgFungifyChargedPositions) Reset added in v15.5.0

func (m *MsgFungifyChargedPositions) Reset()

func (MsgFungifyChargedPositions) Route added in v15.5.0

func (msg MsgFungifyChargedPositions) Route() string

func (*MsgFungifyChargedPositions) Size added in v15.5.0

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

func (*MsgFungifyChargedPositions) String added in v15.5.0

func (m *MsgFungifyChargedPositions) String() string

func (MsgFungifyChargedPositions) Type added in v15.5.0

func (*MsgFungifyChargedPositions) Unmarshal added in v15.5.0

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

func (MsgFungifyChargedPositions) ValidateBasic added in v15.5.0

func (msg MsgFungifyChargedPositions) ValidateBasic() error

func (*MsgFungifyChargedPositions) XXX_DiscardUnknown added in v15.5.0

func (m *MsgFungifyChargedPositions) XXX_DiscardUnknown()

func (*MsgFungifyChargedPositions) XXX_Marshal added in v15.5.0

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

func (*MsgFungifyChargedPositions) XXX_Merge added in v15.5.0

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

func (*MsgFungifyChargedPositions) XXX_Size added in v15.5.0

func (m *MsgFungifyChargedPositions) XXX_Size() int

func (*MsgFungifyChargedPositions) XXX_Unmarshal added in v15.5.0

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

type MsgFungifyChargedPositionsResponse added in v15.5.0

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

func (*MsgFungifyChargedPositionsResponse) Descriptor added in v15.5.0

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

func (*MsgFungifyChargedPositionsResponse) GetNewPositionId added in v15.5.0

func (m *MsgFungifyChargedPositionsResponse) GetNewPositionId() uint64

func (*MsgFungifyChargedPositionsResponse) Marshal added in v15.5.0

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

func (*MsgFungifyChargedPositionsResponse) MarshalTo added in v15.5.0

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

func (*MsgFungifyChargedPositionsResponse) MarshalToSizedBuffer added in v15.5.0

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

func (*MsgFungifyChargedPositionsResponse) ProtoMessage added in v15.5.0

func (*MsgFungifyChargedPositionsResponse) ProtoMessage()

func (*MsgFungifyChargedPositionsResponse) Reset added in v15.5.0

func (*MsgFungifyChargedPositionsResponse) Size added in v15.5.0

func (*MsgFungifyChargedPositionsResponse) String added in v15.5.0

func (*MsgFungifyChargedPositionsResponse) Unmarshal added in v15.5.0

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

func (*MsgFungifyChargedPositionsResponse) XXX_DiscardUnknown added in v15.5.0

func (m *MsgFungifyChargedPositionsResponse) XXX_DiscardUnknown()

func (*MsgFungifyChargedPositionsResponse) XXX_Marshal added in v15.5.0

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

func (*MsgFungifyChargedPositionsResponse) XXX_Merge added in v15.5.0

func (*MsgFungifyChargedPositionsResponse) XXX_Size added in v15.5.0

func (*MsgFungifyChargedPositionsResponse) XXX_Unmarshal added in v15.5.0

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)
	FungifyChargedPositions(context.Context, *MsgFungifyChargedPositions) (*MsgFungifyChargedPositionsResponse, 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 added in v15.5.0

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

func (NegativeAmountAddedError) Error added in v15.5.0

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 added in v15.5.0

type NoSpotPriceWhenNoLiquidityError struct {
	PoolId uint64
}

func (NoSpotPriceWhenNoLiquidityError) Error added in v15.5.0

type NonPositiveEmissionRateError

type NonPositiveEmissionRateError struct {
	PoolId       uint64
	EmissionRate sdk.Dec
}

func (NonPositiveEmissionRateError) Error

type NonPositiveLiquidityForNewPositionError added in v15.5.0

type NonPositiveLiquidityForNewPositionError struct {
	LiquidityDelta sdk.Dec
	PositionId     uint64
}

func (NonPositiveLiquidityForNewPositionError) Error added in v15.5.0

type NotPositionOwnerError added in v15.5.0

type NotPositionOwnerError struct {
	PositionId uint64
	Address    string
}

func (NotPositionOwnerError) Error added in v15.5.0

func (e NotPositionOwnerError) Error() string

type NotPositiveRequireAmountError

type NotPositiveRequireAmountError struct {
	Amount string
}

func (NotPositiveRequireAmountError) Error

type NumCoinsError added in v15.5.0

type NumCoinsError struct {
	NumCoins int
}

func (NumCoinsError) Error added in v15.5.0

func (e NumCoinsError) Error() string

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.
	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 added in v15.5.0

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

func (*Params) GetAuthorizedTickSpacing

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

func (*Params) GetAuthorizedUptimes added in v15.5.0

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

func (*Params) GetIsPermissionlessPoolCreationEnabled added in v15.5.0

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 added in v15.5.0

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 added in v15.5.0

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

func (*PoolIdToTickSpacingRecord) Equal added in v15.5.0

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

func (*PoolIdToTickSpacingRecord) GetNewTickSpacing added in v15.5.0

func (m *PoolIdToTickSpacingRecord) GetNewTickSpacing() uint64

func (*PoolIdToTickSpacingRecord) GetPoolId added in v15.5.0

func (m *PoolIdToTickSpacingRecord) GetPoolId() uint64

func (*PoolIdToTickSpacingRecord) Marshal added in v15.5.0

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

func (*PoolIdToTickSpacingRecord) MarshalTo added in v15.5.0

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

func (*PoolIdToTickSpacingRecord) MarshalToSizedBuffer added in v15.5.0

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

func (*PoolIdToTickSpacingRecord) ProtoMessage added in v15.5.0

func (*PoolIdToTickSpacingRecord) ProtoMessage()

func (*PoolIdToTickSpacingRecord) Reset added in v15.5.0

func (m *PoolIdToTickSpacingRecord) Reset()

func (*PoolIdToTickSpacingRecord) Size added in v15.5.0

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

func (*PoolIdToTickSpacingRecord) String added in v15.5.0

func (m *PoolIdToTickSpacingRecord) String() string

func (*PoolIdToTickSpacingRecord) Unmarshal added in v15.5.0

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

func (*PoolIdToTickSpacingRecord) XXX_DiscardUnknown added in v15.5.0

func (m *PoolIdToTickSpacingRecord) XXX_DiscardUnknown()

func (*PoolIdToTickSpacingRecord) XXX_Marshal added in v15.5.0

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

func (*PoolIdToTickSpacingRecord) XXX_Merge added in v15.5.0

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

func (*PoolIdToTickSpacingRecord) XXX_Size added in v15.5.0

func (m *PoolIdToTickSpacingRecord) XXX_Size() int

func (*PoolIdToTickSpacingRecord) XXX_Unmarshal added in v15.5.0

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

type PoolIncentivesKeeper added in v15.5.0

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 added in v15.8.0

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 added in v15.8.0

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

func (*PoolRecord) Equal added in v15.8.0

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

func (*PoolRecord) GetDenom0 added in v15.8.0

func (m *PoolRecord) GetDenom0() string

func (*PoolRecord) GetDenom1 added in v15.8.0

func (m *PoolRecord) GetDenom1() string

func (*PoolRecord) GetTickSpacing added in v15.8.0

func (m *PoolRecord) GetTickSpacing() uint64

func (*PoolRecord) Marshal added in v15.8.0

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

func (*PoolRecord) MarshalTo added in v15.8.0

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

func (*PoolRecord) MarshalToSizedBuffer added in v15.8.0

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

func (*PoolRecord) ProtoMessage added in v15.8.0

func (*PoolRecord) ProtoMessage()

func (*PoolRecord) Reset added in v15.8.0

func (m *PoolRecord) Reset()

func (*PoolRecord) Size added in v15.8.0

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

func (*PoolRecord) String added in v15.8.0

func (m *PoolRecord) String() string

func (*PoolRecord) Unmarshal added in v15.8.0

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

func (*PoolRecord) XXX_DiscardUnknown added in v15.8.0

func (m *PoolRecord) XXX_DiscardUnknown()

func (*PoolRecord) XXX_Marshal added in v15.8.0

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

func (*PoolRecord) XXX_Merge added in v15.8.0

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

func (*PoolRecord) XXX_Size added in v15.8.0

func (m *PoolRecord) XXX_Size() int

func (*PoolRecord) XXX_Unmarshal added in v15.8.0

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 added in v15.5.0

type PositionIdToLockNotFoundError struct {
	PositionId uint64
}

func (PositionIdToLockNotFoundError) Error added in v15.5.0

type PositionNotFoundError

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

func (PositionNotFoundError) Error

func (e PositionNotFoundError) Error() string

type PositionNotFullRangeError added in v15.5.0

type PositionNotFullRangeError struct {
	PositionId uint64
	LowerTick  int64
	UpperTick  int64
}

func (PositionNotFullRangeError) Error added in v15.5.0

type PositionNotFullyChargedError added in v15.5.0

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

func (PositionNotFullyChargedError) Error added in v15.5.0

type PositionOwnerMismatchError added in v15.5.0

type PositionOwnerMismatchError struct {
	PositionOwner string
	Sender        string
}

func (PositionOwnerMismatchError) Error added in v15.5.0

type PositionQuantityTooLowError added in v15.5.0

type PositionQuantityTooLowError struct {
	MinNumPositions int
	NumPositions    int
}

func (PositionQuantityTooLowError) Error added in v15.5.0

type PositionSuperfluidStakedError added in v15.5.0

type PositionSuperfluidStakedError struct {
	PositionId uint64
}

func (PositionSuperfluidStakedError) Error added in v15.5.0

type PositionsNotInSamePoolError added in v15.5.0

type PositionsNotInSamePoolError struct {
	Position1PoolId uint64
	Position2PoolId uint64
}

func (PositionsNotInSamePoolError) Error added in v15.5.0

type PositionsNotInSameTickRangeError added in v15.5.0

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

func (PositionsNotInSameTickRangeError) Error added in v15.5.0

type PriceBoundError

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

func (PriceBoundError) Error

func (e PriceBoundError) Error() string

type QualifyingLiquidityOrTimeElapsedNotPositiveError added in v15.5.0

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

func (QualifyingLiquidityOrTimeElapsedNotPositiveError) Error added in v15.5.0

type QueryRangeUnsupportedError

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

func (QueryRangeUnsupportedError) Error

type RanOutOfTicksForPoolError added in v15.8.0

type RanOutOfTicksForPoolError struct {
	PoolId uint64
}

func (RanOutOfTicksForPoolError) Error added in v15.8.0

type SpotPriceNegativeError

type SpotPriceNegativeError struct {
	ProvidedPrice sdk.Dec
}

func (SpotPriceNegativeError) Error

func (e SpotPriceNegativeError) Error() string

type SpreadRewardPositionNotFoundError added in v15.8.0

type SpreadRewardPositionNotFoundError struct {
	PositionId uint64
}

func (SpreadRewardPositionNotFoundError) Error added in v15.8.0

type SqrtPriceNegativeError

type SqrtPriceNegativeError struct {
	ProvidedSqrtPrice sdk.Dec
}

func (SqrtPriceNegativeError) Error

func (e SqrtPriceNegativeError) Error() string

type SqrtPriceValidationError added in v15.5.0

type SqrtPriceValidationError struct {
	SqrtPriceLimit sdk.Dec
	LowerBound     sdk.Dec
	UpperBound     sdk.Dec
}

func (SqrtPriceValidationError) Error added in v15.5.0

func (e SqrtPriceValidationError) Error() string

type SqrtRootCalculationError added in v15.8.0

type SqrtRootCalculationError struct {
	SqrtPriceLimit sdk.Dec
}

func (SqrtRootCalculationError) Error added in v15.8.0

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 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 added in v15.5.0

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 added in v15.5.0

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

func (*TickSpacingDecreaseProposal) Equal added in v15.5.0

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

func (*TickSpacingDecreaseProposal) GetDescription added in v15.5.0

func (p *TickSpacingDecreaseProposal) GetDescription() string

GetDescription gets the description of the proposal

func (*TickSpacingDecreaseProposal) GetTitle added in v15.5.0

func (p *TickSpacingDecreaseProposal) GetTitle() string

GetTitle gets the title of the proposal

func (*TickSpacingDecreaseProposal) Marshal added in v15.5.0

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

func (*TickSpacingDecreaseProposal) MarshalTo added in v15.5.0

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

func (*TickSpacingDecreaseProposal) MarshalToSizedBuffer added in v15.5.0

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

func (*TickSpacingDecreaseProposal) ProposalRoute added in v15.5.0

func (p *TickSpacingDecreaseProposal) ProposalRoute() string

ProposalRoute returns the router key for the proposal

func (*TickSpacingDecreaseProposal) ProposalType added in v15.5.0

func (p *TickSpacingDecreaseProposal) ProposalType() string

ProposalType returns the type of the proposal

func (*TickSpacingDecreaseProposal) ProtoMessage added in v15.5.0

func (*TickSpacingDecreaseProposal) ProtoMessage()

func (*TickSpacingDecreaseProposal) Reset added in v15.5.0

func (m *TickSpacingDecreaseProposal) Reset()

func (*TickSpacingDecreaseProposal) Size added in v15.5.0

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

func (TickSpacingDecreaseProposal) String added in v15.5.0

String returns a string containing the decrease tick spacing proposal.

func (*TickSpacingDecreaseProposal) Unmarshal added in v15.5.0

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

func (*TickSpacingDecreaseProposal) ValidateBasic added in v15.5.0

func (p *TickSpacingDecreaseProposal) ValidateBasic() error

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

func (*TickSpacingDecreaseProposal) XXX_DiscardUnknown added in v15.5.0

func (m *TickSpacingDecreaseProposal) XXX_DiscardUnknown()

func (*TickSpacingDecreaseProposal) XXX_Marshal added in v15.5.0

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

func (*TickSpacingDecreaseProposal) XXX_Merge added in v15.5.0

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

func (*TickSpacingDecreaseProposal) XXX_Size added in v15.5.0

func (m *TickSpacingDecreaseProposal) XXX_Size() int

func (*TickSpacingDecreaseProposal) XXX_Unmarshal added in v15.5.0

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 added in v15.8.0

type TickToSqrtPriceConversionError struct {
	NextTick int64
}

func (TickToSqrtPriceConversionError) Error added in v15.8.0

type TimeElapsedNotPositiveError added in v15.5.0

type TimeElapsedNotPositiveError struct {
	TimeElapsed sdk.Dec
}

func (TimeElapsedNotPositiveError) Error added in v15.5.0

type TokenInDenomNotInPoolError

type TokenInDenomNotInPoolError struct {
	TokenInDenom string
}

func (TokenInDenomNotInPoolError) Error

type TokenOutDenomNotInPoolError

type TokenOutDenomNotInPoolError struct {
	TokenOutDenom string
}

func (TokenOutDenomNotInPoolError) Error

type UnauthorizedQuoteDenomError added in v15.5.0

type UnauthorizedQuoteDenomError struct {
	ProvidedQuoteDenom    string
	AuthorizedQuoteDenoms []string
}

func (UnauthorizedQuoteDenomError) Error added in v15.5.0

type UnauthorizedSpreadFactorError added in v15.8.0

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

func (UnauthorizedSpreadFactorError) Error added in v15.8.0

type UnauthorizedTickSpacingError added in v15.5.0

type UnauthorizedTickSpacingError struct {
	ProvidedTickSpacing    uint64
	AuthorizedTickSpacings []uint64
}

func (UnauthorizedTickSpacingError) Error added in v15.5.0

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddToPosition added in v15.5.0

func (*UnimplementedMsgServer) CollectIncentives

func (*UnimplementedMsgServer) CollectSpreadRewards added in v15.8.0

func (*UnimplementedMsgServer) CreatePosition

func (*UnimplementedMsgServer) FungifyChargedPositions added in v15.5.0

func (*UnimplementedMsgServer) WithdrawPosition

type UninitializedPoolWithLiquidityError added in v15.5.0

type UninitializedPoolWithLiquidityError struct {
	PoolId uint64
}

func (UninitializedPoolWithLiquidityError) Error added in v15.5.0

type UpperTickMismatchError added in v15.5.0

type UpperTickMismatchError struct {
	PositionId uint64
	Expected   int64
	Got        int64
}

func (UpperTickMismatchError) Error added in v15.5.0

func (e UpperTickMismatchError) Error() string

type UptimeNotSupportedError added in v15.5.0

type UptimeNotSupportedError struct {
	Uptime time.Duration
}

func (UptimeNotSupportedError) Error added in v15.5.0

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