import * as $ from '@manahippo/move-to-ts'; import { AptosDataCache, AptosParserRepo, AptosLocalCache } from '@manahippo/move-to-ts'; import { U64, U128 } 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 Stdlib from '../stdlib'; export declare const packageName = "obric-swap"; export declare const moduleAddress: HexString; export declare const moduleName = "piece_swap"; export declare class LPToken { 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 LPTokenParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): LPToken; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare class PieceSwapPoolInfo { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; reserve_x: Stdlib.Coin.Coin; reserve_y: Stdlib.Coin.Coin; lp_amt: U64; lp_mint_cap: Stdlib.Coin.MintCapability; lp_burn_cap: Stdlib.Coin.BurnCapability; lp_freeze_cap: Stdlib.Coin.FreezeCapability; K: U128; K2: U128; Xa: U128; Xb: U128; m: U128; n: U128; x_deci_mult: U64; y_deci_mult: U64; swap_fee_per_million: U64; protocol_fee_share_per_thousand: U64; protocol_fee_x: Stdlib.Coin.Coin; protocol_fee_y: Stdlib.Coin.Coin; constructor(proto: any, typeTag: TypeTag); static PieceSwapPoolInfoParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): PieceSwapPoolInfo; 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; quote_x_to_y_after_fees(amount_x_in: U64): $.U64; quote_y_to_x_after_fees(amount_y_in: U64): $.U64; } export declare function quote_x_to_y_(pool: PieceSwapPoolInfo, amount_x_in: U64, $c: AptosDataCache, $p: TypeTag[]): U64; export declare function quote_x_to_y_after_fees_(pool: PieceSwapPoolInfo, amount_x_in: U64, $c: AptosDataCache, $p: TypeTag[]): U64; export declare function quote_y_to_x_(pool: PieceSwapPoolInfo, amount_y_in: U64, $c: AptosDataCache, $p: TypeTag[]): U64; export declare function quote_y_to_x_after_fees_(pool: PieceSwapPoolInfo, amount_y_in: U64, $c: AptosDataCache, $p: TypeTag[]): U64; export declare function swap_x_to_y_direct_(_coin_x: Stdlib.Coin.Coin, $c: AptosDataCache, $p: TypeTag[]): Stdlib.Coin.Coin; export declare function swap_y_to_x_direct_(_coin_x: Stdlib.Coin.Coin, $c: AptosDataCache, $p: TypeTag[]): Stdlib.Coin.Coin; 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 LPToken(): typeof LPToken; get PieceSwapPoolInfo(): typeof PieceSwapPoolInfo; loadPieceSwapPoolInfo(owner: HexString, $p: TypeTag[], loadFull?: boolean, fillCache?: boolean, query?: { ledgerVersion?: number; }): Promise; } //# sourceMappingURL=piece_swap.d.ts.map