Versions in this module Expand all Collapse all v9 v9.0.0 Jun 1, 2022 Changes in this version + const TypeMsgCreateBalancerPool + var ErrIntOverflowBalancerPool = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthBalancerPool = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupBalancerPool = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var GuaranteedWeightPrecision int64 = 1 << 30 + var MaxUserSpecifiedWeight sdk.Int = sdk.NewIntFromUint64(1 << 20) + var ModuleCdc = codec.NewAminoCodec(amino) + func PoolAssetsCoins(assets []PoolAsset) sdk.Coins + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + func RegisterMsgServer(s grpc1.Server, srv MsgServer) + func SortPoolAssetsByDenom(assets []PoolAsset) + func ValidateUserSpecifiedPoolAssets(assets []PoolAsset) error + func ValidateUserSpecifiedWeight(weight sdk.Int) error + type MsgClient interface + CreateBalancerPool func(ctx context.Context, in *MsgCreateBalancerPool, opts ...grpc.CallOption) (*MsgCreateBalancerPoolResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgCreateBalancerPool struct + FuturePoolGovernor string + PoolAssets []PoolAsset + PoolParams *PoolParams + Sender string + func NewMsgCreateBalancerPool(sender sdk.AccAddress, poolParams PoolParams, poolAssets []PoolAsset, ...) MsgCreateBalancerPool + func (*MsgCreateBalancerPool) Descriptor() ([]byte, []int) + func (*MsgCreateBalancerPool) ProtoMessage() + func (m *MsgCreateBalancerPool) GetFuturePoolGovernor() string + func (m *MsgCreateBalancerPool) GetPoolAssets() []PoolAsset + func (m *MsgCreateBalancerPool) GetPoolParams() *PoolParams + func (m *MsgCreateBalancerPool) GetSender() string + func (m *MsgCreateBalancerPool) Marshal() (dAtA []byte, err error) + func (m *MsgCreateBalancerPool) MarshalTo(dAtA []byte) (int, error) + func (m *MsgCreateBalancerPool) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgCreateBalancerPool) Reset() + func (m *MsgCreateBalancerPool) Size() (n int) + func (m *MsgCreateBalancerPool) String() string + func (m *MsgCreateBalancerPool) Unmarshal(dAtA []byte) error + func (m *MsgCreateBalancerPool) XXX_DiscardUnknown() + func (m *MsgCreateBalancerPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgCreateBalancerPool) XXX_Merge(src proto.Message) + func (m *MsgCreateBalancerPool) XXX_Size() int + func (m *MsgCreateBalancerPool) XXX_Unmarshal(b []byte) error + func (msg MsgCreateBalancerPool) CreatePool(ctx sdk.Context, poolID uint64) (types.PoolI, error) + func (msg MsgCreateBalancerPool) GetSignBytes() []byte + func (msg MsgCreateBalancerPool) GetSigners() []sdk.AccAddress + func (msg MsgCreateBalancerPool) InitialLiquidity() sdk.Coins + func (msg MsgCreateBalancerPool) PoolCreator() sdk.AccAddress + func (msg MsgCreateBalancerPool) Route() string + func (msg MsgCreateBalancerPool) Type() string + func (msg MsgCreateBalancerPool) Validate(ctx sdk.Context) error + func (msg MsgCreateBalancerPool) ValidateBasic() error + type MsgCreateBalancerPoolResponse struct + PoolID uint64 + func (*MsgCreateBalancerPoolResponse) Descriptor() ([]byte, []int) + func (*MsgCreateBalancerPoolResponse) ProtoMessage() + func (m *MsgCreateBalancerPoolResponse) GetPoolID() uint64 + func (m *MsgCreateBalancerPoolResponse) Marshal() (dAtA []byte, err error) + func (m *MsgCreateBalancerPoolResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgCreateBalancerPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgCreateBalancerPoolResponse) Reset() + func (m *MsgCreateBalancerPoolResponse) Size() (n int) + func (m *MsgCreateBalancerPoolResponse) String() string + func (m *MsgCreateBalancerPoolResponse) Unmarshal(dAtA []byte) error + func (m *MsgCreateBalancerPoolResponse) XXX_DiscardUnknown() + func (m *MsgCreateBalancerPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgCreateBalancerPoolResponse) XXX_Merge(src proto.Message) + func (m *MsgCreateBalancerPoolResponse) XXX_Size() int + func (m *MsgCreateBalancerPoolResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + CreateBalancerPool func(context.Context, *MsgCreateBalancerPool) (*MsgCreateBalancerPoolResponse, error) + type Pool struct + Address string + FuturePoolGovernor string + Id uint64 + PoolAssets []PoolAsset + PoolParams PoolParams + TotalShares types.Coin + TotalWeight github_com_cosmos_cosmos_sdk_types.Int + func NewBalancerPool(poolId uint64, balancerPoolParams PoolParams, assets []PoolAsset, ...) (Pool, error) + func (*Pool) Descriptor() ([]byte, []int) + func (*Pool) ProtoMessage() + func (m *Pool) Marshal() (dAtA []byte, err error) + func (m *Pool) MarshalTo(dAtA []byte) (int, error) + func (m *Pool) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Pool) Reset() + func (m *Pool) Size() (n int) + func (m *Pool) Unmarshal(dAtA []byte) error + func (m *Pool) XXX_DiscardUnknown() + func (m *Pool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Pool) XXX_Merge(src proto.Message) + func (m *Pool) XXX_Size() int + func (m *Pool) XXX_Unmarshal(b []byte) error + func (p *Pool) CalcExitPoolShares(ctx sdk.Context, exitingShares sdk.Int, exitFee sdk.Dec) (exitedCoins sdk.Coins, err error) + func (p *Pool) CalcJoinPoolShares(_ sdk.Context, tokensIn sdk.Coins, swapFee sdk.Dec) (numShares sdk.Int, newLiquidity sdk.Coins, err error) + func (p *Pool) CalcTokenInShareAmountOut(ctx sdk.Context, tokenInDenom string, shareOutAmount sdk.Int, swapFee sdk.Dec) (tokenInAmount sdk.Int, err error) + func (p *Pool) ExitPool(ctx sdk.Context, exitingShares sdk.Int, exitFee sdk.Dec) (exitingCoins sdk.Coins, err error) + func (p *Pool) ExitSwapExactAmountOut(ctx sdk.Context, tokenOut sdk.Coin, shareInMaxAmount sdk.Int) (shareInAmount sdk.Int, err error) + func (p *Pool) IncreaseLiquidity(sharesOut sdk.Int, coinsIn sdk.Coins) + func (p *Pool) JoinPool(_ctx sdk.Context, tokensIn sdk.Coins, swapFee sdk.Dec) (numShares sdk.Int, err error) + func (p *Pool) JoinPoolTokenInMaxShareAmountOut(ctx sdk.Context, tokenInDenom string, shareOutAmount sdk.Int) (tokenInAmount sdk.Int, err error) + func (p *Pool) SwapInAmtGivenOut(ctx sdk.Context, tokensOut sdk.Coins, tokenInDenom string, swapFee sdk.Dec) (tokenIn sdk.Coin, err error) + func (p *Pool) SwapOutAmtGivenIn(ctx sdk.Context, tokensIn sdk.Coins, tokenOutDenom string, swapFee sdk.Dec) (tokenOut sdk.Coin, err error) + func (p Pool) CalcInAmtGivenOut(ctx sdk.Context, tokensOut sdk.Coins, tokenInDenom string, swapFee sdk.Dec) (tokenIn sdk.Coin, err error) + func (p Pool) CalcOutAmtGivenIn(ctx sdk.Context, tokensIn sdk.Coins, tokenOutDenom string, swapFee sdk.Dec) (sdk.Coin, error) + func (p Pool) SpotPrice(ctx sdk.Context, baseAsset, quoteAsset string) (sdk.Dec, error) + func (pa *Pool) AddTotalShares(amt sdk.Int) + func (pa *Pool) PokePool(blockTime time.Time) + func (pa *Pool) SubTotalShares(amt sdk.Int) + func (pa *Pool) UnmarshalJSON(bz []byte) error + func (pa *Pool) UpdatePoolAssetBalance(coin sdk.Coin) error + func (pa *Pool) UpdatePoolAssetBalances(coins sdk.Coins) error + func (pa Pool) GetAddress() sdk.AccAddress + func (pa Pool) GetAllPoolAssets() []PoolAsset + func (pa Pool) GetExitFee(_ sdk.Context) sdk.Dec + func (pa Pool) GetId() uint64 + func (pa Pool) GetPoolAsset(denom string) (PoolAsset, error) + func (pa Pool) GetPoolAssets(denoms ...string) ([]PoolAsset, error) + func (pa Pool) GetPoolParams() PoolParams + func (pa Pool) GetSwapFee(_ sdk.Context) sdk.Dec + func (pa Pool) GetTokenBalance(denom string) (sdk.Int, error) + func (pa Pool) GetTokenWeight(denom string) (sdk.Int, error) + func (pa Pool) GetTotalPoolLiquidity(_ sdk.Context) sdk.Coins + func (pa Pool) GetTotalShares() sdk.Int + func (pa Pool) GetTotalWeight() sdk.Int + func (pa Pool) IsActive(ctx sdk.Context) bool + func (pa Pool) MarshalJSON() ([]byte, error) + func (pa Pool) NumAssets() int + func (pa Pool) String() string + type PoolAsset struct + Token types.Coin + Weight github_com_cosmos_cosmos_sdk_types.Int + func GetPoolAssetByDenom(assets []PoolAsset, denom string) (PoolAsset, bool) + func SortPoolAssetsOutOfPlaceByDenom(assets []PoolAsset) []PoolAsset + func (*PoolAsset) Descriptor() ([]byte, []int) + func (*PoolAsset) ProtoMessage() + func (asset PoolAsset) ValidateWeight() error + func (m *PoolAsset) GetToken() types.Coin + func (m *PoolAsset) Marshal() (dAtA []byte, err error) + func (m *PoolAsset) MarshalTo(dAtA []byte) (int, error) + func (m *PoolAsset) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PoolAsset) Reset() + func (m *PoolAsset) Size() (n int) + func (m *PoolAsset) String() string + func (m *PoolAsset) Unmarshal(dAtA []byte) error + func (m *PoolAsset) XXX_DiscardUnknown() + func (m *PoolAsset) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PoolAsset) XXX_Merge(src proto.Message) + func (m *PoolAsset) XXX_Size() int + func (m *PoolAsset) XXX_Unmarshal(b []byte) error + func (pa PoolAsset) MarshalYAML() (interface{}, error) + type PoolParams struct + ExitFee github_com_cosmos_cosmos_sdk_types.Dec + SmoothWeightChangeParams *SmoothWeightChangeParams + SwapFee github_com_cosmos_cosmos_sdk_types.Dec + func NewPoolParams(swapFee, exitFee sdk.Dec, params *SmoothWeightChangeParams) PoolParams + func (*PoolParams) Descriptor() ([]byte, []int) + func (*PoolParams) ProtoMessage() + func (m *PoolParams) GetSmoothWeightChangeParams() *SmoothWeightChangeParams + func (m *PoolParams) Marshal() (dAtA []byte, err error) + func (m *PoolParams) MarshalTo(dAtA []byte) (int, error) + func (m *PoolParams) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *PoolParams) Reset() + func (m *PoolParams) Size() (n int) + func (m *PoolParams) String() string + func (m *PoolParams) Unmarshal(dAtA []byte) error + func (m *PoolParams) XXX_DiscardUnknown() + func (m *PoolParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *PoolParams) XXX_Merge(src proto.Message) + func (m *PoolParams) XXX_Size() int + func (m *PoolParams) XXX_Unmarshal(b []byte) error + func (params PoolParams) GetPoolExitFee() sdk.Dec + func (params PoolParams) GetPoolSwapFee() sdk.Dec + func (params PoolParams) Validate(poolWeights []PoolAsset) error + type SmoothWeightChangeParams struct + Duration time.Duration + InitialPoolWeights []PoolAsset + StartTime time.Time + TargetPoolWeights []PoolAsset + func (*SmoothWeightChangeParams) Descriptor() ([]byte, []int) + func (*SmoothWeightChangeParams) ProtoMessage() + func (m *SmoothWeightChangeParams) GetDuration() time.Duration + func (m *SmoothWeightChangeParams) GetInitialPoolWeights() []PoolAsset + func (m *SmoothWeightChangeParams) GetStartTime() time.Time + func (m *SmoothWeightChangeParams) GetTargetPoolWeights() []PoolAsset + func (m *SmoothWeightChangeParams) Marshal() (dAtA []byte, err error) + func (m *SmoothWeightChangeParams) MarshalTo(dAtA []byte) (int, error) + func (m *SmoothWeightChangeParams) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SmoothWeightChangeParams) Reset() + func (m *SmoothWeightChangeParams) Size() (n int) + func (m *SmoothWeightChangeParams) String() string + func (m *SmoothWeightChangeParams) Unmarshal(dAtA []byte) error + func (m *SmoothWeightChangeParams) XXX_DiscardUnknown() + func (m *SmoothWeightChangeParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SmoothWeightChangeParams) XXX_Merge(src proto.Message) + func (m *SmoothWeightChangeParams) XXX_Size() int + func (m *SmoothWeightChangeParams) XXX_Unmarshal(b []byte) error + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) CreateBalancerPool(ctx context.Context, req *MsgCreateBalancerPool) (*MsgCreateBalancerPoolResponse, error) Other modules containing this package github.com/osmosis-labs/osmosis/v10 github.com/osmosis-labs/osmosis/v11 github.com/osmosis-labs/osmosis/v12 github.com/osmosis-labs/osmosis/v13 github.com/osmosis-labs/osmosis/v14 github.com/osmosis-labs/osmosis/v15 github.com/osmosis-labs/osmosis/v16 github.com/osmosis-labs/osmosis/v17 github.com/osmosis-labs/osmosis/v19 github.com/osmosis-labs/osmosis/v20 github.com/osmosis-labs/osmosis/v21 github.com/osmosis-labs/osmosis/v22 github.com/osmosis-labs/osmosis/v23 github.com/osmosis-labs/osmosis/v24 github.com/osmosis-labs/osmosis/v25 github.com/osmosis-labs/osmosis/v26 github.com/osmosis-labs/osmosis/v27 github.com/osmosis-labs/osmosis/v7 github.com/osmosis-labs/osmosis/v8