c80b9697db
Signed-off-by: AlienTornadosaurusHex <>
38 lines
854 B
JavaScript
Executable File
38 lines
854 B
JavaScript
Executable File
require("dotenv").config();
|
|
|
|
const hre = require("hardhat");
|
|
const config = require("../config");
|
|
|
|
function timeout(seconds) {
|
|
return new Promise((resolve) => setTimeout(resolve, seconds * 1000));
|
|
}
|
|
|
|
async function deploy() {
|
|
const factory = await hre.ethers.getContractFactory(
|
|
"src/v2/RelayerRegistry.sol:RelayerRegistry"
|
|
);
|
|
|
|
const deployed = await factory.deploy(
|
|
config.governanceProxyAddress,
|
|
config.tornTokenAddress
|
|
);
|
|
|
|
const depaddr = await deployed.getAddress();
|
|
|
|
console.log("\nRelayerRegistry deployed @ " + depaddr + "\n");
|
|
|
|
console.log("\nWaiting 50 seconds.\n");
|
|
|
|
await timeout(50);
|
|
|
|
await hre.run("verify:verify", {
|
|
address: depaddr,
|
|
constructorArguments: [
|
|
config.governanceProxyAddress,
|
|
config.tornTokenAddress,
|
|
],
|
|
});
|
|
}
|
|
|
|
deploy().then(() => console.log("\nScript finished.\n"));
|