Documentation ¶
Index ¶
- Constants
- Variables
- func GetConcentratedLockupDenomFromPoolId(poolId uint64) string
- func GetPoolIdFromShareDenom(denom string) (uint64, error)
- func KeyAddressAndPoolId(addr sdk.AccAddress, poolId uint64) []byte
- func KeyAddressPoolIdPositionId(addr sdk.AccAddress, poolId uint64, positionId uint64) []byte
- func KeyBalancerFullRange(clPoolId, balancerPoolId, uptimeIndex uint64) []byte
- func KeyFullRangeLiquidityPrefix(poolId uint64) []byte
- func KeyIncentiveRecord(poolId uint64, minUptimeIndex int, denom string, addr sdk.AccAddress) []byte
- func KeyLockIdForPositionId(lockId uint64) []byte
- func KeyPool(poolId uint64) []byte
- func KeyPoolIncentiveRecords(poolId uint64) []byte
- func KeyPoolPosition(poolId uint64) []byte
- func KeyPoolPositionPositionId(poolId uint64, positionId uint64) []byte
- func KeyPositionId(positionId uint64) []byte
- func KeyPositionIdForLock(positionId uint64) []byte
- func KeySpreadRewardPoolAccumulator(poolId uint64) string
- func KeySpreadRewardPositionAccumulator(positionId uint64) string
- func KeyTick(poolId uint64, tickIndex int64) []byte
- func KeyTickPrefixByPoolId(poolId uint64) []byte
- func KeyUptimeAccumulator(poolId uint64, uptimeIndex uint64) string
- func KeyUptimeIncentiveRecords(poolId uint64, minUptimeIndex int) []byte
- func KeyUserPositions(addr sdk.AccAddress) []byte
- func MustGetPoolIdFromShareDenom(denom string) uint64
- func NewCreateConcentratedLiquidityPoolsProposal(title, description string, records []PoolRecord) govtypes.Content
- func NewTickSpacingDecreaseProposal(title, description string, records []PoolIdToTickSpacingRecord) govtypes.Content
- func ParamKeyTable() paramtypes.KeyTable
- func PositionIdForLockIdKeys(positionId, lockId uint64) (positionIdToLockIdKey []byte, lockIdToPositionIdKey []byte)
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func TickIndexFromBytes(bz []byte) (int64, error)
- func TickIndexToBytes(tickIndex int64) []byte
- type AccountKeeper
- type AddToLastPositionInPoolError
- type AddressPoolPositionIdNotFoundError
- type Amount0IsNegativeError
- type Amount1IsNegativeError
- type AmountGreaterThanMaxError
- type AmountLessThanMinError
- type BalancerRecordNotClearedError
- type BalancerRecordNotFoundError
- type BankKeeper
- type CoinLengthError
- type CommunityPoolKeeper
- type ConcentratedLiquidityListener
- type ConcentratedLiquidityListeners
- func (l ConcentratedLiquidityListeners) AfterConcentratedPoolCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)
- func (l ConcentratedLiquidityListeners) AfterConcentratedPoolSwap(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, input sdk.Coins, ...)
- func (l ConcentratedLiquidityListeners) AfterInitialPoolPositionCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)
- func (l ConcentratedLiquidityListeners) AfterLastPoolPositionRemoved(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)
- type ConcentratedPoolExtension
- type CreateConcentratedLiquidityPoolsProposal
- func (*CreateConcentratedLiquidityPoolsProposal) Descriptor() ([]byte, []int)
- func (this *CreateConcentratedLiquidityPoolsProposal) Equal(that interface{}) bool
- func (p *CreateConcentratedLiquidityPoolsProposal) GetDescription() string
- func (p *CreateConcentratedLiquidityPoolsProposal) GetTitle() string
- func (m *CreateConcentratedLiquidityPoolsProposal) Marshal() (dAtA []byte, err error)
- func (m *CreateConcentratedLiquidityPoolsProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *CreateConcentratedLiquidityPoolsProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *CreateConcentratedLiquidityPoolsProposal) ProposalRoute() string
- func (p *CreateConcentratedLiquidityPoolsProposal) ProposalType() string
- func (*CreateConcentratedLiquidityPoolsProposal) ProtoMessage()
- func (m *CreateConcentratedLiquidityPoolsProposal) Reset()
- func (m *CreateConcentratedLiquidityPoolsProposal) Size() (n int)
- func (p CreateConcentratedLiquidityPoolsProposal) String() string
- func (m *CreateConcentratedLiquidityPoolsProposal) Unmarshal(dAtA []byte) error
- func (p *CreateConcentratedLiquidityPoolsProposal) ValidateBasic() error
- func (m *CreateConcentratedLiquidityPoolsProposal) XXX_DiscardUnknown()
- func (m *CreateConcentratedLiquidityPoolsProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreateConcentratedLiquidityPoolsProposal) XXX_Merge(src proto.Message)
- func (m *CreateConcentratedLiquidityPoolsProposal) XXX_Size() int
- func (m *CreateConcentratedLiquidityPoolsProposal) XXX_Unmarshal(b []byte) error
- type DenomDuplicatedError
- type ErrInvalidBalancerPoolLiquidityError
- type GAMMKeeper
- type IncentiveInsufficientBalanceError
- type IncentiveRecord
- func (*IncentiveRecord) Descriptor() ([]byte, []int)
- func (m *IncentiveRecord) GetIncentiveCreatorAddr() string
- func (m *IncentiveRecord) GetIncentiveDenom() string
- func (m *IncentiveRecord) GetIncentiveRecordBody() IncentiveRecordBody
- func (m *IncentiveRecord) GetMinUptime() time.Duration
- func (m *IncentiveRecord) GetPoolId() uint64
- func (m *IncentiveRecord) Marshal() (dAtA []byte, err error)
- func (m *IncentiveRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *IncentiveRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IncentiveRecord) ProtoMessage()
- func (m *IncentiveRecord) Reset()
- func (m *IncentiveRecord) Size() (n int)
- func (m *IncentiveRecord) String() string
- func (m *IncentiveRecord) Unmarshal(dAtA []byte) error
- func (m *IncentiveRecord) XXX_DiscardUnknown()
- func (m *IncentiveRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IncentiveRecord) XXX_Merge(src proto.Message)
- func (m *IncentiveRecord) XXX_Size() int
- func (m *IncentiveRecord) XXX_Unmarshal(b []byte) error
- type IncentiveRecordBody
- func (*IncentiveRecordBody) Descriptor() ([]byte, []int)
- func (m *IncentiveRecordBody) GetStartTime() time.Time
- func (m *IncentiveRecordBody) Marshal() (dAtA []byte, err error)
- func (m *IncentiveRecordBody) MarshalTo(dAtA []byte) (int, error)
- func (m *IncentiveRecordBody) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IncentiveRecordBody) ProtoMessage()
- func (m *IncentiveRecordBody) Reset()
- func (m *IncentiveRecordBody) Size() (n int)
- func (m *IncentiveRecordBody) String() string
- func (m *IncentiveRecordBody) Unmarshal(dAtA []byte) error
- func (m *IncentiveRecordBody) XXX_DiscardUnknown()
- func (m *IncentiveRecordBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IncentiveRecordBody) XXX_Merge(src proto.Message)
- func (m *IncentiveRecordBody) XXX_Size() int
- func (m *IncentiveRecordBody) XXX_Unmarshal(b []byte) error
- type IncentiveRecordNotFoundError
- type IncentivesKeeper
- type InitialLiquidityZeroError
- type InsufficientLiquidityCreatedError
- type InsufficientLiquidityError
- type InsufficientPoolBalanceError
- type InsufficientUserBalanceError
- type InvalidAmountCalculatedError
- type InvalidDirectionError
- type InvalidDiscountRateError
- type InvalidIncentiveCoinError
- type InvalidKeyComponentError
- type InvalidLowerUpperTickError
- type InvalidMinUptimeError
- type InvalidNextPositionIdError
- type InvalidPrefixError
- type InvalidSpreadFactorError
- type InvalidTickError
- type InvalidTickIndexEncodingError
- type InvalidTickKeyByteLengthError
- type InvalidUptimeIndexError
- type JoinTimeMismatchError
- type LiquidityWithdrawalError
- type LockIdToPositionIdNotFoundError
- type LockNotMatureError
- type LockupKeeper
- type LowerTickMismatchError
- type MatchingDenomError
- type ModifySamePositionAccumulatorError
- type MsgAddToPosition
- func (*MsgAddToPosition) Descriptor() ([]byte, []int)
- func (m *MsgAddToPosition) GetPositionId() uint64
- func (m *MsgAddToPosition) GetSender() string
- func (msg MsgAddToPosition) GetSignBytes() []byte
- func (msg MsgAddToPosition) GetSigners() []sdk.AccAddress
- func (m *MsgAddToPosition) Marshal() (dAtA []byte, err error)
- func (m *MsgAddToPosition) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddToPosition) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddToPosition) ProtoMessage()
- func (m *MsgAddToPosition) Reset()
- func (msg MsgAddToPosition) Route() string
- func (m *MsgAddToPosition) Size() (n int)
- func (m *MsgAddToPosition) String() string
- func (msg MsgAddToPosition) Type() string
- func (m *MsgAddToPosition) Unmarshal(dAtA []byte) error
- func (msg MsgAddToPosition) ValidateBasic() error
- func (m *MsgAddToPosition) XXX_DiscardUnknown()
- func (m *MsgAddToPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddToPosition) XXX_Merge(src proto.Message)
- func (m *MsgAddToPosition) XXX_Size() int
- func (m *MsgAddToPosition) XXX_Unmarshal(b []byte) error
- type MsgAddToPositionResponse
- func (*MsgAddToPositionResponse) Descriptor() ([]byte, []int)
- func (m *MsgAddToPositionResponse) GetPositionId() uint64
- func (m *MsgAddToPositionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAddToPositionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAddToPositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAddToPositionResponse) ProtoMessage()
- func (m *MsgAddToPositionResponse) Reset()
- func (m *MsgAddToPositionResponse) Size() (n int)
- func (m *MsgAddToPositionResponse) String() string
- func (m *MsgAddToPositionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAddToPositionResponse) XXX_DiscardUnknown()
- func (m *MsgAddToPositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAddToPositionResponse) XXX_Merge(src proto.Message)
- func (m *MsgAddToPositionResponse) XXX_Size() int
- func (m *MsgAddToPositionResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCollectIncentives
- func (*MsgCollectIncentives) Descriptor() ([]byte, []int)
- func (m *MsgCollectIncentives) GetPositionIds() []uint64
- func (m *MsgCollectIncentives) GetSender() string
- func (msg MsgCollectIncentives) GetSignBytes() []byte
- func (msg MsgCollectIncentives) GetSigners() []sdk.AccAddress
- func (m *MsgCollectIncentives) Marshal() (dAtA []byte, err error)
- func (m *MsgCollectIncentives) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCollectIncentives) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCollectIncentives) ProtoMessage()
- func (m *MsgCollectIncentives) Reset()
- func (msg MsgCollectIncentives) Route() string
- func (m *MsgCollectIncentives) Size() (n int)
- func (m *MsgCollectIncentives) String() string
- func (msg MsgCollectIncentives) Type() string
- func (m *MsgCollectIncentives) Unmarshal(dAtA []byte) error
- func (msg MsgCollectIncentives) ValidateBasic() error
- func (m *MsgCollectIncentives) XXX_DiscardUnknown()
- func (m *MsgCollectIncentives) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCollectIncentives) XXX_Merge(src proto.Message)
- func (m *MsgCollectIncentives) XXX_Size() int
- func (m *MsgCollectIncentives) XXX_Unmarshal(b []byte) error
- type MsgCollectIncentivesResponse
- func (*MsgCollectIncentivesResponse) Descriptor() ([]byte, []int)
- func (m *MsgCollectIncentivesResponse) GetCollectedIncentives() []types.Coin
- func (m *MsgCollectIncentivesResponse) GetForfeitedIncentives() []types.Coin
- func (m *MsgCollectIncentivesResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCollectIncentivesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCollectIncentivesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCollectIncentivesResponse) ProtoMessage()
- func (m *MsgCollectIncentivesResponse) Reset()
- func (m *MsgCollectIncentivesResponse) Size() (n int)
- func (m *MsgCollectIncentivesResponse) String() string
- func (m *MsgCollectIncentivesResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCollectIncentivesResponse) XXX_DiscardUnknown()
- func (m *MsgCollectIncentivesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCollectIncentivesResponse) XXX_Merge(src proto.Message)
- func (m *MsgCollectIncentivesResponse) XXX_Size() int
- func (m *MsgCollectIncentivesResponse) XXX_Unmarshal(b []byte) error
- type MsgCollectSpreadRewards
- func (*MsgCollectSpreadRewards) Descriptor() ([]byte, []int)
- func (m *MsgCollectSpreadRewards) GetPositionIds() []uint64
- func (m *MsgCollectSpreadRewards) GetSender() string
- func (msg MsgCollectSpreadRewards) GetSignBytes() []byte
- func (msg MsgCollectSpreadRewards) GetSigners() []sdk.AccAddress
- func (m *MsgCollectSpreadRewards) Marshal() (dAtA []byte, err error)
- func (m *MsgCollectSpreadRewards) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCollectSpreadRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCollectSpreadRewards) ProtoMessage()
- func (m *MsgCollectSpreadRewards) Reset()
- func (msg MsgCollectSpreadRewards) Route() string
- func (m *MsgCollectSpreadRewards) Size() (n int)
- func (m *MsgCollectSpreadRewards) String() string
- func (msg MsgCollectSpreadRewards) Type() string
- func (m *MsgCollectSpreadRewards) Unmarshal(dAtA []byte) error
- func (msg MsgCollectSpreadRewards) ValidateBasic() error
- func (m *MsgCollectSpreadRewards) XXX_DiscardUnknown()
- func (m *MsgCollectSpreadRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCollectSpreadRewards) XXX_Merge(src proto.Message)
- func (m *MsgCollectSpreadRewards) XXX_Size() int
- func (m *MsgCollectSpreadRewards) XXX_Unmarshal(b []byte) error
- type MsgCollectSpreadRewardsResponse
- func (*MsgCollectSpreadRewardsResponse) Descriptor() ([]byte, []int)
- func (m *MsgCollectSpreadRewardsResponse) GetCollectedSpreadRewards() []types.Coin
- func (m *MsgCollectSpreadRewardsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCollectSpreadRewardsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCollectSpreadRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCollectSpreadRewardsResponse) ProtoMessage()
- func (m *MsgCollectSpreadRewardsResponse) Reset()
- func (m *MsgCollectSpreadRewardsResponse) Size() (n int)
- func (m *MsgCollectSpreadRewardsResponse) String() string
- func (m *MsgCollectSpreadRewardsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCollectSpreadRewardsResponse) XXX_DiscardUnknown()
- func (m *MsgCollectSpreadRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCollectSpreadRewardsResponse) XXX_Merge(src proto.Message)
- func (m *MsgCollectSpreadRewardsResponse) XXX_Size() int
- func (m *MsgCollectSpreadRewardsResponse) XXX_Unmarshal(b []byte) error
- type MsgCreatePosition
- func (*MsgCreatePosition) Descriptor() ([]byte, []int)
- func (m *MsgCreatePosition) GetLowerTick() int64
- func (m *MsgCreatePosition) GetPoolId() uint64
- func (m *MsgCreatePosition) GetSender() string
- func (msg MsgCreatePosition) GetSignBytes() []byte
- func (msg MsgCreatePosition) GetSigners() []sdk.AccAddress
- func (m *MsgCreatePosition) GetTokensProvided() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgCreatePosition) GetUpperTick() int64
- func (m *MsgCreatePosition) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePosition) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePosition) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePosition) ProtoMessage()
- func (m *MsgCreatePosition) Reset()
- func (msg MsgCreatePosition) Route() string
- func (m *MsgCreatePosition) Size() (n int)
- func (m *MsgCreatePosition) String() string
- func (msg MsgCreatePosition) Type() string
- func (m *MsgCreatePosition) Unmarshal(dAtA []byte) error
- func (msg MsgCreatePosition) ValidateBasic() error
- func (m *MsgCreatePosition) XXX_DiscardUnknown()
- func (m *MsgCreatePosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePosition) XXX_Merge(src proto.Message)
- func (m *MsgCreatePosition) XXX_Size() int
- func (m *MsgCreatePosition) XXX_Unmarshal(b []byte) error
- type MsgCreatePositionResponse
- func (*MsgCreatePositionResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreatePositionResponse) GetJoinTime() time.Time
- func (m *MsgCreatePositionResponse) GetLowerTick() int64
- func (m *MsgCreatePositionResponse) GetPositionId() uint64
- func (m *MsgCreatePositionResponse) GetUpperTick() int64
- func (m *MsgCreatePositionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreatePositionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreatePositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreatePositionResponse) ProtoMessage()
- func (m *MsgCreatePositionResponse) Reset()
- func (m *MsgCreatePositionResponse) Size() (n int)
- func (m *MsgCreatePositionResponse) String() string
- func (m *MsgCreatePositionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreatePositionResponse) XXX_DiscardUnknown()
- func (m *MsgCreatePositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreatePositionResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreatePositionResponse) XXX_Size() int
- func (m *MsgCreatePositionResponse) XXX_Unmarshal(b []byte) error
- type MsgFungifyChargedPositions
- func (*MsgFungifyChargedPositions) Descriptor() ([]byte, []int)
- func (m *MsgFungifyChargedPositions) GetPositionIds() []uint64
- func (m *MsgFungifyChargedPositions) GetSender() string
- func (msg MsgFungifyChargedPositions) GetSignBytes() []byte
- func (msg MsgFungifyChargedPositions) GetSigners() []sdk.AccAddress
- func (m *MsgFungifyChargedPositions) Marshal() (dAtA []byte, err error)
- func (m *MsgFungifyChargedPositions) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFungifyChargedPositions) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFungifyChargedPositions) ProtoMessage()
- func (m *MsgFungifyChargedPositions) Reset()
- func (msg MsgFungifyChargedPositions) Route() string
- func (m *MsgFungifyChargedPositions) Size() (n int)
- func (m *MsgFungifyChargedPositions) String() string
- func (msg MsgFungifyChargedPositions) Type() string
- func (m *MsgFungifyChargedPositions) Unmarshal(dAtA []byte) error
- func (msg MsgFungifyChargedPositions) ValidateBasic() error
- func (m *MsgFungifyChargedPositions) XXX_DiscardUnknown()
- func (m *MsgFungifyChargedPositions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFungifyChargedPositions) XXX_Merge(src proto.Message)
- func (m *MsgFungifyChargedPositions) XXX_Size() int
- func (m *MsgFungifyChargedPositions) XXX_Unmarshal(b []byte) error
- type MsgFungifyChargedPositionsResponse
- func (*MsgFungifyChargedPositionsResponse) Descriptor() ([]byte, []int)
- func (m *MsgFungifyChargedPositionsResponse) GetNewPositionId() uint64
- func (m *MsgFungifyChargedPositionsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgFungifyChargedPositionsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgFungifyChargedPositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgFungifyChargedPositionsResponse) ProtoMessage()
- func (m *MsgFungifyChargedPositionsResponse) Reset()
- func (m *MsgFungifyChargedPositionsResponse) Size() (n int)
- func (m *MsgFungifyChargedPositionsResponse) String() string
- func (m *MsgFungifyChargedPositionsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgFungifyChargedPositionsResponse) XXX_DiscardUnknown()
- func (m *MsgFungifyChargedPositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgFungifyChargedPositionsResponse) XXX_Merge(src proto.Message)
- func (m *MsgFungifyChargedPositionsResponse) XXX_Size() int
- func (m *MsgFungifyChargedPositionsResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgWithdrawPosition
- func (*MsgWithdrawPosition) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawPosition) GetPositionId() uint64
- func (m *MsgWithdrawPosition) GetSender() string
- func (msg MsgWithdrawPosition) GetSignBytes() []byte
- func (msg MsgWithdrawPosition) GetSigners() []sdk.AccAddress
- func (m *MsgWithdrawPosition) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawPosition) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawPosition) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawPosition) ProtoMessage()
- func (m *MsgWithdrawPosition) Reset()
- func (msg MsgWithdrawPosition) Route() string
- func (m *MsgWithdrawPosition) Size() (n int)
- func (m *MsgWithdrawPosition) String() string
- func (msg MsgWithdrawPosition) Type() string
- func (m *MsgWithdrawPosition) Unmarshal(dAtA []byte) error
- func (msg MsgWithdrawPosition) ValidateBasic() error
- func (m *MsgWithdrawPosition) XXX_DiscardUnknown()
- func (m *MsgWithdrawPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawPosition) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawPosition) XXX_Size() int
- func (m *MsgWithdrawPosition) XXX_Unmarshal(b []byte) error
- type MsgWithdrawPositionResponse
- func (*MsgWithdrawPositionResponse) Descriptor() ([]byte, []int)
- func (m *MsgWithdrawPositionResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgWithdrawPositionResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgWithdrawPositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgWithdrawPositionResponse) ProtoMessage()
- func (m *MsgWithdrawPositionResponse) Reset()
- func (m *MsgWithdrawPositionResponse) Size() (n int)
- func (m *MsgWithdrawPositionResponse) String() string
- func (m *MsgWithdrawPositionResponse) Unmarshal(dAtA []byte) error
- func (m *MsgWithdrawPositionResponse) XXX_DiscardUnknown()
- func (m *MsgWithdrawPositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgWithdrawPositionResponse) XXX_Merge(src proto.Message)
- func (m *MsgWithdrawPositionResponse) XXX_Size() int
- func (m *MsgWithdrawPositionResponse) XXX_Unmarshal(b []byte) error
- type NegativeAmountAddedError
- type NegativeDurationError
- type NegativeLiquidityError
- type NoSpotPriceWhenNoLiquidityError
- type NonPositiveEmissionRateError
- type NonPositiveLiquidityForNewPositionError
- type NotPositionOwnerError
- type NotPositiveRequireAmountError
- type NumCoinsError
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAuthorizedQuoteDenoms() []string
- func (m *Params) GetAuthorizedTickSpacing() []uint64
- func (m *Params) GetAuthorizedUptimes() []time.Duration
- func (m *Params) GetIsPermissionlessPoolCreationEnabled() bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type PoolIdToTickSpacingRecord
- func (*PoolIdToTickSpacingRecord) Descriptor() ([]byte, []int)
- func (this *PoolIdToTickSpacingRecord) Equal(that interface{}) bool
- func (m *PoolIdToTickSpacingRecord) GetNewTickSpacing() uint64
- func (m *PoolIdToTickSpacingRecord) GetPoolId() uint64
- func (m *PoolIdToTickSpacingRecord) Marshal() (dAtA []byte, err error)
- func (m *PoolIdToTickSpacingRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolIdToTickSpacingRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolIdToTickSpacingRecord) ProtoMessage()
- func (m *PoolIdToTickSpacingRecord) Reset()
- func (m *PoolIdToTickSpacingRecord) Size() (n int)
- func (m *PoolIdToTickSpacingRecord) String() string
- func (m *PoolIdToTickSpacingRecord) Unmarshal(dAtA []byte) error
- func (m *PoolIdToTickSpacingRecord) XXX_DiscardUnknown()
- func (m *PoolIdToTickSpacingRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolIdToTickSpacingRecord) XXX_Merge(src proto.Message)
- func (m *PoolIdToTickSpacingRecord) XXX_Size() int
- func (m *PoolIdToTickSpacingRecord) XXX_Unmarshal(b []byte) error
- type PoolIncentivesKeeper
- type PoolManagerKeeper
- type PoolNotFoundError
- type PoolPositionIdNotFoundError
- type PoolRecord
- func (*PoolRecord) Descriptor() ([]byte, []int)
- func (this *PoolRecord) Equal(that interface{}) bool
- func (m *PoolRecord) GetDenom0() string
- func (m *PoolRecord) GetDenom1() string
- func (m *PoolRecord) GetTickSpacing() uint64
- func (m *PoolRecord) Marshal() (dAtA []byte, err error)
- func (m *PoolRecord) MarshalTo(dAtA []byte) (int, error)
- func (m *PoolRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PoolRecord) ProtoMessage()
- func (m *PoolRecord) Reset()
- func (m *PoolRecord) Size() (n int)
- func (m *PoolRecord) String() string
- func (m *PoolRecord) Unmarshal(dAtA []byte) error
- func (m *PoolRecord) XXX_DiscardUnknown()
- func (m *PoolRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PoolRecord) XXX_Merge(src proto.Message)
- func (m *PoolRecord) XXX_Size() int
- func (m *PoolRecord) XXX_Unmarshal(b []byte) error
- type PositionAlreadyExistsError
- type PositionIdNotFoundError
- type PositionIdToLockNotFoundError
- type PositionNotFoundError
- type PositionNotFullRangeError
- type PositionNotFullyChargedError
- type PositionOwnerMismatchError
- type PositionQuantityTooLowError
- type PositionSuperfluidStakedError
- type PositionsNotInSamePoolError
- type PositionsNotInSameTickRangeError
- type PriceBoundError
- type QualifyingLiquidityOrTimeElapsedNotPositiveError
- type QueryRangeUnsupportedError
- type RanOutOfTicksForPoolError
- type SpotPriceNegativeError
- type SpreadRewardPositionNotFoundError
- type SqrtPriceNegativeError
- type SqrtPriceValidationError
- type SqrtRootCalculationError
- type StartTimeTooEarlyError
- type TickIndexMaximumError
- type TickIndexMinimumError
- type TickIndexNotWithinBoundariesError
- type TickNotFoundError
- type TickSpacingBoundaryError
- type TickSpacingDecreaseProposal
- func (*TickSpacingDecreaseProposal) Descriptor() ([]byte, []int)
- func (this *TickSpacingDecreaseProposal) Equal(that interface{}) bool
- func (p *TickSpacingDecreaseProposal) GetDescription() string
- func (p *TickSpacingDecreaseProposal) GetTitle() string
- func (m *TickSpacingDecreaseProposal) Marshal() (dAtA []byte, err error)
- func (m *TickSpacingDecreaseProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *TickSpacingDecreaseProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *TickSpacingDecreaseProposal) ProposalRoute() string
- func (p *TickSpacingDecreaseProposal) ProposalType() string
- func (*TickSpacingDecreaseProposal) ProtoMessage()
- func (m *TickSpacingDecreaseProposal) Reset()
- func (m *TickSpacingDecreaseProposal) Size() (n int)
- func (p TickSpacingDecreaseProposal) String() string
- func (m *TickSpacingDecreaseProposal) Unmarshal(dAtA []byte) error
- func (p *TickSpacingDecreaseProposal) ValidateBasic() error
- func (m *TickSpacingDecreaseProposal) XXX_DiscardUnknown()
- func (m *TickSpacingDecreaseProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TickSpacingDecreaseProposal) XXX_Merge(src proto.Message)
- func (m *TickSpacingDecreaseProposal) XXX_Size() int
- func (m *TickSpacingDecreaseProposal) XXX_Unmarshal(b []byte) error
- type TickSpacingError
- type TickToSqrtPriceConversionError
- type TimeElapsedNotPositiveError
- type TokenInDenomNotInPoolError
- type TokenOutDenomNotInPoolError
- type UnauthorizedQuoteDenomError
- type UnauthorizedSpreadFactorError
- type UnauthorizedTickSpacingError
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AddToPosition(ctx context.Context, req *MsgAddToPosition) (*MsgAddToPositionResponse, error)
- func (*UnimplementedMsgServer) CollectIncentives(ctx context.Context, req *MsgCollectIncentives) (*MsgCollectIncentivesResponse, error)
- func (*UnimplementedMsgServer) CollectSpreadRewards(ctx context.Context, req *MsgCollectSpreadRewards) (*MsgCollectSpreadRewardsResponse, error)
- func (*UnimplementedMsgServer) CreatePosition(ctx context.Context, req *MsgCreatePosition) (*MsgCreatePositionResponse, error)
- func (*UnimplementedMsgServer) FungifyChargedPositions(ctx context.Context, req *MsgFungifyChargedPositions) (*MsgFungifyChargedPositionsResponse, error)
- func (*UnimplementedMsgServer) WithdrawPosition(ctx context.Context, req *MsgWithdrawPosition) (*MsgWithdrawPositionResponse, error)
- type UninitializedPoolWithLiquidityError
- type UpperTickMismatchError
- type UptimeNotSupportedError
- type ValueNotFoundForKeyError
- type ValueParseError
Constants ¶
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" )
const ( ProposalTypeCreateConcentratedLiquidityPool = "CreateConcentratedLiquidityPool" ProposalTypeTickSpacingDecrease = "TickSpacingDecrease" )
const ( ModuleName = "concentratedliquidity" RouterKey = ModuleName StoreKey = ModuleName KeySeparator = "|" ConcentratedLiquidityTokenPrefix = "cl/pool" )
const ( TypeMsgCreatePosition = "create-position" TypeAddToPosition = "add-to-position" TypeMsgWithdrawPosition = "withdraw-position" TypeMsgCollectSpreadRewards = "collect-spread-rewards" TypeMsgCollectIncentives = "collect-incentives" TypeMsgFungifyChargedPositions = "fungify-charged-positions" )
constants.
const (
// Precomputed values for min and max tick
MinTick, MaxTick int64 = -162000000, 342000000
)
Variables ¶
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 // By default, we only authorize one nanosecond (one block) uptime as an option DefaultAuthorizedUptimes = []time.Duration{time.Nanosecond} BaseGasFeeForInitializingTick = 10_000 )
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") )
var ( ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthIncentiveRecord = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIncentiveRecord = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIncentiveRecord = fmt.Errorf("proto: unexpected end of group") )
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
var ( KeyAuthorizedTickSpacing = []byte("AuthorizedTickSpacing") KeyAuthorizedSpreadFactors = []byte("AuthorizedSpreadFactors") KeyDiscountRate = []byte("DiscountRate") KeyAuthorizedQuoteDenoms = []byte("AuthorizedQuoteDenoms") KeyAuthorizedUptimes = []byte("AuthorizedUptimes") KeyIsPermisionlessPoolCreationEnabled = []byte("IsPermisionlessPoolCreationEnabled") )
Parameter store keys.
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func GetConcentratedLockupDenomFromPoolId ¶ added in v15.5.0
GetConcentratedLockupDenomFromPoolId returns the concentrated lockup denom for a given pool id.
func GetPoolIdFromShareDenom ¶ added in v15.5.0
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 KeyFullRangeLiquidityPrefix ¶ added in v15.8.0
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
KeyLockIdForPositionId returns the key consisted of (KeyLockIdForPositionId | lockId)
func KeyPoolIncentiveRecords ¶
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 KeyPositionId ¶
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
KeyPositionIdForLock returns the key consisted of (PositionToLockPrefix | position Id)
func KeySpreadRewardPoolAccumulator ¶ added in v15.8.0
func KeySpreadRewardPositionAccumulator ¶ added in v15.8.0
func KeyTick ¶
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 ¶
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 KeyUptimeIncentiveRecords ¶
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 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 TickIndexFromBytes ¶
TickIndexFromBytes converts an encoded tick index to an int64 value. It returns an error if the encoded tick has invalid length.
func TickIndexToBytes ¶
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
func (AddToLastPositionInPoolError) Error ¶ added in v15.5.0
func (e AddToLastPositionInPoolError) Error() string
type AddressPoolPositionIdNotFoundError ¶
func (AddressPoolPositionIdNotFoundError) Error ¶
func (e AddressPoolPositionIdNotFoundError) Error() string
type Amount0IsNegativeError ¶ added in v15.5.0
func (Amount0IsNegativeError) Error ¶ added in v15.5.0
func (e Amount0IsNegativeError) Error() string
type Amount1IsNegativeError ¶ added in v15.5.0
func (Amount1IsNegativeError) Error ¶ added in v15.5.0
func (e Amount1IsNegativeError) Error() string
type AmountGreaterThanMaxError ¶
func (AmountGreaterThanMaxError) Error ¶
func (e AmountGreaterThanMaxError) Error() string
type AmountLessThanMinError ¶
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
func (e BalancerRecordNotClearedError) Error() string
type BalancerRecordNotFoundError ¶ added in v15.5.0
type BalancerRecordNotFoundError struct { ClPoolId uint64 BalancerPoolId uint64 UptimeIndex uint64 }
func (BalancerRecordNotFoundError) Error ¶ added in v15.5.0
func (e BalancerRecordNotFoundError) Error() string
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
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
func (p *CreateConcentratedLiquidityPoolsProposal) GetDescription() string
GetDescription gets the description of the proposal
func (*CreateConcentratedLiquidityPoolsProposal) GetTitle ¶ added in v15.8.0
func (p *CreateConcentratedLiquidityPoolsProposal) GetTitle() string
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
func (p *CreateConcentratedLiquidityPoolsProposal) ProposalRoute() string
ProposalRoute returns the router key for the proposal
func (*CreateConcentratedLiquidityPoolsProposal) ProposalType ¶ added in v15.8.0
func (p *CreateConcentratedLiquidityPoolsProposal) ProposalType() string
ProposalType returns the type of the proposal
func (*CreateConcentratedLiquidityPoolsProposal) ProtoMessage ¶ added in v15.8.0
func (*CreateConcentratedLiquidityPoolsProposal) ProtoMessage()
func (*CreateConcentratedLiquidityPoolsProposal) Reset ¶ added in v15.8.0
func (m *CreateConcentratedLiquidityPoolsProposal) Reset()
func (*CreateConcentratedLiquidityPoolsProposal) Size ¶ added in v15.8.0
func (m *CreateConcentratedLiquidityPoolsProposal) Size() (n int)
func (CreateConcentratedLiquidityPoolsProposal) String ¶ added in v15.8.0
func (p CreateConcentratedLiquidityPoolsProposal) String() string
String returns a string containing the pool incentives proposal.
func (*CreateConcentratedLiquidityPoolsProposal) Unmarshal ¶ added in v15.8.0
func (m *CreateConcentratedLiquidityPoolsProposal) Unmarshal(dAtA []byte) error
func (*CreateConcentratedLiquidityPoolsProposal) ValidateBasic ¶ added in v15.8.0
func (p *CreateConcentratedLiquidityPoolsProposal) ValidateBasic() error
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 (m *CreateConcentratedLiquidityPoolsProposal) XXX_Merge(src proto.Message)
func (*CreateConcentratedLiquidityPoolsProposal) XXX_Size ¶ added in v15.8.0
func (m *CreateConcentratedLiquidityPoolsProposal) XXX_Size() int
func (*CreateConcentratedLiquidityPoolsProposal) XXX_Unmarshal ¶ added in v15.8.0
func (m *CreateConcentratedLiquidityPoolsProposal) XXX_Unmarshal(b []byte) error
type DenomDuplicatedError ¶
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
func (e ErrInvalidBalancerPoolLiquidityError) Error() string
type GAMMKeeper ¶ added in v15.5.0
type IncentiveInsufficientBalanceError ¶
type IncentiveInsufficientBalanceError struct { PoolId uint64 IncentiveDenom string IncentiveAmount sdk.Int }
func (IncentiveInsufficientBalanceError) Error ¶
func (e IncentiveInsufficientBalanceError) Error() string
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) 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 ¶
func (e IncentiveRecordNotFoundError) Error() string
type IncentivesKeeper ¶ added in v15.5.0
type InitialLiquidityZeroError ¶
func (InitialLiquidityZeroError) Error ¶
func (e InitialLiquidityZeroError) Error() string
type InsufficientLiquidityCreatedError ¶
func (InsufficientLiquidityCreatedError) Error ¶
func (e InsufficientLiquidityCreatedError) Error() string
type InsufficientLiquidityError ¶
func (InsufficientLiquidityError) Error ¶
func (e InsufficientLiquidityError) Error() string
type InsufficientPoolBalanceError ¶
type InsufficientPoolBalanceError struct {
Err error
}
func (InsufficientPoolBalanceError) Error ¶
func (e InsufficientPoolBalanceError) Error() string
func (*InsufficientPoolBalanceError) Unwrap ¶
func (e *InsufficientPoolBalanceError) Unwrap() error
type InsufficientUserBalanceError ¶
type InsufficientUserBalanceError struct {
Err error
}
func (InsufficientUserBalanceError) Error ¶
func (e InsufficientUserBalanceError) Error() string
func (*InsufficientUserBalanceError) Unwrap ¶
func (e *InsufficientUserBalanceError) Unwrap() error
type InvalidAmountCalculatedError ¶
func (InvalidAmountCalculatedError) Error ¶
func (e InvalidAmountCalculatedError) Error() string
type InvalidDirectionError ¶
func (InvalidDirectionError) Error ¶
func (e InvalidDirectionError) Error() string
type InvalidDiscountRateError ¶ added in v15.5.0
func (InvalidDiscountRateError) Error ¶ added in v15.5.0
func (e InvalidDiscountRateError) Error() string
type InvalidIncentiveCoinError ¶ added in v15.5.0
func (InvalidIncentiveCoinError) Error ¶ added in v15.5.0
func (e InvalidIncentiveCoinError) Error() string
type InvalidKeyComponentError ¶
type InvalidKeyComponentError struct { KeyStr string KeySeparator string NumComponentsExpected int ComponentsExpectedStr string }
func (InvalidKeyComponentError) Error ¶
func (e InvalidKeyComponentError) Error() string
type InvalidLowerUpperTickError ¶
x/concentrated-liquidity module sentinel errors.
func (InvalidLowerUpperTickError) Error ¶
func (e InvalidLowerUpperTickError) Error() string
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 ¶
func (e InvalidNextPositionIdError) Error() string
type InvalidPrefixError ¶
func (InvalidPrefixError) Error ¶
func (e InvalidPrefixError) Error() string
type InvalidSpreadFactorError ¶ added in v15.8.0
func (InvalidSpreadFactorError) Error ¶ added in v15.8.0
func (e InvalidSpreadFactorError) Error() string
type InvalidTickError ¶
func (InvalidTickError) Error ¶
func (e InvalidTickError) Error() string
type InvalidTickIndexEncodingError ¶
type InvalidTickIndexEncodingError struct {
Length int
}
func (InvalidTickIndexEncodingError) Error ¶
func (e InvalidTickIndexEncodingError) Error() string
type InvalidTickKeyByteLengthError ¶
type InvalidTickKeyByteLengthError struct {
Length int
}
func (InvalidTickKeyByteLengthError) Error ¶
func (e InvalidTickKeyByteLengthError) Error() string
type InvalidUptimeIndexError ¶
func (InvalidUptimeIndexError) Error ¶
func (e InvalidUptimeIndexError) Error() string
type JoinTimeMismatchError ¶ added in v15.5.0
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
func (e LockIdToPositionIdNotFoundError) Error() string
type LockNotMatureError ¶ added in v15.5.0
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
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
func (e ModifySamePositionAccumulatorError) Error() string
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 (m *MsgCollectIncentivesResponse) String() 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 (m *MsgCollectSpreadRewardsResponse) Reset()
func (*MsgCollectSpreadRewardsResponse) Size ¶ added in v15.8.0
func (m *MsgCollectSpreadRewardsResponse) Size() (n int)
func (*MsgCollectSpreadRewardsResponse) String ¶ added in v15.8.0
func (m *MsgCollectSpreadRewardsResponse) String() string
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 (m *MsgCreatePosition) GetTokensProvided() github_com_cosmos_cosmos_sdk_types.Coins
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 (msg MsgFungifyChargedPositions) Type() string
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 (m *MsgFungifyChargedPositionsResponse) Reset()
func (*MsgFungifyChargedPositionsResponse) Size ¶ added in v15.5.0
func (m *MsgFungifyChargedPositionsResponse) Size() (n int)
func (*MsgFungifyChargedPositionsResponse) String ¶ added in v15.5.0
func (m *MsgFungifyChargedPositionsResponse) String() string
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 (m *MsgFungifyChargedPositionsResponse) XXX_Merge(src proto.Message)
func (*MsgFungifyChargedPositionsResponse) XXX_Size ¶ added in v15.5.0
func (m *MsgFungifyChargedPositionsResponse) XXX_Size() int
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 ¶
func (NegativeDurationError) Error ¶
func (e NegativeDurationError) Error() string
type NegativeLiquidityError ¶
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
func (e NoSpotPriceWhenNoLiquidityError) Error() string
type NonPositiveEmissionRateError ¶
func (NonPositiveEmissionRateError) Error ¶
func (e NonPositiveEmissionRateError) Error() string
type NonPositiveLiquidityForNewPositionError ¶ added in v15.5.0
func (NonPositiveLiquidityForNewPositionError) Error ¶ added in v15.5.0
func (e NonPositiveLiquidityForNewPositionError) Error() string
type NotPositionOwnerError ¶ added in v15.5.0
func (NotPositionOwnerError) Error ¶ added in v15.5.0
func (e NotPositionOwnerError) Error() string
type NotPositiveRequireAmountError ¶
type NotPositiveRequireAmountError struct {
Amount string
}
func (NotPositiveRequireAmountError) Error ¶
func (e NotPositiveRequireAmountError) Error() string
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 */ // 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 (*Params) Descriptor ¶
func (*Params) GetAuthorizedQuoteDenoms ¶ added in v15.5.0
func (*Params) GetAuthorizedTickSpacing ¶
func (*Params) GetAuthorizedUptimes ¶ added in v15.5.0
func (*Params) GetIsPermissionlessPoolCreationEnabled ¶ added in v15.5.0
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements params.ParamSet.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type 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 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 ¶
func (PoolPositionIdNotFoundError) Error ¶
func (e PoolPositionIdNotFoundError) Error() string
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 ¶
func (e PositionAlreadyExistsError) Error() string
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
func (e PositionIdToLockNotFoundError) Error() string
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
func (PositionNotFullRangeError) Error ¶ added in v15.5.0
func (e PositionNotFullRangeError) Error() string
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
func (e PositionNotFullyChargedError) Error() string
type PositionOwnerMismatchError ¶ added in v15.5.0
func (PositionOwnerMismatchError) Error ¶ added in v15.5.0
func (e PositionOwnerMismatchError) Error() string
type PositionQuantityTooLowError ¶ added in v15.5.0
func (PositionQuantityTooLowError) Error ¶ added in v15.5.0
func (e PositionQuantityTooLowError) Error() string
type PositionSuperfluidStakedError ¶ added in v15.5.0
type PositionSuperfluidStakedError struct {
PositionId uint64
}
func (PositionSuperfluidStakedError) Error ¶ added in v15.5.0
func (e PositionSuperfluidStakedError) Error() string
type PositionsNotInSamePoolError ¶ added in v15.5.0
func (PositionsNotInSamePoolError) Error ¶ added in v15.5.0
func (e PositionsNotInSamePoolError) Error() string
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
func (e PositionsNotInSameTickRangeError) Error() string
type PriceBoundError ¶
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
func (e QualifyingLiquidityOrTimeElapsedNotPositiveError) Error() string
type QueryRangeUnsupportedError ¶
func (QueryRangeUnsupportedError) Error ¶
func (e QueryRangeUnsupportedError) Error() string
type RanOutOfTicksForPoolError ¶ added in v15.8.0
type RanOutOfTicksForPoolError struct {
PoolId uint64
}
func (RanOutOfTicksForPoolError) Error ¶ added in v15.8.0
func (e RanOutOfTicksForPoolError) Error() string
type SpotPriceNegativeError ¶
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
func (e SpreadRewardPositionNotFoundError) Error() string
type SqrtPriceNegativeError ¶
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
func (SqrtRootCalculationError) Error ¶ added in v15.8.0
func (e SqrtRootCalculationError) Error() string
type StartTimeTooEarlyError ¶
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 ¶
func (TickIndexNotWithinBoundariesError) Error ¶
func (e TickIndexNotWithinBoundariesError) Error() string
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
func (p TickSpacingDecreaseProposal) String() string
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 ¶
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
func (e TickToSqrtPriceConversionError) Error() string
type TimeElapsedNotPositiveError ¶ added in v15.5.0
func (TimeElapsedNotPositiveError) Error ¶ added in v15.5.0
func (e TimeElapsedNotPositiveError) Error() string
type TokenInDenomNotInPoolError ¶
type TokenInDenomNotInPoolError struct {
TokenInDenom string
}
func (TokenInDenomNotInPoolError) Error ¶
func (e TokenInDenomNotInPoolError) Error() string
type TokenOutDenomNotInPoolError ¶
type TokenOutDenomNotInPoolError struct {
TokenOutDenom string
}
func (TokenOutDenomNotInPoolError) Error ¶
func (e TokenOutDenomNotInPoolError) Error() string
type UnauthorizedQuoteDenomError ¶ added in v15.5.0
type UnauthorizedQuoteDenomError struct {}
func (UnauthorizedQuoteDenomError) Error ¶ added in v15.5.0
func (e UnauthorizedQuoteDenomError) Error() string
type UnauthorizedSpreadFactorError ¶ added in v15.8.0
type UnauthorizedSpreadFactorError struct {}
func (UnauthorizedSpreadFactorError) Error ¶ added in v15.8.0
func (e UnauthorizedSpreadFactorError) Error() string
type UnauthorizedTickSpacingError ¶ added in v15.5.0
type UnauthorizedTickSpacingError struct {}
func (UnauthorizedTickSpacingError) Error ¶ added in v15.5.0
func (e UnauthorizedTickSpacingError) Error() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddToPosition ¶ added in v15.5.0
func (*UnimplementedMsgServer) AddToPosition(ctx context.Context, req *MsgAddToPosition) (*MsgAddToPositionResponse, error)
func (*UnimplementedMsgServer) CollectIncentives ¶
func (*UnimplementedMsgServer) CollectIncentives(ctx context.Context, req *MsgCollectIncentives) (*MsgCollectIncentivesResponse, error)
func (*UnimplementedMsgServer) CollectSpreadRewards ¶ added in v15.8.0
func (*UnimplementedMsgServer) CollectSpreadRewards(ctx context.Context, req *MsgCollectSpreadRewards) (*MsgCollectSpreadRewardsResponse, error)
func (*UnimplementedMsgServer) CreatePosition ¶
func (*UnimplementedMsgServer) CreatePosition(ctx context.Context, req *MsgCreatePosition) (*MsgCreatePositionResponse, error)
func (*UnimplementedMsgServer) FungifyChargedPositions ¶ added in v15.5.0
func (*UnimplementedMsgServer) FungifyChargedPositions(ctx context.Context, req *MsgFungifyChargedPositions) (*MsgFungifyChargedPositionsResponse, error)
func (*UnimplementedMsgServer) WithdrawPosition ¶
func (*UnimplementedMsgServer) WithdrawPosition(ctx context.Context, req *MsgWithdrawPosition) (*MsgWithdrawPositionResponse, error)
type UninitializedPoolWithLiquidityError ¶ added in v15.5.0
type UninitializedPoolWithLiquidityError struct {
PoolId uint64
}
func (UninitializedPoolWithLiquidityError) Error ¶ added in v15.5.0
func (e UninitializedPoolWithLiquidityError) Error() string
type UpperTickMismatchError ¶ added in v15.5.0
func (UpperTickMismatchError) Error ¶ added in v15.5.0
func (e UpperTickMismatchError) Error() string
type UptimeNotSupportedError ¶ added in v15.5.0
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