All Projects → ItsNickBarry → hardhat-contract-sizer

ItsNickBarry / hardhat-contract-sizer

Licence: MIT license
Output Ethereum contract sizes with Hardhat 📐

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to hardhat-contract-sizer

hardhat-abi-exporter
🧰 Export Solidity contract ABIs on compilation ⚙️
Stars: ✭ 29 (-47.27%)
Mutual labels:  wow, smart-contracts, abi, solc, buidler, hardhat
hardhat-dependency-compiler
📦 Compile Solidity sources directly from NPM dependencies
Stars: ✭ 19 (-65.45%)
Mutual labels:  wow, smart-contracts, solc, buidler, hardhat
solidstate-solidity
💠 Upgradeable-first Solidity smart contract development library 💠
Stars: ✭ 264 (+380%)
Mutual labels:  wow, smart-contracts, buidler, hardhat
solidity-cli
Compile solidity-code faster, easier and more reliable
Stars: ✭ 49 (-10.91%)
Mutual labels:  smart-contracts, solc
typescript-eth-starter
🔌 Ethereum Dapp Basic Typescript Starter
Stars: ✭ 125 (+127.27%)
Mutual labels:  smart-contracts, hardhat
contracts
Off-the-shelf Solidity smart contracts
Stars: ✭ 100 (+81.82%)
Mutual labels:  smart-contracts, hardhat
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 (+81.82%)
Mutual labels:  smart-contracts, hardhat
framework
Lightweight, open source and magic-free framework for testing solidity smart contracts.
Stars: ✭ 36 (-34.55%)
Mutual labels:  smart-contracts, solc
tinlake
Smart contracts for Tinlake, the on-chain securitization protocol for real-world assets
Stars: ✭ 85 (+54.55%)
Mutual labels:  smart-contracts
web3scala
Scala library for integration with Ethereum clients
Stars: ✭ 24 (-56.36%)
Mutual labels:  smart-contracts
ether-swr
Ether-SWR is a React hook that fetches Ethereum data. It streamlines the chores to keep the internal state of the Decentralized App (DApp), batches the RPC calls to an Ethereum node and cache the responses
Stars: ✭ 125 (+127.27%)
Mutual labels:  smart-contracts
prb-math
Solidity library for advanced fixed-point math
Stars: ✭ 404 (+634.55%)
Mutual labels:  smart-contracts
erc20-balance
💎 Get 2000+ ERC-20 token balances with JavaScript. Supports Node.js and Deno
Stars: ✭ 18 (-67.27%)
Mutual labels:  smart-contracts
koinos-gui-miner
The Koinos Miner (GUI) provides a sleek and functional user interface that allows users to mine the KOIN ERC-20 which will be used to deliver an equitable initial token distribution on the Koinos blockchain.
Stars: ✭ 26 (-52.73%)
Mutual labels:  smart-contracts
peerai-api
Peerism's Peer.ai API built with Truffle, Node.js, Express.js, Solidity, and Ethereum TestRPC
Stars: ✭ 18 (-67.27%)
Mutual labels:  solc
solidity-diagram-gen
UML class diagram generator for solidity contracts
Stars: ✭ 33 (-40%)
Mutual labels:  smart-contracts
online-ethereum-abi-encoder-decoder
A quick online tool to abi-encode and abi-decode constructor arguments used in ethereum's solidity. https://adibas03.github.io/online-ethereum-abi-encoder-decoder/
Stars: ✭ 37 (-32.73%)
Mutual labels:  abi
alice-NFT
Ethereum for Javascript devs
Stars: ✭ 38 (-30.91%)
Mutual labels:  hardhat
splunk-connect-for-ethereum
Splunk Connect for Ethereum
Stars: ✭ 50 (-9.09%)
Mutual labels:  abi
leafleth
📑 Documentation generator for Solidity
Stars: ✭ 24 (-56.36%)
Mutual labels:  smart-contracts

Hardhat Contract Sizer

Output Solidity contract sizes with Hardhat.

Versions of this plugin prior to 2.0.0 were released as buidler-contract-sizer.

Installation

npm install --save-dev hardhat-contract-sizer
# or
yarn add --dev hardhat-contract-sizer

Usage

Load plugin in Hardhat config:

require('hardhat-contract-sizer');

Add configuration under the contractSizer key:

option description default
alphaSort whether to sort results table alphabetically (default sort is by contract size) false
runOnCompile whether to output contract sizes automatically after compilation false
disambiguatePaths whether to output the full path to the compilation artifact (relative to the Hardhat root directory) false
strict whether to throw an error if any contracts exceed the size limit (may cause compatibility issues with solidity-coverage) 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 []
contractSizer: {
  alphaSort: true,
  disambiguatePaths: false,
  runOnCompile: true,
  strict: true,
  only: [':ERC20$'],
}

Run the included Hardhat task to output compiled contract sizes:

npx hardhat size-contracts
# or
yarn run hardhat size-contracts

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

npx hardhat size-contracts --no-compile
# or
yarn run hardhat size-contracts --no-compile
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].