Skip to content

Commit

Permalink
add bootnodes
Browse files Browse the repository at this point in the history
  • Loading branch information
vgantchev committed Sep 4, 2024
1 parent cf4db07 commit 6887a46
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 10 deletions.
21 changes: 19 additions & 2 deletions node/res/paseo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,25 @@
"name": "Basilisk Testnet (Paseo)",
"id": "basilisk_paseo",
"chainType": "Live",
"bootNodes": [],
"telemetryEndpoints": null,
"bootNodes": [
"/ip4/51.89.21.114/tcp/30333/p2p/12D3KooWPnPxuhneTSsRbLPtvgEHzQrBPGgU8AFxdPiHfopZZNm4",
"/ip4/198.244.167.50/tcp/30333/p2p/12D3KooWCuE1G21vynHf9vnjhvHR2obsgLJCj6GvrEGcyDTmz1bW",
"/ip4/51.79.72.84/tcp/30333/p2p/12D3KooWSdfRNt5ynxwUt72vPSh9gni3BroERBbUQhhni3pFensV",
"/ip4/65.108.44.252/tcp/30333/p2p/12D3KooWPr6PPDFpnY3A4mVE1nNfxQcLAzM98g9tVqNbv3ErZoCV",
"/ip4/65.21.34.254/tcp/30333/p2p/12D3KooWN39qskQYQkXVHnAdpCbrRQDQTomUTVv9WjnWCagZroY4",
"/ip4/65.109.0.92/tcp/30333/p2p/12D3KooWBwKRdSzKapGTTTuBvmLxt63x9Hz1GDzeP71kwygUB1VE",
"/ip4/95.217.218.67/tcp/30333/p2p/12D3KooWB5FiyWu8NjyKqy3td1tvaVsALdkMvNEBjQduf8zSuHHM"
],
"telemetryEndpoints": [
[
"/dns/telemetry.polkadot.io/tcp/443/x-parity-wss/%2Fsubmit%2F",
0
],
[
"/dns/telemetry.hydradx.io/tcp/9000/x-parity-wss/%2Fsubmit%2F",
0
]
],
"protocolId": "bsx",
"properties": {
"tokenDecimals": 12,
Expand Down
21 changes: 19 additions & 2 deletions node/res/rococo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,25 @@
"name": "Basilisk Testnet (Rococo)",
"id": "basilisk_rococo",
"chainType": "Live",
"bootNodes": [],
"telemetryEndpoints": null,
"bootNodes": [
"/ip4/51.89.21.114/tcp/30333/p2p/12D3KooWPnPxuhneTSsRbLPtvgEHzQrBPGgU8AFxdPiHfopZZNm4",
"/ip4/198.244.167.50/tcp/30333/p2p/12D3KooWCuE1G21vynHf9vnjhvHR2obsgLJCj6GvrEGcyDTmz1bW",
"/ip4/51.79.72.84/tcp/30333/p2p/12D3KooWSdfRNt5ynxwUt72vPSh9gni3BroERBbUQhhni3pFensV",
"/ip4/65.108.44.252/tcp/30333/p2p/12D3KooWPr6PPDFpnY3A4mVE1nNfxQcLAzM98g9tVqNbv3ErZoCV",
"/ip4/65.21.34.254/tcp/30333/p2p/12D3KooWN39qskQYQkXVHnAdpCbrRQDQTomUTVv9WjnWCagZroY4",
"/ip4/65.109.0.92/tcp/30333/p2p/12D3KooWBwKRdSzKapGTTTuBvmLxt63x9Hz1GDzeP71kwygUB1VE",
"/ip4/95.217.218.67/tcp/30333/p2p/12D3KooWB5FiyWu8NjyKqy3td1tvaVsALdkMvNEBjQduf8zSuHHM"
],
"telemetryEndpoints": [
[
"/dns/telemetry.polkadot.io/tcp/443/x-parity-wss/%2Fsubmit%2F",
0
],
[
"/dns/telemetry.hydradx.io/tcp/9000/x-parity-wss/%2Fsubmit%2F",
0
]
],
"protocolId": "bsx",
"properties": {
"tokenDecimals": 12,
Expand Down
2 changes: 1 addition & 1 deletion node/src/chain_spec/local.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

use super::*;

const INITIAL_BALANCE: u128 = 10_000;
const INITIAL_BALANCE: u128 = 1_000_000_000 * UNITS;
const INITIAL_TOKEN_BALANCE: Balance = 1_000 * UNITS;

pub fn parachain_config() -> Result<ChainSpec, String> {
Expand Down
2 changes: 1 addition & 1 deletion node/src/chain_spec/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ use primitives::{
};
use sc_chain_spec::{ChainSpecExtension, ChainSpecGroup};
use sc_service::ChainType;
use sc_telemetry::TelemetryEndpoints;
use serde::{Deserialize, Serialize};
use serde_json::map::Map;
use sp_core::{crypto::UncheckedInto, sr25519, Pair, Public};
use sp_runtime::traits::{IdentifyAccount, Verify};

/// The extensions for the [`ChainSpec`].
#[derive(Debug, Clone, Eq, PartialEq, Serialize, Deserialize, ChainSpecGroup, ChainSpecExtension)]
#[serde(deny_unknown_fields)]
Expand Down
38 changes: 36 additions & 2 deletions node/src/chain_spec/paseo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ pub fn parachain_config() -> Result<ChainSpec, String> {
}

pub fn _parachain_config_paseo() -> Result<ChainSpec, String> {
const INITIAL_BALANCE: u128 = 10_000;
const INITIAL_BALANCE: u128 = 1_000_000_000 * UNITS;

const TELEMETRY_URLS: [&str; 2] = [
"wss://telemetry.polkadot.io/submit/",
"wss://telemetry.hydradx.io:9000/submit/",
];

let wasm_binary = WASM_BINARY.ok_or("Development wasm binary not available".to_string())?;

Expand Down Expand Up @@ -92,7 +97,36 @@ pub fn _parachain_config_paseo() -> Result<ChainSpec, String> {
.with_name("Basilisk Testnet (Paseo)")
.with_id("basilisk_paseo")
.with_chain_type(ChainType::Live)
.with_boot_nodes(vec![])
.with_boot_nodes(vec![
"/ip4/51.89.21.114/tcp/30333/p2p/12D3KooWPnPxuhneTSsRbLPtvgEHzQrBPGgU8AFxdPiHfopZZNm4"
.parse()
.unwrap(),
"/ip4/198.244.167.50/tcp/30333/p2p/12D3KooWCuE1G21vynHf9vnjhvHR2obsgLJCj6GvrEGcyDTmz1bW"
.parse()
.unwrap(),
"/ip4/51.79.72.84/tcp/30333/p2p/12D3KooWSdfRNt5ynxwUt72vPSh9gni3BroERBbUQhhni3pFensV"
.parse()
.unwrap(),
"/ip4/65.108.44.252/tcp/30333/p2p/12D3KooWPr6PPDFpnY3A4mVE1nNfxQcLAzM98g9tVqNbv3ErZoCV"
.parse()
.unwrap(),
"/ip4/65.21.34.254/tcp/30333/p2p/12D3KooWN39qskQYQkXVHnAdpCbrRQDQTomUTVv9WjnWCagZroY4"
.parse()
.unwrap(),
"/ip4/65.109.0.92/tcp/30333/p2p/12D3KooWBwKRdSzKapGTTTuBvmLxt63x9Hz1GDzeP71kwygUB1VE"
.parse()
.unwrap(),
"/ip4/95.217.218.67/tcp/30333/p2p/12D3KooWB5FiyWu8NjyKqy3td1tvaVsALdkMvNEBjQduf8zSuHHM"
.parse()
.unwrap(),
])
.with_telemetry_endpoints(
TelemetryEndpoints::new(vec![
(TELEMETRY_URLS[0].to_string(), 0),
(TELEMETRY_URLS[1].to_string(), 0),
])
.expect("Telemetry url is valid"),
)
.with_properties(properties)
.with_protocol_id(PROTOCOL_ID)
.with_genesis_config_patch(genesis_json)
Expand Down
37 changes: 35 additions & 2 deletions node/src/chain_spec/rococo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ pub fn parachain_config() -> Result<ChainSpec, String> {
}

pub fn _parachain_config_rococo() -> Result<ChainSpec, String> {
const INITIAL_BALANCE: u128 = 10_000;
const INITIAL_BALANCE: u128 = 1_000_000_000 * UNITS;
const TELEMETRY_URLS: [&str; 2] = [
"wss://telemetry.polkadot.io/submit/",
"wss://telemetry.hydradx.io:9000/submit/",
];
let wasm_binary = WASM_BINARY.ok_or("Development wasm binary not available".to_string())?;

let mut properties = Map::new();
Expand Down Expand Up @@ -91,7 +95,36 @@ pub fn _parachain_config_rococo() -> Result<ChainSpec, String> {
.with_name("Basilisk Testnet (Rococo)")
.with_id("basilisk_rococo")
.with_chain_type(ChainType::Live)
.with_boot_nodes(vec![])
.with_boot_nodes(vec![
"/ip4/51.89.21.114/tcp/30333/p2p/12D3KooWPnPxuhneTSsRbLPtvgEHzQrBPGgU8AFxdPiHfopZZNm4"
.parse()
.unwrap(),
"/ip4/198.244.167.50/tcp/30333/p2p/12D3KooWCuE1G21vynHf9vnjhvHR2obsgLJCj6GvrEGcyDTmz1bW"
.parse()
.unwrap(),
"/ip4/51.79.72.84/tcp/30333/p2p/12D3KooWSdfRNt5ynxwUt72vPSh9gni3BroERBbUQhhni3pFensV"
.parse()
.unwrap(),
"/ip4/65.108.44.252/tcp/30333/p2p/12D3KooWPr6PPDFpnY3A4mVE1nNfxQcLAzM98g9tVqNbv3ErZoCV"
.parse()
.unwrap(),
"/ip4/65.21.34.254/tcp/30333/p2p/12D3KooWN39qskQYQkXVHnAdpCbrRQDQTomUTVv9WjnWCagZroY4"
.parse()
.unwrap(),
"/ip4/65.109.0.92/tcp/30333/p2p/12D3KooWBwKRdSzKapGTTTuBvmLxt63x9Hz1GDzeP71kwygUB1VE"
.parse()
.unwrap(),
"/ip4/95.217.218.67/tcp/30333/p2p/12D3KooWB5FiyWu8NjyKqy3td1tvaVsALdkMvNEBjQduf8zSuHHM"
.parse()
.unwrap(),
])
.with_telemetry_endpoints(
TelemetryEndpoints::new(vec![
(TELEMETRY_URLS[0].to_string(), 0),
(TELEMETRY_URLS[1].to_string(), 0),
])
.expect("Telemetry url is valid"),
)
.with_properties(properties)
.with_protocol_id(PROTOCOL_ID)
.with_genesis_config_patch(genesis_json)
Expand Down

0 comments on commit 6887a46

Please sign in to comment.