diff --git a/cashu/mint/crud.py b/cashu/mint/crud.py index 83b7e9d..19d0f0c 100644 --- a/cashu/mint/crud.py +++ b/cashu/mint/crud.py @@ -1,6 +1,6 @@ from typing import Optional -from cashu.core.base import Invoice, Proof, MintKeyset +from cashu.core.base import Invoice, MintKeyset, Proof from cashu.core.db import Connection, Database diff --git a/cashu/mint/ledger.py b/cashu/mint/ledger.py index 6d96fb0..561e273 100644 --- a/cashu/mint/ledger.py +++ b/cashu/mint/ledger.py @@ -3,8 +3,10 @@ Implementation of https://gist.github.com/phyro/935badc682057f418842c72961cf096c """ import math -from typing import List, Set, Dict +from typing import Dict, List, Set + from loguru import logger + import cashu.core.b_dhke as b_dhke import cashu.core.bolt11 as bolt11 from cashu.core.base import ( @@ -24,14 +26,14 @@ from cashu.core.settings import LIGHTNING, MAX_ORDER from cashu.core.split import amount_split from cashu.lightning import WALLET from cashu.mint.crud import ( + get_keyset, get_lightning_invoice, get_proofs_used, invalidate_proof, + store_keyset, store_lightning_invoice, store_promise, update_lightning_invoice, - get_keyset, - store_keyset, ) diff --git a/cashu/wallet/crud.py b/cashu/wallet/crud.py index 50e3676..12d8401 100644 --- a/cashu/wallet/crud.py +++ b/cashu/wallet/crud.py @@ -1,10 +1,7 @@ import time from typing import Any, List, Optional -from cashu.core.base import P2SHScript, Proof -from cashu.core.db import Connection, Database - -from cashu.core.base import KeyBase, WalletKeyset +from cashu.core.base import KeyBase, P2SHScript, Proof, WalletKeyset from cashu.core.db import Connection, Database diff --git a/cashu/wallet/wallet.py b/cashu/wallet/wallet.py index a75ce22..32de07c 100644 --- a/cashu/wallet/wallet.py +++ b/cashu/wallet/wallet.py @@ -14,12 +14,12 @@ from cashu.core.base import ( BlindedSignature, CheckFeesRequest, CheckRequest, - WalletKeyset, MeltRequest, MintRequest, P2SHScript, Proof, SplitRequest, + WalletKeyset, ) from cashu.core.db import Database from cashu.core.script import ( @@ -32,14 +32,14 @@ from cashu.core.secp import PublicKey from cashu.core.settings import DEBUG from cashu.core.split import amount_split from cashu.wallet.crud import ( + get_keyset, get_proofs, invalidate_proof, secret_used, + store_keyset, store_p2sh, store_proof, update_proof_reserved, - get_keyset, - store_keyset, )