Skip to content

Commit

Permalink
chore: linter fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kupermind committed Apr 9, 2024
1 parent 3b25590 commit c802cb9
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ async function main() {
const fxChildTunnelABI = parsedFile["abi"];
const fxChildTunnel = new ethers.Contract(fxChildTunnelAddress, fxChildTunnelABI, mumbaiProvider);
const verifyFxChildAddress = await fxChildTunnel.fxChild();

const fxChildAddress = "0xCf73231F28B7331BBe3124B907840A94851f9f11";
if (fxChildAddress == verifyFxChildAddress) {
console.log("Successfully connected to the test fxChildTunnel contract");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,38 +18,15 @@ async function main() {
});

const fs = require("fs");
// FxRoot address on goerli
const fxRootAddress = "0x3d1d3E34f7fB6D26245E6640E1c50710eFFf15bA";
const fxRootJSON = "artifacts/lib/fx-portal/contracts/FxRoot.sol/FxRoot.json";
let contractFromJSON = fs.readFileSync(fxRootJSON, "utf8");
let parsedFile = JSON.parse(contractFromJSON);
const fxRootABI = parsedFile["abi"];
const fxRoot = new ethers.Contract(fxRootAddress, fxRootABI, goerliProvider);

// FxChild address on mumbai
const fxChildAddress = "0xCf73231F28B7331BBe3124B907840A94851f9f11";
const fxChildJSON = "artifacts/lib/fx-portal/contracts/FxChild.sol/FxChild.json";
contractFromJSON = fs.readFileSync(fxChildJSON, "utf8");
parsedFile = JSON.parse(contractFromJSON);
const fxChildABI = parsedFile["abi"];
const fxChild = new ethers.Contract(fxChildAddress, fxChildABI, mumbaiProvider);

// ChildMockERC20 address on mumbai
const mockChildERC20Address = "0xeB49bE5DF00F74bd240DE4535DDe6Bc89CEfb994";
const mockChildERC20JSON = "artifacts/contracts/bridges/test/ChildMockERC20.sol/ChildMockERC20.json";
contractFromJSON = fs.readFileSync(mockChildERC20JSON, "utf8");
parsedFile = JSON.parse(contractFromJSON);
let contractFromJSON = fs.readFileSync(mockChildERC20JSON, "utf8");
let parsedFile = JSON.parse(contractFromJSON);
const mockChildERC20ABI = parsedFile["abi"];
const mockChildERC20 = new ethers.Contract(mockChildERC20Address, mockChildERC20ABI, mumbaiProvider);

// BridgedERC20 address on goerli
const bridgedERC20Address = "0x88e4ad16Bd4953Bbe74589942b368969037a7d81";
const bridgedERC20JSON = "artifacts/contracts/bridges/BridgedERC20.sol/BridgedERC20.json";
contractFromJSON = fs.readFileSync(bridgedERC20JSON, "utf8");
parsedFile = JSON.parse(contractFromJSON);
const bridgedERC20ABI = parsedFile["abi"];
const bridgedERC20 = new ethers.Contract(bridgedERC20Address, bridgedERC20ABI, goerliProvider);

// Test deployed FxERC20ChildTunnel address on mumbai
const fxERC20ChildTunnelAddress = "0x1d333b46dB6e8FFd271b6C2D2B254868BD9A2dbd";
const fxERC20ChildTunnelJSON = "artifacts/contracts/bridges/FxERC20ChildTunnel.sol/FxERC20ChildTunnel.json";
Expand All @@ -58,6 +35,9 @@ async function main() {
const fxERC20ChildTunnelABI = parsedFile["abi"];
const fxERC20ChildTunnel = new ethers.Contract(fxERC20ChildTunnelAddress, fxERC20ChildTunnelABI, mumbaiProvider);
const verifyFxChildAddress = await fxERC20ChildTunnel.fxChild();

// FxChild address on mumbai
const fxChildAddress = "0xCf73231F28B7331BBe3124B907840A94851f9f11";
if (fxChildAddress == verifyFxChildAddress) {
console.log("Successfully connected to the test fxERC20ChildTunnel contract");
}
Expand All @@ -70,6 +50,9 @@ async function main() {
const fxERC20RootTunnelABI = parsedFile["abi"];
const fxERC20RootTunnel = new ethers.Contract(fxERC20RootTunnelAddress, fxERC20RootTunnelABI, goerliProvider);
const verifyFxRootAddress = await fxERC20RootTunnel.fxRoot();

// FxRoot address on goerli
const fxRootAddress = "0x3d1d3E34f7fB6D26245E6640E1c50710eFFf15bA";
if (fxRootAddress == verifyFxRootAddress) {
console.log("Successfully connected to the test fxERC20RootTunnel contract");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ async function main() {
const useLedger = parsedData.useLedger;
const derivationPath = parsedData.derivationPath;
const providerName = "sepolia";
const gasPriceInGwei = parsedData.gasPriceInGwei;
let EOA;

const provider = await ethers.providers.getDefaultProvider(providerName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ async function main() {
const useLedger = parsedData.useLedger;
const derivationPath = parsedData.derivationPath;
const providerName = parsedData.providerName;
const gasPriceInGwei = parsedData.gasPriceInGwei;
let EOA;

const provider = new ethers.providers.JsonRpcProvider(parsedData.networkURL);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ async function main() {
const useLedger = parsedData.useLedger;
const derivationPath = parsedData.derivationPath;
const providerName = "sepolia";
const gasPriceInGwei = parsedData.gasPriceInGwei;
let EOA;

const provider = await ethers.providers.getDefaultProvider(providerName);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ async function main() {
const useLedger = parsedData.useLedger;
const derivationPath = parsedData.derivationPath;
const providerName = parsedData.providerName;
const gasPriceInGwei = parsedData.gasPriceInGwei;
let EOA;

const provider = new ethers.providers.JsonRpcProvider(parsedData.networkURL);
Expand Down
2 changes: 0 additions & 2 deletions scripts/proposals/proposal_01_goerli_sync_mainnet.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ async function main() {
const globalsFile = "globals.json";
const dataFromJSON = fs.readFileSync(globalsFile, "utf8");
let parsedData = JSON.parse(dataFromJSON);
const providerName = parsedData.providerName;

const provider = await ethers.providers.getDefaultProvider(providerName);
const signers = await ethers.getSigners();

// EOA address
Expand Down
2 changes: 0 additions & 2 deletions scripts/proposals/proposal_04_CM_guard.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ async function main() {
const dataFromJSON = fs.readFileSync(globalsFile, "utf8");
let parsedData = JSON.parse(dataFromJSON);

const timelockAddress = parsedData.timelockAddress;
const treasuryAddress = parsedData.treasuryAddress;
const depositoryAddress = parsedData.depositoryAddress;
const serviceRegistryTokenUtilityAddress = "0x3Fb926116D454b95c669B6Bf2E7c3bad8d19affA";
Expand All @@ -20,7 +19,6 @@ async function main() {
const homeMediatorAddress = "0x15bd56669F57192a97dF41A2aa8f4403e9491776";
const fxRootAddress = parsedData.fxRootAddress;
const fxGovernorTunnelAddress = "0x9338b5153AE39BB89f50468E608eD9d764B755fD";
const CMAddress = parsedData.CM;



Expand Down
2 changes: 0 additions & 2 deletions scripts/proposals/proposal_04_CM_guard_goerli.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ async function main() {
const dataFromJSON = fs.readFileSync(globalsFile, "utf8");
let parsedData = JSON.parse(dataFromJSON);

const timelockAddress = parsedData.timelockAddress;
const treasuryAddress = parsedData.treasuryAddress;
const depositoryAddress = "0x5FDc466f4A7547c876eF40CD30fFA2A89F1EcDE7";
const serviceRegistryTokenUtilityAddress = "0x6d9b08701Af43D68D991c074A27E4d90Af7f2276";
Expand All @@ -21,7 +20,6 @@ async function main() {
const homeMediatorAddress = "0x670Ac235EE13C0B2a5065282bBB0c61cfB354592";
const fxRootAddress = "0x3d1d3E34f7fB6D26245E6640E1c50710eFFf15bA";
const fxGovernorTunnelAddress = "0x17806E2a12d5E0F48C9803cd397DB3F044DA3b77";
const CMAddress = parsedData.CM;



Expand Down
1 change: 0 additions & 1 deletion scripts/proposals/proposal_05_CM_guard.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ async function main() {
const multisig = await ethers.getContractAt("GnosisSafe", parsedData.CM);
const nonce = await multisig.nonce();

const timelockAddress = parsedData.timelockAddress;
const guardCMAddress = parsedData.guardCMAddress;

// Construct the payload for the multisig to swap the guard by the Timelock
Expand Down

0 comments on commit c802cb9

Please sign in to comment.