- Jul 29, 2021
-
-
Squirrel authored
Apparently this should be rewritten when we need it again.
-
André Silva authored
-
Bastian Köcher authored
* Improve `state` related logs to use a more uniform format The logging before wasn't that uniform and not that great to read/parse. Now we are using a uniform format for all the logs. Besides these changes, there are some minor changes around the code that calls the state machine. * Make CI happy * Use HexDisplay for `ext_id`
-
- Jul 28, 2021
-
-
Dan Forbes authored
* Add nonfungibles::Create Trait & Implement for Uniques Closes #9419 * Formatting * Remove default implementation (`TokenError::Unsupported`) from `Create` trait Co-authored-by: Bastian Köcher <[email protected]> * Formatting * Do not wrap parameters in Options * Formatting Co-authored-by: Bastian Köcher <[email protected]>
-
dependabot[bot] authored
Bumps [walkdir](https://github.com/BurntSushi/walkdir) from 2.3.1 to 2.3.2. - [Release notes](https://github.com/BurntSushi/walkdir/releases) - [Commits](https://github.com/BurntSushi/walkdir/compare/2.3.1...2.3.2) --- updated-dependencies: - dependency-name: walkdir dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Alex Pozhylenkov authored
* update on_idle tuple implemenration * add test * fix * fix fmt * update * update * fix fmt * Update frame/support/src/traits/hooks.rs Co-authored-by: Bastian Köcher <[email protected]> * update * update * fix pallet_ui tests * Update frame/support/src/traits/hooks.rs * fix * Update frame/support/src/traits/hooks.rs * update Co-authored-by: Bastian Köcher <[email protected]>
-
dependabot[bot] authored
Bumps [proc-macro2](https://github.com/alexcrichton/proc-macro2) from 1.0.26 to 1.0.28. - [Release notes](https://github.com/alexcrichton/proc-macro2/releases) - [Commits](https://github.com/alexcrichton/proc-macro2/compare/1.0.26...1.0.28) --- updated-dependencies: - dependency-name: proc-macro2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
- Jul 27, 2021
-
-
Zeke Mostov authored
* Reorg migration and pallet and pallet impls * Fix imports in untouched modules * Add file headers * Add header for migrations * Improve comment * Move OnOffenceHandler impl for Pallet to impl.rs * fmt
-
Bastian Köcher authored
* Move `PalletVersion` away from the crate version Before this pr, `PalletVersion` was referring to the crate version that hosted the pallet. This pr introduces a custom `package.metadata.frame` section in the `Cargo.toml` that can contain a `pallet-version` key value pair. While the value is expected to be a valid u16. If this key/value pair isn't given, the version is set to 1. It also changes the `PalletVersion` declaration. We now only have one `u16` that represents the version. Not a major/minor/patch version. As the old `PalletVersion` was starting with the `u16` major, decoding the old values will work. * Overhaul the entire implementation - Drop PalletVersion - Introduce StorageVersion - StorageVersion needs to be set in the crate and set for the macros - Added migration * Fix migrations * Review feedback * Remove unneeded dep * remove pub consts * Brings back logging and implements `GetStorageVersion` * Return weight from migration * Fmt and remove unused import * Update frame/support/src/dispatch.rs Co-authored-by: Guillaume Thiolliere <[email protected]> * Update frame/support/src/traits/metadata.rs Co-authored-by: Guillaume Thiolliere <[email protected]> Co-authored-by: Guillaume Thiolliere <[email protected]>
-
thiolliere authored
-
wangjj9219 authored
-
thiolliere authored
* make allocator limit available * better inner doc * move const * fmt Co-authored-by: Shawn Tabrizi <[email protected]>
-
Bastian Köcher authored
The old `trybuild` version didn't normalized cargo registry paths, but this is now done :)
-
Squirrel authored
Co-authored-by: Giles Cope <[email protected]>
-
Liu-Cheng Xu authored
-
Keith Yeung authored
* Add methods to PrefixIterator to support iterating from a specific key * Expose the decode functions used in iterators for storage maps * Use associated decode function in tests * Revert "Expose the decode functions used in iterators for storage maps" This reverts commit 34f57d92db89646d0c98ea1880df58d58e523b09. * Fix documentation for next_key * Add API for iterating from a specified key for all storage map types * Enhance pagination test * Add API methods to storage map types * Rename next_key to last_key * Rename last_key to last_raw_key * Specify that iteration starts after starting_raw_key * Update documentation on iteration ordering * Rename next_key to previous_key * Enhance pagination unit test * Create unit tests for all kinds of iter_from methods * Define iter_from in terms of iter rather than vice versa * Cargo fmt
-
- Jul 26, 2021
-
-
Squirrel authored
Taking best bits of rustfmt's format_strings Co-authored-by: Alexander Popiak <[email protected]>
-
Squirrel authored
-
Falco Hirschenberger authored
-
- Jul 24, 2021
-
-
Falco Hirschenberger authored
also autoformatting two unrelated files fixes #9421
-
- Jul 23, 2021
-
-
asymmetric authored
The 'data source' term does not represent a Prometheus concept. What we are exposing here is an exporter.
-
cheme authored
* cache root for child api. * minimal testing * Reset cache on test 'set_root'. * Update primitives/state-machine/src/trie_backend_essence.rs Co-authored-by: Bastian Köcher <[email protected]> * Update primitives/state-machine/src/trie_backend_essence.rs * Update primitives/state-machine/src/trie_backend_essence.rs * Renaming to 'reset_cache'. * correct rust fmt Co-authored-by: Bastian Köcher <[email protected]>
-
Alex Pozhylenkov authored
* update * update * update * fix fmt
-
Squirrel authored
* Think these types should be switched reading the doc. * Update frame/support/procedural/src/lib.rs Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Bastian Köcher <[email protected]>
-
Kian Paimani authored
* Estimate call fee * More fix * Fix * Update frame/support/src/traits/misc.rs Co-authored-by: Zeke Mostov <[email protected]> * try and fix fmt stuff * fmt aain Co-authored-by: Parity Benchmarking Bot <[email protected]> Co-authored-by: Zeke Mostov <[email protected]>
-
Logan Saether authored
-
- Jul 22, 2021
-
-
Xiliang Chen authored
* add CheckedRem * fix
-
Squirrel authored
* Remove extra commas made redundent after rustfmt
-
thiolliere authored
* benchmark for decoding of call * better names * fix benchmarks * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_lottery --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/lottery/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_utility --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/utility/src/weights.rs --template=./.maintain/frame-weight-template.hbs * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=frame_system --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/system/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Update frame/system/src/weights.rs Co-authored-by: Parity Benchmarking Bot <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]>
-
- Jul 21, 2021
-
-
Arkadiy Paronyan authored
* Fix metadata updates on existing headers * Fail set_head on ancient blocks * Fmt unrelated code
-
Zeke Mostov authored
-
Bastian Köcher authored
* Run cargo fmt on the whole code base * Second run * Add CI check * Fix compilation * More unnecessary braces * Handle weights * Use --all * Use correct attributes... * Fix UI tests * AHHHHHHHHH *
🤦 * Docs * Fix compilation *🤷 * Please stop *🤦 x 2 * More * make rustfmt.toml consistent with polkadot Co-authored-by: André Silva <[email protected]>
-
- Jul 20, 2021
-
-
Bastian Köcher authored
When the `Executive` was used through the `ExecuteBlock` trait, the custom on runtime upgrade wasn't called. This happened because we forgot to forward the type and it instead used default type `()` that doesn't do anything. This pr fixes it by forwarding the type and also adds a regression test.
-
Denis_P authored
* CI: debug * CI: debug aws sync * exclude locfile * exclude locfile 2 * exclude doesn't work * root files * CI: remove lockfile * CI: satisfy aws cli * CI: typo * CI: undebug * CI: undebug docs jobs
-
Alexander Popiak authored
* add BalanceConversion trait and implementation * derive some useful traits on Imbalance * Update frame/support/src/traits/tokens/fungibles/imbalance.rs Co-authored-by: Xiliang Chen <[email protected]> * make BalanceConversion error type configurable * add RuntimeDebug import and derive traits on other Imbalance * formatting * move BalanceConversion trait to frame-support * add necessary trait import Co-authored-by: Xiliang Chen <[email protected]>
-
Xiliang Chen authored
* include dispatch result in the Executed event * fix * trigger CI
-
Bastian Köcher authored
All of them are a subset of `DispatchError` anyway, no need to have special errors IMHO.
-
- Jul 19, 2021
-
-
Ashley authored
* Force push to clean up PR mess * Update rustfmt.toml Co-authored-by: Squirrel <[email protected]> * Run `cargo fmt` again with Giles' changes * Unformat utils Co-authored-by: Squirrel <[email protected]>
-
Pierre Besson authored
-
Antoine Estienne authored
-