Skip to content
This repository was archived by the owner on May 22, 2023. It is now read-only.

Feature/update to polkadot v0 9 9 #159

Merged
merged 152 commits into from
Dec 1, 2022

Conversation

MRamanenkau
Copy link

No description provided.

kianenigma and others added 30 commits June 30, 2021 20:46
Since it's already there, why not give it a chance :P
* name reward amount

* Fix
* Do not call `initialize_block` before any runtime api

Before this change we always called `initialize_block` before calling
into the runtime. There was already support with `skip_initialize` to skip
the initialization. Almost no runtime_api requires that
`initialize_block` is called before. Actually this only leads to higher
execution times most of the time, because all runtime modules are
initialized and this is especially expensive when the block contained a
runtime upgrade.

TLDR: Do not call `initialize_block` before calling a runtime api.

* Change `validate_transaction` interface

* Fix rpc test

* Fixes and comments

* Some docs
…ech#9238)

* Implement `iter_keys` function for all types of storage maps

* Remove draining iterator API

* Rename associated key iterator types

* Simplify iteration code

* add test for `iter_keys().drain()`

Co-authored-by: Shawn Tabrizi <[email protected]>
* implement InspectEnumerable in pallet_uniques

* use `iter_keys` and `iter_key_prefix`

* return an iterator instead of constructing a vec

* update comments

* additional warning about storage reads

Co-authored-by: Shawn Tabrizi <[email protected]>
* add simnet tests

* add link to bracap presentation of simnet

* add link to bracap presentation of simnet

* rm not needed file
A prometheus "server" typically refers to the prometheus process running
on a central server which connects to various prometheus "exporters" and
collects metrics. What is implemented here in substrate is a prometheus
exporter.

This patch fixes the associated log message to avoid confusion for new
users.
* Add `Chilled` event to staking chill extrinsics

* Update do_remove_{nom, val} doc comments

* Not working: trying to match on event

* Account for chilled event in offences benchmarking

* trigger ci

* correct
* Less duplication

* Const

Co-authored-by: Bastian Köcher <[email protected]>

* less comments

Co-authored-by: Bastian Köcher <[email protected]>

Co-authored-by: Bastian Köcher <[email protected]>
…ch#9246)

* always implement storage info on Pallet

* fix UI test

* Fold span computation into trait and method computation

Co-authored-by: Keith Yeung <[email protected]>
* bump a bunch of deps in parity-common

* primitive-types 0.10.0

* update Cargo.lock

* downgrade a few more

* this is unlikely to help

* try something

* Checkmate, Atheists!
…stead (paritytech#9163)

* Update impl-codec to use new upstream MaxEncodedLen trait

* Adapt crates to use the updated codec crate for `MaxEncodedLen`

* Remove max-encoded-len crate altogether

* Fix test compilation in `pallet-proxy`

* reorganize import (paritytech#9186)

* Fix remaining `MaxEncodedLen` imports

* Fix remaining old usages of max-encoded-len crate

* Fix UI test

* Manually depend on new impl-codec to fix Polkadot companion build

* Use newly released primitive-types v0.9.1 that has new codec impls

* Make sure codec deps are up-to-date in crates that use them

Co-authored-by: Guillaume Thiolliere <[email protected]>
…ech#9271)

* Removed score and compute from set_emergency_election_result

* Supports type incorrectly set to A

* Typo
…tech#9277)

* Add function for embedding the runtime version in a wasm blob

This function can be used to add the custom section to a wasm blob with
the runtime version in it.

* Review nitpick
* build: fix deprecated stdenv.lib in nix shell

* build: fix libclang_path in nix shell

* build: update rust toolchain in nix shell
* change reference module to pallet

* fix inner doc

Co-authored-by: thiolliere <[email protected]>
* Docs changes to improve clarity

Co-authored-by: Bastian Köcher <[email protected]>

Co-authored-by: Guillaume Thiolliere <[email protected]>
* Allow the allocator to track the heap changes.

* fix build

* review comments

* Update client/allocator/Cargo.toml

Co-authored-by: Bastian Köcher <[email protected]>

* Update client/allocator/Cargo.toml

Co-authored-by: Bastian Köcher <[email protected]>

Co-authored-by: Bastian Köcher <[email protected]>
* move BlockNumberProvider

* Update primitives/runtime/src/traits.rs

* Update primitives/runtime/src/traits.rs

Co-authored-by: Bastian Köcher <[email protected]>
* childstate_getKeysPaged rpc

* Rename `v` to `iter`.

* Update client/api/src/backend.rs

Co-authored-by: Alexander Popiak <[email protected]>

* Update client/api/src/backend.rs

Co-authored-by: Alexander Popiak <[email protected]>

Co-authored-by: Alexander Popiak <[email protected]>
@MRamanenkau MRamanenkau force-pushed the feature/update-to-polkadot-v0-9-9 branch from 214e4ff to 5b5dddf Compare October 6, 2022 10:35
@MRamanenkau MRamanenkau force-pushed the feature/update-to-polkadot-v0-9-9 branch 2 times, most recently from 2c15d54 to 5c3d9d7 Compare October 7, 2022 09:50
@MRamanenkau MRamanenkau force-pushed the feature/update-to-polkadot-v0-9-9 branch from 5c3d9d7 to 651233c Compare October 7, 2022 10:43
@MRamanenkau MRamanenkau force-pushed the feature/update-to-polkadot-v0-9-9 branch from 3e88750 to bee6e0e Compare October 7, 2022 11:56
@MRamanenkau MRamanenkau marked this pull request as ready for review October 10, 2022 12:45
@MRamanenkau MRamanenkau force-pushed the feature/update-to-polkadot-v0-9-9 branch from c5d511e to 098a35c Compare October 17, 2022 09:06
@MRamanenkau MRamanenkau changed the base branch from feature/update-to-polkadot-v0-9-8 to dev-cere December 1, 2022 13:27
@MRamanenkau MRamanenkau dismissed AndreiNavoichyk’s stale review December 1, 2022 13:27

The base branch was changed.

@MRamanenkau MRamanenkau merged commit 133a047 into dev-cere Dec 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.