6 个版本
0.1.5 | 2021年3月12日 |
---|---|
0.1.4 | 2021年3月11日 |
#10 in #eip
12KB
132 行
EIP Utils
一个命令行工具,提供了以太坊改进提案的功能。
入门
安装
git clone https://github.com/abdelhamidbakhta/eip-utils.git
cargo install --path=eip-utils eip-utils
使用方法
eip-utils --help
命令
EIP-1559
eip1559-resources
Print link to extensive list of EIP-1559 resources
USAGE:
eip-utils eip1559-resources
# Example
eip-utils eip1559-resources
# Output
https://hackmd.io/@timbeiko/1559-resources
eip1559-compute-basefee
Compute base fee from parent block header
USAGE:
eip-utils eip1559-compute-basefee --parent-base-fee <parent-base-fee> --parent-gas-used <parent-gas-used> --parent-target-gas-used <parent-target-gas-used>
OPTIONS:
--parent-base-fee <parent-base-fee> The value of the parent block base fee
--parent-gas-used <parent-gas-used> The value of the parent block gas used
--parent-target-gas-used <parent-target-gas-used> The value of the parent block target gas used
# Help
eip-utils help eip1559-compute-basefee
# Example
eip-utils eip1559-compute-basefee --parent-base-fee=1000000000 --parent-gas-used=10000000 --parent-target-gas-used=5000000
# Output
1125000000
依赖项
~2.8–4MB
~75K SLoC