Skip to content

Commit a58262a

Browse files
Introduce docs for paseo (#176)
Co-authored-by: David Salami <wizdave97@gmail.com>
1 parent b66f96b commit a58262a

File tree

10 files changed

+42
-113584
lines changed

10 files changed

+42
-113584
lines changed

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/pages/network/node.mdx

+28-3
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ docker run polytopelabs/hyperbridge:latest --chain={messier|gargantua|nexus}
2424
You can install a prebuilt binary for the hyperbridge node with the following bash script
2525

2626
```bash
27-
wget -q --show-progress https://github.com/polytope-labs/hyperbridge/releases/download/v0.3.5/hyperbridge-x86_64-unknown-linux-gnu.tar.gz
27+
wget -q --show-progress https://github.com/polytope-labs/hyperbridge/releases/download/v0.4.1/hyperbridge-x86_64-unknown-linux-gnu.tar.gz
2828
tar -xvzf hyperbridge-x86_64-unknown-linux-gnu.tar.gz
2929
# copy to $PATH
3030
cp hyperbridge-x86_64-unknown-linux-gnu/hyperbridge $HOME/.local/bin/
@@ -91,7 +91,7 @@ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
9191
Download a local copy of the repo and checkout the latest release tag
9292

9393
```bash
94-
export LATEST_TAG=v0.4.0
94+
export LATEST_TAG=v0.4.1
9595
git clone https://github.com/polytope-labs/hyperbridge.git
9696
cd ./hyperbridge
9797
git checkout ${LATEST_TAG}
@@ -135,7 +135,32 @@ mv target/release/hyperbridge $HOME/.local/bin/
135135

136136
## Running the node (Rococo)
137137

138-
Hyperbridge is available on the rococo testnet, with a chainId of `gargantua` and paraId of `4374`. You can sync the rococo relay chain in a few hours by appending a relay chain argument `--sync=fast-unsafe`. This tells the relay chain node to simply download it's blocks and not execute them. It'll also download the full latest state.
138+
Hyperbridge is available on the rococo testnet, with a chainId of `gargantua-rococo` and paraId of `4374`. You can sync the rococo relay chain in a few hours by appending a relay chain argument `--sync=fast-unsafe`. This tells the relay chain node to simply download it's blocks and not execute them. It'll also download the full latest state.
139+
This is fine because the rococo testnet has no economic value.
140+
141+
```bash
142+
export PUBLIC_IP_ADDRESS=<your-node-public-ip-address>
143+
hyperbridge \
144+
--base-path=$HOME/.hyperbridge \
145+
--pruning=archive \
146+
--name="Your node name here" \
147+
--rpc-cors=all \
148+
--rpc-port=9944 \
149+
--unsafe-rpc-external \
150+
--rpc-methods=unsafe \
151+
--chain=gargantua-rococo \
152+
--no-mdns \
153+
--listen-addr=/ip4/0.0.0.0/tcp/30333 \
154+
--listen-addr=/ip6/::/tcp/30333 \
155+
--public-addr=/ip4/$PUBLIC_IP_ADDRESS/tcp/30333 \
156+
--out-peers=32 \
157+
-- \
158+
--sync=fast-unsafe
159+
```
160+
161+
## Running the node (Paseo)
162+
163+
Hyperbridge is available on the Paseo testnet, with a chainId of `gargantua` and paraId of `4009`. You can sync the paseo relay chain in a few minutes by appending a relay chain argument `--sync=fast-unsafe`. This tells the relay chain node to simply download it's blocks and not execute them. It'll also download the full latest state.
139164
This is fine because the rococo testnet has no economic value.
140165

141166
```bash

docs/pages/network/relayer.mdx

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ The configuration file is a toml file that at the moment, that expects the follo
100100
```toml
101101
# Hyperbridge config, required
102102
[hyperbridge]
103-
# Hyperbridge chain spec, either one of Dev, Gargantua, Messier or Nexus
103+
# Hyperbridge chain spec, either one of Dev, Gargantua, Gargantua-Rococo, Messier or Nexus
104104
chain = "Gargantua" # testnet
105105
# Hyperbridge node ws rpc endpoint.
106106
rpc_ws = "ws://127.0.0.1:9944" # example endpoint

modules/consensus/beefy/prover/Cargo.toml

-5
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,3 @@ serde_json = { version = "1.0.74" }
3434
hex = { version = "0.4.3" }
3535
beefy-verifier-primitives = { path = "../primitives" }
3636

37-
[features]
38-
default = ["rococo"]
39-
rococo = []
40-
rococo-local = []
41-
paseo = []

modules/consensus/beefy/prover/src/lib.rs

+8-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ impl<R: Config, P: Config> Prover<R, P> {
7272

7373
// Encoding and decoding to fix dependency version conflicts
7474
let next_authority_set = {
75-
let key = runtime::storage().mmr_leaf().beefy_next_authorities();
75+
let key = runtime::storage().beefy_mmr_leaf().beefy_next_authorities();
7676
let next_authority_set = self
7777
.relay
7878
.storage()
@@ -86,7 +86,13 @@ impl<R: Config, P: Config> Prover<R, P> {
8686
};
8787

8888
let current_authority_set = {
89-
let key = runtime::storage().mmr_leaf().beefy_authorities();
89+
let key: subxt::storage::Address<
90+
subxt::utils::Static<subxt::utils::Encoded>,
91+
runtime::runtime_types::sp_consensus_beefy::mmr::BeefyAuthoritySet<H256>,
92+
subxt::storage::address::Yes,
93+
subxt::storage::address::Yes,
94+
(),
95+
> = runtime::storage().beefy_mmr_leaf().beefy_authorities();
9096
let authority_set = self
9197
.relay
9298
.storage()
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,2 @@
1-
#[cfg(feature = "rococo-local")]
2-
mod rococo_local;
3-
#[cfg(feature = "rococo-local")]
4-
pub use rococo_local::api::*;
5-
6-
#[cfg(feature = "rococo")]
7-
mod rococo;
8-
#[cfg(feature = "rococo")]
9-
pub use rococo::api::*;
10-
11-
#[cfg(feature = "paseo")]
121
mod paseo;
13-
#[cfg(feature = "paseo")]
142
pub use paseo::api::*;

modules/consensus/beefy/prover/src/runtime/paseo.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#[allow(dead_code, unused_imports, non_camel_case_types)]
1+
#[allow(dead_code, missing_docs, unused_imports, non_camel_case_types)]
22
#[allow(clippy::all)]
33
#[allow(rustdoc::broken_intra_doc_links)]
44
pub mod api {
@@ -1297,7 +1297,7 @@ pub mod api {
12971297
#[doc = " Returns the state of parachain backing for a given para."]
12981298
pub fn para_backing_state(
12991299
&self,
1300-
_: runtime_types::polkadot_parachain_primitives::primitives::Id,
1300+
id: runtime_types::polkadot_parachain_primitives::primitives::Id,
13011301
) -> ::subxt::runtime_api::Payload<
13021302
types::ParaBackingState,
13031303
::core::option::Option<
@@ -1671,7 +1671,7 @@ pub mod api {
16711671
#[decode_as_type(crate_path = ":: subxt :: ext :: scale_decode")]
16721672
#[encode_as_type(crate_path = ":: subxt :: ext :: scale_encode")]
16731673
pub struct ParaBackingState {
1674-
pub _: runtime_types::polkadot_parachain_primitives::primitives::Id,
1674+
pub id: runtime_types::polkadot_parachain_primitives::primitives::Id,
16751675
}
16761676
#[derive(
16771677
:: subxt :: ext :: codec :: Decode,

0 commit comments

Comments
 (0)