MCPcopy Create free account
hub / github.com/ChainSafe/Delorean-Protocol / deployContractWithDeployer

Function deployContractWithDeployer

contracts/scripts/util.ts:44–55  ·  view source on GitHub ↗
(
    deployer: SignerWithAddress,
    contractName: string,
    libs: { [key in string]: string },
    ...args: any[]
)

Source from the content-addressed store, hash-verified

42}
43
44export 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
57export function subnetCreationPrivileges(): SubnetCreationPrivileges {
58 const value = process.env.REGISTRY_CREATION_PRIVILEGES || 'unrestricted'

Callers 5

deployFunction · 0.90
deployFunction · 0.90
deployFunction · 0.90
deploySubnetActorDiamondFunction · 0.90
upgradeFacetOnChainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected