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

Polkadot0.9.42 #748

Merged
merged 49 commits into from
Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
333b076
Update toochain to stable
simonsso May 16, 2023
ff320b3
toml config
simonsso May 16, 2023
78e5a26
Auto update, pending dependency from ORML
simonsso May 16, 2023
3b729b5
Use sha as prerelease for owrl
simonsso May 22, 2023
536c3d1
Merge branch 'master' into dev/20230516-stable-rust
simonsso May 22, 2023
5db1e2e
Merge branch 'master' into dev/20230516-stable-rust
simonsso May 22, 2023
f13b23e
Merge branch 'dev/20230516-stable-rust' of github.com:NodleCode/chain…
simonsso May 22, 2023
3a0c734
Some changes before the typhoon
simonsso May 25, 2023
d6119e2
Pallet contracts
simonsso May 25, 2023
f1394c5
Build deps
simonsso May 25, 2023
fccdc1b
https://github.com/paritytech/substrate/pull/12951
simonsso May 25, 2023
adfc76a
Update rust-toolchain.toml
simonsso May 26, 2023
61beeb2
Balance refactor
simonsso May 26, 2023
657410c
Update changes in 0.9.42
simonsso May 29, 2023
ae99aaf
Merge branch 'master' into dev/20230516-stable-rust
simonsso May 29, 2023
afbf2a2
Runtime benchmarks
simonsso May 29, 2023
b761d45
Merge branch 'dev/20230516-stable-rust' of github.com:NodleCode/chain…
simonsso May 29, 2023
4de3ed2
Compile tests
simonsso May 29, 2023
fabfe3f
cargo clippy --fix --allow-dirty
simonsso May 29, 2023
599ce37
Silence clippy warning
simonsso May 29, 2023
8b07e27
Auto reformat
simonsso May 29, 2023
025f927
Remove depricated WasmExecutor::new()
simonsso May 29, 2023
7e84dfa
Failing tests
simonsso May 29, 2023
82d5d16
Pallet reserve tests
simonsso May 30, 2023
6266bdd
Reserve test cases, honour existential deposit
simonsso May 30, 2023
f6b94cc
ORML depenendecy URL
simonsso May 30, 2023
0dc93a1
Update template
simonsso May 30, 2023
51e64e4
Rerun benchmarks
simonsso May 30, 2023
b6612d1
Clippy auto fix
simonsso May 30, 2023
aa076f6
Merge remote-tracking branch 'origin/master' into dev/20230516-stable…
simonsso May 31, 2023
c67d922
Initial deposit in genesis block
simonsso May 31, 2023
3336dbe
Auto reformat
simonsso May 31, 2023
0522a98
fix(pallet-reserve): benchmark test
aliXsed Jun 6, 2023
864e110
Change to stable compiler and update benchmarks
simonsso Jun 6, 2023
fd1c4a5
CI Toolchain stable
simonsso Jun 6, 2023
a4abe36
Cargo update
simonsso Jun 15, 2023
6a4fee0
Update benchmarks
simonsso Jun 15, 2023
e662596
Clippy update
simonsso Jun 15, 2023
dddcffa
Update after review.
simonsso Jun 15, 2023
6e77d33
Burn dust
simonsso Jun 16, 2023
615d38f
Clippy reformat
simonsso Jun 16, 2023
6977a1c
Merge remote-tracking branch 'origin/master' into dev/20230516-stable…
simonsso Jun 16, 2023
3102793
Auto reformat
simonsso Jun 16, 2023
d7c3646
Remove deprecated
simonsso Jun 16, 2023
a39e93b
Keep original implementaion but anotate clippy
simonsso Jun 16, 2023
48b352d
Try runtime url and chachname
simonsso Jun 19, 2023
5a6dbc0
Revert "Try runtime url and chachname"
simonsso Jun 19, 2023
cfa70bf
CI action
simonsso Jun 20, 2023
c1f6764
Merge branch 'master' into dev/20230516-stable-rust
simonsso Jun 20, 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
23 changes: 9 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

env:
nightly: nightly-2023-03-08
toolchain: stable
target: wasm32-unknown-unknown
try-runtime-chain: dev
try-runtime-uri: wss://eden-rpc.dwellir.com:443
Expand All @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.nightly }}
toolchain: ${{ env.toolchain }}
components: rustfmt, clippy
target: ${{ env.target }}
- name: Rustfmt Check
Expand All @@ -31,7 +31,7 @@ jobs:
uses: actions-rs-plus/clippy-check@v2
with:
args: --all-features -- -A clippy::type_complexity -A clippy::identity_op -A clippy::boxed_local -D dead_code
toolchain: ${{ env.nightly }}
toolchain: ${{ env.toolchain }}

tests:
runs-on: ubuntu-latest-8-cores
Expand All @@ -40,7 +40,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.nightly }}
toolchain: ${{ env.toolchain }}
target: ${{ env.target }}
- name: Install protobuf-compiler
run: |
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.nightly }}
toolchain: ${{ env.toolchain }}
target: ${{ env.target }}
- name: Install protobuf-compiler
run: |
Expand Down Expand Up @@ -111,16 +111,16 @@ jobs:
"method": "system_version",
"params": [],
"id": 1
}' | jq '{"result"}[]' >> $GITHUB_OUTPUT
}' | jq '{"result"}[]'| sed 's/^"/"eden-/' >> $GITHUB_OUTPUT
cat $GITHUB_OUTPUT
id: get_version
- name: Install protobuf-compiler
run: |
sudo apt-get install protobuf-compiler
- name: Install Rust nightly
- name: Install Rust stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.nightly }}
toolchain: ${{ env.toolchain }}
target: ${{ env.target }}
- name: Cache a dir
uses: actions/cache@v3
Expand All @@ -137,12 +137,7 @@ jobs:
install -d snapshots
date > snapshots/created_at
./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 --checks=all snap -s snapshots/eden-snapshot-full
- name: Try runtime reuse snap
if: steps.cachedir.outputs.cache-hit == 'true'
run: |
cat snapshots/created_at
./target/release/nodle-parachain try-runtime --runtime target/release/wbuild/runtime-eden/runtime_eden.wasm --chain ${{ env.try-runtime-chain }} on-runtime-upgrade --checks=all snap --snapshot-path="snapshots/eden-snapshot-full"
./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 --checks=all snap -s snapshots/eden-snapshot-full
2 changes: 1 addition & 1 deletion .maintain/external_pallet_weights.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#![allow(unused_imports)]

use frame_support::{traits::Get, weights::{Weight}};
use sp_std::marker::PhantomData;
use core::marker::PhantomData;

/// Weight functions for `{{pallet}}`.
pub struct WeightInfo<T>(PhantomData<T>);
Expand Down
4 changes: 2 additions & 2 deletions .maintain/internal_pallet_weights.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#![allow(unused_imports)]

use frame_support::{traits::Get, weights::{constants::RocksDbWeight, Weight}};
use sp_std::marker::PhantomData;
use core::marker::PhantomData;

/// Weight functions needed for {{pallet}}.
pub trait WeightInfo {
Expand Down Expand Up @@ -112,4 +112,4 @@ impl WeightInfo for () {
{{/each}}
}
{{/each}}
}
}
4 changes: 2 additions & 2 deletions .maintain/xcm.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#![allow(unused_imports)]

use frame_support::{traits::Get, weights::Weight};
use sp_std::marker::PhantomData;
use core::marker::PhantomData;

/// Weights for `{{pallet}}`.
pub struct WeightInfo<T>(PhantomData<T>);
Expand Down Expand Up @@ -65,4 +65,4 @@ impl<T: frame_system::Config> WeightInfo<T> {
{{/each}}
}
{{/each}}
}
}
2 changes: 0 additions & 2 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,3 @@ edition = "2021"
reorder_imports = true
hard_tabs = true
max_width = 120
comment_width = 100
wrap_comments = true
aliXsed marked this conversation as resolved.
Show resolved Hide resolved
Loading