Expose StartWallet/StopWallet (#49)
This commit is contained in:
parent
46ffc74a1f
commit
46c93dd734
|
@ -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
|
||||
|
|
|
@ -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".}
|
|
@ -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.}
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue