2021-09-11 21:50:36 +00:00
|
|
|
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)
|