mirror of
https://github.com/logos-messaging/logos-messaging-js.git
synced 2026-01-14 14:03:11 +00:00
* feat: create @waku/run package for local dev env * chore: add @waku/run to release please config * feat: test @waku/run with playwright * fix: don't run waku/run tests in CI * fix: cache images so docker-compose can work offline * feat: set nodekey and staticnode flags for each nwaku node * fix: use constants for node ids * chore: set directories for running via npx * fix: remove .env, support env vars for nwaku ports * fix: use separate db (same instance) for each node * feat: add command to test dev env * chore: use package version in container name * fix: replace hardcoded WS/REST ports with constants/env vars * chore: clean up README * fix: refactor config printing into own function * fix: add run package to release please manifest * fix: defer to root folder gitignore/cspell * fix: update node version and remove tsx * fix: remove browser tests and express dep * fix: replace magic values with constants * fix: move to root .gitignore * fix: move cspell to root
41 lines
1.4 KiB
TypeScript
41 lines
1.4 KiB
TypeScript
/**
|
|
* Static configuration constants for the local Waku development environment.
|
|
* These values are derived from the --nodekey configuration in docker-compose.yml
|
|
* cspell:ignore nodekey
|
|
*/
|
|
|
|
// Node private keys (from docker-compose.yml --nodekey)
|
|
export const NODE1_PRIVATE_KEY =
|
|
"e419c3cf4f09ac3babdf61856e6faa0e0c6a7d97674d5401a0114616549c7632";
|
|
export const NODE2_PRIVATE_KEY =
|
|
"50632ab0efd313bfb4aa842de716f03dacd181c863770abd145e3409290fdaa7";
|
|
|
|
// Derived peer IDs (libp2p identities from the private keys)
|
|
export const NODE1_PEER_ID =
|
|
"16Uiu2HAmF6oAsd23RMAnZb3NJgxXrExxBTPMdEoih232iAZkviU2";
|
|
export const NODE2_PEER_ID =
|
|
"16Uiu2HAm5aZU47YkiUoARqivbCXwuFPzFFXXiURAorySqAQbL6EQ";
|
|
|
|
// Static IP addresses (from docker-compose.yml network configuration)
|
|
export const NODE1_IP = "172.20.0.10";
|
|
export const NODE2_IP = "172.20.0.11";
|
|
|
|
// Default WebSocket ports for local nodes
|
|
export const DEFAULT_NODE1_WS_PORT = "60000";
|
|
export const DEFAULT_NODE2_WS_PORT = "60001";
|
|
|
|
// Default REST API ports for local nodes
|
|
export const DEFAULT_NODE1_REST_PORT = "8646";
|
|
export const DEFAULT_NODE2_REST_PORT = "8647";
|
|
|
|
// Docker images
|
|
export const DEFAULT_NWAKU_IMAGE = "wakuorg/nwaku:v0.36.0";
|
|
export const POSTGRES_IMAGE = "postgres:15.4-alpine3.18";
|
|
|
|
// Timing configuration
|
|
export const STARTUP_WAIT_MS = 20000; // Time to wait for nodes to start
|
|
|
|
// Network configuration
|
|
export const DEFAULT_CLUSTER_ID = "0";
|
|
export const DEFAULT_NUM_SHARDS_IN_CLUSTER = 8;
|