Skip to content

Commit db90907

Browse files
authored
Merge pull request #46 from version513/main
Beta for LoE Testnet
2 parents 7aea215 + 46f46dc commit db90907

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+15960
-6294
lines changed

.assets/mainnet_loe.png

189 KB
Loading

.assets/testnet_loe.png

365 KB
Loading

.dockerignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/prod.yml

Lines changed: 0 additions & 57 deletions
This file was deleted.

.github/workflows/tests.yml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
name: Build/Test
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
static-check:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Install protobuf-compiler
20+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
21+
- name: Install Rust
22+
uses: actions-rust-lang/setup-rust-toolchain@v1
23+
with:
24+
components: rustfmt, clippy
25+
- uses: Swatinem/rust-cache@v2
26+
- name: Run clippy
27+
run: cargo clippy -- -D warnings
28+
- name: Run rustfmt
29+
run: cargo fmt --all --check
30+
31+
test-unit:
32+
runs-on: ubuntu-latest
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
backend: ["asm", "ark_asm"]
37+
steps:
38+
- uses: actions/checkout@v2
39+
- name: Install protobuf-compiler
40+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
41+
- name: Install Rust
42+
uses: actions-rust-lang/setup-rust-toolchain@v1
43+
- uses: Swatinem/rust-cache@v2
44+
- name: Run test
45+
env:
46+
RUSTFLAGS: "-D warnings -C target-feature=+bmi2,+adx"
47+
run: cargo test --no-default-features --features ${{ matrix.backend }}
48+
49+
test-integration-dkg:
50+
runs-on: ubuntu-latest
51+
name: dkg
52+
strategy:
53+
fail-fast: false
54+
matrix:
55+
backend: ["asm", "ark_asm"]
56+
scheme: ["pedersen-bls-chained", "bls-unchained-g1-rfc9380", "bls-bn254-unchained-on-g1"]
57+
steps:
58+
- uses: actions/checkout@v2
59+
- name: Install protobuf-compiler
60+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
61+
- name: Install Rust
62+
uses: actions-rust-lang/setup-rust-toolchain@v1
63+
with:
64+
components: rustfmt, clippy
65+
- uses: Swatinem/rust-cache@v2
66+
- name: Run test
67+
env:
68+
DRAND_TEST_SCHEME: ${{ matrix.scheme }}
69+
RUSTFLAGS: "-D warnings -C target-feature=+bmi2,+adx"
70+
run: cargo test --no-default-features --features "test-integration ${{ matrix.backend }}" -- test_with_golang::dkg::all_roles_dkg --exact --show-output
71+
72+
test-integration-chain-follow:
73+
runs-on: ubuntu-latest
74+
name: follow
75+
strategy:
76+
fail-fast: false
77+
matrix:
78+
backend: ["asm", "ark_asm"]
79+
scheme: ["pedersen-bls-chained", "bls-unchained-g1-rfc9380", "bls-bn254-unchained-on-g1"]
80+
steps:
81+
- uses: actions/checkout@v2
82+
- name: Install protobuf-compiler
83+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
84+
- name: Install Rust
85+
uses: actions-rust-lang/setup-rust-toolchain@v1
86+
with:
87+
components: rustfmt, clippy
88+
- uses: Swatinem/rust-cache@v2
89+
- name: Run test
90+
env:
91+
DRAND_TEST_SCHEME: ${{ matrix.scheme }}
92+
RUSTFLAGS: "-D warnings -C target-feature=+bmi2,+adx"
93+
run: cargo test --no-default-features --features "test-integration ${{ matrix.backend }}" -- test_with_golang::chain::follow_chain --exact --show-output
94+
95+
test-integration-chain-sync:
96+
runs-on: ubuntu-latest
97+
name: sync
98+
strategy:
99+
fail-fast: false
100+
matrix:
101+
backend: ["asm", "ark_asm"]
102+
scheme: ["pedersen-bls-chained", "bls-unchained-g1-rfc9380", "bls-bn254-unchained-on-g1"]
103+
steps:
104+
- uses: actions/checkout@v2
105+
- name: Install protobuf-compiler
106+
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler
107+
- name: Install Rust
108+
uses: actions-rust-lang/setup-rust-toolchain@v1
109+
with:
110+
components: rustfmt, clippy
111+
- uses: Swatinem/rust-cache@v2
112+
- name: Run test
113+
env:
114+
DRAND_TEST_SCHEME: ${{ matrix.scheme }}
115+
RUSTFLAGS: "-D warnings -C target-feature=+bmi2,+adx"
116+
run: cargo test --no-default-features --features "test-integration ${{ matrix.backend }}" -- test_with_golang::chain::sync --exact --show-output

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/target
1+
/target

0 commit comments

Comments
 (0)