Skip to content

Commit 25b4e97

Browse files
claravanstadengonzamontiel
authored andcommitted
Electra upgrade (Snowfork#1283)
* electra upgrade * relayer progress * more electra work * fix config * fixes * fix tests * update go version * containers * electra changes * try testing lodestar + electra * revert local script * mekong network setup * electra updates * fixes * fixes * fix tests * electra local net * fix config * cleanup * fixes * progress * fix execution header proof * revert testing changes * adds tests * cleanup * cleanup * uses geth binary instead of docker * removes all traces of capella * devnet6 fixes * update bindings
1 parent 7e827e2 commit 25b4e97

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

web/packages/test/scripts/start-relayer.sh

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,27 @@ config_relayer() {
7575
--arg k1 "$(address_for GatewayProxy)" \
7676
--argjson electra_forked_epoch $electra_forked_epoch \
7777
--arg channelID $ASSET_HUB_CHANNEL_ID \
78+
--argjson electra_forked_epoch $electra_forked_epoch \
7879
'
7980
.source.ethereum.endpoint = $eth_endpoint_ws
8081
| .source.contracts.Gateway = $k1
8182
| .schedule.id = 0
8283
| .source.beacon.spec.forkVersions.electra = $electra_forked_epoch
83-
| .source."channel-id" = $channelID
84+
' \
85+
config/execution-relay.json >$output_dir/execution-relay-asset-hub-0.json
8486

87+
# Configure execution relay for assethub-1
88+
jq \
89+
--arg eth_endpoint_ws $eth_endpoint_ws \
90+
--arg k1 "$(address_for GatewayProxy)" \
91+
--arg channelID $ASSET_HUB_CHANNEL_ID \
92+
--argjson electra_forked_epoch $electra_forked_epoch \
93+
'
94+
.source.ethereum.endpoint = $eth_endpoint_ws
95+
| .source.contracts.Gateway = $k1
96+
| .source."channel-id" = $channelID
97+
| .schedule.id = 1
98+
| .source.beacon.spec.forkVersions.electra = $electra_forked_epoch
8599
' \
86100
config/execution-relay-v1.json >$output_dir/execution-relay-v1.json
87101

@@ -98,6 +112,20 @@ config_relayer() {
98112
99113
' \
100114
config/execution-relay.json >$output_dir/execution-relay.json
115+
116+
# Configure execution relay for penpal
117+
jq \
118+
--arg eth_endpoint_ws $eth_endpoint_ws \
119+
--arg k1 "$(address_for GatewayProxy)" \
120+
--arg channelID $PENPAL_CHANNEL_ID \
121+
--argjson electra_forked_epoch $electra_forked_epoch \
122+
'
123+
.source.ethereum.endpoint = $eth_endpoint_ws
124+
| .source.contracts.Gateway = $k1
125+
| .source."channel-id" = $channelID
126+
| .source.beacon.spec.forkVersions.electra = $electra_forked_epoch
127+
' \
128+
config/execution-relay.json >$output_dir/execution-relay-penpal.json
101129
}
102130

103131
start_relayer() {

0 commit comments

Comments
 (0)