import * as $ from "@manahippo/move-to-ts"; import { AptosDataCache, AptosParserRepo, AptosLocalCache } from "@manahippo/move-to-ts"; import { U8, U64 } from "@manahippo/move-to-ts"; import { TypeParamDeclType, FieldDeclType } from "@manahippo/move-to-ts"; import { StructTag, 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 = "init"; export declare const moduleAddress: HexString; export declare const moduleName = "init"; export declare const ERR_NOT_ENOUGH_PERMISSIONS: U64; export declare class CapabilityStorage { typeTag: TypeTag; static moduleAddress: HexString; static moduleName: string; __app: $.AppType | null; static structName: string; static typeParameters: TypeParamDeclType[]; static fields: FieldDeclType[]; signer_cap: Stdlib.Account.SignerCapability; constructor(proto: any, typeTag: TypeTag); static CapabilityStorageParser(data: any, typeTag: TypeTag, repo: AptosParserRepo): CapabilityStorage; 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 function initialize_swap_(swap_admin: HexString, metadata: U8[], code: U8[], $c: AptosDataCache): void; export declare function buildPayload_initialize_swap(metadata: U8[], code: U8[], isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload; export declare function retrieve_signer_cap_(swap_admin: HexString, $c: AptosDataCache): Stdlib.Account.SignerCapability; 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 CapabilityStorage(): typeof CapabilityStorage; loadCapabilityStorage(owner: HexString, loadFull?: boolean, fillCache?: boolean): Promise; payload_initialize_swap(metadata: U8[], code: U8[], isJSON?: boolean): TxnBuilderTypes.TransactionPayloadEntryFunction | Types.TransactionPayload_EntryFunctionPayload; initialize_swap(_account: AptosAccount, metadata: U8[], code: U8[], option?: OptionTransaction, _isJSON?: boolean): Promise; } //# sourceMappingURL=init.d.ts.map