status-lib/status/statusgo_backend_new/settings.nim

10 lines
356 B
Nim
Raw Normal View History

import json
import ./core, ./response_type
export response_type
proc getSettings*(): RpcResponse[JsonNode] {.raises: [Exception].} =
return core.callPrivateRPC("settings_getSettings")
proc saveSettings*(key: string, value: string | JsonNode | bool | int) {.raises: [Exception].} =
discard core.callPrivateRPC("settings_saveSetting", %* [key, value])