mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-26 21:41:11 +00:00
16 lines
572 B
Nim
16 lines
572 B
Nim
import json, json_serialization
|
|
import response_type
|
|
|
|
import status_go
|
|
|
|
export response_type
|
|
|
|
proc emojiHashOf*(pubkey: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
result = Json.decode(status_go.emojiHash(pubkey), RpcResponse[JsonNode])
|
|
|
|
proc colorHashOf*(pubkey: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
result = Json.decode(status_go.colorHash(pubkey), RpcResponse[JsonNode])
|
|
|
|
proc colorIdOf*(pubkey: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
result = Json.decode(status_go.colorID(pubkey), RpcResponse[JsonNode])
|