Alexander Popiak
9057d713d9
Collective weights ( #5802 )
2020-05-14 17:20:03 +02:00
Shawn Tabrizi
d8b7520a90
Extend Schedule Pallet for Root Scheduling/Canceling ( #5907 )
...
* Add root dispatch to scheduler
* Move encode operation upwards
* fix benchmark
* extend extrinsics
* add some clarifying comments
* start to add benchmarking
* finish weights
* remove double encode
* bump spec
* Update weights
* more accurate weights
* bump base weight
2020-05-07 11:47:23 +02:00
Benjamin Kampmann
3860999ea3
post release dev reset ( #5911 )
2020-05-05 22:08:31 +01:00
Benjamin Kampmann
45886bd197
Release of Alpha.7 ( #5904 )
2020-05-05 20:50:46 +02:00
Shawn Tabrizi
b301451c85
Frame System Benchmarking ( #5834 )
...
* Frame System Benchmarking
* Add to substrate node, avoid divide by zero errors in analysis
* reduce features
* some fixes
* copy pasta
2020-04-30 15:46:44 +02:00
zjb0807
eca9ebc8ad
delete duplicates runtime-benchmarks ( #5806 )
2020-04-28 10:55:59 +02:00
Benjamin Kampmann
3426d662f7
Switch pre-release version to dev ( #5637 )
2020-04-15 13:18:08 +02:00
Benjamin Kampmann
51f9bb3c0e
Prepping release of alpha.6 ( #5629 )
...
* bumping version
* cargo update
* adding changelog
2020-04-14 21:41:49 +02:00
Marcio Diaz
fb9bbf306d
Benchmark Offences Pallet ( #5411 )
...
* Add initial report_ofence bench.
* Remove unused imports
* Style nit
* Add nominators
* Remove logs.
* Nits.
* Add nominators param.
* Reorg, comment.
* Remove whitespaces.
* Apply review suggestion: move benchmark to own crate.
* Remove import.
* Remove line.
* Add feature flag.
* Pass can_report.
* Cleaning up.
* More cleaning
2020-04-07 11:36:57 +02:00
Gavin Wood
eac1a1964e
Introduce scheduler and use it for the democracy dispatch queue ( #5412 )
...
* Initial draft of the logic
* Build and tests
* Make work with new initialize infratructure.
* Update frame/scheduler/src/lib.rs
Co-Authored-By: Marcio Diaz <marcio.diaz@gmail.com >
* Update frame/scheduler/src/lib.rs
Co-Authored-By: Marcio Diaz <marcio.diaz@gmail.com >
* Update frame/scheduler/src/lib.rs
Co-Authored-By: Marcio Diaz <marcio.diaz@gmail.com >
* Update frame/scheduler/src/lib.rs
Co-Authored-By: Marcio Diaz <marcio.diaz@gmail.com >
* Fix test
* Update frame/scheduler/src/lib.rs
Co-Authored-By: Marcio Diaz <marcio.diaz@gmail.com >
* Rejig interface to make it more useful for democracy.
* Try to get democraxy module to make use of scheduler.
* Make democracy use scheduler.
* Use actual max weight for enactent
* Remove TODO
* Fix runtime build
* Minor cleanup
* Fix scheduler.
* Fix benchmarks
* Fix
* Fix
* Fix
* More bench fixes
* Fix
* Fix.
* Add more bench constants.
* Fix cancel_queued bench.
* Fix test comment.
* Update frame/scheduler/src/lib.rs
Co-Authored-By: Marcio Diaz <marcio.diaz@gmail.com >
Co-authored-by: Marcio Diaz <marcio.diaz@gmail.com >
2020-04-01 15:52:39 +02:00
Shawn Tabrizi
74b008a729
Benchmark Utility Pallet ( #5384 )
...
* Move tests
* Move around feature cfgs
* Start benchmarks
* as_multi bench
* finish
* fix tests
* Update frame/utility/src/benchmarking.rs
Co-Authored-By: Marcio Diaz <marcio.diaz@gmail.com >
* Update Cargo.toml
* fix test
Co-authored-by: Marcio Diaz <marcio.diaz@gmail.com >
2020-03-31 22:53:21 +02:00
pscott
408455f8bc
Build for only one target for docs.rs ( #5427 )
...
* Add docs.rs metadata to all cargo.toml files
* Remove docs.rs metada in substrate's cargo.toml
2020-03-30 09:46:30 +02:00
Bastian Köcher
1242a7df3c
Upgrade parity-scale-codec to 1.3.0 ( #5443 )
2020-03-28 22:16:05 +01:00
Marcio Diaz
5a48cade1b
Benchmark Democracy Pallet ( #5257 )
...
* Add origin bounds to benchmark macro.
* Add democracy benchmark.
* Fix tests
* Remove collective from frame/benchmarking, partially use EnsureOrigin.
* Remove collective stuff.
* Make previous benches compile again.
* Remove comments.
* Make prev bench to work again.
* Add remove votes.
* Add new proxy calls.
* Add runtime-benchmarks guard to EnsureOrigin and implementations.
* Refactor.
* Add missing import.
* Remove duplicated import
* Fix features.
* Add some missing features.
* Update frame/collective/Cargo.toml
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/democracy/src/benchmarking.rs
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update frame/democracy/src/benchmarking.rs
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Add referendums to state.
* populate vecs before call
* Update weight docs
* More fixes and weight docs
* More updates
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-03-26 11:18:24 +01:00
Marcio Diaz
22e23b0103
Benchmark Collective Pallet ( #5343 )
...
* Init
* Fix execute.
* Duplicate macro for instances temporarilly
* Add propose.
* Add vote, close.
* Propose from own module
* Add old members to set_members.
* Add previous proposals to propose.
* Compress a bit the macro.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-03-24 18:06:29 +01:00
Benjamin Kampmann
ba06d5ef64
Releasing 2.0.0-alpha.5 ( #5340 )
...
* bump pre-version
* Changelog alpha.4->alpha.5
* repo + homepage to sp-consensus-vrf
* Add default rocksdb feature to `frame-benchmarking-cli` (#5367 )
* Add default rocksdb feature
* Update Cargo.toml
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-03-24 15:08:02 +01:00
Stanislav Tkach
4414d00082
Get rid of rustc_hex in favor of hex ( #5370 )
...
* Get rid of rustc_hex in favor of hex
* Use HexDisplay
2020-03-24 11:48:23 +01:00
Shawn Tabrizi
ca3cbbfc14
Benchmark Treasury Pallet ( #5287 )
...
* Start benchmarks
* try_origin or root
* More benches
* stuck
* Custom trait functions for benchmarks
* finish benchmarks
* Bump impl
* More comments
* Bump spec
* Remove import
* Update frame/elections-phragmen/src/lib.rs
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* Update frame/support/src/traits.rs
Co-Authored-By: thiolliere <gui.thiolliere@gmail.com >
* Fix merge
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
2020-03-20 15:08:16 +01:00
Shawn Tabrizi
400a62680f
Benchmark Im Online Pallet ( #5318 )
...
* Initial benchmarking setup
* Add keystore
* validate unsigned
* Update frame/im-online/src/benchmarking.rs
Co-Authored-By: Marcio Diaz <marcio.diaz@gmail.com >
* Fix verify_unsigned benchmark
* add variable for teting the external addresss length
* Update frame/im-online/src/benchmarking.rs
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Update utils/frame/benchmarking-cli/src/lib.rs
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Marcio Diaz <marcio.diaz@gmail.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Benjamin Kampmann <ben@gnunicorn.org >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-03-20 12:42:00 +01:00
Gavin Wood
7947cbf915
Remove migration code. ( #5291 )
...
* Remove migration code.
* Fix cargo
* Bump spec version
2020-03-19 23:01:13 +01:00
Benjamin Kampmann
25e25a83b9
Releasing 2.0.0-alpha.4 ( #5279 )
...
* Version bump
* Split generate_changelog.sh into separate script
Can be run in the format `generate_changelog.sh $previous_version $version`.
* remove early exit from publish_draft_release.sh
* adding changelog
* ci: change last_github_release to also find pre-releases
Co-authored-by: Martin Pugh <pugh@s3kr.it >
2020-03-18 14:37:21 +01:00
Shawn Tabrizi
9c06d8c6f4
Benchmark Staking and Session Pallet ( #5183 )
...
* starting bench
* More
* more
* Payout Validator
* Give each validator exactly n nominators
* Update with test
* Try to add accounts to chain spec
* Undo changes to chainspec
* Payout nominator
* Rebond and Reap Stash
* Set history depth
* fix smelly code
* cancel deferred slash
* new_era bench
* do_slash benchmark
* Add features
* undo extrinsic move
* lower
* Update new era
* Update benchmarking.rs
* whitespace
* Apply suggestions from code review
Co-Authored-By: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* fixes
* nit
* Refactor tests, initial code
* Move session benchmarks to avoid cyclic deps
* Update lib.rs
* Fix warnings
* Move impl
* Update to do random nominator allocation
* add feature to benchmark pallet
* Remove extra stuff
* Update based on feedback
* Less intrusive
* Remove `transfer_idle_users`
* remove again
* unused dep
* test feature flag
* Update to latest substrate
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2020-03-17 14:12:04 +01:00
Marcio Diaz
013fb6ae18
Benchmark Vesting ( #5048 )
...
* Init macro
* Refactor function.
* Add feature
* vested transfer benchmark
* Fix features
* Forgot to push this fix
* bump impl
* Nits.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-03-09 10:12:20 +01:00
Gavin Wood
dc85ccb7df
Expose the runtime-benchmarks feature to the cli crate ( #5143 )
...
This exposes the `runtime-benchmarks` feature via the cli crate and
makes sure the benchmarking can be enabled. This requires that the user
goes to `bin/node/cli` and runs `cargo build --features
runtime-benchmarks` to build a node that has the feature enabled.
2020-03-05 15:57:38 +01:00
Benjamin Kampmann
ff2a36d7cb
Hide benchmarks behind a feature flag ( #5024 )
...
* Hide benchmarks behind a feature flag
* Propage attributes in impl_runtime_apis macro
* Bump impl_version
* Fillter cfg attributes
* Hide more things under the feature
* Fix set_block_number availability
* Rename filter_attrs -> filter_cfg_attrs
* Rename runtime_benchmarks to runtime-benchmarks
2020-03-05 10:40:55 +01:00
Bastian Köcher
a1b53280b4
Update to SCALE 1.2.0 ( #5113 )
...
This updates `parity-scale-codec` to `1.2.0`, which includes multiple
performance improvements and a fix that bounds the capacity of a vector
at decoding.
2020-03-03 14:40:02 +01:00
Benjamin Kampmann
25d1b7878a
prepping for Alpha.3 ( #5080 )
...
* Bump to alpha.3
* update gitlab-ci
2020-02-27 22:06:08 +01:00
Benjamin Kampmann
d6aa8e954c
set missing metadata fields, prepping alpha.2 ( #5067 )
...
* setting first batch of descriptions
* fix what I just broke
* next batch
* and pallets, too
* last batch
* set cargo.lock
* keep'em dev-deps
* bump version to alpha.2
2020-02-27 00:22:44 +01:00
Benjamin Kampmann
e2776f42f9
prepare version to alpha.1 ( #5055 )
...
bump version to -alpha.1
2020-02-25 21:44:23 +01:00
Benjamin Kampmann
c412c6230e
Cargo.toml fixups for the release ( #4975 )
...
* setting versions to development pre-release
fixing version in dependencies
* unset already released wasm-builder
* do not publish test crates
* adding licenses
* setting homepage metadata
* set repository url
2020-02-21 17:07:00 +01:00
Bastian Köcher
b4ebd41c21
Consolidate frame benchmarking into a frame crate ( #4977 )
...
This prs cleans up some of the frame benchmarking stuff:
- Move CLI into `frame-benchmarking-cli`. No frame related CLI should
exists in the default Substrate CLI.
- Move all traits and types related to frame benchmarking into the
`frame-benchmarking` trait. Frame types should be isolated in Frame.
2020-02-19 10:22:36 +01:00
Gavin Wood
1c9418d748
Don't attempt to upgrade balances module on chain start ( #4802 )
...
* Introduce vesting to node, debug message for upgrades and fix them
* Bump spec version
2020-02-01 18:08:39 +00:00
Sergei Pepyakin
df6ef1780f
pallet-contracts: Rent projection RPC ( #4754 )
...
* Initial approach
* Introduce the pallet-contracts-common crate
* Add rent::compute_rent_projection
* Wire everything together
* Fix build error.
* Rename EvictionDate → EvictionAt.
* Clean.
* Renaming and cleaning.
* Add documentation for rent_projection RPC.
* Add documentation for rent_projection runtime API.
* Refactor rent_budget.
Merge it with subsistence_treshold.
* Bump impl_version
* Constrain RPC impl with Block::Header::Number.
* Rename pallet-contracts-common into -primitives
* Add a comment for `compute_rent_projection` on the usage
* Small tidying
2020-01-31 15:22:25 +01:00
Benjamin Kampmann
3f9a05a0d3
clarify licensing ( #4755 )
...
* adding license fields to all crates
* Apply suggestions from code review
Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2020-01-29 11:57:13 +01:00
Xiliang Chen
20ce6c120c
remove unused safe-mix dependency ( #4656 )
2020-01-17 09:16:20 +01:00
Robert Habermeier
69e0cf7fe2
reset a couple of versions down from v2.0 ( #4572 )
...
* reset a couple of versions down from v0.2.0
* Unstablise browser-utils (very new) and grafana-data-source (going to be replaced with prometheus sometime)
* unmark a bunch more client crates for stabilization
* fix versions in Cargo.tomls
* Downgrade network-test
* Set frame-metadata version to `10.0.0`
* Hide and documented storage generator as internal api
* Downgrade `sp-externalities`
* Downgrade `sc-cli`
* Downgrade sc-executor et al to 0.8.0
* Downgrade sp-state-machine to 0.8.0
* Downgrade pallet-contracts et al to 0.8.0
* Downgrade sp-sandbox to 0.8.0
* downgrade pallet-evm to 0.8.0
* Downgrade pallet-staking to 0.8.0
2.0 should be implementation of lazy payout alongside all the fixes of
current module
* Downgrade node-transaction-factory to 0.8.0
* frame pallets are 2.0.0
Co-authored-by: Ashley <ashley.ruglys@gmail.com >
Co-authored-by: Pierre Krieger <pierre.krieger1708@gmail.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
Co-authored-by: Sergei Pepyakin <s.pepyakin@gmail.com >
Co-authored-by: Wei Tang <accounts@that.world >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Marcio Diaz <marcio@parity.io >
2020-01-15 18:35:27 +01:00
Bastian Köcher
c5c73abc05
Add pallet-society and pallet-recovery to substrate node ( #4622 )
...
* Add `pallet-society` and `pallet-recovery` to substrate node
* Add `OnReapAccount`
* Fixes and replaces nicks with identity
2020-01-14 20:11:42 +01:00
Gavin Wood
67202b7ec3
Add tipping into treasury ( #4480 )
...
* First draft
* Initial work on tests
* Add tests.
* Ensure old members can't tip.
* Fix complexity
* Update node runtime
* Build fix.
* build fix
* Fix tests
* Fix tests
* Refactor Contains impl for tests
* Introduce new way to avoid impl Contains conflicts
* Fixes
* Docs.
* Docs.
* Typo
* Whitespace
* Docs
* Typo
* Formatting
* Update frame/treasury/src/lib.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/treasury/src/lib.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
* Update frame/treasury/src/lib.rs
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
* Apply suggestions from code review
Co-Authored-By: Shawn Tabrizi <shawntabrizi@gmail.com >
* Add provisional weights.
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2020-01-09 14:39:12 +01:00
Benjamin Kampmann
9200bfa997
Setting versions locally towards 2.0 release ( #4404 )
...
* clean up cargo.toml syntax
* bumping versions to 2.0
* bump networking to 0.8
* move consensus down to 0.8
* bump consensus pallets to 0.8.0, too
* Upping babe and aura pallets
* add remaining, missing version definitions
* missed some
2019-12-17 22:05:50 +08:00
Gavin Wood
48860a768b
Fix naming of utility crate (it's a legit pallet) ( #4408 )
...
* Fix naming of utility crate (it's a legit pallet)
* Additional bits
2019-12-17 14:25:52 +08:00
Tomasz Drwięga
8778ca7dc8
[big refactor] Remove crate aliasing. ( #4395 )
...
* Rename: Phase 1.
* Unify codec.
* Fixing: Phase 2
* Fixing: Phase 3.
* Fixing: Phase 4.
* Fixing: Phase 5.
* Fixing: Phase 6.
* Fixing: Phase 7.
* Fixing: Phase 8. Tests
* Fixing: Phase 9. Tests!!!
* Fixing: Phase 10. Moar tests!
* Finally done!
* More fixes.
* Rename primitives:: to sp_core::
* Apply renames in finality-grandpa.
* Fix benches.
* Fix benches 2.
* Revert node-template.
* Fix frame-system in our modules.
2019-12-16 20:36:49 +08:00
Benjamin Kampmann
c5a709a882
Fix folder names in client and test ( #4360 )
...
* client/rpc/api -> client/rpc-api
* client/util/wasm-builder-runner -> utils/wasm-builder-runner
* client/grafana-data-source -> utils/grafana-data-source
* test/utils -> test-utils
* fix moved path
* Update Cargo.lock
* Update Cargo.lock
2019-12-11 16:41:38 +01:00
Benjamin Kampmann
7773daaf5b
Clean up crate names and locations ( #4361 )
...
* rename crate: sp-transaction-pool-api -> sp-transaction-pool
* move primitives/core/derive-debug -> primitives/derive-debug; primitives/core/storage -> primitives/storage
* rename crate sp-core-storage -> sp-storage
* rename and move: test/utils/transaction-factory -> client/transaction-factory
* move transaction-factory -> node/transaction-factory
* fix missing rename
* Move chain-spec-builder into bin/utils
* move subkey into bin/utils
* Update new subkey location
* Update docs to reflect new location for utils
* fixing import name
2019-12-11 15:33:00 +01:00
Benjamin Kampmann
df133d6be3
Fix folder names in primitives ( #4358 )
...
* sr-arithmetic -> arithmetic
* sr-sandbox -> sandbox
* primitives/sr-staking-primitives -> primitives/staking
* primitives/sr-version -> primitives/version
* primitives/block-builder/runtime-api -> primitives/block-builder
2019-12-11 11:36:29 +01:00
Benjamin Kampmann
8721d98dd6
break sp-api dependency cycle ( #4352 )
...
* move benches into tests, ignore non-passing doctests
* Rename sr-api folder
* Move test-primitives to primitives, use that for sp-api doctests
2019-12-10 20:18:01 +01:00
Weiliang Li
4f2cdb20c1
Rename: primitives/sr-io -> primitives/sp-io ( #4328 )
...
* primitives/sr-io -> primitives/io
* fix
* rename
* runtime-io -> sp-io
* git mv
* fix ci
* remove package name
* fix
* fix
* try minimizing diff
* try minimizing diff again
* try minimizing diff again
2019-12-10 16:08:35 +01:00
Weiliang Li
6da9f59d72
Rename: primitives/sr-std -> primitives/sp-std ( #4327 )
...
* primitives/sr-std -> primitives/std
* fix
* fix conflict
* rstd -> sp-std
* git mv
* fix review
* fix merge
2019-12-10 08:26:27 +01:00
Weiliang Li
04fcc71809
Rename folder: primitives/sr-primitives -> primitives/runtime ( #4280 )
...
* primitives/sr-primitives -> primitives/runtime
* update
2019-12-09 08:49:32 +01:00
Tomasz Drwięga
3805393a13
Merge txpool-runtime-api with txpool-api ( #4320 )
...
* Remove transaction-pool-runtime-api
* Merge runtime-api with transaction-pool.
2019-12-06 17:24:17 +01:00
Andrew Jones
4c2ba5b71f
Fix sp-session typo ( #4273 )
...
* Fix sp-session typo
* Remove erroneous whitespaces
* Don't mess with the file, editor
2019-12-02 20:24:25 +01:00