diff --git a/deploys/rsktestnet.json b/deploys/rsktestnet.json new file mode 100644 index 0000000..7bedbd9 --- /dev/null +++ b/deploys/rsktestnet.json @@ -0,0 +1,8 @@ +{ + "signers": [ + "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266", + "0x70997970C51812dc3A010C7d01b50e0d17dc79C8" + ], + "token": "0xfE841c74250e57640390f46d914C88d22C51e82e", + "p2pix": "0x98ba35eb14b38D6Aa709338283af3e922476dE34" +} \ No newline at end of file diff --git a/hardhat.config.ts b/hardhat.config.ts index 6d15e23..a5fabc4 100644 --- a/hardhat.config.ts +++ b/hardhat.config.ts @@ -37,6 +37,8 @@ const chainIds = { sepolia: 11155111, goerli: 5, "polygon-mumbai": 80001, + rootstock:30, + rsktestnet:31, }; function getChainConfig( @@ -49,6 +51,12 @@ function getChainConfig( "https://polygon-mumbai.g.alchemy.com/v2/" + alchemyApiKey; break; + case "rsktestnet": + jsonRpcUrl = "https://public-node.testnet.rsk.co/"; + break; + case "rootstock": + jsonRpcUrl = "https://public-node.rsk.co/" + break; default: jsonRpcUrl = "https://" + chain + ".infura.io/v3/" + infuraApiKey; @@ -103,6 +111,8 @@ const config: HardhatUserConfig = { goerli: getChainConfig("goerli"), sepolia: getChainConfig("sepolia"), "polygon-mumbai": getChainConfig("polygon-mumbai"), + rootstock: getChainConfig("rootstock"), + rsktestnet: getChainConfig("rsktestnet"), }, paths: { artifacts: "./artifacts", diff --git a/scripts/1-deploy-mockToken.ts b/scripts/1-deploy-mockToken.ts index ee51795..37846ed 100644 --- a/scripts/1-deploy-mockToken.ts +++ b/scripts/1-deploy-mockToken.ts @@ -42,10 +42,10 @@ const main = async () => { /* UNCOMMENT WHEN DEPLOYING TO MAINNET/PUBLIC TESTNETS */ // verify - await hre.run("verify:verify", { - address: erc20.address, - constructorArguments: [supply], - }); + // await hre.run("verify:verify", { + // address: erc20.address, + // constructorArguments: [supply], + // }); }; main() diff --git a/scripts/2-deploy-p2pix.ts b/scripts/2-deploy-p2pix.ts index b053478..19ef445 100644 --- a/scripts/2-deploy-p2pix.ts +++ b/scripts/2-deploy-p2pix.ts @@ -57,24 +57,24 @@ const main = async () => { /* UNCOMMENT WHEN DEPLOYING TO MAINNET/PUBLIC TESTNETS */ //verify - await hre.run("verify:verify", { - address: p2pix.address, - constructorArguments: [ - 10, - deploysJson.signers, - reputation.address, - [deploysJson.token], - [true], - ], - }); - await hre.run("verify:verify", { - address: reputation.address, - constructorArguments: [], - }); - await hre.run("verify:verify", { - address: mutlicall.address, - constructorArguments: [], - }); + // await hre.run("verify:verify", { + // address: p2pix.address, + // constructorArguments: [ + // 10, + // deploysJson.signers, + // reputation.address, + // [deploysJson.token], + // [true], + // ], + // }); + // await hre.run("verify:verify", { + // address: reputation.address, + // constructorArguments: [], + // }); + // await hre.run("verify:verify", { + // address: mutlicall.address, + // constructorArguments: [], + // }); }; main()