Add rinkeby network and extend some logs/docs
This commit is contained in:
parent
e21fb40661
commit
643bd01a78
@ -108,6 +108,8 @@ We use OpenZeppelin for an upgradeable contracts: [https://www.npmjs.com/package
|
|||||||
|
|
||||||
Refer to the OpenZeppelin README and `scripts/create-proxy.js`
|
Refer to the OpenZeppelin README and `scripts/create-proxy.js`
|
||||||
|
|
||||||
|
[OpenZeppelin Step by Step guide](https://forum.openzeppelin.com/t/openzeppelin-upgrades-step-by-step-tutorial-for-hardhat/3580)
|
||||||
|
|
||||||
For an upgrade example checkout `scripts/upgrade-example.js`
|
For an upgrade example checkout `scripts/upgrade-example.js`
|
||||||
|
|
||||||
|
|
||||||
|
@ -66,8 +66,15 @@ module.exports = {
|
|||||||
hardhat: {
|
hardhat: {
|
||||||
chainId: 1337,
|
chainId: 1337,
|
||||||
},
|
},
|
||||||
|
rinkeby: {
|
||||||
|
url: "https://rinkeby.infura.io/v3/2e73045db2e84711912f8d0e5968f309",
|
||||||
|
accounts: [
|
||||||
|
process.env.DEPLOY_KEY ||
|
||||||
|
"0xffb4230bdf9b1f1dd48f0bc54e4007436733f225a4f163d4f7e58e620ae329eb",
|
||||||
|
],
|
||||||
|
},
|
||||||
rsk: {
|
rsk: {
|
||||||
url: "http://10.1.1.136:4444/",
|
url: "https://rsk-testnet.kosmos.org",
|
||||||
accounts: [
|
accounts: [
|
||||||
process.env.DEPLOY_KEY ||
|
process.env.DEPLOY_KEY ||
|
||||||
"0xffb4230bdf9b1f1dd48f0bc54e4007436733f225a4f163d4f7e58e620ae329eb",
|
"0xffb4230bdf9b1f1dd48f0bc54e4007436733f225a4f163d4f7e58e620ae329eb",
|
||||||
|
@ -9,6 +9,9 @@ async function main() {
|
|||||||
const ContributorV2 = await ethers.getContractFactory("Contributor");
|
const ContributorV2 = await ethers.getContractFactory("Contributor");
|
||||||
const contributor = await upgrades.upgradeProxy(kredits.Contributor.address, ContributorV2);
|
const contributor = await upgrades.upgradeProxy(kredits.Contributor.address, ContributorV2);
|
||||||
console.log("Contributor upgraded");
|
console.log("Contributor upgraded");
|
||||||
|
console.log(`Contirbutor address: ${contributor.address}`);
|
||||||
|
|
||||||
|
await contributor.deployTransaction.wait();
|
||||||
|
|
||||||
console.log("DONE!");
|
console.log("DONE!");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user