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

Update to polkadot v0.9.37 #700

Merged
merged 58 commits into from
Feb 16, 2023
Merged
Show file tree
Hide file tree
Changes from 57 commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
94f697e
Update tomls file to polkadot v0.9.36
Jan 31, 2023
f613221
Remove instaciation of pallet contract rpc see: https://github.com/pa…
Jan 31, 2023
89398da
wasmtime feature flag remove see : https://github.com/paritytech/subs…
Jan 31, 2023
3c9309e
Add additionnal config for unsafe feature for pallet contract and rem…
Jan 31, 2023
954725c
Replace reference for Call and Event by RuntimeCall and RuntimeEvent
Jan 31, 2023
b1c9887
Replace Call/Event/Origin by RuntimeCall/RuntimeEvent/RuntimeOrigin
Jan 31, 2023
490b007
Cargo.lock
Jan 31, 2023
b87cd19
update to v0.9.37
Feb 1, 2023
7f9e623
fmt
Feb 1, 2023
b5fd508
Replaced WEIGHT_PER_SECOND by WEIGHT_REF_TIME_PER_SECOND, see : https…
Feb 1, 2023
2f73f8b
Replace Call/Event/Origin by RuntimeCall/RuntimeEvent/RuntimeOrigin
Feb 1, 2023
b460cf8
pallet scheduler update
Feb 1, 2023
25f45a5
Set unstable interface flag for pallet contract to false
Feb 1, 2023
4cea6b4
fmt
Feb 2, 2023
95988c7
Add explicit call index see: https://github.com/paritytech/substrate/…
Feb 3, 2023
951ec47
Add ConstBool importe
Feb 3, 2023
9ffd636
RuntimeEvent
Feb 3, 2023
0216ae3
Pallet contract relative modifications
Feb 3, 2023
e02ab61
RuntimeCall
Feb 3, 2023
0056665
Update import for DispatchCalss
Feb 3, 2023
da04293
fmt
Feb 3, 2023
95a0a21
correct typo
Feb 3, 2023
d4f288f
Update Contract API
Feb 6, 2023
215a98f
Remove max preimage size from pallet preimage config
Feb 6, 2023
f9a7bc1
Update benchmarking files
Feb 8, 2023
a279a0f
update test and mocks
Feb 8, 2023
129f283
Install protobuf-compiler
simonsso Feb 9, 2023
eda5e2e
Update Cargo.toml
Feb 10, 2023
65bd7f1
Install protoc in CI
Feb 10, 2023
f9a23d1
build: use polkadot-primitives without its default features
aliXsed Feb 13, 2023
2095709
Add unwrap for Option<Weight> Contract API
Feb 13, 2023
891951a
fmt
Feb 13, 2023
0eeb37e
build: bring default weight functions from substrate
aliXsed Feb 14, 2023
9a21883
build: update client's service
aliXsed Feb 14, 2023
f76eba8
build: update cli
aliXsed Feb 14, 2023
575363a
build: fix
aliXsed Feb 14, 2023
18fa062
update toml
Feb 14, 2023
ef99e28
update test
Feb 14, 2023
5b4d16e
fmt
Feb 14, 2023
d6399bb
build: fix the build for tests by removing the staking migrations
aliXsed Feb 14, 2023
0d2aeda
build: use new OnRuntimeUpgrade API
aliXsed Feb 14, 2023
5c5adea
build(try-runtime): remove set_temp_storage and get_temp_storage
aliXsed Feb 14, 2023
a03d55a
build(try-runtime): fix
aliXsed Feb 14, 2023
ed37c2a
build: use sp_std in migrations only for try-runtime
aliXsed Feb 14, 2023
39723cf
ci: combine fmt and lint into one step
aliXsed Feb 14, 2023
4c51f6e
ci: use wasm target for clippy as well
aliXsed Feb 14, 2023
5c4b7f1
clippy: remove unnecessary casts in weight files
aliXsed Feb 15, 2023
e937b02
ci(try-runtime): fix the cli command
aliXsed Feb 15, 2023
882c354
ci(try-runtime): fix the create-snapshot command
aliXsed Feb 15, 2023
f8599b0
ci(try-runtime): fix create-snapshot command
aliXsed Feb 15, 2023
dfd9c97
clippy(nodle-parachain): allow too many arguments
aliXsed Feb 15, 2023
f6d6788
docker: install protobuf-compiler
aliXsed Feb 15, 2023
401a96b
ci: fix try-runtime job
aliXsed Feb 15, 2023
a62c184
Update ci.yml
Hounsette Feb 15, 2023
cb44d68
ci: fix the name of try-runtime snapshot file
aliXsed Feb 15, 2023
8f97ebe
Update bench script
simonsso Feb 16, 2023
dc530c3
Update weights
simonsso Feb 16, 2023
d3c0ed1
Update dependecies
simonsso Feb 16, 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
47 changes: 26 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,26 @@ env:
try-runtime-uri: wss://eden-rpc.dwellir.com:443

jobs:
clippy_lint:
lints:
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.nightly }}
components: rustfmt, clippy
target: ${{ env.target }}
components: clippy
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1
- name: Install protobuf-compiler
run: |
sudo apt-get install protobuf-compiler
- name: Clippy
uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -A clippy::type_complexity -A clippy::identity_op -A clippy::boxed_local -D dead_code
toolchain: ${{ env.nightly }}
rustfmt:
runs-on: ubuntu-latest-8-cores
steps:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.nightly }}
components: rustfmt
- name: Rustfmt Check
uses: actions-rust-lang/rustfmt@v1

tests:
runs-on: ubuntu-latest-16-cores
Expand All @@ -49,7 +44,9 @@ jobs:
with:
toolchain: ${{ env.nightly }}
target: ${{ env.target }}

- name: Install protobuf-compiler
run: |
sudo apt-get install protobuf-compiler
- name: Cache cargo registry
uses: actions/cache@v3
with:
Expand Down Expand Up @@ -100,7 +97,9 @@ jobs:
with:
toolchain: ${{ env.nightly }}
target: ${{ env.target }}

- name: Install protobuf-compiler
run: |
sudo apt-get install protobuf-compiler
- name: Run cargo-tarpaulin
uses: actions-rs/[email protected]
with:
Expand Down Expand Up @@ -128,7 +127,9 @@ jobs:
}' | jq '{"result"}[]' >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
id: get_version

- name: Install protobuf-compiler
run: |
sudo apt-get install protobuf-compiler
- name: Install Rust nightly
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
Expand All @@ -140,17 +141,21 @@ jobs:
with:
path: snapshots
key: ${{steps.get_version.outputs.eden_rev}}

- name: Try runtime update snap
- name: Cargo build
run: cargo build --release --features=try-runtime --bin nodle-parachain
- name: Fetch snapshot
if: steps.cachedir.outputs.cache-hit != 'true'
continue-on-error: true
run: |
install -d snapshots
date > snapshots/created_at
cargo run --release --bin nodle-parachain --features=try-runtime try-runtime --execution native --chain ${{ env.try-runtime-chain }} --no-spec-name-check on-runtime-upgrade live --snapshot-path="snapshots/paradis-snapshot-full" -u ${{ env.try-runtime-uri}}
./target/release/nodle-parachain try-runtime --runtime existing -lruntime=debug --chain ${{ env.try-runtime-chain }} create-snapshot "snapshots/eden-snapshot-full" -u ${{ env.try-runtime-uri}}
- name: Run Migration on new snapshot
if: steps.cachedir.outputs.cache-hit != 'true'
run: |
./target/release/nodle-parachain try-runtime --runtime target/release/wbuild/runtime-eden/runtime_eden.wasm -lruntime=debug --chain ${{ env.try-runtime-chain }} on-runtime-upgrade snap -s snapshots/eden-snapshot-full
- name: Try runtime reuse snap
if: steps.cachedir.outputs.cache-hit == 'true'
run: |
cat snapshots/created_at
cargo run --release --bin nodle-parachain --features=try-runtime try-runtime --execution native --chain ${{ env.try-runtime-chain }} --no-spec-name-check on-runtime-upgrade snap --snapshot-path="snapshots/paradis-snapshot-full"


./target/release/nodle-parachain try-runtime --runtime target/release/wbuild/runtime-eden/runtime_eden.wasm --chain ${{ env.try-runtime-chain }} on-runtime-upgrade snap --snapshot-path="snapshots/eden-snapshot-full"
Loading