2022-03-17 19:59:10 +00:00
|
|
|
import json, json_serialization
|
2022-03-09 10:27:32 +00:00
|
|
|
import response_type
|
|
|
|
|
2022-03-17 19:59:10 +00:00
|
|
|
import status_go
|
2022-03-09 10:27:32 +00:00
|
|
|
|
2022-03-17 19:59:10 +00:00
|
|
|
export response_type
|
2022-03-09 10:27:32 +00:00
|
|
|
|
2022-03-17 19:59:10 +00:00
|
|
|
proc emojiHashOf*(pubkey: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
|
|
result = Json.decode(status_go.emojiHash(pubkey), RpcResponse[JsonNode])
|
2022-03-09 10:27:32 +00:00
|
|
|
|
2022-03-17 19:59:10 +00:00
|
|
|
proc colorHashOf*(pubkey: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
|
|
result = Json.decode(status_go.colorHash(pubkey), RpcResponse[JsonNode])
|
2022-04-07 18:55:04 +00:00
|
|
|
|
|
|
|
proc colorIdOf*(pubkey: string): RpcResponse[JsonNode] {.raises: [Exception].} =
|
|
|
|
result = Json.decode(status_go.colorID(pubkey), RpcResponse[JsonNode])
|