Andrew Jones
49b6dfd2e5
Enrich metadata with type information ( #8615 )
...
* Cargo.lock after merge
* Restore scale-info feature
* Fully qualify TypeInfo derive
* Skip PendingSwap T
* Add missing skip_type_params attr
* metadata docs features
* Reduce pallet event attribute to struct
* Cargo.lock
* Update frame/balances/src/tests_composite.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Line widths check
* Cargo.lock
* Add scale-info/std
* Update frame/system/src/lib.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Use `skip_type_params` to remove `TypeInfo` requirements on checks
* Revert "Remove unused Call metadata stuff"
This reverts commit 41311f85
* Skip BalanceSwapAction type parameter
* Remove unused event metadata macro
* Update frame-metadata
* Update primitives/npos-elections/compact/src/codec.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Manual TypeInfo for Header
* Remove TypeInfo requirement for consts in BoundedVec etc.
* Another TypeInfo bound removed
* review: fix indentation
* TypeInfo impls for Identity types
* Add some todos to add custom TypeInfo impls
* Update frame/support/procedural/src/pallet/expand/pallet_struct.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Add some todos to add custom TypeInfo impls
* Add a test for manual Data TypeInfo impl
* Add custom TypeInfo impl for Vote
* Era custom TypeInfo crimes
* Revert finality-grandpa version to 0.14.z
* review: renamed module to pallet_constants_metadata
* New line at end of file
* Add missing scale-info/std
* Update frame/support/src/storage/types/mod.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Remove StorageEntryType::Map unused flag
* Add missing scale-info dependency after merge
* SignedExtension::AdditionalSigned metadata
* Update frame-metadata, use abbreviated docs and args fields
* Update frame/example/Cargo.toml
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Add scale_info/std and remove unused scale-info dependency
* Remove scale-info dependency
* Remove treasury pallet::metadata
* Remove redundant Event test
* Add back scale-info as dev dependency
* fix error metadata when no error defined in decl_module
* Add Module3 to tests
* Fix metadata test
* Add docs feature to frame-support test
* WIP fixing pallet metadata test
* Remove redundant FunctionMetadata, FunctionArgumentMetadata as per https://github.com/paritytech/frame-metadata/pull/20
* Use main branch of frame-metadata
* Use patch of scale-info for latest changes
* Use latest patched scale-info
* Manual TypeInfo for DigestItem
* Manual TypeInfo for DigestItem
* Update scale-info
* Skip __Ignore variants for Error, depends on https://github.com/paritytech/scale-info/pull/117
* Named fields for FRAME v2 pallet Call variants
* Named fields for FRAME v1 pallet Call variants
* Add missing scale-info dependency
* WIP expand benchmark call variant
* fix benchmark with new function
create a new function for each variant of a pallet call.
This function is called by benchmarking macro in order not to break call
creation with unnamed argument
* fix tests
* more fix
* Fix staking tests
* Fix offchain workers calls
* Cherry pick rustfmt.toml from master
* cargo +nightly-2021-06-22 fmt --all
* Update to new call variant structs
* More call variant struct updates
* Remove unused import
* More call variant structs
* More call variant structs
* Even more call variant structs
* Mooar variant structs
* Evermore variant structs
* Call variant structs ad infinitum
* Fmt
* More call variants
* Last call variant
* Call variants all done?
* Fix SS58Prefix type
* Potential workaround for BitFlags<IdentityFields> TypeInfo
* Enable docs capturing for Call, Event, and Error types
* Fix IdentityFields TypeInfo
* Remove metadata-docs feature
* Add capture_docs = true for legacy Call, Event and Error types
* Fmt
* Fix metadata test type
* Update benchmarks with call struct variants
* Fmt
* More test fixes
* Fmt
* Fix benches
* Use latest capture_docs attr
* Latest scale_info
* Fmt
* review: change &Vec to &[]
* Remove pallet metadata attr
* review: remove commented out test code
* review: skip_type_params trailing comma suggestion
* Update to scale-info 0.10.0
* Update construct_runtime ui tests, different because of metadata TypeInfo impls
* Add some TypeInfo derives for UI tests
* Update storage ensure span ui stderrs
* Update call argument bound ui tests
Possibly changed because change from tuple to struct variants?
* Add scale-info dev dependency
* Update to latest finality-grandpa release
* review: missing newline
* review: missing scale-info/std
* review: remove duplicate scale-info/std
* review: remove fully qualified TypeInfo
* review: add missing scale-info/std
* review: remove unnecessary imports.
* Fmt
* Use crates.io RC version of frame-metadata
* Remove scale-info/std because it is a dev dependency
* Add missing scale_info dev-dependency for test
* Delete empty metadata folder
* Fix sp_std import
* review: improve manual UncheckedExtrinsic TypeInfo impl
* review: use full scale-info for dev-dependency
* Remove DefaultByteGetter impl
* review: derive TypeInfo for generic header
* Fmt
* Update primitives/runtime/src/generic/unchecked_extrinsic.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update primitives/runtime/src/generic/unchecked_extrinsic.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update bin/node/executor/Cargo.toml
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/identity/src/types.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update frame/support/src/dispatch.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove redundant derive
* Simplify scale-info dependency
* Strip underscore prefix from call variant struct names
* Another underscore field
* More underscore fields
* Another underscore field
* Update to frame-metadata 14.0.0-rc.2 with combined StorageEntryType::Map
* Fmt
* Revert weights formatting
* Fix up some tests
* Fix up some tests for StorageEntryTypeMetadata
* scale-info dev dependency
* Fix test error
* Add missing TypeInfo derives
* Add back missing scale-info dependency
* Add back missing scale-info dependency
* Fix npos compact impls
* Cargo.lock
* Fmt
* Fix errors
* Fmt
* Fix renamed raw_solution field
* Fix error
* Fmt
* Fix some benchmarks
* Fmt
* Stray R
* Fix
* Add missing TypeInfos
* ui test fix
* Fix line widths
* Revert "ui test fix"
This reverts commit 2d15ec058a216e3f92d713f1174603a2bb1eac65.
* Upgrade to scale-info 0.11.0
* Revert "Upgrade to scale-info 0.11.0"
This reverts commit 047bb179085a0059c36cd20ab405f55cf0867e28.
* Add Runtime type
* Update to scale-info 0.12
* Update to scale-info 1.0
* Update frame-metadata to version 14.0.0
* Patch finality-grandpa until release available
* Fix metadata tests
* Fix metadata tests
* Fmt
* Remove patched finality-grandpa
* Fix tests, use scale_info imports
* Fix pallet tests
* Add BlockNumber TypeInfo bound
* ui test fix
* Cargo.lock
* Remove pallet metadata
* Cargo.lock
* Add missing scale-info dependency
* Remove pallet event metadata
* Fix error
* Fix collective errors
* Semicolol
* Fmt
* Remove another metadata attribute
* Add new variant to custom digest TypeInfo
* Fmt
* Cargo.lock from master
* Remove comma lol
* Fix example call error
* Fix example call error properly
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 >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-15 11:40:41 +00:00
dependabot[bot]
ebe78a4c1b
Bump serde_json from 1.0.64 to 1.0.68 ( #9783 )
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.64 to 1.0.68.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.64...v1.0.68 )
---
updated-dependencies:
- dependency-name: serde_json
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-09-15 10:20:07 +00:00
Qinxuan Chen
c459b70379
pallet-utility: use new pallet attribute macro for tests ( #9780 )
...
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-09-15 09:24:13 +00:00
Tomasz Drwięga
08c2d0d4c6
Emit log on Runtime Code change. ( #9580 )
...
* Emit digest item on Runtime Code changes.
* Add tests.
* cargo +nightly fmt --all
* Rename.
* Add comment.
* Move generic parameter to the trait.
* cargo +nightly fmt --all
* Elaborate in doc.
* Revert to RuntimeUpdated name
* cargo +nightly fmt --all
* Rename to RuntimeEnvironmentUpdated
2021-09-15 08:07:06 +00:00
pangwa
b8f4a4c147
Add Clover Finance to SS58 Registry ( #9236 )
...
* Add Clover Finance to SS58 Registry
* Merge and fix spaces
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com >
2021-09-14 14:22:10 +00:00
Qinxuan Chen
902739f96c
Migrate pallet-collective to the new pallet attribute macro ( #9115 )
...
* Migrate pallet-collective to the new pallet attribute macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add migrations
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix some indent
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fmt
* fix migration
* fix migration
* fmt
* finally fix migration
* keep the storages public as they were
* Some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix migration
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix migration and Add test
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* improve test
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* improve test
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Revert the changes of membership
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix test
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix test
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* don't assert that there is something at the old prefix in the pre-migrate
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* cargo fmt
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
2021-09-14 11:42:26 +00:00
dependabot[bot]
e4a8d60015
Bump wat from 1.0.37 to 1.0.40 ( #9771 )
...
Bumps [wat](https://github.com/bytecodealliance/wasm-tools ) from 1.0.37 to 1.0.40.
- [Release notes](https://github.com/bytecodealliance/wasm-tools/releases )
- [Commits](https://github.com/bytecodealliance/wasm-tools/compare/wat-1.0.37...wat-1.0.40 )
---
updated-dependencies:
- dependency-name: wat
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-09-14 10:36:11 +00:00
Squirrel
f2d487d999
substrate depends on openssl at the moment ( #9556 )
...
in some circumstances...
2021-09-14 11:13:36 +01:00
Qinxuan Chen
7deed34d64
Migrate pallet-tips to the new pallet attribute macro ( #9711 )
...
* Migrate pallet-tips to the new pallet attribute macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix migration
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
2021-09-14 00:04:09 +00:00
dependabot[bot]
0983d98cff
Bump primitive-types from 0.10.0 to 0.10.1 ( #9754 )
...
Bumps [primitive-types](https://github.com/paritytech/parity-common ) from 0.10.0 to 0.10.1.
- [Release notes](https://github.com/paritytech/parity-common/releases )
- [Commits](https://github.com/paritytech/parity-common/commits )
---
updated-dependencies:
- dependency-name: primitive-types
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-09-13 21:07:18 +00:00
Liu-Cheng Xu
2562f8c65e
Clean up sc-network ( #9761 )
...
* Clean up sc-network
- Avoid using clone() for the Copy type `PeerId`.
- Use `find_map` for `filter_map` and `next`.
- Use `Self`.
* More on Copy types
* Cargo +nightly fmt --all
* More ..
* fmt
* Revert vec![default_notif_handshake_message]
2021-09-13 20:11:29 +02:00
Denis Pisarev
0472a43855
dockerfiles: upgrade to ubuntu:20.04 ( #9753 )
...
* dockerfiles: upgrade to ubuntu:20.04
* dockerfiles: fq container name
2021-09-13 14:33:34 +02:00
Robert Klotzner
2c36adf898
More descriptive errors. ( #9768 )
2021-09-13 12:02:00 +00:00
Pierre Krieger
d5d6d79e37
Purge addresses that fail to reach a peer ( #8843 )
...
Co-authored-by: Roman Proskuryakov <r.proskuryakoff@gmail.com >
2021-09-13 13:31:04 +02:00
Falco Hirschenberger
c9197a2c6a
Add childstate_getStorageEntries RPC ( #9459 )
...
* Add storage query functions for multiple keys
fixes #9203
* Query all keys in one request and add more tests
* Make it compatible with stable release channel
* Update to new futures
* Update client/rpc/src/state/state_full.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/rpc/src/state/state_full.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/rpc/src/state/state_full.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/rpc/src/state/state_full.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/rpc/src/state/state_full.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/rpc/src/state/state_light.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update client/rpc/src/state/state_light.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Satisfy borrowck
* Remove non-RPC `storage_entries` functions.
* Revert "Remove non-RPC `storage_entries` functions."
This reverts commit d840015c59ce865f879178594088c79082e8d151.
* Revert "Revert "Remove non-RPC `storage_entries` functions.""
This reverts commit 5813b439a4b467e022c627e3fe60cf2fa5520db4.
* Finally some formatting
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-13 09:42:08 +00:00
Seun Lanlege
9245bfbbc2
Adds composable.finance to ss58 registry ( #9608 )
...
* adds composable.finance ss58 registry
* adds composable ss58 format
* correct prefix
* dedupe
Co-authored-by: CI system <>
2021-09-13 10:54:13 +02:00
Chevdor
0d30893840
update crate names and rand deps ( #9762 )
2021-09-13 08:52:41 +00:00
Liu-Cheng Xu
f9699db41c
Use the precise number of approvals when constructing RawOrgin::Members ( #9647 )
...
* Use the precise number of approvals when constructing RawOrgin::Members
Close #9604
* Split out tests.rs
* Add a test for dispatching with yes votes instead of voting threshold
* Simplify tests
- Also add copyright header.
* Remove unused hex_literal::hex in collective tests
* Extract the helper function record()
* Try fixing ci
* Add a test case with only two votes
* Nit
* Fix typo
2021-09-13 03:12:37 +00:00
Kian Paimani
056fd9b8a8
Recursive election provider as fallback ( #9648 )
...
* Recursive election provider as fallback
* minor fix
* Fix integrity tests
* Update frame/election-provider-multi-phase/src/lib.rs
Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com >
* Fix everything
* fmt again
* Fix test
* Fix state machine warning
* Fix build
Co-authored-by: Zeke Mostov <32168567+emostov@users.noreply.github.com >
2021-09-12 14:38:32 +00:00
Bastian Köcher
c09d52ead7
Use tokio runtime handle instead of TaskExecutor abstraction ( #9737 )
...
* Use tokio runtime handle instead of TaskExecutor abstraction
Before this pr we had the `TaskExecutor` abstraction which theoretically
allowed that any futures executor could have been used. However, this
was never tested and is currently not really required. Anyone running a
node currently only used tokio and nothing else (because this was hard
coded in CLI). So, this pr removes the `TaskExecutor` abstraction and
relies directly on the tokio runtime handle.
Besides this changes, this pr also makes sure that the http and ws rpc
server use the same tokio runtime. This fixes a panic that occurred when
you drop the rpc servers inside an async function (tokio doesn't like
that a tokio runtime is dropped in the async context of another tokio
runtime).
As we don't use any custom runtime in the http rpc server anymore, this
pr also removes the `rpc-http-threads` cli argument. If external parties
complain that there aren't enough threads for the rpc server, we could
bring support for increasing the thread count of the tokio runtime.
* FMT
* Fix try runtime
* Fix integration tests and some other optimizations
* Remove warnings
2021-09-12 12:29:11 +00:00
Kian Paimani
be69e4d2b2
clean the interface of supports map ( #9674 )
...
* clean the interface of supports map, make it a bit cleaner and more efficients
* Fix stiff
* fix one test
* Fix warnings
2021-09-10 18:39:48 +00:00
dependabot[bot]
b3092ead23
Bump futures-util from 0.3.16 to 0.3.17 ( #9748 )
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.16 to 0.3.17.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.16...0.3.17 )
---
updated-dependencies:
- dependency-name: futures-util
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-09-10 17:28:36 +00:00
Guillaume Thiolliere
be3c59f59c
remove unused state machine ( #9747 )
2021-09-10 16:32:46 +02:00
Shawn Tabrizi
250f9fc1ae
Dont Convert Benchmark Error Too Early ( #9743 )
...
* dont convert benchmark error
* fix warning
* fix more warnings
* more fixes
* more fixes
* add missing feature deps
* Update frame/election-provider-multi-phase/src/benchmarking.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Update frame/election-provider-multi-phase/src/benchmarking.rs
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* use from
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
2021-09-10 12:06:24 +00:00
GreenBaneling | Supercolony
a36e881783
Implemented seal_ecdsa_recovery function in the contract pallet ( #9686 )
...
* Implemented `seal_ecdsa_recovery` function in the contract pallet.
Added benchmark and unit test.
* Run `cargo fmt`
* Skip fmt for slices
* Changes according comments in pull request.
* Fix build without `unstable-interface` feature
* Applied suggestion from the review
* Apply suggestions from code review
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Apply suggestions from code review
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
* Changed RecoveryFailed to EcdsaRecoverFailed
* Manually updated weights.rs
* Apply suggestions from code review
Co-authored-by: Michael Müller <mich@elmueller.net >
Co-authored-by: Alexander Theißen <alex.theissen@me.com >
Co-authored-by: Michael Müller <mich@elmueller.net >
2021-09-10 11:30:56 +00:00
dependabot[bot]
110ba540ec
Bump proc-macro2 from 1.0.28 to 1.0.29 ( #9741 )
...
Bumps [proc-macro2](https://github.com/alexcrichton/proc-macro2 ) from 1.0.28 to 1.0.29.
- [Release notes](https://github.com/alexcrichton/proc-macro2/releases )
- [Commits](https://github.com/alexcrichton/proc-macro2/compare/1.0.28...1.0.29 )
---
updated-dependencies:
- dependency-name: proc-macro2
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-09-10 10:56:14 +00:00
Sergejs Kostjucenko
c0a09c1795
Change ci pipeline to use vault secrets ( #9662 )
2021-09-10 11:27:48 +03:00
Zeke Mostov
6bfcfeed4c
Create trait for NPoS election algorithms ( #9664 )
...
* build the template, hand it over to zeke now.
* Tests working
* save wip
* Some updates
* Some cleanup
* mo cleanin
* Link to issue
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Bound accuracy for prepare_election_result
* Use npos_election::Error for phragmms
* save
* Apply suggestions from code review
* Simplify test to use Balancing::set
* Cargo.lock after build
* Revert "Cargo.lock after build"
This reverts commit 7d726c8efa687c09e4f377196b106eb9e9760487.
* Try reduce cargo.lock diff
* Update bin/node/runtime/src/lib.rs
* Comment
* Apply suggestions from code review
* Set balancing directly
* Document som pub items
* Update frame/election-provider-multi-phase/src/unsigned.rs
* Apply suggestions from code review
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
* Improve some comments
* Revert accidental change to random file
* tiney
* revert
Co-authored-by: kianenigma <kian@parity.io >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-09-09 19:46:24 +00:00
dependabot[bot]
d1c281461d
Bump zeroize from 1.2.0 to 1.4.1 ( #9591 )
...
Bumps [zeroize](https://github.com/iqlusioninc/crates ) from 1.2.0 to 1.4.1.
- [Release notes](https://github.com/iqlusioninc/crates/releases )
- [Commits](https://github.com/iqlusioninc/crates/compare/zeroize/v1.2.0...zeroize/v1.4.1 )
---
updated-dependencies:
- dependency-name: zeroize
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-09 11:31:31 +00:00
dependabot[bot]
d32340b913
Bump lru from 0.6.5 to 0.6.6 ( #9635 )
...
Bumps [lru](https://github.com/jeromefroe/lru-rs ) from 0.6.5 to 0.6.6.
- [Release notes](https://github.com/jeromefroe/lru-rs/releases )
- [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/jeromefroe/lru-rs/compare/0.6.5...0.6.6 )
---
updated-dependencies:
- dependency-name: lru
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-09-09 13:26:25 +02:00
girazoki
b9e968fb3f
Add setter configurable only for benchmarking or tests ( #9668 )
...
* Add setter configurable only fior benchmarking or tests
* Update primitives/runtime/src/traits.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-09 12:45:16 +02:00
Bastian Köcher
129c9ed09e
Remove the last bits of unknown_os in the code base ( #9718 )
...
* Remove the last bits of unknown_os in the code base
* Fmt
2021-09-09 11:17:16 +02:00
Alexander Theißen
a443944167
Improve instruction benchmarks ( #9712 )
...
* seal_input can be called multiple times
* Increase size of instruction benchmarks
* Remove randomness from instr_br* 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
Co-authored-by: Parity Bot <admin@parity.io >
2021-09-09 09:12:08 +00:00
Pierre Krieger
5666d9de94
Fix flaky test ( #9729 )
...
* Fix flaky test
* Restore cargo fmt
Co-authored-by: Roman Proskuryakov <r.proskuryakoff@gmail.com >
2021-09-08 20:45:24 +02:00
tgmichel
f7a421f488
graph::ChainApi and graph::Pool reexport (#9726 )
...
* `graph::ChainApi` and `graph::Pool` reexport
* Redundant import cleanup
2021-09-08 15:57:34 +02:00
Bastian Köcher
b382cc8f9d
Improve sandbox internal api ( #9709 )
...
* Improve sandbox internal api
This improves the internal sandbox api for the executor implementations.
The main point is to hide the tls in the internal api and not having it
exposed to the outside.
This is especially needed for wasmtime 0.29.0
* Fmt
* Make it nicer
2021-09-08 12:28:23 +02:00
Alexander Popiak
8cf6474388
add query types to generate_storage_alias ( #9659 )
...
* add query types to generate_storage_alias
* adjust comment
* use ValueQuery explicitly for generate_storage_alias with generic value type
* bump impl_version
* adjust line width and add import
* more compilation and formatting fixes
* formatting
2021-09-08 08:48:49 +00:00
João Paulo Silva de Souza
bd2aa79112
disable unleash-check ( #9705 )
...
the last successful run of this check was on b14d4f07aa and it had been failing even before that
should be re-enabled lated
2021-09-07 20:57:58 +00:00
cheme
0a8b3ddedc
Fix compact proof decoding unaccessed last child trie. ( #9715 )
...
* fix no child proof attached but root included.
* small stress test for proof of child tries.
* rust fmt
2021-09-07 16:21:42 +00:00
Falco Hirschenberger
16144e7404
Store the database in a role specific subdirectory ( #9645 )
...
* Store the database in a role specific subdirectory
This is a cleaned up version of #8658 fixing #6880
polkadot companion: paritytech/polkadot#2923
* Disable prometheus in tests
* Also change p2p port
* Fix migration logic
* Use different identification file for rocks and parity db
Add tests for paritydb migration
2021-09-07 13:31:25 +00:00
Sergejs Kostjucenko
4849e34270
Fix buildah issue 3500 ( #9716 )
2021-09-07 15:38:41 +03:00
Qinxuan Chen
03b294641e
Migrate pallet-membership to the new pallet attribute macro ( #9080 )
...
* Migrate pallet-membership to new pallet attribute macro
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Add migrations
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* more general
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix event metadata
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* fix some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* apply suggestion
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* some nits
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Remove useless
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix migration
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix migration
now we need to store the new version manually.
* Fix migration and Add migration test
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Fix format
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
* Use new_test_ext
Signed-off-by: koushiro <koushiro.cqx@gmail.com >
Co-authored-by: thiolliere <gui.thiolliere@gmail.com >
2021-09-07 12:17:26 +00:00
Bastian Köcher
224c7f10b9
SimpleSlotWorker make claim_slot async ( #9713 )
...
* SimpleSlotWorker make `claim_slot` async
* FMT
2021-09-07 11:15:44 +00:00
Shawn Tabrizi
5d78dbf27f
Allow Skipping Benchmark Errors ( #9699 )
...
* introduce benchmark skip
* fmt
* Update lib.rs
* fix up
2021-09-06 23:25:20 +00:00
Alexander Theißen
522e77e243
contracts: Remove state rent ( #9669 )
...
* Remove storage rent
* Add storage migration
* 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
* 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
* 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
* Add migration for deletetion queue
* Fix compilation
* Increase gas supplied to out_of_gas to be sure that it won't deplete too early
* 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
Co-authored-by: Parity Bot <admin@parity.io >
2021-09-06 16:40:58 +00:00
Alexander Theißen
13f3e25ebb
Add initial contract macro benchmarks ( #9600 )
...
* Add erc20 benchmarks
* Fix typos
Co-authored-by: Michael Müller <michi@parity.io >
* Fix compilation issue on case sensitive fs
Co-authored-by: Michael Müller <michi@parity.io >
2021-09-06 11:30:28 +00:00
cheme
61941f2806
reset cache when storage possibly change (fix init of tests). ( #9665 )
...
* reset cache when storage possibly change (fix init of tests).
* remove backend_storage_mut
* fix warn
* remove remaining backend_storage_mut
2021-09-06 10:42:02 +00:00
Alexander Theißen
d99c0cead7
Don't allow failure for cargo fmt ( #9702 )
...
* Don't allow failure for cargo fmt
* cargo fmt
2021-09-06 10:09:34 +00:00
Arkadiy Paronyan
cd19c7b79e
Fixed block response limit check ( #9692 )
...
* Fixed block response limit check
* Fixed start block detection and added a test
* Missing test
2021-09-06 07:25:30 +00:00
Squirrel
ffced22fb7
sp-utils => sc-utils ( #9677 )
...
* sp-utils => sc-utils
* cargo fmt
* These files are now in the client so should be licensed as GPL3
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-09-04 19:20:48 +00:00