🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

web3data-deploy

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

web3data-deploy

Web3data abi module upload helper for use with web3data-js

0.2.12
latest
Source
npm
Version published
Weekly downloads
4
-63.64%
Maintainers
1
Weekly downloads
 
Created
Source

Build Status Discord XO code style

Table of Contents

  Usage
    Installation
    Permissions
    Networks
  Community
  Resources
  Licensing

web3data-deploy

A module to upload contract ABI to Amberdata.io, allowing for automated security audits and analytics!

Usage

Install the module and the post-install script will add a migration script to your migrations folder. Then run truffle migrate and the script will handle the rest, uploading your contract ABI to our upload endpoint! 🚀

Installation

npm install web3data-deploy

Permissions

The postinstall.js script may fail if it does not have the proper permissions.

If this is the case, run:

chmod +x node_modules/web3data-deploy/scripts/postinstall.js

and then:

npm explore web3data-deploy-- npm run postinstall

Networks

Amberedata.io currently supports Ethereum Mainnet & Ropsten Testnet.

Network Not Supported Error

You may see an error:

 [ Uploader ] INFO: Network, 'X', not supported by amberdata. Contract ABI not uploaded.

This could occur if you are deploying to an unsupported network or (and more likely) the network id in your truffle.js file is wrong.

Make sure that the network id corresponds with the JSON RPC network ids:

  • "1": Ethereum Mainnet
  • "4": Rinkeby Testnet

Like so:

// truffle.js
module.exports = {
  networks: {
    development: {
      host: 'localhost',
      port: 8545,
      network_id: '*' // Match any network id
    },
    rinkeby: {
      network_id: 4
    },
    mainet: {
      network_id: 1
    }
  }
}

Community

Come join the discussion on Discourse!

Resources

Contributing

Licensing

This project is licensed under the Apache Licence 2.0.

Keywords

web3data

FAQs

Package last updated on 29 Nov 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