Documentation ¶
Index ¶
- Constants
- Variables
- func GetConcentratedLockupDenomFromPoolId(poolId uint64) string
- func GetDenomPrefix(denom string) []byte
- 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, id uint64) []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 ComputedSqrtPriceInequalityError
- 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) GetIncentiveId() uint64
- 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) GetRemainingCoin() types1.DecCoin
- 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 InvalidNextIncentiveRecordIdError
- 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() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgCollectIncentivesResponse) GetForfeitedIncentives() github_com_cosmos_cosmos_sdk_types.Coins
- 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() github_com_cosmos_cosmos_sdk_types.Coins
- 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) 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 OverChargeSwapOutGivenInError
- 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 SqrtPriceToTickError
- type SqrtPriceValidationError
- type SqrtRootCalculationError
- type StartTimeTooEarlyError
- type SwapNoProgressError
- type SwapNoProgressWithConsumptionError
- 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) WithdrawPosition(ctx context.Context, req *MsgWithdrawPosition) (*MsgWithdrawPositionResponse, error)
- type UninitializedPoolWithLiquidityError
- type UpperTickMismatchError
- type UptimeNotSupportedError
- type ValueNotFoundForKeyError
- type ValueParseError
Constants ¶
const (
// Precomputed values for min and max tick
MinInitializedTick, MaxTick int64 = -108000000, 342000000
// If we consume all liquidity and cross the min initialized tick,
// our current tick will equal to MinInitializedTick - 1 with zero liquidity.
// However, note that this tick cannot be crossed. If current tick
// equals to this tick, it is only possible to swap in the right (one for zero)
// direction.
// Note, that this behavior is different from MaxTick since our "active range"
// invariant is [lower tick, uppper tick). As a result, when we consume all lower
// tick liquiditty, we must cross it and get kicked out of it.
MinCurrentTick int64 = MinInitializedTick - 1
ExponentAtPriceOne int64 = -6
ConcentratedGasFeeForSwap = 10_000
BaseGasFeeForNewIncentive = 10_000
BaseGasFeeForInitializingTick = 10_000
)
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.
Variables ¶
var ( MaxSpotPrice = sdk.MustNewDecFromStr("100000000000000000000000000000000000000") MinSpotPrice = sdk.MustNewDecFromStr("0.000000000001") // 10^-12 MaxSqrtPrice = osmomath.MustMonotonicSqrt(MaxSpotPrice) MinSqrtPrice = osmomath.MustMonotonicSqrt(MinSpotPrice) MaxSqrtPriceBigDec = osmomath.BigDecFromSDKDec(MaxSqrtPrice) MinSqrtPriceBigDec = osmomath.BigDecFromSDKDec(MinSqrtPrice) // Supported uptimes preset to 1 ns, 1 min, 1 hr, 1D, 1W, 2W SupportedUptimes = []time.Duration{time.Nanosecond, time.Minute, time.Hour, time.Hour * 24, time.Hour * 24 * 7, time.Hour * 24 * 7 * 2} AuthorizedTickSpacing = []uint64{1, 10, 100, 1000} AuthorizedSpreadFactors = []sdk.Dec{ sdk.ZeroDec(), sdk.MustNewDecFromStr("0.0001"), sdk.MustNewDecFromStr("0.0005"), sdk.MustNewDecFromStr("0.001"), sdk.MustNewDecFromStr("0.002"), sdk.MustNewDecFromStr("0.003"), sdk.MustNewDecFromStr("0.005"), } // By default, we only authorize one nanosecond (one block) uptime as an option DefaultAuthorizedUptimes = []time.Duration{time.Nanosecond} )
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} KeyNextGlobalIncentiveRecordId = []byte{0x12} KeyTotalLiquidity = []byte{0x13} // TickPrefix + pool id KeyTickPrefixByPoolIdLengthBytes = len(TickPrefix) + uint64ByteSize // TickPrefix + pool id + sign byte(negative / positive prefix) + tick index: 18bytes in total KeyTickLengthBytes = KeyTickPrefixByPoolIdLengthBytes + 1 + uint64ByteSize )
Key prefixes
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 ¶
GetConcentratedLockupDenomFromPoolId returns the concentrated lockup denom for a given pool id.
func GetDenomPrefix ¶
func GetPoolIdFromShareDenom ¶
Helper Functions
func KeyAddressAndPoolId ¶
func KeyAddressAndPoolId(addr sdk.AccAddress, poolId uint64) []byte
KeyAddressAndPoolId returns the prefix key used to create KeyAddressPoolIdPositionId, which only includes addr + pool id. This key can be used to iterate over users positions for a specific pool.
func KeyAddressPoolIdPositionId ¶
func KeyAddressPoolIdPositionId(addr sdk.AccAddress, poolId uint64, positionId uint64) []byte
KeyAddressPoolIdPositionId returns the full key needed to store the position id for given addr + pool id + position id combination.
func KeyBalancerFullRange ¶
func KeyFullRangeLiquidityPrefix ¶
KeyFullRangeLiquidityPrefix returns the prefix used to keep track of full range liquidity for each pool.
func KeyIncentiveRecord ¶
Incentive Prefix Keys KeyIncentiveRecord is the key used to store incentive records using the combination of pool id + min uptime index + incentive record id.
func KeyLockIdForPositionId ¶
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 ¶
KeyPositionIdForLock returns the key consisted of (PositionToLockPrefix | position Id)
func KeySpreadRewardPoolAccumulator ¶
This is guaranteed to not contain "||" so it can be used as an accumulator name.
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 ¶
Uptme Accumulator Prefix Keys This is guaranteed to not contain "||" so it can be used as an accumulator name.
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 NewCreateConcentratedLiquidityPoolsProposal ¶
func NewCreateConcentratedLiquidityPoolsProposal(title, description string, records []PoolRecord) govtypes.Content
NewCreateConcentratedLiquidityPoolsProposal returns a new instance of a create concentrated liquidity pool proposal struct.
func NewTickSpacingDecreaseProposal ¶
func NewTickSpacingDecreaseProposal(title, description string, records []PoolIdToTickSpacingRecord) govtypes.Content
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamTable for concentrated-liquidity module.
func PositionIdForLockIdKeys ¶
func PositionIdForLockIdKeys(positionId, lockId uint64) (positionIdToLockIdKey []byte, lockIdToPositionIdKey []byte)
PositionId<>LockId and LockId<>PositionId Prefix Keys
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func 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. The encoding is: - Negative tick indexes are prefixed with a byte `b` - Positive tick indexes are prefixed with a byte `b + 1`. - Then we encode sign || BigEndian(uint64(tickIndex))
This leading sign byte is to ensure we can iterate over the tick indexes in order. 2's complement guarantees that negative integers are in order when iterating. However they are not in order relative to positive integers (as 2's complement flips the leading bit) Hence we use the leading sign byte to ensure that negative tick indexes are in order relative to positive tick indexes. TODO: Test key iteration property
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetModuleAccount(ctx sdk.Context, moduleName string) authtypes.ModuleAccountI
}
type AddToLastPositionInPoolError ¶
func (AddToLastPositionInPoolError) Error ¶
func (e AddToLastPositionInPoolError) Error() string
type AddressPoolPositionIdNotFoundError ¶
func (AddressPoolPositionIdNotFoundError) Error ¶
func (e AddressPoolPositionIdNotFoundError) Error() string
type Amount0IsNegativeError ¶
func (Amount0IsNegativeError) Error ¶
func (e Amount0IsNegativeError) Error() string
type Amount1IsNegativeError ¶
func (Amount1IsNegativeError) Error ¶
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 ¶
type BalancerRecordNotClearedError struct { ClPoolId uint64 BalancerPoolId uint64 UptimeIndex uint64 }
func (BalancerRecordNotClearedError) Error ¶
func (e BalancerRecordNotClearedError) Error() string
type BalancerRecordNotFoundError ¶
type BalancerRecordNotFoundError struct { ClPoolId uint64 BalancerPoolId uint64 UptimeIndex uint64 }
func (BalancerRecordNotFoundError) Error ¶
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 ¶
func (CoinLengthError) Error ¶
func (e CoinLengthError) Error() string
type CommunityPoolKeeper ¶
type CommunityPoolKeeper interface {
FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}
CommunityPoolKeeper defines the contract needed to be fulfilled for distribution keeper.
type ComputedSqrtPriceInequalityError ¶
type ComputedSqrtPriceInequalityError struct { IsZeroForOne bool NextInitializedTickSqrtPrice osmomath.BigDec ComputedSqrtPrice osmomath.BigDec }
func (ComputedSqrtPriceInequalityError) Error ¶
func (e ComputedSqrtPriceInequalityError) Error() string
type ConcentratedLiquidityListener ¶
type ConcentratedLiquidityListener interface { // AfterConcentratedPoolCreated runs after a concentrated liquidity poos is initialized. AfterConcentratedPoolCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64) // AfterInitialPoolPositionCreated is called after the first position is created in a concentrated // liquidity pool. AfterInitialPoolPositionCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64) // AfterLastPoolPositionRemoved is called after the last position is removed in a concentrated // liquidity pool. AfterLastPoolPositionRemoved(ctx sdk.Context, sender sdk.AccAddress, poolId uint64) // AfterConcentratedPoolSwap is called after a swap in a concentrated liquidity pool. AfterConcentratedPoolSwap(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, input sdk.Coins, output sdk.Coins) }
type ConcentratedLiquidityListeners ¶
type ConcentratedLiquidityListeners []ConcentratedLiquidityListener
func NewConcentratedLiquidityListeners ¶
func NewConcentratedLiquidityListeners(listeners ...ConcentratedLiquidityListener) ConcentratedLiquidityListeners
Creates hooks for the x/concentrated-liquidity module.
func (ConcentratedLiquidityListeners) AfterConcentratedPoolCreated ¶
func (l ConcentratedLiquidityListeners) AfterConcentratedPoolCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)
func (ConcentratedLiquidityListeners) AfterConcentratedPoolSwap ¶
func (l ConcentratedLiquidityListeners) AfterConcentratedPoolSwap(ctx sdk.Context, sender sdk.AccAddress, poolId uint64, input sdk.Coins, output sdk.Coins)
func (ConcentratedLiquidityListeners) AfterInitialPoolPositionCreated ¶
func (l ConcentratedLiquidityListeners) AfterInitialPoolPositionCreated(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)
func (ConcentratedLiquidityListeners) AfterLastPoolPositionRemoved ¶
func (l ConcentratedLiquidityListeners) AfterLastPoolPositionRemoved(ctx sdk.Context, sender sdk.AccAddress, poolId uint64)
type ConcentratedPoolExtension ¶
type ConcentratedPoolExtension interface { poolmanagertypes.PoolI IsCurrentTickInRange(lowerTick, upperTick int64) bool GetIncentivesAddress() sdk.AccAddress GetSpreadRewardsAddress() sdk.AccAddress GetToken0() string GetToken1() string GetCurrentSqrtPrice() osmomath.BigDec GetCurrentTick() int64 GetExponentAtPriceOne() int64 GetTickSpacing() uint64 GetLiquidity() sdk.Dec GetLastLiquidityUpdate() time.Time SetCurrentSqrtPrice(newSqrtPrice osmomath.BigDec) SetCurrentTick(newTick int64) SetTickSpacing(newTickSpacing uint64) SetLastLiquidityUpdate(newTime time.Time) UpdateLiquidity(newLiquidity sdk.Dec) ApplySwap(newLiquidity sdk.Dec, newCurrentTick int64, newCurrentSqrtPrice osmomath.BigDec) error CalcActualAmounts(ctx sdk.Context, lowerTick, upperTick int64, liquidityDelta sdk.Dec) (actualAmountDenom0 sdk.Dec, actualAmountDenom1 sdk.Dec, err error) UpdateLiquidityIfActivePosition(ctx sdk.Context, lowerTick, upperTick int64, liquidityDelta sdk.Dec) bool }
type CreateConcentratedLiquidityPoolsProposal ¶
type CreateConcentratedLiquidityPoolsProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` PoolRecords []PoolRecord `protobuf:"bytes,3,rep,name=pool_records,json=poolRecords,proto3" json:"pool_records" yaml:"pool_records"` }
CreateConcentratedLiquidityPoolsProposal is a gov Content type for creating concentrated liquidity pools. If a CreateConcentratedLiquidityPoolsProposal passes, the pools are created via pool manager module account.
func (*CreateConcentratedLiquidityPoolsProposal) Descriptor ¶
func (*CreateConcentratedLiquidityPoolsProposal) Descriptor() ([]byte, []int)
func (*CreateConcentratedLiquidityPoolsProposal) Equal ¶
func (this *CreateConcentratedLiquidityPoolsProposal) Equal(that interface{}) bool
func (*CreateConcentratedLiquidityPoolsProposal) GetDescription ¶
func (p *CreateConcentratedLiquidityPoolsProposal) GetDescription() string
GetDescription gets the description of the proposal
func (*CreateConcentratedLiquidityPoolsProposal) GetTitle ¶
func (p *CreateConcentratedLiquidityPoolsProposal) GetTitle() string
func (*CreateConcentratedLiquidityPoolsProposal) Marshal ¶
func (m *CreateConcentratedLiquidityPoolsProposal) Marshal() (dAtA []byte, err error)
func (*CreateConcentratedLiquidityPoolsProposal) MarshalTo ¶
func (m *CreateConcentratedLiquidityPoolsProposal) MarshalTo(dAtA []byte) (int, error)
func (*CreateConcentratedLiquidityPoolsProposal) MarshalToSizedBuffer ¶
func (m *CreateConcentratedLiquidityPoolsProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreateConcentratedLiquidityPoolsProposal) ProposalRoute ¶
func (p *CreateConcentratedLiquidityPoolsProposal) ProposalRoute() string
ProposalRoute returns the router key for the proposal
func (*CreateConcentratedLiquidityPoolsProposal) ProposalType ¶
func (p *CreateConcentratedLiquidityPoolsProposal) ProposalType() string
ProposalType returns the type of the proposal
func (*CreateConcentratedLiquidityPoolsProposal) ProtoMessage ¶
func (*CreateConcentratedLiquidityPoolsProposal) ProtoMessage()
func (*CreateConcentratedLiquidityPoolsProposal) Reset ¶
func (m *CreateConcentratedLiquidityPoolsProposal) Reset()
func (*CreateConcentratedLiquidityPoolsProposal) Size ¶
func (m *CreateConcentratedLiquidityPoolsProposal) Size() (n int)
func (CreateConcentratedLiquidityPoolsProposal) String ¶
func (p CreateConcentratedLiquidityPoolsProposal) String() string
String returns a string containing the pool incentives proposal.
func (*CreateConcentratedLiquidityPoolsProposal) Unmarshal ¶
func (m *CreateConcentratedLiquidityPoolsProposal) Unmarshal(dAtA []byte) error
func (*CreateConcentratedLiquidityPoolsProposal) ValidateBasic ¶
func (p *CreateConcentratedLiquidityPoolsProposal) ValidateBasic() error
ValidateBasic validates a governance proposal's abstract and basic contents
func (*CreateConcentratedLiquidityPoolsProposal) XXX_DiscardUnknown ¶
func (m *CreateConcentratedLiquidityPoolsProposal) XXX_DiscardUnknown()
func (*CreateConcentratedLiquidityPoolsProposal) XXX_Marshal ¶
func (m *CreateConcentratedLiquidityPoolsProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreateConcentratedLiquidityPoolsProposal) XXX_Merge ¶
func (m *CreateConcentratedLiquidityPoolsProposal) XXX_Merge(src proto.Message)
func (*CreateConcentratedLiquidityPoolsProposal) XXX_Size ¶
func (m *CreateConcentratedLiquidityPoolsProposal) XXX_Size() int
func (*CreateConcentratedLiquidityPoolsProposal) XXX_Unmarshal ¶
func (m *CreateConcentratedLiquidityPoolsProposal) XXX_Unmarshal(b []byte) error
type DenomDuplicatedError ¶
func (DenomDuplicatedError) Error ¶
func (e DenomDuplicatedError) Error() string
type ErrInvalidBalancerPoolLiquidityError ¶
type ErrInvalidBalancerPoolLiquidityError struct { ClPoolId uint64 BalancerPoolId uint64 BalancerPoolLiquidity sdk.Coins }
func (ErrInvalidBalancerPoolLiquidityError) Error ¶
func (e ErrInvalidBalancerPoolLiquidityError) Error() string
type GAMMKeeper ¶
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 { // incentive_id is the id uniquely identifying this incentive record. IncentiveId uint64 `protobuf:"varint,1,opt,name=incentive_id,json=incentiveId,proto3" json:"incentive_id,omitempty" yaml:"incentive_id"` PoolId uint64 `protobuf:"varint,2,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` // incentive record body holds necessary IncentiveRecordBody IncentiveRecordBody `` /* 139-byte string literal not displayed */ // min_uptime is the minimum uptime required for liquidity to qualify for this // incentive. It should be always be one of the supported uptimes in // types.SupportedUptimes MinUptime time.Duration `protobuf:"bytes,5,opt,name=min_uptime,json=minUptime,proto3,stdduration" json:"min_uptime" yaml:"min_uptime"` }
IncentiveRecord is the high-level struct we use to deal with an independent incentive being distributed on a pool. Note that PoolId, Denom, and MinUptime are included in the key so we avoid storing them in state, hence the distinction between IncentiveRecord and IncentiveRecordBody.
func (*IncentiveRecord) Descriptor ¶
func (*IncentiveRecord) Descriptor() ([]byte, []int)
func (*IncentiveRecord) GetIncentiveId ¶
func (m *IncentiveRecord) GetIncentiveId() uint64
func (*IncentiveRecord) GetIncentiveRecordBody ¶
func (m *IncentiveRecord) GetIncentiveRecordBody() IncentiveRecordBody
func (*IncentiveRecord) GetMinUptime ¶
func (m *IncentiveRecord) GetMinUptime() time.Duration
func (*IncentiveRecord) GetPoolId ¶
func (m *IncentiveRecord) GetPoolId() uint64
func (*IncentiveRecord) Marshal ¶
func (m *IncentiveRecord) Marshal() (dAtA []byte, err error)
func (*IncentiveRecord) MarshalToSizedBuffer ¶
func (m *IncentiveRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IncentiveRecord) ProtoMessage ¶
func (*IncentiveRecord) ProtoMessage()
func (*IncentiveRecord) Reset ¶
func (m *IncentiveRecord) Reset()
func (*IncentiveRecord) Size ¶
func (m *IncentiveRecord) Size() (n int)
func (*IncentiveRecord) String ¶
func (m *IncentiveRecord) String() string
func (*IncentiveRecord) Unmarshal ¶
func (m *IncentiveRecord) Unmarshal(dAtA []byte) error
func (*IncentiveRecord) XXX_DiscardUnknown ¶
func (m *IncentiveRecord) XXX_DiscardUnknown()
func (*IncentiveRecord) XXX_Marshal ¶
func (m *IncentiveRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IncentiveRecord) XXX_Merge ¶
func (m *IncentiveRecord) XXX_Merge(src proto.Message)
func (*IncentiveRecord) XXX_Size ¶
func (m *IncentiveRecord) XXX_Size() int
func (*IncentiveRecord) XXX_Unmarshal ¶
func (m *IncentiveRecord) XXX_Unmarshal(b []byte) error
type IncentiveRecordBody ¶
type IncentiveRecordBody struct { // remaining_coin is the total amount of incentives to be distributed RemainingCoin types1.DecCoin `` /* 169-byte string literal not displayed */ // emission_rate is the incentive emission rate per second EmissionRate github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */ // start_time is the time when the incentive starts distributing StartTime time.Time `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` }
IncentiveRecordBody represents the body stored in state for each individual record.
func (*IncentiveRecordBody) Descriptor ¶
func (*IncentiveRecordBody) Descriptor() ([]byte, []int)
func (*IncentiveRecordBody) GetRemainingCoin ¶
func (m *IncentiveRecordBody) GetRemainingCoin() types1.DecCoin
func (*IncentiveRecordBody) GetStartTime ¶
func (m *IncentiveRecordBody) GetStartTime() time.Time
func (*IncentiveRecordBody) Marshal ¶
func (m *IncentiveRecordBody) Marshal() (dAtA []byte, err error)
func (*IncentiveRecordBody) MarshalTo ¶
func (m *IncentiveRecordBody) MarshalTo(dAtA []byte) (int, error)
func (*IncentiveRecordBody) MarshalToSizedBuffer ¶
func (m *IncentiveRecordBody) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IncentiveRecordBody) ProtoMessage ¶
func (*IncentiveRecordBody) ProtoMessage()
func (*IncentiveRecordBody) Reset ¶
func (m *IncentiveRecordBody) Reset()
func (*IncentiveRecordBody) Size ¶
func (m *IncentiveRecordBody) Size() (n int)
func (*IncentiveRecordBody) String ¶
func (m *IncentiveRecordBody) String() string
func (*IncentiveRecordBody) Unmarshal ¶
func (m *IncentiveRecordBody) Unmarshal(dAtA []byte) error
func (*IncentiveRecordBody) XXX_DiscardUnknown ¶
func (m *IncentiveRecordBody) XXX_DiscardUnknown()
func (*IncentiveRecordBody) XXX_Marshal ¶
func (m *IncentiveRecordBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IncentiveRecordBody) XXX_Merge ¶
func (m *IncentiveRecordBody) XXX_Merge(src proto.Message)
func (*IncentiveRecordBody) XXX_Size ¶
func (m *IncentiveRecordBody) XXX_Size() int
func (*IncentiveRecordBody) XXX_Unmarshal ¶
func (m *IncentiveRecordBody) XXX_Unmarshal(b []byte) error
type IncentiveRecordNotFoundError ¶
type IncentiveRecordNotFoundError struct { PoolId uint64 MinUptime time.Duration IncentiveRecordId uint64 }
func (IncentiveRecordNotFoundError) Error ¶
func (e IncentiveRecordNotFoundError) Error() string
type IncentivesKeeper ¶
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 ¶
func (InvalidDiscountRateError) Error ¶
func (e InvalidDiscountRateError) Error() string
type InvalidIncentiveCoinError ¶
func (InvalidIncentiveCoinError) Error ¶
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 InvalidNextIncentiveRecordIdError ¶
type InvalidNextIncentiveRecordIdError struct {
NextIncentiveRecordId uint64
}
func (InvalidNextIncentiveRecordIdError) Error ¶
func (e InvalidNextIncentiveRecordIdError) 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 ¶
func (InvalidSpreadFactorError) Error ¶
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 ¶
func (JoinTimeMismatchError) Error ¶
func (e JoinTimeMismatchError) Error() string
type LiquidityWithdrawalError ¶
type LiquidityWithdrawalError struct { PositionID uint64 RequestedAmount sdk.Dec CurrentLiquidity sdk.Dec }
func (LiquidityWithdrawalError) Error ¶
func (e LiquidityWithdrawalError) Error() string
type LockIdToPositionIdNotFoundError ¶
type LockIdToPositionIdNotFoundError struct {
LockId uint64
}
func (LockIdToPositionIdNotFoundError) Error ¶
func (e LockIdToPositionIdNotFoundError) Error() string
type LockNotMatureError ¶
func (LockNotMatureError) Error ¶
func (e LockNotMatureError) Error() string
type LockupKeeper ¶
type LockupKeeper interface { GetLockByID(ctx sdk.Context, lockID uint64) (*lockuptypes.PeriodLock, error) // Despite the name, BeginForceUnlock is really BeginUnlock // TODO: Fix this in future code update BeginForceUnlock(ctx sdk.Context, lockID uint64, coins sdk.Coins) (uint64, error) ForceUnlock(ctx sdk.Context, lock lockuptypes.PeriodLock) error CreateLock(ctx sdk.Context, owner sdk.AccAddress, coins sdk.Coins, duration time.Duration) (lockuptypes.PeriodLock, error) CreateLockNoSend(ctx sdk.Context, owner sdk.AccAddress, coins sdk.Coins, duration time.Duration) (lockuptypes.PeriodLock, error) SlashTokensFromLockByID(ctx sdk.Context, lockID uint64, coins sdk.Coins) (*lockuptypes.PeriodLock, error) GetLockedDenom(ctx sdk.Context, denom string, duration time.Duration) sdk.Int }
LockupKeeper defines the expected interface needed to retrieve locks.
type LowerTickMismatchError ¶
func (LowerTickMismatchError) Error ¶
func (e LowerTickMismatchError) Error() string
type MatchingDenomError ¶
type MatchingDenomError struct {
Denom string
}
func (MatchingDenomError) Error ¶
func (e MatchingDenomError) Error() string
type ModifySamePositionAccumulatorError ¶
type ModifySamePositionAccumulatorError struct {
PositionAccName string
}
func (ModifySamePositionAccumulatorError) Error ¶
func (e ModifySamePositionAccumulatorError) Error() string
type MsgAddToPosition ¶
type MsgAddToPosition struct { PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty" yaml:"position_id"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` // amount0 represents the amount of token0 willing to put in. Amount0 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount0,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount0" yaml:"amount_0"` // amount1 represents the amount of token1 willing to put in. Amount1 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,4,opt,name=amount1,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount1" yaml:"amount_1"` // token_min_amount0 represents the minimum amount of token0 desired from the // new position being created. Note that this field indicates the min amount0 // corresponding to the liquidity that is being added, not the total // liquidity of the position. TokenMinAmount0 github_com_cosmos_cosmos_sdk_types.Int `` /* 173-byte string literal not displayed */ // token_min_amount1 represents the minimum amount of token1 desired from the // new position being created. Note that this field indicates the min amount1 // corresponding to the liquidity that is being added, not the total // liquidity of the position. TokenMinAmount1 github_com_cosmos_cosmos_sdk_types.Int `` /* 173-byte string literal not displayed */ }
===================== MsgAddToPosition
func (*MsgAddToPosition) Descriptor ¶
func (*MsgAddToPosition) Descriptor() ([]byte, []int)
func (*MsgAddToPosition) GetPositionId ¶
func (m *MsgAddToPosition) GetPositionId() uint64
func (*MsgAddToPosition) GetSender ¶
func (m *MsgAddToPosition) GetSender() string
func (MsgAddToPosition) GetSignBytes ¶
func (msg MsgAddToPosition) GetSignBytes() []byte
func (MsgAddToPosition) GetSigners ¶
func (msg MsgAddToPosition) GetSigners() []sdk.AccAddress
func (*MsgAddToPosition) Marshal ¶
func (m *MsgAddToPosition) Marshal() (dAtA []byte, err error)
func (*MsgAddToPosition) MarshalToSizedBuffer ¶
func (m *MsgAddToPosition) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddToPosition) ProtoMessage ¶
func (*MsgAddToPosition) ProtoMessage()
func (*MsgAddToPosition) Reset ¶
func (m *MsgAddToPosition) Reset()
func (MsgAddToPosition) Route ¶
func (msg MsgAddToPosition) Route() string
func (*MsgAddToPosition) Size ¶
func (m *MsgAddToPosition) Size() (n int)
func (*MsgAddToPosition) String ¶
func (m *MsgAddToPosition) String() string
func (MsgAddToPosition) Type ¶
func (msg MsgAddToPosition) Type() string
func (*MsgAddToPosition) Unmarshal ¶
func (m *MsgAddToPosition) Unmarshal(dAtA []byte) error
func (MsgAddToPosition) ValidateBasic ¶
func (msg MsgAddToPosition) ValidateBasic() error
func (*MsgAddToPosition) XXX_DiscardUnknown ¶
func (m *MsgAddToPosition) XXX_DiscardUnknown()
func (*MsgAddToPosition) XXX_Marshal ¶
func (m *MsgAddToPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddToPosition) XXX_Merge ¶
func (m *MsgAddToPosition) XXX_Merge(src proto.Message)
func (*MsgAddToPosition) XXX_Size ¶
func (m *MsgAddToPosition) XXX_Size() int
func (*MsgAddToPosition) XXX_Unmarshal ¶
func (m *MsgAddToPosition) XXX_Unmarshal(b []byte) error
type MsgAddToPositionResponse ¶
type MsgAddToPositionResponse struct { PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty" yaml:"position_id"` Amount0 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount0,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount0" yaml:"amount0"` Amount1 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount1,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount1" yaml:"amount1"` }
func (*MsgAddToPositionResponse) Descriptor ¶
func (*MsgAddToPositionResponse) Descriptor() ([]byte, []int)
func (*MsgAddToPositionResponse) GetPositionId ¶
func (m *MsgAddToPositionResponse) GetPositionId() uint64
func (*MsgAddToPositionResponse) Marshal ¶
func (m *MsgAddToPositionResponse) Marshal() (dAtA []byte, err error)
func (*MsgAddToPositionResponse) MarshalTo ¶
func (m *MsgAddToPositionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgAddToPositionResponse) MarshalToSizedBuffer ¶
func (m *MsgAddToPositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgAddToPositionResponse) ProtoMessage ¶
func (*MsgAddToPositionResponse) ProtoMessage()
func (*MsgAddToPositionResponse) Reset ¶
func (m *MsgAddToPositionResponse) Reset()
func (*MsgAddToPositionResponse) Size ¶
func (m *MsgAddToPositionResponse) Size() (n int)
func (*MsgAddToPositionResponse) String ¶
func (m *MsgAddToPositionResponse) String() string
func (*MsgAddToPositionResponse) Unmarshal ¶
func (m *MsgAddToPositionResponse) Unmarshal(dAtA []byte) error
func (*MsgAddToPositionResponse) XXX_DiscardUnknown ¶
func (m *MsgAddToPositionResponse) XXX_DiscardUnknown()
func (*MsgAddToPositionResponse) XXX_Marshal ¶
func (m *MsgAddToPositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgAddToPositionResponse) XXX_Merge ¶
func (m *MsgAddToPositionResponse) XXX_Merge(src proto.Message)
func (*MsgAddToPositionResponse) XXX_Size ¶
func (m *MsgAddToPositionResponse) XXX_Size() int
func (*MsgAddToPositionResponse) XXX_Unmarshal ¶
func (m *MsgAddToPositionResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { CreatePosition(ctx context.Context, in *MsgCreatePosition, opts ...grpc.CallOption) (*MsgCreatePositionResponse, error) WithdrawPosition(ctx context.Context, in *MsgWithdrawPosition, opts ...grpc.CallOption) (*MsgWithdrawPositionResponse, error) // AddToPosition attempts to add amount0 and amount1 to a position // with the given position id. // To maintain backwards-compatibility with future implementations of // charging, this function deletes the old position and creates a new one with // the resulting amount after addition. AddToPosition(ctx context.Context, in *MsgAddToPosition, opts ...grpc.CallOption) (*MsgAddToPositionResponse, error) CollectSpreadRewards(ctx context.Context, in *MsgCollectSpreadRewards, opts ...grpc.CallOption) (*MsgCollectSpreadRewardsResponse, error) CollectIncentives(ctx context.Context, in *MsgCollectIncentives, opts ...grpc.CallOption) (*MsgCollectIncentivesResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCollectIncentives ¶
type MsgCollectIncentives struct { PositionIds []uint64 `protobuf:"varint,1,rep,packed,name=position_ids,json=positionIds,proto3" json:"position_ids,omitempty" yaml:"position_ids"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` }
===================== MsgCollectIncentives
func (*MsgCollectIncentives) Descriptor ¶
func (*MsgCollectIncentives) Descriptor() ([]byte, []int)
func (*MsgCollectIncentives) GetPositionIds ¶
func (m *MsgCollectIncentives) GetPositionIds() []uint64
func (*MsgCollectIncentives) GetSender ¶
func (m *MsgCollectIncentives) GetSender() string
func (MsgCollectIncentives) GetSignBytes ¶
func (msg MsgCollectIncentives) GetSignBytes() []byte
func (MsgCollectIncentives) GetSigners ¶
func (msg MsgCollectIncentives) GetSigners() []sdk.AccAddress
func (*MsgCollectIncentives) Marshal ¶
func (m *MsgCollectIncentives) Marshal() (dAtA []byte, err error)
func (*MsgCollectIncentives) MarshalTo ¶
func (m *MsgCollectIncentives) MarshalTo(dAtA []byte) (int, error)
func (*MsgCollectIncentives) MarshalToSizedBuffer ¶
func (m *MsgCollectIncentives) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCollectIncentives) ProtoMessage ¶
func (*MsgCollectIncentives) ProtoMessage()
func (*MsgCollectIncentives) Reset ¶
func (m *MsgCollectIncentives) Reset()
func (MsgCollectIncentives) Route ¶
func (msg MsgCollectIncentives) Route() string
func (*MsgCollectIncentives) Size ¶
func (m *MsgCollectIncentives) Size() (n int)
func (*MsgCollectIncentives) String ¶
func (m *MsgCollectIncentives) String() string
func (MsgCollectIncentives) Type ¶
func (msg MsgCollectIncentives) Type() string
func (*MsgCollectIncentives) Unmarshal ¶
func (m *MsgCollectIncentives) Unmarshal(dAtA []byte) error
func (MsgCollectIncentives) ValidateBasic ¶
func (msg MsgCollectIncentives) ValidateBasic() error
func (*MsgCollectIncentives) XXX_DiscardUnknown ¶
func (m *MsgCollectIncentives) XXX_DiscardUnknown()
func (*MsgCollectIncentives) XXX_Marshal ¶
func (m *MsgCollectIncentives) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCollectIncentives) XXX_Merge ¶
func (m *MsgCollectIncentives) XXX_Merge(src proto.Message)
func (*MsgCollectIncentives) XXX_Size ¶
func (m *MsgCollectIncentives) XXX_Size() int
func (*MsgCollectIncentives) XXX_Unmarshal ¶
func (m *MsgCollectIncentives) XXX_Unmarshal(b []byte) error
type MsgCollectIncentivesResponse ¶
type MsgCollectIncentivesResponse struct { CollectedIncentives github_com_cosmos_cosmos_sdk_types.Coins `` /* 190-byte string literal not displayed */ ForfeitedIncentives github_com_cosmos_cosmos_sdk_types.Coins `` /* 190-byte string literal not displayed */ }
func (*MsgCollectIncentivesResponse) Descriptor ¶
func (*MsgCollectIncentivesResponse) Descriptor() ([]byte, []int)
func (*MsgCollectIncentivesResponse) GetCollectedIncentives ¶
func (m *MsgCollectIncentivesResponse) GetCollectedIncentives() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgCollectIncentivesResponse) GetForfeitedIncentives ¶
func (m *MsgCollectIncentivesResponse) GetForfeitedIncentives() github_com_cosmos_cosmos_sdk_types.Coins
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 ¶
type MsgCollectSpreadRewards struct { PositionIds []uint64 `protobuf:"varint,1,rep,packed,name=position_ids,json=positionIds,proto3" json:"position_ids,omitempty" yaml:"position_ids"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` }
===================== MsgCollectSpreadRewards
func (*MsgCollectSpreadRewards) Descriptor ¶
func (*MsgCollectSpreadRewards) Descriptor() ([]byte, []int)
func (*MsgCollectSpreadRewards) GetPositionIds ¶
func (m *MsgCollectSpreadRewards) GetPositionIds() []uint64
func (*MsgCollectSpreadRewards) GetSender ¶
func (m *MsgCollectSpreadRewards) GetSender() string
func (MsgCollectSpreadRewards) GetSignBytes ¶
func (msg MsgCollectSpreadRewards) GetSignBytes() []byte
func (MsgCollectSpreadRewards) GetSigners ¶
func (msg MsgCollectSpreadRewards) GetSigners() []sdk.AccAddress
func (*MsgCollectSpreadRewards) Marshal ¶
func (m *MsgCollectSpreadRewards) Marshal() (dAtA []byte, err error)
func (*MsgCollectSpreadRewards) MarshalTo ¶
func (m *MsgCollectSpreadRewards) MarshalTo(dAtA []byte) (int, error)
func (*MsgCollectSpreadRewards) MarshalToSizedBuffer ¶
func (m *MsgCollectSpreadRewards) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCollectSpreadRewards) ProtoMessage ¶
func (*MsgCollectSpreadRewards) ProtoMessage()
func (*MsgCollectSpreadRewards) Reset ¶
func (m *MsgCollectSpreadRewards) Reset()
func (MsgCollectSpreadRewards) Route ¶
func (msg MsgCollectSpreadRewards) Route() string
func (*MsgCollectSpreadRewards) Size ¶
func (m *MsgCollectSpreadRewards) Size() (n int)
func (*MsgCollectSpreadRewards) String ¶
func (m *MsgCollectSpreadRewards) String() string
func (MsgCollectSpreadRewards) Type ¶
func (msg MsgCollectSpreadRewards) Type() string
func (*MsgCollectSpreadRewards) Unmarshal ¶
func (m *MsgCollectSpreadRewards) Unmarshal(dAtA []byte) error
func (MsgCollectSpreadRewards) ValidateBasic ¶
func (msg MsgCollectSpreadRewards) ValidateBasic() error
func (*MsgCollectSpreadRewards) XXX_DiscardUnknown ¶
func (m *MsgCollectSpreadRewards) XXX_DiscardUnknown()
func (*MsgCollectSpreadRewards) XXX_Marshal ¶
func (m *MsgCollectSpreadRewards) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCollectSpreadRewards) XXX_Merge ¶
func (m *MsgCollectSpreadRewards) XXX_Merge(src proto.Message)
func (*MsgCollectSpreadRewards) XXX_Size ¶
func (m *MsgCollectSpreadRewards) XXX_Size() int
func (*MsgCollectSpreadRewards) XXX_Unmarshal ¶
func (m *MsgCollectSpreadRewards) XXX_Unmarshal(b []byte) error
type MsgCollectSpreadRewardsResponse ¶
type MsgCollectSpreadRewardsResponse struct {
CollectedSpreadRewards github_com_cosmos_cosmos_sdk_types.Coins `` /* 205-byte string literal not displayed */
}
func (*MsgCollectSpreadRewardsResponse) Descriptor ¶
func (*MsgCollectSpreadRewardsResponse) Descriptor() ([]byte, []int)
func (*MsgCollectSpreadRewardsResponse) GetCollectedSpreadRewards ¶
func (m *MsgCollectSpreadRewardsResponse) GetCollectedSpreadRewards() github_com_cosmos_cosmos_sdk_types.Coins
func (*MsgCollectSpreadRewardsResponse) Marshal ¶
func (m *MsgCollectSpreadRewardsResponse) Marshal() (dAtA []byte, err error)
func (*MsgCollectSpreadRewardsResponse) MarshalTo ¶
func (m *MsgCollectSpreadRewardsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCollectSpreadRewardsResponse) MarshalToSizedBuffer ¶
func (m *MsgCollectSpreadRewardsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCollectSpreadRewardsResponse) ProtoMessage ¶
func (*MsgCollectSpreadRewardsResponse) ProtoMessage()
func (*MsgCollectSpreadRewardsResponse) Reset ¶
func (m *MsgCollectSpreadRewardsResponse) Reset()
func (*MsgCollectSpreadRewardsResponse) Size ¶
func (m *MsgCollectSpreadRewardsResponse) Size() (n int)
func (*MsgCollectSpreadRewardsResponse) String ¶
func (m *MsgCollectSpreadRewardsResponse) String() string
func (*MsgCollectSpreadRewardsResponse) Unmarshal ¶
func (m *MsgCollectSpreadRewardsResponse) Unmarshal(dAtA []byte) error
func (*MsgCollectSpreadRewardsResponse) XXX_DiscardUnknown ¶
func (m *MsgCollectSpreadRewardsResponse) XXX_DiscardUnknown()
func (*MsgCollectSpreadRewardsResponse) XXX_Marshal ¶
func (m *MsgCollectSpreadRewardsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCollectSpreadRewardsResponse) XXX_Merge ¶
func (m *MsgCollectSpreadRewardsResponse) XXX_Merge(src proto.Message)
func (*MsgCollectSpreadRewardsResponse) XXX_Size ¶
func (m *MsgCollectSpreadRewardsResponse) XXX_Size() int
func (*MsgCollectSpreadRewardsResponse) XXX_Unmarshal ¶
func (m *MsgCollectSpreadRewardsResponse) XXX_Unmarshal(b []byte) error
type MsgCreatePosition ¶
type MsgCreatePosition struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty" yaml:"pool_id"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` LowerTick int64 `protobuf:"varint,3,opt,name=lower_tick,json=lowerTick,proto3" json:"lower_tick,omitempty" yaml:"lower_tick"` UpperTick int64 `protobuf:"varint,4,opt,name=upper_tick,json=upperTick,proto3" json:"upper_tick,omitempty" yaml:"upper_tick"` // tokens_provided is the amount of tokens provided for the position. // It must at a minimum be of length 1 (for a single sided position) // and at a maximum be of length 2 (for a position that straddles the current // tick). TokensProvided github_com_cosmos_cosmos_sdk_types.Coins `` /* 147-byte string literal not displayed */ TokenMinAmount0 github_com_cosmos_cosmos_sdk_types.Int `` /* 173-byte string literal not displayed */ TokenMinAmount1 github_com_cosmos_cosmos_sdk_types.Int `` /* 173-byte string literal not displayed */ }
===================== MsgCreatePosition
func (*MsgCreatePosition) Descriptor ¶
func (*MsgCreatePosition) Descriptor() ([]byte, []int)
func (*MsgCreatePosition) GetLowerTick ¶
func (m *MsgCreatePosition) GetLowerTick() int64
func (*MsgCreatePosition) GetPoolId ¶
func (m *MsgCreatePosition) GetPoolId() uint64
func (*MsgCreatePosition) GetSender ¶
func (m *MsgCreatePosition) GetSender() string
func (MsgCreatePosition) GetSignBytes ¶
func (msg MsgCreatePosition) GetSignBytes() []byte
func (MsgCreatePosition) GetSigners ¶
func (msg MsgCreatePosition) GetSigners() []sdk.AccAddress
func (*MsgCreatePosition) GetTokensProvided ¶
func (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"` LiquidityCreated github_com_cosmos_cosmos_sdk_types.Dec `` /* 174-byte string literal not displayed */ // the lower and upper tick are in the response because there are // instances in which multiple ticks represent the same price, so // we may move their provided tick to the canonical tick that represents // the same price. LowerTick int64 `protobuf:"varint,6,opt,name=lower_tick,json=lowerTick,proto3" json:"lower_tick,omitempty" yaml:"lower_tick"` UpperTick int64 `protobuf:"varint,7,opt,name=upper_tick,json=upperTick,proto3" json:"upper_tick,omitempty" yaml:"upper_tick"` }
func (*MsgCreatePositionResponse) Descriptor ¶
func (*MsgCreatePositionResponse) Descriptor() ([]byte, []int)
func (*MsgCreatePositionResponse) GetLowerTick ¶
func (m *MsgCreatePositionResponse) GetLowerTick() int64
func (*MsgCreatePositionResponse) GetPositionId ¶
func (m *MsgCreatePositionResponse) GetPositionId() uint64
func (*MsgCreatePositionResponse) GetUpperTick ¶
func (m *MsgCreatePositionResponse) GetUpperTick() int64
func (*MsgCreatePositionResponse) Marshal ¶
func (m *MsgCreatePositionResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreatePositionResponse) MarshalTo ¶
func (m *MsgCreatePositionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreatePositionResponse) MarshalToSizedBuffer ¶
func (m *MsgCreatePositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreatePositionResponse) ProtoMessage ¶
func (*MsgCreatePositionResponse) ProtoMessage()
func (*MsgCreatePositionResponse) Reset ¶
func (m *MsgCreatePositionResponse) Reset()
func (*MsgCreatePositionResponse) Size ¶
func (m *MsgCreatePositionResponse) Size() (n int)
func (*MsgCreatePositionResponse) String ¶
func (m *MsgCreatePositionResponse) String() string
func (*MsgCreatePositionResponse) Unmarshal ¶
func (m *MsgCreatePositionResponse) Unmarshal(dAtA []byte) error
func (*MsgCreatePositionResponse) XXX_DiscardUnknown ¶
func (m *MsgCreatePositionResponse) XXX_DiscardUnknown()
func (*MsgCreatePositionResponse) XXX_Marshal ¶
func (m *MsgCreatePositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreatePositionResponse) XXX_Merge ¶
func (m *MsgCreatePositionResponse) XXX_Merge(src proto.Message)
func (*MsgCreatePositionResponse) XXX_Size ¶
func (m *MsgCreatePositionResponse) XXX_Size() int
func (*MsgCreatePositionResponse) XXX_Unmarshal ¶
func (m *MsgCreatePositionResponse) XXX_Unmarshal(b []byte) error
type MsgFungifyChargedPositions ¶
type MsgFungifyChargedPositions struct { PositionIds []uint64 `protobuf:"varint,1,rep,packed,name=position_ids,json=positionIds,proto3" json:"position_ids,omitempty" yaml:"position_ids"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` }
===================== MsgFungifyChargedPositions
func (*MsgFungifyChargedPositions) Descriptor ¶
func (*MsgFungifyChargedPositions) Descriptor() ([]byte, []int)
func (*MsgFungifyChargedPositions) GetPositionIds ¶
func (m *MsgFungifyChargedPositions) GetPositionIds() []uint64
func (*MsgFungifyChargedPositions) GetSender ¶
func (m *MsgFungifyChargedPositions) GetSender() string
func (MsgFungifyChargedPositions) GetSignBytes ¶
func (msg MsgFungifyChargedPositions) GetSignBytes() []byte
func (MsgFungifyChargedPositions) GetSigners ¶
func (msg MsgFungifyChargedPositions) GetSigners() []sdk.AccAddress
func (*MsgFungifyChargedPositions) Marshal ¶
func (m *MsgFungifyChargedPositions) Marshal() (dAtA []byte, err error)
func (*MsgFungifyChargedPositions) MarshalTo ¶
func (m *MsgFungifyChargedPositions) MarshalTo(dAtA []byte) (int, error)
func (*MsgFungifyChargedPositions) MarshalToSizedBuffer ¶
func (m *MsgFungifyChargedPositions) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFungifyChargedPositions) ProtoMessage ¶
func (*MsgFungifyChargedPositions) ProtoMessage()
func (*MsgFungifyChargedPositions) Reset ¶
func (m *MsgFungifyChargedPositions) Reset()
func (MsgFungifyChargedPositions) Route ¶
func (msg MsgFungifyChargedPositions) Route() string
func (*MsgFungifyChargedPositions) Size ¶
func (m *MsgFungifyChargedPositions) Size() (n int)
func (*MsgFungifyChargedPositions) String ¶
func (m *MsgFungifyChargedPositions) String() string
func (MsgFungifyChargedPositions) Type ¶
func (msg MsgFungifyChargedPositions) Type() string
func (*MsgFungifyChargedPositions) Unmarshal ¶
func (m *MsgFungifyChargedPositions) Unmarshal(dAtA []byte) error
func (MsgFungifyChargedPositions) ValidateBasic ¶
func (msg MsgFungifyChargedPositions) ValidateBasic() error
func (*MsgFungifyChargedPositions) XXX_DiscardUnknown ¶
func (m *MsgFungifyChargedPositions) XXX_DiscardUnknown()
func (*MsgFungifyChargedPositions) XXX_Marshal ¶
func (m *MsgFungifyChargedPositions) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFungifyChargedPositions) XXX_Merge ¶
func (m *MsgFungifyChargedPositions) XXX_Merge(src proto.Message)
func (*MsgFungifyChargedPositions) XXX_Size ¶
func (m *MsgFungifyChargedPositions) XXX_Size() int
func (*MsgFungifyChargedPositions) XXX_Unmarshal ¶
func (m *MsgFungifyChargedPositions) XXX_Unmarshal(b []byte) error
type MsgFungifyChargedPositionsResponse ¶
type MsgFungifyChargedPositionsResponse struct {
NewPositionId uint64 `` /* 126-byte string literal not displayed */
}
func (*MsgFungifyChargedPositionsResponse) Descriptor ¶
func (*MsgFungifyChargedPositionsResponse) Descriptor() ([]byte, []int)
func (*MsgFungifyChargedPositionsResponse) GetNewPositionId ¶
func (m *MsgFungifyChargedPositionsResponse) GetNewPositionId() uint64
func (*MsgFungifyChargedPositionsResponse) Marshal ¶
func (m *MsgFungifyChargedPositionsResponse) Marshal() (dAtA []byte, err error)
func (*MsgFungifyChargedPositionsResponse) MarshalTo ¶
func (m *MsgFungifyChargedPositionsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgFungifyChargedPositionsResponse) MarshalToSizedBuffer ¶
func (m *MsgFungifyChargedPositionsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgFungifyChargedPositionsResponse) ProtoMessage ¶
func (*MsgFungifyChargedPositionsResponse) ProtoMessage()
func (*MsgFungifyChargedPositionsResponse) Reset ¶
func (m *MsgFungifyChargedPositionsResponse) Reset()
func (*MsgFungifyChargedPositionsResponse) Size ¶
func (m *MsgFungifyChargedPositionsResponse) Size() (n int)
func (*MsgFungifyChargedPositionsResponse) String ¶
func (m *MsgFungifyChargedPositionsResponse) String() string
func (*MsgFungifyChargedPositionsResponse) Unmarshal ¶
func (m *MsgFungifyChargedPositionsResponse) Unmarshal(dAtA []byte) error
func (*MsgFungifyChargedPositionsResponse) XXX_DiscardUnknown ¶
func (m *MsgFungifyChargedPositionsResponse) XXX_DiscardUnknown()
func (*MsgFungifyChargedPositionsResponse) XXX_Marshal ¶
func (m *MsgFungifyChargedPositionsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgFungifyChargedPositionsResponse) XXX_Merge ¶
func (m *MsgFungifyChargedPositionsResponse) XXX_Merge(src proto.Message)
func (*MsgFungifyChargedPositionsResponse) XXX_Size ¶
func (m *MsgFungifyChargedPositionsResponse) XXX_Size() int
func (*MsgFungifyChargedPositionsResponse) XXX_Unmarshal ¶
func (m *MsgFungifyChargedPositionsResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreatePosition(context.Context, *MsgCreatePosition) (*MsgCreatePositionResponse, error) WithdrawPosition(context.Context, *MsgWithdrawPosition) (*MsgWithdrawPositionResponse, error) // AddToPosition attempts to add amount0 and amount1 to a position // with the given position id. // To maintain backwards-compatibility with future implementations of // charging, this function deletes the old position and creates a new one with // the resulting amount after addition. AddToPosition(context.Context, *MsgAddToPosition) (*MsgAddToPositionResponse, error) CollectSpreadRewards(context.Context, *MsgCollectSpreadRewards) (*MsgCollectSpreadRewardsResponse, error) CollectIncentives(context.Context, *MsgCollectIncentives) (*MsgCollectIncentivesResponse, error) }
MsgServer is the server API for Msg service.
type MsgWithdrawPosition ¶
type MsgWithdrawPosition struct { PositionId uint64 `protobuf:"varint,1,opt,name=position_id,json=positionId,proto3" json:"position_id,omitempty" yaml:"position_id"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty" yaml:"sender"` LiquidityAmount github_com_cosmos_cosmos_sdk_types.Dec `` /* 170-byte string literal not displayed */ }
===================== MsgWithdrawPosition
func (*MsgWithdrawPosition) Descriptor ¶
func (*MsgWithdrawPosition) Descriptor() ([]byte, []int)
func (*MsgWithdrawPosition) GetPositionId ¶
func (m *MsgWithdrawPosition) GetPositionId() uint64
func (*MsgWithdrawPosition) GetSender ¶
func (m *MsgWithdrawPosition) GetSender() string
func (MsgWithdrawPosition) GetSignBytes ¶
func (msg MsgWithdrawPosition) GetSignBytes() []byte
func (MsgWithdrawPosition) GetSigners ¶
func (msg MsgWithdrawPosition) GetSigners() []sdk.AccAddress
func (*MsgWithdrawPosition) Marshal ¶
func (m *MsgWithdrawPosition) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawPosition) MarshalTo ¶
func (m *MsgWithdrawPosition) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawPosition) MarshalToSizedBuffer ¶
func (m *MsgWithdrawPosition) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawPosition) ProtoMessage ¶
func (*MsgWithdrawPosition) ProtoMessage()
func (*MsgWithdrawPosition) Reset ¶
func (m *MsgWithdrawPosition) Reset()
func (MsgWithdrawPosition) Route ¶
func (msg MsgWithdrawPosition) Route() string
func (*MsgWithdrawPosition) Size ¶
func (m *MsgWithdrawPosition) Size() (n int)
func (*MsgWithdrawPosition) String ¶
func (m *MsgWithdrawPosition) String() string
func (MsgWithdrawPosition) Type ¶
func (msg MsgWithdrawPosition) Type() string
func (*MsgWithdrawPosition) Unmarshal ¶
func (m *MsgWithdrawPosition) Unmarshal(dAtA []byte) error
func (MsgWithdrawPosition) ValidateBasic ¶
func (msg MsgWithdrawPosition) ValidateBasic() error
func (*MsgWithdrawPosition) XXX_DiscardUnknown ¶
func (m *MsgWithdrawPosition) XXX_DiscardUnknown()
func (*MsgWithdrawPosition) XXX_Marshal ¶
func (m *MsgWithdrawPosition) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawPosition) XXX_Merge ¶
func (m *MsgWithdrawPosition) XXX_Merge(src proto.Message)
func (*MsgWithdrawPosition) XXX_Size ¶
func (m *MsgWithdrawPosition) XXX_Size() int
func (*MsgWithdrawPosition) XXX_Unmarshal ¶
func (m *MsgWithdrawPosition) XXX_Unmarshal(b []byte) error
type MsgWithdrawPositionResponse ¶
type MsgWithdrawPositionResponse struct { Amount0 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,1,opt,name=amount0,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount0" yaml:"amount0"` Amount1 github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount1,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount1" yaml:"amount1"` }
func (*MsgWithdrawPositionResponse) Descriptor ¶
func (*MsgWithdrawPositionResponse) Descriptor() ([]byte, []int)
func (*MsgWithdrawPositionResponse) Marshal ¶
func (m *MsgWithdrawPositionResponse) Marshal() (dAtA []byte, err error)
func (*MsgWithdrawPositionResponse) MarshalTo ¶
func (m *MsgWithdrawPositionResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgWithdrawPositionResponse) MarshalToSizedBuffer ¶
func (m *MsgWithdrawPositionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgWithdrawPositionResponse) ProtoMessage ¶
func (*MsgWithdrawPositionResponse) ProtoMessage()
func (*MsgWithdrawPositionResponse) Reset ¶
func (m *MsgWithdrawPositionResponse) Reset()
func (*MsgWithdrawPositionResponse) Size ¶
func (m *MsgWithdrawPositionResponse) Size() (n int)
func (*MsgWithdrawPositionResponse) String ¶
func (m *MsgWithdrawPositionResponse) String() string
func (*MsgWithdrawPositionResponse) Unmarshal ¶
func (m *MsgWithdrawPositionResponse) Unmarshal(dAtA []byte) error
func (*MsgWithdrawPositionResponse) XXX_DiscardUnknown ¶
func (m *MsgWithdrawPositionResponse) XXX_DiscardUnknown()
func (*MsgWithdrawPositionResponse) XXX_Marshal ¶
func (m *MsgWithdrawPositionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgWithdrawPositionResponse) XXX_Merge ¶
func (m *MsgWithdrawPositionResponse) XXX_Merge(src proto.Message)
func (*MsgWithdrawPositionResponse) XXX_Size ¶
func (m *MsgWithdrawPositionResponse) XXX_Size() int
func (*MsgWithdrawPositionResponse) XXX_Unmarshal ¶
func (m *MsgWithdrawPositionResponse) XXX_Unmarshal(b []byte) error
type NegativeAmountAddedError ¶
type NegativeAmountAddedError struct { PositionId uint64 Asset0Amount sdk.Int Asset1Amount sdk.Int }
func (NegativeAmountAddedError) Error ¶
func (e NegativeAmountAddedError) Error() string
type NegativeDurationError ¶
func (NegativeDurationError) Error ¶
func (e NegativeDurationError) Error() string
type NegativeLiquidityError ¶
func (NegativeLiquidityError) Error ¶
func (e NegativeLiquidityError) Error() string
type NoSpotPriceWhenNoLiquidityError ¶
type NoSpotPriceWhenNoLiquidityError struct {
PoolId uint64
}
func (NoSpotPriceWhenNoLiquidityError) Error ¶
func (e NoSpotPriceWhenNoLiquidityError) Error() string
type NonPositiveEmissionRateError ¶
func (NonPositiveEmissionRateError) Error ¶
func (e NonPositiveEmissionRateError) Error() string
type NonPositiveLiquidityForNewPositionError ¶
func (NonPositiveLiquidityForNewPositionError) Error ¶
func (e NonPositiveLiquidityForNewPositionError) Error() string
type NotPositionOwnerError ¶
func (NotPositionOwnerError) Error ¶
func (e NotPositionOwnerError) Error() string
type NotPositiveRequireAmountError ¶
type NotPositiveRequireAmountError struct {
Amount string
}
func (NotPositiveRequireAmountError) Error ¶
func (e NotPositiveRequireAmountError) Error() string
type NumCoinsError ¶
type NumCoinsError struct {
NumCoins int
}
func (NumCoinsError) Error ¶
func (e NumCoinsError) Error() string
type OverChargeSwapOutGivenInError ¶
func (OverChargeSwapOutGivenInError) Error ¶
func (e OverChargeSwapOutGivenInError) 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. // This field can range from (0,1]. If set to 1, it indicates that all // incentives stay at cl pool. BalancerSharesRewardDiscount github_com_cosmos_cosmos_sdk_types.Dec `` /* 228-byte string literal not displayed */ // authorized_quote_denoms is a list of quote denoms that can be used as // token1 when creating a pool. We limit the quote assets to a small set for // the purposes of having convinient price increments stemming from tick to // price conversion. These increments are in a human readable magnitude only // for token1 as a quote. For limit orders in the future, this will be a // desirable property in terms of UX as to allow users to set limit orders at // prices in terms of token1 (quote asset) that are easy to reason about. AuthorizedQuoteDenoms []string `` /* 157-byte string literal not displayed */ AuthorizedUptimes []time.Duration `` /* 140-byte string literal not displayed */ // is_permissionless_pool_creation_enabled is a boolean that determines if // concentrated liquidity pools can be created via message. At launch, // we consider allowing only governance to create pools, and then later // allowing permissionless pool creation by switching this flag to true // with a governance proposal. IsPermissionlessPoolCreationEnabled bool `` /* 220-byte string literal not displayed */ }
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns default concentrated-liquidity module parameters.
func (*Params) Descriptor ¶
func (*Params) GetAuthorizedQuoteDenoms ¶
func (*Params) GetAuthorizedTickSpacing ¶
func (*Params) GetAuthorizedUptimes ¶
func (*Params) GetIsPermissionlessPoolCreationEnabled ¶
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 ¶
type PoolIdToTickSpacingRecord struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` NewTickSpacing uint64 `protobuf:"varint,2,opt,name=new_tick_spacing,json=newTickSpacing,proto3" json:"new_tick_spacing,omitempty"` }
PoolIdToTickSpacingRecord is a struct that contains a pool id to new tick spacing pair.
func (*PoolIdToTickSpacingRecord) Descriptor ¶
func (*PoolIdToTickSpacingRecord) Descriptor() ([]byte, []int)
func (*PoolIdToTickSpacingRecord) Equal ¶
func (this *PoolIdToTickSpacingRecord) Equal(that interface{}) bool
func (*PoolIdToTickSpacingRecord) GetNewTickSpacing ¶
func (m *PoolIdToTickSpacingRecord) GetNewTickSpacing() uint64
func (*PoolIdToTickSpacingRecord) GetPoolId ¶
func (m *PoolIdToTickSpacingRecord) GetPoolId() uint64
func (*PoolIdToTickSpacingRecord) Marshal ¶
func (m *PoolIdToTickSpacingRecord) Marshal() (dAtA []byte, err error)
func (*PoolIdToTickSpacingRecord) MarshalTo ¶
func (m *PoolIdToTickSpacingRecord) MarshalTo(dAtA []byte) (int, error)
func (*PoolIdToTickSpacingRecord) MarshalToSizedBuffer ¶
func (m *PoolIdToTickSpacingRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PoolIdToTickSpacingRecord) ProtoMessage ¶
func (*PoolIdToTickSpacingRecord) ProtoMessage()
func (*PoolIdToTickSpacingRecord) Reset ¶
func (m *PoolIdToTickSpacingRecord) Reset()
func (*PoolIdToTickSpacingRecord) Size ¶
func (m *PoolIdToTickSpacingRecord) Size() (n int)
func (*PoolIdToTickSpacingRecord) String ¶
func (m *PoolIdToTickSpacingRecord) String() string
func (*PoolIdToTickSpacingRecord) Unmarshal ¶
func (m *PoolIdToTickSpacingRecord) Unmarshal(dAtA []byte) error
func (*PoolIdToTickSpacingRecord) XXX_DiscardUnknown ¶
func (m *PoolIdToTickSpacingRecord) XXX_DiscardUnknown()
func (*PoolIdToTickSpacingRecord) XXX_Marshal ¶
func (m *PoolIdToTickSpacingRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PoolIdToTickSpacingRecord) XXX_Merge ¶
func (m *PoolIdToTickSpacingRecord) XXX_Merge(src proto.Message)
func (*PoolIdToTickSpacingRecord) XXX_Size ¶
func (m *PoolIdToTickSpacingRecord) XXX_Size() int
func (*PoolIdToTickSpacingRecord) XXX_Unmarshal ¶
func (m *PoolIdToTickSpacingRecord) XXX_Unmarshal(b []byte) error
type PoolIncentivesKeeper ¶
type 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 ¶
type PoolRecord struct { Denom0 string `protobuf:"bytes,1,opt,name=denom0,proto3" json:"denom0,omitempty" yaml:"denom0"` Denom1 string `protobuf:"bytes,2,opt,name=denom1,proto3" json:"denom1,omitempty" yaml:"denom1"` TickSpacing uint64 `protobuf:"varint,3,opt,name=tick_spacing,json=tickSpacing,proto3" json:"tick_spacing,omitempty" yaml:"tick_spacing"` ExponentAtPriceOne github_com_cosmos_cosmos_sdk_types.Int `` /* 188-byte string literal not displayed */ SpreadFactor github_com_cosmos_cosmos_sdk_types.Dec `` /* 158-byte string literal not displayed */ }
func (*PoolRecord) Descriptor ¶
func (*PoolRecord) Descriptor() ([]byte, []int)
func (*PoolRecord) Equal ¶
func (this *PoolRecord) Equal(that interface{}) bool
func (*PoolRecord) GetDenom0 ¶
func (m *PoolRecord) GetDenom0() string
func (*PoolRecord) GetDenom1 ¶
func (m *PoolRecord) GetDenom1() string
func (*PoolRecord) GetTickSpacing ¶
func (m *PoolRecord) GetTickSpacing() uint64
func (*PoolRecord) Marshal ¶
func (m *PoolRecord) Marshal() (dAtA []byte, err error)
func (*PoolRecord) MarshalToSizedBuffer ¶
func (m *PoolRecord) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PoolRecord) ProtoMessage ¶
func (*PoolRecord) ProtoMessage()
func (*PoolRecord) Reset ¶
func (m *PoolRecord) Reset()
func (*PoolRecord) Size ¶
func (m *PoolRecord) Size() (n int)
func (*PoolRecord) String ¶
func (m *PoolRecord) String() string
func (*PoolRecord) Unmarshal ¶
func (m *PoolRecord) Unmarshal(dAtA []byte) error
func (*PoolRecord) XXX_DiscardUnknown ¶
func (m *PoolRecord) XXX_DiscardUnknown()
func (*PoolRecord) XXX_Marshal ¶
func (m *PoolRecord) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PoolRecord) XXX_Merge ¶
func (m *PoolRecord) XXX_Merge(src proto.Message)
func (*PoolRecord) XXX_Size ¶
func (m *PoolRecord) XXX_Size() int
func (*PoolRecord) XXX_Unmarshal ¶
func (m *PoolRecord) XXX_Unmarshal(b []byte) error
type PositionAlreadyExistsError ¶
type PositionAlreadyExistsError struct { PoolId uint64 LowerTick int64 UpperTick int64 JoinTime time.Time }
func (PositionAlreadyExistsError) Error ¶
func (e PositionAlreadyExistsError) Error() string
type PositionIdNotFoundError ¶
type PositionIdNotFoundError struct {
PositionId uint64
}
func (PositionIdNotFoundError) Error ¶
func (e PositionIdNotFoundError) Error() string
type PositionIdToLockNotFoundError ¶
type PositionIdToLockNotFoundError struct {
PositionId uint64
}
func (PositionIdToLockNotFoundError) Error ¶
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 ¶
func (PositionNotFullRangeError) Error ¶
func (e PositionNotFullRangeError) Error() string
type PositionNotFullyChargedError ¶
type PositionNotFullyChargedError struct { PositionId uint64 PositionJoinTime time.Time FullyChargedMinTimestamp time.Time }
func (PositionNotFullyChargedError) Error ¶
func (e PositionNotFullyChargedError) Error() string
type PositionOwnerMismatchError ¶
func (PositionOwnerMismatchError) Error ¶
func (e PositionOwnerMismatchError) Error() string
type PositionQuantityTooLowError ¶
func (PositionQuantityTooLowError) Error ¶
func (e PositionQuantityTooLowError) Error() string
type PositionSuperfluidStakedError ¶
type PositionSuperfluidStakedError struct {
PositionId uint64
}
func (PositionSuperfluidStakedError) Error ¶
func (e PositionSuperfluidStakedError) Error() string
type PositionsNotInSamePoolError ¶
func (PositionsNotInSamePoolError) Error ¶
func (e PositionsNotInSamePoolError) Error() string
type PositionsNotInSameTickRangeError ¶
type PositionsNotInSameTickRangeError struct { Position1TickLower int64 Position1TickUpper int64 Position2TickLower int64 Position2TickUpper int64 }
func (PositionsNotInSameTickRangeError) Error ¶
func (e PositionsNotInSameTickRangeError) Error() string
type PriceBoundError ¶
func (PriceBoundError) Error ¶
func (e PriceBoundError) Error() string
type QualifyingLiquidityOrTimeElapsedNotPositiveError ¶
type QualifyingLiquidityOrTimeElapsedNotPositiveError struct { QualifyingLiquidity sdk.Dec TimeElapsed sdk.Dec }
func (QualifyingLiquidityOrTimeElapsedNotPositiveError) Error ¶
func (e QualifyingLiquidityOrTimeElapsedNotPositiveError) Error() string
type QueryRangeUnsupportedError ¶
func (QueryRangeUnsupportedError) Error ¶
func (e QueryRangeUnsupportedError) Error() string
type RanOutOfTicksForPoolError ¶
type RanOutOfTicksForPoolError struct {
PoolId uint64
}
func (RanOutOfTicksForPoolError) Error ¶
func (e RanOutOfTicksForPoolError) Error() string
type SpotPriceNegativeError ¶
func (SpotPriceNegativeError) Error ¶
func (e SpotPriceNegativeError) Error() string
type SpreadRewardPositionNotFoundError ¶
type SpreadRewardPositionNotFoundError struct {
PositionId uint64
}
func (SpreadRewardPositionNotFoundError) Error ¶
func (e SpreadRewardPositionNotFoundError) Error() string
type SqrtPriceNegativeError ¶
func (SqrtPriceNegativeError) Error ¶
func (e SqrtPriceNegativeError) Error() string
type SqrtPriceToTickError ¶
type SqrtPriceToTickError struct {
OutOfBounds bool
}
func (SqrtPriceToTickError) Error ¶
func (e SqrtPriceToTickError) Error() string
type SqrtPriceValidationError ¶
type SqrtPriceValidationError struct { SqrtPriceLimit osmomath.BigDec LowerBound osmomath.BigDec UpperBound osmomath.BigDec }
func (SqrtPriceValidationError) Error ¶
func (e SqrtPriceValidationError) Error() string
type SqrtRootCalculationError ¶
func (SqrtRootCalculationError) Error ¶
func (e SqrtRootCalculationError) Error() string
type StartTimeTooEarlyError ¶
func (StartTimeTooEarlyError) Error ¶
func (e StartTimeTooEarlyError) Error() string
type SwapNoProgressError ¶
func (SwapNoProgressError) Error ¶
func (e SwapNoProgressError) Error() string
type SwapNoProgressWithConsumptionError ¶
type SwapNoProgressWithConsumptionError struct { ComputedSqrtPrice osmomath.BigDec AmountIn sdk.Dec AmountOut sdk.Dec }
func (SwapNoProgressWithConsumptionError) Error ¶
func (e SwapNoProgressWithConsumptionError) 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 ¶
type TickSpacingDecreaseProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` PoolIdToTickSpacingRecords []PoolIdToTickSpacingRecord `` /* 137-byte string literal not displayed */ }
TickSpacingDecreaseProposal is a gov Content type for proposing a tick spacing decrease for a pool. The proposal will fail if one of the pools do not exist, or if the new tick spacing is not less than the current tick spacing.
func (*TickSpacingDecreaseProposal) Descriptor ¶
func (*TickSpacingDecreaseProposal) Descriptor() ([]byte, []int)
func (*TickSpacingDecreaseProposal) Equal ¶
func (this *TickSpacingDecreaseProposal) Equal(that interface{}) bool
func (*TickSpacingDecreaseProposal) GetDescription ¶
func (p *TickSpacingDecreaseProposal) GetDescription() string
GetDescription gets the description of the proposal
func (*TickSpacingDecreaseProposal) GetTitle ¶
func (p *TickSpacingDecreaseProposal) GetTitle() string
GetTitle gets the title of the proposal
func (*TickSpacingDecreaseProposal) Marshal ¶
func (m *TickSpacingDecreaseProposal) Marshal() (dAtA []byte, err error)
func (*TickSpacingDecreaseProposal) MarshalTo ¶
func (m *TickSpacingDecreaseProposal) MarshalTo(dAtA []byte) (int, error)
func (*TickSpacingDecreaseProposal) MarshalToSizedBuffer ¶
func (m *TickSpacingDecreaseProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*TickSpacingDecreaseProposal) ProposalRoute ¶
func (p *TickSpacingDecreaseProposal) ProposalRoute() string
ProposalRoute returns the router key for the proposal
func (*TickSpacingDecreaseProposal) ProposalType ¶
func (p *TickSpacingDecreaseProposal) ProposalType() string
ProposalType returns the type of the proposal
func (*TickSpacingDecreaseProposal) ProtoMessage ¶
func (*TickSpacingDecreaseProposal) ProtoMessage()
func (*TickSpacingDecreaseProposal) Reset ¶
func (m *TickSpacingDecreaseProposal) Reset()
func (*TickSpacingDecreaseProposal) Size ¶
func (m *TickSpacingDecreaseProposal) Size() (n int)
func (TickSpacingDecreaseProposal) String ¶
func (p TickSpacingDecreaseProposal) String() string
String returns a string containing the decrease tick spacing proposal.
func (*TickSpacingDecreaseProposal) Unmarshal ¶
func (m *TickSpacingDecreaseProposal) Unmarshal(dAtA []byte) error
func (*TickSpacingDecreaseProposal) ValidateBasic ¶
func (p *TickSpacingDecreaseProposal) ValidateBasic() error
ValidateBasic validates a governance proposal's abstract and basic contents.
func (*TickSpacingDecreaseProposal) XXX_DiscardUnknown ¶
func (m *TickSpacingDecreaseProposal) XXX_DiscardUnknown()
func (*TickSpacingDecreaseProposal) XXX_Marshal ¶
func (m *TickSpacingDecreaseProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*TickSpacingDecreaseProposal) XXX_Merge ¶
func (m *TickSpacingDecreaseProposal) XXX_Merge(src proto.Message)
func (*TickSpacingDecreaseProposal) XXX_Size ¶
func (m *TickSpacingDecreaseProposal) XXX_Size() int
func (*TickSpacingDecreaseProposal) XXX_Unmarshal ¶
func (m *TickSpacingDecreaseProposal) XXX_Unmarshal(b []byte) error
type TickSpacingError ¶
func (TickSpacingError) Error ¶
func (e TickSpacingError) Error() string
type TickToSqrtPriceConversionError ¶
type TickToSqrtPriceConversionError struct {
NextTick int64
}
func (TickToSqrtPriceConversionError) Error ¶
func (e TickToSqrtPriceConversionError) Error() string
type TimeElapsedNotPositiveError ¶
func (TimeElapsedNotPositiveError) Error ¶
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 ¶
type UnauthorizedQuoteDenomError struct {}
func (UnauthorizedQuoteDenomError) Error ¶
func (e UnauthorizedQuoteDenomError) Error() string
type UnauthorizedSpreadFactorError ¶
type UnauthorizedSpreadFactorError struct {}
func (UnauthorizedSpreadFactorError) Error ¶
func (e UnauthorizedSpreadFactorError) Error() string
type UnauthorizedTickSpacingError ¶
type UnauthorizedTickSpacingError struct {}
func (UnauthorizedTickSpacingError) Error ¶
func (e UnauthorizedTickSpacingError) Error() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) AddToPosition ¶
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 ¶
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) WithdrawPosition ¶
func (*UnimplementedMsgServer) WithdrawPosition(ctx context.Context, req *MsgWithdrawPosition) (*MsgWithdrawPositionResponse, error)
type UninitializedPoolWithLiquidityError ¶
type UninitializedPoolWithLiquidityError struct {
PoolId uint64
}
func (UninitializedPoolWithLiquidityError) Error ¶
func (e UninitializedPoolWithLiquidityError) Error() string
type UpperTickMismatchError ¶
func (UpperTickMismatchError) Error ¶
func (e UpperTickMismatchError) Error() string
type UptimeNotSupportedError ¶
func (UptimeNotSupportedError) Error ¶
func (e UptimeNotSupportedError) Error() string
type ValueNotFoundForKeyError ¶
type ValueNotFoundForKeyError struct {
Key []byte
}
func (ValueNotFoundForKeyError) Error ¶
func (e ValueNotFoundForKeyError) Error() string
type ValueParseError ¶
type ValueParseError struct {
Wrapped error
}
func (ValueParseError) Error ¶
func (e ValueParseError) Error() string
func (ValueParseError) Unwrap ¶
func (e ValueParseError) Unwrap() error