By Aragon dTech
Running Aragon Client on your local machine:
- Fork the Aragon Client github repo from: https://github.com/aragon/client
- Clone the fork to a folder on your local machine
- Install dependencies with:
yarn
- Run Aragon Client on your localhost with:
yarn start
- Open localhost on http://localhost:3000/#/
Adding Humanode network to your Metamask wallet:
- Click on ‘Ethereum Mainnet’ and then on ‘Add Network’
- Add the following name in the Network Name box:
humanode
- Add the following id in the Chain ID box:
5234
- Add the following url in the New RPC URL box:
http://explorer-rpc-http.it2.stages.humanode.io/
- Click on ‘Save’
Making code edits to Aragon Client in Visual Studio Code (VSC):
- Open your local Aragon Client project folder in VSC
- Find and open the
connectors.js
file on the following path:../client/src/ethereum-providers/connectors.js
- Add the Humanode Chain ID
5234
to theconnectors
and save:
export const connectors = [
{
id: 'injected',
properties: {
chainId: [
1,
4,
137,
80001,
1666600000,
1666700000,
97,
56,
588,
1088,
**5234,**
], // add here to handle more injected chains
},
},
- Find and open the
network-config.js
file on the following path:../client/src/network-config.js
- Add Humanode Network Configurations to the
networkConfigs
and save:
export const networkConfigs = {
[chains.getChainInformation(5234).type]: {
isActive: true,
addresses: {
ensRegistry:
localEnsRegistryAddress || '0xe982d7547900694e16b3a729092730b11e2d14bd',
governExecutorProxy: null,
},
nodes: {
defaultEth: 'wss://explorer-rpc-ws.it2.stages.humanode.io/',
},
connectGraphEndpoint: null,
settings: {
chainId: 5234,
testnet: false,
...chains.getChainInformation(5234),
live: true,
},
},
- Find and open the
index.js
file in theuse-wallet
node module:../client/node_modules/use-wallet/dist/esm/index.js
- Add Humanode Chain Information to the
var CHAIN_INFORMATION
and save:
}], [5234, {
id: 5234,
nativeCurrency: ETH,
type: 'humanode',
fullName: 'humanode',
shortName: 'humanode',
explorerUrl: 'http://explorer-rpc-http.it2.stages.humanode.io',
testnet: false
}]]);
- Find and open the
index.js
file in the@aragon
node module (this and the next step do not seem essential):../client/node_modules/@aragon/truffle-config-v4/truffle-config.js
- Add Humanode Network Information to the
module.exports
and save:
module.exports = {
networks: {
humanode: {
network_id: 5234,
provider: providerForNetwork('humanode'),
gas: 6.9e6,
},
At this point a connection should appear between Aragon Client on the localhost and Metamask:
- Proceed to create an organization
At this point a Metamask transaction pop-up should appear (which does not yet do so):
When switching Metamask to another network and then back to Humanode Network two transactions pop-up however:
After confirmation of these transactions the DAO does not seem to have been created. There is no related error message appearing in the console.
This is the hex data for the first transaction:
0x885b48e70000000000000000000000000000000000000000000000000000000000000140000000000000000000000000000000000000000000000000000000000000018000000000000000000000000000000000000000000000000000000000000001c00000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000024000000000000000000000000000000000000000000000000006f05b59d3b200000000000000000000000000000000000000000000000000000214e8348c4f0000000000000000000000000000000000000000000000000000000000000001518000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a626172756b696d616e670000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034252540000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a626172756b696d616e6700000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000042c9a3f034592c39028aea70a6e69fbc6ccf6c31000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000021e19e0c9bab2400000
Identified issue: files have not been properly been pinned to IPFS:
Remaining task Humanode: re-pin IPFS Files