1
0
mirror of https://github.com/waku-org/nwaku.git synced 2025-01-20 03:39:47 +00:00
2024-03-16 00:08:47 +01:00

13 lines
384 B
Nim

proc getContentTopic*(
applicationName: string,
applicationVersion: int,
contentTopicName: string,
encoding: string,
): string =
return "/$applicationName/$applicationVersion/$contentTopicName/$enconding"
const
CURRENT* = getContentTopic("application", 1, "content-topic", "proto")
TESTNET* = getContentTopic("toychat", 2, "huilong", "proto")
PLAIN* = "test"