Gelato-automations/test/helpers/setups/Contracts-For-Full-Refinancing.helper.js
2020-11-03 14:39:45 +01:00

25 lines
674 B
JavaScript

const hre = require("hardhat");
const {ethers} = hre;
const getContracts = require("./Common-Contracts.helper");
async function getAllContracts(providerAddress) {
let connectGelatoData;
let contracts = await getContracts(providerAddress);
const ConnectGelatoData = await ethers.getContractFactory(
"ConnectGelatoDataForFullRefinance"
);
connectGelatoData = await ConnectGelatoData.deploy(
(await contracts.instaConnectors.connectorLength()).add(1),
contracts.connectGelatoProviderPayment.address
);
await connectGelatoData.deployed();
contracts.connectGelatoData = connectGelatoData;
return contracts;
}
module.exports = getAllContracts;