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

Function saveSubnetActor

contracts/hardhat.config.ts:100–114  ·  view source on GitHub ↗
(
    deployments,
    updatedFacets: { [key in string]: string },
)

Source from the content-addressed store, hash-verified

98}
99
100async function saveSubnetActor(
101 deployments,
102 updatedFacets: { [key in string]: string },
103) {
104 const subnetActorJsonPath = `${process.cwd()}/subnet.actor-${
105 deployments.SubnetActorDiamond
106 }.json`
107 for (const facetIndex in deployments.Facets) {
108 const facetName = deployments.Facets[facetIndex].name
109 if (updatedFacets[facetName]) {
110 deployments.Facets[facetIndex].address = updatedFacets[facetName]
111 }
112 }
113 fs.writeFileSync(subnetActorJsonPath, JSON.stringify(deployments))
114}
115
116async function getSubnetRegistry(
117 env: string,

Callers 1

hardhat.config.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected