Skip to content

Add para_ids Runtime API#9055

Merged
alindima merged 14 commits intomasterfrom
cyon-new-runtime-api-query-paraids
Jul 9, 2025
Merged

Add para_ids Runtime API#9055
alindima merged 14 commits intomasterfrom
cyon-new-runtime-api-query-paraids

Conversation

@Sajjon
Copy link
Contributor

@Sajjon Sajjon commented Jul 1, 2025

Implementation of #9053

@Sajjon Sajjon requested a review from a team as a code owner July 1, 2025 14:00
@Sajjon Sajjon marked this pull request as draft July 1, 2025 14:15
@Sajjon Sajjon changed the title [WIP] Add a paras Runtime API New Runtime API: para_ids (v14) Jul 2, 2025
@Sajjon Sajjon marked this pull request as ready for review July 2, 2025 09:03
@Sajjon Sajjon requested a review from alindima July 2, 2025 09:03
@Sajjon
Copy link
Contributor Author

Sajjon commented Jul 2, 2025

/cmd fmt

@Sajjon Sajjon changed the title New Runtime API: para_ids (v14) Add para_ids Runtime API Jul 2, 2025
@Sajjon Sajjon requested a review from sandreim July 2, 2025 09:39
@paritytech-workflow-stopper
Copy link

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/16073240026
Failed job name: fmt

ValidationCodeBombLimit(SessionIndex, RuntimeApiSender<u32>),
/// Get the paraids at the relay parent.
/// `V14`
ParaIds(SessionIndex, RuntimeApiSender<Vec<ParaId>>),
Copy link
Contributor Author

@Sajjon Sajjon Jul 4, 2025

Choose a reason for hiding this comment

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

nevermind

Copy link
Contributor

Choose a reason for hiding this comment

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

?

@Sajjon
Copy link
Contributor Author

Sajjon commented Jul 4, 2025

Manual testing show it works!

[settings]
enable_tracing = false

[relaychain]
default_command = "polkadot"
chain = "rococo-local"

[[relaychain.nodes]]
name = "alice"
validator = true

[[relaychain.nodes]]
name = "bob"
validator = true

[[parachains]]
id = 2000
addToGenesis = true

  [parachains.collator]
  name = "collator01"
  command = "adder-collator"
  args = ["-lparachain=debug"]

[[parachains]]
id = 2001
addToGenesis = true

  [parachains.collator]
  name = "collator02"
  command = "adder-collator"
  args = ["-lparachain=debug"]

[[parachains]]
id = 2002
addToGenesis = true

  [parachains.collator]
  name = "collator03"
  command = "adder-collator"
  args = ["-lparachain=debug"]

[types.Header]
number = "u64"
parent_hash = "Hash"
post_state = "Hash"

zombi --provider native spawn cumulus/zombienet/zombienet-sdk/tests/test-para-ids.toml

and then I went to runtime calls in https://polkadot.js.org/apps/?rpc=ws://127.0.0.1:59016#/runtime

and it shows:

Screenshot 2025-07-04 at 16 40 17

So, success!

@alindima alindima added this pull request to the merge queue Jul 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 7, 2025
@alindima alindima added this pull request to the merge queue Jul 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 7, 2025
ValidationCodeBombLimit(SessionIndex, RuntimeApiSender<u32>),
/// Get the paraids at the relay parent.
/// `V14`
ParaIds(SessionIndex, RuntimeApiSender<Vec<ParaId>>),
Copy link
Contributor

Choose a reason for hiding this comment

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

?

@alindima alindima added this pull request to the merge queue Jul 7, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 7, 2025
@alindima alindima added this pull request to the merge queue Jul 9, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 9, 2025
@alindima alindima added this pull request to the merge queue Jul 9, 2025
Merged via the queue into master with commit 7ab0dcd Jul 9, 2025
244 checks passed
@alindima alindima deleted the cyon-new-runtime-api-query-paraids branch July 9, 2025 07:51
alvicsam pushed a commit that referenced this pull request Oct 17, 2025
Implementation of #9053

---------

Co-authored-by: alindima <alin@parity.io>
github-merge-queue bot pushed a commit that referenced this pull request Feb 4, 2026
Implements the `CollationManager` and the new collator protocol
(validator side) subsystem.

Issues #8182 and
#7752.

These are the big remaining parts which would enable us to test the
entire implementation.

TODO:
- [ ] add a couple more unit tests (see the suggestions at the bottom of
the tests file)
- [x] polish the ClaimQueueState and verify if it's sufficiently covered
by unit tests
  - #10334
  - #10368
- [x] add metrics and polish logs -
#10730
- [x] add a CLI parameter for enabling the experimental subsystem (and
remove the compile-time feature) ->
#10285
- [x] implement registered paras update, using
#9055
- [ ] do some manual zombienet tests with v1 protocol version and with
restarting validators (including syncing with warp sync)
- [x] prdoc
- [x] Rollback 
-
03e8915
-
05e1497
These commits were added just to run the CI tests for this PR with the
new experimental protocol

After merging: 
- [ ] versi testing



Uses a slightly modified version of the ClaimQueueState written by
@tdimitrov in #7114.

---------

Co-authored-by: Tsvetomir Dimitrov <tsvetomir@parity.io>
Co-authored-by: Serban Iorga <serban@parity.io>
Co-authored-by: Serban Iorga <serban300@gmail.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

T4-runtime_API This PR/Issue is related to runtime APIs. T8-polkadot This PR/Issue is related to/affects the Polkadot network.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants