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

Method constructor

contracts/scripts/ScriptLogger.ts:26–31  ·  view source on GitHub ↗
(readonly deployName: string, readonly network: string, readonly folder: string = './deploy-history')

Source from the content-addressed store, hash-verified

24 actions: Record<string, string> = {};
25
26 constructor(readonly deployName: string, readonly network: string, readonly folder: string = './deploy-history') {
27 const now = new Date().toISOString();
28 this.folderName = folder;
29 this.fileName = `${this.folderName}/${deployName}-${network}-${now}.json`;
30 this.latestFileName = `${this.folderName}/${deployName}-${network}-latest.json`;
31 }
32
33 async confirmContinue(): Promise<void> {
34 console.log(`Deploying to: ${this.network}`);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected