🚀 DAY 3 OF LAUNCH WEEK:Announcing Bun and vlt Support in Socket.Learn more →
Socket
Book a DemoInstallSign in
Socket

eth-gas-price-visuals

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eth-gas-price-visuals

A boilerplate for react-hyperscript using browserify with beefy and ES6.

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Eth Gas Price Visuals

Live Example

A composable boilerplate for writing Ethereum dapps in a similar environment to what the MetaMask developers use themselves to develop MetaMask.

Forked from my older react-hyperscript-beefy-boilerplate, which is not Ethereum specific.

Purpose

I've been contributing to MetaMask for a while, and I wanted to make a web dapp with ethjs that used a similar build system.

My friend Jared said it was a nice little framework, and I should do a better job of sharing it.

It also crossed my mind that this framework could be good practice for onboarding MetaMask contributors.

Features

  • Adds an instantiated ethjs object onto the state object for easy ethereum interaction.
  • Uses react-hyperscript with Babel for an Elm-like Javascript ES6 experience.
  • The sample project detects presence of the web3 API, and suggests downloading MetaMask in its absence.
  • Features a simple tip button transaction, to show how easy it is to send a transaction and indicate loading state and errors.

Usage

Installation

Have node.js installed, then in the project folder:

npm install

Development

To run with live-reloading via beefy:

npm start

To build:

npm run build

This will generate a bundle.js file that is pointed to by the index.html.

Project Structure

./index.html                    <- The entry point for the app
./index.js                      <- The JS init entry point for the app, unbuilt.
./app                           <- The usually edited react views
├── root.js                     <- The home page, which could host routing, and has full state.
└── template.js                 <- Copy this to create views with full state access.
├── components                  <- The components that rely on local state
│   ├── download-metamask.js    <- A sample local React component, with customized style params!
│   └── template.js             <- Copy this to create your own components
./lib
├── reducers
│   └── index.js                <- The root React Redux reducer file.
└── store.js                    <- The redux store, instantiated with thunk and logging.
./bundle.js                     <- The built JS bundle, generated by `npm run build`.

To Dos:

  • Add nice style sheet management, like SASS.
  • Add unit test suite
  • Add browser test suite (testem?)

Keywords

react

FAQs

Package last updated on 13 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts