feat: multi network send transaction

This commit is contained in:
Anthony Laibe 2022-05-23 12:48:16 +02:00
parent 06d52222ad
commit 26706152a3
2 changed files with 7 additions and 0 deletions

View File

@ -84,6 +84,11 @@ proc sendTransaction*(jsonArgs: string, password: string): string =
defer: go_shim.free(funcOut)
return $funcOut
proc sendTransactionWithChainId*(chainId: int, jsonArgs: string, password: string): string =
var funcOut = go_shim.sendTransactionWithChainId(chainId.cint, jsonArgs.cstring, password.cstring)
defer: go_shim.free(funcOut)
return $funcOut
proc generateAlias*(pk: string): string =
var funcOut = go_shim.generateAlias(pk)
defer: go_shim.free(funcOut)

View File

@ -33,6 +33,8 @@ proc setSignalEventCallback*(callback: SignalCallback) {.importc: "SetSignalEven
proc sendTransaction*(jsonArgs: cstring, password: cstring): cstring {.importc: "SendTransaction".}
proc sendTransactionWithChainId*(chainId: cint, jsonArgs: cstring, password: cstring): cstring {.importc: "SendTransactionWithChainID".}
proc generateAlias*(pk: cstring): cstring {.importc: "GenerateAlias".}
proc isAlias*(value: cstring): cstring {.importc: "IsAlias".}