Ayevbeosa Iyamu
56fb1cfbb6
Used CountedStorageMap in pallet-staking ( #10233 )
...
* Removed counters and used CountedStorageMap instead.
* Little refactoring
* Update frame/staking/src/migrations.rs
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
* Removed redundant code to update counter for validator & nominator.
* Removed redundant code to update counter for validator & nominator.
* Removed unreachable code to inject the hashed prefix for nominator & validator.
* Removed redundant check for nominator & validator count.
* Generated `fn prefix_hash` for `CountedStorageMap`.
* Applied changes from `cargo fmt`
* Possible correct implementation of migration code
* Implemented fn module_prefix, storage_prefix and prefix_hash.
* Removed counted_map.rs
* Renamed `fn storage_prefix` to `storage_counter_prefix`.
* Update frame/support/src/storage/types/counted_map.rs
* Update frame/bags-list/remote-tests/src/snapshot.rs
* Update frame/support/src/storage/types/counted_map.rs
* Fixed errors.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-12-07 09:21:27 +00:00
Guillaume Thiolliere
9756615d5b
Fix pallet bags list and doc ( #10231 )
...
* fix bags list
* improve doc
* doc
* inner doc
* fix test
* Update docs in frame/election-provider-support/src/lib.rs
* fix staking impl
* prepend unsafe to clear and regenerate
* fix test
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-12-03 05:58:12 +00:00
Alex Pozhylenkov
1d19c7dc7f
Move EnsureOneOf into the dispatch.rs, make an interface more general ( #10379 )
...
* move EnsureOneOf into the dispatch.rs, make an interface more general
* Update frame/support/src/traits/dispatch.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-12-01 21:31:57 +00:00
Guillaume Thiolliere
db28ba9dfd
Fix order of hook execution ( #10043 )
...
* fix order
* Update frame/support/procedural/src/construct_runtime/mod.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* format
* more accurate description
* format
* better explicit types
* fix tests
* address feedback
* add a type to ease non breaking implementation
* add comment about constraint
* fix test
* add test for generated types
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
2021-12-01 00:59:09 +00:00
Alexander Popiak
3675d87f51
derive Debug for CrateVersion and StorageVersion ( #10355 )
2021-11-24 13:39:11 +00:00
Guillaume Thiolliere
fcfb766366
Fix some doc link ( #10329 )
...
* fix some doc link
* fmt
2021-11-22 10:48:53 +00:00
dharjeezy
cac9d85cb3
use proper intra doc link ( #10271 )
...
* use proper intra doc link
* use proper intra doc link
* get system path name from path module name function for the docs
* used format macro in formatting doc string for better output
* helper function to get intra doc string
* helper function to get intra doc string
* use helper function on expand_origin_pallet_conversions
* remove duplicates
* Update frame/support/procedural/src/construct_runtime/expand/origin.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* remove leading white space
Co-authored-by: Damilare <dakinlose@teamapt.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-11-21 14:42:21 +01:00
dependabot[bot]
bae12f41b8
Bump structopt from 0.3.23 to 0.3.25 ( #10253 )
...
* Bump structopt from 0.3.23 to 0.3.25
Bumps [structopt](https://github.com/TeXitoi/structopt ) from 0.3.23 to 0.3.25.
- [Release notes](https://github.com/TeXitoi/structopt/releases )
- [Changelog](https://github.com/TeXitoi/structopt/blob/master/CHANGELOG.md )
- [Commits](https://github.com/TeXitoi/structopt/compare/v0.3.23...v0.3.25 )
---
updated-dependencies:
- dependency-name: structopt
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com >
* cargo fmt
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-11-13 02:35:07 +00:00
dependabot[bot]
67be56a39f
Bump rustversion from 1.0.4 to 1.0.5 ( #10243 )
...
Bumps [rustversion](https://github.com/dtolnay/rustversion ) from 1.0.4 to 1.0.5.
- [Release notes](https://github.com/dtolnay/rustversion/releases )
- [Commits](https://github.com/dtolnay/rustversion/compare/1.0.4...1.0.5 )
---
updated-dependencies:
- dependency-name: rustversion
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>
2021-11-12 14:42:26 +01:00
Arkadiy Paronyan
4cbbf0cf43
Kill the light client, CHTs and change tries. ( #10080 )
...
* Remove light client, change tries and CHTs
* Update tests
* fmt
* Restore changes_root
* Fixed benches
* Cargo fmt
* fmt
* fmt
2021-11-12 14:15:01 +01:00
dependabot[bot]
2c5337e4b2
Bump proc-macro-crate from 1.0.0 to 1.1.0 ( #10237 )
...
Bumps [proc-macro-crate](https://github.com/bkchr/proc-macro-crate ) from 1.0.0 to 1.1.0.
- [Release notes](https://github.com/bkchr/proc-macro-crate/releases )
- [Commits](https://github.com/bkchr/proc-macro-crate/commits )
---
updated-dependencies:
- dependency-name: proc-macro-crate
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>
2021-11-11 16:58:14 +01:00
dependabot[bot]
d9d4a59dc2
Bump parity-util-mem from 0.10.0 to 0.10.2 ( #10236 )
...
Bumps [parity-util-mem](https://github.com/paritytech/parity-common ) from 0.10.0 to 0.10.2.
- [Release notes](https://github.com/paritytech/parity-common/releases )
- [Commits](https://github.com/paritytech/parity-common/compare/parity-util-mem-v0.10.0...parity-util-mem-v0.10.2 )
---
updated-dependencies:
- dependency-name: parity-util-mem
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>
2021-11-11 12:02:39 -03:00
David
eeb80f9e0b
Upgrade jsonrpsee to v0.4.1 ( #10022 )
...
* Upgrade jsonrpsee to v0.4.1
* remove needless BlockT trait bound
* use default wss port in URL
* Fix try_runtime build
* Partially fix for "remote-tests" feature
* Review feedback
* fmt
* Sort out trait bounds for benches
* Fmt
* fmt again?
* fmt with nightly-2021-09-13
* Upgrade try-runtime as well
* fmt
Co-authored-by: Niklas Adolfsson <niklasadolfsson1@gmail.com >
2021-11-11 11:29:28 +00:00
Kian Paimani
60a50dabed
use CountedMap in pallet-bags-list ( #10179 )
...
* use CountedMap in pallet-bags-list
* Fix build
* Update frame/bags-list/src/list/mod.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* add a check as well
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-11-10 09:33:14 +00:00
Qinxuan Chen
5d5e685ebe
frame_support::pallet_prelude: Add scale_info::TypeInfo ( #10221 )
...
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-11-09 12:59:55 +01:00
Kian Paimani
937b6f246e
put TryInto and TryFrom in sp_std::prelude ( #10183 )
...
* Switch to Rust 2021
* Update trybuild to fix errors
* half baked
* fix
* remove unused import
* remove more warnings
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-11-08 00:24:53 +01:00
dependabot[bot]
27c1fe8718
Bump syn from 1.0.80 to 1.0.81 ( #10182 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.80 to 1.0.81.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.80...1.0.81 )
---
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>
2021-11-05 15:51:54 +01:00
Bastian Köcher
b08d3017a8
Switch to Rust 2021 ( #10170 )
...
* Switch to Rust 2021
* Update trybuild to fix errors
2021-11-04 19:54:48 +01:00
Guillaume Thiolliere
2755a97fa3
handle doc on type_value ( #10132 )
2021-11-04 10:11:39 +00:00
Alexander Samusev
a46fa8461b
Update CI image to the latest rustc ( #10142 )
...
* Update CI image to the latest rustc
* Update rustc error messages
* whitespace
* update test output
* updating compiler errors
* kid's finally learning to read and spots the TRYBUILD=overwrite message.
* undoing a little blessing
* imperfect error msg
* revert ci image to production
Co-authored-by: gilescope <gilescope@gmail.com >
2021-11-03 13:23:32 +01:00
Guillaume Thiolliere
20c9afcdc1
Better error for when origin filter prevent the call to be dispatched ( #10134 )
...
* better error
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* remove unused
* fix error
* fmt
* fix tests
* fmt
* Update frame/contracts/src/exec.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* fix typo
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2021-11-02 14:20:00 +00:00
cheme
471e9cfbf1
Hashing proc macro utils ( #9875 )
...
* hashing macro
* fmt
* use in easy place, and fix blake sizes
* fix
* Fixes, docs.
Allow ident as input.
* fix doc tests
* update error in test (nmapkey and key are same type).
* hashing crates under sp_core
* Doc updates and format.
* use all existing hashing functions.
* return array of u8
* Update primitives/core/hashing/proc-macro/src/impls.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* ToTokeen for an array of u8
* fix
* re
* Improve impls
* complete doc tests
* fmt
* fix doctest format
* fix ui test (nmap key type alias)
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-11-02 09:35:23 +00:00
Guillaume Thiolliere
4292e18e50
Automatic pallet parts in construct_runtime ( #9681 )
...
* implement automatic parts
* ui tests
* rename
* remove unnecessary exclude
* better doc
* better doc
* fix genesis config
* fix UI tests
* fix UI test
* Revert "fix UI test"
This reverts commit a910351c0b24cfe42195cfd97d83a416640e3259.
* implemented used_parts
* Update frame/support/procedural/src/construct_runtime/mod.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* doc + fmt
* Update frame/support/procedural/src/construct_runtime/parse.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* add doc in the macro
* remove yet some more parts
* fix ui test
* more determnistic error message + fix ui tests
* fix ui test
* Apply suggestions from code review
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* do refactor + fix ui tests
* fmt
* fix test
* fix test
* fix ui test
* Apply suggestions from code review
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* refactor
* remove even more part in node-runtime
* fix test
* Add flow chart for the construct_runtime! execution flow
* Fix typo
* Ignore snippets that don't contain code
* Refactor some code in expand_after
* Rename expand_after to match_and_insert
* cargo fmt
* Fix rename
* Remove frame_support argument to construct_runtime_parts
* Make use of tt-call to simplify intermediate expansions
* cargo fmt
* Update match_and_insert documentation
* Reset cursor to 0 when no matching patterns are found
* Reorder struct fields on MatchAndInsertDef
* Add test for dependency renames and fix frame-support import
* Add more doc comments
* Update frame/support/test/compile_pass/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-31 13:55:10 +00:00
Bastian Köcher
95b8fd61c3
pallet-scheduler: Introduce OriginPrivilegeCmp ( #10078 )
...
* pallet-scheduler: Introduce `OriginPrivilegeCmp`
When a scheduled task should be canceled, the origin that tries to
cancel the task is compared to the origin the task should be executed
with. Before this pr this check only allowed that both origins are
equal. However, this is problematic as this means that for example a
council origin it needs to be have the same amount of yes votes to
cancel the scheduled task. While a council origin with more yes votes
should be able to cancel this task. This happened recently on Kusama and
lead to a failed cancelation of a scheduled task. With this pr the two
origins are compared and the cancelling origin needs to have greater or
equal privileges as the origin that scheduled the task. What a greater,
equal or less privilege is, can be configured in the runtime.
For simplicity, a `EqualPrivilegeOnly` implementation is provided that
only checks if two origins are equal. So, this mimics the old behaviour.
* FMT
* fix import
* Small optimizations
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-29 16:00:49 +00:00
Bastian Köcher
6cfb0c7eb1
pallet-multisig: Improve opaque call handling ( #10060 )
...
* pallet-multisig: Improve opaque call handling
Before the opaque call was just a type redefinition of `Vec<u8>`. With metadata v14 that was
breaking external tools, as they stopped looking at the type name. To improve the situation the
`WrapperKeepOpaque` type is introduced that communicates to the outside the correct type info.
* Cleanup
* Fix benchmarks
* FMT
2021-10-25 11:29:38 +00:00
Gavin Wood
1dc753eb08
Allow pallet's info to be enumerated ( #10053 )
...
* Allow pallet's info to be enumerated
* Fixes
* Formatting
* Flat tuple for getting all pallet instances
* Renaming and fixing reversedness
* Formatting
* Fixes
* Back to nesting
* Back to nestingx
* Revert executive lib
* Reversions
* Reversions
* Fixes
* Fixes
* Formatting
* Fixes
* Spelling
* Comments
2021-10-21 10:29:10 +02:00
Cheng JIANG
53720da2b4
AssetId trait should also contain TypeInfo bound ( #10038 )
2021-10-18 06:37:22 +00:00
Dan Shields
8db7ec9cc9
Migrate to docs.substrate.io throughout ( #10007 )
...
* all reverences of substrate.dev replaced with *correct* docs.substrate.io links
* fix links in non-cargo files, errors in replace
* homepage https://substrate.io
* cargo +nightly fmt
* FMT
Co-authored-by: Bastian Köcher <info@kchr.de >
2021-10-13 12:56:56 -06:00
zjb0807
be3d0ba4ab
Add TypeInfo ( #10010 )
...
* add TypeInfo for DispatchTime
* add TypeInfo for BoundedBTreeSet
* add skip_type_params
* add TypeInfo for BoundedSlice
* add skip_type_params
2021-10-13 12:49:34 +02:00
dependabot[bot]
71c8d423ca
Bump parity-scale-codec from 2.2.0 to 2.3.1 ( #9998 )
...
* Bump parity-scale-codec from 2.2.0 to 2.3.1
Bumps [parity-scale-codec](https://github.com/paritytech/parity-scale-codec ) from 2.2.0 to 2.3.1.
- [Release notes](https://github.com/paritytech/parity-scale-codec/releases )
- [Changelog](https://github.com/paritytech/parity-scale-codec/blob/master/CHANGELOG.md )
- [Commits](https://github.com/paritytech/parity-scale-codec/compare/v2.2...parity-scale-codec-v2.3.1 )
---
updated-dependencies:
- dependency-name: parity-scale-codec
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* Update UI test expectations
* Update UI test expectations
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-10-13 06:49:17 +00:00
dependabot[bot]
e98a2edfc9
Bump syn from 1.0.76 to 1.0.80 ( #9995 )
...
Bumps [syn](https://github.com/dtolnay/syn ) from 1.0.76 to 1.0.80.
- [Release notes](https://github.com/dtolnay/syn/releases )
- [Commits](https://github.com/dtolnay/syn/compare/1.0.76...1.0.80 )
---
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>
2021-10-11 12:23:02 +00:00
dependabot[bot]
c7a7d1911d
Bump quote from 1.0.9 to 1.0.10 ( #9980 )
...
Bumps [quote](https://github.com/dtolnay/quote ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/dtolnay/quote/releases )
- [Commits](https://github.com/dtolnay/quote/compare/1.0.9...1.0.10 )
---
updated-dependencies:
- dependency-name: quote
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>
2021-10-11 04:25:52 +00:00
zjb0807
b7b467e062
add TypeInfo for DispatchTime ( #9987 )
2021-10-09 13:42:15 +00:00
Eric Miller
b564f4f031
Support extra constant renaming ( #9814 )
...
* Rebased with master. Resolved merge conflict in
frame/support/test/tests/pallet.rs
* Switching Account ID to SomeType1, as SomeType3 was giving me conversion error.
* Wrong indent config. Fixed.
* These tabs look fine locally, but look different on Github. Trying to get the style config right.
* Parsing pallet::constant_name.
Passing unit tests, which is confusing because I didn't change `ident` in the ExtraConstantDef initialization.
* Finalized parsing of extra constant name by adding optional metadata field.
Added expansion logic that replaces respective `idents` where they exist.
* Erasing this to try to keep the format the same across the source code.
* Another formatting change for consistency.
* Update frame/support/procedural/src/pallet/expand/constants.rs
strictly more idiomatic.
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update frame/support/procedural/src/pallet/parse/extra_constants.rs
strictly idiomatic change.
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Fixing formatting and CI warnings.
* switched to nightly compiler to use rustfmt.toml
Co-authored-by: Eric Miller <emiller@lirio.co >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-10-07 23:02:09 +00:00
Guillaume Thiolliere
e81a425241
Root origin always bypass all filter, other origin cannot bypass BaseCallFilter even when constructed from Root origin ( #9948 )
...
* improve root filter bypass
* improve doc
* fmt
* refactor test for more understandable flow
* Update frame/support/procedural/src/construct_runtime/expand/origin.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* match
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-10-07 15:46:06 +00:00
girazoki
48a524c565
Add low level traits to retrieve name, symbol, decimals and allowance in pallet-assets ( #9757 )
...
* Add ERC20 compatible trait to retrieve name, symbol, decimals and allowance
* delegate instead of spender
* Remove erc20 trait and divide it into lower level traits
* add import
* approvals and metadata depend on fungibles
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-10-07 14:29:48 +00:00
Squirrel
07761c22f7
remove dep on unmaintained difference crate ( #9946 )
2021-10-06 18:56:37 +02:00
André Silva
7e5c022aea
staking: only disable slashed validators and keep them disabled for whole era ( #9448 )
...
* session: remove disabled validators threshold logic
* staking: add logic to track offending validators
* staking: disable validators for the whole era
* frame: fix tests
* staking: add tests for disabling validators handling
* staking: fix adding offending validator when already slashed in era
* address review comments
* session, staking: add comments about sorted vecs
Co-authored-by: Andronik Ordian <write@reusable.software >
2021-10-06 16:22:34 +00:00
Albrecht
12e9e7ceb3
disambiguate Config trait in #[pallet::constant] ( #9942 )
...
* fix: use fully qualified syntax to disambiguate
* add instance generic
* line length < 100
2021-10-06 09:22:49 +00:00
Tomasz Drwięga
374fb6a921
Rework Transaction Priority calculation ( #9834 )
...
* Add transaction validity docs.
* Re-work priority calculation.
* Fix tests.
* Update frame/transaction-payment/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* cargo +nightly fmt --all
* Fix an obvious mistake :)
* Re-work again.
* Fix test.
* cargo +nightly fmt --all
* Make VirtualTip dependent on the transaction size.
* cargo +nightly fmt --all
* Update frame/transaction-payment/src/lib.rs
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
* Fix compilation.
* Update bin/node/runtime/src/lib.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Alexander Popiak <alexander.popiak@parity.io >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-10-04 14:25:18 +00:00
Squirrel
c9410186f1
add clippy to CI ( #9694 )
...
* Focus on correctness lints. This relies on a compiler patch that landed 8th July 2021.
If people are using an earlier version of the compiler everything will still work unless they try and run clippy.
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Denis Pisarev <denis.pisarev@parity.io >
2021-10-03 17:09:26 +01:00
Jay Pavlina
b890a28ca3
Implement core::fmt::Debug for BoundedVec ( #9914 )
2021-10-02 08:11:37 +00:00
Shawn Tabrizi
54617ef661
Simple Trait to Inspect Metadata ( #9893 )
...
* simple trait to inspect metadata
* import vec
2021-09-30 16:46:48 +00:00
Guillaume Thiolliere
f71d87ad28
remove unidiomatic ( #9895 )
2021-09-29 12:44:04 +02:00
dependabot[bot]
9605a6db3a
Bump smallvec from 1.6.1 to 1.7.0 ( #9894 )
...
Bumps [smallvec](https://github.com/servo/rust-smallvec ) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/servo/rust-smallvec/releases )
- [Commits](https://github.com/servo/rust-smallvec/compare/v1.6.1...v1.7.0 )
---
updated-dependencies:
- dependency-name: smallvec
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>
2021-09-29 09:54:10 +00:00
Guillaume Thiolliere
8684b73b46
Fix WrapperOpaque max encded len and type info ( #9881 )
...
* fix wrapper opaque
* fix compilation
* improve more precise implementation
* spacing
* fmt
2021-09-29 07:48:26 +00:00
Keith Yeung
7b65b049cb
Extend PalletInfoAccess with module_name and crate_version method ( #9690 )
...
* Record pallet indices in CallMetadata
* Resurrect PalletVersion infrastructure and rename as CrateVersion
* cargo fmt
* Add missing runtime generics to pallet struct
* Fix path to instance
* Fix test
* Fix UI test expectations
* Fix UI test expectations
* Move crate_version function to PalletInfoAccess
* Update UI test expectations
* Add crate_name method to PalletInfo
* Convert path to module name instead of exposing crate name
* cargo fmt
* Keep the double colons when constructing the module name
* Remove unused import
* Update UI test expectations
* Update frame/support/src/traits/metadata.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update UI test expectations
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-09-28 11:35:33 +02:00
Guillaume Thiolliere
1ebcbe1c34
pallet macro: allow to declare individual unbounded storage for those who cannot go into PoV ( #9670 )
...
* allow unbounded individual storage
* better doc
* fix UI tests
* update doc
* Update frame/support/procedural/src/pallet/parse/storage.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-09-27 08:25:24 +00:00
Shawn Tabrizi
f8a228859e
Fungibles and Non-Fungibles Create and Destroy Traits + Assets and Uniques Implementation ( #9844 )
...
* refactor `do_destroy`
* destroy trait
* refactor do_force_create
* impl create trait
* do not bleed weight into api
* Do the same for uniques
* add docs
2021-09-26 22:05:01 +00:00
Xiliang Chen
aab666ed29
Expose trait Balance & AssetId ( #9863 )
...
* expose trait Balance
* expose trait AssetId
2021-09-25 22:41:11 +02:00