Juan
878c562cd4
Restructure frame_support macro related exports ( #14745 )
...
* make reexports private
* make reexports private 2
* make reexports private for runtime-benchmarking
* make reexports private for try-runtime
* fix for try-runtime
* make reexports private for tests
* fmt
* make reexports private for tests
* make reexports private for experimental
* fix beefy
* fix ui test
* fix ui test
* fix benches
* ".git/.scripts/commands/fmt/fmt.sh"
* fix contracts use
* wip
* wip
* do not reexport sp_api::metadata_ir
* fix CI checks
* fix support tests
* ".git/.scripts/commands/fmt/fmt.sh"
* Update frame/support/src/lib.rs
Co-authored-by: Bastian Köcher <git@kchr.de >
* import codec directly
* fmt
* fix node-cli tests
---------
Co-authored-by: command-bot <>
Co-authored-by: Bastian Köcher <git@kchr.de >
2023-08-23 12:30:12 +00:00
Sacha Lansky
ddb68d7b01
[fix lint warnings: NFTs pallet] fix clippy::missing_docs_in_private_items warnings ( #14610 )
...
* add docs for impl_codec_bitflags
* add missing docs for type aliases
* add docs to transfer module
* add docs for settings module
* add docs to roles module
* add docs to metadata module
* add docs to migration module
* add missing docs to feature library
* methods not functions
* add docs to lock module
* add docs to attributes module
* add docs to create_delete_item module
* add docs for create_delete_collection module
* add docs to buy_sell module
* add missing doc for buy_sell module
* add docs to atomic_swap module
* add docs to atomic_swap module
* add docs for approvals module
* run cargo fmt
* Fix issues with multi-line comments
* Apply suggestions from code review
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
* update from review
* fmt
* update from review
* remove bitflag example
* ".git/.scripts/commands/fmt/fmt.sh"
* Apply suggestions from code review
Co-authored-by: Squirrel <gilescope@gmail.com >
* add note about pallet features
---------
Co-authored-by: Jegor Sidorenko <jegor@parity.io >
Co-authored-by: Jegor Sidorenko <5252494+jsidorenko@users.noreply.github.com >
Co-authored-by: parity-processbot <>
Co-authored-by: Squirrel <gilescope@gmail.com >
2023-08-16 09:54:03 +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
Jegor Sidorenko
f6b9e056ae
[NFTs] Rework permissions model ( #13482 )
...
* Disallow admin to transfer or burn items he doesn't own
* lock_collection should be accessible by collection's owner only
* Allow admin to access lock_item_properties()
* Fix do_lock_item_properties
* Move update_mint_settings() to Issuer
* Rename check_owner to check_origin
* Typo
* Make admin to be in charge of managing the metadata
* Make admin the main attributes manager
* offchain mint should be signed by Issuer
* Remove the special case when the Issuer calls the mint() function
* Rework burn and destroy methods
* Return back item_metadatas
* Don't repatriate the deposit on transfer
* A bit more tests
* One more test
* Add migration
* Chore
* Clippy
* Rename to owned_item
* Address comments
* Replace .filter_map with .find_map
* Improve version validation in pre_upgrade()
* ".git/.scripts/commands/bench/bench.sh" pallet dev pallet_nfts
---------
Co-authored-by: parity-processbot <>
2023-03-13 08:25:46 +00:00