refactor(transactions): move PendingTransaction type to new backend (#124)

This commit is contained in:
Jonathan Rainville 2021-12-02 16:37:32 -05:00 committed by saledjenic
parent 08a4cfa36c
commit 32269deb54
1 changed files with 7 additions and 0 deletions

View File

@ -4,6 +4,13 @@ import json, stint, chronicles, strutils, conversions
import ../types/transaction
import ./core as core
type PendingTransactionType* {.pure.} = enum
RegisterENS = "RegisterENS",
SetPubKey = "SetPubKey",
ReleaseENS = "ReleaseENS",
BuyStickerPack = "BuyStickerPack"
WalletTransfer = "WalletTransfer"
proc checkRecentHistory*(addresses: seq[string]) {.raises: [Exception].} =
let payload = %* [addresses]
discard callPrivateRPC("wallet_checkRecentHistory", payload)