Skip to content

Commit f29f8b8

Browse files
committed
Replace scheduler in reversible transfers
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * remove caching * Only allow airdrop creators to delete it * Allow creators to claim remain balance when delete * Clean up docs * Remove unsignedValidation, add tests * Remove unnecessary error * Generate weights from the nenchmarking * Use the existing weights template * Use unsigned acc for claims --------- Co-authored-by: illuzen <github.handheld844@passmail.net> feat: Tech Collective for Runtime Upgrades (#12) * feat: Membership configuration * feat: Founders in genesis config * feat: First community test * feat: TxExtension - only members can vote for track 0 * feat: Track 0 for members only without token support validation * feat: Proposals for track 0 limited to tech collective members * fix: TxExt rename in node * feat: Genesis presets - tech collective members * chore: Tracks params update * feat: Separate referenda with submit limited * feat: Separate tracks - ready for test fix * feat: Membership removed * feat: First test for TechCollective * feat: Tests for new collective ready * feat: All tests fixed and cleaned * clean: TxExtension * fix: Review comments + formatting * chore: MaxRankOfClass - additional comments Add windows build to release process (#17) windows takes 30 minutes to release... remove special case for 0.0.0 - just use it (#18) Bump poseidon-resonance to 0.4.0 (#20) * Bump poseidon-resonance to 0.4.0 * Update to 0.5.0 chore: Chain-spec JSON - refreshed (#24) feat: vest airdrop rewards (#22) * Replace vesting pallet * Vest airdrops * Update runtime * Resolve comments * Add insufficient balance check move rusty-crystals to github (#26) * move rusty-crystals to github * poseidon-resonance 0.5.0 CLI Updates (#27) * move rusty-crystals to github * CLI updates * moved test data to file * remove redundant comments * poseidon-resonance 0.5.0 * merge from main * Update readme for new CLI commands Make benchmarks compile (#29) feat: explicit reverser for reversible accounts (#8) * Add explicit reverser for reversible transfers * Make reverser get reserved funds, update benchmarks * Add more tests updated storage hasher for transfer proofs (#25) * updated storage hasher for transfer proofs * minor cleanup * fixed some tests * tests compile now * Pass AccountId for storage hashing (#30) * tests fixed --------- Co-authored-by: illuzen <github.handheld844@passmail.net> Co-authored-by: Dastan <88332432+dastansam@users.noreply.github.com> cargo fmt (#31) applied cargo fmt to codebase Update ci.yml (#32) add cargo fmt check don't cache on linux (#33) prevents out of disk space errors Fix compile errors Run fmt Mostly passing tests
1 parent d0c0b66 commit f29f8b8

116 files changed

Lines changed: 18928 additions & 13666 deletions

File tree

Some content is hidden

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

.github/actions/disk/action.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: free disk space
3+
description: when rust compiling, free up some disk space
4+
5+
runs:
6+
using: composite
7+
steps:
8+
- name: free disk space
9+
uses: jlumbroso/free-disk-space@54081f138730dfa15788a46383842cd2f914a1be # 1.3.1
10+
with:
11+
android: true
12+
dotnet: false
13+
haskell: false
14+
large-packages: false
15+
swap-storage: false

.github/actions/macos/action.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: macos dependencies
3+
description: installs dependencies required to compile the node and runtime on macos
4+
5+
runs:
6+
using: composite
7+
steps:
8+
-
9+
name: rust compilation prerequisites (macos)
10+
if: contains(matrix.os, 'macos')
11+
run: |
12+
brew install protobuf
13+
curl https://sh.rustup.rs -sSf -y | sh
14+
rustup update
15+
rustup toolchain install ${RUSTUP_TOOLCHAIN}
16+
rustup target add wasm32-unknown-unknown \
17+
--toolchain ${RUSTUP_TOOLCHAIN}-aarch64-apple-darwin
18+
rustup component add rustfmt clippy rust-src \
19+
--toolchain ${RUSTUP_TOOLCHAIN}-aarch64-apple-darwin
20+
shell: sh

.github/actions/ubuntu/action.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: ubuntu dependencies
3+
description: installs dependencies required to compile the node and runtime on ubuntu
4+
5+
runs:
6+
using: composite
7+
steps:
8+
-
9+
name: rust compilation prerequisites (ubuntu)
10+
if: contains(matrix.os, 'ubuntu')
11+
run: |
12+
sudo apt-get update -yqq
13+
sudo apt-get install -yqq --no-install-recommends \
14+
libclang-dev \
15+
protobuf-compiler
16+
rustup update
17+
rustup toolchain install ${RUSTUP_TOOLCHAIN}
18+
rustup target add wasm32-unknown-unknown \
19+
--toolchain ${RUSTUP_TOOLCHAIN}-x86_64-unknown-linux-gnu
20+
rustup component add rustfmt clippy rust-src \
21+
--toolchain ${RUSTUP_TOOLCHAIN}-x86_64-unknown-linux-gnu
22+
shell: bash

.github/workflows/ci.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
---
2+
name: continuous integration
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- main
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
env:
15+
CARGO_INCREMENTAL: 0
16+
CARGO_TERM_COLOR: always
17+
RUSTUP_TOOLCHAIN: nightly-2024-12-14
18+
19+
jobs:
20+
quality-control:
21+
runs-on: ${{ matrix.os }}
22+
strategy:
23+
matrix:
24+
os:
25+
- macos-latest
26+
- ubuntu-latest
27+
steps:
28+
-
29+
uses: actions/checkout@v4
30+
-
31+
if: contains(matrix.os, 'ubuntu')
32+
uses: ./.github/actions/disk
33+
-
34+
if: contains(matrix.os, 'ubuntu')
35+
uses: ./.github/actions/ubuntu
36+
-
37+
if: contains(matrix.os, 'macos')
38+
uses: ./.github/actions/macos
39+
-
40+
name: pin
41+
run: rustup override set ${RUSTUP_TOOLCHAIN}
42+
-
43+
if: contains(matrix.os, 'macos')
44+
name: cache
45+
uses: Swatinem/rust-cache@v2
46+
with:
47+
save-if: ${{ github.ref == 'refs/heads/main' }}
48+
-
49+
name: format
50+
run: cargo fmt --all -- --check
51+
timeout-minutes: 5
52+
-
53+
name: compile
54+
run: cargo build --locked --workspace
55+
timeout-minutes: 90
56+
-
57+
name: clippy
58+
run: SKIP_WASM_BUILD=1 cargo clippy --locked --workspace
59+
timeout-minutes: 30
60+
-
61+
name: test
62+
run: SKIP_WASM_BUILD=1 cargo test --locked --workspace
63+
timeout-minutes: 15
64+
-
65+
name: doc
66+
run: SKIP_WASM_BUILD=1 cargo doc --locked --workspace --no-deps
67+
timeout-minutes: 15

0 commit comments

Comments
 (0)