Skip to content

Commit bc30717

Browse files
feat: add support for BSC (#31)
* feat: add support for BSC * fix precompile contracts error * optimize `specification` setting * fix lint issues * fix CI issues * fix CI issues * fix CI issues * fix wrong precompile contracts set * fix precompile revert error * add check for bsc precompile * add `PrecompileError::Reverted` * fix evm spec for `KEPLER` * fix CI issues * add `haber` precompile set and fix errors * add EIP4844 data fee to `collect_system_reward` * update bsc feature dep * fix review comments * update `tendermint` version
1 parent cd1ce9b commit bc30717

File tree

24 files changed

+2208
-212
lines changed

24 files changed

+2208
-212
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
rust: ["stable", "beta", "nightly"]
25-
flags: ["--no-default-features", "", "--all-features"]
25+
# flags: ["--no-default-features", "", "--all-features"]
26+
flags: ["--no-default-features", "", "--features bsc", "--features optimism,opbnb"]
2627
steps:
2728
- uses: actions/checkout@v4
2829
- uses: dtolnay/rust-toolchain@master
@@ -31,16 +32,16 @@ jobs:
3132
- uses: Swatinem/rust-cache@v2
3233
- run: cargo test --workspace ${{ matrix.flags }}
3334

34-
# test-no-std:
35-
# name: test no_std
36-
# runs-on: ubuntu-latest
37-
# timeout-minutes: 30
38-
# steps:
39-
# - uses: actions/checkout@v4
40-
# - uses: dtolnay/rust-toolchain@stable
41-
# with:
42-
# targets: riscv32imac-unknown-none-elf
43-
# - run: cargo check --target riscv32imac-unknown-none-elf --no-default-features
35+
# test-no-std:
36+
# name: test no_std
37+
# runs-on: ubuntu-latest
38+
# timeout-minutes: 30
39+
# steps:
40+
# - uses: actions/checkout@v4
41+
# - uses: dtolnay/rust-toolchain@stable
42+
# with:
43+
# targets: riscv32imac-unknown-none-elf
44+
# - run: cargo check --target riscv32imac-unknown-none-elf --no-default-features
4445

4546
check-no-default-features:
4647
name: check no-default-features
@@ -73,26 +74,40 @@ jobs:
7374
cargo check --no-default-features --features std
7475
7576
clippy:
76-
name: clippy
77+
name: clippy / ${{ matrix.network }}
7778
runs-on: ubuntu-latest
7879
timeout-minutes: 30
80+
strategy:
81+
matrix:
82+
include:
83+
- network: optimism
84+
extra-features: "opbnb"
85+
- network: bsc
86+
extra-features: ""
7987
steps:
8088
- uses: actions/checkout@v4
8189
- uses: dtolnay/rust-toolchain@stable
82-
- run: cargo clippy --workspace --all-targets --all-features
90+
- run: cargo clippy --workspace --all-targets --features "${{ matrix.network }} ${{ matrix.extra-features }}"
8391
env:
8492
RUSTFLAGS: -Dwarnings
8593

8694
docs:
87-
name: docs
95+
name: docs / ${{ matrix.network }}
8896
runs-on: ubuntu-latest
8997
timeout-minutes: 30
98+
strategy:
99+
matrix:
100+
include:
101+
- network: optimism
102+
extra-features: "opbnb"
103+
- network: bsc
104+
extra-features: ""
90105
steps:
91106
- uses: actions/checkout@v4
92107
- uses: dtolnay/rust-toolchain@stable
93108
with:
94109
components: rust-docs
95-
- run: cargo doc --workspace --all-features --no-deps --document-private-items
110+
- run: cargo doc --workspace --no-deps --document-private-items --features "${{ matrix.network }} ${{ matrix.extra-features }}"
96111
env:
97112
RUSTDOCFLAGS: "--cfg docsrs -D warnings"
98113

0 commit comments

Comments
 (0)