base-org / contract-deployments

MIT License
211 stars 111 forks source link

Add script for updating gasConfig values for Fjord on mainnet #188

Closed henridevieux closed 4 months ago

henridevieux commented 4 months ago

Adds script to update the gas config to reflect post-fjord values

New values will be as:

./ecotone-scalar --scalar 2269 --blob-scalar 1055762                                                 
# base fee scalar     : 2269
# blob base fee scalar: 1055762
# v1 hex encoding  : 0x01000000000000000000000000000000000000000000000000101c12000008dd
# uint value for the 'scalar' parameter in SystemConfigProxy.setGasConfig():
452312848583266388373324160190187140051835877600158453279135721994173024477

and the script will contain revert functionality to revert back to:

./ecotone-scalar --decode 452312848583266388373324160190187140051835877600158453279134021569375896970
# base fee scalar     : 1418
# blob base fee scalar: 659851
# v1 hex encoding  : 0x010000000000000000000000000000000000000000000000000a118b0000058a
# uint value for the 'scalar' parameter in SystemConfigProxy.setGasConfig():
452312848583266388373324160190187140051835877600158453279134021569375896970