mirror of
https://github.com/Instadapp/Gelato-automations.git
synced 2024-07-29 22:28:07 +00:00
36 lines
1010 B
JavaScript
36 lines
1010 B
JavaScript
const hre = require("hardhat");
|
|
const {ethers} = hre;
|
|
|
|
const getContracts = require("./Common-Contracts.helper");
|
|
|
|
async function getAllContracts() {
|
|
let dsaProviderModule;
|
|
let connectGelatoData;
|
|
let contracts = await getContracts();
|
|
|
|
const ConnectGelatoData = await ethers.getContractFactory(
|
|
"ConnectGelatoDataForFullRefinance"
|
|
);
|
|
connectGelatoData = await ConnectGelatoData.deploy(
|
|
(await contracts.instaConnectors.connectorLength()).add(1),
|
|
contracts.connectGelatoProviderPayment.address
|
|
);
|
|
await connectGelatoData.deployed();
|
|
|
|
const ProviderModuleDsa = await ethers.getContractFactory(
|
|
"ProviderModuleDsaFromMakerToMaker"
|
|
);
|
|
dsaProviderModule = await ProviderModuleDsa.deploy(
|
|
hre.network.config.GelatoCore,
|
|
contracts.connectGelatoProviderPayment.address
|
|
);
|
|
await dsaProviderModule.deployed();
|
|
|
|
contracts.dsaProviderModule = dsaProviderModule;
|
|
contracts.connectGelatoData = connectGelatoData;
|
|
|
|
return contracts;
|
|
}
|
|
|
|
module.exports = getAllContracts;
|