Skip to content

Commit

Permalink
feat(raiko): update chain spec (#235)
Browse files Browse the repository at this point in the history
* update chain spec

Signed-off-by: smtmfft <[email protected]>

* update rpc & name

Signed-off-by: smtmfft <[email protected]>

---------

Signed-off-by: smtmfft <[email protected]>
  • Loading branch information
smtmfft authored and CeciliaZ030 committed May 22, 2024
1 parent eef94ac commit 8ec2892
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ services:
- HOLESKY_RPC=${HOLESKY_RPC}
- HOLESKY_BEACON_RPC=${HOLESKY_BEACON_RPC}
- TAIKO_A7_RPC=${TAIKO_A7_RPC}
- TAIKO_MAINNET_RPC=${TAIKO_MAINNET_RPC}
# you can use your own PCCS host
#- PCCS_HOST=host.docker.internal:8081
# use the host's network to connect to the PCCS
Expand Down Expand Up @@ -104,6 +105,7 @@ services:
- HOLESKY_RPC=${HOLESKY_RPC}
- HOLESKY_BEACON_RPC=${HOLESKY_BEACON_RPC}
- TAIKO_A7_RPC=${TAIKO_A7_RPC}
- TAIKO_MAINNET_RPC=${TAIKO_MAINNET_RPC}
# use the host's network to connect to the PCCS
#extra_hosts:
# - "host.docker.internal:host-gateway"
Expand Down
4 changes: 4 additions & 0 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ function update_docker_chain_specs() {
if [ -n "${TAIKO_A7_RPC}" ]; then
update_chain_spec_json $CONFIG_FILE "taiko_a7" "rpc" $TAIKO_A7_RPC
fi

if [ -n "${TAIKO_MAINNET_RPC}" ]; then
update_chain_spec_json $CONFIG_FILE "taiko_mainnet" "rpc" $TAIKO_MAINNET_RPC
fi
}

if [[ -z "${PCCS_HOST}" ]]; then
Expand Down
25 changes: 25 additions & 0 deletions host/config/chain_spec_list_default.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,5 +98,30 @@
"genesis_time": 0,
"seconds_per_slot": 1,
"is_taiko": true
},
{
"name": "taiko_mainnet",
"chain_id": 167000,
"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": "0x06a9Ab27c7e2255df1815E6CC0168d7755Feb19a",
"l2_contract": "0x1670000000000000000000000000000000010001",
"rpc": "https://rpc.mainnet.taiko.xyz",
"beacon_rpc": null,
"sgx_verifier_address": "0xb0f3186FC1963f774f52ff455DC86aEdD0b31F81",
"genesis_time": 0,
"seconds_per_slot": 1,
"is_taiko": true
}
]

0 comments on commit 8ec2892

Please sign in to comment.