File tree Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Expand file tree Collapse file tree 1 file changed +0
-25
lines changed Original file line number Diff line number Diff line change 44
55Added new deployment utility functions to help manage infrastructure contracts and initialization:
66
7- - ` getDeployedCloneFactoryContract ` : Get the deployed clone factory contract instance
8- - ` getDeployedInfraContract ` : Get or deploy infrastructure contracts like WETH, Forwarder etc
9- - ` getAllDefaultConstructorParamsForImplementation ` : Get default constructor params for contract implementations
107- ` getInitializeTransaction ` : Prepare initialization transaction for contract deployment
118- ` getOrDeployInfraForPublishedContract ` : Get or deploy required infrastructure for published contracts
129
1310``` typescript
1411import {
15- getDeployedCloneFactoryContract ,
16- getDeployedInfraContract ,
17- getAllDefaultConstructorParamsForImplementation ,
1812 getInitializeTransaction ,
1913 getOrDeployInfraForPublishedContract
2014} from " thirdweb" ;
2115
22- // Get deployed clone factory
23- const factory = await getDeployedCloneFactoryContract ({
24- client ,
25- chain
26- });
27-
28- // Get or deploy WETH contract
29- const weth = await getDeployedInfraContract ({
30- client ,
31- chain ,
32- contractId: " WETH9"
33- });
34-
35- // Get default constructor params
36- const params = await getAllDefaultConstructorParamsForImplementation ({
37- chain ,
38- client
39- });
40-
4116// Get initialization transaction
4217const initTx = await getInitializeTransaction ({
4318 client ,
You can’t perform that action at this time.
0 commit comments