Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 32e27c9

Browse files
committed
Merge branch 'master' into child_trie_w3_change
2 parents 750cdd8 + feac1d9 commit 32e27c9

File tree

118 files changed

+4841
-3104
lines changed

Some content is hidden

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

118 files changed

+4841
-3104
lines changed

.gitlab-ci.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ variables:
3838
DOCKER_OS: "debian:stretch"
3939
ARCH: "x86_64"
4040
# FIXME set to release
41-
CARGO_UNLEASH_INSTALL_PARAMS: "--version 1.0.0-alpha.8"
41+
CARGO_UNLEASH_INSTALL_PARAMS: "--version 1.0.0-alpha.10"
4242
CARGO_UNLEASH_PKG_DEF: "--skip node node-* pallet-template pallet-example pallet-example-* subkey chain-spec-builder"
4343

4444

@@ -214,6 +214,24 @@ test-frame-staking:
214214
- WASM_BUILD_NO_COLOR=1 time cargo test --release --verbose --no-default-features --features std
215215
- sccache -s
216216

217+
test-frame-examples-compile-to-wasm:
218+
stage: test
219+
<<: *docker-env
220+
variables:
221+
# Enable debug assertions since we are running optimized builds for testing
222+
# but still want to have debug assertions.
223+
RUSTFLAGS: -Cdebug-assertions=y
224+
RUST_BACKTRACE: 1
225+
except:
226+
variables:
227+
- $DEPLOY_TAG
228+
script:
229+
- cd frame/example-offchain-worker/
230+
- cargo +nightly build --target=wasm32-unknown-unknown --no-default-features
231+
- cd ../example
232+
- cargo +nightly build --target=wasm32-unknown-unknown --no-default-features
233+
- sccache -s
234+
217235
test-wasmtime:
218236
stage: test
219237
<<: *docker-env
@@ -578,7 +596,7 @@ publish-to-crates-io:
578596
<<: *docker-env
579597
only:
580598
- tags
581-
- ci-release
599+
- /^ci-release-.*$/
582600
script:
583601
- cargo install cargo-unleash ${CARGO_UNLEASH_INSTALL_PARAMS}
584602
- cargo unleash em-dragons --no-check ${CARGO_UNLEASH_PKG_DEF}

Cargo.lock

Lines changed: 39 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/node-template/pallets/template/src/mock.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl system::Trait for Test {
4040
type Version = ();
4141
type ModuleToIndex = ();
4242
type AccountData = ();
43-
type MigrateAccount = (); type OnNewAccount = ();
43+
type OnNewAccount = ();
4444
type OnKilledAccount = ();
4545
}
4646
impl Trait for Test {

bin/node-template/runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ impl system::Trait for Runtime {
162162
/// This type is being generated by `construct_runtime!`.
163163
type ModuleToIndex = ModuleToIndex;
164164
/// What to do if a new account is created.
165-
type MigrateAccount = (); type OnNewAccount = ();
165+
type OnNewAccount = ();
166166
/// What to do if an account is fully reaped from the system.
167167
type OnKilledAccount = ();
168168
/// The data to be stored in an account.

bin/node/runtime/Cargo.toml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ pallet-randomness-collective-flip = { version = "2.0.0-alpha.4", default-feature
6060
pallet-recovery = { version = "2.0.0-alpha.4", default-features = false, path = "../../../frame/recovery" }
6161
pallet-session = { version = "2.0.0-alpha.4", features = ["historical"], path = "../../../frame/session", default-features = false }
6262
pallet-session-benchmarking = { version = "2.0.0-alpha.4", path = "../../../frame/session/benchmarking", default-features = false, optional = true }
63-
pallet-staking = { version = "2.0.0-alpha.4", features = ["migrate"], path = "../../../frame/staking", default-features = false }
64-
pallet-staking-reward-curve = { version = "2.0.0-alpha.4", path = "../../../frame/staking/reward-curve" }
63+
pallet-staking = { version = "2.0.0-alpha.4", default-features = false, path = "../../../frame/staking" }
64+
pallet-staking-reward-curve = { version = "2.0.0-alpha.4", default-features = false, path = "../../../frame/staking/reward-curve" }
6565
pallet-sudo = { version = "2.0.0-alpha.4", default-features = false, path = "../../../frame/sudo" }
6666
pallet-society = { version = "2.0.0-alpha.4", default-features = false, path = "../../../frame/society" }
6767
pallet-timestamp = { version = "2.0.0-alpha.4", default-features = false, path = "../../../frame/timestamp" }
@@ -135,10 +135,16 @@ std = [
135135
]
136136
runtime-benchmarks = [
137137
"frame-benchmarking",
138+
"frame-support/runtime-benchmarks",
138139
"pallet-balances/runtime-benchmarks",
140+
"pallet-elections-phragmen/runtime-benchmarks",
139141
"pallet-identity/runtime-benchmarks",
140-
"pallet-session-benchmarking",
141142
"pallet-timestamp/runtime-benchmarks",
143+
"pallet-treasury/runtime-benchmarks",
144+
"pallet-session-benchmarking",
145+
"pallet-staking/runtime-benchmarks",
142146
"pallet-vesting/runtime-benchmarks",
147+
"pallet-session-benchmarking",
143148
"pallet-staking/runtime-benchmarks",
149+
"pallet-im-online/runtime-benchmarks",
144150
]

0 commit comments

Comments
 (0)