Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to polkadot-v1.0 #195

Merged
merged 65 commits into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
9286cf9
Updated rust toolchain
ToufeeqP Aug 3, 2023
e1aa805
Incorporated upstream changes into frame-system
ToufeeqP Aug 3, 2023
64787cd
Updated packages to use latest support versions
ToufeeqP Aug 7, 2023
098b5d0
Removed uncles & deprecated GenesisConfig
ToufeeqP Aug 7, 2023
dc152df
wip: weights v2 & fixed system pallet tests
ToufeeqP Aug 7, 2023
91f9701
Updated mocks with new frame-system configs
ToufeeqP Aug 8, 2023
8326e83
wip: Added ExtendedBlock with frame & da headers
ToufeeqP Aug 9, 2023
f056800
Updated weights to v2
ToufeeqP Aug 9, 2023
f6b286d
Updated da control mocks to fix tests
ToufeeqP Aug 9, 2023
1019bdf
Updated nomad-updater-manager mocks to fix tests
ToufeeqP Aug 9, 2023
2268485
Updated nomad-home mocks
ToufeeqP Aug 9, 2023
2233d60
Fixed system benchmarkings
ToufeeqP Aug 9, 2023
829b666
fmt & refactor
ToufeeqP Aug 9, 2023
ebca3a7
Added frame-executive as local dep to patch
ToufeeqP Aug 9, 2023
87c5245
fmt fix
ToufeeqP Aug 10, 2023
b7ecdcc
Updated pallet configs
ToufeeqP Aug 11, 2023
cbc7220
Added code comment for rust bug
ToufeeqP Aug 16, 2023
20e6a72
commented nomad-da-bridge tests
ToufeeqP Aug 16, 2023
04925d0
Removed unintended std feature gate on imports
ToufeeqP Aug 17, 2023
968fd27
Updated runtime configs
ToufeeqP Aug 17, 2023
0d99a72
pallets: implement for in
ToufeeqP Aug 21, 2023
9e555bc
pallets: implement `Default` for `GenesisConfig` in `no_std`
ToufeeqP Aug 21, 2023
4dd02a4
Merge branch 'toufeeq/polkadot-v1.0' of https://github.com/availproje…
ToufeeqP Aug 21, 2023
096c487
Added missing configs & functions to runtime
ToufeeqP Aug 22, 2023
3c4f702
Temp: removed da-bridge from runtime
ToufeeqP Aug 22, 2023
23c42cc
Fixed runtime tests
ToufeeqP Aug 22, 2023
b2b64bf
Fixed kate-rpc's
ToufeeqP Aug 22, 2023
8142d01
Fixed compile errors of node service
ToufeeqP Aug 23, 2023
c349071
Merge branch 'develop' into toufeeq/polkadot-v1.0
ToufeeqP Aug 23, 2023
c3f19df
Updated kate-rpc to use default HeaderExtension
ToufeeqP Aug 23, 2023
dacf532
Added header_builder hosted function back
ToufeeqP Aug 23, 2023
aa4fa1b
clippy fixes
ToufeeqP Aug 23, 2023
efc478b
Temporarily removed frame-executive tests
ToufeeqP Aug 23, 2023
d77a7ad
Fixed frame-system try-runtime feature
ToufeeqP Aug 24, 2023
c902fc1
Fixed various features of the workspace
ToufeeqP Aug 24, 2023
9c27cdd
Merge branch 'develop' into toufeeq/polkadot-v1.0
ToufeeqP Aug 25, 2023
d5c9b94
refactoring
ToufeeqP Aug 30, 2023
738b113
Merge branch 'develop' into toufeeq/polkadot-v1.0
ToufeeqP Aug 30, 2023
035a170
Moved (de)serialization of BlockLength to no_std
ToufeeqP Aug 30, 2023
85f54c5
Updated beefy-merkle-tree name
ToufeeqP Aug 31, 2023
3a65b80
Changed Runtime from enum to struct everywhere
ToufeeqP Aug 31, 2023
3be7b05
Re-introduced da-bridge to runtime: welcome back:)
ToufeeqP Aug 31, 2023
4e7869a
Fixed da-bridge pallet benchmarks
ToufeeqP Aug 31, 2023
70ffdd4
Updated RPC port
ToufeeqP Sep 1, 2023
6f58179
Added troubleshooting to readme
ToufeeqP Sep 1, 2023
b8c4863
Commented block_length_proposal from CI e2e
ToufeeqP Sep 1, 2023
7a30978
Merge branch 'develop' into toufeeq/polkadot-v1.0
ToufeeqP Sep 1, 2023
0df2ba8
fmt: weights to v2
ToufeeqP Sep 1, 2023
811cb12
code cleaning & clippy fixes
ToufeeqP Sep 1, 2023
0a62a32
Updated multiplier to check for empty block
ToufeeqP Sep 4, 2023
238a344
Updated api_dev of avail-subxt
ToufeeqP Sep 4, 2023
62878d8
Enabled submit_block_length_proposal test
ToufeeqP Sep 4, 2023
d9e0bb4
bumped spec_version to 12
ToufeeqP Sep 6, 2023
09a681e
Added FRAME pallet migrations
ToufeeqP Sep 7, 2023
60852b4
apply review suggestions
ToufeeqP Sep 7, 2023
a1c246f
Upgrade/polkadot v1.0 (#218)
Leouarz Sep 9, 2023
268456e
merge upstream
Leouarz Sep 9, 2023
133ea82
merge upstream, generate subxt metadata, add block to scheduler migra…
Leouarz Sep 9, 2023
1924710
remove extra sneaky lines
Leouarz Sep 9, 2023
aed79d6
format
Leouarz Sep 9, 2023
dcdfdd7
Moved from nightly version to latest stable
markopoloparadox Sep 11, 2023
568a08f
fmt
ToufeeqP Sep 11, 2023
4fa37f6
Reverted formatting
markopoloparadox Sep 11, 2023
ca9af86
Changed the CI toolchain
markopoloparadox Sep 11, 2023
b0c8877
Merge from develop branch
markopoloparadox Sep 13, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 27 additions & 30 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main
- develop
env:
BUILD_TOOLCHAIN: nightly-2022-11-15
BUILD_TOOLCHAIN: stable-2023-08-24
CARGO_SCCACHE_COMMIT: bed5571c
SCCACHE_DIR: /home/runner/.cache/cargo-sccache-bed5571c
SCCACHE_BIN: /home/runner/.cache/cargo-sccache-bed5571c/bin/sccache
Expand All @@ -23,13 +23,13 @@ jobs:
- name: Install nightly ${{ env.BUILD_TOOLCHAIN }}
uses: actions-rs/toolchain@v1
with:
# NOTE: Until https://github.com/actions-rs/toolchain/pull/209 is merged,
# this should be synced with rust-toolchain.toml file.
# After merge, this section should be removed.
# toolchain: nightly-2022-11-25
toolchain: ${{ env.BUILD_TOOLCHAIN }}
components: rustfmt
profile: minimal
# NOTE: Until https://github.com/actions-rs/toolchain/pull/209 is merged,
# this should be synced with rust-toolchain.toml file.
# After merge, this section should be removed.
# toolchain: stable-2023-08-24
toolchain: ${{ env.BUILD_TOOLCHAIN }}
components: rustfmt
profile: minimal

- name: Check Avail code formatting
uses: actions-rs/cargo@v1
Expand All @@ -55,20 +55,20 @@ jobs:
with:
path: ${{ env.SCCACHE_DIR }}
key: ${{ runner.OS }}-sccache-bin-${{ env.CARGO_SCCACHE_COMMIT }}-v1

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
version: "3.x"

# With rustup's nice new toml format, we just need to run rustup show to install the toolchain
# https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659
- name: Setup Rust toolchain
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
rustup default ${{ env.BUILD_TOOLCHAIN }}
rustup target add wasm32-unknown-unknown --toolchain ${{ env.BUILD_TOOLCHAIN }}
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
rustup default ${{ env.BUILD_TOOLCHAIN }}
rustup target add wasm32-unknown-unknown --toolchain ${{ env.BUILD_TOOLCHAIN }}

- name: SCCache
run: |
Expand All @@ -85,7 +85,7 @@ jobs:
$SCCACHE_BIN -s
echo "RUSTC_WRAPPER=$SCCACHE_BIN" >> $GITHUB_ENV

- name: Build node
- name: Build node
run: cargo build --release -p data-avail

- name: Upload data-avail binary
Expand All @@ -98,7 +98,7 @@ jobs:
run: ${{ env.SCCACHE_BIN }} --show-stats

- name: Check other features
run: cargo check --release --workspace --features "runtime-benchmarks try-runtime" -p data-avail
run: cargo check --release --workspace --features "runtime-benchmarks try-runtime" -p data-avail

unit_tests:
runs-on: ubuntu-latest
Expand All @@ -117,26 +117,26 @@ jobs:
sudo apt update
sudo apt install -y build-essential
sudo apt install -y git clang curl libssl-dev protobuf-compiler

# Restore cache from `build`
- uses: actions/cache/restore@v3
with:
path: ${{ env.SCCACHE_DIR }}
path: ${{ env.SCCACHE_DIR }}
key: ${{ runner.OS }}-sccache-bin-${{ env.CARGO_SCCACHE_COMMIT }}-v1

- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
version: '3.x'
version: "3.x"

# With rustup's nice new toml format, we just need to run rustup show to install the toolchain
# https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659
- name: Setup Rust toolchain
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
rustup default ${{ env.BUILD_TOOLCHAIN }}
rustup target add wasm32-unknown-unknown --toolchain ${{ env.BUILD_TOOLCHAIN }}
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
rustup default ${{ env.BUILD_TOOLCHAIN }}
rustup target add wasm32-unknown-unknown --toolchain ${{ env.BUILD_TOOLCHAIN }}

- name: SCCache
run: |
Expand Down Expand Up @@ -195,10 +195,10 @@ jobs:
# https://github.com/actions-rs/toolchain/issues/126#issuecomment-782989659
- name: Setup Rust toolchain
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
rustup default ${{ env.BUILD_TOOLCHAIN }}
rustup target add wasm32-unknown-unknown --toolchain ${{ env.BUILD_TOOLCHAIN }}
curl https://sh.rustup.rs -sSf | sh -s -- -y
source "$HOME/.cargo/env"
rustup default ${{ env.BUILD_TOOLCHAIN }}
rustup target add wasm32-unknown-unknown --toolchain ${{ env.BUILD_TOOLCHAIN }}

- name: SCCache
run: |
Expand Down Expand Up @@ -237,8 +237,5 @@ jobs:
# cargo run --release --manifest-path avail-subxt/Cargo.toml --example democracy_external
# cargo run --release --manifest-path avail-subxt/Cargo.toml --example submit_block_length_proposal_democracy



- name: Display SCCache Stats
run: ${{ env.SCCACHE_BIN }} --show-stats

10 changes: 0 additions & 10 deletions .rustfmt.toml

This file was deleted.

Loading
Loading