All Projects โ†’ ItsNickBarry โ†’ hardhat-abi-exporter

ItsNickBarry / hardhat-abi-exporter

Licence: MIT License
๐Ÿงฐ Export Solidity contract ABIs on compilation โš™๏ธ

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to hardhat-abi-exporter

hardhat-contract-sizer
Output Ethereum contract sizes with Hardhat ๐Ÿ“
Stars: โœญ 55 (+89.66%)
Mutual labels:  wow, smart-contracts, abi, solc, buidler, hardhat
solidstate-solidity
๐Ÿ’  Upgradeable-first Solidity smart contract development library ๐Ÿ’ 
Stars: โœญ 264 (+810.34%)
Mutual labels:  wow, smart-contracts, eth, ether, buidler, hardhat
hardhat-dependency-compiler
๐Ÿ“ฆ Compile Solidity sources directly from NPM dependencies
Stars: โœญ 19 (-34.48%)
Mutual labels:  wow, smart-contracts, solc, buidler, hardhat
framework
Lightweight, open source and magic-free framework for testing solidity smart contracts.
Stars: โœญ 36 (+24.14%)
Mutual labels:  smart-contracts, eth, solc
ethereum-crowdsale
0xcert protocol crowdsale contracts for Ethereum blockchain.
Stars: โœญ 15 (-48.28%)
Mutual labels:  smart-contracts, eth
zeneth
๐Ÿต๏ธ Let Your ETH Chill โ€” Gasless Ethereum account abstraction with Flashbots
Stars: โœญ 112 (+286.21%)
Mutual labels:  smart-contracts, eth
Simple-Game-ERC-721-Token-Template
๐Ÿ”ฎ Very Simple ERC-721 Smart Contract Template to create your own ERC-721 Tokens on the Ethereum Blockchain, with many customizable Options ๐Ÿ”ฎ
Stars: โœญ 83 (+186.21%)
Mutual labels:  smart-contracts, eth
quipuswap-core
๐Ÿง™โ€โ™‚๏ธ Repository containing QuipuSwap liquidity protocol smart-contracts written in Ligo language
Stars: โœญ 48 (+65.52%)
Mutual labels:  smart-contracts, dapps
create-ether-dapp
A template for building Full-Stack Blockchain Dapps using Next.js (React), TypeScript, Tailwind CSS, Hardhat, Solidity, and many more!
Stars: โœญ 100 (+244.83%)
Mutual labels:  smart-contracts, hardhat
blockchain-development
A complimentary course for an understanding of blockchain and its development like custom blockchain, dapps, etc.
Stars: โœญ 71 (+144.83%)
Mutual labels:  smart-contracts, dapps
erc721
The reference implementation of the ERC-721 non-fungible token standard.
Stars: โœญ 989 (+3310.34%)
Mutual labels:  smart-contracts, eth
typescript-eth-starter
๐Ÿ”Œ Ethereum Dapp Basic Typescript Starter
Stars: โœญ 125 (+331.03%)
Mutual labels:  smart-contracts, hardhat
ethereum-erc20
Fungible token implementation for the Ethereum blockchain.
Stars: โœญ 27 (-6.9%)
Mutual labels:  smart-contracts, eth
Credits
Credits(CRDS) - An Evolving Currency For An Evolving Society
Stars: โœญ 14 (-51.72%)
Mutual labels:  smart-contracts, dapps
contracts
Off-the-shelf Solidity smart contracts
Stars: โœญ 100 (+244.83%)
Mutual labels:  smart-contracts, hardhat
waves-ide
IDE for waves blockchain RIDE language
Stars: โœญ 19 (-34.48%)
Mutual labels:  smart-contracts, dapps
Flow Playground
Flow Playground front-end app ๐Ÿคนโ€โ™‚๏ธ
Stars: โœญ 73 (+151.72%)
Mutual labels:  smart-contracts, dapps
solidity-cli
Compile solidity-code faster, easier and more reliable
Stars: โœญ 49 (+68.97%)
Mutual labels:  smart-contracts, solc
web3scala
Scala library for integration with Ethereum clients
Stars: โœญ 24 (-17.24%)
Mutual labels:  smart-contracts, ether
nuxt-web3
๐Ÿ–– Web3.js module integration for Nuxt 2 ( Nuxt 3 under development )
Stars: โœญ 38 (+31.03%)
Mutual labels:  smart-contracts, dapps

Hardhat ABI Exporter

Export Ethereum smart contract ABIs on compilation via Hardhat.

Versions of this plugin prior to 2.0.0 were released as buidler-abi-exporter.

Installation

yarn add --dev hardhat-abi-exporter

Usage

Load plugin in Hardhat config:

require('hardhat-abi-exporter');

Add configuration under the abiExporter key:

option description default
path path to ABI export directory (relative to Hardhat root) './abi'
runOnCompile whether to automatically export ABIs during compilation false
clear whether to delete old ABI files in path on compilation false
flat whether to flatten output directory (may cause name collisions) false
only Array of String matchers used to select included contracts, defaults to all contracts if length is 0 []
except Array of String matchers used to exclude contracts []
spacing number of spaces per indentation level of formatted output 2
pretty whether to use interface-style formatting of output for better readability false
filter Function with signature (abiElement: any, index: number, abi: any, fullyQualifiedName: string) => boolean used to filter elements from each exported ABI () => true

Note that the configuration formatted as either a single Object, or an Array of objects. An Array may be used to specify multiple outputs.

abiExporter: {
  path: './data/abi',
  runOnCompile: true,
  clear: true,
  flat: true,
  only: [':ERC20$'],
  spacing: 2,
  pretty: true,
}

// or

abiExporter: [
  {
    path: './abi/pretty',
    pretty: true,
  },
  {
    path: './abi/ugly',
    pretty: false,
  },
]

The included Hardhat tasks may be run manually:

yarn run hardhat export-abi
yarn run hardhat clear-abi

By default, the hardhat compile task is run before exporting ABIs. This behavior can be disabled with the --no-compile flag:

yarn run hardhat export-abi --no-compile

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].