Socket
Socket
Sign inDemoInstall

buidler-abi-exporter

Package Overview
Dependencies
390
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    buidler-abi-exporter

Export Solidity contract ABIs on compilation


Version published
Weekly downloads
3
Maintainers
1
Install size
6.31 kB
Created
Weekly downloads
 

Readme

Source

Buidler ABI Exporter

Export Solidity contract ABIs on compilation via Buidler.

Installation

yarn add --dev buidler-abi-exporter

Usage

Load plugin in Buidler config:

usePlugin('buidler-abi-exporter');

Add configuration under the abiExporter key:

optiondescriptiondefault
pathpath to ABI export directory (relative to Buidler root)'./abi'
onlyArray of contracts to include (case sensitive), defaults to all contracts if length is 0[]
exceptArray of contracts to exclude (case sensitive)[]
clearwhether to delete old files in path onfalse
abiExporter: {
  path: './data/abi',
  only: ['ERC20'],
  clear: true,
}

The path directory will be created if it does not exist.

The clear option is set to false by default because it represents a destructive action, but should be set to true in most cases.

ABIs files are saved in the format [CONTRACT_NAME].json.

TypeScript Support

For TypeScript compatibility, add 'node_modules/buidler-abi-exporter/type-extensions.d.ts' to the files array in tsconfig.json.

Keywords

FAQs

Last updated on 10 Sep 2020

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc