import * as $ from "@manahippo/move-to-ts"; import {AptosDataCache, AptosParserRepo, DummyCache, AptosLocalCache} from "@manahippo/move-to-ts"; import {U8, U64, U128} from "@manahippo/move-to-ts"; import {u8, u64, u128} from "@manahippo/move-to-ts"; import {TypeParamDeclType, FieldDeclType} from "@manahippo/move-to-ts"; import {AtomicTypeTag, StructTag, TypeTag, VectorTag, SimpleStructTag} from "@manahippo/move-to-ts"; import {OptionTransaction} from "@manahippo/move-to-ts"; import {HexString, AptosClient, AptosAccount, TxnBuilderTypes, Types} from "aptos"; export const packageName = "lp"; export const moduleAddress = new HexString("0x2fe3016dd04ef69d5a440b5879a1cc8f1ea4297f6eeaceffc92d0161288a5045"); export const moduleName = "lp_coin"; export class LP { static moduleAddress = moduleAddress; static moduleName = moduleName; __app: $.AppType | null = null; static structName: string = "LP"; static typeParameters: TypeParamDeclType[] = [ { name: "X", isPhantom: true }, { name: "Y", isPhantom: true } ]; static fields: FieldDeclType[] = [ ]; constructor(proto: any, public typeTag: TypeTag) { } static LPParser(data:any, typeTag: TypeTag, repo: AptosParserRepo) : LP { const proto = $.parseStructProto(data, typeTag, repo, LP); return new LP(proto, typeTag); } static makeTag($p: TypeTag[]): StructTag { return new StructTag(moduleAddress, moduleName, "LP", $p); } async loadFullState(app: $.AppType) { this.__app = app; } } export function loadParsers(repo: AptosParserRepo) { repo.addParser("0x2fe3016dd04ef69d5a440b5879a1cc8f1ea4297f6eeaceffc92d0161288a5045::lp_coin::LP", LP.LPParser); } export class App { constructor( public client: AptosClient, public repo: AptosParserRepo, public cache: AptosLocalCache, ) { } get moduleAddress() {{ return moduleAddress; }} get moduleName() {{ return moduleName; }} get LP() { return LP; } }