updated watchonly

This commit is contained in:
benarc
2020-12-01 19:54:16 +00:00
parent 52956a62a2
commit a838706090
12 changed files with 1419 additions and 0 deletions
+44
View File
@@ -0,0 +1,44 @@
from sqlite3 import Row
from typing import NamedTuple
class Wallets(NamedTuple):
id: str
user: str
masterpub: str
title: str
address_no: int
amount: int
@classmethod
def from_row(cls, row: Row) -> "Wallets":
return cls(**dict(row))
class Payments(NamedTuple):
id: str
user: str
ex_key: str
address: str
time_to_pay: str
amount: int
time: int
@classmethod
def from_row(cls, row: Row) -> "Payments":
return cls(**dict(row))
class Addresses(NamedTuple):
address: str
wallet: str
amount: int
@classmethod
def from_row(cls, row: Row) -> "Addresses":
return cls(**dict(row))
class Mempool(NamedTuple):
user: str
endpoint: str
@classmethod
def from_row(cls, row: Row) -> "Mempool":
return cls(**dict(row))