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 = "swap"; export declare const moduleAddress: HexString; export declare const moduleName = "implements"; export declare const ERR_COIN_OUT_NUM_LESS_THAN_EXPECTED_MINIMUM: U64; export declare const ERR_INCORRECT_BURN_VALUES: U64; export declare const ERR_LIQUID_NOT_ENOUGH: U64; export declare const ERR_NOT_ENOUGH_PERMISSIONS_TO_INITIALIZE: U64; export declare const ERR_POOL_DOES_NOT_EXIST: U64; export declare const ERR_POOL_EXISTS_FOR_PAIR: U64; export declare const ERR_POOL_IS_LOCKED: U64; export declare const ERR_SWAP_NOT_INITIALIZE: U64; export declare const ERR_U64_OVERFLOW: U64; export declare const FEE_MULTIPLIER: U64; export declare const FEE_SCALE: U64; export declare const MINIMAL_LIQUIDITY: U64; export declare const SYMBOL_PREFIX_LENGTH: U64; export declare const U64_MAX: U64; export declare class Config { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; pool_cap: Stdlib.Account.SignerCapability; fee_cap: Stdlib.Account.SignerCapability; controller: HexString; beneficiary: HexString; constructor(proto: any, typeTag: TypeTag); static ConfigParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Config; static load(repo: AptosParserRepo, client: AptosClient, address: HexString, typeParams: TypeTag[]): Promise; static loadByApp(app: $.AppType, address: HexString, typeParams: TypeTag[]): Promise; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class LiquidityPool { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; coin_x: Stdlib.Coin.Coin; coin_y: Stdlib.Coin.Coin; timestamp: U64; x_cumulative: U128; y_cumulative: U128; lp_mint_cap: Stdlib.Coin.MintCapability; lp_burn_cap: Stdlib.Coin.BurnCapability; constructor(proto: any, typeTag: TypeTag); static LiquidityPoolParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): LiquidityPool; static load(repo: AptosParserRepo, client: AptosClient, address: HexString, typeParams: TypeTag[]): Promise; static loadByApp(app: $.AppType, address: HexString, typeParams: TypeTag[]): Promise; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare function beneficiary_($c: AptosDataCache): HexString; export declare function burn_(lp_coins: Stdlib.Coin.Coin, $c: AptosDataCache, $p: TypeTag[]): [Stdlib.Coin.Coin, Stdlib.Coin.Coin]; export declare function coin_symbol_prefix_($c: AptosDataCache, $p: TypeTag[]): Stdlib.String.String; export declare function controller_($c: AptosDataCache): HexString; export declare function fee_account_($c: AptosDataCache): HexString; export declare function fee_address_($c: AptosDataCache): HexString; export declare function generate_lp_name_and_symbol_($c: AptosDataCache, $p: TypeTag[]): [Stdlib.String.String, Stdlib.String.String]; export declare function get_amout_out_(amout_in: U64, x: boolean, $c: AptosDataCache, $p: TypeTag[]): U64; export declare function get_reserves_size_($c: AptosDataCache, $p: TypeTag[]): [U64, U64]; export declare function initialize_swap_(swap_admin: HexString, controller: HexString, beneficiary: HexString, $c: AptosDataCache): void; export declare function mint_(coin_x: Stdlib.Coin.Coin, coin_y: Stdlib.Coin.Coin, $c: AptosDataCache, $p: TypeTag[]): Stdlib.Coin.Coin; export declare function pool_account_($c: AptosDataCache): HexString; export declare function pool_address_($c: AptosDataCache): HexString; export declare function register_pool_(account: HexString, $c: AptosDataCache, $p: TypeTag[]): void; export declare function swap_x_(coin_in: Stdlib.Coin.Coin, coin_out_min_val: U64, $c: AptosDataCache, $p: TypeTag[]): Stdlib.Coin.Coin; export declare function swap_y_(coin_in: Stdlib.Coin.Coin, coin_out_min_val: U64, $c: AptosDataCache, $p: TypeTag[]): Stdlib.Coin.Coin; export declare function update_oracle_(pool_address: HexString, pool: LiquidityPool, $c: AptosDataCache, $p: TypeTag[]): void; export declare function withdraw_fee_(account: HexString, $c: AptosDataCache, $p: TypeTag[]): void; 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 Config(): typeof Config; loadConfig(owner: HexString, loadFull?: boolean, fillCache?: boolean): Promise; get LiquidityPool(): typeof LiquidityPool; loadLiquidityPool(owner: HexString, $p: TypeTag[], /* */ loadFull?: boolean, fillCache?: boolean): Promise; } //# sourceMappingURL=implements.d.ts.map