mirror of
https://github.com/status-im/status-lib.git
synced 2025-01-22 18:29:45 +00:00
12 lines
360 B
Nim
12 lines
360 B
Nim
import json
|
|
import core, utils
|
|
import response_type
|
|
|
|
export response_type
|
|
|
|
proc getJoinedComunities*(): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
let payload = %* []
|
|
result = callPrivateRPC("joinedCommunities".prefix, payload)
|
|
|
|
proc getAllCommunities*(): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
result = callPrivateRPC("communities".prefix) |