Sergej Sakac
5af801ce60
Forbid stray tokens in call index ( #13036 )
...
* Check for call_index
* fixes
* pallet ui test for weight attribute
* Update frame/support/procedural/src/pallet/parse/call.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* fix
* small fix
* wrong return type
* ...
* .
* final fix
* update .stderr
* commit
* udpate
* Update frame/support/procedural/src/pallet/parse/call.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* update .stderr
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-01-02 10:23:33 +00:00
Michal Kucharczyk
9c69fc1b32
BlockId removal: refactor: BlockBackend::block|block_status ( #13014 )
...
* BlockId removal: refactor: BlockBackend::block|block_status
It changes the arguments of:
- `BlockBackend::block`
- `BlockBackend::block_status`
method from: `BlockId<Block>` to: `Block::Hash`
This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292 )
* non-obvious reworks
* doc fix
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: parity-processbot <>
2023-01-02 09:42:05 +00:00
dependabot[bot]
cb53fd5255
Bump secp256k1 from 0.24.0 to 0.24.2 ( #1973 )
...
Bumps [secp256k1](https://github.com/rust-bitcoin/rust-secp256k1 ) from 0.24.0 to 0.24.2.
- [Release notes](https://github.com/rust-bitcoin/rust-secp256k1/releases )
- [Changelog](https://github.com/rust-bitcoin/rust-secp256k1/blob/secp256k1-0.24.2/CHANGELOG.md )
- [Commits](https://github.com/rust-bitcoin/rust-secp256k1/compare/secp256k1-0.24.0...secp256k1-0.24.2 )
---
updated-dependencies:
- dependency-name: secp256k1
dependency-type: indirect
...
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-12-30 23:23:10 +01:00
Éloïs
66cfd01f17
try-runtime: add cli option --export-proof ( #12539 )
...
* try-runtime: add cli option --export-proof
* extract proof in raw json format
* fix build
* fix(try-runtime execute-block): wrong block parsing
* fmt
* apply suggestions
* Update utils/frame/try-runtime/cli/src/lib.rs
Co-authored-by: Anton <anton.kalyaev@gmail.com >
* Update utils/frame/try-runtime/cli/src/lib.rs
Co-authored-by: Anton <anton.kalyaev@gmail.com >
* Update utils/frame/try-runtime/cli/src/lib.rs
Co-authored-by: Anton <anton.kalyaev@gmail.com >
* Update utils/frame/try-runtime/cli/src/lib.rs
Co-authored-by: Anton <anton.kalyaev@gmail.com >
* split off external dependencies
* fmt
* fix try-runtime compilation
Co-authored-by: Anton <anton.kalyaev@gmail.com >
2022-12-30 17:54:04 +00:00
Bradley Olson
539a9a9158
Update dispute participation on active leaves update ( #6303 )
...
* Passed candidate events from scraper to participation
* First draft PR 5875
* Added support for timestamp in changes
* Some necessary refactoring
* Removed SessionIndex from unconfirmed_disputes key
* Removed duplicate logic in import statements
* Replaced queue_participation call with re-prio
* Simplifying refactor. Backed were already handled
* Removed unneeded spam slots logic
* Implementers guide edits
* Undid the spam slots refactor
* Added comments and implementers guide edit
* Added test for participation upon backing
* Round of fixes + ran fmt
* Round of changes + fmt
* Error handling draft
* Changed errors to bubble up from reprioritization
* Starting to construct new test
* Clarifying participation function rename
* Reprio test draft
* Very rough bump to priority queue test draft
* Improving logging
* Most concise reproduction of error on third import
* Add `handle_approval_vote_request`
* Removing reprioritization on included event test
* Removing unneeded test config
* cargo fmt
* Test works
* Fixing final nits
* Tweaks to test Tsveto figured out
Co-authored-by: eskimor <eskimor@no-such-url.com >
Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io >
2022-12-30 12:55:20 +01:00
Vlad
46d4eb2a05
Unpin ci-linux and use the latest production tag as before ( #13030 )
2022-12-29 19:46:56 +04:00
Vlad
0d35943574
Enable zstd for rusty-cachier ( #13029 )
2022-12-29 19:20:41 +04:00
Egor_P
cb87753ec7
Backport weights from 9360 ( #2038 )
...
* [benchmarks] pr with weights (#2026 )
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
* [benchmarks] pr with weights Collectives (#2025 )
* [benchmarks] pr with weights
* provide veto method for trait
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
Co-authored-by: muharem <ismailov.m.h@gmail.com >
* [benchmarks] pr with weights (#2027 )
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
Co-authored-by: paritytech-ci <paritytech-ci@parity.io >
Co-authored-by: muharem <ismailov.m.h@gmail.com >
2022-12-29 10:54:45 +00:00
Nazar Mokrynskyi
fa6b7a1243
Derive Debug on SyncStatus ( #13025 )
2022-12-28 22:10:47 +00:00
Luis Enrique Muñoz Martín
af79220695
Add ensure-ops family methods ( #12967 )
...
* add ensure-ops family methods
* fix cargo doc
* add EnsureOp and EnsureOpAssign meta traits
* move ensure module and ArithmeticError to sp-arithmetic
* fix doc examples
* reexport ensure module content
* ensure mod private
* reexport to sp-runtime
* fix doc example
* remove into(). in doc examples, minor doc changes
* remove return value from assign methods
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update primitives/arithmetic/src/traits.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* cargo fmt
* Apply suggestions from code review
* ".git/.scripts/fmt.sh" 1
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: command-bot <>
2022-12-28 12:52:15 +00:00
dependabot[bot]
b0e74fc30f
Bump serde from 1.0.151 to 1.0.152 ( #2045 )
...
Bumps [serde](https://github.com/serde-rs/serde ) from 1.0.151 to 1.0.152.
- [Release notes](https://github.com/serde-rs/serde/releases )
- [Commits](https://github.com/serde-rs/serde/compare/v1.0.151...v1.0.152 )
---
updated-dependencies:
- dependency-name: serde
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-12-28 10:56:47 +01:00
Bastian Köcher
0a94112c9d
Print "stalled" task on shutdown ( #13022 )
...
* Print "stalled" task on shutdown
When the node is shutting down, we give the Tokio runtime 60 seconds to shutdown. If after these 60
seconds there are still running tasks, we now print these tasks. This should help debugging nodes
that have stalled tasks.
This pr introduces a `TaskRegistry` that keeps track of all running tasks. Each task registers and
unregisters itself in this `TaskRegistry`.
* Fix rustdoc
* Update client/service/src/lib.rs
2022-12-28 09:16:52 +01:00
Gavin Wood
e9646fdc7e
Improve inactive fund tracking ( #13009 )
...
* Improve inactive fund tracking
* Resetting migration
* Fix
* Update frame/balances/src/migration.rs
2022-12-27 14:48:17 +01:00
Sasha Gryaznov
2691f6de2e
[contracts] Make debug buffer work like a FIFO pipe ( #12953 )
...
* make debug buffer work like a FIFO pipe
* remove unused Error type
* Remove panics
* Update frame/contracts/src/exec.rs
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2022-12-27 14:24:49 +01:00
eskimor
b0c7a1571d
Update disputes subsytems section. ( #6329 )
...
* Update disputes subsytems section.
* Update roadmap/implementers-guide/src/node/disputes/README.md
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
* Update roadmap/implementers-guide/src/node/disputes/README.md
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
* Update roadmap/implementers-guide/src/node/disputes/README.md
Co-authored-by: ordian <write@reusable.software >
* Update roadmap/implementers-guide/src/node/disputes/README.md
Co-authored-by: ordian <write@reusable.software >
* Review feedback.
Co-authored-by: eskimor <eskimor@no-such-url.com >
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com >
Co-authored-by: ordian <write@reusable.software >
2022-12-27 12:27:55 +01:00
Dmitry Markin
bcfaf286bf
Runtime diagnostics for leaked messages in unbounded channels (part 2) ( #6481 )
...
* Bump `backtrace` to v0.3.67
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-12-27 10:44:50 +00:00
Dmitry Markin
67a50ffa54
Runtime diagnostics for leaked messages in unbounded channels (part 2) ( #13020 )
...
* Fix code review issues
* Clarify doc
* Get rid of backtrace mutex
* kick CI
2022-12-27 10:05:12 +00:00
Bradley Olson
b95a5c9c40
Added comment describing satisfied invariant ( #6460 )
2022-12-26 19:50:18 +00:00
Ankan
96bce58a91
[Companion] Allow StakingAdmin to set min_commission ( #6444 )
...
* rename staking origin
* fix comments
* rename origin
* give fake weight before re-benchmarking
* ".git/.scripts/bench-bot.sh" runtime westend-dev pallet_staking
* ".git/.scripts/bench-bot.sh" runtime polkadot-dev pallet_staking
* ".git/.scripts/bench-bot.sh" runtime kusama-dev pallet_staking
* update lockfile for {"substrate"}
Co-authored-by: parity-processbot <>
2022-12-26 17:53:22 +01:00
Bastian Köcher
9f5ed21fe9
Make CLI state pruning optional again ( #13017 )
...
* Make CLI state pruning optional again
The state pruning setting is stored in the database when it is created. In later runs it is fine to
drop the `--state-pruning` CLI argument as the setting is stored in the database. The state db will
only return an error if the stored state pruning doesn't match the state pruning given via CLI.
Recently we improved the state pruning CLI handling and accidentally made the state pruning value
always present (as we set some default value for the clap). If we could find out if a user has
passed a value or the default value was taken, we could keep the default value in the CLI interface,
but clap isn't supporting this right now. So, we need to go back and make `state_pruning` an
optional with the default written into the docs.
It also adds a test to ensure that we don't break this behavior again.
* More docs
2022-12-26 17:37:09 +01:00
Ankan
9726a10dbb
Allow StakingAdmin to set min_commission ( #13018 )
...
* staking admin can set min commission
* ".git/.scripts/bench-bot.sh" pallet dev pallet_staking
* fmt
* fix for pr comments
Co-authored-by: command-bot <>
2022-12-26 15:48:40 +00:00
André Silva
017cf70378
babe: allow skipping over empty epochs ( #11727 )
...
* babe: allow skipping epochs in pallet
* babe: detect and skip epochs on client
* babe: cleaner epoch util functions
* babe: add test for runtime handling of skipped epochs
* babe: simpler implementation of client handling of skipped epochs
* babe: test client-side handling of skipped epochs
* babe: add comments on client-side skipped epochs
* babe: remove emptyline
* babe: make it resilient to forks
* babe: typo
* babe: overflow-safe math
* babe: add test for skipping epochs across different forks
* Fix tests
* FMT
Co-authored-by: Bastian Köcher <info@kchr.de >
2022-12-24 00:03:31 +00:00
Bastian Köcher
e053d34cc5
Ignore empty authority changes ( #13010 )
...
When something tries to enact an authority change with an empty authority set, we will ignore this now.
2022-12-23 23:28:11 +01:00
Jegor Sidorenko
0edab31776
NFTs 2.0 ( #12765 )
...
* Copy Uniques into Nfts
* Connect new pallet
* Update weights
* Nfts: Multiple approvals (#12178 )
* multiple approvals
* clear
* tests & clean up
* fix in logic & fmt
* fix benchmarks
* deadline
* test deadline
* current_block + deadline
* update ApprovedTransfer event
* benchmark
* docs
* Update frame/nfts/src/lib.rs
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
* fmt fix
* Update frame/nfts/src/lib.rs
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
* update tests
* anyone can cancel
* Update frame/nfts/src/tests.rs
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
* fmt
* fix logic
* unnecessary line
* ".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
* Update frame/nfts/src/lib.rs
* Update lib.rs
* fmt
* Update frame/nfts/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* fmt
* Update frame/nfts/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* suggestion
* new line
* ".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
Co-authored-by: command-bot <>
Co-authored-by: Squirrel <gilescope@gmail.com >
* Fixes
* cargo fmt
* Fixes
* Fixes
* Fix CI
* Nfts: Fix Auto-Increment (#12223 )
* commit
* passing benchmarks
* clean up
* sync
* runtime implementation
* fix
* fmt
* fix benchmark
* cfg
* remove try-increment-id
* remove unused error
* impl Incrementable for unsigned types
* clean up
* fix in tests
* not needed anymore
* Use OptionQuery
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Rename Origin to RuntimeOrigin
* [Uniques V2] Tips (#12168 )
* Allow to add tips when buying an NFT
* Chore
* Rework tips feature
* Add weights + benchmarks
* Convert tuple to struct
* Fix benchmark
* ".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
* Update frame/nfts/src/benchmarking.rs
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix benchmarks
* Revert the bounded_vec![] approach
* ".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
Co-authored-by: command-bot <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* [Uniques V2] Atomic NFTs swap (#12285 )
* Atomic NFTs swap
* Fmt
* Fix benchmark
* Rename swap -> atomic_swap
* Update target balance
* Rollback
* Fix
* ".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
* Make desired item optional
* Apply suggestions
* Update frame/nfts/src/features/atomic_swap.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Rename fields
* Optimisation
* Add a comment
* deadline -> maybe_deadline
* Add docs
* Change comments
* Add price direction field
* ".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
* Wrap price and direction
* Fix benchmarks
* Use ensure! instead of if {}
* Make duration param mandatory and limit it to MaxDeadlineDuration
* Make the code safer
* Fix clippy
* Chore
* Remove unused vars
* try
* try 2
* try 3
Co-authored-by: command-bot <>
Co-authored-by: Squirrel <gilescope@gmail.com >
* [Uniques V2] Feature flags (#12367 )
* Basics
* WIP: change the data format
* Refactor
* Remove redundant new() method
* Rename settings
* Enable tests
* Chore
* Change params order
* Delete the config on collection removal
* Chore
* Remove redundant system features
* Rename force_item_status to force_collection_status
* Update node runtime
* Chore
* Remove thaw_collection
* Chore
* Connect collection.is_frozen to config
* Allow to lock the collection in a new way
* Move free_holding into settings
* Connect collection's metadata locker to feature flags
* DRY
* Chore
* Connect pallet level feature flags
* Prepare tests for the new changes
* Implement Item settings
* Allow to lock the metadata or attributes of an item
* Common -> Settings
* Extract settings related code to a separate file
* Move feature flag checks inside the do_* methods
* Split settings.rs into parts
* Extract repeated code into macro
* Extract macros into their own file
* Chore
* Fix traits
* Fix traits
* Test SystemFeatures
* Fix benchmarks
* Add missing benchmark
* Fix node/runtime/lib.rs
* ".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
* Keep item's config on burn if it's not empty
* Fix the merge artifacts
* Fmt
* Add SystemFeature::NoSwaps check
* Rename SystemFeatures to PalletFeatures
* Rename errors
* Add docs
* Change error message
* Rework pallet features
* Move macros
* Change comments
* Fmt
* Refactor Incrementable
* Use pub(crate) for do_* functions
* Update comments
* Refactor freeze and lock functions
* Rework Collection config and Item confg api
* Chore
* Make clippy happy
* Chore
* Update comment
* RequiredDeposit => DepositRequired
* Address comments
Co-authored-by: command-bot <>
* [Uniques V2] Refactor roles (#12437 )
* Basics
* WIP: change the data format
* Refactor
* Remove redundant new() method
* Rename settings
* Enable tests
* Chore
* Change params order
* Delete the config on collection removal
* Chore
* Remove redundant system features
* Rename force_item_status to force_collection_status
* Update node runtime
* Chore
* Remove thaw_collection
* Chore
* Connect collection.is_frozen to config
* Allow to lock the collection in a new way
* Move free_holding into settings
* Connect collection's metadata locker to feature flags
* DRY
* Chore
* Connect pallet level feature flags
* Prepare tests for the new changes
* Implement Item settings
* Allow to lock the metadata or attributes of an item
* Common -> Settings
* Extract settings related code to a separate file
* Move feature flag checks inside the do_* methods
* Split settings.rs into parts
* Extract repeated code into macro
* Extract macros into their own file
* Chore
* Fix traits
* Fix traits
* Test SystemFeatures
* Fix benchmarks
* Add missing benchmark
* Fix node/runtime/lib.rs
* ".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
* Keep item's config on burn if it's not empty
* Fix the merge artifacts
* Fmt
* Add SystemFeature::NoSwaps check
* Refactor roles structure
* Rename SystemFeatures to PalletFeatures
* Rename errors
* Add docs
* Change error message
* Rework pallet features
* Move macros
* Change comments
* Fmt
* Refactor Incrementable
* Use pub(crate) for do_* functions
* Update comments
* Refactor freeze and lock functions
* Rework Collection config and Item confg api
* Chore
* Make clippy happy
* Chore
* Fix artifacts
* Address comments
* Further refactoring
* Add comments
* Add tests for group_roles_by_account()
* Update frame/nfts/src/impl_nonfungibles.rs
* Add test
* Replace Itertools group_by with a custom implementation
* ItemsNotTransferable => ItemsNonTransferable
* Update frame/nfts/src/features/roles.rs
Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com >
* Address PR comments
* Add missed comment
Co-authored-by: command-bot <>
Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com >
* Fix copy
* Remove storage_prefix
* Remove transactional
* Update comment
* [Uniques V2] Minting options (#12483 )
* Basics
* WIP: change the data format
* Refactor
* Remove redundant new() method
* Rename settings
* Enable tests
* Chore
* Change params order
* Delete the config on collection removal
* Chore
* Remove redundant system features
* Rename force_item_status to force_collection_status
* Update node runtime
* Chore
* Remove thaw_collection
* Chore
* Connect collection.is_frozen to config
* Allow to lock the collection in a new way
* Move free_holding into settings
* Connect collection's metadata locker to feature flags
* DRY
* Chore
* Connect pallet level feature flags
* Prepare tests for the new changes
* Implement Item settings
* Allow to lock the metadata or attributes of an item
* Common -> Settings
* Extract settings related code to a separate file
* Move feature flag checks inside the do_* methods
* Split settings.rs into parts
* Extract repeated code into macro
* Extract macros into their own file
* Chore
* Fix traits
* Fix traits
* Test SystemFeatures
* Fix benchmarks
* Add missing benchmark
* Fix node/runtime/lib.rs
* ".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
* Keep item's config on burn if it's not empty
* Fix the merge artifacts
* Fmt
* Add SystemFeature::NoSwaps check
* Rename SystemFeatures to PalletFeatures
* Rename errors
* Add docs
* Change error message
* Change the format of CollectionConfig to store more data
* Move max supply to the CollectionConfig and allow to change it
* Remove ItemConfig from the mint() function and use the one set in mint settings
* Add different mint options
* Allow to change the mint settings
* Add a force_mint() method
* Check mint params
* Some optimisations
* Cover with tests
* Remove merge artifacts
* Chore
* Use the new has_role() method
* Rework item deposits
* More tests
* Refactoring
* Address comments
* Refactor lock_collection()
* Update frame/nfts/src/types.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Update frame/nfts/src/types.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Private => Issuer
* Add more tests
* Fix benchmarks
* Add benchmarks for new methods
* [Uniques v2] Refactoring (#12570 )
* Move do_set_price() and do_buy_item() to buy_sell.rs
* Move approvals to feature file
* Move metadata to feature files
* Move the rest of methods to feature files
* Remove artifacts
* Split force_collection_status into 2 methods
* Fix benchmarks
* Fix benchmarks
* Update deps
Co-authored-by: command-bot <>
Co-authored-by: Squirrel <gilescope@gmail.com >
* [Uniques V2] Smart attributes (#12702 )
* Basics
* WIP: change the data format
* Refactor
* Remove redundant new() method
* Rename settings
* Enable tests
* Chore
* Change params order
* Delete the config on collection removal
* Chore
* Remove redundant system features
* Rename force_item_status to force_collection_status
* Update node runtime
* Chore
* Remove thaw_collection
* Chore
* Connect collection.is_frozen to config
* Allow to lock the collection in a new way
* Move free_holding into settings
* Connect collection's metadata locker to feature flags
* DRY
* Chore
* Connect pallet level feature flags
* Prepare tests for the new changes
* Implement Item settings
* Allow to lock the metadata or attributes of an item
* Common -> Settings
* Extract settings related code to a separate file
* Move feature flag checks inside the do_* methods
* Split settings.rs into parts
* Extract repeated code into macro
* Extract macros into their own file
* Chore
* Fix traits
* Fix traits
* Test SystemFeatures
* Fix benchmarks
* Add missing benchmark
* Fix node/runtime/lib.rs
* ".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
* Keep item's config on burn if it's not empty
* Fix the merge artifacts
* Fmt
* Add SystemFeature::NoSwaps check
* Rename SystemFeatures to PalletFeatures
* Rename errors
* Add docs
* Change error message
* Change the format of CollectionConfig to store more data
* Move max supply to the CollectionConfig and allow to change it
* Remove ItemConfig from the mint() function and use the one set in mint settings
* Add different mint options
* Allow to change the mint settings
* Add a force_mint() method
* Check mint params
* Some optimisations
* Cover with tests
* Remove merge artifacts
* Chore
* Use the new has_role() method
* Rework item deposits
* More tests
* Refactoring
* Address comments
* Refactor lock_collection()
* Update frame/nfts/src/types.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Update frame/nfts/src/types.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Private => Issuer
* Add more tests
* Fix benchmarks
* Add benchmarks for new methods
* [Uniques v2] Refactoring (#12570 )
* Move do_set_price() and do_buy_item() to buy_sell.rs
* Move approvals to feature file
* Move metadata to feature files
* Move the rest of methods to feature files
* Remove artifacts
* Smart attributes
* Split force_collection_status into 2 methods
* Fix benchmarks
* Fix benchmarks
* Update deps
* Fix merge artifact
* Weights + benchmarks + docs
* Change params order
* Chore
* Update frame/nfts/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Update docs
* Update frame/nfts/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* Add PalletId
* Chore
* Add tests
* More tests
* Add doc
* Update errors snapshots
* Ensure we track the owner_deposit field correctly
Co-authored-by: command-bot <>
Co-authored-by: Squirrel <gilescope@gmail.com >
* [Uniques V2] Final improvements (#12736 )
* Use KeyPrefixIterator instead of Box
* Change create_collection()
* Restrict from claiming NFTs twice
* Update Readme
* Remove dead code
* Refactoring
* Update readme
* Fix clippy
* Update frame/nfts/src/lib.rs
Co-authored-by: Squirrel <gilescope@gmail.com >
* ".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
* Update docs
* Typo
* Fix benchmarks
* Add more docs
* DepositRequired setting should affect only the attributes within the CollectionOwner namespace
* [NFTs] Implement missed methods to set the attributes from other pallets (#12919 )
* Implement missed methods to set the attributes from other pallets
* Revert snapshots
* Update snapshot
* Update snapshot
* Revert snapshot changes
* Update snapshots
* Yet another snapshot update..
* Update frame/support/src/traits/tokens/nonfungible_v2.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/support/src/traits/tokens/nonfungible_v2.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/support/src/traits/tokens/nonfungible_v2.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/support/src/traits/tokens/nonfungibles_v2.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/support/src/traits/tokens/nonfungible_v2.rs
* Update frame/nfts/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/support/src/traits/tokens/nonfungibles_v2.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/lib.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Address comments
* [NFTs] Add the new `owner` param to mint() method (#12997 )
* Add the new `owner` param to mint() method
* Fmt
* Address comments
* ".git/.scripts/bench-bot.sh" pallet dev pallet_nfts
* Update frame/nfts/src/common_functions.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/types.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/types.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/types.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/types.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nfts/src/types.rs
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Add call indexes
* Update snapshots
Co-authored-by: Sergej Sakac <73715684+Szegoo@users.noreply.github.com >
Co-authored-by: Squirrel <gilescope@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Muharem Ismailov <ismailov.m.h@gmail.com >
Co-authored-by: command-bot <>
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
2022-12-23 16:07:27 +00:00
Muharem Ismailov
d7021c9dc3
Collectives parachain integration tests update ( #2036 )
...
* Collectives: update integration tests
* update title
2022-12-23 14:41:48 +00:00
Dmitry Markin
34eb463d99
Runtime diagnostics for leaked messages in unbounded channels ( #12971 )
2022-12-23 16:03:08 +03:00
dependabot[bot]
81a881292b
Bump async-trait from 0.1.59 to 0.1.60 ( #2024 )
...
Bumps [async-trait](https://github.com/dtolnay/async-trait ) from 0.1.59 to 0.1.60.
- [Release notes](https://github.com/dtolnay/async-trait/releases )
- [Commits](https://github.com/dtolnay/async-trait/compare/0.1.59...0.1.60 )
---
updated-dependencies:
- dependency-name: async-trait
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-12-23 10:43:29 +01:00
Kian Paimani
70e9f8e920
Fix fast-unstake for accounts with slashing ( #12963 )
...
* Fix fast-unstake for accounts with slashing
* ".git/.scripts/fmt.sh" 1
* fmt
* fix
* fix weight tracking
* Adds tests for withdraw_unbonded with slashing
* Removes tests for withdraw_unbonded with slashing
* ".git/.scripts/fmt.sh"
* Adds slash spans calculation test for withdraw_unbonded
Co-authored-by: command-bot <>
Co-authored-by: gpestana <g6pestana@gmail.com >
2022-12-23 07:04:47 +00:00
dependabot[bot]
3c89f88ec7
Bump secp256k1 from 0.24.0 to 0.24.2 ( #6411 )
...
Bumps [secp256k1](https://github.com/rust-bitcoin/rust-secp256k1 ) from 0.24.0 to 0.24.2.
- [Release notes](https://github.com/rust-bitcoin/rust-secp256k1/releases )
- [Changelog](https://github.com/rust-bitcoin/rust-secp256k1/blob/secp256k1-0.24.2/CHANGELOG.md )
- [Commits](https://github.com/rust-bitcoin/rust-secp256k1/compare/secp256k1-0.24.0...secp256k1-0.24.2 )
---
updated-dependencies:
- dependency-name: secp256k1
dependency-type: indirect
...
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>
Co-authored-by: parity-processbot <>
2022-12-23 01:16:19 +01:00
Michal Kucharczyk
8b57471221
txpool: don't validate block transactions if the pool is empty ( #12973 )
...
* txpool: don't validate block transactions if the pool is empty
Fix shall prevent from wasting the CPU during the major sync. Block
transaction don't need to be re-validated when the txpool is empty.
Fixes : #12903
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
2022-12-22 22:33:01 +00:00
dependabot[bot]
b1a608cf13
Bump clap from 4.0.29 to 4.0.32 ( #2032 )
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.29 to 4.0.32.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.29...v4.0.32 )
---
updated-dependencies:
- dependency-name: clap
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-12-22 23:01:52 +01:00
Muharem Ismailov
29267961f8
Alliance: remove veto weight func ( #2030 )
...
* Alliance: remove veto weight func
* update lockfile for {"substrate", "polkadot"}
Co-authored-by: parity-processbot <>
2022-12-22 20:49:52 +00:00
Muharem Ismailov
614cd04df0
Alliance: remove unused func from weight trait ( #13001 )
...
* Alliance: remove unused weight func
* ".git/.scripts/bench-bot.sh" pallet dev pallet_alliance
Co-authored-by: command-bot <>
2022-12-22 20:12:01 +00:00
Sasha Gryaznov
29f8f037b7
[contracts] Remove stack height limiter wasm instrumentation ( #12957 )
...
* Remove stack height limiter from uploaded wasm
* fix benchmarks
* ".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-12-22 18:22:57 +01:00
Alexander Theißen
4083b5358a
contracts: Improve contract address derivation ( #12883 )
...
* Add prefix to address derivation
* Extend benchmark
* Fix node test
* ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
* Adapt to new benchmark
* Update dispatchable benchmarks
* ".git/.scripts/bench-bot.sh" pallet dev pallet_contracts
* Use benchmark results
* Apply suggestions from code review
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
* Don't use T::AdressGenerator directly
* Rename constructor_args to input_data
Co-authored-by: command-bot <>
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
2022-12-22 14:52:48 +00:00
Sasha Gryaznov
af15848be0
stabilize [seal0] take_storage ( #13007 )
2022-12-22 15:48:39 +01:00
Oliver Tale-Yazdi
b6420cf6ec
Fix runtime-migration label detection ( #6469 )
...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-12-22 14:21:16 +01:00
JP
3cce86c02c
change crates publishing to be scheduled ( #13002 )
2022-12-22 12:21:30 +00:00
Muharem Ismailov
4e611b11b1
Companion: Accept Kusama StakingAdmin origin ( #1865 )
...
* Companion: Accept Kusamsa StakinAdmin origin
* Fellows origin for xcmp queue controller
* plurality bodies to ensure origin
* include root into controller ensure origin
* fix
* use xcm bodies
* rename to more frequent "defense"
Co-authored-by: parity-processbot <>
2022-12-22 12:01:46 +00:00
Sergejs Kostjucenko
e961e36250
fix dependabot labels ( #6468 )
2022-12-22 12:26:24 +01:00
ordian
d72775d37c
cargo update -p libp2p-yamux ( #6464 )
2022-12-22 12:23:44 +01:00
Serban Iorga
ed417f8d09
Mmr client gadget - support pallet reset ( #12999 )
...
* Remove unneeded code
* Moving some code
* Support pallet-mmr reset
* Rename update_first_mmr_block
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* Renamings
Co-authored-by: Adrian Catangiu <adrian@parity.io >
2022-12-22 11:00:12 +00:00
Oliver Tale-Yazdi
888dac25e8
Migration should be pub ( #12996 )
...
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2022-12-21 22:00:27 +00:00
Michal Kucharczyk
a1a9dff12c
txpool: TestApi best_block fix ( #12992 )
...
This is a minor clean up.
There was a minor bug in TestApi::add_block: the best block flag for
given number was not cleared when the new best block with the same
number was added.
The usage of is_best_block argument in add_block method in txpool tests
were aligned with the BestBlock event.
2022-12-21 16:36:08 +00:00
Muharem Ismailov
4dc62d7e71
Scheduler: remove empty agenda on cancel ( #12989 )
...
* Scheduler: remove empty agenda on cancel
* use iter any
* fix benches
* remove trailing None
* Add CleanupAgendas migration
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix ci
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Count non-empty agendas in migration
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 >
2022-12-21 15:25:46 +00:00
dependabot[bot]
f008acac13
Bump serde_json from 1.0.89 to 1.0.91 ( #2009 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.89 to 1.0.91.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.89...v1.0.91 )
---
updated-dependencies:
- dependency-name: serde_json
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-12-21 15:01:52 +00:00
Dino Pačandi
f9e49125ef
Companion for Substrate 12307 ( #1947 )
...
* Companion for pallet-assets callback
* Update lock file
2022-12-21 14:06:13 +00:00
Dino Pačandi
9cdb920462
Add CallbackHandle to pallet-assets ( #12307 )
...
* Add CallbackHandle to pallet-assets
* Address review comments
* Add use for sp_io::storage
* Rebase & review comments
* Fix UT
Co-authored-by: Hoon Kim <mail@hoonkim.me >
2022-12-21 14:03:49 +01:00
Michal Kucharczyk
525b0cc032
BlockId removal: refactor: HeaderBackend::status ( #2007 )
...
* BlockId removal: refactor: HeaderBackend::status
It changes the arguments of `HeaderBackend::status` method from: `BlockId<Block>` to: `Block::Hash`
This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292 )
* update lockfile for {"polkadot", "substrate"}
Co-authored-by: parity-processbot <>
2022-12-21 11:52:40 +00:00
Michal Kucharczyk
ade78c2cf2
BlockId removal: refactor: HeaderBackend::status ( #6459 )
...
* BlockId removal: refactor: HeaderBackend::status
It changes the arguments of `HeaderBackend::status` method from: `BlockId<Block>` to: `Block::Hash`
This PR is part of BlockId::Number refactoring analysis (paritytech/substrate#11292 )
* Update node/core/chain-api/src/tests.rs
Co-authored-by: Adrian Catangiu <adrian@parity.io >
* unused import removed
* update lockfile for {"substrate"}
Co-authored-by: Adrian Catangiu <adrian@parity.io >
Co-authored-by: parity-processbot <>
2022-12-21 11:15:59 +00:00