(
deployer: SignerWithAddress,
contractName: string,
libs: { [key in string]: string },
...args: any[]
)
| 42 | } |
| 43 | |
| 44 | export async function deployContractWithDeployer( |
| 45 | deployer: SignerWithAddress, |
| 46 | contractName: string, |
| 47 | libs: { [key in string]: string }, |
| 48 | ...args: any[] |
| 49 | ): Promise<Contract> { |
| 50 | const contractFactory = await ethers.getContractFactory(contractName, { |
| 51 | signer: deployer, |
| 52 | libraries: libs, |
| 53 | }) |
| 54 | return contractFactory.deploy(...args) |
| 55 | } |
| 56 | |
| 57 | export function subnetCreationPrivileges(): SubnetCreationPrivileges { |
| 58 | const value = process.env.REGISTRY_CREATION_PRIVILEGES || 'unrestricted' |
no outgoing calls
no test coverage detected