Gelato-automations/deploy/gelato/conditions/ConditionCompareUintsFromTwoSources.deploy.js

25 lines
784 B
JavaScript
Raw Normal View History

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