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, Types } 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 = "weighted_pool"; export declare const ERR_WEIGHTED_POOL_INSUFFICIENT_LIQUIDITY: U64; export declare const ERR_WEIGHTED_POOL_INVALID_POOL_WEIGHT: U64; export declare const ERR_WEIGHTED_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 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; 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 class Weight_10 { 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 Weight_10Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_10; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_15 { 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 Weight_15Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_15; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_20 { 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 Weight_20Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_20; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_25 { 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 Weight_25Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_25; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_30 { 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 Weight_30Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_30; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_35 { 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 Weight_35Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_35; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_40 { 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 Weight_40Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_40; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_45 { 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 Weight_45Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_45; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_5 { 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 Weight_5Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_5; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_50 { 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 Weight_50Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_50; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_55 { 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 Weight_55Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_55; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_60 { 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 Weight_60Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_60; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_65 { 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 Weight_65Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_65; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_70 { 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 Weight_70Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_70; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_75 { 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 Weight_75Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_75; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_80 { 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 Weight_80Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_80; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_85 { 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 Weight_85Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_85; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_90 { 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 Weight_90Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_90; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Weight_95 { 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 Weight_95Parser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Weight_95; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class WeightedPool { 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; weight_0: U64; weight_1: U64; weight_2: U64; weight_3: 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: WeightedPoolEvents; constructor(proto: any, typeTag: TypeTag); static WeightedPoolParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): WeightedPool; 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 WeightedPoolCreationEvent { 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 WeightedPoolCreationEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): WeightedPoolCreationEvent; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare class WeightedPoolEvents { 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 WeightedPoolEventsParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): WeightedPoolEvents; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare class WeightedPoolParamChangeEvent { 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 WeightedPoolParamChangeEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): WeightedPoolParamChangeEvent; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class WeightedPoolToken { 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 WeightedPoolTokenParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): WeightedPoolToken; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare function get_weight_($c: AptosDataCache, $p: TypeTag[]): U64; export declare function buildPayload_get_weight($p: TypeTag[]): Types.ViewRequest; export declare function view_get_weight(client: AptosClient, repo: AptosParserRepo, $p: TypeTag[], ledger_version?: string): Promise; export declare function out_of_swap_exact_in_(pool: WeightedPool, amount_in: U64, idx_in: U64, idx_out: U64, $c: AptosDataCache, $p: TypeTag[]): U64; export declare function pool_balances_(pool: WeightedPool, $c: AptosDataCache, $p: TypeTag[]): U64[]; export declare function pool_balances_and_weights_($c: AptosDataCache, $p: TypeTag[]): [U64[], U64[]]; export declare function buildPayload_pool_balances_and_weights($p: TypeTag[]): Types.ViewRequest; export declare function view_pool_balances_and_weights(client: AptosClient, repo: AptosParserRepo, $p: TypeTag[], ledger_version?: string): Promise<[U64[], 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 SwapEvent(): typeof SwapEvent; get Weight_10(): typeof Weight_10; get Weight_15(): typeof Weight_15; get Weight_20(): typeof Weight_20; get Weight_25(): typeof Weight_25; get Weight_30(): typeof Weight_30; get Weight_35(): typeof Weight_35; get Weight_40(): typeof Weight_40; get Weight_45(): typeof Weight_45; get Weight_5(): typeof Weight_5; get Weight_50(): typeof Weight_50; get Weight_55(): typeof Weight_55; get Weight_60(): typeof Weight_60; get Weight_65(): typeof Weight_65; get Weight_70(): typeof Weight_70; get Weight_75(): typeof Weight_75; get Weight_80(): typeof Weight_80; get Weight_85(): typeof Weight_85; get Weight_90(): typeof Weight_90; get Weight_95(): typeof Weight_95; get WeightedPool(): typeof WeightedPool; loadWeightedPool(owner: HexString, $p: TypeTag[], loadFull?: boolean, fillCache?: boolean, query?: { ledgerVersion?: number; }): Promise; get WeightedPoolCreationEvent(): typeof WeightedPoolCreationEvent; get WeightedPoolEvents(): typeof WeightedPoolEvents; get WeightedPoolParamChangeEvent(): typeof WeightedPoolParamChangeEvent; get WeightedPoolToken(): typeof WeightedPoolToken; payload_get_weight($p: TypeTag[]): Types.ViewRequest; get_weight($p: TypeTag[], ledger_version?: string): Promise<(string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | any[])[])[])[])[])[])[])[])[])[])[])[]>; view_get_weight($p: TypeTag[], ledger_version?: string): Promise<$.U64>; payload_pool_balances_and_weights($p: TypeTag[]): Types.ViewRequest; pool_balances_and_weights($p: TypeTag[], ledger_version?: string): Promise<(string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | (string | number | boolean | {} | any[])[])[])[])[])[])[])[])[])[])[])[]>; view_pool_balances_and_weights($p: TypeTag[], ledger_version?: string): Promise<[$.U64[], $.U64[]]>; } //# sourceMappingURL=weighted_pool.d.ts.map