mirror of
https://github.com/lnbits/lnbits.git
synced 2025-09-27 12:26:19 +02:00
chore: code format
This commit is contained in:
@@ -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####################
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
|
||||||
|
@@ -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#############################
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user