Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add more Block Configuration (set base fee, gas limit, timestamp, etc) #13

Open
jxom opened this issue Aug 27, 2023 · 4 comments
Assignees
Labels
D: Easy Difficulty: Easy Good First Issue Good for newcomers P: Low Priority: Low T: Enhancement Type: Enhancement

Comments

@jxom
Copy link
Member

jxom commented Aug 27, 2023

Important

If you would like to work on this, please comment and we will assign you to the issue.


On the Block Configuration screen, on top of configuring the mining configuration, it would be nice if we could also configure the base fee, gas limit, and also timestamps (increase timestamp, set timestamp, timestamp intervals).

Suggested Implementation

  1. We will probably need to add a bunch of new mutation Hooks for viem's:
    a. setNextBlockBaseFeePerGas
    b. setBlockGasLimit
    c. increaseTime
    d. setNextBlockTimestamp
    e. setBlockTimestampInterval

  2. After that, improvize some UI on the Block Configuration screen so the user can:
    a. Set a new base fee,
    b. Set a new gas limit,
    c. Increase the current timestamp,
    d. Set a timestamp,
    e. Set the timestamp interval (for interval mining).

Note: for these changes to propagate, we will need to mine the pending block with useMine.

@jxom jxom added the Good First Issue Good for newcomers label Aug 27, 2023
@jxom jxom changed the title More Block Configuration (set base fee, gas limit, timestamp, etc) Add more Block Configuration (set base fee, gas limit, timestamp, etc) Aug 27, 2023
@jxom jxom added P: Low Priority: Low D: Easy Difficulty: Easy T: Enhancement Type: Enhancement labels Aug 27, 2023
@ameya-deshmukh
Copy link

@jxom happy to take this up!

@0xClint
Copy link

0xClint commented Sep 3, 2023

@jxom
Are you talking about this screen Block Configuration Screen?

image

@jxom
Copy link
Member Author

jxom commented Sep 5, 2023

Yes!

@jxom jxom changed the title Add more Block Configuration (set base fee, gas limit, timestamp, etc) Feature: Add more Block Configuration (set base fee, gas limit, timestamp, etc) Sep 5, 2023
@AbhinavMir
Copy link

If no one's working on this, I can give it a try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
D: Easy Difficulty: Easy Good First Issue Good for newcomers P: Low Priority: Low T: Enhancement Type: Enhancement
Projects
Status: Working
Development

No branches or pull requests

4 participants