whatchonly ext added

This commit is contained in:
Tiago vasconcelos
2021-10-14 11:45:30 +01:00
parent 43f36afeb0
commit ec89244d7f
10 changed files with 1376 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
from sqlite3 import Row
from typing import NamedTuple
class Wallets(NamedTuple):
id: str
user: str
masterpub: str
title: str
address_no: int
balance: int
@classmethod
def from_row(cls, row: Row) -> "Wallets":
return cls(**dict(row))
class Mempool(NamedTuple):
user: str
endpoint: str
@classmethod
def from_row(cls, row: Row) -> "Mempool":
return cls(**dict(row))
class Addresses(NamedTuple):
id: str
address: str
wallet: str
amount: int
@classmethod
def from_row(cls, row: Row) -> "Addresses":
return cls(**dict(row))