#proposal #ethereum #eip #line #command-line #helper

bin+lib eip-utils

Ethereum Improvement Proposal helpers

6 releases

0.1.5 Mar 12, 2021
0.1.4 Mar 11, 2021

#7 in #eip

40 downloads per month

Apache-2.0

12KB
132 lines

EIP Utils

license ci status

A command line utility tool which provides Ethereum Improvement Proposals features.

Getting Started

Install

git clone https://github.com/abdelhamidbakhta/eip-utils.git
cargo install --path=eip-utils eip-utils

Usage

eip-utils --help

Commands

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

Dependencies

~2.8–4MB
~75K SLoC