Expose StartWallet/StopWallet (#49)

This commit is contained in:
RichΛrd 2020-09-03 11:05:37 -04:00 committed by GitHub
parent 46ffc74a1f
commit 46c93dd734
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 18 additions and 2 deletions

View File

@ -55,7 +55,9 @@ from nim_status/go/shim as go_shim import
multiAccountStoreAccount,
multiAccountLoadAccount,
multiAccountGenerate,
multiAccountReset
multiAccountReset,
startWallet,
stopWallet
export
SignalCallback,
@ -110,4 +112,6 @@ export
multiAccountStoreAccount,
multiAccountLoadAccount,
multiAccountGenerate,
multiAccountReset
multiAccountReset,
startWallet,
stopWallet

View File

@ -106,3 +106,7 @@ proc multiAccountLoadAccount*(paramsJSON: cstring): cstring {.importc: "MultiAcc
proc multiAccountGenerate*(paramsJSON: cstring): cstring {.importc: "MultiAccountGenerate".}
proc multiAccountReset*(): cstring {.importc: "MultiAccountReset".}
proc startWallet*(): cstring {.importc: "StartWallet".}
proc stopWallet*(): cstring {.importc: "StopWallet".}

View File

@ -54,6 +54,8 @@ let multiAccountStoreAccount {.exportc.} = go_shim.multiAccountStoreAccount
let multiAccountLoadAccount {.exportc.} = go_shim.multiAccountLoadAccount
let multiAccountGenerate {.exportc.} = go_shim.multiAccountGenerate
let multiAccountReset {.exportc.} = go_shim.multiAccountReset
let startWallet {.exportc.} = go_shim.startWallet
let stopWallet {.exportc.} = go_shim.stopWallet
type SignalCallback {.exportc: "SignalCallback".} = proc(eventMessage: cstring): void {.cdecl.}

View File

@ -161,3 +161,9 @@ proc multiAccountGenerate*(paramsJSON: string): string =
proc multiAccountReset*(): string =
$go_shim.multiAccountReset()
proc startWallet*(): string =
$go_shim.startWallet()
proc stopWallet*(): string =
$go_shim.stopWallet()