OpChan/src/lib/waku/constants.ts

25 lines
686 B
TypeScript
Raw Normal View History

2025-04-16 14:45:27 +05:30
import { NetworkConfig, ShardInfo } from "@waku/sdk";
import { MessageType } from "./types";
/**
* Content topics for different message types
*/
export const CONTENT_TOPICS: Record<MessageType, string> = {
[MessageType.CELL]: '/opchan/1/cell/proto',
[MessageType.POST]: '/opchan/1/post/proto',
[MessageType.COMMENT]: '/opchan/1/comment/proto',
[MessageType.VOTE]: '/opchan/1/vote/proto'
};
2025-04-16 14:45:27 +05:30
export const NETWORK_CONFIG: NetworkConfig = {
contentTopics: Object.values(CONTENT_TOPICS),
shards: [1],
clusterId: 42
}
/**
* Bootstrap nodes for the Waku network
* These are public Waku nodes that our node will connect to on startup
*/
export const BOOTSTRAP_NODES = [
2025-04-16 14:45:27 +05:30
];