import type { Abi } from "abitype"; import type { Chain } from "../../chains/types.js"; import type { ThirdwebClient } from "../../client/client.js"; import type { Prettify } from "../type-utils.js"; type FetchDeployMetadataOptions = { uri: string; client: ThirdwebClient; }; export type FetchDeployMetadataResult = Partial & CompilerMetadata; /** * Fetches the deployment metadata. * @param options - The options for fetching the deploy metadata. * @returns An object containing the compiler metadata and extended metadata. * @internal */ export declare function fetchDeployMetadata(options: FetchDeployMetadataOptions): Promise; export declare function fetchBytecodeFromCompilerMetadata(options: { compilerMetadata: FetchDeployMetadataResult; client: ThirdwebClient; chain: Chain; }): Promise<`0x${string}`>; type RawCompilerMetadata = { name: string; metadataUri: string; bytecodeUri: string; analytics?: any; version?: string; [key: string]: unknown; }; type ParsedCompilerMetadata = { name: string; abi: Abi; metadata: { compiler: { version: string; }; language: string; output: { abi: Abi; devdoc: Record; userdoc: Record; }; settings: { compilationTarget: Record; evmVersion: string; libraries: Record; optimizer: Record; remappings: string[]; }; sources: Record; [key: string]: unknown; }; info: { title?: string; author?: string; details?: string; notice?: string; }; licenses: string[]; isPartialAbi?: boolean; zk_version?: string; }; export type DynamicParams = { type: "address" | "address[]" | "bytes" | "bytes[]"; refContracts?: Array<{ contractId: string; publisherAddress: string; version: string; salt?: string; }>; paramsToEncode?: Array>; }; export type CompilerMetadata = Prettify; export type ExtendedMetadata = { name: string; version: string; metadataUri: string; bytecodeUri: string; description?: string | undefined; defaultExtensions?: { extensionName: string; extensionVersion: string; publisherAddress: string; }[] | undefined; defaultModules?: Array<{ moduleName: string; moduleVersion: string; publisherAddress: string; }> | undefined; publisher?: string | undefined; audit?: string | undefined; logo?: string | undefined; displayName?: string | undefined; readme?: string | undefined; tags?: string[] | undefined; changelog?: string | undefined; isDeployableViaFactory?: boolean | undefined; isDeployableViaProxy?: boolean | undefined; factoryDeploymentData?: { implementationAddresses: Record; implementationInitializerFunction: string; customFactoryInput?: { factoryFunction: string; params: Array<{ name: string; type: string; }>; customFactoryAddresses: Record; }; modularFactoryInput?: { hooksParamName: string; }; factoryAddresses?: Record; } | undefined; deployType?: "standard" | "autoFactory" | "customFactory"; routerType?: "none" | "plugin" | "dynamic" | "modular"; networksForDeployment?: { allNetworks?: boolean; networksEnabled?: number[]; }; constructorParams?: Record; implConstructorParams?: Record; compositeAbi?: Abi; compilers?: Record<"solc" | "zksolc" | "stylus", { evmVersion: string; compilerVersion: string; metadataUri: string; bytecodeUri: string; }[]>; externalLinks?: Array<{ name: string; url: string; }>; [key: string]: unknown; }; export {}; //# sourceMappingURL=deploy-metadata.d.ts.map