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 = "event"; export declare class AddedEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; coin_x: Stdlib.String.String; coin_y: Stdlib.String.String; x_val: U64; y_val: U64; lp_tokens: U64; constructor(proto: any, typeTag: TypeTag); static AddedEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): AddedEvent; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class CreatedEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; creator: HexString; coin_x: Stdlib.String.String; coin_y: Stdlib.String.String; constructor(proto: any, typeTag: TypeTag); static CreatedEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): CreatedEvent; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class EventsStore { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; created_handle: Stdlib.Event.EventHandle; removed_handle: Stdlib.Event.EventHandle; added_handle: Stdlib.Event.EventHandle; swapped_handle: Stdlib.Event.EventHandle; oracle_updated_handle: Stdlib.Event.EventHandle; withdrew_handle: Stdlib.Event.EventHandle; constructor(proto: any, typeTag: TypeTag); static EventsStoreParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): EventsStore; 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 OracleUpdatedEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; coin_x: Stdlib.String.String; coin_y: Stdlib.String.String; x_cumulative: U128; y_cumulative: U128; constructor(proto: any, typeTag: TypeTag); static OracleUpdatedEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): OracleUpdatedEvent; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class RemovedEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; coin_x: Stdlib.String.String; coin_y: Stdlib.String.String; x_val: U64; y_val: U64; lp_tokens: U64; constructor(proto: any, typeTag: TypeTag); static RemovedEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): RemovedEvent; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class SwappedEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; coin_x: Stdlib.String.String; coin_y: Stdlib.String.String; x_in: U64; x_out: U64; y_in: U64; y_out: U64; constructor(proto: any, typeTag: TypeTag); static SwappedEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): SwappedEvent; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare class WithdrewEvent { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; coin: Stdlib.String.String; fee: U64; constructor(proto: any, typeTag: TypeTag); static WithdrewEventParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): WithdrewEvent; static getTag(): StructTag; loadFullState(app: $.AppType): Promise; } export declare function added_event_(pool_address: HexString, x_val: U64, y_val: U64, lp_tokens: U64, $c: AptosDataCache, $p: TypeTag[]): void; export declare function created_event_(pool_address: HexString, creator: HexString, $c: AptosDataCache, $p: TypeTag[]): void; export declare function initialize_(pool_account: HexString, $c: AptosDataCache): void; export declare function removed_event_(pool_address: HexString, x_val: U64, y_val: U64, lp_tokens: U64, $c: AptosDataCache, $p: TypeTag[]): void; export declare function swapped_event_(pool_address: HexString, x_in: U64, x_out: U64, y_in: U64, y_out: U64, $c: AptosDataCache, $p: TypeTag[]): void; export declare function update_oracle_event_(pool_address: HexString, x_cumulative: U128, y_cumulative: U128, $c: AptosDataCache, $p: TypeTag[]): void; export declare function withdrew_event_(pool_address: HexString, fee: U64, $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 AddedEvent(): typeof AddedEvent; get CreatedEvent(): typeof CreatedEvent; get EventsStore(): typeof EventsStore; loadEventsStore(owner: HexString, loadFull?: boolean, fillCache?: boolean): Promise; get OracleUpdatedEvent(): typeof OracleUpdatedEvent; get RemovedEvent(): typeof RemovedEvent; get SwappedEvent(): typeof SwappedEvent; get WithdrewEvent(): typeof WithdrewEvent; } //# sourceMappingURL=event.d.ts.map