-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore: Read Superchain genesis config from compressed files #14562
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there a use case for these static chainspecs in kona?
I guess it would depend how we proceed with #14571
we likely need to separate parts of the chainspec logic, like hardfork activations and maybe fee params not necessarily genesis
so we could feature gate these to std for now probably
c7cb9d5
to
ba5a4e2
Compare
Yeah, we could use them :D fwiw, @refcell already has some rust bindings set up for the |
8dcdc0e
to
45eb434
Compare
37fb642
to
ca5aefe
Compare
@mattsse This PR is ready for review.
|
Small update: Now setting fields (e.g., If you serialize and compare base-mainnet: 14442a14443,14444
> "cancunTime": 1710374401,
> "canyonTime": 1704992401,
14445a14448,14449
> "deltaTime": 1708560000,
> "ecotoneTime": 1710374401,
14448a14453,14454
> "fjordTime": 1720627201,
> "graniteTime": 1726070401,
14449a14456
> "holoceneTime": 1736445601,
14456a14464
> "eip1559DenominatorCanyon": 250,
14460a14469
> "shanghaiTime": 1704992401, base-sepolia: 15224a15225,15226
> "cancunTime": 1708534800,
> "canyonTime": 1699981200,
15227a15230,15231
> "deltaTime": 1703203200,
> "ecotoneTime": 1708534800,
15230a15235,15236
> "fjordTime": 1716998400,
> "graniteTime": 1723478400,
15231a15238
> "holoceneTime": 1732633200,
15238a15246
> "eip1559DenominatorCanyon": 250,
15242a15251
> "shanghaiTime": 1699981200, How to get this result: Checkout main, and this PR and serialize the genesis value. Then compare the results with: |
Add functions to read Genesis JSON from a zip file, allowing large JSON files to be removed from the repository.
Requires to work: alloy-rs/alloy#2073 to read the ChainConfig from the toml files
Added BSL-1.0 license. See here for compatibility to MIT/Apache 2.0
@mattsse: Seeking for advice how to get rid of
std:io