import { AptosDataCache, AptosParserRepo, AptosLocalCache } from "@manahippo/move-to-ts"; import { U64 } from "@manahippo/move-to-ts"; import { TypeTag } from "@manahippo/move-to-ts"; import { OptionTransaction } from "@manahippo/move-to-ts"; import { HexString, AptosClient, AptosAccount, TxnBuilderTypes, Types } from "aptos"; import * as Stdlib from "../stdlib"; export declare const packageName = "swap"; export declare const moduleAddress: HexString; export declare const moduleName = "interface"; export declare const ERR_COIN_OUT_NUM_LESS_THAN_EXPECTED_MINIMUM: U64; export declare const ERR_EMERGENCY: U64; export declare const ERR_INSUFFICIENT_X_AMOUNT: U64; export declare const ERR_INSUFFICIENT_Y_AMOUNT: U64; export declare const ERR_MUST_BE_ORDER: U64; export declare const ERR_NOT_COIN: U64; export declare const ERR_THE_SAME_COIN: U64; export declare function add_liquidity_(account: HexString, coin_x_val: U64, coin_x_val_min: U64, coin_y_val: U64, coin_y_val_min: U64, $c: AptosDataCache, $p: TypeTag[]): void; export declare function buildPayload_add_liquidity(coin_x_val: U64, coin_x_val_min: U64, coin_y_val: U64, coin_y_val_min: U64, $p: TypeTag[], /* */ isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload; export declare function calc_optimal_coin_values_(x_desired: U64, y_desired: U64, $c: AptosDataCache, $p: TypeTag[]): [U64, U64]; export declare function compare_($c: AptosDataCache, $p: TypeTag[]): Stdlib.Comparator.Result; export declare function initialize_swap_(swap_admin: HexString, controller: HexString, beneficiary: HexString, $c: AptosDataCache): void; export declare function buildPayload_initialize_swap(controller: HexString, beneficiary: HexString, isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload; export declare function is_order_($c: AptosDataCache, $p: TypeTag[]): boolean; export declare function register_pool_(account: HexString, $c: AptosDataCache, $p: TypeTag[]): void; export declare function buildPayload_register_pool($p: TypeTag[], /* */ isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload; export declare function remove_liquidity_(account: HexString, lp_val: U64, min_x_out_val: U64, min_y_out_val: U64, $c: AptosDataCache, $p: TypeTag[]): void; export declare function buildPayload_remove_liquidity(lp_val: U64, min_x_out_val: U64, min_y_out_val: U64, $p: TypeTag[], /* */ isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload; export declare function swap_(account: HexString, coin_val: U64, coin_out_min_val: U64, $c: AptosDataCache, $p: TypeTag[]): void; export declare function buildPayload_swap(coin_val: U64, coin_out_min_val: U64, $p: TypeTag[], /* */ isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload; 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; payload_add_liquidity(coin_x_val: U64, coin_x_val_min: U64, coin_y_val: U64, coin_y_val_min: U64, $p: TypeTag[], /* */ isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload; add_liquidity(_account: AptosAccount, coin_x_val: U64, coin_x_val_min: U64, coin_y_val: U64, coin_y_val_min: U64, $p: TypeTag[], /* */ option?: OptionTransaction, _isJSON?: boolean): Promise; payload_initialize_swap(controller: HexString, beneficiary: HexString, isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload; initialize_swap(_account: AptosAccount, controller: HexString, beneficiary: HexString, option?: OptionTransaction, _isJSON?: boolean): Promise; payload_register_pool($p: TypeTag[], /* */ isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload; register_pool(_account: AptosAccount, $p: TypeTag[], /* */ option?: OptionTransaction, _isJSON?: boolean): Promise; payload_remove_liquidity(lp_val: U64, min_x_out_val: U64, min_y_out_val: U64, $p: TypeTag[], /* */ isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload; remove_liquidity(_account: AptosAccount, lp_val: U64, min_x_out_val: U64, min_y_out_val: U64, $p: TypeTag[], /* */ option?: OptionTransaction, _isJSON?: boolean): Promise; payload_swap(coin_val: U64, coin_out_min_val: U64, $p: TypeTag[], /* */ isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload; swap(_account: AptosAccount, coin_val: U64, coin_out_min_val: U64, $p: TypeTag[], /* */ option?: OptionTransaction, _isJSON?: boolean): Promise; } //# sourceMappingURL=interface.d.ts.map