FeeOracleManager not deploying still
Signed-off-by: AlienTornadosaurusHex <>
This commit is contained in:
parent
a41f2318f3
commit
476c8a5f27
@ -1,5 +1,6 @@
|
||||
# Network & other
|
||||
MAINNET_RPC_URL=
|
||||
GOERLI_RPC_URL=
|
||||
ETHERSCAN_KEY=
|
||||
PRIVATE_KEY=
|
||||
|
||||
|
14
config.js
Normal file
14
config.js
Normal file
@ -0,0 +1,14 @@
|
||||
require("dotenv").config();
|
||||
|
||||
module.exports = {
|
||||
governanceProxyAddress: "0x5efda50f22d34F262c29268506C5Fa42cB56A1Ce",
|
||||
tornTokenAddress: "0x77777FeDdddFfC19Ff86DB637967013e6C6A116C",
|
||||
deployed: {
|
||||
router: `${process.env.DEPLOYED_ROUTER_ADDRESS}`,
|
||||
stakingImpl: `${process.env.DEPLOYED_STAKING_ADDRESS}`,
|
||||
relayerRegistryImpl: `${process.env.DEPLOYED_RELAYERSR_ADDRESS}`,
|
||||
instanceRegistryImpl: `${process.env.DEPLOYED_INSTANCESR_ADDRESS}`,
|
||||
fomImpl: `${process.env.DEPLOYED_FOM_ADDRESS}`,
|
||||
uniFeeOracle: `${process.env.DEPLOYED_UNIFEO_ADDRESS}`,
|
||||
},
|
||||
};
|
50
hardhat.config.js
Normal file
50
hardhat.config.js
Normal file
@ -0,0 +1,50 @@
|
||||
require('dotenv').config()
|
||||
|
||||
require("@nomicfoundation/hardhat-ethers");
|
||||
require("@nomicfoundation/hardhat-foundry");
|
||||
require("@nomicfoundation/hardhat-verify");
|
||||
|
||||
|
||||
/** @type import('hardhat/config').HardhatUserConfig */
|
||||
module.exports = {
|
||||
solidity: {
|
||||
compilers: [
|
||||
{
|
||||
version: '0.6.12',
|
||||
settings: {
|
||||
optimizer: {
|
||||
enabled: true,
|
||||
runs: 1_000_000,
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
overrides: {
|
||||
'src/proposals/*.sol': {
|
||||
version: '0.6.12',
|
||||
settings: {
|
||||
optimizer: {
|
||||
enabled: true,
|
||||
runs: 1,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
networks: {
|
||||
goerli: {
|
||||
url: `${process.env.GOERLI_RPC_URL}`,
|
||||
accounts: [`${process.env.PRIVATE_KEY}`],
|
||||
timeout: 999999,
|
||||
},
|
||||
mainnet: {
|
||||
url: `${process.env.MAINNET_RPC_URL}`,
|
||||
accounts: [`${process.env.PRIVATE_KEY}`],
|
||||
timeout: 999999,
|
||||
},
|
||||
},
|
||||
etherscan: {
|
||||
apiKey: `${process.env.ETHERSCAN_KEY}`,
|
||||
},
|
||||
};
|
||||
|
@ -13,7 +13,13 @@
|
||||
"coverage": "genhtml -o coverage -s --legend lcov.info && rm lcov.info"
|
||||
},
|
||||
"devDependencies": {
|
||||
"prettier": "^2.5.1",
|
||||
"@nomicfoundation/hardhat-ethers": "^3.0.3",
|
||||
"@nomicfoundation/hardhat-foundry": "^1.0.2",
|
||||
"@nomicfoundation/hardhat-verify": "^1.0.3",
|
||||
"dotenv": "^16.3.1",
|
||||
"ethers": "^6.6.2",
|
||||
"hardhat": "^2.16.1",
|
||||
"prettier": "^2.8.8",
|
||||
"prettier-plugin-solidity": "^1.0.0-beta.19",
|
||||
"solhint": "^3.3.6"
|
||||
}
|
||||
|
35
script/DeployFeeOracleManager.js
Normal file
35
script/DeployFeeOracleManager.js
Normal file
@ -0,0 +1,35 @@
|
||||
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("FeeOracleManager");
|
||||
|
||||
const deployed = await factory.deploy(
|
||||
config.governanceProxyAddress,
|
||||
config.tornTokenAddress
|
||||
);
|
||||
|
||||
const depaddr = await deployed.getAddress();
|
||||
|
||||
console.log("\nFeeOracleManager 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"));
|
45
script/DeployInfrastructureUpgradeProposal.js
Normal file
45
script/DeployInfrastructureUpgradeProposal.js
Normal file
@ -0,0 +1,45 @@
|
||||
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/proposals/InfrastructureUpgradeProposal.sol:InfrastructureUpgradeProposal"
|
||||
);
|
||||
|
||||
const deployed = await factory.deploy(
|
||||
config.deployed.router,
|
||||
config.deployed.stakingImpl,
|
||||
config.deployed.relayerRegistryImpl,
|
||||
config.deployed.instanceRegistryImpl,
|
||||
config.deployed.fomImpl,
|
||||
config.deployed.uniFeeOracle
|
||||
);
|
||||
|
||||
const depaddr = await deployed.getAddress();
|
||||
|
||||
console.log("\nInfastructureUpgradeProposal deployed @ " + depaddr + "\n");
|
||||
|
||||
console.log("\nWaiting 50 seconds.\n");
|
||||
|
||||
await timeout(50);
|
||||
|
||||
await hre.run("verify:verify", {
|
||||
address: depaddr,
|
||||
constructorArguments: [
|
||||
config.deployed.router,
|
||||
config.deployed.stakingImpl,
|
||||
config.deployed.relayerRegistryImpl,
|
||||
config.deployed.instanceRegistryImpl,
|
||||
config.deployed.fomImpl,
|
||||
config.deployed.uniFeeOracle,
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
deploy().then(() => console.log("\nScript finished.\n"));
|
31
script/DeployInstanceRegistry.js
Executable file
31
script/DeployInstanceRegistry.js
Executable file
@ -0,0 +1,31 @@
|
||||
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/InstanceRegistry.sol:InstanceRegistry"
|
||||
);
|
||||
|
||||
const deployed = await factory.deploy(config.governanceProxyAddress);
|
||||
|
||||
const depaddr = await deployed.getAddress();
|
||||
|
||||
console.log("InstanceRegistry deployed @ " + depaddr + "\n");
|
||||
|
||||
console.log("\nWaiting 50 seconds.\n");
|
||||
|
||||
await timeout(50);
|
||||
|
||||
await hre.run("verify:verify", {
|
||||
address: depaddr,
|
||||
constructorArguments: [config.governanceProxyAddress],
|
||||
});
|
||||
}
|
||||
|
||||
deploy().then(() => console.log("\nScript finished.\n"));
|
37
script/DeployRelayerRegistry.js
Executable file
37
script/DeployRelayerRegistry.js
Executable file
@ -0,0 +1,37 @@
|
||||
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"));
|
31
script/DeployRouter.js
Executable file
31
script/DeployRouter.js
Executable file
@ -0,0 +1,31 @@
|
||||
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/TornadoRouter.sol:TornadoRouter"
|
||||
);
|
||||
|
||||
const deployed = await factory.deploy(config.governanceProxyAddress);
|
||||
|
||||
const depaddr = await deployed.getAddress();
|
||||
|
||||
console.log("\nRouter deployed @ " + depaddr + "\n");
|
||||
|
||||
console.log("\nWaiting 50 seconds.\n");
|
||||
|
||||
await timeout(50);
|
||||
|
||||
await hre.run("verify:verify", {
|
||||
address: depaddr,
|
||||
constructorArguments: [config.governanceProxyAddress],
|
||||
});
|
||||
}
|
||||
|
||||
deploy().then(() => console.log("\nScript finished.\n"));
|
39
script/DeployStaking.js
Executable file
39
script/DeployStaking.js
Executable file
@ -0,0 +1,39 @@
|
||||
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/TornadoStakingRewards.sol:TornadoStakingRewards"
|
||||
);
|
||||
|
||||
const deployed = await factory.deploy(
|
||||
config.governanceProxyAddress,
|
||||
config.tornTokenAddress,
|
||||
config.deployed.router
|
||||
);
|
||||
|
||||
const depaddr = await deployed.getAddress();
|
||||
|
||||
console.log("\nStaking deployed @ " + depaddr + "\n");
|
||||
|
||||
console.log("\nWaiting 50 seconds.\n");
|
||||
|
||||
await timeout(50);
|
||||
|
||||
await hre.run("verify:verify", {
|
||||
address: depaddr,
|
||||
constructorArguments: [
|
||||
config.governanceProxyAddress,
|
||||
config.tornTokenAddress,
|
||||
config.deployed.router,
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
deploy().then(() => console.log("\nScript finished.\n"));
|
37
script/DeployUniswapFeeOracle.js
Normal file
37
script/DeployUniswapFeeOracle.js
Normal file
@ -0,0 +1,37 @@
|
||||
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/UniswapFeeOracle.sol:UniswapFeeOracle"
|
||||
);
|
||||
|
||||
const deployed = await factory.deploy(
|
||||
config.governanceProxyAddress,
|
||||
config.deployed.fomImpl
|
||||
);
|
||||
|
||||
const depaddr = await deployed.getAddress();
|
||||
|
||||
console.log("\nUniswapFeeOracle deployed @ " + depaddr + "\n");
|
||||
|
||||
console.log("\nWaiting 50 seconds.\n");
|
||||
|
||||
await timeout(50);
|
||||
|
||||
await hre.run("verify:verify", {
|
||||
address: depaddr,
|
||||
constructorArguments: [
|
||||
config.governanceProxyAddress,
|
||||
config.deployed.fomImpl,
|
||||
],
|
||||
});
|
||||
}
|
||||
|
||||
deploy().then(() => console.log("\nScript finished.\n"));
|
0
script/Deploys.sol
Normal file → Executable file
0
script/Deploys.sol
Normal file → Executable file
Loading…
Reference in New Issue
Block a user