chore: code format

This commit is contained in:
Vlad Stan
2022-07-28 15:09:23 +03:00
parent c1f6845ad9
commit 87dc9136a4
3 changed files with 14 additions and 17 deletions

View File

@@ -1,13 +1,11 @@
import json import json
from typing import List, Optional from typing import List, Optional
from lnbits.helpers import urlsafe_short_hash from lnbits.helpers import urlsafe_short_hash
from . import db from . import db
from .helpers import derive_address, parse_key
from .models import Address, Config, Mempool, WalletAccount from .models import Address, Config, Mempool, WalletAccount
from .helpers import parse_key, derive_address
##########################WALLETS#################### ##########################WALLETS####################

View File

@@ -1,5 +1,6 @@
from sqlite3 import Row from sqlite3 import Row
from typing import List from typing import List
from fastapi.param_functions import Query from fastapi.param_functions import Query
from pydantic import BaseModel from pydantic import BaseModel

View File

@@ -1,39 +1,37 @@
from http import HTTPStatus from http import HTTPStatus
from embit import 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 import Query, Request
from fastapi.params import Depends from fastapi.params import Depends
from starlette.exceptions import HTTPException 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
from lnbits.decorators import WalletTypeInfo, get_key_type, require_admin_key from lnbits.decorators import WalletTypeInfo, get_key_type, require_admin_key
from lnbits.extensions.watchonly import watchonly_ext from lnbits.extensions.watchonly import watchonly_ext
from .crud import ( from .crud import (
create_config,
create_fresh_addresses,
create_mempool, create_mempool,
create_watch_wallet, create_watch_wallet,
delete_addresses_for_wallet,
delete_watch_wallet, delete_watch_wallet,
get_addresses, get_addresses,
get_config,
get_fresh_address, get_fresh_address,
create_fresh_addresses,
update_address,
delete_addresses_for_wallet,
get_mempool, get_mempool,
get_watch_wallet, get_watch_wallet,
get_watch_wallets, get_watch_wallets,
update_address,
update_config,
update_mempool, update_mempool,
update_watch_wallet, update_watch_wallet,
create_config,
get_config,
update_config,
) )
from .models import CreateWallet, CreatePsbt, Config, WalletAccount
from .helpers import parse_key from .helpers import parse_key
from .models import Config, CreatePsbt, CreateWallet, WalletAccount
###################WALLETS############################# ###################WALLETS#############################