@robinthomas/react-erasure

1.0.6 • Public • Published

React Erasure

License

Table of Contents

  1. Introduction
  2. Features
  3. Components

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)

Readme

Keywords

none

Package Sidebar

Install

npm i @robinthomas/react-erasure

Weekly Downloads

6

Version

1.0.6

License

MIT

Unpacked Size

449 kB

Total Files

5

Last publish

Collaborators

  • robinthomas