feat(core/libstatus): expose status-go `sendTransaction` binding

This commit is contained in:
Pascal Precht 2020-05-19 17:00:26 +02:00 committed by Iuri Matias
parent 7149f50778
commit a09f694d23
2 changed files with 5 additions and 0 deletions

View File

@ -9,3 +9,6 @@ proc callRPC*(inputJSON: string): string =
proc callPrivateRPC*(inputJSON: string): string = proc callPrivateRPC*(inputJSON: string): string =
return $libstatus.callPrivateRPC(inputJSON) return $libstatus.callPrivateRPC(inputJSON)
proc sendTransaction*(inputJSON: string, password: string): string =
return $libstatus.sendTransaction(inputJSON, password)

View File

@ -19,3 +19,5 @@ proc callPrivateRPC*(inputJSON: cstring): cstring {.importc: "CallPrivateRPC".}
proc addPeer*(peer: cstring): cstring {.importc: "AddPeer".} proc addPeer*(peer: cstring): cstring {.importc: "AddPeer".}
proc setSignalEventCallback*(callback: SignalCallback) {.importc: "SetSignalEventCallback".} proc setSignalEventCallback*(callback: SignalCallback) {.importc: "SetSignalEventCallback".}
proc sendTransaction*(jsonArgs: cstring, password: cstring): cstring {.importc: "SendTransaction".}