2021-11-29 17:21:11 +00:00
|
|
|
import { ethers } from "hardhat";
|
|
|
|
import { deployConnector } from "./deployConnector";
|
|
|
|
|
|
|
|
async function main() {
|
|
|
|
const accounts = await ethers.getSigners();
|
|
|
|
|
2021-12-05 20:44:26 +00:00
|
|
|
const connectMapping: Record<string, string> = {
|
2021-12-13 19:31:37 +00:00
|
|
|
"1INCH-A": "ConnectV2OneInch",
|
2021-11-29 17:21:11 +00:00
|
|
|
"1INCH-B": "ConnectV2OneProto",
|
|
|
|
"AAVE-V1-A": "ConnectV2AaveV1",
|
|
|
|
"AAVE-V2-A": "ConnectV2AaveV2",
|
|
|
|
"AUTHORITY-A": "ConnectV2Auth",
|
|
|
|
"BASIC-A": "ConnectV2Basic",
|
|
|
|
"COMP-A": "ConnectV2COMP",
|
|
|
|
"COMPOUND-A": "ConnectV2Compound",
|
|
|
|
"DYDX-A": "ConnectV2Dydx",
|
|
|
|
"FEE-A": "ConnectV2Fee",
|
|
|
|
"GELATO-A": "ConnectV2Gelato",
|
|
|
|
"MAKERDAO-A": "ConnectV2Maker",
|
|
|
|
"UNISWAP-A": "ConnectV2UniswapV2",
|
2021-12-15 12:43:58 +00:00
|
|
|
"QUICKSWAP-A": "ConnectV2QuickswapPolygon"
|
2021-12-13 19:20:26 +00:00
|
|
|
"UniswapV3-v1" : "ConnectV2UniswapV3Polygon",
|
|
|
|
"Uniswap-V3-Staker-v1.1" : "ConnectV2UniswapV3StakerPolygon"
|
2021-11-29 17:21:11 +00:00
|
|
|
};
|
|
|
|
|
2021-12-05 20:44:26 +00:00
|
|
|
const addressMapping: Record<string, string> = {};
|
2021-11-29 17:21:11 +00:00
|
|
|
|
|
|
|
for (const key in connectMapping) {
|
|
|
|
addressMapping[key] = await deployConnector(connectMapping[key]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
main()
|
|
|
|
.then(() => process.exit(0))
|
|
|
|
.catch((error) => {
|
|
|
|
console.error(error);
|
|
|
|
process.exit(1);
|
|
|
|
});
|