mirror of
https://github.com/logos-messaging/logos-delivery.git
synced 2026-07-26 06:23:14 +00:00
Move the discovery/lightpush/store/ping/debug/health/topics operations into logos_delivery/waku/api/ and relocate the waku event definitions under waku/api/events/. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
25 lines
584 B
Nim
25 lines
584 B
Nim
## Waku layer API — debug / info getters (all synchronous).
|
|
{.push raises: [].}
|
|
|
|
import metrics
|
|
import eth/p2p/discoveryv5/enr
|
|
|
|
import logos_delivery/waku/waku
|
|
import logos_delivery/waku/node/waku_node
|
|
|
|
proc version*(self: Waku): string =
|
|
return WakuNodeVersionString
|
|
|
|
proc listenAddresses*(self: Waku): seq[string] =
|
|
return self.node.info().listenAddresses
|
|
|
|
proc myEnr*(self: Waku): string =
|
|
return self.node.enr.toURI()
|
|
|
|
proc myPeerId*(self: Waku): string =
|
|
return $self.node.peerId()
|
|
|
|
proc metrics*(self: Waku): string =
|
|
{.gcsafe.}:
|
|
return defaultRegistry.toText()
|