- Jan 25, 2022
-
-
Kian Paimani authored
* Use proper bounded vector type for nominations * add docs and tweak chill_other for cleanup purposes * Fix the build * remove TODO * add a bit more doc * even more docs gushc * Update frame/staking/src/pallet/mod.rs Co-authored-by: Zeke Mostov <[email protected]> * Update frame/staking/src/pallet/mod.rs Co-authored-by: Zeke Mostov <[email protected]> * Fix the nasty bug * also bound the Snapshot type * fix doc test * document bounded_vec * self-review * remove unused * Fix build * frame-support: repetition overload for bounded_vec Signed-off-by: Oliver Tale-Yazdi <[email protected]> * fix * remove the need to allocate into unbounded voters etc etc * Don't expect * unbreal the build again * handle macro a bit better Co-authored-by: Zeke Mostov <[email protected]> Co-authored-by: Oliver Tale-Yazdi <[email protected]>
-
Enoch Chejieh authored
* chore: modified example for balance AccountStore * add example for account store balance * add example for account store balance * Update frame/balances/src/lib.rs * Update frame/balances/src/lib.rs * balance account store example * balance account store example * Update frame/balances/src/lib.rs * Update frame/balances/src/lib.rs * balance account store example Co-authored-by: Bastian Köcher <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
-
- Jan 24, 2022
-
-
Alexander Theißen authored
* Fix seal_get_storage * Fix seal_take_storage * Add more benchmarks * cargo run --quiet --release --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Fix seal_set_storage * Fix seal_contains_storage and seal_clear_storage * 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_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs * Get rid of mem::size_of in benchmarks * Fix up code loading * Apply suggestions from code review Co-authored-by: Hernando Castano <[email protected]> * Fix test to call same function twice * Replaced u32::MAX by SENTINEL const * Fix seal_contains_storage benchmark * cargo run --quiet --profile=production --features=runtime-benchmarks --manifest-path=bin/node/cli/Cargo.toml -- benchmark --chain=dev --steps=50 --repeat=20 --pallet=pallet_contracts --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./frame/contracts/src/weights.rs --template=./.maintain/frame-weight-template.hbs Co-authored-by: Parity Bot <[email protected]> Co-authored-by: Hernando Castano <[email protected]>
-
Qinxuan Chen authored
* use clap3 instead of structopt Signed-off-by: koushiro <[email protected]> * format Signed-off-by: koushiro <[email protected]> * update ss58-registry and revert some nits Signed-off-by: koushiro <[email protected]> * Fix clippy and doc Signed-off-by: koushiro <[email protected]> * update clap to 3.0.7 Signed-off-by: koushiro <[email protected]> * Apply review suggestions Signed-off-by: koushiro <[email protected]> * remove useless option long name Signed-off-by: koushiro <[email protected]> * cargo fmt Signed-off-by: koushiro <[email protected]>
-
Kian Paimani authored
* add a blueprint of how defensive traits could look like * add something for arithmetic as well * add some use cases in different pallets * some build fixing * Some new stuff and examples * Fix deadly bug * add more doc. * undo faulty change to assets pallet * Update frame/support/src/traits/misc.rs Co-authored-by: Oliver Tale-Yazdi <[email protected]> * some review comments * remove draft comment * Fix ident test * Fix proxy tests as well * a few new ideas * Fix build * Fix doc Co-authored-by: Oliver Tale-Yazdi <[email protected]>
-
Oliver Tale-Yazdi authored
* Add optimization flags to 'release' profile Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Optimized weights Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add missing pallets Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add `production` profile Signed-off-by: Oliver Tale-Yazdi <[email protected]> * pallet-collective: fix tests the weight of System.remark went to 0, the collective test uses a remark call to trigger an out-of-gas condition so I replaced it with a `remark_with_event` call. Signed-off-by: Oliver Tale-Yazdi <[email protected]>
-
Jimmy Chu authored
Signed-off-by: Jimmy Chu <[email protected]>
-
Pierre Krieger authored
-
- Jan 22, 2022
-
-
Bastian Köcher authored
This is required for projects like Cumulus that have dependencies on `westend-runtime`, but this runtime is only added when the `runtime-benchmarks` feature is enabled. By having all features "enabled" in `cargo metadata` we ensure that all crates can be found.
-
- Jan 21, 2022
-
-
Bastian Köcher authored
* Remove some last `AccountId32::default()` leftovers As we removed `Default` of account id, we have overseen some last bits. This pr removes these last bits. * Fix
-
Jimmy Chu authored
* wip Signed-off-by: Jimmy Chu <[email protected]> * Added the rustdocs-release script Signed-off-by: Jimmy Chu <[email protected]> * updated gitlab-ci script Signed-off-by: Jimmy Chu <[email protected]> * Updated to set NIGHTLY to false by default Signed-off-by: Jimmy Chu <[email protected]> * Added documentation Signed-off-by: Jimmy Chu <[email protected]>
-
Oliver Tale-Yazdi authored
* fix doc Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add MaxEncodedLen to implement_per_thing! Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Test that Percent et.al. can be used in Storage. Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add comment Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Revert "Test that Percent et.al. can be used in Storage." This reverts commit 52558afea6f9b53fb07521f1b6393bc320d21dfc. * Test MaxEncodedLen in implement_per_thing! Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Revert "Add comment" This reverts commit 27a96f6e527f71a57ace289c041de514edbe9104.
-
Bastian Köcher authored
When building a wasm binary from a different repo inside a local workspace, we did not used the correct `Cargo.toml` to find the correct patches and features. The solution to this is to just walk up from the target directory until we find the workspace we are currently compiling. If this heuristic isn't working, we print a warning and let the user set an env variable `WASM_BUILD_WORKSPACE_HINT` to tell the `wasm-builder` where the actual workspace is.
-
Sacha Lansky authored
-
- Jan 20, 2022
-
-
Shawn Tabrizi authored
-
Oliver Tale-Yazdi authored
* Remove generate_storage_info Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add without_storage_info where needed Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Update doc tests Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Add more without_storage_info Signed-off-by: Oliver Tale-Yazdi <[email protected]> * fix TryBuild Signed-off-by: Oliver Tale-Yazdi <[email protected]> * fix TryBuild tests Signed-off-by: Oliver Tale-Yazdi <[email protected]>
-
Nazar Mokrynskyi authored
Relax types on `DigestItemRef`, such that byte slices can be used in addition to vector references (#10536) * Relax types on `DigestItemRef`, such that byte slices can be used in addition to vector references * Apply clippy suggestions
-
- Jan 19, 2022
-
-
Kian Paimani authored
* Remove all stale on_runtime_upgrade hooks in the runtime * add docs * cleanup * fix warn * fix more warnings * fix offence test * overwrite the damn UItest
-
Oliver Tale-Yazdi authored
* Improve usability of add_benchmark and list_benchmark. Signed-off-by: Oliver Tale-Yazdi <[email protected]> * node-template: use new define_benchmarks syntax Signed-off-by: Oliver Tale-Yazdi <[email protected]> * make CI happy Signed-off-by: Oliver Tale-Yazdi <[email protected]> * remove old imports Signed-off-by: Oliver Tale-Yazdi <[email protected]> * fix TryBuild tests Signed-off-by: Oliver Tale-Yazdi <[email protected]> * Revert "fix TryBuild tests" This reverts commit 82ea52fd25c0ef5efa46669217694835a7404d4e. * review: remove blank lines Signed-off-by: Oliver Tale-Yazdi <[email protected]>
-
Gavin Wood authored
* Allow the treasury to have a maximum bound on the bond * Update frame/treasury/src/lib.rs Co-authored-by: Keith Yeung <[email protected]> Co-authored-by: Keith Yeung <[email protected]>
-
Pierre Krieger authored
* Split peer slots between full and light nodes * Rustfmt * Oops, accidentally removed a comma * Remove else
-
- Jan 18, 2022
-
-
Sacha Lansky authored
-
dharjeezy authored
* implement benchmarking multiple extrinsics * ran cargo +nightly fmt * remove contains check and made it an equals check
-
Zeke Mostov authored
* use free balance rather than total balance * Docs * Migration for over-locked phrag voters * New line * comment * Update frame/elections-phragmen/src/migrations/v5.rs Co-authored-by: Kian Paimani <[email protected]> * Only set lock, don't remove it * delete commented out * docs * Update migration to just take a set of accounts Co-authored-by: Shawn Tabrizi <[email protected]> Co-authored-by: Kian Paimani <[email protected]>
-
- Jan 17, 2022
-
-
thiolliere authored
Add feature: `no-metadata-doc` which removes doc from metadata and `full-metadata` which build metadata with all doc (#10493) * add features to remove or add doc * fmt * add test for event/error/call * fmt
-
Alexander Theißen authored
* Switch executor to wasm-instrument * Switch pallet-contracts to wasm-instrument
-
Nazar Mokrynskyi authored
Also disable memory64 support in wasmtime
-
James Wilson authored
-
Alexander Theißen authored
* Print more detailed error when instrumentation fails * Apply suggestions from code review Co-authored-by: Hernando Castano <[email protected]> * Check contents of debug buffer * Fix test Co-authored-by: Hernando Castano <[email protected]>
-
Joey authored
-
Shawn Tabrizi authored
* Gav wrote this code in pull #10195. Extracting to simplify that PR. * fix potential panics * prevent panics in slide * update doc * fmt * Update frame/support/src/storage/bounded_vec.rs Co-authored-by: Keith Yeung <[email protected]> Co-authored-by: Gav Wood <[email protected]> Co-authored-by: Keith Yeung <[email protected]>
-
Zeke Mostov authored
* Move `EraIndex` to sp-staking * Fix imports in mocks * Run cargo +nightly-2021-10-29 fmt
-
- Jan 15, 2022
-
-
Nazar Mokrynskyi authored
* Minor tweaks suggested by clippy * Fix typo caused by last commit * Apply review suggestions
-
Bastian Köcher authored
* runtime-interface: Implement `register_only` functions The runtime interface supports versioning of functions. Currently, if you add a new function it will be used by the runtime automatically. This results in requiring all nodes of a network to upgrade before the runtime is upgraded, otherwise they will fail to instantiate the new runtime because of missing host functions. This pr introduces `register_only` functions. This can be used when a new runtime interface function should be introduced, but the actual usage can be deferred. This means that nodes will have the host function for this, but the runtime will still use the old version of the function when being compiled for wasm. However, when a runtime is enacted that uses the new host function, the "old nodes" will already have the host function and will continue to work. * Update primitives/runtime-interface/src/lib.rs Co-authored-by: cheme <[email protected]> * Update primitives/runtime-interface/proc-macro/src/utils.rs Co-authored-by: cheme <[email protected]> * FMT Co-authored-by: cheme <[email protected]>
-
- Jan 14, 2022
-
-
Arkadiy Paronyan authored
-
Shawn Tabrizi authored
* use free balance rather than total balance * Docs Co-authored-by: emostov <[email protected]>
-
- Jan 13, 2022
-
-
Arkadiy Paronyan authored
* Fast sync fixes * Fix gap blocks validation * Updated test * Formatting * Networking test
-
- Jan 12, 2022
-
-
Alexander Samusev authored
* [Do not merge] pipeline chores * disable condition publish-rustdoc * revert rules * remove PIPELINE_SCRIPTS_TAG
-
Xiliang Chen authored
* reset events before apply runtime upgrade * fix tests * add test * update comment * Update frame/system/src/lib.rs * trigger CI Co-authored-by: Bastian Köcher <[email protected]>
-
dependabot[bot] authored
Bumps [twox-hash](https://github.com/shepmaster/twox-hash) from 1.6.1 to 1.6.2. - [Release notes](https://github.com/shepmaster/twox-hash/releases) - [Commits](https://github.com/shepmaster/twox-hash/compare/v1.6.1...v1.6.2) --- updated-dependencies: - dependency-name: twox-hash 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>
-