Sasha 3038c48917
feat: introduce createDecoder and createEncoder on IWaku (#2352)
* feat: introduce createDecoder and createEncoder on IWaku

* add tests, refactor

* fix type
2025-04-14 10:46:47 +02:00

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;