mirror of
https://github.com/Instadapp/Gelato-automations.git
synced 2024-07-29 22:28:07 +00:00
29 lines
905 B
JavaScript
29 lines
905 B
JavaScript
|
const { sleep } = require("@gelatonetwork/core");
|
||
|
|
||
|
module.exports = async (hre) => {
|
||
|
if (hre.network.name === "mainnet") {
|
||
|
console.log(
|
||
|
"\n\n Deploying ProviderModuleDSA 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 "ConditionMakerVaultUnsafe"
|
||
|
// if the contract was never deployed or if the code changed since last deployment
|
||
|
await deploy("ProviderModuleDSA", {
|
||
|
from: deployer,
|
||
|
args: [hre.network.config.InstaIndex, hre.network.config.GelatoCore],
|
||
|
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 = ["ProviderModuleDSA"];
|