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

fix: polkadot v1.1.0 client #1808

Merged
merged 3 commits into from
Apr 15, 2024
Merged

Conversation

wischli
Copy link
Contributor

@wischli wischli commented Apr 12, 2024

Description

Context: https://github.com/centrifuge/centrifuge-chain/pull/1756/files#r1562566212

  • Deprecates parachain-id CLI argument which was a custom addition for a few CLI arguments inherited from Substrate
    • Sets para id 2000 for ephemeral chain specs development, centrifuge-local, altair-local
    • Removes defaulting to 10001 para id if not set in CLI
  • Removes deprecated chain specs charcoal, algol, centrifuge-dev (basically centrifuge-local with 2 more funded accounts) and altair-dev(basicallyaltair-local` with 2 more funded accounts)

Fixes #(issue)

  • Local parachain deploymentg

Checklist:

  • I have added Rust doc comments to structs, enums, traits and functions
  • I have made corresponding changes to the documentation
  • I have performed a self-review of my code
  • I have added tests that prove my fix is effective or that my feature works

@wischli wischli added the I3-annoyance The code behaves as expected, but "expected" is an issue. label Apr 12, 2024
@wischli wischli self-assigned this Apr 12, 2024
@wischli wischli mentioned this pull request Apr 12, 2024
58 tasks
@wischli wischli requested a review from lemunozm April 12, 2024 13:37
Copy link

codecov bot commented Apr 12, 2024

Codecov Report

Attention: Patch coverage is 0% with 7 lines in your changes are missing coverage. Please review.

Project coverage is 48.48%. Comparing base (83dc357) to head (7e20aad).

Files Patch % Lines
node/src/command.rs 0.00% 7 Missing ⚠️
Additional details and impacted files
@@                 Coverage Diff                 @@
##           polkadot-v1.1.0    #1808      +/-   ##
===================================================
+ Coverage            47.94%   48.48%   +0.53%     
===================================================
  Files                  168      168              
  Lines                13474    13325     -149     
===================================================
  Hits                  6460     6460              
+ Misses                7014     6865     -149     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@lemunozm lemunozm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for dealing with this @wischli! And for updating the docs related too!

@lemunozm
Copy link
Contributor

lemunozm commented Apr 12, 2024

Just a couple of questions.

  • Do you want to merge this after merging polkadot-v1.1.0 or before? Ok, after reading your post in the other PR, it's required to be merged before.
  • Is catalyst still needed?

@wischli
Copy link
Contributor Author

wischli commented Apr 15, 2024

  • Is catalyst still needed?

For now, it is still used so I would keep it. But its expected to be deprecated sometime this year!

@wischli wischli merged commit 399228a into polkadot-v1.1.0 Apr 15, 2024
11 of 12 checks passed
@wischli wischli deleted the wf/polkadot-v1.1.0-client branch April 15, 2024 09:21
lemunozm added a commit that referenced this pull request Apr 15, 2024
* all dependencies set

* migrate libs/*

* migrate pallet-anchors

* migrate pallet-rewards

* migrate pallet-liquidity-rewards

* migrate pallet-fees pallet-bridge

* migrate pallet-keystore

* migrate restricted-tokens

* migrate restricted-xtokens

* migrate block-rewards

* migrate-interest-accrual

* migrate oracle-feed

* migrate oracle-collection

* migrate collator-allowlist

* migrate transfer-allowlist

* migrate crowdloan pallets

* migrate permissions

* migrate order-book

* migrate pallet-swaps

* migrate pallet-token-mux

* migrate investments

* migrate foreign-investments

* migrate loans

* migrate pool-fees

* migrate liquidity-pools-gateway

* migrate axelar-gateway-precompile

* migrate liquidity-pools-gateway-routers & patch moonbeam deps

* use precompile-utils from moonbeam from now

* simplify mock initialization

* simplify some mocks

* migrate ethereum-transaction

* simplify minor stuff

* disable runtimes by now

* migrate pool-system

* migrate pool-registry

* migrate liquidity-pools

* polish patch section

* dirty fix for unaccesible Pending storage

* minor dependency update

* minor extend comment

* migrate runtime-common

* minor fixes

* Revert "dirty fix for unaccesible Pending storage"

This reverts commit 975060d.

* pointing to the updated pallet-ethereum

* fix pool-system compilation with benchmarks

* fix serde dependencies

* required changes for runtime to work

* development runtime failing because of serde

* patch all required dependencies to make moonbeam works

* fix xcm types

* add serde to no_std

* minor

* migrate altair & centrifuge

* minor fixes

* support runtime-benchmarking in runtimes

* Polkadot v1.1.0: Node required changes (#1789)

* make it compile

* minor change

* prepare changes for modify deprecated code

* fix ExportGenesisState and remove unused warnings

* update benchmark CLI

* remove completelly try-runtime-cli

* minor clean

* fix try-runtime CI job

* Polkadot v1.1.0 Integration Tests (#1776)

* legacy-test migration wip

* main changes

* remove unused dependency

* basic stuff migrated

* uncomment fudge_env

* update fudge

* integration-tests: Fix test envs (#1780)

* main changes

* integration-tests: Fix test envs

* runtime: Implement parachains pallets for runtimes

* runtime: Enable multilocation convert for CurrencyIdConvert

* runtime: Remove extra paras pallets

* integration-tests: Update expected balances

---------

Co-authored-by: lemunozm <[email protected]>

---------

Co-authored-by: Cosmin Damian <[email protected]>

* fixed issues compiling with rust 1.78

* fix clippy

* taplo

Signed-off-by: lemunozm <[email protected]>

* reading value from deposit_creating

* remove locked from taplo-cli

* update scripts

* fix docs

* fix integration tests

* add collator-selection migration

* makes try-runtime idempotent checks work

* revert fixed point serialization, remove unused Location code

* comment TODOs and deprecated until 1.3.0

* fix fixed_point serialization for std

* correct features for dev dependency

* apply Cosmin NITs

* remove comments regarding v1.3.0

* revert benchmarking HostFunction

* Polkadot v1.1.0: Account converter changes (#1806)

* Modify AccountConverter types

* fix some imports

* fix: polkadot v1.1.0 client (#1808)

* fix: deprecate parachain CLI

* chore: cleanup deprecated chain specs

* fix: clippy

---------

Signed-off-by: lemunozm <[email protected]>
Co-authored-by: Cosmin Damian <[email protected]>
Co-authored-by: William Freudenberger <[email protected]>
"charcoal-local" => Ok(Box::new(chain_spec::charcoal_local(para_id))),
"demo" => Ok(Box::new(chain_spec::demo(para_id))),
"development" => Ok(Box::new(chain_spec::development(para_id))),
"development-local" => Ok(Box::new(chain_spec::development_local(para_id))),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we've broken our development benchmarking with this. We didn't have a CI job for development (I do not remember why), and we didn't notice it.

We should call it development-local or modify check_benchmarks.sh script.

cc @wischli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I3-annoyance The code behaves as expected, but "expected" is an issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants