This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 378
Introduce rpc client for relay chain full node #963
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bkchr
approved these changes
Feb 28, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just some last nitpicks.
bkchr
reviewed
Feb 28, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please ensure that you have addressed all my comments and not have skipped some again.
This was referenced Mar 4, 2022
12 tasks
10 tasks
wischli
added a commit
to KILTprotocol/kilt-node
that referenced
this pull request
Apr 21, 2022
wischli
added a commit
to KILTprotocol/kilt-node
that referenced
this pull request
Apr 27, 2022
* chore: bump deps to Polkadot v0.9.19 * fix: LengthToFee https://github.com/paritytech/substrate/pull/10785/files * fix: remove u32_trait paritytech/substrate#10850 * fix: client paritytech/substrate#11164 paritytech/cumulus#963 paritytech/cumulus#1069 paritytech/substrate#10878 * fix: clippy runtime * fix: clippy clone * feat: add para runtime enum for client * ci: bump paritytech/ci-linux image * fix: clippy * refactor: benchmark cmd match * fix: peregrune runtime api
AurevoirXavier
added a commit
to darwinia-network/darwinia-parachain
that referenced
this pull request
May 30, 2022
ntn-x2
pushed a commit
to KILTprotocol/kilt-node
that referenced
this pull request
Jun 23, 2022
* chore: bump deps to Polkadot v0.9.19 * fix: LengthToFee https://github.com/paritytech/substrate/pull/10785/files * fix: remove u32_trait paritytech/substrate#10850 * fix: client paritytech/substrate#11164 paritytech/cumulus#963 paritytech/cumulus#1069 paritytech/substrate#10878 * fix: clippy runtime * fix: clippy clone * feat: add para runtime enum for client * ci: bump paritytech/ci-linux image * fix: clippy * refactor: benchmark cmd match * fix: peregrune runtime api (cherry picked from commit 6f2016b)
asiniscalchi
added a commit
to freeverseio/laos-ownership-node
that referenced
this pull request
Jul 7, 2023
* Initial commit * Clean code * Crib some basic QA stuff from recipes * Add parachain info * Update to Cumulus 96da14c * Update README.md Co-authored-by: Dan Forbes <[email protected]> * Update to Cumulus 35f60b1 * Tailor the README More Specifically to this Project (#5) * prune incorrect file headers * Update to Cumulus 4e7f138 * Add Polkadot JS types * Update to rococo-v1 * Update to CUmulus 4b69b8d * chore: update to use Rococov1 branch * fix: template pallet and tests to run * docs: compile polkadot with real-overseer feat * fix: update rustc version in gha * enable ocw (#13) * fix:match cumulus refactoring (#14) * fix enable ocw (#15) * Update Cargo.lock * Update to Cumulus 28f5ec2 (#18) * Update to work with latest version of Polkadot and Cumulus * more clear steps more clear steps * clarify era waiting period clarify era waiting period * Fix build * try again Co-authored-by: Dan Shields <[email protected]> Co-authored-by: Ricardo Rius <[email protected]> * Update template to cumulus@6ed9632 (#21) * compile to cumulus@6ed9632 * update docs * fix test * Update github actions * Update node/src/command.rs Co-authored-by: Ricardo Rius <[email protected]> * Update node/src/command.rs Co-authored-by: Ricardo Rius <[email protected]> * Update runtime/src/lib.rs Co-authored-by: Ricardo Rius <[email protected]> Co-authored-by: Ricardo Rius <[email protected]> Co-authored-by: Ricardo Rius <[email protected]> * Updating versions * update readme instructions, create stong indication of rococo testnet compatablility * update readme * Update README.md fix minor typo * Update rococo-v1 -> polkadot-v0.9.3 (#33) * update cargo.toml files to new use branches, remove explicit versions * use compact dependency notation, and only single quotes in cargo files * build deps * 0.9.2 deps. compact pallet deps. cargo update environmental * update CLI to cumulus (statemint reference) * add benchmarking (ref node template & statemint) , deps polish * update collator service * update runtime, in progress (not building) * runtime builds! * service builds * progress on service & chainspec * get commands and service working, aura chainspec * builds no errors! * readme updates. Westend in use, but era is too long for testing! * update to 0.9.3 (#38) * update to rococo-local relay chain use, readme polish * readme updates * readme on chain specs for live networks * update * readme updated with output. Working! Co-authored-by: Sam Elamin <[email protected]> * add editorconfig & rustfmt.toml, run `rustfmt && eclint fix` (#42) * add editorconfig * rustfmt * fix missing doc comment lint * CLI note * use substrate editorconfig, ran `eclint fix` * add rustfmt hard tabs * rustfmt edition Co-authored-by: Dan Shields <[email protected]> * Update to polkadot-v.0.9.6 (#46) * Expect para_id on load_spec for parachain (#48) * remove polkadot-cli features (#52) these are not needed for collators. * Updated to polkadot v0.9.7 (#50) * updated to v0.9.7 * Further enhancement - Further enhancement on the README. - Added a diagram on doing the sudo extrinsic. - In command.rs removing code that defaulting ParaId to 200 or 2000. Co-authored-by: Dan Shields <[email protected]> * rollback expect para_id (#57) * rollback expect para_id * Update node/src/command.rs * Update node/src/command.rs * Update node/src/command.rs Co-authored-by: Dan Shields <[email protected]> * Update to 0.9.8 (#58) * Add rustfmt, run `cargo +nightly fmt` (#61) * Update to `polkadot-v0.9.9` (#65) * update deps, no other modifications * fix deps * builds, no warnings * disable teleporting * remove relay root origin for XCM (#75) * Update to `polkadot-v0.9.10` (#73) * update cargo deps * update runtime, builds * cargo +nightly fmt * spelling * clear lock file, builds! * patch minor gripes from issues * rm extra constant * Update rust ci Co-authored-by: Ricardo Rius <[email protected]> * Fix XCM config * Update to `polkadot-0.9.11` (#80) * * replace all source with upstream 0.9.11 tag * tweaks for use with the template on devhub stand-alone * remove Cargo.lock, build from scratch * upstream rustfmt * .editorconfig update * update ignores * pub mod rpc * node lib.rs rm * port from upstream cumulus #690 * fmt * * comments for clarity * XcmExecuteFilter = Nothing * tweaks from review * Fix compilation errors * Alex review edits * more tweaks Co-authored-by: Keith Yeung <[email protected]> * Update to `polkadot-v0.9.12` (#82) * Port diff from upstream * rm various superfluous files, scripts * DisabledValidatorsThreshold removed * Remove RandomnessCollectiveFlip * Remove CLI para_id selection, default 1000 * Update template to `polkadot-v0.9.13` (#85) * Port changes from Cumulus template upstream * Update CI * update to polkadot-v0.9.15 (#90) * update to polkadot v0.9.15-1 (#91) * Direct pull from Cumulus upstream polkadot-v0.9.16 branch (#93) * Direct pull from Cumulus upstream polkadot-v0.9.16 branch * bump cargo.lock * Ds/0.9.16 (#94) * state version 0 * rm lock and rebuild post Polkadot v0.9.16 release (#96) * fix runtime-benchmarks compile * polkadot-v0.9.17 (#101) * update to polkadot-v0.9.17 deps * `wasmtime` features enabled * Update to `polkadot-v0.9.18` (#103) * RPC for relay chain exposed for colllator paritytech/cumulus#963 * Weights files added for runtime * SCALE version 3 used * `scale-info` version 2 used * Update to upstream polkadot-v0.9.19 (#108) - xcm configuramtion updates - tweaks on commands for benchmarks, try-runtime * update to polkadot-v0.9.20 upstream (#110) * update to polkadot-v0.9.22 (#111) * update to include backport in lockfile (#112) * update to polkadot-v0.9.23 (#113) * Update to polkadot-v0.9.24 (#115) * Update to polkadot-v0.9.25 (#121) * Update to polkadot-v0.9.26 (#122) * update ci - no fixed nightly , ubuntu-latest Co-authored-by: Dan Shields <[email protected]> * Auto-Update node-template from polkadot-v0.9.27 (#123) Co-authored-by: Dan Shields <[email protected]> * Auto-Update substrate-parachain-template from polkadot-v0.9.28 (#124) Co-authored-by: substrate-developer-hub <[email protected]> * update lock only 0.9.28 * clean lock * Auto-Update substrate-parachain-template from polkadot-v0.9.29 (#129) Co-authored-by: substrate-developer-hub <[email protected]> Co-authored-by: Dan Shields <[email protected]> * bump lock to get cargo c working (#132) * Update test-code.yml * Auto-Update substrate-parachain-template from polkadot-v0.9.30 (#133) Co-authored-by: substrate-developer-hub <[email protected]> * Auto-Update substrate-parachain-template from polkadot-v0.9.32 (#138) * Auto-Update substrate-parachain-template from polkadot-v0.9.32 * upstream PRs 1882 and 1860 included Co-authored-by: substrate-developer-hub <[email protected]> Co-authored-by: Dan Shields <[email protected]> * Auto-Update substrate-parachain-template from polkadot-v0.9.36 (#145) * Auto-Update substrate-parachain-template from polkadot-v0.9.36 * fix spacing * fix toml files Co-authored-by: substrate-developer-hub <[email protected]> Co-authored-by: Sacha Lansky <[email protected]> * Auto-Update substrate-parachain-template from polkadot-v0.9.37 (#149) * create CODEOWNERS (#151) * Auto-Update substrate-parachain-template from polkadot-v0.9.40 (#153) Co-authored-by: substrate-developer-hub <[email protected]> * Fix typo in `.gitignore` (#156) * Auto-Update substrate-parachain-template from polkadot-v0.9.42 (#158) Co-authored-by: substrate-developer-hub <[email protected]> * Release pipeline for multiarch binaries and an image (#159) * add release ci; add dependabot config; add Containerfile * fix binary name * fix user * add docs * don't cache the release * Update README.md Co-authored-by: Sacha Lansky <[email protected]> * Update README.md Co-authored-by: Sacha Lansky <[email protected]> * Update README.md Co-authored-by: Sacha Lansky <[email protected]> --------- Co-authored-by: Sacha Lansky <[email protected]> * Auto-Update substrate-parachain-template from polkadot-v0.9.43 (#174) Co-authored-by: substrate-developer-hub <[email protected]> * fixes derived from updating to v0.9.43 * remove unused files * remove pallet template files * add rococo relay chain spec as raw --------- Co-authored-by: Ricardo Rius <[email protected]> Co-authored-by: Joshy Orndorff <[email protected]> Co-authored-by: Ricardo Rius <[email protected]> Co-authored-by: Dan Forbes <[email protected]> Co-authored-by: Joshy Orndorff <[email protected]> Co-authored-by: bwty <[email protected]> Co-authored-by: junius zhou <[email protected]> Co-authored-by: stanly-johnson <[email protected]> Co-authored-by: Black3HDF <[email protected]> Co-authored-by: John Whitton <[email protected]> Co-authored-by: Dan Shields <[email protected]> Co-authored-by: al3mart <[email protected]> Co-authored-by: Dan Shields <[email protected]> Co-authored-by: David R <[email protected]> Co-authored-by: Sam Elamin <[email protected]> Co-authored-by: Dan Shields <[email protected]> Co-authored-by: Jimmy Chu <[email protected]> Co-authored-by: Keith Yeung <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]> Co-authored-by: Bruno Galvao <[email protected]> Co-authored-by: Paritytech CI <[email protected]> Co-authored-by: substrate-developer-hub <[email protected]> Co-authored-by: Sacha Lansky <[email protected]> Co-authored-by: xrelkd <[email protected]> Co-authored-by: Denis Pisarev <[email protected]> Co-authored-by: Alessandro Siniscalchi <[email protected]>
asiniscalchi
added a commit
to freeverseio/laos-ownership-node
that referenced
this pull request
Jul 11, 2023
* Initial commit * Clean code * Crib some basic QA stuff from recipes * Add parachain info * Update to Cumulus 96da14c * Update README.md Co-authored-by: Dan Forbes <[email protected]> * Update to Cumulus 35f60b1 * Tailor the README More Specifically to this Project (#5) * prune incorrect file headers * Update to Cumulus 4e7f138 * Add Polkadot JS types * Update to rococo-v1 * Update to CUmulus 4b69b8d * chore: update to use Rococov1 branch * fix: template pallet and tests to run * docs: compile polkadot with real-overseer feat * fix: update rustc version in gha * enable ocw (#13) * fix:match cumulus refactoring (#14) * fix enable ocw (#15) * Update Cargo.lock * Update to Cumulus 28f5ec2 (#18) * Update to work with latest version of Polkadot and Cumulus * more clear steps more clear steps * clarify era waiting period clarify era waiting period * Fix build * try again Co-authored-by: Dan Shields <[email protected]> Co-authored-by: Ricardo Rius <[email protected]> * Update template to cumulus@6ed9632 (#21) * compile to cumulus@6ed9632 * update docs * fix test * Update github actions * Update node/src/command.rs Co-authored-by: Ricardo Rius <[email protected]> * Update node/src/command.rs Co-authored-by: Ricardo Rius <[email protected]> * Update runtime/src/lib.rs Co-authored-by: Ricardo Rius <[email protected]> Co-authored-by: Ricardo Rius <[email protected]> Co-authored-by: Ricardo Rius <[email protected]> * Updating versions * update readme instructions, create stong indication of rococo testnet compatablility * update readme * Update README.md fix minor typo * Update rococo-v1 -> polkadot-v0.9.3 (#33) * update cargo.toml files to new use branches, remove explicit versions * use compact dependency notation, and only single quotes in cargo files * build deps * 0.9.2 deps. compact pallet deps. cargo update environmental * update CLI to cumulus (statemint reference) * add benchmarking (ref node template & statemint) , deps polish * update collator service * update runtime, in progress (not building) * runtime builds! * service builds * progress on service & chainspec * get commands and service working, aura chainspec * builds no errors! * readme updates. Westend in use, but era is too long for testing! * update to 0.9.3 (#38) * update to rococo-local relay chain use, readme polish * readme updates * readme on chain specs for live networks * update * readme updated with output. Working! Co-authored-by: Sam Elamin <[email protected]> * add editorconfig & rustfmt.toml, run `rustfmt && eclint fix` (#42) * add editorconfig * rustfmt * fix missing doc comment lint * CLI note * use substrate editorconfig, ran `eclint fix` * add rustfmt hard tabs * rustfmt edition Co-authored-by: Dan Shields <[email protected]> * Update to polkadot-v.0.9.6 (#46) * Expect para_id on load_spec for parachain (#48) * remove polkadot-cli features (#52) these are not needed for collators. * Updated to polkadot v0.9.7 (#50) * updated to v0.9.7 * Further enhancement - Further enhancement on the README. - Added a diagram on doing the sudo extrinsic. - In command.rs removing code that defaulting ParaId to 200 or 2000. Co-authored-by: Dan Shields <[email protected]> * rollback expect para_id (#57) * rollback expect para_id * Update node/src/command.rs * Update node/src/command.rs * Update node/src/command.rs Co-authored-by: Dan Shields <[email protected]> * Update to 0.9.8 (#58) * Add rustfmt, run `cargo +nightly fmt` (#61) * Update to `polkadot-v0.9.9` (#65) * update deps, no other modifications * fix deps * builds, no warnings * disable teleporting * remove relay root origin for XCM (#75) * Update to `polkadot-v0.9.10` (#73) * update cargo deps * update runtime, builds * cargo +nightly fmt * spelling * clear lock file, builds! * patch minor gripes from issues * rm extra constant * Update rust ci Co-authored-by: Ricardo Rius <[email protected]> * Fix XCM config * Update to `polkadot-0.9.11` (#80) * * replace all source with upstream 0.9.11 tag * tweaks for use with the template on devhub stand-alone * remove Cargo.lock, build from scratch * upstream rustfmt * .editorconfig update * update ignores * pub mod rpc * node lib.rs rm * port from upstream cumulus #690 * fmt * * comments for clarity * XcmExecuteFilter = Nothing * tweaks from review * Fix compilation errors * Alex review edits * more tweaks Co-authored-by: Keith Yeung <[email protected]> * Update to `polkadot-v0.9.12` (#82) * Port diff from upstream * rm various superfluous files, scripts * DisabledValidatorsThreshold removed * Remove RandomnessCollectiveFlip * Remove CLI para_id selection, default 1000 * Update template to `polkadot-v0.9.13` (#85) * Port changes from Cumulus template upstream * Update CI * update to polkadot-v0.9.15 (#90) * update to polkadot v0.9.15-1 (#91) * Direct pull from Cumulus upstream polkadot-v0.9.16 branch (#93) * Direct pull from Cumulus upstream polkadot-v0.9.16 branch * bump cargo.lock * Ds/0.9.16 (#94) * state version 0 * rm lock and rebuild post Polkadot v0.9.16 release (#96) * fix runtime-benchmarks compile * polkadot-v0.9.17 (#101) * update to polkadot-v0.9.17 deps * `wasmtime` features enabled * Update to `polkadot-v0.9.18` (#103) * RPC for relay chain exposed for colllator paritytech/cumulus#963 * Weights files added for runtime * SCALE version 3 used * `scale-info` version 2 used * Update to upstream polkadot-v0.9.19 (#108) - xcm configuramtion updates - tweaks on commands for benchmarks, try-runtime * update to polkadot-v0.9.20 upstream (#110) * update to polkadot-v0.9.22 (#111) * update to include backport in lockfile (#112) * update to polkadot-v0.9.23 (#113) * Update to polkadot-v0.9.24 (#115) * Update to polkadot-v0.9.25 (#121) * Update to polkadot-v0.9.26 (#122) * update ci - no fixed nightly , ubuntu-latest Co-authored-by: Dan Shields <[email protected]> * Auto-Update node-template from polkadot-v0.9.27 (#123) Co-authored-by: Dan Shields <[email protected]> * Auto-Update substrate-parachain-template from polkadot-v0.9.28 (#124) Co-authored-by: substrate-developer-hub <[email protected]> * update lock only 0.9.28 * clean lock * Auto-Update substrate-parachain-template from polkadot-v0.9.29 (#129) Co-authored-by: substrate-developer-hub <[email protected]> Co-authored-by: Dan Shields <[email protected]> * bump lock to get cargo c working (#132) * Update test-code.yml * Auto-Update substrate-parachain-template from polkadot-v0.9.30 (#133) Co-authored-by: substrate-developer-hub <[email protected]> * Auto-Update substrate-parachain-template from polkadot-v0.9.32 (#138) * Auto-Update substrate-parachain-template from polkadot-v0.9.32 * upstream PRs 1882 and 1860 included Co-authored-by: substrate-developer-hub <[email protected]> Co-authored-by: Dan Shields <[email protected]> * Auto-Update substrate-parachain-template from polkadot-v0.9.36 (#145) * Auto-Update substrate-parachain-template from polkadot-v0.9.36 * fix spacing * fix toml files Co-authored-by: substrate-developer-hub <[email protected]> Co-authored-by: Sacha Lansky <[email protected]> * Auto-Update substrate-parachain-template from polkadot-v0.9.37 (#149) * create CODEOWNERS (#151) * Auto-Update substrate-parachain-template from polkadot-v0.9.40 (#153) Co-authored-by: substrate-developer-hub <[email protected]> * Fix typo in `.gitignore` (#156) * Auto-Update substrate-parachain-template from polkadot-v0.9.42 (#158) Co-authored-by: substrate-developer-hub <[email protected]> * Release pipeline for multiarch binaries and an image (#159) * add release ci; add dependabot config; add Containerfile * fix binary name * fix user * add docs * don't cache the release * Update README.md Co-authored-by: Sacha Lansky <[email protected]> * Update README.md Co-authored-by: Sacha Lansky <[email protected]> * Update README.md Co-authored-by: Sacha Lansky <[email protected]> --------- Co-authored-by: Sacha Lansky <[email protected]> * Auto-Update substrate-parachain-template from polkadot-v0.9.43 (#174) Co-authored-by: substrate-developer-hub <[email protected]> * integrate evm and ethereum pallets * runtime api added; wip netapi rpc * frontier extrinsic missing * net api * fixes derived from updating to v0.9.43 * remove unused files * remove pallet template files * add rococo relay chain spec as raw * Working evm rpc * try fix clippy * File clippy * Fix more clippy errors * remove unnecessary delimiter * Redundant clone * Fix compile issue --------- Co-authored-by: Ricardo Rius <[email protected]> Co-authored-by: Joshy Orndorff <[email protected]> Co-authored-by: Ricardo Rius <[email protected]> Co-authored-by: Dan Forbes <[email protected]> Co-authored-by: Joshy Orndorff <[email protected]> Co-authored-by: bwty <[email protected]> Co-authored-by: junius zhou <[email protected]> Co-authored-by: stanly-johnson <[email protected]> Co-authored-by: Black3HDF <[email protected]> Co-authored-by: John Whitton <[email protected]> Co-authored-by: Dan Shields <[email protected]> Co-authored-by: al3mart <[email protected]> Co-authored-by: Dan Shields <[email protected]> Co-authored-by: David R <[email protected]> Co-authored-by: Sam Elamin <[email protected]> Co-authored-by: Dan Shields <[email protected]> Co-authored-by: Jimmy Chu <[email protected]> Co-authored-by: Keith Yeung <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]> Co-authored-by: Bruno Galvao <[email protected]> Co-authored-by: Paritytech CI <[email protected]> Co-authored-by: substrate-developer-hub <[email protected]> Co-authored-by: Sacha Lansky <[email protected]> Co-authored-by: xrelkd <[email protected]> Co-authored-by: Denis Pisarev <[email protected]> Co-authored-by: magecnion <[email protected]> Co-authored-by: Dastan Samatov <[email protected]>
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In this PR I continue the work towards #545. After this is merged, we support running a parachain full node via RPC. Running a collator is currently not supported.
This PR
RelayChainInterface
Trait that fetches relay chain info from a full node rpc api via websocketsrelay-chain-rpc-url
to specify which relay chain node to talk to. Can not be used together with the relay-chain options that usually follow after--
I would consider this an MVP, there are some things that could be improved in the future, like making subscriptions more fault tolerant and caching of some local blocks that were already seen.