Skip to content

Commit

Permalink
added reset mainnet script
Browse files Browse the repository at this point in the history
  • Loading branch information
David405 committed Apr 29, 2024
1 parent ab3f11d commit 6dc7910
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 1 addition & 5 deletions scripts/reset_mainnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down Expand Up @@ -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';

Expand Down

0 comments on commit 6dc7910

Please sign in to comment.