add RSK networks
This commit is contained in:
parent
e95828b7dd
commit
db7407e299
8
deploys/rsktestnet.json
Normal file
8
deploys/rsktestnet.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"signers": [
|
||||||
|
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
||||||
|
"0x70997970C51812dc3A010C7d01b50e0d17dc79C8"
|
||||||
|
],
|
||||||
|
"token": "0xfE841c74250e57640390f46d914C88d22C51e82e",
|
||||||
|
"p2pix": "0x98ba35eb14b38D6Aa709338283af3e922476dE34"
|
||||||
|
}
|
@ -37,6 +37,8 @@ const chainIds = {
|
|||||||
sepolia: 11155111,
|
sepolia: 11155111,
|
||||||
goerli: 5,
|
goerli: 5,
|
||||||
"polygon-mumbai": 80001,
|
"polygon-mumbai": 80001,
|
||||||
|
rootstock:30,
|
||||||
|
rsktestnet:31,
|
||||||
};
|
};
|
||||||
|
|
||||||
function getChainConfig(
|
function getChainConfig(
|
||||||
@ -49,6 +51,12 @@ function getChainConfig(
|
|||||||
"https://polygon-mumbai.g.alchemy.com/v2/" +
|
"https://polygon-mumbai.g.alchemy.com/v2/" +
|
||||||
alchemyApiKey;
|
alchemyApiKey;
|
||||||
break;
|
break;
|
||||||
|
case "rsktestnet":
|
||||||
|
jsonRpcUrl = "https://public-node.testnet.rsk.co/";
|
||||||
|
break;
|
||||||
|
case "rootstock":
|
||||||
|
jsonRpcUrl = "https://public-node.rsk.co/"
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
jsonRpcUrl =
|
jsonRpcUrl =
|
||||||
"https://" + chain + ".infura.io/v3/" + infuraApiKey;
|
"https://" + chain + ".infura.io/v3/" + infuraApiKey;
|
||||||
@ -103,6 +111,8 @@ const config: HardhatUserConfig = {
|
|||||||
goerli: getChainConfig("goerli"),
|
goerli: getChainConfig("goerli"),
|
||||||
sepolia: getChainConfig("sepolia"),
|
sepolia: getChainConfig("sepolia"),
|
||||||
"polygon-mumbai": getChainConfig("polygon-mumbai"),
|
"polygon-mumbai": getChainConfig("polygon-mumbai"),
|
||||||
|
rootstock: getChainConfig("rootstock"),
|
||||||
|
rsktestnet: getChainConfig("rsktestnet"),
|
||||||
},
|
},
|
||||||
paths: {
|
paths: {
|
||||||
artifacts: "./artifacts",
|
artifacts: "./artifacts",
|
||||||
|
@ -42,10 +42,10 @@ const main = async () => {
|
|||||||
|
|
||||||
/* UNCOMMENT WHEN DEPLOYING TO MAINNET/PUBLIC TESTNETS */
|
/* UNCOMMENT WHEN DEPLOYING TO MAINNET/PUBLIC TESTNETS */
|
||||||
// verify
|
// verify
|
||||||
await hre.run("verify:verify", {
|
// await hre.run("verify:verify", {
|
||||||
address: erc20.address,
|
// address: erc20.address,
|
||||||
constructorArguments: [supply],
|
// constructorArguments: [supply],
|
||||||
});
|
// });
|
||||||
};
|
};
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
@ -57,24 +57,24 @@ const main = async () => {
|
|||||||
|
|
||||||
/* UNCOMMENT WHEN DEPLOYING TO MAINNET/PUBLIC TESTNETS */
|
/* UNCOMMENT WHEN DEPLOYING TO MAINNET/PUBLIC TESTNETS */
|
||||||
//verify
|
//verify
|
||||||
await hre.run("verify:verify", {
|
// await hre.run("verify:verify", {
|
||||||
address: p2pix.address,
|
// address: p2pix.address,
|
||||||
constructorArguments: [
|
// constructorArguments: [
|
||||||
10,
|
// 10,
|
||||||
deploysJson.signers,
|
// deploysJson.signers,
|
||||||
reputation.address,
|
// reputation.address,
|
||||||
[deploysJson.token],
|
// [deploysJson.token],
|
||||||
[true],
|
// [true],
|
||||||
],
|
// ],
|
||||||
});
|
// });
|
||||||
await hre.run("verify:verify", {
|
// await hre.run("verify:verify", {
|
||||||
address: reputation.address,
|
// address: reputation.address,
|
||||||
constructorArguments: [],
|
// constructorArguments: [],
|
||||||
});
|
// });
|
||||||
await hre.run("verify:verify", {
|
// await hre.run("verify:verify", {
|
||||||
address: mutlicall.address,
|
// address: mutlicall.address,
|
||||||
constructorArguments: [],
|
// constructorArguments: [],
|
||||||
});
|
// });
|
||||||
};
|
};
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user