Bastian Köcher
5bf4ff56bc
pallet-merkle-mountain-range: Remove extra Hash type ( #14214 )
...
* pallet-merkle-mountain-range: Remove extra `Hash` type
* FMT
2023-05-24 15:14:53 +00:00
Liam Aharon
078699c354
Migration hook fixes ( #14174 )
...
* fix offences pre_upgrade hook
* identify source of ensure! failures
* stop migration hooks breaking post migration
* add childbounties storage version
* init child bounties version to zero
* Update frame/child-bounties/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* remove redundant preupgrade version checks
* update test
* fix nom pools v3 migration
* kick ci
* kick ci
---------
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-05-23 16:01:51 +00:00
Squirrel
ea21a495f8
Easy PR: Fix warnings from latest nightly ( #14195 )
...
* unneeded mut
* remove needless borrows
2023-05-23 17:06:48 +02:00
dependabot[bot]
acadc6d147
Bump syn from 2.0.15 to 2.0.16 ( #14196 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 2.0.15 to 2.0.16.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/2.0.15...2.0.16 )
---
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-05-23 15:55:41 +02:00
Ignacio Palacios
0cf9f3b4f2
Add genesis config to Glutton pallet ( #14188 )
...
* glutton gensis config added
* Glutton pallet updates (#14192 )
* Add admin origin and other fixes
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove magic number
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Typo
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix genesis_build
* Fix docs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix kitchensink runtime
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fix twox_256
* fmt
* twox_256 clean
* nitpick
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
2023-05-23 15:15:20 +02:00
Koute
194c9edd4a
Remove the Copy bound on AssetId ( #14158 )
...
* Remove the `Copy` bound on `AssetId`
* Also relax the `Copy` bound in the assets pallet
* Fix warnings on the newest nightly Rust
* Remove some unnecessary `clone()`s
* Try to satisfy clippy
* Remove some more unnecessary `clone()`s
* Add more `.clone()`s for newly merged code
* Also add `clone()`s in the benchmarks
---------
Co-authored-by: parity-processbot <>
2023-05-23 11:34:04 +00:00
Gavin Wood
06865d4c08
Actually respect locks of zero ( #14144 )
...
* Actually thaw when locking zero.
* Fixes
* Just remove the lock if semantically viable
---------
Co-authored-by: parity-processbot <>
2023-05-23 08:47:08 +00:00
lanaivina
41dbed0b90
NFTs fractionalization ( #12565 )
...
* 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
* Initial commit SFT pallet.
* 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 >
* Rename module to NFT fractionalisation
* Loose coupling for pallet-assets
* cargo fmt
* [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
* Replace uniques with nfts, add minted volume storage
* DepositRequired setting should affect only the attributes within the CollectionOwner namespace
* Add unlock functionality
* [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..
* Asset to NFT id storage mutations
* Minor fixes
* Minor comments
* cargo fmt
* Remove benchmarking, unused clone()
* 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
* Fmt
* 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
* Refactor nft fractionalisation pallet (#13008 )
* Refactoring
* Make it compile
* Add tests
* Rename
* Rework nfts locking
* Update cargo.lock
* Connect the latest changes to the runtime-kitchensink
* Add benchmarks, fix other issues
* Chore
* Chore 2
* Chore 3
* Add runtime-benchmarks
* Rename
* Set metadata
* Make fields public
* Chore
* Created asset shouldn't be sufficient
* Add documentation
* minor edit to docs
* Minor corrections
Co-authored-by: lana-shanghai <svetlana.konstantinovna@gmail.com >
* fmt
* Add fee reserved before creating an asset
* Use ReservableCurrency for fee deposit
* Improvements
* Revert fmt changes
* A bit more cleanup
* Consistent naming
* Make it more generic
* Leftover
* Use Vec<u8> instead of String
* Update to the latest + improve the Locker trait
* Refactor NFTs locker
* Replace Vec with BoundedVec, add clearer errors
* cargo fmt
* Add README about unlocking NFTs
* add constant definition
* add fortitude & precision to asset related functions
* fix mock and tests
* transfer ExistentialDeposit to pallet if it's balance is below
* Refactoring
* Simplify the locking mechanism
* Use PalletAttributes enum instead of the LOCKED_NFT_KEY
* Fix benchmark
* Add missing licence details
* Update Cargo.toml
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nft_fractionalization
* Apply suggestions from code review
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Update frame/nft-fractionalization/README.md
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
---------
Co-authored-by: Jegor Sidorenko <jegor@parity.io >
Co-authored-by: Sergej Sakac <73715684+Szegoo@users.noreply.github.com >
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@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 >
2023-05-23 07:17:48 +00:00
Sergej Sakac
df87bae1a9
BREAKING - Try-runtime: Use proper error types ( #13993 )
...
* Try-state: DispatchResult as return type
* try_state for the rest of the pallets
* pre_upgrade
* post_upgrade
* try_runtime_upgrade
* fixes
* bags-list fix
* fix
* update test
* warning fix
* ...
* final fixes 🤞
* warning..
* frame-support
* warnings
* Update frame/staking/src/migrations.rs
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
* fix
* fix warning
* nit fix
* merge fixes
* small fix
* should be good now
* missed these ones
* introduce TryRuntimeError and TryRuntimeResult
* fixes
* fix
* removed TryRuntimeResult & made some fixes
* fix testsg
* tests passing
* unnecessary imports
* Update frame/assets/src/migration.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
---------
Co-authored-by: Liam Aharon <liam.aharon@hotmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2023-05-23 06:56:10 +00:00
Robert Hambrock
09a7e69012
Revert "Optimize merkle proofs for efficient verification in Solidity ( #12857 )" ( #14176 )
...
* Revert "Optimize merkle proofs for efficient verification in Solidity (#12857 )"
This reverts commit c077597afb since we
still require commitment to the leaves - see #12820 .
* remove PartialOrd trait from mmr hash type
2023-05-22 11:55:40 +00:00
Gavin Wood
7f0597a1e6
FRAME: Allow message ID to be mutated in ProcessMessage ( #14183 )
2023-05-21 20:20:14 +01:00
Michal Kucharczyk
613420a035
frame: Enable GenesisConfig in no_std ( #14108 )
...
* frame: Default for GenesisConfig in no_std
`Default` for `GenesisConfig` will be required for no_std in no native
runtime world. It must be possible to instantiate default GenesisConfig
for pallets and runtime.
* ".git/.scripts/commands/fmt/fmt.sh"
* hash69 in no_std reverted
* derive(DefaultNoBound) for GenesisConfig used when possible
* treasury: derive(Default)
* Cargo.lock update
* genesis_config: compiler error improved
When std feature is not enabled for pallet, the GenesisConfig will be
defined, but serde::{Serialize,Deserialize} traits will not be
implemented.
The compiler error indicates the reason of latter errors.
This is temporary and serde traits will be enabled with together with
`serde` support in frame.
---------
Co-authored-by: command-bot <>
2023-05-20 07:34:23 +00:00
Muharem Ismailov
4624856e3e
Core-Fellowship: fix origin typo ( #14179 )
2023-05-19 16:16:58 +00:00
gupnik
958f4aaa38
Adds ability to use default hasher in dev_mode for explicit key binding ( #14164 )
...
* Initial setup
* Minor update
* Minor update
* Addresses review comments
* Addresses review comments
* Updates doc
* ".git/.scripts/commands/fmt/fmt.sh"
* Renames file
* Updates path in test
---------
Co-authored-by: command-bot <>
2023-05-19 13:24:32 +00:00
yjh
99b05fd918
chore: move whitelist test to better place and add missing Inactive Issuance ( #14130 )
...
* chore: move whitelist test to better palace and add missing `Inactive Issuance`
* remove duplicated
---------
Co-authored-by: parity-processbot <>
2023-05-17 22:26:33 +00:00
Muharem Ismailov
e17680fde7
Max class voters for ranked collective vote tally ( #13313 )
...
* max class voters for vote tally
* fix move
* tests
* rename to GetMaxVoters
* saturating sub
---------
Co-authored-by: parity-processbot <>
2023-05-17 10:58:44 +00:00
Bastian Köcher
9b90434237
frame-system: uniques remove one encode call ( #14154 )
...
* frame-system: `uniques` remove one `encode` call
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: command-bot <>
2023-05-16 19:56:42 +00:00
Suraj Kumar
2c684e4ddf
remove deprecated remove_prefix to clear era_info ( #13460 )
...
* remove deprecated remove_prefix to clear era_info
* add debug assertions to check that the returned cursor is None
* add a variable to hold the cursor
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: command-bot <>
2023-05-16 16:39:21 +00:00
Gavin Wood
bd45542b20
Tweak to avoid minor entropy loss ( #14152 )
2023-05-15 19:19:23 +00:00
Kian Paimani
147b018463
fully enable RuntimeDebug in feature = try-runtime ( #14136 )
...
* fully enable `RuntimeDebug` in `feature = try-runtime`
* Delete settings.json
* fix
* fix
* fix
* update lock file with sp-debug-derive dep
* update doc
---------
Co-authored-by: muharem <ismailov.m.h@gmail.com >
2023-05-15 19:07:48 +00:00
Gavin Wood
f30e6df370
Introduce function into frame System ( #14149 )
2023-05-15 18:11:33 +01:00
Muharem Ismailov
0a105eed6f
AccountTouch: deposit_required requires asset id ( #14147 )
2023-05-15 16:08:07 +00:00
Gonçalo Pestana
5854ef0fd1
Adds integration test for slashed/chilled validator with subsequent validation intention ( #13717 )
...
* Adds integration test for slashed/chilled validator with subsequent validation intention
* Removes unecessary comment
* Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/election-provider-multi-phase/test-staking-e2e/src/lib.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Addresses PR review comments
* Fixes after conflict resolved
---------
Co-authored-by: parity-processbot <>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2023-05-15 12:04:29 +00:00
Oliver Tale-Yazdi
c830bba300
Fix staking genesis build ( #14140 )
...
Cumulus CI is stuck in https://github.com/paritytech/cumulus/pull/2574 , so companion check will be red.
Changes_
- Controller not needed
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-05-15 10:31:55 +00:00
Sam Johnson
b408c8b2f8
fix genesis broken gensis config doc link ( #14125 )
2023-05-12 12:55:28 +00:00
Ross Bulat
56940bc874
Staking::{bond, set_controller} to set controllers to stash only. ( #14039 )
...
* update set_controller
* clone
* bond uses `stash`
* remove controller from bond(), chill_other test works
* remove ctlr from testing_utils & dead ctlr -> dead payee
* mvs controllers to stashes for 3 tests
* migrate mock bond fns & fix 1 test
* mvs controllers to stashes for 7 tests
* mvs controllers to stashes for 9 tests
* remove double_controlling_should_fail
* remove double_staking_should_fail
* mvs controllers to stashes for 10 tests
* mvs controllers to stashes for 2 tests
* remove payout_creates_controller
* mvs controllers to stashes for 27 tests
* remove println!
* fix rewards_should_work
* fix test_payout_stakers
* fix bond benchmark
* clone
* rm unused import
* rm unused var
* rm controller from create_offender
* fix GenesisConfig stakers
* fix controllers in consensus pallets
* fix unqiue controller in chain_spec
* fmt
* fix create_offender
* fix set_controller benchmark
* add TODO
* create_unique_stash_controller
* staking benchmarks working
* fmt
* fix args
* rm println
* import
* import
* fix fast unstake tests
* fix staking-tests-e2e
* fix root-offenses
* fmt
* differentiate controller to stash
* bring back change_controller_works w. unique ctrl
* bring back double_staking_should_fail
* double_controlling_attempt_should_fail
* bring back payout_creates_controller
* add commnet to controller balances
* + set_controller call description
* fmt
* rm clones
* fmt
* clippy fixes
* fmt
* update README
* small fixes
* use controller_to_be_deprecated
* .comment
* comment
* bump zombienet version
* ci
---------
Co-authored-by: parity-processbot <>
Co-authored-by: Javier Viola <javier@parity.io >
2023-05-11 18:22:15 +00:00
Falco Hirschenberger
0eeaf7709f
Create benchmark for the system::set_code instrisic ( #13373 )
...
* Still WIP
# Conflicts:
# frame/system/src/weights.rs
* Still WIP
* Add benchmark for system::set_code intrinsic
fixes #13192
* Fix format
* Add missing benchmark runtime
* Fix lint warning
* Consume the rest of the block and add test verification after the benchmark
* Rewrite set_code function
* Try to fix benchmarks and tests
* Remove weight tags
* Update frame/system/src/tests.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Register ReadRuntimeVersionExt for benches
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix tests
* Fix deprecations
* Fix deprecations
* ".git/.scripts/commands/bench/bench.sh" pallet dev frame_system
* Add update info and remove obsolete complexity comments.
* ".git/.scripts/commands/fmt/fmt.sh"
* Update frame/system/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/system/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/system/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/system/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* Update frame/system/benchmarking/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* ".git/.scripts/commands/fmt/fmt.sh"
* Update README.md
Just trigger CI rebuild
* Update README.md
Trigger CI
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: Bastian Köcher <git@kchr.de >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: command-bot <>
2023-05-11 16:25:50 +00:00
Muharem Ismailov
05201c4047
Assets: impl ContainsPair for asset and account IDs ( #14119 )
...
* Assets impl ContainsPair for asset and account IDs
* clap version
2023-05-11 15:56:01 +00:00
Doordashcon
4795c29e9c
Benchmark pallet sudo ( #13880 )
...
* set_key
* v2
* update runtime
* cargo fmt
* remove commenting
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_sudo
* impl weights
* sudo & sudo_as
* where
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_sudo
* update weights
* cargo fmt
* Update Cargo.lock
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 <>
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-05-11 13:28:46 +00:00
Oliver Tale-Yazdi
bf506d41cb
Remove #[pallet::generate_storage_info] from docs ( #14116 )
...
* Fix docs
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Add UI test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-05-10 20:29:00 +00:00
Gavin Wood
bc39bdcb32
Timeout only if the referendum is not queued ( #14106 )
...
* Timeout only if the referendum is not queued
* ".git/.scripts/commands/fmt/fmt.sh"
---------
Co-authored-by: command-bot <>
2023-05-10 09:41:46 +00:00
Koute
8f6445fb8e
Remove the Copy bound on CollectionId in the uniques pallet ( #14111 )
...
* Remove the `Copy` bound on `CollectionId` in the uniques pallet
* Also add `clone`s in benchmarks
2023-05-10 09:39:43 +00:00
PG Herveou
74ba3b29f7
Add non_camel_case_types for storage_alias ( #14104 )
2023-05-09 15:24:41 +00:00
Oliver Tale-Yazdi
55b18ea9a0
Deprecate Pallet decl_* Macros ( #13705 )
...
* Deprecate decl_ macros
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Allow deprecated in tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "Allow deprecated in tests"
This reverts commit ce36080f9bb4079e9069af8ee02e0954753ae412.
* Deprecate all
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Push missing files
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Move decl_module to own file
Otherwise i have to spam allow(deprecated) for all recursive calls.
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Revert "Move decl_module to own file"
This reverts commit 543a31185cda708d417127d6cb89cdc0c31d1f34.
* Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
---------
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
2023-05-09 14:28:47 +00:00
Keith Yeung
da24214174
Emit events related to asset mutations ( #14099 )
...
* Emit events related to asset mutations
* Fixes
* Improve unit tests
* cargo fmt
2023-05-09 12:28:58 +00:00
Qinxuan Chen
dcc0858f67
frame-support-test: migrate tests from decl_* macros to the new pallet macros ( #12445 )
...
* frame-support: migrate some tests from decl macros to new pallet attribute macros
* Remove useless type alias
* Remove useless type alias
* frame-support-test: migrate old decl_macros to new pallet attribute macros
* fmt
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix features
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Remove deprecated stuff
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update UI tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix UI test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix test
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Update UI tests
Signed-off-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Cleanup
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 >
Co-authored-by: parity-processbot <>
2023-05-09 09:22:55 +00:00
dependabot[bot]
a6b61e2df8
Bump cfg-expr from 0.10.3 to 0.15.1 ( #14092 )
...
Bumps [cfg-expr](https://github.com/EmbarkStudios/cfg-expr ) from 0.10.3 to 0.15.1.
- [Release notes](https://github.com/EmbarkStudios/cfg-expr/releases )
- [Changelog](https://github.com/EmbarkStudios/cfg-expr/blob/main/CHANGELOG.md )
- [Commits](https://github.com/EmbarkStudios/cfg-expr/compare/0.10.3...0.15.1 )
---
updated-dependencies:
- dependency-name: cfg-expr
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-05-08 16:28:00 +00:00
joe petrowski
be56fd3f53
Allow Creation of Asset Accounts That Don't Exist Yet and Add Blocked Status ( #13843 )
...
* prevent frozen accounts from receiving assets
* refund deposits correctly
* plus refund_other
* add benchmarks
* start migration work
* docs
* add migration logic
* fix freeze_creating benchmark
* support instanced migrations
* review
* correct deposit refund
* only allow depositor, admin, or account origin to refund deposits
* make sure refund actually removes account
* do refund changes
* Asset's account deposit owner (#13874 )
* assets deposit owner
* doc typo
* remove migration
* empty commit
* can transfer to frozen account
* remove allow_burn from refund_other
* storage version back to 1
* update doc
* fix benches
* update docs
* more tests
* Update frame/assets/src/types.rs
* refund updating the reason
* refactor
* separate refund and refund_foreign
* refunds, touch_other, tests
* fixes
* fmt
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_assets
* tests: asserts asset account counts
* Account touch trait (#14063 )
* assets touch trait
* docs
* move touch trait into support/traits
* permissionless flag for do_touch
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* move trait to misc, drop option
* Apply suggestions from code review
Co-authored-by: Gavin Wood <gavin@parity.io >
* correct doc
* Update frame/assets/src/functions.rs
---------
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Gavin Wood <gavin@parity.io >
Co-authored-by: joe petrowski <25483142+joepetrowski@users.noreply.github.com >
* Block asset account (#14070 )
* replace is_fronzen flag by status enum
* block asset account
* remove redundant brackets
* fix typo
* fmt
* Apply suggestions from code review
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
* rename permissionless to check_depositor
* doc fix
* use account id lookup instead account id
* add benchmark for touch_other
---------
Co-authored-by: muharem <ismailov.m.h@gmail.com >
Co-authored-by: command-bot <>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Gavin Wood <gavin@parity.io >
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
2023-05-08 10:17:35 +00:00
Bastian Köcher
ba2fe5c65f
Improve try-runtime::on_runtime_upgrade and fix some storage version issues ( #14083 )
...
We now run all `try_on_runtime_upgrade` and collect the errors, instead of bailing on the first
error. This makes it easier to see directly all the things that are failing instead of fixing one,
recompiling and then checking the next one.
Then this pr also sets the correct storage version for `pallet-bounties` that was already correctly
set in the storage with the appropriate migration.
2023-05-05 17:25:45 +00:00
Sasha Gryaznov
d2575f0e5a
add error logging to call_runtime ( #14082 )
2023-05-05 14:34:21 +00:00
Mira Ressel
38cbe023c9
Bump ci-linux to rust 1.69 ( #14060 )
...
* Pin ci-linux image for rust 1.69
* Update ui tests for rust 1.69
* Address new rust 1.69 clippy lints
* `derive_hash_xor_eq` has been renamed to `derived_hash_with_manual_eq`
* The new `extra-unused-type-parameters` complains about a bunch of
callsites where extraneous type parameters are used for consistency
with other functions.
2023-05-05 16:00:41 +02:00
Bastian Köcher
e2547f5064
Improve handling of unset StorageVersion ( #13417 )
...
* Improve handling of unset `StorageVersion`
When a user is forgetting to set the storage version in a pallet and calls
`current_storage_version` to compare it against the `on_chain_storage_version` it will now fail to
compile the code. Before the pallet macro just returned `StorageVersion::default()` for
`current_storage_version` leading to potential issues with migrations. Besides that it also checks
in `post_upgrade` that the pallet storage version was upgraded and thus, no migration was missed.
* Use correct `Cargo.lock`
* Fixes
* Fix test
* Update frame/support/test/tests/pallet.rs
* Ensure we don't set a storage version when the pallet is missing the attribute
* Fix merge conflict
* Update frame/support/procedural/src/pallet/expand/hooks.rs
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
* Update frame/support/procedural/src/pallet/expand/hooks.rs
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
* Fix compilation
* Do not run everything with `try-runtime`
* Fix test
* Apply suggestions from code review
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
* Fix `no-metadata-docs`
---------
Co-authored-by: Roman Useinov <roman.useinov@gmail.com >
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io >
Co-authored-by: parity-processbot <>
2023-05-04 21:18:53 +02:00
Liam Aharon
9c53fd7299
fungible conformance tests: Inspect and Mutate ( #13852 )
...
* typo
* - create test files for each fungile trait
- begin implementing tests for the Inspect trait
* wrap inspect tests in a macro
* first run of mutate tests
* move test implementation out of ballances
* make tests more generic
* transfer tests
* combine inspect and mutate tests
* set balance failing tests
* can_deposit tests
* can_withdraw tests
* test reducible_balance
* remove balanced stub
* revert set_balance return val fix
* typo
* macro and dust trap tests
* disable test when it doesn't make sense
* remove debug comment
* reduce macro boilerplate
* improved var naming
* improve variable naming
* remove redundant comment
* remove placeholder tests
* remove placeholder tests
* simplify macro
* Update frame/balances/src/tests/fungible_conformance_tests.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* use Balance from T
* fix copyright
* add test doc comments
* improve test naming
* clippy
* fix rustdoc errors
* fix rustdoc
* improve macro
* improve variable naming
* remove redundant comment
* use path
---------
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2023-05-05 02:21:40 +10:00
Davide Galassi
3a90728de0
Refinements to VRF types ( #14036 )
...
* Allow extra signing data
* Fix tests after renaming
* Rename VrfSecret/VrfVerifier to VrfSecret/VrfPublic
* Further encrapsulation of 'transcript' type to the sr25519 implementation
* Keystore sr25519 pre-output
* Leave additional custom input field hidden in the associated VrfInput type
* Fix test
* More ergonomic output_bytes
* Trigger pipeline
* Define a separated type for vrf signature data
* Fix docs
* Fix doc
* Remove annotation
* Directly use dleq_proove and dleq_verify in sr25519
* Trigger CI
* Remove cruft before merge
2023-05-04 15:41:59 +02:00
Arkadiy Paronyan
bfafbf7bac
Statement store ( #13701 )
...
* WIP Statement store
* Sync with networking changes in master
* WIP statement pallet
* Statement validation
* pallet tests
* Validation queue
* Store maintenance
* Basic statement refactoring + tests + docs
* Store metrics
* Store tests
* Store maintenance test
* cargo fmt
* Build fix
* OCW Api
* Offchain worker
* Enable host functions
* fmt
* Minor tweaks
* Fixed a warning
* Removed tracing
* Manual expiration
* Reworked constraint management
* Updated pallet constraint calculation
* Added small test
* Added remove function to the APIs
* Copy-paste spec into readme
* Comments
* Made the store optional
* Removed network protocol controller
* fmt
* Clippy fixes
* fmt
* fmt
* More clippy fixes
* More clippy fixes
* More clippy fixes
* Update client/statement-store/README.md
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
* Removed sstore from node-template
* Sort out data path
* Added offline check
* Removed dispatch_statement
* Renamed into_generic
* Fixed commit placement
* Use HashSet for tracking peers/statements
* fmt
* Use ExtendedHostFunctions
* Fixed benches
* Tweaks
* Apply suggestions from code review
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
* Fixed priority mixup
* Rename
* newtypes for priorities
* Added MAX_TOPICS
* Fixed key filtering logic
* Remove empty entrie
* Removed prefix from signing
* More documentation
* fmt
* Moved store setup from sc-service to node
* Handle maintenance task in sc-statement-store
* Use statement iterator
* Renamed runtime API mod
* fmt
* Remove dump_encoded
* fmt
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <git@kchr.de >
* Fixed build after applying review suggestions
* License exceptions
* fmt
* Store options
* Moved pallet consts to config trait
* Removed global priority
* Validate fields when decoding
* Limit validation channel size
* Made a comment into module doc
* Removed submit_encoded
---------
Co-authored-by: cheme <emericchevalier.pro@gmail.com >
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-05-04 10:24:32 +00:00
juangirini
b8a01127d7
contracts: add events to ContractResult ( #13807 )
...
* contracts: add events to ContractResult
* contracts: add encoded events to ContractResult
* contracts: add generic Event to ContractResult
* contracts: test bare_call events
* contracts: update bare_call test name
* contracts: add better comments to dry run events
* contracts: fix pallet contracts primitives implementation
* contracts: add EventRecord generic to ContractInstantiateResult
* contracts: make event collection optional
* contracts: impreved notes on `collect_events`
* contracts: update benchmarking calls
* contracts: change bare_call and bare_instantiate to accept enums instead of bools
* contracts: add partial eq to new enums
* contracts: improve comments
* contracts: improve comments
* contracts: fix bare_call benchmarking
* contracts: fix bare call and instantiate in impl_runtime_apis
* contracts: add api versioning to new ContractsApi functions
* contracts: modify api versioning to new ContractsApi functions
* contracts: create new contracts api trait
* contracts: clean up code
* contracts: remove the contract results with events
* contracts: undo contracts api v3
* contracts: remove commented out code
* contracts: add new test bare call result does not return events
* contracts: add code review improvements
* contracts: remove type imports
* contracts: minor code review improvements
2023-05-03 13:45:04 +00:00
Bastian Köcher
13cab3a4b7
test-staking-e2e: Add to main Cargo.toml. ( #14062 )
...
This ensures that it is actually tested as part of the CI. There is also no need to have it separate.
2023-05-03 15:15:49 +02:00
Mira Ressel
793f04fc05
Bump clap to 4.2.5 ( #14061 )
...
Co-authored-by: parity-processbot <>
2023-05-02 17:54:18 +00:00
juangirini
5db4119f93
contracts: Make Origin information available ( #13708 )
...
* contracts: allow root calls
* contracts: update ContractOrigin
* contracts: test allow root calls
* contracts: rustfmt
* contracts: test root caller traps
* contracts: add Caller enum
* contracts: improve some comments
* contracts: improve some comments
* contracts: format code with +nightly
* contracts: fix failing tests
* contracts: improve charte instantiate call when root origin
* contract: refactor common, call and instantiate inputs
* contracts: fix some failing test
* contracts: trap caller when there is no account id
* Update frame/contracts/src/lib.rs
Co-authored-by: PG Herveou <pgherveou@gmail.com >
* Update frame/contracts/src/exec.rs
Co-authored-by: PG Herveou <pgherveou@gmail.com >
* contracts: make `into_deposit` return zero when the origin is root
* contracts: cargo fmt
* contracts: charging and terminating tests refactored
* contracts: improved errors
* contracts: refactor & merge ContractOrigin cand Caller enums
* Update frame/contracts/src/lib.rs
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
* contracts: apply suggested pr changes
* contracts: rename Caller to Origin
* contracts: refactor run fn
* contracts: cr improvements
* contracts: allow root to use delegate call
* contracts: add caller_is_root weight
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
* contracts: add caller_is_root benchmarking
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
* contracts: add caller_is_root benchmarking
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
* contracts: add some minor improvements
* contracts: make caller_is_root runtime fn unstable
* contracts: fix failing wasm test
* contracts: update benchmarking for origin_is_root
* contracts: improve seal_caller_is_root benchmarking
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
* contracts: add small pr improvements
* contracts: fix broken tests after master merge
* contracts: acknowledge the default storage deposit limit
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_contracts
* contracts: move origin to CommonInput
* contracts: add some extra tests
* contracts: move ensure origin logic inside invokable::run_guarded
* contracts: add minor improvements
* contracts: fix caller_is_root benchmarking
* contracts: improve function description
* Update frame/contracts/src/lib.rs
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
* Update frame/contracts/src/lib.rs
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
* Update frame/contracts/src/wasm/runtime.rs
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
* contracts: improve function description
---------
Co-authored-by: parity-processbot <>
Co-authored-by: PG Herveou <pgherveou@gmail.com >
Co-authored-by: Sasha Gryaznov <hi@agryaznov.com >
2023-05-02 16:45:14 +00:00
Bastian Köcher
9a3555d2e2
Fix bags-list tests execution ( #14047 )
...
The `test` feature isn't propagated to dependencies in Rust, so we should just enable the method as
well for `std`.
2023-05-01 07:47:43 +00:00