-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(raiko): read & merge chain spec from a optional config file (#206)
* Read & merge chain spec from file Signed-off-by: smtmfft <smtm@taiko.xyz> * make chain_spec path optional Signed-off-by: smtmfft <smtm@taiko.xyz> * fix test build Signed-off-by: smtmfft <smtm@taiko.xyz> * update prove-block.sh * remove useless fn Signed-off-by: smtmfft <smtm@taiko.xyz> * code refine: rename fn Signed-off-by: smtmfft <smtm@taiko.xyz> * fix review comments Signed-off-by: smtmfft <smtm@taiko.xyz> * move rpc & beacon rpc into chain spec * use inclue_str to compile in the default support chains * code refine: re-org the genesis into the right chain spec. * do not check tx_list in non-taiko chain * tiny config update * Fix compile & test * fix fmt Signed-off-by: smtmfft <smtm@taiko.xyz> * Fix CI * Fix CI * remove warning & fix CI * fix fmt again --------- Signed-off-by: smtmfft <smtm@taiko.xyz>
- Loading branch information
Showing
11 changed files
with
367 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
[ | ||
{ | ||
"name": "ethereum", | ||
"chain_id": 1, | ||
"max_spec_id": "CANCUN", | ||
"hard_forks": { | ||
"FRONTIER": { | ||
"Block": 0 | ||
}, | ||
"MERGE": { | ||
"Block": 15537394 | ||
}, | ||
"SHANGHAI": { | ||
"Block": 17034870 | ||
}, | ||
"CANCUN": { | ||
"Timestamp": 1710338135 | ||
} | ||
}, | ||
"eip_1559_constants": { | ||
"base_fee_change_denominator": "0x8", | ||
"base_fee_max_increase_denominator": "0x8", | ||
"base_fee_max_decrease_denominator": "0x8", | ||
"elasticity_multiplier": "0x2" | ||
}, | ||
"l1_contract": null, | ||
"l2_contract": null, | ||
"rpc": "https://rpc.ankr.com/eth", | ||
"beacon_rpc": "https://ethereum-beacon-api.publicnode.com", | ||
"sgx_verifier_address": null, | ||
"genesis_time": 1606824023, | ||
"seconds_per_slot": 12, | ||
"is_taiko": false | ||
}, | ||
{ | ||
"name": "holesky", | ||
"chain_id": 17000, | ||
"max_spec_id": "CANCUN", | ||
"hard_forks": { | ||
"FRONTIER": { | ||
"Block": 0 | ||
}, | ||
"SHANGHAI": { | ||
"Timestamp": 1696000704 | ||
}, | ||
"CANCUN": { | ||
"Timestamp": 1707305664 | ||
} | ||
}, | ||
"eip_1559_constants": { | ||
"base_fee_change_denominator": "0x8", | ||
"base_fee_max_increase_denominator": "0x8", | ||
"base_fee_max_decrease_denominator": "0x8", | ||
"elasticity_multiplier": "0x2" | ||
}, | ||
"l1_contract": null, | ||
"l2_contract": null, | ||
"rpc": "https://ethereum-holesky-rpc.publicnode.com", | ||
"beacon_rpc": "https://api.holesky.blobscan.com", | ||
"sgx_verifier_address": null, | ||
"genesis_time": 1695902400, | ||
"seconds_per_slot": 12, | ||
"is_taiko": false | ||
}, | ||
{ | ||
"name": "taiko_a7", | ||
"chain_id": 167009, | ||
"max_spec_id": "SHANGHAI", | ||
"hard_forks": { | ||
"SHANGHAI": { | ||
"Block": 0 | ||
}, | ||
"CANCUN": "TBD" | ||
}, | ||
"eip_1559_constants": { | ||
"base_fee_change_denominator": "0x8", | ||
"base_fee_max_increase_denominator": "0x8", | ||
"base_fee_max_decrease_denominator": "0x8", | ||
"elasticity_multiplier": "0x2" | ||
}, | ||
"l1_contract": "0x79c9109b764609df928d16fc4a91e9081f7e87db", | ||
"l2_contract": "0x1670090000000000000000000000000000010001", | ||
"rpc": "https://rpc.hekla.taiko.xyz", | ||
"beacon_rpc": null, | ||
"sgx_verifier_address": "0x532efbf6d62720d0b2a2bb9d11066e8588cae6d9", | ||
"genesis_time": 0, | ||
"seconds_per_slot": 1, | ||
"is_taiko": true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.