Gelato-automations/deploy/mocks/FGelatoDebtBridgeMock.deploy.js

28 lines
833 B
JavaScript
Raw Normal View History

2020-11-16 16:55:04 +00:00
const { sleep } = require("@gelatonetwork/core");
module.exports = async (hre) => {
if (hre.network.name === "mainnet") {
console.log(
"Deploying FGelatoDebtBridgeMock to mainnet. Hit ctrl + c to abort"
);
await sleep(6000);
}
2020-11-16 16:55:04 +00:00
const { deployments } = hre;
const { deploy } = deployments;
const { deployer } = await hre.getNamedAccounts();
// the following will only deploy "FGelatoDebtBridgeMock"
// if the contract was never deployed or if the code changed since last deployment
await deploy("FGelatoDebtBridgeMock", {
from: deployer,
gasPrice: hre.network.config.gasPrice,
log: hre.network.name === "mainnet" ? true : false,
});
};
module.exports.skip = async (hre) => {
return hre.network.name === "mainnet" ? true : false;
};
module.exports.tags = ["FGelatoDebtBridgeMock"];