status-lib/status/node.nim

17 lines
382 B
Nim
Raw Normal View History

import statusgo_backend/core as status
2021-09-08 18:05:39 +00:00
import ../eventemitter
type NodeModel* = ref object
events*: EventEmitter
proc newNodeModel*(): NodeModel =
result = NodeModel()
result.events = createEventEmitter()
proc delete*(self: NodeModel) =
discard
proc sendRPCMessageRaw*(self: NodeModel, msg: string): string =
echo "sending RPC message"
status.callPrivateRPCRaw(msg)