New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

shieth

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shieth

Shishito ethereum utilities

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
16
166.67%
Maintainers
1
Weekly downloads
 
Created
Source

Shieth

Shieth is a little web3 helper intended on being used as a shim library for handling common interactions with web3 and our web front-end projects.

How to use

Install using npm:

npm install --save shieth
# or in dev
npm link shieth

Then import the badboy into your project:

import EthJS from 'shieth';

And then instantiate it in your project

const eth = new EthJS({
  artifacts: [require('../build/contracts/SomeToken.json')],
  addresses: {
    SomeToken: 'SOME_ADDRESS'
  },
  onDirty: eth => {
    this.setState({
      account: eth.accounts.defaultAccount
    });
  }
});

ethjs will keep your accounts, the state of the network and some other things in order after you call load() on the instance:

eth
  .load()
  .then(async eth => this.refreshState(eth))
  .catch(error => console.log('Error -->', error));

Check out shieth-test for an example implementation!

FAQs

Package last updated on 10 Apr 2018

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