Skip to content

Commit

Permalink
Add custom network support
Browse files Browse the repository at this point in the history
  • Loading branch information
Raskolnikofff committed Apr 22, 2021
1 parent fafc0bb commit 9e9702c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
7 changes: 4 additions & 3 deletions templates/company/arapp.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"environments": {
"default": {
"appName": "company-template.aragonpm.eth",
"network": "rpc",
"registry": "0x5f6f7e8cc7346a11ca2def8f827b7a0b612c56a1"
"network": "devnet",
"registry": "0x13199fa47e33332669776cbd1aee101cc2acfa25",
"wsRPC": "ws://135.181.123.210:8545"
},
"mainnet": {
"appName": "company-template.aragonpm.eth",
Expand Down Expand Up @@ -32,4 +33,4 @@
},
"roles": [],
"path": "contracts/CompanyTemplate.sol"
}
}
8 changes: 8 additions & 0 deletions templates/company/scripts/changeNetwork.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var fs = require('fs');

var arapp=JSON.parse(fs.readFileSync("arapp.json"))

arapp["environments"]["default"]["registry"] = process.env.APPLICATION_COMPANY_ADDRESS
arapp["environments"]["default"]["wsRPC"] = process.env.WEB3_WS_URL

fs.writeFileSync("./arapp.json",JSON.stringify(arapp,0,2))

0 comments on commit 9e9702c

Please sign in to comment.