MCPcopy Create free account
hub / github.com/dcgtc/dgrants / save

Method save

contracts/scripts/ScriptLogger.ts:65–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63 }
64
65 save(): void {
66 // conditionally create the deploy history folder
67 fs.mkdir(this.folderName, (err) => {
68 if (err && err.code !== 'EEXIST') throw err;
69 });
70
71 const allOutput = {
72 deployer: this.deployer,
73 config: this.config,
74 contracts: this.contracts,
75 actions: this.actions,
76 };
77
78 fs.writeFileSync(this.fileName, JSON.stringify(allOutput));
79 fs.writeFileSync(this.latestFileName, JSON.stringify(allOutput));
80 }
81}

Callers 2

deploy-poc.tsFile · 0.80
update-round.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected