From 6dc7910a2e2535381d1a0d880c26a66a9a8306ab Mon Sep 17 00:00:00 2001 From: David Asamonye Date: Mon, 29 Apr 2024 13:41:29 +0100 Subject: [PATCH] added reset mainnet script --- package.json | 1 + scripts/reset_mainnet.js | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 58f48a9..2378352 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "deploy": "hardhat run --network fuji scripts/deploy_vault_v1.js ", "upgrade": "hardhat run --network fuji scripts/upgrade_vault.js ", "deploy-mainnet": "hardhat run --network mainnet scripts/deploy_mainnet_v1.js", + "reset-mainnet": "hardhat run --network mainnet scripts/reset_mainnet.js", "upgrade-mainnet": "hardhat run --network mainnet scripts/upgrade_vault_mainnet.js ", "transfer-ownership": "hardhat run --network fuji scripts/transfer-ownership.js", "propose-upgrade": "hardhat run --network fuji scripts/propose_upgrade.js", diff --git a/scripts/reset_mainnet.js b/scripts/reset_mainnet.js index 5afd6dc..e383b4f 100644 --- a/scripts/reset_mainnet.js +++ b/scripts/reset_mainnet.js @@ -5,12 +5,8 @@ const {MAINNET_MULTISIG, DEFENDER_API_KEY, DEFENDER_API_SECRET, MAINNET_DATAFEED const client = new AdminClient({ apiKey: DEFENDER_API_KEY, apiSecret: DEFENDER_API_SECRET }); -let ZTokenAbi = require('../contracts/abis/Ztoken.json'); -let OracleAbi = require('../contracts/abis/Oracle.json'); let VaultAbi = require('../contracts/abis/Vault.json'); -const datafeed = MAINNET_DATAFEED; - const MULTISIG = MAINNET_MULTISIG; const collateral = "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"; @@ -91,7 +87,7 @@ async function main() { // addContract(zZAR, 'zZAR', JSON.stringify(ZTokenAbi)); // addContract(zXAF, 'zXAF', JSON.stringify(ZTokenAbi)); // addContract(Oracle, 'Oracle', JSON.stringify(OracleAbi)); - addContract(vault.target, 'Vault', JSON.stringify(VaultAbi)); + addContract(vault.target, 'Mainnet Vault', JSON.stringify(VaultAbi)); const filePath = 'keystore.json';