From 32269deb54af3bc01ca26119bc325aa56d625d85 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Thu, 2 Dec 2021 16:37:32 -0500 Subject: [PATCH] refactor(transactions): move PendingTransaction type to new backend (#124) --- status/statusgo_backend_new/transactions.nim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/status/statusgo_backend_new/transactions.nim b/status/statusgo_backend_new/transactions.nim index e91ed62..fa6d18e 100644 --- a/status/statusgo_backend_new/transactions.nim +++ b/status/statusgo_backend_new/transactions.nim @@ -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)