mirror of
https://github.com/datahaven-xyz/datahaven
synced 2026-05-24 09:50:01 +00:00
## Add StorageHub nodes to CLI This PR adds StorageHub node infrastructure to the CLI and fixes CLI flag handling and improves the CLI logic a bit. ### Fix: CLI safeguards - Prevents contract deployment and validator operations when `--ndc` flag is used - Skips Kurtosis service display in summary when `--nlk` flag is used ### Feat: Dockerized Storage Hub Nodes - Adds 5 Docker containers: PostgreSQL, MSP, BSP, Indexer, and Fisherman nodes - New CLI flags: `--storagehub` `--no-storagehub` to control StorageHub nodes launch - Automatic provider funding and registration (Charleth for MSP and Dorothy for BSP) - Exposes nodes on ports 9945-9948 for local development **TODO** - [x] MSP & BSP associated pre-funded account. - [x] Call `forceMspSignUp` and `forceBspSignUp` extrinsics --------- Co-authored-by: Steve Degosserie <723552+stiiifff@users.noreply.github.com>
42 lines
1.1 KiB
TypeScript
42 lines
1.1 KiB
TypeScript
export const ZERO_HASH = "0x0000000000000000000000000000000000000000000000000000000000000000";
|
|
|
|
/**
|
|
* The name of the Docker network that DataHaven nodes and
|
|
* Snowbridge relayers will be connected to, in a local deployment.
|
|
*/
|
|
|
|
export const DOCKER_NETWORK_NAME = "datahaven-net";
|
|
|
|
/**
|
|
* The base services that are always launched when Kurtosis is used.
|
|
*/
|
|
export const KURTOSIS_BASE_SERVICES = [
|
|
"cl-1-lodestar-reth",
|
|
"cl-2-lodestar-reth",
|
|
"el-1-reth-lodestar",
|
|
"el-2-reth-lodestar",
|
|
"dora"
|
|
];
|
|
|
|
export const COMPONENTS = {
|
|
datahaven: {
|
|
imageName: "datahavenxyz/datahaven",
|
|
componentName: "Datahaven Network",
|
|
optionName: "datahaven"
|
|
},
|
|
snowbridge: {
|
|
imageName: "datahavenxyz/snowbridge-relay",
|
|
componentName: "Snowbridge Relayers",
|
|
optionName: "relayer"
|
|
},
|
|
storagehub: {
|
|
imageName: "storagehub",
|
|
componentName: "StorageHub Components",
|
|
optionName: "datahaven" // Use datahaven option since they're part of the same network
|
|
}
|
|
} as const;
|
|
|
|
/**
|
|
* Minimum required Bun version
|
|
*/
|
|
export const MIN_BUN_VERSION = { major: 1, minor: 2 };
|