mirror of
https://github.com/aljazceru/nutshell.git
synced 2025-12-23 19:54:18 +01:00
bump version to 0.17.0 (#751)
This commit is contained in:
@@ -185,7 +185,7 @@ This command runs the mint on your local computer. Skip this step if you want to
|
|||||||
## Docker
|
## Docker
|
||||||
|
|
||||||
```
|
```
|
||||||
docker run -d -p 3338:3338 --name nutshell -e MINT_BACKEND_BOLT11_SAT=FakeWallet -e MINT_LISTEN_HOST=0.0.0.0 -e MINT_LISTEN_PORT=3338 -e MINT_PRIVATE_KEY=TEST_PRIVATE_KEY cashubtc/nutshell:0.16.6 poetry run mint
|
docker run -d -p 3338:3338 --name nutshell -e MINT_BACKEND_BOLT11_SAT=FakeWallet -e MINT_LISTEN_HOST=0.0.0.0 -e MINT_LISTEN_PORT=3338 -e MINT_PRIVATE_KEY=TEST_PRIVATE_KEY cashubtc/nutshell:0.17.0 poetry run mint
|
||||||
```
|
```
|
||||||
|
|
||||||
## From this repository
|
## From this repository
|
||||||
|
|||||||
@@ -354,10 +354,10 @@ class MeltQuote(LedgerEvent):
|
|||||||
quote=melt_quote_resp.quote,
|
quote=melt_quote_resp.quote,
|
||||||
method="bolt11",
|
method="bolt11",
|
||||||
request=melt_quote_resp.request
|
request=melt_quote_resp.request
|
||||||
or request, # BACKWARDS COMPATIBILITY mint response < 0.16.6
|
or request, # BACKWARDS COMPATIBILITY mint response < 0.17.0
|
||||||
checking_id="",
|
checking_id="",
|
||||||
unit=melt_quote_resp.unit
|
unit=melt_quote_resp.unit
|
||||||
or unit, # BACKWARDS COMPATIBILITY mint response < 0.16.6
|
or unit, # BACKWARDS COMPATIBILITY mint response < 0.17.0
|
||||||
amount=melt_quote_resp.amount,
|
amount=melt_quote_resp.amount,
|
||||||
fee_reserve=melt_quote_resp.fee_reserve,
|
fee_reserve=melt_quote_resp.fee_reserve,
|
||||||
state=MeltQuoteState(melt_quote_resp.state),
|
state=MeltQuoteState(melt_quote_resp.state),
|
||||||
@@ -471,9 +471,9 @@ class MintQuote(LedgerEvent):
|
|||||||
request=mint_quote_resp.request,
|
request=mint_quote_resp.request,
|
||||||
checking_id="",
|
checking_id="",
|
||||||
unit=mint_quote_resp.unit
|
unit=mint_quote_resp.unit
|
||||||
or unit, # BACKWARDS COMPATIBILITY mint response < 0.16.6
|
or unit, # BACKWARDS COMPATIBILITY mint response < 0.17.0
|
||||||
amount=mint_quote_resp.amount
|
amount=mint_quote_resp.amount
|
||||||
or amount, # BACKWARDS COMPATIBILITY mint response < 0.16.6
|
or amount, # BACKWARDS COMPATIBILITY mint response < 0.17.0
|
||||||
state=MintQuoteState(mint_quote_resp.state),
|
state=MintQuoteState(mint_quote_resp.state),
|
||||||
mint=mint,
|
mint=mint,
|
||||||
expiry=mint_quote_resp.expiry,
|
expiry=mint_quote_resp.expiry,
|
||||||
|
|||||||
@@ -144,10 +144,10 @@ class PostMintQuoteResponse(BaseModel):
|
|||||||
request: str # input payment request
|
request: str # input payment request
|
||||||
amount: Optional[
|
amount: Optional[
|
||||||
int
|
int
|
||||||
] # output amount (optional for BACKWARDS COMPAT mint response < 0.16.6)
|
] # output amount (optional for BACKWARDS COMPAT mint response < 0.17.0)
|
||||||
unit: Optional[
|
unit: Optional[
|
||||||
str
|
str
|
||||||
] # output unit (optional for BACKWARDS COMPAT mint response < 0.16.6)
|
] # output unit (optional for BACKWARDS COMPAT mint response < 0.17.0)
|
||||||
state: Optional[str] # state of the quote (optional for backwards compat)
|
state: Optional[str] # state of the quote (optional for backwards compat)
|
||||||
expiry: Optional[int] # expiry of the quote
|
expiry: Optional[int] # expiry of the quote
|
||||||
pubkey: Optional[str] = None # NUT-20 quote lock pubkey
|
pubkey: Optional[str] = None # NUT-20 quote lock pubkey
|
||||||
@@ -231,10 +231,10 @@ class PostMeltQuoteResponse(BaseModel):
|
|||||||
amount: int # input amount
|
amount: int # input amount
|
||||||
unit: Optional[
|
unit: Optional[
|
||||||
str
|
str
|
||||||
] # input unit (optional for BACKWARDS COMPAT mint response < 0.16.6)
|
] # input unit (optional for BACKWARDS COMPAT mint response < 0.17.0)
|
||||||
request: Optional[
|
request: Optional[
|
||||||
str
|
str
|
||||||
] # output payment request (optional for BACKWARDS COMPAT mint response < 0.16.6)
|
] # output payment request (optional for BACKWARDS COMPAT mint response < 0.17.0)
|
||||||
fee_reserve: int # input fee reserve
|
fee_reserve: int # input fee reserve
|
||||||
paid: Optional[bool] = (
|
paid: Optional[bool] = (
|
||||||
None # whether the request has been paid # DEPRECATED as per NUT PR #136
|
None # whether the request has been paid # DEPRECATED as per NUT PR #136
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ from pydantic import BaseSettings, Extra, Field
|
|||||||
|
|
||||||
env = Env()
|
env = Env()
|
||||||
|
|
||||||
VERSION = "0.16.6"
|
VERSION = "0.17.0"
|
||||||
|
|
||||||
|
|
||||||
def find_env_file():
|
def find_env_file():
|
||||||
|
|||||||
@@ -541,12 +541,12 @@ class Wallet(
|
|||||||
amount=(
|
amount=(
|
||||||
mint_quote_response.amount or mint_quote_local.amount
|
mint_quote_response.amount or mint_quote_local.amount
|
||||||
if mint_quote_local
|
if mint_quote_local
|
||||||
else 0 # BACKWARD COMPATIBILITY mint response < 0.16.6
|
else 0 # BACKWARD COMPATIBILITY mint response < 0.17.0
|
||||||
),
|
),
|
||||||
unit=(
|
unit=(
|
||||||
mint_quote_response.unit or mint_quote_local.unit
|
mint_quote_response.unit or mint_quote_local.unit
|
||||||
if mint_quote_local
|
if mint_quote_local
|
||||||
else self.unit.name # BACKWARD COMPATIBILITY mint response < 0.16.6
|
else self.unit.name # BACKWARD COMPATIBILITY mint response < 0.17.0
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
if mint_quote_local and mint_quote_local.privkey:
|
if mint_quote_local and mint_quote_local.privkey:
|
||||||
@@ -760,9 +760,9 @@ class Wallet(
|
|||||||
melt_quote_resp,
|
melt_quote_resp,
|
||||||
self.url,
|
self.url,
|
||||||
unit=melt_quote_resp.unit
|
unit=melt_quote_resp.unit
|
||||||
or self.unit.name, # BACKWARD COMPATIBILITY mint response < 0.16.6
|
or self.unit.name, # BACKWARD COMPATIBILITY mint response < 0.17.0
|
||||||
request=melt_quote_resp.request
|
request=melt_quote_resp.request
|
||||||
or invoice, # BACKWARD COMPATIBILITY mint response < 0.16.6
|
or invoice, # BACKWARD COMPATIBILITY mint response < 0.17.0
|
||||||
)
|
)
|
||||||
return melt_quote
|
return melt_quote
|
||||||
|
|
||||||
@@ -783,12 +783,12 @@ class Wallet(
|
|||||||
unit=(
|
unit=(
|
||||||
melt_quote_resp.unit or melt_quote_local.unit
|
melt_quote_resp.unit or melt_quote_local.unit
|
||||||
if melt_quote_local
|
if melt_quote_local
|
||||||
else self.unit.name # BACKWARD COMPATIBILITY mint response < 0.16.6
|
else self.unit.name # BACKWARD COMPATIBILITY mint response < 0.17.0
|
||||||
),
|
),
|
||||||
request=(
|
request=(
|
||||||
melt_quote_resp.request or melt_quote_local.request
|
melt_quote_resp.request or melt_quote_local.request
|
||||||
if (melt_quote_local and melt_quote_local.request)
|
if (melt_quote_local and melt_quote_local.request)
|
||||||
else "None" # BACKWARD COMPATIBILITY mint response < 0.16.6
|
else "None" # BACKWARD COMPATIBILITY mint response < 0.17.0
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "cashu"
|
name = "cashu"
|
||||||
version = "0.16.6"
|
version = "0.17.0"
|
||||||
description = "Ecash wallet and mint"
|
description = "Ecash wallet and mint"
|
||||||
authors = ["calle <callebtc@protonmail.com>"]
|
authors = ["calle <callebtc@protonmail.com>"]
|
||||||
license = "MIT"
|
license = "MIT"
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -13,7 +13,7 @@ entry_points = {"console_scripts": ["cashu = cashu.wallet.cli.cli:cli"]}
|
|||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name="cashu",
|
name="cashu",
|
||||||
version="0.16.6",
|
version="0.17.0",
|
||||||
description="Ecash wallet and mint",
|
description="Ecash wallet and mint",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|||||||
Reference in New Issue
Block a user