Versions in this module Expand all Collapse all v11 v11.0.0 Aug 29, 2022 Changes in this version + const TypeMsgCreateStableswapPool + const TypeMsgStableSwapAdjustScalingFactors + var ErrIntOverflowStableswapPool = fmt.Errorf("proto: integer overflow") + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthStableswapPool = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupStableswapPool = fmt.Errorf("proto: unexpected end of group") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + var ModuleCdc = codec.NewAminoCodec(amino) + func RegisterInterfaces(registry codectypes.InterfaceRegistry) + func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino) + func RegisterMsgServer(s grpc1.Server, srv MsgServer) + type MsgClient interface + CreateStableswapPool func(ctx context.Context, in *MsgCreateStableswapPool, opts ...grpc.CallOption) (*MsgCreateStableswapPoolResponse, error) + StableSwapAdjustScalingFactors func(ctx context.Context, in *MsgStableSwapAdjustScalingFactors, ...) (*MsgStableSwapAdjustScalingFactorsResponse, error) + func NewMsgClient(cc grpc1.ClientConn) MsgClient + type MsgCreateStableswapPool struct + FuturePoolGovernor string + InitialPoolLiquidity github_com_cosmos_cosmos_sdk_types.Coins + PoolParams *PoolParams + ScalingFactors []uint64 + Sender string + func NewMsgCreateStableswapPool(sender sdk.AccAddress, poolParams PoolParams, initialLiquidity sdk.Coins, ...) MsgCreateStableswapPool + func (*MsgCreateStableswapPool) Descriptor() ([]byte, []int) + func (*MsgCreateStableswapPool) ProtoMessage() + func (m *MsgCreateStableswapPool) GetFuturePoolGovernor() string + func (m *MsgCreateStableswapPool) GetInitialPoolLiquidity() github_com_cosmos_cosmos_sdk_types.Coins + func (m *MsgCreateStableswapPool) GetPoolParams() *PoolParams + func (m *MsgCreateStableswapPool) GetScalingFactors() []uint64 + func (m *MsgCreateStableswapPool) GetSender() string + func (m *MsgCreateStableswapPool) Marshal() (dAtA []byte, err error) + func (m *MsgCreateStableswapPool) MarshalTo(dAtA []byte) (int, error) + func (m *MsgCreateStableswapPool) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgCreateStableswapPool) Reset() + func (m *MsgCreateStableswapPool) Size() (n int) + func (m *MsgCreateStableswapPool) String() string + func (m *MsgCreateStableswapPool) Unmarshal(dAtA []byte) error + func (m *MsgCreateStableswapPool) XXX_DiscardUnknown() + func (m *MsgCreateStableswapPool) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgCreateStableswapPool) XXX_Merge(src proto.Message) + func (m *MsgCreateStableswapPool) XXX_Size() int + func (m *MsgCreateStableswapPool) XXX_Unmarshal(b []byte) error + func (msg MsgCreateStableswapPool) CreatePool(ctx sdk.Context, poolId uint64) (types.PoolI, error) + func (msg MsgCreateStableswapPool) GetSignBytes() []byte + func (msg MsgCreateStableswapPool) GetSigners() []sdk.AccAddress + func (msg MsgCreateStableswapPool) InitialLiquidity() sdk.Coins + func (msg MsgCreateStableswapPool) PoolCreator() sdk.AccAddress + func (msg MsgCreateStableswapPool) Route() string + func (msg MsgCreateStableswapPool) Type() string + func (msg MsgCreateStableswapPool) Validate(ctx sdk.Context) error + func (msg MsgCreateStableswapPool) ValidateBasic() error + type MsgCreateStableswapPoolResponse struct + PoolID uint64 + func (*MsgCreateStableswapPoolResponse) Descriptor() ([]byte, []int) + func (*MsgCreateStableswapPoolResponse) ProtoMessage() + func (m *MsgCreateStableswapPoolResponse) GetPoolID() uint64 + func (m *MsgCreateStableswapPoolResponse) Marshal() (dAtA []byte, err error) + func (m *MsgCreateStableswapPoolResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgCreateStableswapPoolResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgCreateStableswapPoolResponse) Reset() + func (m *MsgCreateStableswapPoolResponse) Size() (n int) + func (m *MsgCreateStableswapPoolResponse) String() string + func (m *MsgCreateStableswapPoolResponse) Unmarshal(dAtA []byte) error + func (m *MsgCreateStableswapPoolResponse) XXX_DiscardUnknown() + func (m *MsgCreateStableswapPoolResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgCreateStableswapPoolResponse) XXX_Merge(src proto.Message) + func (m *MsgCreateStableswapPoolResponse) XXX_Size() int + func (m *MsgCreateStableswapPoolResponse) XXX_Unmarshal(b []byte) error + type MsgServer interface + CreateStableswapPool func(context.Context, *MsgCreateStableswapPool) (*MsgCreateStableswapPoolResponse, error) + StableSwapAdjustScalingFactors func(context.Context, *MsgStableSwapAdjustScalingFactors) (*MsgStableSwapAdjustScalingFactorsResponse, error) + type MsgStableSwapAdjustScalingFactors struct + PoolID uint64 + ScalingFactors []uint64 + Sender string + func NewMsgStableSwapAdjustScalingFactors(sender string, poolID uint64) MsgStableSwapAdjustScalingFactors + func (*MsgStableSwapAdjustScalingFactors) Descriptor() ([]byte, []int) + func (*MsgStableSwapAdjustScalingFactors) ProtoMessage() + func (m *MsgStableSwapAdjustScalingFactors) GetPoolID() uint64 + func (m *MsgStableSwapAdjustScalingFactors) GetScalingFactors() []uint64 + func (m *MsgStableSwapAdjustScalingFactors) GetSender() string + func (m *MsgStableSwapAdjustScalingFactors) Marshal() (dAtA []byte, err error) + func (m *MsgStableSwapAdjustScalingFactors) MarshalTo(dAtA []byte) (int, error) + func (m *MsgStableSwapAdjustScalingFactors) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgStableSwapAdjustScalingFactors) Reset() + func (m *MsgStableSwapAdjustScalingFactors) Size() (n int) + func (m *MsgStableSwapAdjustScalingFactors) String() string + func (m *MsgStableSwapAdjustScalingFactors) Unmarshal(dAtA []byte) error + func (m *MsgStableSwapAdjustScalingFactors) XXX_DiscardUnknown() + func (m *MsgStableSwapAdjustScalingFactors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgStableSwapAdjustScalingFactors) XXX_Merge(src proto.Message) + func (m *MsgStableSwapAdjustScalingFactors) XXX_Size() int + func (m *MsgStableSwapAdjustScalingFactors) XXX_Unmarshal(b []byte) error + func (msg MsgStableSwapAdjustScalingFactors) GetSignBytes() []byte + func (msg MsgStableSwapAdjustScalingFactors) GetSigners() []sdk.AccAddress + func (msg MsgStableSwapAdjustScalingFactors) Route() string + func (msg MsgStableSwapAdjustScalingFactors) Type() string + func (msg MsgStableSwapAdjustScalingFactors) ValidateBasic() error + type MsgStableSwapAdjustScalingFactorsResponse struct + func (*MsgStableSwapAdjustScalingFactorsResponse) Descriptor() ([]byte, []int) + func (*MsgStableSwapAdjustScalingFactorsResponse) ProtoMessage() + func (m *MsgStableSwapAdjustScalingFactorsResponse) Marshal() (dAtA []byte, err error) + func (m *MsgStableSwapAdjustScalingFactorsResponse) MarshalTo(dAtA []byte) (int, error) + func (m *MsgStableSwapAdjustScalingFactorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *MsgStableSwapAdjustScalingFactorsResponse) Reset() + func (m *MsgStableSwapAdjustScalingFactorsResponse) Size() (n int) + func (m *MsgStableSwapAdjustScalingFactorsResponse) String() string + func (m *MsgStableSwapAdjustScalingFactorsResponse) Unmarshal(dAtA []byte) error + func (m *MsgStableSwapAdjustScalingFactorsResponse) XXX_DiscardUnknown() + func (m *MsgStableSwapAdjustScalingFactorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *MsgStableSwapAdjustScalingFactorsResponse) XXX_Merge(src proto.Message) + func (m *MsgStableSwapAdjustScalingFactorsResponse) XXX_Size() int + func (m *MsgStableSwapAdjustScalingFactorsResponse) XXX_Unmarshal(b []byte) error + type Pool struct + Address string + FuturePoolGovernor string + Id uint64 + PoolLiquidity github_com_cosmos_cosmos_sdk_types.Coins + PoolParams PoolParams + ScalingFactor []uint64 + ScalingFactorGovernor string + TotalShares types.Coin + func NewStableswapPool(poolId uint64, stableswapPoolParams PoolParams, initialLiquidity sdk.Coins, ...) (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) CalcJoinPoolShares(ctx sdk.Context, tokensIn sdk.Coins, swapFee sdk.Dec) (numShares sdk.Int, newLiquidity sdk.Coins, err error) + func (p *Pool) ExitPool(ctx sdk.Context, exitingShares sdk.Int, exitFee sdk.Dec) (exitingCoins sdk.Coins, err error) + func (p *Pool) JoinPool(ctx sdk.Context, tokensIn sdk.Coins, swapFee sdk.Dec) (numShares sdk.Int, err error) + func (p *Pool) PokePool(blockTime time.Time) + func (p *Pool) SetStableSwapScalingFactors(ctx sdk.Context, scalingFactors []uint64, scalingFactorGovernor string) error + func (p *Pool) SwapInAmtGivenOut(ctx sdk.Context, tokenOut sdk.Coins, tokenInDenom string, swapFee sdk.Dec) (tokenIn sdk.Coin, err error) + func (p *Pool) SwapOutAmtGivenIn(ctx sdk.Context, tokenIn sdk.Coins, tokenOutDenom string, swapFee sdk.Dec) (tokenOut sdk.Coin, err error) + func (p Pool) CalcExitPoolCoinsFromShares(ctx sdk.Context, exitingShares sdk.Int, exitFee sdk.Dec) (exitingCoins sdk.Coins, err error) + func (p Pool) CalcInAmtGivenOut(ctx sdk.Context, tokenOut sdk.Coins, tokenInDenom string, swapFee sdk.Dec) (tokenIn sdk.Coin, err error) + func (p Pool) CalcOutAmtGivenIn(ctx sdk.Context, tokenIn sdk.Coins, tokenOutDenom string, swapFee sdk.Dec) (tokenOut sdk.Coin, err error) + func (p Pool) Copy() Pool + func (p Pool) GetAddress() sdk.AccAddress + func (p Pool) GetExitFee(ctx sdk.Context) sdk.Dec + func (p Pool) GetId() uint64 + func (p Pool) GetScalingFactorByLiquidityIndex(liquidityIndex int) uint64 + func (p Pool) GetScalingFactors() []uint64 + func (p Pool) GetSwapFee(ctx sdk.Context) sdk.Dec + func (p Pool) GetTotalPoolLiquidity(ctx sdk.Context) sdk.Coins + func (p Pool) GetTotalShares() sdk.Int + func (p Pool) IsActive(ctx sdk.Context) bool + func (p Pool) NumAssets() int + func (p Pool) SpotPrice(ctx sdk.Context, baseAssetDenom string, quoteAssetDenom string) (sdk.Dec, error) + func (p Pool) String() string + type PoolParams struct + ExitFee github_com_cosmos_cosmos_sdk_types.Dec + SwapFee github_com_cosmos_cosmos_sdk_types.Dec + func (*PoolParams) Descriptor() ([]byte, []int) + func (*PoolParams) ProtoMessage() + 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) Validate() error + type UnimplementedMsgServer struct + func (*UnimplementedMsgServer) CreateStableswapPool(ctx context.Context, req *MsgCreateStableswapPool) (*MsgCreateStableswapPoolResponse, error) + func (*UnimplementedMsgServer) StableSwapAdjustScalingFactors(ctx context.Context, req *MsgStableSwapAdjustScalingFactors) (*MsgStableSwapAdjustScalingFactorsResponse, error)