Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Substrate to follow Polkadot releases #207

Merged
merged 40 commits into from
Nov 2, 2022
Merged

Conversation

jakehemmerle
Copy link
Contributor

@jakehemmerle jakehemmerle commented Oct 13, 2022

This PR updates the entire underlying substrate infrastructure to reflect the latest polkadot release (v0.9.31). It includes:

  • updating RPC infra to jsonrpsee needed to build the new key querying RPC
  • updates subxt to the latest version (0.20.0 to 0.24.0), including all tests in server etc
  • updates underlying substrate infrastructure from being about a year out of date to current as of a few days ago (runtime and pallets)

subxt has been forked to entropyxyz/subxt since it has outdated deps with somewhat of an explination here. Until parity starts updating the client and primitive substrate crates upstream, we will need to have this fork and update is deps each time we update polkadot versions.

@jakehemmerle jakehemmerle self-assigned this Oct 13, 2022
This was linked to issues Oct 13, 2022
@jakehemmerle jakehemmerle changed the title swap subxt 0.20.0 for 0.24.0 swap subxt 0.20.0 for 0.24.0; remove communication-manager Oct 13, 2022
@jakehemmerle
Copy link
Contributor Author

dont review this yet I still need to fix deps on the substrate side

@jakehemmerle
Copy link
Contributor Author

actually, theres a build error with server that would be great to have some eyes on since I know nothing about ErrorStream![]. Related to returning an impl in one of the routes

@jakehemmerle jakehemmerle changed the title swap subxt 0.20.0 for 0.24.0; remove communication-manager ~~swap subxt 0.20.0 for 0.24.0; remove communication-manager~~ Upgrade Substrate Oct 21, 2022
@jakehemmerle jakehemmerle changed the title ~~swap subxt 0.20.0 for 0.24.0; remove communication-manager~~ Upgrade Substrate Upgrade Substrate to follow Polkadot releases Oct 21, 2022
@jakehemmerle jakehemmerle merged commit 0e31aa7 into master Nov 2, 2022
@jakehemmerle jakehemmerle deleted the jsonrpsee branch November 2, 2022 17:04
JesseAbram pushed a commit that referenced this pull request Nov 8, 2022
* PR #201 key association logic; to be reverted

* Revert "PR #201 key association logic; to be reverted"

This reverts commit 44a3ed2.

* added types and comments for readability and clarity in staking-extension

* subxt points to temp branch with updated deps

* refactored server sp_core stuff to use subxt::ext::sp_core

* updated server to use subxt 0.24.0 (from 0.20.0)

* BROKEN: updated substrate to polkadot-v0.9.30 and jakehemmerle subxt

* update Event and Call to RuntimeEvent and RuntimeCall

* fix pallet-free-tx weights

* fix pallet-transaction-pause weights

* fix pallet-staking-extension weights

* updated mock runtimes and tests

still needs updated free-tx test since FRAME tx are transactional by default

* upgraded pallet-free-tx to substrate-polkadot 0.9.30

* pallets are all updated

* entropy-runtime tests pass with runtime-benchmarks

* handled client rpc and service...?

* entropy compiles and tests

* additional refactoring

* added entropy-executor

* entropy tests pass with runtime-benchmarks

* fixed testing-utils

* thanks jesse, fixed server, everything works

* clippy pt 1

* clippy pt 2

* fixing tests

* reenable extensions

* fixed a test

* updated runtime metadata

* added babe and grandpa to rpc

* jesse rocks; fixed subxt Config

* fmt

* clippy

* taplo

* fmt and clippy

* clippy

* updated deps

* updates
JesseAbram added a commit that referenced this pull request Nov 8, 2022
* remove most unwraps

* remove more unwraps

* fmt

* Upgrade Substrate to follow Polkadot releases (#207)

* PR #201 key association logic; to be reverted

* Revert "PR #201 key association logic; to be reverted"

This reverts commit 44a3ed2.

* added types and comments for readability and clarity in staking-extension

* subxt points to temp branch with updated deps

* refactored server sp_core stuff to use subxt::ext::sp_core

* updated server to use subxt 0.24.0 (from 0.20.0)

* BROKEN: updated substrate to polkadot-v0.9.30 and jakehemmerle subxt

* update Event and Call to RuntimeEvent and RuntimeCall

* fix pallet-free-tx weights

* fix pallet-transaction-pause weights

* fix pallet-staking-extension weights

* updated mock runtimes and tests

still needs updated free-tx test since FRAME tx are transactional by default

* upgraded pallet-free-tx to substrate-polkadot 0.9.30

* pallets are all updated

* entropy-runtime tests pass with runtime-benchmarks

* handled client rpc and service...?

* entropy compiles and tests

* additional refactoring

* added entropy-executor

* entropy tests pass with runtime-benchmarks

* fixed testing-utils

* thanks jesse, fixed server, everything works

* clippy pt 1

* clippy pt 2

* fixing tests

* reenable extensions

* fixed a test

* updated runtime metadata

* added babe and grandpa to rpc

* jesse rocks; fixed subxt Config

* fmt

* clippy

* taplo

* fmt and clippy

* clippy

* updated deps

* updates

* Fix CI pipeline (#223)

fix-ci-pipeline

Signed-off-by: John Sahhar <john@entropy.xyz>

Signed-off-by: John Sahhar <john@entropy.xyz>

* Add scripts for running devnet (#222)

Signed-off-by: John Sahhar <john@entropy.xyz>

* Create a recoverable signature

* remove most unwraps

* fmt

* remove mutex unwraps

* fmt

Signed-off-by: John Sahhar <john@entropy.xyz>
Co-authored-by: Jake Hemmerle <jakehemmerle@protonmail.com>
Co-authored-by: ok-john <john@entropy.xyz>
Co-authored-by: Bogdan Opanchuk <bogdan@opanchuk.net>
fjarri pushed a commit that referenced this pull request May 5, 2023
* PR #201 key association logic; to be reverted

* Revert "PR #201 key association logic; to be reverted"

This reverts commit 44a3ed2.

* added types and comments for readability and clarity in staking-extension

* subxt points to temp branch with updated deps

* refactored server sp_core stuff to use subxt::ext::sp_core

* updated server to use subxt 0.24.0 (from 0.20.0)

* BROKEN: updated substrate to polkadot-v0.9.30 and jakehemmerle subxt

* update Event and Call to RuntimeEvent and RuntimeCall

* fix pallet-free-tx weights

* fix pallet-transaction-pause weights

* fix pallet-staking-extension weights

* updated mock runtimes and tests

still needs updated free-tx test since FRAME tx are transactional by default

* upgraded pallet-free-tx to substrate-polkadot 0.9.30

* pallets are all updated

* entropy-runtime tests pass with runtime-benchmarks

* handled client rpc and service...?

* entropy compiles and tests

* additional refactoring

* added entropy-executor

* entropy tests pass with runtime-benchmarks

* fixed testing-utils

* thanks jesse, fixed server, everything works

* clippy pt 1

* clippy pt 2

* fixing tests

* reenable extensions

* fixed a test

* updated runtime metadata

* added babe and grandpa to rpc

* jesse rocks; fixed subxt Config

* fmt

* clippy

* taplo

* fmt and clippy

* clippy

* updated deps

* updates
fjarri added a commit that referenced this pull request May 5, 2023
* remove most unwraps

* remove more unwraps

* fmt

* Upgrade Substrate to follow Polkadot releases (#207)

* PR #201 key association logic; to be reverted

* Revert "PR #201 key association logic; to be reverted"

This reverts commit 44a3ed2.

* added types and comments for readability and clarity in staking-extension

* subxt points to temp branch with updated deps

* refactored server sp_core stuff to use subxt::ext::sp_core

* updated server to use subxt 0.24.0 (from 0.20.0)

* BROKEN: updated substrate to polkadot-v0.9.30 and jakehemmerle subxt

* update Event and Call to RuntimeEvent and RuntimeCall

* fix pallet-free-tx weights

* fix pallet-transaction-pause weights

* fix pallet-staking-extension weights

* updated mock runtimes and tests

still needs updated free-tx test since FRAME tx are transactional by default

* upgraded pallet-free-tx to substrate-polkadot 0.9.30

* pallets are all updated

* entropy-runtime tests pass with runtime-benchmarks

* handled client rpc and service...?

* entropy compiles and tests

* additional refactoring

* added entropy-executor

* entropy tests pass with runtime-benchmarks

* fixed testing-utils

* thanks jesse, fixed server, everything works

* clippy pt 1

* clippy pt 2

* fixing tests

* reenable extensions

* fixed a test

* updated runtime metadata

* added babe and grandpa to rpc

* jesse rocks; fixed subxt Config

* fmt

* clippy

* taplo

* fmt and clippy

* clippy

* updated deps

* updates

* Fix CI pipeline (#223)

fix-ci-pipeline

Signed-off-by: John Sahhar <john@entropy.xyz>

Signed-off-by: John Sahhar <john@entropy.xyz>

* Add scripts for running devnet (#222)

Signed-off-by: John Sahhar <john@entropy.xyz>

* Create a recoverable signature

* remove most unwraps

* fmt

* remove mutex unwraps

* fmt

Signed-off-by: John Sahhar <john@entropy.xyz>
Co-authored-by: Jake Hemmerle <jakehemmerle@protonmail.com>
Co-authored-by: ok-john <john@entropy.xyz>
Co-authored-by: Bogdan Opanchuk <bogdan@opanchuk.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants