feat: multi network send transaction
This commit is contained in:
parent
06d52222ad
commit
26706152a3
|
@ -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)
|
||||
|
|
|
@ -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".}
|
||||
|
|
Loading…
Reference in New Issue