mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-24 12:04:21 +01:00
* Add REST API for Cashu wallet * Add simple way to start REST API server * Add simple tests for wallet REST API * Add TokenV3 to REST API * Improve tests for wallet REST API * Make format * Remove unused import * Rename nostr module for API * Unify helper functions for CLI and API * Make format * Move error handling from helper functions to API * Remove 'is_api' flag where possible * Make format, cleanup, add comments * Fix typo for burn also in API * Improve error handling for API * Add flag 'trust_new_mint' to receive command To enable trusting or mistrusting unknown mints via API * Allow selecting mint for sending from API * Fix: set specific mint via API * Fix: select mint with maximum balance via CLI * Use different variables for mint_nr * Allow selecting mint when sending via nostr via API * Remove unnessecary 'is_api' flags from 'send_nostr' * Remove HTTPException from nostr.py * Allow selecting mint for sending with parameter also via CLI * Allow trusting unknown mint for receiving also via CLI * Make format * Enable trusting unknown mint also when receiving via nostr * Fix: wrong indentation of in receive function * Use relative imports for wallet API * Unify get_mint_wallet for CLI and API * Unify send command for CLI and API * Unify receive for CLI and API * Catch errors in nostr via API * Remove flag 'is_api' from verify_mints_tokenv2 * Remove cli_helpers left from last merge * refactor cli selection * load mint in nostr_send * cleanup * add cli_helpers.py * legacy deserialization in cli * make format * clean up api response * fix tests * try pk * verify mints in api * try github tests * Fix: verify_mints for API * Uncomment verify_mints in receive of API * update README * Show mint url in pending * clean up balance response * fix test * mint selection in api * clean up API * CLI: verify mint for receive -a * clean up * Rest -> REST * Remove unused imports --------- Co-authored-by: sihamon <sihamon@proton.me> Co-authored-by: sihamon <126967444+sihamon@users.noreply.github.com>
56 lines
1.3 KiB
TOML
56 lines
1.3 KiB
TOML
[tool.poetry]
|
|
name = "cashu"
|
|
version = "0.11.2"
|
|
description = "Ecash wallet and mint."
|
|
authors = ["calle <callebtc@protonmail.com>"]
|
|
license = "MIT"
|
|
|
|
[tool.poetry.dependencies]
|
|
python = "^3.7"
|
|
requests = "^2.27.1"
|
|
pytest-asyncio = "^0.19.0"
|
|
SQLAlchemy = "^1.3.24"
|
|
click = "^8.0.4"
|
|
pydantic = "^1.10.2"
|
|
bech32 = "^1.2.0"
|
|
fastapi = "^0.83.0"
|
|
environs = "^9.5.0"
|
|
uvicorn = "^0.18.3"
|
|
loguru = "^0.6.0"
|
|
ecdsa = "^0.18.0"
|
|
bitstring = "^3.1.9"
|
|
secp256k1 = "^0.14.0"
|
|
sqlalchemy-aio = "^0.17.0"
|
|
python-bitcoinlib = "0.11.2"
|
|
h11 = "^0.12.0"
|
|
PySocks = "^1.7.1"
|
|
cryptography = "^36.0.2"
|
|
websocket-client = "^1.3.3"
|
|
pycryptodomex = "^3.16.0"
|
|
setuptools = "^65.6.3"
|
|
wheel = "^0.38.4"
|
|
importlib-metadata = "^5.2.0"
|
|
psycopg2-binary = {version = "^2.9.5", optional = true }
|
|
|
|
[tool.poetry.extras]
|
|
pgsql = ["psycopg2-binary"]
|
|
|
|
[tool.poetry.dev-dependencies]
|
|
black = {version = "^22.8.0", allow-prereleases = true}
|
|
isort = "^5.10.1"
|
|
|
|
[tool.poetry.group.dev.dependencies]
|
|
mypy = "^0.971"
|
|
black = {version = "^22.8.0", allow-prereleases = true}
|
|
isort = "^5.10.1"
|
|
pytest-cov = "^4.0.0"
|
|
|
|
[build-system]
|
|
requires = ["poetry-core>=1.0.0"]
|
|
build-backend = "poetry.core.masonry.api"
|
|
|
|
[tool.poetry.scripts]
|
|
mint = "cashu.mint.main:main"
|
|
cashu = "cashu.wallet.cli.cli:cli"
|
|
api = "cashu.wallet.api.main:main"
|
|
wallet-test = "tests.test_wallet:test" |