Gets or deploys the infrastructure contracts needed for a published contract deployment
function getOrDeployInfraForPublishedContract( args: { account: Account; chain: Readonly; client: ThirdwebClient; } & { constructorParams?: Record<string, unknown>; contractId: string; publisher?: string; version?: string; },): Promise<{ cloneFactoryContract: Readonly; implementationContract: Readonly;}>;
The arguments object
let args: { account: Account; chain: Readonly; client: ThirdwebClient;} & { constructorParams?: Record<string, unknown>; contractId: string; publisher?: string; version?: string;};
let returnType: Promise<{ cloneFactoryContract: Readonly; implementationContract: Readonly;}>;
An object containing:
cloneFactoryContract: The factory contract used for creating clones
implementationContract: The deployed implementation contract