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的基礎上(目前實施了本書中的一些技巧)。