Alexander Theißen
637281556c
Update README.md ( #8871 )
2021-05-21 10:00:25 +00:00
Guillaume Thiolliere
25625a0f0c
Introduce WeakBoundedVec, StorageTryAppend, and improve BoundedVec API ( #8842 )
...
* fix bounded vec doc and unsafe
* fix btree map and set and tests
* introduce weak_bounded_vec and StorageTryAppend
* fix tests and reorganize tests
* improve doc
* add doc
* Update frame/support/src/storage/weak_bounded_vec.rs
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* fix inner doc
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
2021-05-21 09:07:00 +00:00
Sergei Shulepov
20ab68270f
Put WIP artifacts next to ready ones ( #3057 )
...
* Put WIP artifacts next to ready ones
Fixes #3044
* 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 >
2021-05-21 09:53:03 +02:00
Andreas Doerr
a183031eef
Fix doc for CryptoStore::ecdsa_sign_prehashed() ( #8876 )
...
* fix ecdsa_sign_prehashed() doc
* document both instances
2021-05-21 09:52:20 +02:00
ferrell-code
39a7decd1c
Pallet-Multisig to framev2 ( #8741 )
...
* the great migration
* benchmarks to work
* unnecessary T: Config
* Update frame/multisig/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update frame/multisig/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update frame/multisig/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update frame/multisig/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update frame/multisig/src/lib.rs
* line width
* get to compile
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
2021-05-21 06:40:19 +00:00
Alexander Theißen
06d87ba464
The code generated by the interface macro did compare to the wrong module ( #8872 )
2021-05-20 20:42:44 +00:00
Shawn Tabrizi
25bbcfd724
Add OnSwap hook for crowdloans. ( #3017 )
2021-05-20 22:41:08 +02:00
Keith Yeung
e5954cf863
Make hooks and call attributes optional in pallet macro ( #8853 )
...
* Make #[pallet::hooks] optional
* Make #[pallet::call] optional
* Remove unused imports
* Update UI test expectations
* Update UI test expectations
* Remove unnecessary HooksDef::empty method
* Remove unnecessary CallDef::empty method
* Clarify what would happen when no call or hooks are specified in a pallet
2021-05-20 19:31:56 +00:00
Bastian Köcher
6a0b7b4164
Add AuxStore as super trait of AbstractClient ( #3066 )
2021-05-20 15:28:41 +02:00
arshamparity
029b8a1d07
add trigger for monitoring job in cloud-infra repository ( #8831 )
...
* add trigger for monitoring job in cloud-infra repository
* remove substrate-alerting-rules.env file for artifact:reports:dotenv
* add allow failure to trigger-cloud-infra-monitoring job
* remove strategy=depend from the trigger pipeline
Co-authored-by: Arsham <arsham@parity.io >
2021-05-20 16:27:16 +03:00
Alexander Theißen
0057c0b53f
contracts: Add seal_rent_status ( #8780 )
...
* Move public functions up in rent.rs
* Added RentStatus
* Fix test name for consistency
Co-authored-by: Michael Müller <michi@parity.io >
* Mark rent functions as unstable
* Add unstable interfaces to README
* Fix doc typos
Co-authored-by: Andrew Jones <ascjones@gmail.com >
* Use DefaultNoBound
* Simplify calc_share(1)
* Don't output empty debug messages
* Make `seal_debug_message` unstable
Co-authored-by: Michael Müller <michi@parity.io >
Co-authored-by: Andrew Jones <ascjones@gmail.com >
2021-05-20 12:01:43 +00:00
Bastian Köcher
14f5d314f4
New Rococo genesis ( #3065 )
2021-05-20 11:44:13 +00:00
Martin Pugh
d061d0c407
bump substrate ( #3062 )
2021-05-20 10:11:36 +00:00
Xiliang Chen
f29a6fdad3
Update decimals & website for Karura ( #8863 )
2021-05-20 10:11:07 +00:00
Andronik Ordian
2e70f4ea08
validator-discovery: basic retrying logic ( #3059 )
...
* validator_discovery: less flexible, but simpler design
* fix test
* remove unused struct
* smol optimization
* validator_discovery: basic retrying logic
* add a test
* add more tests
* update the guide
* more test logic
* Require at least 2/3 connectivity.
* Fix test.
* Update node/network/gossip-support/src/lib.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
* Update node/network/gossip-support/src/lib.rs
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
Co-authored-by: Robert Klotzner <robert.klotzner@gmx.at >
Co-authored-by: Robert Klotzner <eskimor@users.noreply.github.com >
Co-authored-by: André Silva <123550+andresilva@users.noreply.github.com >
2021-05-20 10:05:44 +00:00
Pierre Krieger
ff60db4c41
Update the Grafana dashboards ( #8832 )
...
* Update the Grafana dashboards
* Remove the panels on top
2021-05-20 08:34:52 +00:00
Gavin Wood
933c9ac2bf
Reserves for bids during ending period persist until auction done ( #3058 )
...
* Reserves for bids during ending period persist until auction done
* Fixes
* Fixes
* Fixes
* Fixes
* Update auctions.rs
2021-05-20 10:15:52 +02:00
Shaun Wang
3137d94d11
Migrate crowdloan pallet to pallet attribute macro. ( #3036 )
2021-05-19 20:14:20 +00:00
Andronik Ordian
98c06f5b57
validator_discovery: less flexible, but simpler design ( #3052 )
...
* validator_discovery: less flexible, but simpler design
* fix test
* remove unused struct
* smol optimization
2021-05-19 18:54:13 +02:00
Guillaume Thiolliere
693529df63
Fix transaction payment fee/tip unbalanceds ( #8860 )
...
* fix and test
* fmt
2021-05-19 18:44:50 +02:00
Robert Klotzner
44c03a3633
Actually connect to new validators at session boundary. ( #3055 )
...
* Actually connect to new validators at session boundary.
* Add tracing.
2021-05-19 11:29:55 +00:00
Sergei Shulepov
093b574d13
Slap runtime_version macro everywhere ( #444 )
...
* Slap runtime_version macro everywhere
* Update Substrate
This includes the fix of compilation for macOS platforms.
2021-05-19 12:34:02 +02:00
Sergei Shulepov
46e5316a77
Register ReadRuntimeVersionExt ( #3045 )
...
* Register ReadRuntimeVersionExt
* Update Substrate
This includes the fix of compilation for macOS platforms.
2021-05-19 12:33:33 +02:00
Guillaume Thiolliere
c48b460b2e
Improve pallet macro error message by deriving codec with no bound for Call enum ( #8851 )
...
* improve span for call
* fix stderr file paths
2021-05-19 09:23:06 +00:00
Bastian Köcher
ee726ed55d
Improve impl_opaque_keys! ( #8856 )
...
The macro should assume less about the scope where it is being used in.
In this case it is about not assuming that the crate where the macro is
called in provides a `std` feature.
2021-05-19 08:37:42 +00:00
Bastian Köcher
6a6f330412
Make wasmtime the default when the feature is enabled ( #8855 )
...
* Make wasmtime the default when the feature is enabled
* Update client/cli/src/arg_enums.rs
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com >
2021-05-19 08:29:32 +00:00
Guillaume Thiolliere
0b30049417
Allow to name the generic for storages in #[pallet::storage] ( #8751 )
...
* implement named generic for storages
* fix error message on unexpected name for generic
2021-05-19 07:11:11 +00:00
Martin Pugh
fe97c3a3a2
Bump version & spec version in prep for v0.9.2 ( #3046 )
...
* bump version & spec version
* update Cargo.lock
* bump substrate
2021-05-18 23:03:45 +02:00
Martin Pugh
077e3fa6e3
Remove host configuration set migration from Kusama & Westend ( #3050 )
...
* remove weights migration from kusama
* remove migrations in westend also
2021-05-18 23:03:30 +02:00
Gavin Wood
ec73e6e34e
Statemint can teleport into Kusama ( #3042 )
...
* Statemint can teleport into Kusama
* Bump
* Fixes
* Fixes
2021-05-18 17:52:11 +02:00
Andreas Doerr
ed39290f91
Add CryptoStore::ecdsa_sign_prehashed() ( #8838 )
...
* Pair::sign_prehashed()
* add CryptoStore::ecdsa_sign_prehashed()
* add test for testing keystore
* address review comments
2021-05-18 16:07:45 +02:00
Kian Paimani
b5f23bfd1c
Ensure election offchain workers don't overlap ( #8828 )
...
* Initial version, well tested, should work fine.
* Add one last log line
* Update frame/election-provider-multi-phase/src/unsigned.rs
Co-authored-by: Gavin Wood <gavin@parity.io >
* Update frame/election-provider-multi-phase/src/unsigned.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Update frame/election-provider-multi-phase/src/unsigned.rs
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
* Fix a few more things
* fix build
* rewrite the whole thing with a proper lock
* clean
* clean some nits
* Add unit tests.
* Update primitives/runtime/src/offchain/storage_lock.rs
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* Apply suggestions from code review
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Fix test
* Fix tests
Co-authored-by: Gavin Wood <gavin@parity.io >
Co-authored-by: Guillaume Thiolliere <gui.thiolliere@gmail.com >
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-05-18 12:22:06 +00:00
Sergei Shulepov
bee5c2dd71
Emit wasm sections only when compiling to wasm ( #8845 )
2021-05-18 12:06:35 +00:00
Shaun Wang
8d30172a8f
Update auctions pallet to FRAME v2 ( #3031 )
...
* Migrate auctions pallet to pallet attribute macro.
* Rename extra constants.
2021-05-18 11:40:15 +00:00
stanly-johnson
2b8be8cf1e
Migrate pallet-scheduler to pallet attribute macro ( #8769 )
...
* migrate to pallet!
* fixes
* fix genesis
* code review fixes
* Update frame/scheduler/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update frame/scheduler/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update frame/scheduler/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update frame/scheduler/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* Update frame/scheduler/src/lib.rs
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
* fix metadata
Co-authored-by: Keith Yeung <kungfukeith11@gmail.com >
2021-05-18 08:52:17 +00:00
Andreas Doerr
a68ed7c3d8
[clippy] Fix clippy issues for crate sp-core ( #8809 )
...
* Fix clippy issues for crate sp-core
* Update primitives/core/benches/bench.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Update primitives/core/src/ed25519.rs
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
* Remove clippy attributes
* Missed a clippy attribute
* remove clippy attributes for bechmarks as well
Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com >
2021-05-18 09:38:56 +02:00
Bernhard Schuster
2a6f460e4c
reword error: channel is _terminated and_ empty ( #3041 )
2021-05-18 07:51:46 +02:00
KingFishDev
72a2ad4f4f
fix: add Debug to token traits ( #8830 )
2021-05-17 17:55:19 +00:00
Bastian Köcher
d458d2622b
Introduce CollectCollationInfo runtime api ( #443 )
...
* Introduce `CollectCollationInfo` runtime api
Instead of using well known keys to communicate information about a
collation between the runtime and the collator, we now use a runtime api
for this.
* Fixes bug
* Apply suggestions from code review
Co-authored-by: Sergei Shulepov <sergei@parity.io >
* Doc update
Co-authored-by: Sergei Shulepov <sergei@parity.io >
2021-05-17 16:33:33 +02:00
Guillaume Thiolliere
9bf62ef65d
Allow to specify some max number of values for storages in pallet macro. ( #8735 )
...
* implement max_values + storages info
* some formatting + doc
* rename StoragesInfo -> PalletStorageInfo
* merge both StorageInfoTrait and PalletStorageInfo
I think it is more future proof. In the future some storage could make
use of multiple prefix. Like one to store how much value has been
inserted, etc...
* Update frame/support/procedural/src/storage/parse.rs
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* Update frame/support/procedural/src/storage/storage_struct.rs
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
* Fix max_size using hasher information
hasher now expose `max_len` which allows to computes their maximum len.
For hasher without concatenation, it is the size of the hash part,
for hasher with concatenation, it is the size of the hash part + max
encoded len of the key.
* fix tests
* fix ui tests
Co-authored-by: Peter Goodspeed-Niklaus <coriolinus@users.noreply.github.com >
2021-05-17 13:44:24 +00:00
Denis Pisarev
e9615fc9df
CI: remove unnecessary jobs while simnet is under work ( #3043 )
2021-05-17 15:31:38 +02:00
Martin Pugh
fa4f91fbed
[CI][WIP] Fix check_labels ( #3039 )
...
* fix check_labels
* runtime change test. revert me
* Revert "runtime change test. revert me"
This reverts commit 6bec7e34f522555f9ac84332721c191d547bdf16.
2021-05-17 12:46:56 +02:00
Frederik Schulz
59f34ab8bc
Extends ChildStateBackend and ChildStateAPI with ReadProofs ( #8812 )
...
* Extends ChildStateBackend and ChildStateAPI with ReadProofs
The following changes integrate the existing `read_child_proof`
from the `ProofProvider` into the ChildStateBackend, so that a
read proof can be generated from a full client via an rpc call.
* Cleanup formatting
2021-05-17 09:59:10 +00:00
Keith Yeung
fcf83c0278
Use StorageNMap for Approvals in assets pallet ( #8816 )
...
* Use StorageNMap for Approvals in assets pallet
* Use EncodeLike on HashKeyPrefix trait bounds
* Add comments clarifying AccountId roles
* Properly document the keys in the Approvals storage
* Fix line width
2021-05-17 06:27:06 +00:00
Ayush Mishra
c28ab1fcac
Improve match statement ( #8817 )
2021-05-15 21:43:58 +02:00
Pierre Krieger
eaccde2ddc
Add names to offchain worker threads ( #8820 )
...
* Add names to offchain worker threads
* Compilation
2021-05-15 12:21:16 +00:00
Andronik Ordian
22c60a63d6
frame/session/benchmarking: fix invalid feature declaration ( #8818 )
2021-05-15 14:08:52 +02:00
Xiliang Chen
d4072c652f
Fix ArtifactId::path ( #3027 )
...
* issue with ArtifactId::path
* fix artifacts path
* Wrap an overly long line
Co-authored-by: Sergei Shulepov <s.pepyakin@gmail.com >
2021-05-15 14:04:09 +02:00
Pierre Krieger
78b87c47a8
Grab stream of networking events earlier ( #3025 )
2021-05-14 17:51:44 +02:00
Pierre Krieger
d849110c6b
Small improvement to network log line ( #8811 )
...
* Small improvement to network log line
* Use {:?} for the set_id
2021-05-14 14:31:03 +00:00