Clone the repo
Please note: MetaMask is having issues running on Firefox. This bug was reported back in August and we're awaiting a fix. Until then please use Chrome.
The frontend will load on http://localhost:3000/
A network needs at least four validators to function properly and the Autonity network needs a deployed governance contract. The validator governance is based on the Soma contract.
The Validator DApp has many similarities with how the Observer DApp is implemented and their underlying smart contracts. The Observer is based on a P2P permissioning contract (Glienicke) while the Validator contract is aimed to govern validators.
The similarities and differences of these two network permissioning contracts can be summarised as follows:
The main two functions are: (1) add a Validator and (2) remove an existing Validator. In both cases, the identifier used is the enode address. These are found in Validators.js. By utilising either function, Metamask is triggered and brings the user to the payment window.
In the validator contract (Soma.json), the network address can be found. Note that the network addresses for the Observer and Validator DApp are distinct.
Interactions with smart contracts are facilitated with the library Drizzle to make it easer to write DApp UIs. The loading button (and other alternatives) can be found at loading.io.
Content type
Image
Digest
Size
511.3 MB
Last updated
over 7 years ago
docker pull clearmatics/validator-dapp