Merge pull request #13 from status-im/feat/color-id

feat: add colorId
This commit is contained in:
Iuri Matias 2022-04-08 13:56:34 -04:00 committed by GitHub
commit 34acdba156
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -109,6 +109,11 @@ proc colorHash*(pk: string): string =
defer: go_shim.free(funcOut)
return $funcOut
proc colorID*(pk: string): string =
var funcOut = go_shim.colorID(pk)
defer: go_shim.free(funcOut)
return $funcOut
proc login*(accountData: string, password: string): string =
var funcOut = go_shim.login(accountData.cstring, password.cstring)
defer: go_shim.free(funcOut)

View File

@ -43,6 +43,8 @@ proc emojiHash*(pk: cstring): cstring {.importc: "EmojiHash".}
proc colorHash*(pk: cstring): cstring {.importc: "ColorHash".}
proc colorID*(pk: cstring): cstring {.importc: "ColorID".}
proc login*(accountData: cstring, password: cstring): cstring {.importc: "Login".}
proc loginWithConfig*(accountData: cstring, password: cstring, configJSON: cstring): cstring {.importc: "LoginWithConfig".}