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/
To run the Observer frontend locally:
make build
make run
To clean up:
make clean
A network needs at least four validators to function properly and the Autonity network needs a deployed permissioning contract Glienicke).
The Observer DApp has many similarities with how the Validator DApp is implemented and their underlying smart contracts. The Observer is based on a P2P permissioning contract while the Validator contract (Soma) 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) adding an Observer and (2) removing an existing Observer. In both cases, the identifier used is the enode address. These are found in Observer.js. By utilising either function, Metamask is triggered and brings the user to the payment window.
In the permissioning contract (Glienicke.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
100 MB
Last updated
over 7 years ago
docker pull clearmatics/observer-dapp