{"_id":"@bahuy3103/hardhat-contract-sizer","_rev":"3-dd7b6a0890bdcf57d28ad747617cd29f","name":"@bahuy3103/hardhat-contract-sizer","dist-tags":{"latest":"2.10.3"},"versions":{"2.10.0":{"name":"@bahuy3103/hardhat-contract-sizer","version":"2.10.0","license":"MIT","description":"Output Solidity contract sizes with Hardhat","keywords":["hardhat","buidler","abi","solidity","solc","smart-contracts","ethereum","blockchain","wow","bytecode"],"repository":{"type":"git","url":"git+https://github.com/huyhuynh3103/hardhat-contract-sizer.git"},"author":{"name":"Nick Barry"},"main":"index.js","types":"index.d.ts","peerDependencies":{"hardhat":"^2.0.0"},"devDependencies":{"eslint":"^7.6.0","hardhat":"^2.0.0"},"dependencies":{"chalk":"^4.0.0","cli-table3":"^0.6.0","strip-ansi":"^6.0.0"},"bugs":{"url":"https://github.com/huyhuynh3103/hardhat-contract-sizer/issues"},"homepage":"https://github.com/huyhuynh3103/hardhat-contract-sizer#readme","scripts":{"test":"mocha"},"gitHead":"a464fc0c8f3102efcaad9b210bd249d3bc45d12d","_id":"@bahuy3103/hardhat-contract-sizer@2.10.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-hTnvCN3CiB0vU05lk16/ZE8EwEkya//71UUABKZm4sfQ0RIexqGRDx2zOTTMWgqZ5go/vM1Pw/ZQoS4RW4tY9w==","shasum":"cf79d26b0f924f7f929ddb4259896407fb87a8ed","tarball":"https://registry.npmjs.org/@bahuy3103/hardhat-contract-sizer/-/hardhat-contract-sizer-2.10.0.tgz","fileCount":8,"unpackedSize":13509,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBjQRa02Niheo5yyNqr9tswMmYJ4aWbxo8kq+HNYqUAIAiEA+q0NgwKTS2LLGWgGVhI54mZ42SyRGZaRJwBOtHdCtq8="}]},"_npmUser":{"name":"bahuy3103","email":"bahuy3103@gmail.com"},"directories":{},"maintainers":[{"name":"bahuy3103","email":"bahuy3103@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hardhat-contract-sizer_2.10.0_1695293538398_0.954699546044129"},"_hasShrinkwrap":false},"2.10.1":{"name":"@bahuy3103/hardhat-contract-sizer","version":"2.10.1","license":"MIT","description":"Output Solidity contract sizes with Hardhat","keywords":["hardhat","buidler","abi","solidity","solc","smart-contracts","ethereum","blockchain","wow","bytecode"],"repository":{"type":"git","url":"git+https://github.com/huyhuynh3103/hardhat-contract-sizer.git"},"author":{"name":"Nick Barry"},"main":"index.js","types":"index.d.ts","peerDependencies":{"hardhat":"^2.0.0"},"devDependencies":{"eslint":"^7.6.0","hardhat":"^2.0.0"},"dependencies":{"chalk":"^4.0.0","cli-table3":"^0.6.0","strip-ansi":"^6.0.0"},"bugs":{"url":"https://github.com/huyhuynh3103/hardhat-contract-sizer/issues"},"homepage":"https://github.com/huyhuynh3103/hardhat-contract-sizer#readme","scripts":{"test":"mocha"},"gitHead":"a1046aaae0ff1d5b690f2b6c49170b0551c13cbd","_id":"@bahuy3103/hardhat-contract-sizer@2.10.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-t3iGD9NmViJEN+yye9xHUxtRK8i+eG7Z4JxTxAe3LQPhVpzd6HFx1LGvFfI1yTLMHPvZrvrw2tqTcvJdUlHX6Q==","shasum":"b32ddc33ccdf2fb18b272b72143d4ecedba00d6e","tarball":"https://registry.npmjs.org/@bahuy3103/hardhat-contract-sizer/-/hardhat-contract-sizer-2.10.1.tgz","fileCount":8,"unpackedSize":13354,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIA17ChdulHNyeFPUYVFQOKGNiLrBYkio3fDylEyQvmO/AiBh89KX69iDL9Y4bxFJl4dtD6c40F7kEXHWDHWIZYPdEg=="}]},"_npmUser":{"name":"bahuy3103","email":"bahuy3103@gmail.com"},"directories":{},"maintainers":[{"name":"bahuy3103","email":"bahuy3103@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hardhat-contract-sizer_2.10.1_1695294526316_0.08220403249256125"},"_hasShrinkwrap":false},"2.10.2":{"name":"@bahuy3103/hardhat-contract-sizer","version":"2.10.2","license":"MIT","description":"Output Solidity contract sizes with Hardhat","keywords":["hardhat","buidler","abi","solidity","solc","smart-contracts","ethereum","blockchain","wow","bytecode"],"repository":{"type":"git","url":"git+https://github.com/huyhuynh3103/hardhat-contract-sizer.git"},"author":{"name":"Nick Barry"},"main":"index.js","types":"index.d.ts","peerDependencies":{"hardhat":"^2.0.0"},"devDependencies":{"eslint":"^7.6.0","hardhat":"^2.0.0"},"dependencies":{"chalk":"^4.0.0","cli-table3":"^0.6.0","strip-ansi":"^6.0.0"},"bugs":{"url":"https://github.com/huyhuynh3103/hardhat-contract-sizer/issues"},"homepage":"https://github.com/huyhuynh3103/hardhat-contract-sizer#readme","scripts":{"test":"mocha"},"gitHead":"a1046aaae0ff1d5b690f2b6c49170b0551c13cbd","_id":"@bahuy3103/hardhat-contract-sizer@2.10.2","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-dbrrYLYQIrHmuigBWoD960VD+0pPvI2h78TzZrMBnq6Dobkn4cbjlHbMe+3UKdHgHdvush8euYWA00M2PcVPPw==","shasum":"830be8fe915949a2bb88846fe5f658a8dab177e8","tarball":"https://registry.npmjs.org/@bahuy3103/hardhat-contract-sizer/-/hardhat-contract-sizer-2.10.2.tgz","fileCount":8,"unpackedSize":13504,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0AzDvvPJIjl5TVuvekywtLMPKmDsIizg4qcPhQNerYQIgQyJD77783vP4bwIrc2fzSxb5qkNleRy1bF7BzY/c4wQ="}]},"_npmUser":{"name":"bahuy3103","email":"bahuy3103@gmail.com"},"directories":{},"maintainers":[{"name":"bahuy3103","email":"bahuy3103@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hardhat-contract-sizer_2.10.2_1695294860326_0.9070608137566853"},"_hasShrinkwrap":false},"2.10.3":{"name":"@bahuy3103/hardhat-contract-sizer","version":"2.10.3","license":"MIT","description":"Output Solidity contract sizes with Hardhat","keywords":["hardhat","buidler","abi","solidity","solc","smart-contracts","ethereum","blockchain","wow","bytecode"],"repository":{"type":"git","url":"git+https://github.com/huyhuynh3103/hardhat-contract-sizer.git"},"author":{"name":"Nick Barry"},"main":"index.js","types":"index.d.ts","peerDependencies":{"hardhat":"^2.0.0"},"devDependencies":{"eslint":"^7.6.0","hardhat":"^2.0.0"},"dependencies":{"chalk":"^4.0.0","cli-table3":"^0.6.0","strip-ansi":"^6.0.0"},"bugs":{"url":"https://github.com/huyhuynh3103/hardhat-contract-sizer/issues"},"homepage":"https://github.com/huyhuynh3103/hardhat-contract-sizer#readme","scripts":{"test":"mocha"},"gitHead":"bf08233cd976eafc2fc89f79da5dd8bea9253e04","_id":"@bahuy3103/hardhat-contract-sizer@2.10.3","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-cn1cI+FmqpAFIUw0a8opLvH4PQxHaTwMhyEUQ1qkqIM/1/Hm7x/8Jxyzy6u1z5Iot4OZCNFpDVy1YDcZMOnoGw==","shasum":"fc0b840049943566c12d34bf1ba00e50ff0ca14f","tarball":"https://registry.npmjs.org/@bahuy3103/hardhat-contract-sizer/-/hardhat-contract-sizer-2.10.3.tgz","fileCount":8,"unpackedSize":13483,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCQ8P9bLjgR+MFCaLh1OrJeeL4p4qi80vqV0epr3qD5nAIhAOjO9sOkknHJqnglKjW/AnErXhBzabj+B2LWrgYj4oj3"}]},"_npmUser":{"name":"bahuy3103","email":"bahuy3103@gmail.com"},"directories":{},"maintainers":[{"name":"bahuy3103","email":"bahuy3103@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/hardhat-contract-sizer_2.10.3_1695355058006_0.08305171702922376"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-21T10:52:18.265Z","2.10.0":"2023-09-21T10:52:18.551Z","modified":"2023-09-22T03:57:38.419Z","2.10.1":"2023-09-21T11:08:46.492Z","2.10.2":"2023-09-21T11:14:20.559Z","2.10.3":"2023-09-22T03:57:38.229Z"},"maintainers":[{"name":"bahuy3103","email":"bahuy3103@gmail.com"}],"description":"Output Solidity contract sizes with Hardhat","homepage":"https://github.com/huyhuynh3103/hardhat-contract-sizer#readme","keywords":["hardhat","buidler","abi","solidity","solc","smart-contracts","ethereum","blockchain","wow","bytecode"],"repository":{"type":"git","url":"git+https://github.com/huyhuynh3103/hardhat-contract-sizer.git"},"author":{"name":"Nick Barry"},"bugs":{"url":"https://github.com/huyhuynh3103/hardhat-contract-sizer/issues"},"license":"MIT","readme":"# Hardhat Contract Sizer\n\nOutput Solidity contract sizes with Hardhat.\n\n> Versions of this plugin prior to `2.0.0` were released as `buidler-contract-sizer`.\n\n## Installation\n\n```bash\nnpm install --save-dev @bahuy3103/hardhat-contract-sizer\n# or\nyarn add --dev @bahuy3103/hardhat-contract-sizer\n```\n\n## Usage\n\nLoad plugin in Hardhat config:\n\n```javascript\nrequire(\"@bahuy3103/hardhat-contract-sizer\");\n```\n\nAdd configuration under the `contractSizer` key:\n\n| option              | description                                                                                                                 | default |\n| ------------------- | --------------------------------------------------------------------------------------------------------------------------- | ------- |\n| `alphaSort`         | whether to sort results table alphabetically (default sort is by contract size)                                             | `false` |\n| `runOnCompile`      | whether to output contract sizes automatically after compilation                                                            | `false` |\n| `disambiguatePaths` | whether to output the full path to the compilation artifact (relative to the Hardhat root directory)                        | `false` |\n| `strict`            | whether to throw an error if any contracts exceed the size limit (may cause compatibility issues with `solidity-coverage`)  | `false` |\n| `only`              | `Array` of `String` matchers used to select included contracts, defaults to all contracts if `length` is 0                  | `[]`    |\n| `except`            | `Array` of `String` matchers used to exclude contracts                                                                      | `[]`    |\n| `outputFile`        | file path to write contract size report                                                                                     | `null`  |\n| `unit`              | unit of measurement for the size of contracts, which can be expressed in 'B' (bytes), 'kB' (kilobytes) or 'KiB' (kibibytes) | `KiB`   |\n\n```javascript\ncontractSizer: {\n  alphaSort: true,\n  disambiguatePaths: false,\n  runOnCompile: true,\n  strict: true,\n  only: [':ERC20$'],\n}\n```\n\nRun the included Hardhat task to output compiled contract sizes:\n\n```bash\nnpx hardhat size-contracts\n# or\nyarn run hardhat size-contracts\n```\n\nBy default, the hardhat `compile` task is run before sizing contracts. This behavior can be disabled with the `--no-compile` flag:\n\n```bash\nnpx hardhat size-contracts --no-compile\n# or\nyarn run hardhat size-contracts --no-compile\n```","readmeFilename":"README.md"}