From 50e8f7eef01d801fc3be0168a0eae37137b08439 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Mon, 14 Mar 2022 14:35:23 -0400 Subject: [PATCH] feat: add isAlias (#7) --- status_go.nim | 5 +++++ status_go/impl.nim | 2 ++ 2 files changed, 7 insertions(+) diff --git a/status_go.nim b/status_go.nim index b5ed9cb..c94217d 100644 --- a/status_go.nim +++ b/status_go.nim @@ -89,6 +89,11 @@ proc generateAlias*(pk: string): string = defer: go_shim.free(funcOut) return $funcOut +proc isAlias*(value: string): string = + var funcOut = go_shim.isAlias(value) + defer: go_shim.free(funcOut) + return $funcOut + proc identicon*(pk: string): string = var funcOut = go_shim.identicon(pk) defer: go_shim.free(funcOut) diff --git a/status_go/impl.nim b/status_go/impl.nim index 1ee9a6d..64ef39a 100644 --- a/status_go/impl.nim +++ b/status_go/impl.nim @@ -35,6 +35,8 @@ proc sendTransaction*(jsonArgs: cstring, password: cstring): cstring {.importc: proc generateAlias*(pk: cstring): cstring {.importc: "GenerateAlias".} +proc isAlias*(value: cstring): cstring {.importc: "IsAlias".} + proc identicon*(pk: cstring): cstring {.importc: "Identicon".} proc login*(accountData: cstring, password: cstring): cstring {.importc: "Login".}