Skip to content

Commit e59abd6

Browse files
committed
manual ci
1 parent 88f3c9c commit e59abd6

File tree

6 files changed

+35
-4
lines changed

6 files changed

+35
-4
lines changed

.github/workflows/ci.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
- pectra-updates
8+
79
pull_request_target:
810
types: [opened, synchronize]
911

@@ -80,7 +82,7 @@ jobs:
8082

8183
- name: check no-std
8284
run: |
83-
cargo check -p ${{ matrix.crate }} --no-default-features --target=wasm32-unknown-unknown --locked
85+
cargo check -p ${{ matrix.crate }} --no-default-features --features electra --target=wasm32-unknown-unknown --locked
8486
8587
check-workspace:
8688
name: Check Workspace
@@ -349,9 +351,24 @@ jobs:
349351
- name: sync-committee integration tests
350352
run: |
351353
cargo test -p sync-committee-prover -- --nocapture --ignored
354+
docker-compose -f ./eth-pos-devnet/docker-compose.yml down
355+
rm -rf ./eth-pos-devnet
356+
357+
- name: Run Eth POS Devnet Electra
358+
run: |
359+
git clone --branch david/electra https://github.com/polytope-labs/eth-pos-devnet.git
360+
DOCKER_CLIENT_TIMEOUT=300 COMPOSE_HTTP_TIMEOUT=300 docker-compose -f ./eth-pos-devnet/docker-compose.yml up -d
361+
./scripts/wait_for_tcp_port_opening.sh localhost 3500
362+
./scripts/wait_for_tcp_port_opening.sh localhost 8545
363+
364+
- name: sync-committee integration tests
365+
run: |
366+
cargo test -p sync-committee-prover --features electra -- --nocapture --ignored
367+
docker-compose -f ./eth-pos-devnet/docker-compose.yml down
352368
353369
# - name: polygon pos integration tests
354370
# run: |
371+
#
355372
# cargo test -p polygon-pos-prover -- --nocapture --ignored
356373

357374
- name: Binance Smart Chain integration tests

modules/consensus/sync-committee/primitives/src/electra.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
use crate::constants::{
22
BlsPublicKey, BlsSignature, Bytes32, Epoch, ExecutionAddress, Gwei, Slot, ValidatorIndex,
33
};
4+
use alloc::{vec, vec::Vec};
45
use ssz_rs::{prelude::*, Deserialize};
56

67
#[derive(Default, Debug, SimpleSerialize, codec::Encode, codec::Decode, Clone, PartialEq, Eq)]

modules/consensus/sync-committee/verifier/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ std = [
2424
"bls/std",
2525
"ark-ec/std",
2626
]
27+
electra = ["sync-committee-primitives/electra"]
2728

2829
[dev-dependencies]
2930
hex = "0.4.3"

modules/ismp/clients/sync-committee/Cargo.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ hex = { workspace = true, default-features = false }
2525
hex-literal = { workspace = true }
2626
ethabi = { workspace = true }
2727
codec = { workspace = true, default-features = false }
28-
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
28+
scale-info = { version = "2.1.1", default-features = false, features = [
29+
"derive",
30+
] }
2931
sp-io = { workspace = true }
3032

3133
[dependencies.polkadot-sdk]
@@ -58,3 +60,7 @@ disable-panic-handler = [
5860
]
5961

6062
try-runtime = ["polkadot-sdk/try-runtime"]
63+
electra = [
64+
"sync-committee-verifier/electra",
65+
"sync-committee-primitives/electra",
66+
]

parachain/runtimes/gargantua/Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ codec = { workspace = true, features = ["derive"] }
1414
hex-literal = { workspace = true, optional = true }
1515
log = { workspace = true }
1616
json = { workspace = true }
17-
scale-info = { version = "2.3.1", default-features = false, features = ["derive"] }
17+
scale-info = { version = "2.3.1", default-features = false, features = [
18+
"derive",
19+
] }
1820
smallvec = "1.10.0"
1921
orml-xcm-support = { workspace = true }
2022
orml-traits = { workspace = true }
@@ -161,3 +163,4 @@ try-runtime = [
161163
]
162164
# This must be used when buiding for a runtime upgrade so metadata hash verification is possible
163165
metadata-hash = ["substrate-wasm-builder/metadata-hash"]
166+
electra = ["ismp-sync-committee/electra"]

parachain/runtimes/nexus/Cargo.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ codec = { workspace = true, features = ["derive"] }
1818
hex-literal = { workspace = true, optional = true }
1919
log = { workspace = true }
2020
json = { workspace = true }
21-
scale-info = { version = "2.3.1", default-features = false, features = ["derive"] }
21+
scale-info = { version = "2.3.1", default-features = false, features = [
22+
"derive",
23+
] }
2224
smallvec = "1.10.0"
2325
orml-xcm-support = { workspace = true }
2426
orml-traits = { workspace = true }
@@ -163,3 +165,4 @@ try-runtime = [
163165
]
164166
# This must be used when building for a runtime upgrade so metadata hash verification is possible
165167
metadata-hash = ["substrate-wasm-builder/metadata-hash"]
168+
electra = ["ismp-sync-committee/electra"]

0 commit comments

Comments
 (0)