diff --git a/lnbits/extensions/watchonly/models.py b/lnbits/extensions/watchonly/models.py index 5302e778..e145ea31 100644 --- a/lnbits/extensions/watchonly/models.py +++ b/lnbits/extensions/watchonly/models.py @@ -1,5 +1,6 @@ from sqlite3 import Row from typing import List, Optional + from fastapi.param_functions import Query from pydantic import BaseModel diff --git a/lnbits/extensions/watchonly/views_api.py b/lnbits/extensions/watchonly/views_api.py index 0047077c..0d008fca 100644 --- a/lnbits/extensions/watchonly/views_api.py +++ b/lnbits/extensions/watchonly/views_api.py @@ -1,49 +1,47 @@ -from http import HTTPStatus -import httpx import json +from http import HTTPStatus +import httpx +from embit import finalizer, script +from embit.descriptor import Descriptor, Key +from embit.ec import PublicKey +from embit.psbt import PSBT, DerivationPath +from embit.transaction import Transaction, TransactionInput, TransactionOutput from fastapi import Query, Request from fastapi.params import Depends from starlette.exceptions import HTTPException -from embit.descriptor import Descriptor, Key -from embit.psbt import PSBT, DerivationPath -from embit.ec import PublicKey -from embit.transaction import Transaction, TransactionInput, TransactionOutput -from embit import script, finalizer - from lnbits.decorators import WalletTypeInfo, get_key_type, require_admin_key from lnbits.extensions.watchonly import watchonly_ext from .crud import ( + create_config, + create_fresh_addresses, create_mempool, create_watch_wallet, + delete_addresses_for_wallet, delete_watch_wallet, get_addresses, + get_config, get_fresh_address, - create_fresh_addresses, - update_address, - delete_addresses_for_wallet, get_mempool, get_watch_wallet, get_watch_wallets, + update_address, + update_config, update_mempool, update_watch_wallet, - create_config, - get_config, - update_config, -) -from .models import ( - BroadcastTransaction, - SignedTransaction, - CreateWallet, - CreatePsbt, - Config, - WalletAccount, - ExtractPsbt, ) from .helpers import parse_key - +from .models import ( + BroadcastTransaction, + Config, + CreatePsbt, + CreateWallet, + ExtractPsbt, + SignedTransaction, + WalletAccount, +) ###################WALLETS#############################