@leapwallet/buffer-boba
Version:
Buffer Boba is a library for decoding protocol buffers in the cosmos ecosystem.
156 lines (155 loc) • 6.02 kB
TypeScript
import { Coin, CoinAmino, CoinSDKType } from '../../../../../cosmos/base/v1beta1/coin';
import { BinaryReader, BinaryWriter } from '../../../../../../binary';
/**
* PoolParams defined the parameters that will be managed by the pool
* governance in the future. This params are not managed by the chain
* governance. Instead they will be managed by the token holders of the pool.
* The pool's token holders are specified in future_pool_governor.
*/
export interface PoolParams {
swapFee: string;
/**
* N.B.: exit fee is disabled during pool creation in x/poolmanager. While old
* pools can maintain a non-zero fee. No new pool can be created with non-zero
* fee anymore
*/
exitFee: string;
}
export interface PoolParamsProtoMsg {
typeUrl: '/osmosis.gamm.poolmodels.stableswap.v1beta1.PoolParams';
value: Uint8Array;
}
/**
* PoolParams defined the parameters that will be managed by the pool
* governance in the future. This params are not managed by the chain
* governance. Instead they will be managed by the token holders of the pool.
* The pool's token holders are specified in future_pool_governor.
*/
export interface PoolParamsAmino {
swap_fee?: string;
/**
* N.B.: exit fee is disabled during pool creation in x/poolmanager. While old
* pools can maintain a non-zero fee. No new pool can be created with non-zero
* fee anymore
*/
exit_fee?: string;
}
export interface PoolParamsAminoMsg {
type: 'osmosis/gamm/StableswapPoolParams';
value: PoolParamsAmino;
}
/**
* PoolParams defined the parameters that will be managed by the pool
* governance in the future. This params are not managed by the chain
* governance. Instead they will be managed by the token holders of the pool.
* The pool's token holders are specified in future_pool_governor.
*/
export interface PoolParamsSDKType {
swap_fee: string;
exit_fee: string;
}
/** Pool is the stableswap Pool struct */
export interface Pool {
$typeUrl?: '/osmosis.gamm.poolmodels.stableswap.v1beta1.Pool';
address: string;
id: bigint;
poolParams: PoolParams;
/**
* This string specifies who will govern the pool in the future.
* Valid forms of this are:
* {token name},{duration}
* {duration}
* where {token name} if specified is the token which determines the
* governor, and if not specified is the LP token for this pool.duration is
* a time specified as 0w,1w,2w, etc. which specifies how long the token
* would need to be locked up to count in governance. 0w means no lockup.
*/
futurePoolGovernor: string;
/** sum of all LP shares */
totalShares: Coin;
/** assets in the pool */
poolLiquidity: Coin[];
/** for calculation amognst assets with different precisions */
scalingFactors: bigint[];
/** scaling_factor_controller is the address can adjust pool scaling factors */
scalingFactorController: string;
}
export interface PoolProtoMsg {
typeUrl: '/osmosis.gamm.poolmodels.stableswap.v1beta1.Pool';
value: Uint8Array;
}
/** Pool is the stableswap Pool struct */
export interface PoolAmino {
address?: string;
id?: string;
pool_params?: PoolParamsAmino;
/**
* This string specifies who will govern the pool in the future.
* Valid forms of this are:
* {token name},{duration}
* {duration}
* where {token name} if specified is the token which determines the
* governor, and if not specified is the LP token for this pool.duration is
* a time specified as 0w,1w,2w, etc. which specifies how long the token
* would need to be locked up to count in governance. 0w means no lockup.
*/
future_pool_governor?: string;
/** sum of all LP shares */
total_shares?: CoinAmino;
/** assets in the pool */
pool_liquidity?: CoinAmino[];
/** for calculation amognst assets with different precisions */
scaling_factors?: string[];
/** scaling_factor_controller is the address can adjust pool scaling factors */
scaling_factor_controller?: string;
}
export interface PoolAminoMsg {
type: 'osmosis/gamm/StableswapPool';
value: PoolAmino;
}
/** Pool is the stableswap Pool struct */
export interface PoolSDKType {
$typeUrl?: '/osmosis.gamm.poolmodels.stableswap.v1beta1.Pool';
address: string;
id: bigint;
pool_params: PoolParamsSDKType;
future_pool_governor: string;
total_shares: CoinSDKType;
pool_liquidity: CoinSDKType[];
scaling_factors: bigint[];
scaling_factor_controller: string;
}
export declare const PoolParams: {
typeUrl: string;
aminoType: string;
is(o: any): o is PoolParams;
isSDK(o: any): o is PoolParamsSDKType;
isAmino(o: any): o is PoolParamsAmino;
encode(message: PoolParams, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): PoolParams;
fromPartial(object: Partial<PoolParams>): PoolParams;
fromAmino(object: PoolParamsAmino): PoolParams;
toAmino(message: PoolParams): PoolParamsAmino;
fromAminoMsg(object: PoolParamsAminoMsg): PoolParams;
toAminoMsg(message: PoolParams): PoolParamsAminoMsg;
fromProtoMsg(message: PoolParamsProtoMsg): PoolParams;
toProto(message: PoolParams): Uint8Array;
toProtoMsg(message: PoolParams): PoolParamsProtoMsg;
};
export declare const Pool: {
typeUrl: string;
aminoType: string;
is(o: any): o is Pool;
isSDK(o: any): o is PoolSDKType;
isAmino(o: any): o is PoolAmino;
encode(message: Pool, writer?: BinaryWriter): BinaryWriter;
decode(input: BinaryReader | Uint8Array, length?: number): Pool;
fromPartial(object: Partial<Pool>): Pool;
fromAmino(object: PoolAmino): Pool;
toAmino(message: Pool): PoolAmino;
fromAminoMsg(object: PoolAminoMsg): Pool;
toAminoMsg(message: Pool): PoolAminoMsg;
fromProtoMsg(message: PoolProtoMsg): Pool;
toProto(message: Pool): Uint8Array;
toProtoMsg(message: Pool): PoolProtoMsg;
};