import * as $ from '@manahippo/move-to-ts'; import { AptosDataCache, AptosParserRepo, AptosLocalCache } from '@manahippo/move-to-ts'; import { U64 } from '@manahippo/move-to-ts'; import { TypeParamDeclType, FieldDeclType } from '@manahippo/move-to-ts'; import { StructTag, TypeTag } from '@manahippo/move-to-ts'; import { HexString, AptosClient } from 'aptos'; import * as Fixed_point64 from '../fixed_point64'; import * as Stdlib from '../stdlib'; export declare const packageName = "ThalaSwap"; export declare const moduleAddress: HexString; export declare const moduleName = "stable_pool"; export declare const ERR_STABLE_POOL_INSUFFICIENT_LIQUIDITY: U64; export declare const ERR_STABLE_POOL_INVALID_SWAP: U64; export declare class AddLiquidityEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; amount_0: U64; amount_1: U64; amount_2: U64; amount_3: U64; minted_lp_coin_amount: U64; constructor(proto: any, typeTag: TypeTag); static AddLiquidityEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): AddLiquidityEvent; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare class RemoveLiquidityEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; amount_0: U64; amount_1: U64; amount_2: U64; amount_3: U64; burned_lp_coin_amount: U64; constructor(proto: any, typeTag: TypeTag); static RemoveLiquidityEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): RemoveLiquidityEvent; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare class StablePool { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; asset_0: Stdlib.Coin.Coin; asset_1: Stdlib.Coin.Coin; asset_2: Stdlib.Coin.Coin; asset_3: Stdlib.Coin.Coin; amp_factor: U64; precision_multipliers: U64[]; swap_fee_ratio: Fixed_point64.Fixed_point64.FixedPoint64; inverse_negated_swap_fee_ratio: Fixed_point64.Fixed_point64.FixedPoint64; pool_token_mint_cap: Stdlib.Coin.MintCapability; pool_token_burn_cap: Stdlib.Coin.BurnCapability; reserved_lp_coin: Stdlib.Coin.Coin; events: StablePoolEvents; constructor(proto: any, typeTag: TypeTag); static StablePoolParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): StablePool; static load(repo: AptosParserRepo, client: AptosClient, address: HexString, typeParams: TypeTag[], query?: { ledgerVersion?: number; }): Promise; static loadByApp(app: $.AppType, address: HexString, typeParams: TypeTag[], query?: { ledgerVersion?: number; }): Promise; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare class StablePoolCreationEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; creator: HexString; amount_0: U64; amount_1: U64; amount_2: U64; amount_3: U64; minted_lp_coin_amount: U64; swap_fee_bps: U64; constructor(proto: any, typeTag: TypeTag); static StablePoolCreationEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): StablePoolCreationEvent; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare class StablePoolEvents { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; pool_creation_events: Stdlib.Event.EventHandle; add_liquidity_events: Stdlib.Event.EventHandle; remove_liquidity_events: Stdlib.Event.EventHandle; swap_events: Stdlib.Event.EventHandle; param_change_events: Stdlib.Event.EventHandle; constructor(proto: any, typeTag: TypeTag); static StablePoolEventsParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): StablePoolEvents; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare class StablePoolParamChangeEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; name: Stdlib.String.String; prev_value: U64; new_value: U64; constructor(proto: any, typeTag: TypeTag); static StablePoolParamChangeEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): StablePoolParamChangeEvent; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class StablePoolToken { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; constructor(proto: any, typeTag: TypeTag); static StablePoolTokenParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): StablePoolToken; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare class SwapEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; idx_in: U64; idx_out: U64; amount_in: U64; amount_out: U64; fee_amount: U64; pool_balance_0: U64; pool_balance_1: U64; pool_balance_2: U64; pool_balance_3: U64; amp_factor: U64; constructor(proto: any, typeTag: TypeTag); static SwapEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): SwapEvent; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare function get_xp_(pool: StablePool, $c: AptosDataCache, $p: TypeTag[]): U64[]; export declare function in_of_swap_exact_out_(amount_out: U64, $c: AptosDataCache, $p: TypeTag[]): U64; export declare function out_of_swap_exact_in_(pool: StablePool, amount_in: U64, idx_in: U64, idx_out: U64, $c: AptosDataCache, $p: TypeTag[]): U64; export declare function loadParsers(repo: AptosParserRepo): void; export declare class App { client: AptosClient; repo: AptosParserRepo; cache: AptosLocalCache; constructor(client: AptosClient, repo: AptosParserRepo, cache: AptosLocalCache); get moduleAddress(): HexString; get moduleName(): string; get AddLiquidityEvent(): typeof AddLiquidityEvent; get RemoveLiquidityEvent(): typeof RemoveLiquidityEvent; get StablePool(): typeof StablePool; loadStablePool(owner: HexString, $p: TypeTag[], loadFull?: boolean, fillCache?: boolean, query?: { ledgerVersion?: number; }): Promise; get StablePoolCreationEvent(): typeof StablePoolCreationEvent; get StablePoolEvents(): typeof StablePoolEvents; get StablePoolParamChangeEvent(): typeof StablePoolParamChangeEvent; get StablePoolToken(): typeof StablePoolToken; get SwapEvent(): typeof SwapEvent; } //# sourceMappingURL=stable_pool.d.ts.map