yjh
472b5746e5
extract some grandpa types to Primitives crate ( #12208 )
...
* extract some grandpa types to primitives
* fmt
* fmt
2022-09-12 21:34:43 +00:00
Kian Paimani
967d790d5f
Expose some of the staking miner types over metadata ( #12245 )
...
* Expose some of the staking miner types over metadata
* Update frame/election-provider-multi-phase/src/lib.rs
Co-authored-by: Emily Ostbo <47109040+EmilyOstbo@users.noreply.github.com >
Co-authored-by: Emily Ostbo <47109040+EmilyOstbo@users.noreply.github.com >
2022-09-12 18:10:32 +00:00
Vlad
66e9f4925a
Don't run cargo-check-benches for master based downstream staging pipelines ( #12233 )
2022-09-12 20:48:10 +03:00
Daniel Shiposha
7679d0619d
Add ConstFeeMultiplier to the transaction payment pallet ( #12222 )
...
* fix: FeeMultiplierUpdate
* fix: cargo fmt
* fix: rustdoc
* Revert "fix: rustdoc"
This reverts commit 96b6ad80a4cd4d856cf5a830889858c4dd4c385b.
* Revert "fix: cargo fmt"
This reverts commit 13016527bdbc53d9484642d6b52430550c0efc55.
* Revert "fix: FeeMultiplierUpdate"
This reverts commit 2cbddd0b85e0293d0eeda859807ddf70cee29067.
* feat: add ConstFeeMultiplier
* fix: use cConstFeeMultiplier in the template node
2022-09-12 16:37:27 +00:00
Kian Paimani
113727950b
Fuzz testing for nomination pools ( #12002 )
...
* some additional tests and stuff
* make sanity public
* add some sort of fuzz test for pools
* breaks every now and then
* breaks every now and then
* IT WORKS AND PASSES 100k TESTS
* cleanup
* safe id addition
* fix assert_eq_error_rate
* Update frame/nomination-pools/src/tests.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/nomination-pools/src/tests.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* add some doc
* Fix
* ".git/.scripts/fmt.sh" 1
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
2022-09-12 14:27:11 +00:00
Mara Robin B
db0fc60344
update weights (sync with v0.9.29) ( #5989 )
...
* kusama: update weights
* polkadot: update weights
* westend: update weights
* rococo: update weights
* fixup
* revert block weights
2022-09-12 11:48:27 +00:00
Bastian Köcher
b356a5589a
Remove native call ( #12201 )
...
* Remove native call
With the recent introduction of staging runtime apis the native call wasn't supported anymore. This
removes the entire support for this as it is not used anymore.
* FMT
* Fix benchmarks
* FIX ui tests
2022-09-12 12:25:56 +02:00
Muharem Ismailov
981ab19d54
runtimes version to 9290 ( #1612 )
...
* runtimes version to 9290
* No need to bump shell
Co-authored-by: Giles Cope <gilescope@gmail.com >
2022-09-12 10:12:06 +00:00
dependabot[bot]
8b5c977efa
Bump url from 2.3.0 to 2.3.1 ( #1608 )
...
Bumps [url](https://github.com/servo/rust-url ) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.3.0...v2.3.1 )
---
updated-dependencies:
- dependency-name: url
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-10 22:23:34 +02:00
Bastian Köcher
5647e71947
construct_runtime: Fix generation of types behind features ( #12229 )
...
* construct_runtime: Fix generation of types behind features
With the recent addition of supporting features in `construct_runtime!` there was a bug overseen.
The `AllPalletsWithSystem` etc type declarations would be declared twice when a certain was enabled.
The problem was that in the macro we didn't feature gate the types that should be declared when
there is no feature enabled. This pull request now takes care of feature gating this type behind
`all(#( not(feature) ))`. So, these types will only be enabled if no of the configured features is enabled.
* Fix tests
* FMT
2022-09-10 21:50:59 +02:00
Kian Paimani
69aefab456
remove stale polkadot call filter ( #5969 )
...
* Remove stale polkadot call filter
* fix build
* really fix it
* unused import
* Fix
Co-authored-by: parity-processbot <>
2022-09-09 15:24:34 +00:00
Mara Robin B
1acc3fa150
Sync versions with current release (v0.9.29) ( #5982 )
...
* Bump transaction_version for westend
* Bump transaction_version for rococo
* Bump transaction_version for kusama
* Bump transaction_version for polkadot
* Bump spec_version to 9290
* Bump crate versions
2022-09-09 11:24:06 +00:00
Muharem Ismailov
00babd8eeb
Common version pattern for Collectives runtime ( #1606 )
2022-09-09 08:32:30 +00:00
Mira Ressel
fc9848ce0d
Add missing metadata specs to crate manifests ( #12221 )
...
Some crates were missing repository or description specs, which are
required for publishing crates with cargo unleash.
2022-09-08 18:50:31 +02:00
MOZGIII
c40ae08641
Update ss58-registry ( #12220 )
2022-09-08 16:37:23 +00:00
Hector Bulgarini
bb680c093c
Removing without_storage_info from scored-pool pallet. ( #11996 )
...
* Removing without_storage_info from scored-pool pallet.
* Addressing PR feedback
* typo
* typo
* Addressing PR comments and formatting code
* Removing unwanted import
* Adding a map_err
* cargo fmt
Co-authored-by: parity-processbot <>
2022-09-08 15:57:42 +00:00
Alexander Theißen
5afe00d89c
Upgrade wasm crate dependencies ( #12173 )
...
* Upgrade wasm crate dependencies
* New wasmi version changed error output a bit
* ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
* ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
Co-authored-by: command-bot <>
2022-09-08 12:48:19 +00:00
Vlad
6c5d4668d0
Fully remove rusty-cachier from the node-bench-regression-guard job ( #11904 )
...
Co-authored-by: Alexander Samusev <41779041+alvicsam@users.noreply.github.com >
2022-09-08 15:35:44 +03:00
Adrian Catangiu
cf18fed678
zombienet: add BEEFY justifications import test ( #5855 )
...
* zombienet: add BEEFY justifications import test
* bump zombienet image version
* zombienet: can't retrieve metrics when node paused
* bump zombienet image version to v1.2.54
Signed-off-by: acatangiu <adrian@parity.io >
2022-09-08 15:17:46 +03:00
Andronik
c79dd8751c
disputes rewards ( #5862 )
...
* refactor backing points to only reward active set
* impl disputes::RewardValidators
* enable rewards on westend, kusama, polkadot
* fmt
* make dispute points same as backing
* disable on polkadot for now
2022-09-08 13:36:01 +02:00
Chris Sosnin
ec26fbdb85
pvf-checker: enable subsystem on all chains ( #5977 )
...
* Enable pvf checker on all chains
* Disable pvf checker for non-authorities
2022-09-08 13:33:03 +02:00
Ignacio Palacios
7f7f96a208
Update Rococo to mirror Kusama ( #5617 )
...
* upgrade to kusama base
* rollback epoch and clean up
* Substitue DOLLARS with UNITS
* money constatns to mirror Kusama
* fixing typo in test
* scheduler+collective+membership+preimage
* treasury+democracy+bounties+child_bounties+society
* tips+claim+identity+elections_phragmen+vesting
* recovery+gilt
* proxy+slot+auction+registar+crowdloan
* babe+epoch_time modificaction
* xcm_config
* xcm_config fix
* constants
* fix conflicts 2
* fmt
* update xcm_config
* revert xcm_config change
* fixing benchmarks
* cargo.lock
* Revert "babe+epoch_time modificaction"
This reverts commit 663cb0292c42c8a084a8c1c36cb966389576989b.
* fix benchamrks 2
* fix benchmarks 3
* typos
* miscelaneous
* fix constants test
* rollback comments
* rollback lease period
* fmt
* add ROC to spellcheck dictionary
* fix cargo.toml + fixes
* remove TODOs
* nit fix
* weights 1.5
* Bumping number of perm/temp slots available
Co-authored-by: al3mart <alejandro@parity.io >
Co-authored-by: alvicsam <alvicsam@gmail.com >
2022-09-08 11:20:34 +00:00
Boluwatife Bakre
3ec4d13e9f
Use parameter_types instead of thread_local for test-setup ( #12036 )
...
* Edit to Assets. parameter_types
* fixes
* Test Fixes. WIP
* Edits to pallet-aura
* Camel Case
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Implementation of mutate fn
* update to pallet-aura
* Update to frame-system. Fixes
* Update to frame-support-test. CamelCases
* Updates to frame- contracts, offences, staking, bounties, child bounties
* Edit to mutate fn. Changes to frame-contracts. CamelCase pallet-aura
* Edits to frame-contracts & executive
* cargo +nightly fmt
* unused import removed
* unused import removed
* cargo +nightly fmt
* minor adjustment
* updates
* updates
* cargo +nightly fmt
* cargo +nightly fmt
* take fn implemented
* update
* update
* Fixes to CallFilter
* cargo +nightly fmt
* final fixes
* Default changed to $value
* Update frame/support/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-09-08 10:46:25 +00:00
Bastian Köcher
6bb7bcda2a
Update Substrate ( #5981 )
2022-09-08 09:50:04 +00:00
Bastian Köcher
bec123a50f
Upgrade wasmtime to 0.40.0 ( #12096 )
...
* Upgrade wasmtime to 0.40.0
* ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
* Update in the other Cargo.toml
* ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
Co-authored-by: command-bot <>
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-09-08 10:57:23 +02:00
Bastian Köcher
972ac424f0
pallet-identity: Be more paranoid ;) ( #12170 )
...
* pallet-identity: Be more paranoid ;)
Check that a registrar is providing judgement for the correct identity.
* Fixes
* Fix alliance
* 🤦
* Fixes
* ...
2022-09-08 10:52:25 +02:00
Amar Singh
49397d9a79
Mock epoch index and randomness in SproofBuilder (for testing) ( #1594 )
...
* minimal babe randomness in sproof builder
* fix indexing
* fix index and clean comment
* use current para block for epoch and randomness
* epoch is para block randomness is relay block
* fix
* make more configurable but keep defaults
* fix export
* fix
* flatten
* better field names
* Update primitives/parachain-inherent/src/mock.rs
* Update primitives/parachain-inherent/src/mock.rs
* FMT
* FIX
* fmt
* Update primitives/parachain-inherent/src/mock.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-09-08 10:38:56 +02:00
Bastian Köcher
a23aea6f81
Service: Use weak dependency features ( #5966 )
...
* Service: Use weak dependency features
* Set rust version
2022-09-08 10:32:43 +02:00
Keith Yeung
11b18e89c6
Companion for paritytech/substrate#12183 ( #1601 )
...
* Companion for paritytech/substrate#12183
* Fixes
* Update pallets/xcmp-queue/src/lib.rs
* Update pallets/xcmp-queue/src/lib.rs
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: parity-processbot <>
2022-09-08 05:29:53 +00:00
Keith Yeung
ef3b001b4e
Companion for paritytech/substrate#12183 ( #5971 )
...
* Companion for paritytech/substrate#12183
* Fixes
* Fixes
* Fixes
* cargo fmt
* Fixes
* Fixes
* Fixes
* cargo fmt
* Update runtime/parachains/src/paras_inherent/mod.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2022-09-08 05:05:03 +00:00
Keith Yeung
6ce4d45175
Remove Ord impl for Weights V2 and add comparison fns ( #12183 )
...
* Remove Ord impl for Weights V2 and add comparison fns
* Remove TODO
* Update frame/multisig/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/election-provider-multi-phase/src/unsigned.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove unused import
* cargo fmt
* Fix tests
* Fix more tests
* cargo fmt
* Fix more tests
* Update frame/contracts/src/wasm/mod.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update weight benchmarking templates
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-09-08 04:22:41 +00:00
dependabot[bot]
c119f290db
Bump url from 2.2.2 to 2.3.0 ( #1604 )
...
Bumps [url](https://github.com/servo/rust-url ) from 2.2.2 to 2.3.0.
- [Release notes](https://github.com/servo/rust-url/releases )
- [Commits](https://github.com/servo/rust-url/compare/v2.2.2...v2.3.0 )
---
updated-dependencies:
- dependency-name: url
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-07 23:55:59 +02:00
Oliver Tale-Yazdi
09ec484139
Add --header to benchmark overhead + storage ( #12204 )
...
* Add header to 'overhead' command
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add header to 'storage' command
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update READMEs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <info@kchr.de >
* .as_ref() and fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-09-07 21:16:54 +00:00
Keith Yeung
99d8111c67
Move Get and bounded types to sp-core ( #12203 )
...
* Move Get and bounded types to sp-core
* Fixes
* cargo fmt
* Fixes
2022-09-07 15:41:45 +00:00
dependabot[bot]
a5e7161893
Bump thiserror from 1.0.33 to 1.0.34 ( #1596 )
...
Bumps [thiserror](https://github.com/dtolnay/thiserror ) from 1.0.33 to 1.0.34.
- [Release notes](https://github.com/dtolnay/thiserror/releases )
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.33...1.0.34 )
---
updated-dependencies:
- dependency-name: thiserror
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-07 16:43:45 +02:00
Alexander Theißen
d786e623df
Update contract weights ( #12192 )
...
* Dummy commit
* ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
Co-authored-by: command-bot <>
2022-09-07 14:49:44 +01:00
dependabot[bot]
c594a0ca51
Bump docker/setup-buildx-action from 1.7.0 to 2.0.0 ( #5976 )
...
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action ) from 1.7.0 to 2.0.0.
- [Release notes](https://github.com/docker/setup-buildx-action/releases )
- [Commits](https://github.com/docker/setup-buildx-action/compare/f211e3e9ded2d9377c8cadc4489a4e38014bc4c9...dc7b9719a96d48369863986a06765841d7ea23f6 )
---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-07 12:09:24 +00:00
Sasha Gryaznov
d8e9fff3e4
[contracts] API host functions: remove seal_ name prefix + enable aliasing ( #12126 )
...
* works but ugly
* refactored + renamed host fns
* fixed tests
* fix benchmarks
* updated marco docs
* Update frame/contracts/proc-macro/src/lib.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* fix for the duplicated prefixed alias bug + test
* refactored a bit
* fix warnings + try to make macro rustdoc compile
* fmt after clearing
* examples update + nocompile
* add seal_ prefixes to unstable host functions
* updated after a review
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-09-07 08:54:17 +00:00
Frederik Gartenmeister
bc1f31ccc0
Add features ( #1602 )
2022-09-07 00:22:50 +02:00
Roman Useinov
4a9e53c9e6
[Companion] Metadata delete on dissolve_pool ( #5955 )
...
* [Companion] Metadata delete on dissolve_pool
* deps upd
* merge
Co-authored-by: parity-processbot <>
2022-09-06 13:11:18 +00:00
NingLin-P
56e536f6e8
staking: avoid proportional slashing leak dust into chunks that should not be slashed ( #12058 )
...
* replace slash ratio with remaining ratio
Signed-off-by: linning <linningde25@gmail.com >
* little refactor
Signed-off-by: linning <linningde25@gmail.com >
* fix test
Signed-off-by: linning <linningde25@gmail.com >
* fix typo
Signed-off-by: linning <linningde25@gmail.com >
* revert refactor
Signed-off-by: linning <linningde25@gmail.com >
* rounding up instead of remaining ratio
Signed-off-by: linning <linningde25@gmail.com >
* address comment
Signed-off-by: linning <linningde25@gmail.com >
* Update frame/nomination-pools/test-staking/src/lib.rs
Signed-off-by: linning <linningde25@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/nomination-pools/test-staking/src/lib.rs
Signed-off-by: linning <linningde25@gmail.com >
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
Signed-off-by: linning <linningde25@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
Co-authored-by: parity-processbot <>
2022-09-06 12:24:31 +00:00
Sergej Sakac
2795b5fd29
Uniques: Small fix in docs ( #12143 )
...
* small fix in docs
* Update frame/uniques/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update lib.rs
* Update lib.rs
* Update lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
2022-09-06 12:16:29 +00:00
Muharem Ismailov
66b06e7563
fix release report generation script ( #1599 )
2022-09-06 11:40:16 +00:00
Piotr Mikołajczyk
5c843b3015
Companion for: try-runtime::follow-chain - keep connection ( #5968 )
...
* Adjust to the new API
* Remove mutability
* Async constructor
* unwrap result
* do not panic
* suggestion
* leftover
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-06 08:46:12 +00:00
Piotr Mikołajczyk
198f94f931
try-runtime::follow-chain - keep connection (#12167 )
...
* Refactor RPC module
* Add flag to `follow-chain`
* Multithreading remark
* fmt
* O_O
* unused import
* cmon
* accidental removal reverted
* remove RpcHeaderProvider
* mut refs
* fmt
* no mutability
* now?
* now?
* arc mutex
* async mutex
* async mutex
* uhm
* connect in constructor
* remove dep
* old import
* another take
* trigger polkadot pipeline
* trigger pipeline
2022-09-06 08:01:35 +00:00
Muharem Ismailov
b9de4af2ef
fix release report generation script ( #1597 )
2022-09-06 08:53:17 +01:00
Roman Useinov
d213e95784
[Fix] Make sure pool metadata is removed on pool dissolve ( #12154 )
...
* [Fix] Make sure pool metadata is removed on pool dissolve
* add migration
* remove_metadata helper removed
* fix typo and add a comment
* fix pre_upgrade
* fix migration
* Update frame/nomination-pools/src/migration.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/nomination-pools/src/migration.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* address comments
* fix comments
* Update frame/nomination-pools/src/migration.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* address comments
* permissions fix
Co-authored-by: parity-processbot <>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2022-09-06 06:34:29 +00:00
Davide Galassi
293ff64fd0
Companion - Read babe config parameters from runtime ( #5842 )
...
* Read babe config parameters from runtime
* Trigger pipeline
* Trigger pipeline (after PR title change)
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-09-06 06:23:13 +00:00
Davide Galassi
83aec6f93a
Fetch Babe configuration from runtime state ( #11760 )
...
* Fetch babe config data from runtime state
* Some renaming
* More renaming
* Final nits
* Fix tests and benches
* Rename to in BabeConfiguration
* Remove duplicate babe parameter description
Already specified over the 'PRIMARY_PROBABILITY' constant value
* trigger pipeline
* trigger pipeline
2022-09-05 17:41:32 +00:00
dependabot[bot]
ea9ce919e9
Bump tokio from 1.19.2 to 1.21.0 ( #1592 )
...
Bumps [tokio](https://github.com/tokio-rs/tokio ) from 1.19.2 to 1.21.0.
- [Release notes](https://github.com/tokio-rs/tokio/releases )
- [Commits](https://github.com/tokio-rs/tokio/compare/tokio-1.19.2...tokio-1.21.0 )
---
updated-dependencies:
- dependency-name: tokio
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-05 19:36:08 +02:00