mirror of
https://github.com/status-im/status-lib.git
synced 2025-02-18 07:16:40 +00:00
- all unused/unnecessary files remove - `statusgo_backend_new` content promoted to main content - only necessary submodules for `status-lib` are kept
12 lines
486 B
Nim
12 lines
486 B
Nim
import json
|
|
|
|
import ./core, ./response_type
|
|
|
|
proc getNetworks*(payload: JsonNode): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
core.callPrivateRPC("wallet_getEthereumChains", payload)
|
|
|
|
proc upsertNetwork*(payload: JsonNode): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
core.callPrivateRPC("wallet_addEthereumChain", payload)
|
|
|
|
proc deleteNetwork*(payload: JsonNode): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
core.callPrivateRPC("wallet_deleteEthereumChain", payload) |