MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / main

Function main

kms/auth-eth/scripts/upgrade.ts:69–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

67
68// For backward compatibility when running the script directly
69async function main() {
70 const hre = require("hardhat");
71 try {
72 const proxyAddress = process.env.PROXY_ADDRESS;
73 const dryRun = process.env.DRY_RUN === "true";
74 const contractName = process.env.CONTRACT_NAME || "DstackKmsms";
75 await upgradeContract(hre, contractName, proxyAddress, dryRun);
76 } catch (error) {
77 console.error(error);
78 process.exitCode = 1;
79 }
80}
81
82// Only execute if directly run
83if (require.main === module) {

Callers 1

upgrade.tsFile · 0.70

Calls 1

upgradeContractFunction · 0.85

Tested by

no test coverage detected