mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-03 06:13:08 +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
13 lines
242 B
TypeScript
13 lines
242 B
TypeScript
export type ShardInfo = {
|
|
clusterId: number;
|
|
shards: number[];
|
|
};
|
|
|
|
export type ContentTopicInfo = {
|
|
clusterId?: number;
|
|
contentTopics: string[];
|
|
};
|
|
|
|
export type StaticSharding = ShardInfo;
|
|
export type AutoSharding = ContentTopicInfo;
|