mirror of
https://github.com/waku-org/js-waku.git
synced 2025-02-22 17:18:15 +00:00
* feat: deprecate named sharding & protocols adhere simplify network config type, all protocols use pubsub topic internally * chore: update tests * tests: rm application info * chore: use static sharding and auto sharding terminologies * chore: update docs for network config * chore: update interfaces * tests: update tests error message * chore: remove `ShardingParams` type and fix test
17 lines
388 B
TypeScript
17 lines
388 B
TypeScript
import type { ShardInfo } from "./sharding";
|
|
|
|
/**
|
|
* The default cluster ID for The Waku Network
|
|
*/
|
|
export const DEFAULT_CLUSTER_ID = 1;
|
|
|
|
/**
|
|
* DefaultShardInfo is default configuration for The Waku Network.
|
|
*/
|
|
export const DefaultShardInfo: ShardInfo = {
|
|
clusterId: DEFAULT_CLUSTER_ID,
|
|
shards: [0, 1, 2, 3, 4, 5, 6, 7, 8]
|
|
};
|
|
|
|
export const DefaultNetworkConfig = DefaultShardInfo;
|