@robinthomas/react-erasure
v1.0.6
Published
React components for Erasure
Downloads
6
Readme
React Erasure
Table of Contents
Introduction
React Erasure is react components library that helps to quickly bootstrap a dapp on Erasure, by accelerating dapp development by abstracting away the complexity.
Libary can be installed by,
$ npm install @robinthomas/react-erasure
Features
- Supports Erasure protocol version v1.1.0
- Supports Ethereum mainnet and Rinkeby networks
- Provides various React components
- Login
- Feed
- Post
- Reveal Post
- Stake
- Punish
- Reward
- Release Stake
- Retrieve Stake
Components
Login
- To setup the Metamask provider and permissions
Feed
- create a new feed
Post
- create a new post
- select one of the feeds detected in this account, to which the post can be added
- progress bar for uploading raw data
Reveal Post
- select a feed
- select a post under that feed and then reveal it
Stake
- create a new countdown griefing agreement
Punish
- select one of the griefing auto-detected
- punish the staker (in NMR)
- add a punishment message
Reward
- select one of the griefing auto-detected
- reward the staker (in NMR)
Release Stake
- select one of the griefing auto-detected
- release some stake to the staker (in NMR)
Retrieve Stake
- select one of the griefing auto-detected
- release some stake to the staker (in NMR)