mirror of
https://github.com/Instadapp/dsa-connectors.git
synced 2024-07-29 22:37:00 +00:00
25 lines
594 B
TypeScript
25 lines
594 B
TypeScript
|
import * as hre from "hardhat";
|
||
|
const { ethers, deployments, getUnnamedAccounts } = hre;
|
||
|
const { deploy } = deployments;
|
||
|
|
||
|
async function main() {
|
||
|
const deployer = (await getUnnamedAccounts())[0];
|
||
|
const connector = "ConnectV2InstaPoolV3Avalanche";
|
||
|
|
||
|
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);
|
||
|
});
|