RouterETH.js 789 B

123456789101112131415161718192021222324
  1. const {getPoolsByNetwork} = require("../utils/layerzero");
  2. module.exports = async ({ethers, getNamedAccounts, deployments}) => {
  3. const {deploy} = deployments
  4. const {deployer} = await getNamedAccounts()
  5. const mirrorgateEthVault = await ethers.getContract("MirrorgateEthVault");
  6. const mirrorgateRouter = await ethers.getContract("Router");
  7. console.log("deployer", deployer);
  8. console.log("hre.network.name", hre.network.name)
  9. // fixed poolId is 101
  10. await deploy("RouterETH", {
  11. from: deployer,
  12. log: true,
  13. skipIfAlreadyDeployed: true,
  14. waitConfirmations: 1,
  15. args: [
  16. mirrorgateEthVault.address,
  17. mirrorgateRouter.address,
  18. 0
  19. ]
  20. })
  21. }
  22. module.exports.tags = ["RouterETH", "test"]