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 ChainX v4.0.0 #605

Merged
merged 46 commits into from
Feb 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
383a414
Remove VestingAccount
icodezjb Jan 27, 2022
e610a6b
Fix chain specs
icodezjb Jan 28, 2022
825583c
Update rust-toolchain
icodezjb Jan 28, 2022
796d923
Update make test and benchmark
icodezjb Jan 28, 2022
5812a95
Update CI
icodezjb Jan 28, 2022
43e8b2e
Run `make format` and `make clippy`
icodezjb Jan 28, 2022
8019104
Update CI
icodezjb Jan 28, 2022
bebe98f
Quick fix
icodezjb Jan 28, 2022
1495668
Support try-runtime
icodezjb Jan 28, 2022
d36bd18
Remove pallet-randomness-collective-flip
icodezjb Feb 7, 2022
59b36b5
Migrate elections-phragmen
icodezjb Feb 7, 2022
99f71bb
Migrate PalletVersion to StorageVersion
icodezjb Feb 8, 2022
8849287
Migrate pallet-babe epoch config
icodezjb Feb 8, 2022
8cb536b
Migrate frame-system AccountInfo to AccountInfoWithTripleRefCount
icodezjb Feb 8, 2022
1462973
Migrate prefix `GrandpaFinality` -> `Grandpa`
icodezjb Feb 8, 2022
f1544a8
Migrate prefix `Instance1Collective` -> `Council`
icodezjb Feb 9, 2022
f425853
Migrate prefix `Instance2Collective` -> `TechnicalCommittee`
icodezjb Feb 9, 2022
c08d9f2
Migrate prefix `Instance1Membership` -> `TechnicalMembership`
icodezjb Feb 9, 2022
c66a7f9
Migrate pallet-tips prefix from `Treasury` -> `Tips`
icodezjb Feb 9, 2022
b2937d2
Migrate pallet-bounties prefix from `Treasury` -> `Bounties`
icodezjb Feb 9, 2022
5d42f05
Migrate prefix from `PhragmenElection` -> `Elections`
icodezjb Feb 9, 2022
b1d1309
Revert `dev` spec_name
icodezjb Feb 10, 2022
0d6a0f0
Confirm migrations order
icodezjb Feb 15, 2022
62942a3
Use ChainX substrate patch for system migration
icodezjb Feb 15, 2022
abf3d4c
Run `make format`
icodezjb Feb 15, 2022
a7e04e9
Reset spec_name `dev` -> `chainx`
icodezjb Feb 22, 2022
c659322
Add migrations.rs for mainnet and testnet
icodezjb Feb 23, 2022
d11445e
Bump ChainX version to `4.0.0`
icodezjb Feb 23, 2022
756a26a
Bump ChainX version to `4.0.0`
icodezjb Feb 23, 2022
6e13362
Update governance parameters for dev and malan
icodezjb Feb 23, 2022
0e89e85
Update malan chainspec
icodezjb Feb 23, 2022
3b498d9
Quick fix
icodezjb Feb 23, 2022
e30c9d3
Quick fix
icodezjb Feb 23, 2022
ce53dc3
Update generate_keys.sh
icodezjb Feb 23, 2022
ad5c567
Adjust malan parameters
icodezjb Feb 24, 2022
237a097
Update malan chainspec
icodezjb Feb 24, 2022
370e792
Update malan chainspec
icodezjb Feb 24, 2022
5470c73
Update malan chainspec
icodezjb Feb 24, 2022
b5bf153
Rename malan testnet name
icodezjb Feb 24, 2022
ca89dc5
Add bootnodes url
icodezjb Feb 24, 2022
5c9e40b
Run `make format`
icodezjb Feb 24, 2022
1d856dc
Regenerate weights
icodezjb Feb 24, 2022
d0b376f
Disable pre_release.yml CI
icodezjb Feb 24, 2022
4101b36
Regenerate benchmark weights
icodezjb Feb 24, 2022
dc3d1ba
Run `make clippy`
icodezjb Feb 24, 2022
e42975a
Run `make format`
icodezjb Feb 24, 2022
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
136 changes: 31 additions & 105 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: ci

on: [push, pull_request]
name: CI

on:
push:
branches:
- master
- develop-2022
pull_request:
branches:
- master
- develop-2022

env:
CARGO_INCREMENTAL: 0
Expand All @@ -10,112 +18,30 @@ env:
RUSTUP_MAX_RETRIES: 10

jobs:
rustfmt:
name: Rustfmt
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
# NOTE: Do not forget to also update the toolchain in Dockerfile when updating the toolchain here.
toolchain: [nightly-2021-06-29]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt

- name: Format
run: cargo fmt -- --check

test:
name: Test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
toolchain: [nightly-2021-06-29]

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: wasm32-unknown-unknown
profile: minimal
override: true

- if: matrix.os == 'ubuntu-latest'
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/

- uses: actions/cache@v2
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Test
run: cargo test --workspace -- --test-threads 1

- name: Compile
run: cargo test --no-run

clippy:
name: Clippy
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
toolchain: [nightly-2021-06-29]

Checks:
name: Fmt-Clippy-Test-Benchmark
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: wasm32-unknown-unknown
profile: minimal
override: true
components: rust-src, clippy
- uses: Swatinem/rust-cache@v1.3.0

- name: Clippy
run: cargo clippy
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-11-07
components: rustfmt, rust-src, clippy
target: wasm32-unknown-unknown
override: true

runtime_benchmarks:
name: Runtime Benchmarks
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
toolchain: [nightly-2021-06-29]
- name: 1-Format
run: cargo fmt --all -- --check

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: 2-Clippy
run: make clippy

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
target: wasm32-unknown-unknown
profile: minimal
override: true
- name: 3-Test
run: make test

- name: Runtime benchmarks
run: cargo test --no-run --features runtime-benchmarks
- name: 4-Benchmark
run: make benchmark
2 changes: 1 addition & 1 deletion .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
- 'pre-v*' # Push events to matching v*, i.e. v1.0, v20.15.10

name: Create Pre-release

Expand Down
Loading