import * as $ from '@manahippo/move-to-ts'; import { AptosDataCache, AptosParserRepo, AptosLocalCache } from '@manahippo/move-to-ts'; import { U8, 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, Types } from 'aptos'; import * as Stdlib from '../stdlib'; import * as Avl_queue from './avl_queue'; import * as Tablist from './tablist'; export declare const packageName = "Econia"; export declare const moduleAddress: HexString; export declare const moduleName = "market"; export declare class MakerEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; market_id: U64; side: boolean; market_order_id: U128; user: HexString; custodian_id: U64; type: U8; size: U64; price: U64; constructor(proto: any, typeTag: TypeTag); static MakerEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): MakerEvent; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class Order { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; size: U64; price: U64; user: HexString; custodian_id: U64; order_access_key: U64; constructor(proto: any, typeTag: TypeTag); static OrderParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): Order; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class OrderBook { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; base_type: Stdlib.Type_info.TypeInfo; base_name_generic: Stdlib.String.String; quote_type: Stdlib.Type_info.TypeInfo; lot_size: U64; tick_size: U64; min_size: U64; underwriter_id: U64; asks: Avl_queue.AVLqueue; bids: Avl_queue.AVLqueue; counter: U64; maker_events: Stdlib.Event.EventHandle; taker_events: Stdlib.Event.EventHandle; constructor(proto: any, typeTag: TypeTag); static OrderBookParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): OrderBook; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class OrderBooks { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; map: Tablist.Tablist; constructor(proto: any, typeTag: TypeTag); static OrderBooksParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): OrderBooks; 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 getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class OrderView { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; market_id: U64; side: boolean; order_id: U128; remaining_size: U64; price: U64; user: HexString; custodian_id: U64; constructor(proto: any, typeTag: TypeTag); static OrderViewParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): OrderView; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class OrdersView { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; asks: OrderView[]; bids: OrderView[]; constructor(proto: any, typeTag: TypeTag); static OrdersViewParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): OrdersView; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class TakerEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; market_id: U64; side: boolean; market_order_id: U128; maker: HexString; custodian_id: U64; size: U64; price: U64; constructor(proto: any, typeTag: TypeTag); static TakerEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): TakerEvent; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare function get_open_orders_paginated_(market_id: U64, _n_asks_to_index_max: U64, _n_bids_to_index_max: U64, _starting_ask_order_id: U128, _starting_bid_order_id: U128, $c: AptosDataCache): [OrdersView, U128, U128]; export declare function buildPayload_get_open_orders_paginated(market_id: U64, _n_asks_to_index_max: U64, _n_bids_to_index_max: U64, _starting_ask_order_id: U128, _starting_bid_order_id: U128): Types.ViewRequest; export declare function view_get_open_orders_paginated(client: AptosClient, repo: AptosParserRepo, market_id: U64, _n_asks_to_index_max: U64, _n_bids_to_index_max: U64, _starting_ask_order_id: U128, _starting_bid_order_id: U128, $p: TypeTag[], ledger_version?: string): Promise<[OrdersView, U128, U128]>; export declare function swap_coins_(_market_id: U64, _integrator: HexString, _direction: boolean, _min_base: U64, _max_base: U64, _min_quote: U64, _max_quote: U64, _limit_price: U64, _base_coins: Stdlib.Coin.Coin, _quote_coins: Stdlib.Coin.Coin, $c: AptosDataCache, $p: TypeTag[]): [Stdlib.Coin.Coin, Stdlib.Coin.Coin, U64, 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 MakerEvent(): typeof MakerEvent; get Order(): typeof Order; get OrderBook(): typeof OrderBook; get OrderBooks(): typeof OrderBooks; loadOrderBooks(owner: HexString, loadFull?: boolean, fillCache?: boolean, query?: { ledgerVersion?: number; }): Promise; get OrderView(): typeof OrderView; get OrdersView(): typeof OrdersView; get TakerEvent(): typeof TakerEvent; payload_get_open_orders_paginated(market_id: U64, _n_asks_to_index_max: U64, _n_bids_to_index_max: U64, _starting_ask_order_id: U128, _starting_bid_order_id: U128): Types.ViewRequest; get_open_orders_paginated(market_id: U64, _n_asks_to_index_max: U64, _n_bids_to_index_max: U64, _starting_ask_order_id: U128, _starting_bid_order_id: U128, 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_open_orders_paginated(market_id: U64, _n_asks_to_index_max: U64, _n_bids_to_index_max: U64, _starting_ask_order_id: U128, _starting_bid_order_id: U128, $p: TypeTag[], ledger_version?: string): Promise<[OrdersView, $.U128, $.U128]>; } //# sourceMappingURL=market.d.ts.map