Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cryptol0g1c/react-eth
https://github.com/cryptol0g1c/react-eth
abi ethereum form react
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cryptol0g1c/react-eth
- Owner: cryptol0g1c
- Created: 2017-10-09T14:33:27.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-16T19:50:26.000Z (almost 6 years ago)
- Last Synced: 2024-08-31T06:36:41.935Z (3 months ago)
- Topics: abi, ethereum, form, react
- Language: JavaScript
- Size: 953 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-eth
# Important: This package is currently on development## Build status
[![Build Status](https://travis-ci.org/cryptol0g1c/react-eth.svg?branch=master)](https://travis-ci.org/afiorenza/react-eth)The goal of this package is to help developers to easily create react forms from smart-contracts ABI.
## Live demo
https://cryptol0g1c.github.io/react-eth/The live demo uses [Bootstrap](https://getbootstrap.com/). But feel free to give your own styling.
## Usage
```
import ReactEth from 'react-eth';const abi = {
"constant": false,
"inputs": [
{
"name": "spender",
"type": "address"
},
{
"name": "value",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
};```
## Props
* abi: json.
* className: string.
* onChange: function.
* onSubmit: function.## Examples
* Clone this repo
* Run `npm install`
* Run `npm run examples`
* Navigate to http://localhost:8080