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 = "ssswap2"; export declare const ERR_INSUFFICIENT_ACTIVE_X: U64; export declare const ERR_INSUFFICIENT_ACTIVE_Y: U64; export declare const MILLION: U64; export declare class SSTradingPair { 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; protocol_fee_x: Stdlib.Coin.Coin; protocol_fee_y: Stdlib.Coin.Coin; concentration: U64; big_k: U128; target_x: U64; cumulative_volume: U64; mult_x: U64; mult_y: U64; fee_millionth: U64; rebate_percentage: U64; protocol_fee_share_thousandth: U64; x_mint_cap: Stdlib.Coin.MintCapability; x_burn_cap: Stdlib.Coin.BurnCapability; x_freeze_cap: Stdlib.Coin.FreezeCapability; y_mint_cap: Stdlib.Coin.MintCapability; y_burn_cap: Stdlib.Coin.BurnCapability; y_freeze_cap: Stdlib.Coin.FreezeCapability; constructor(proto: any, typeTag: TypeTag); static SSTradingPairParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): SSTradingPair; 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(input_x: U64): [$.U64, $.U64, $.U64]; quote_y_to_x(input_y: U64): [$.U64, $.U64, $.U64]; } export declare class SSXLP { 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 SSXLPParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): SSXLP; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare class SSYLP { 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 SSYLPParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): SSYLP; static makeTag($p: TypeTag[]): StructTag; loadFullState(app: $.AppType): Promise; } export declare function get_pool_values_(pair: SSTradingPair, $c: AptosDataCache, $p: TypeTag[]): [U64, U64, U64, U64]; export declare function quote_x_to_y_(pair: SSTradingPair, input_x: U64, $c: AptosDataCache, $p: TypeTag[]): [U64, U64, U64]; export declare function quote_y_to_x_(pair: SSTradingPair, input_y: U64, $c: AptosDataCache, $p: TypeTag[]): [U64, U64, U64]; export declare function swap_x_to_y_(_coin_x: Stdlib.Coin.Coin, $c: AptosDataCache, $p: TypeTag[]): Stdlib.Coin.Coin; export declare function swap_y_to_x_(_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 SSTradingPair(): typeof SSTradingPair; loadSSTradingPair(owner: HexString, $p: TypeTag[], loadFull?: boolean, fillCache?: boolean, query?: { ledgerVersion?: number; }): Promise; get SSXLP(): typeof SSXLP; get SSYLP(): typeof SSYLP; } //# sourceMappingURL=ssswap2.d.ts.map