Skip to content

Commit 8a5ba4d

Browse files
committed
feat: support taiko_transition chain spec
1 parent ee96ba0 commit 8a5ba4d

File tree

8 files changed

+155
-101
lines changed

8 files changed

+155
-101
lines changed

Cargo.lock

Lines changed: 45 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ function update_docker_chain_specs() {
101101
update_chain_spec_json $CONFIG_FILE "taiko_mainnet" "rpc" $TAIKO_MAINNET_RPC
102102
fi
103103

104+
if [ -n "${TAIKO_TRANSITION_RPC}" ]; then
105+
update_chain_spec_json $CONFIG_FILE "taiko_transition" "rpc" $TAIKO_TRANSITION_RPC
106+
fi
107+
104108
if [ -n "${HOODI_RPC}" ]; then
105109
update_chain_spec_json $CONFIG_FILE "hoodi" "rpc" $HOODI_RPC
106110
fi

host/config/chain_spec_list_default.json

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,5 +246,49 @@
246246
"genesis_time": 0,
247247
"seconds_per_slot": 1,
248248
"is_taiko": true
249+
},
250+
{
251+
"name": "taiko_transition",
252+
"chain_id": 167014,
253+
"max_spec_id": "SHASTA",
254+
"hard_forks": {
255+
"HEKLA": {
256+
"Block": 0
257+
},
258+
"ONTAKE": {
259+
"Block": 0
260+
},
261+
"PACAYA": {
262+
"Block": 0
263+
},
264+
"SHASTA": {
265+
"Timestamp": 1770987600
266+
},
267+
"CANCUN": "TBD"
268+
},
269+
"eip_1559_constants": {
270+
"base_fee_change_denominator": "0x8",
271+
"base_fee_max_increase_denominator": "0x8",
272+
"base_fee_max_decrease_denominator": "0x8",
273+
"elasticity_multiplier": "0x2"
274+
},
275+
"l1_contract": {
276+
"PACAYA": "0x07700C3bC1B0EE3D311E7D642d364242fd537906",
277+
"SHASTA": "0x2C34D466f6f57043B534D9b24DD032e905a95f50"
278+
},
279+
"l2_contract": "0x1670140000000000000000000000000000010001",
280+
"rpc": "http://34.59.40.60:8545",
281+
"beacon_rpc": null,
282+
"verifier_address_forks": {
283+
"SHASTA": {
284+
"SGX": "0xF6c749514c65D16b244A46A6eA4F691f15241ad3",
285+
"RISC0": "0x15190EEf1934DFC909Cd8ae3479701cd644982F7",
286+
"SP1": "0xe00Bd5E1c0a63be8b1385ba560f99f2A595050Ba",
287+
"SGXGETH": "0xA7b19cd71553f9Cc1519963b6F98EEf3dB73d885"
288+
}
289+
},
290+
"genesis_time": 0,
291+
"seconds_per_slot": 1,
292+
"is_taiko": true
249293
}
250294
]

lib/src/builder.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ use crate::{
1414
use anyhow::{bail, ensure, Result};
1515
use reth_chainspec::{
1616
ChainSpecBuilder, Hardfork, HOLESKY, MAINNET, TAIKO_A7, TAIKO_DEV, TAIKO_MAINNET, TAIKO_TOLBA,
17+
TAIKO_TRANSITION,
1718
};
1819
use reth_evm::execute::{BlockExecutionOutput, BlockValidationError, Executor, ProviderError};
1920
use reth_evm_ethereum::execute::{
@@ -190,6 +191,7 @@ impl<DB: Database<Error = ProviderError> + DatabaseCommit + OptimisticDatabase>
190191
"holesky" => HOLESKY.clone(),
191192
"taiko_dev" => TAIKO_DEV.clone(),
192193
"taiko_hoodi" => TAIKO_TOLBA.clone(),
194+
"taiko_transition" => TAIKO_TRANSITION.clone(),
193195
_ => unimplemented!(),
194196
};
195197

provers/risc0/guest/Cargo.lock

Lines changed: 27 additions & 27 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)