Gelato-automations/test/helpers/setups/Contracts-For-Full-Refinancing.helper.js

25 lines
674 B
JavaScript
Raw Normal View History

2020-10-30 17:35:11 +00:00
const hre = require("hardhat");
const {ethers} = hre;
const getContracts = require("./Common-Contracts.helper");
async function getAllContracts(providerAddress) {
let connectGelatoData;
let contracts = await getContracts(providerAddress);
2020-10-30 17:35:11 +00:00
2020-11-02 10:51:49 +00:00
const ConnectGelatoData = await ethers.getContractFactory(
"ConnectGelatoDataForFullRefinance"
2020-10-30 17:35:11 +00:00
);
2020-11-02 10:51:49 +00:00
connectGelatoData = await ConnectGelatoData.deploy(
(await contracts.instaConnectors.connectorLength()).add(1),
2020-10-30 17:35:11 +00:00
contracts.connectGelatoProviderPayment.address
);
await connectGelatoData.deployed();
2020-10-30 17:35:11 +00:00
contracts.connectGelatoData = connectGelatoData;
2020-10-30 17:35:11 +00:00
return contracts;
}
module.exports = getAllContracts;