2021-12-10 11:44:36 +00:00
|
|
|
import hre from "hardhat";
|
2021-12-04 13:08:16 +00:00
|
|
|
const { ethers, deployments, getUnnamedAccounts } = hre;
|
|
|
|
const { deploy } = deployments;
|
|
|
|
|
|
|
|
async function main() {
|
|
|
|
const deployer = (await getUnnamedAccounts())[0];
|
2021-12-10 19:10:45 +00:00
|
|
|
const connector = "// Add connector name over here Eg: ConnectV2InstaPoolV3Avalanche"
|
2021-12-04 13:08:16 +00:00
|
|
|
|
|
|
|
const connectorInstance = await deploy(connector, {
|
|
|
|
from: deployer,
|
|
|
|
});
|
|
|
|
console.log(`${connector} deployed: `, connectorInstance.address);
|
|
|
|
|
|
|
|
await hre.run("sourcify", {
|
|
|
|
address: connectorInstance.address,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
main()
|
|
|
|
.then(() => process.exit(0))
|
|
|
|
.catch((error) => {
|
|
|
|
console.error(error);
|
|
|
|
process.exit(1);
|
|
|
|
});
|