gas analyzer
1.0.0
Gas Analyzer是一种静态分析工具,旨在通过分析气体消耗模式来优化固体智能合约。该工具利用抽象语法树(AST)解析和正则表达式,确定潜在的气体效率低下,并提供了优化以太坊智能合约的见解。
# Clone the Gas Analyzer repository
git clone https://github.com/malik/gas-analyzer.git
# Change into the project directory
cd gas-analyzer
# Build the project
cargo build --release
# Usage
- to change the contract code
- navigate to src
- rewrite the contract.sol file to your choice
- after run ` cargo build ` then ` cargo run ` in your project terminal此项目已获得MIT许可证的许可 - 有关详细信息,请参见许可证文件。
Gas Analyzer项目从4nalyser中汲取了灵感,并建立在以太坊开发社区和Rareskills Gas-Overtimization Book的基础上(目前实施了本书中的一些技巧)。