Kian Paimani
e171e2ada4
Update staking related code-owners ( #13462 )
2023-03-05 22:38:49 +01:00
Bradley Olson
7e7f72ed74
Change handle_import_statements to FatalResult ( #6820 )
...
* Changing dispute db errors to fatal
* fmt
2023-03-04 19:35:04 +01:00
abebeos
ebc5218381
FRAME: add a basic readme ( #13520 )
2023-03-04 13:01:04 +00:00
Gavin Wood
8c3df96377
Just a typo ( #13533 )
...
* Typo
* Update Salary weight
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix test
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: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-03-04 11:38:22 +00:00
Keith Yeung
d29951e2f8
Introduce XCM matcher for writing barriers ( #6756 )
...
* Introduce XCM matcher for writing barriers
* Fix compilation
* cargo fmt
* Add more doc comments
* Add mod doc comment
* More doc comments
* Add tests and fix logic
* Remove redundant syntax
* Add more doc comments
* Add more doc comments
* Add more doc comments
2023-03-04 05:37:56 +00:00
Javier Viola
9003762b75
bump zombienet version v1.3.37 ( #2260 )
...
* update zombienet version
* remove 'is up' assertions
* bump zombienet version
2023-03-03 18:35:03 -03:00
eskimor
7d9a0b7cc3
Freeze note on SessionInfo. ( #6818 )
...
* Add note about frozen `SessionInfo`.
* Better comment.
---------
Co-authored-by: eskimor <eskimor@no-such-url.com >
2023-03-03 21:50:42 +01:00
dependabot[bot]
1d1d1bf1eb
Bump dyn-clone from 1.0.10 to 1.0.11 ( #2262 )
...
Bumps [dyn-clone](https://github.com/dtolnay/dyn-clone ) from 1.0.10 to 1.0.11.
- [Release notes](https://github.com/dtolnay/dyn-clone/releases )
- [Commits](https://github.com/dtolnay/dyn-clone/compare/1.0.10...1.0.11 )
---
updated-dependencies:
- dependency-name: dyn-clone
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 21:46:52 +01:00
Javier Viola
00623b02c0
bump zombienet version to v1.3.37 ( #13447 )
...
* bump zombienet version to v1.3.35
* remove checks, since now is checked by zn
* Update .gitlab-ci.yml
---------
Co-authored-by: Anton <anton.kalyaev@gmail.com >
2023-03-03 21:46:02 +01:00
Sergej Sakac
1d6423b41d
Assets pallet: Don't allow set_min_balance when sufficient ( #13510 )
...
* Assets pallet: Don't allow set_min_balance when sufficient
* fix
* fix benchmark
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_assets
* Update frame/assets/src/lib.rs
* fix
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_assets
---------
Co-authored-by: command-bot <>
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-03-03 21:39:45 +01:00
Arkadiy Paronyan
d98d948bfc
Bump parity-db ( #6816 )
...
* Bump parity-db
* update lockfile for {"substrate"}
---------
Co-authored-by: parity-processbot <>
2023-03-03 21:12:28 +01:00
Gavin Wood
e4bf9f2125
Salary pallet ( #13378 )
...
* More drafting
* Paymaster pallet
* Fix build
* More tests
* Rename
* Rename
* Renaming
* Revert old changes
* Multi-phase payouts to avoid bank-runs
* Tests
* Tests
* Allow payment to be targeted elsewhere
* Proper ssync payment failure handling
* Test for repayment
* Docs
* Impl RankedMembers for RankedCollective
* Implement Pay for Pot (i.e. basic account).
* Benchmarks
* Weights
* Introduce Salary benchmark into node
* Fix warning
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_salary
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
* Update frame/salary/src/lib.rs
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
* Update lib.rs
* Update frame/salary/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Docs
* Update frame/salary/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/salary/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Fix
* Fixes
* Fixes
* Move some salary traits stuff to a shared location
* Fix
* Update frame/salary/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update frame/salary/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Mul floor
* Fix warnings
* Fix test
* Docs
---------
Co-authored-by: command-bot <>
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-03-03 19:05:01 +00:00
Arkadiy Paronyan
ac4a23609c
Bump parity-db ( #13521 )
2023-03-03 17:16:59 +00:00
abebeos
bb08a66c1a
fix feature/enhancement issue template ( #13522 )
2023-03-03 14:53:22 +00:00
Branislav Kontur
77338c99d8
Bump polkadot ( #2269 )
...
* Bump polkadot
* Bump substrate
2023-03-03 13:30:44 +00:00
dependabot[bot]
c31191703d
Bump tempfile from 3.3.0 to 3.4.0 ( #2247 )
...
Bumps [tempfile](https://github.com/Stebalien/tempfile ) from 3.3.0 to 3.4.0.
- [Release notes](https://github.com/Stebalien/tempfile/releases )
- [Changelog](https://github.com/Stebalien/tempfile/blob/master/NEWS )
- [Commits](https://github.com/Stebalien/tempfile/commits )
---
updated-dependencies:
- dependency-name: tempfile
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 12:58:47 +00:00
dependabot[bot]
49679920c7
Bump syn from 1.0.107 to 1.0.109 ( #2249 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.107 to 1.0.109.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.107...1.0.109 )
---
updated-dependencies:
- dependency-name: syn
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-03 12:58:02 +00:00
Oliver Tale-Yazdi
70a0864e4c
Migrate to Weight::from_parts ( #2245 )
...
* Migrate to from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix remaining files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo update -p polkadot-primitives
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo update -p sp-io
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use Master Cargo.lock
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo update -p polkadot-primitives
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* cargo update -p sp-io
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-03-03 12:47:23 +00:00
Jegor Sidorenko
889e1ceab1
[NFTs] Emit new PalletAttributeSet event ( #13525 )
...
* Emit new PalletAttributeSet event
* Chore
2023-03-03 12:17:55 +00:00
Bradley Olson
f2bc0f57b6
Removing Outdated References to Misbehavior Arbitration Subsystem ( #6814 )
...
* Provisioner guide entry update
* Removing mentions of misbehavior arbitration sub
* fmt
2023-03-03 12:17:17 +01:00
Branislav Kontur
837d7748ad
Forgotten re-export for MatchedConvertedConcreteId ( #6815 )
2023-03-03 12:14:24 +01:00
Robert Hambrock
443cadedbd
Companion for substrate#13509: bump API versions of {Beefy,Mmr}Api ( #6809 )
...
* version {Beefy,Mmr}Api
* update lockfile for {"substrate"}
2023-03-03 11:56:43 +01:00
Robert Hambrock
40d6b65a0c
bump API versions of {Beefy,Mmr}Api ( #13509 )
2023-03-03 10:23:15 +00:00
Branislav Kontur
cf3ddb831c
Update polkadot with one more commit: from 54bcee1d5615f53781d5172fcce6700dbf35dad2 -> 3dd8331414c92f5d01d6a470eae43049099d7aa9 ( #2266 )
...
* Update polkadot with one commit: from 54bcee1d5615f53781d5172fcce6700dbf35dad2 -> 3dd8331414c92f5d01d6a470eae43049099d7aa9
* Fix test
* Fix test better
* typo
2023-03-03 10:02:49 +01:00
Oliver Tale-Yazdi
177bedc160
Migrate to Weight::from_parts ( #6794 )
...
* Migrate to from_parts
Have a look at https://github.com/ggwpez/substrate-scripts/blob/master/migrate-from-parts.py
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Adapt to master
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* update lockfile for {"substrate"}
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2023-03-03 00:32:30 +01:00
Oliver Tale-Yazdi
9e56e1acdd
Deprecate Weight::from_{ref_time, proof_size} ( #13475 )
...
* Deprecate Weight::from_{ref_time, proof_size}
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update templates
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Use from_parts
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Dont revert comment 🤦
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_balances
* Update weight files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* More fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Adapt to Master changes
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: command-bot <>
2023-03-02 21:28:17 +00:00
Branislav Kontur
c5637bda91
[XCM] Multiple FungiblesAdapters support + WeightTrader::buy_weight more accurate error ( #6739 )
...
* Change ParaId->Sibling for `SiblingParachainConvertsVia`
* [XCM] Multiple `FungiblesAdapter`s support + `WeightTrader::buy_weight` more accurate error
* Added test for `ConvertedConcreteId` with `AsPrefixedGeneralIndex`
* Solution 3. - new MatchedConvertedConcreteId with matching capabilities
* Review fixes
* Renamed `AssetNotFound` -> `AssetNotHandled`
---------
Co-authored-by: parity-processbot <>
2023-03-02 16:50:12 +01:00
joe petrowski
c301b64894
Add Version Checks on Para Upgrade ( #2261 )
...
* add version checks on para ugprade
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
* remove unneeded imports and errors
* fix test error path
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-03-02 15:48:14 +00:00
Jegor Sidorenko
2156cbc046
Companion for #13352 ( #2180 )
...
* Assets balances
* Update docs
* AssetsApi with MultiLocation as preparation for multi pallet_assets instances (#2187 )
* AssetsApi with MultiLocation for Westmint + assets-common
* AssetsApi with MultiLocation for Statemine/t
* typo
* typo for check-docs job
* WIP: AssetsApi return MultiAsset instead of (MultiLocation, Balance)
* WIP: assets_api + conversion refactor
* WIP: assets_api + conversion refactor
* Finished asset runtimes
* Refactor AssetsApi to FungiblesApi
* Refactor
* Fix check-rust-docs
* Removed todo
* Fix check-rust-doc
* Update parachains/runtimes/assets/common/Cargo.toml
Co-authored-by: Bastian Köcher <git@kchr.de >
* update lockfile for {"substrate", "polkadot"}
---------
Co-authored-by: Branislav Kontur <bkontur@gmail.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-03-02 14:37:18 +00:00
Jegor Sidorenko
7981d4aa59
Return account's asset balances ( #13352 )
...
* Runtime method to get user's assets balances
* Fix test (typo)
* Update frame/assets/src/functions.rs
* Remove instance param
* Update frame/assets/src/functions.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Remove instance param
* Refactor
* Chore
* Update doc
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: parity-processbot <>
2023-03-02 13:58:41 +00:00
André Silva
2c37de32bf
im-online: don't disable offending validators ( #13493 )
2023-03-02 12:38:12 +00:00
Sergej Sakac
47046d798c
Companion for #13486 ( #2253 )
...
* Companion for #13486
* fix
* Update Substrate & Polkadot
---------
Co-authored-by: Bastian Köcher <info@kchr.de >
2023-03-02 11:28:27 +00:00
Bastian Köcher
44abe690a3
network-gossip: Do not report peer on duplicate message if its the first time ( #13508 )
...
Two peers can send us the same gossip message. Before this pr we would have reported the second peer
for sending a duplicate message. However, this isn't correct if we haven't seen the message from
this peer yet. So, we should not report them as they can not be aware of our internal state.
2023-03-02 11:06:46 +00:00
Sergej Sakac
2b29966f75
Assets pallet: Giving the asset owner the ability to set minimum balance ( #13486 )
...
* set_min_balance
* allow when new_min_balance < old_min_balance
* add more specific event
* Update frame/assets/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/assets/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_assets
* use actual weight
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: command-bot <>
2023-03-02 10:16:47 +00:00
eskimor
4931eb0a97
Get rid of unnecessary cloning and work. ( #6808 )
...
Co-authored-by: eskimor <eskimor@no-such-url.com >
2023-03-02 07:53:32 +01:00
Mara Robin B
a1771657f4
changelog: fix migration listing ( #6806 )
...
* changelog: fix runtime migration listing
* changelog: fix db migration listing
2023-03-02 00:40:03 +01:00
Adrian Catangiu
a21880b76f
sc-consensus-beefy: fix metrics: use correct names ( #13494 )
...
Signed-off-by: acatangiu <adrian@parity.io >
2023-03-01 18:04:09 +02:00
Piotr Mikołajczyk
9720a8749a
Expose ChargedAmount ( #13488 )
...
* Expose `ChargedAmount`
* Fix imports
2023-03-01 14:35:32 +01:00
André Silva
b29584d93a
sp-consensus: remove unused error variants ( #13495 )
2023-03-01 13:04:57 +00:00
Dmitry Markin
519adbcf3b
Bump crossbeam-utils 0.8.9 -> 0.8.14 ( #6800 )
2023-03-01 15:33:05 +03:00
dependabot[bot]
9421641a51
Bump proc-macro-crate from 1.3.0 to 1.3.1 ( #2248 )
...
Bumps [proc-macro-crate](https://github.com/bkchr/proc-macro-crate ) from 1.3.0 to 1.3.1.
- [Release notes](https://github.com/bkchr/proc-macro-crate/releases )
- [Commits](https://github.com/bkchr/proc-macro-crate/compare/v1.3.0...v1.3.1 )
---
updated-dependencies:
- dependency-name: proc-macro-crate
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-01 13:06:33 +01:00
Anthony Lazam
6458a6386d
Removal of Prometheus alerting rules deployment in cloud-infra ( #13499 )
2023-03-01 11:15:18 +00:00
Dmitry Markin
ad410738e7
Make unbounded channels size warning exact (part 1) ( #13490 )
...
* Replace `futures-channel` with `async-channel` in `out_events`
* Apply suggestions from code review
Co-authored-by: Koute <koute@users.noreply.github.com >
* Also print the backtrace of `send()` call
* Switch from `backtrace` crate to `std::backtrace`
* Remove outdated `backtrace` dependency
* Remove `backtrace` from `Cargo.lock`
---------
Co-authored-by: Koute <koute@users.noreply.github.com >
2023-03-01 09:54:31 +00:00
Koute
55263fa2a1
Speed up storage iteration from within the runtime ( #13479 )
...
* Speed up storage iteration from within the runtime
* Move the cached iterator into an `Option`
* Use `RefCell` in no_std
* Simplify the code slightly
* Use `Option::replace`
* Update doc comment for `next_storage_key_slow`
2023-03-01 08:58:18 +00:00
Kutsal Kaan Bilgin
79d3a2db39
Add Helikon boot nodes for Bridge Hub Kusama, Collectives Polkadot, Collectives . Westend, Statemine, Statemint and Westmint. ( #2250 )
2023-03-01 06:17:47 +00:00
yjh
20bf3c938e
chore: move genesis block builder to chain-spec crate. ( #13427 )
...
* chore: move genesis block builder to block builder crate.
* add missing file
* chore: move genesis block builder to sc-chain-spec
* Update client/chain-spec/src/genesis.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update test-utils/runtime/src/genesismap.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update test-utils/runtime/client/src/lib.rs
* fix warnings
* fix warnings
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-02-28 20:50:57 +01:00
Davide Galassi
0b00e6d5b8
[Companion] BEEFY crates renaming ( #6799 )
...
* Temporary commit to make the Substrate CI happy
* Revert "Temporary commit to make the Substrate CI happy"
This reverts commit 9eb2fd223c3e36312242d4fda4ebacf3dd732547.
* Align to substrate master
* Update lock
* Adjust some naming according to the new substrate crates
2023-02-28 17:09:43 +01:00
Davide Galassi
1ef9c473e7
Move BEEFY code to consensus ( #13484 )
...
* Move beefy primitives to consensus dir
* Move beefy gadget to client consensus folder
* Rename beefy crates
2023-02-28 15:56:22 +01:00
Mara Robin B
63d1641b1e
update weights ( #6798 )
...
* polkadot: update weights
* westend: update weights
* kusama: update weights
* rococo: update weights
2023-02-28 14:08:21 +00:00
Oliver Tale-Yazdi
1eb0cd31b9
Fix V2 PoV benchmarking ( #13485 )
...
* Bump default 'additional_trie_layers' to two
The default here only works for extremely small runtimes, which have
no more than 16 storage prefices. This is changed to a "sane" default
of 2, which is save for runtimes with up to 4096 storage prefices (eg StorageValue).
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update tests and test weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix PoV weights
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_balances
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_message_queue
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_glutton
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_glutton
* Fix sanity check
>0 would also do as a check, but let's try this.
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: command-bot <>
2023-02-28 13:47:36 +00:00