Skip to content

Commit 17b619f

Browse files
committed
docs: Add comprehensive JSDoc for getOrDeployInfraForPublishedContract
1 parent 58e55f8 commit 17b619f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

packages/thirdweb/src/contract/deployment/utils/bootstrap.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,18 @@ import {
2222
} from "./infra.js";
2323

2424
/**
25+
* Gets or deploys the infrastructure contracts needed for a published contract deployment
26+
* @param args - The arguments object
27+
* @param args.chain - The blockchain network configuration
28+
* @param args.client - The ThirdwebClient instance
29+
* @param args.account - The account performing the deployment
30+
* @param args.contractId - The ID of the contract to deploy
31+
* @param args.constructorParams - Optional constructor parameters for the implementation contract
32+
* @param args.publisher - Optional publisher address, defaults to thirdweb
33+
* @param args.version - Optional version of the contract to deploy
34+
* @returns An object containing:
35+
* - cloneFactoryContract: The factory contract used for creating clones
36+
* - implementationContract: The deployed implementation contract
2537
* @internal
2638
*/
2739
export async function getOrDeployInfraForPublishedContract(

0 commit comments

Comments
 (0)