mirror of
https://github.com/logos-messaging/logos-delivery-js.git
synced 2026-06-09 16:19:46 +00:00
* feat: introduce createDecoder and createEncoder on IWaku * add tests, refactor * fix type
22 lines
483 B
TypeScript
22 lines
483 B
TypeScript
import type { ShardInfo } from "./sharding";
|
|
|
|
/**
|
|
* The default cluster ID for The Waku Network
|
|
*/
|
|
export const DEFAULT_CLUSTER_ID = 1;
|
|
|
|
/**
|
|
* The default number of shards under a cluster.
|
|
*/
|
|
export const DEFAULT_NUM_SHARDS = 8;
|
|
|
|
/**
|
|
* 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;
|