paradigmxyz/rivet

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

Opened this issue · 4 comments

jxom commented

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 happy to take this up!

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

image

jxom commented

Yes!

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