-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WIP Adds withdraw to tpos #19
Conversation
lnurl.py
Outdated
} | ||
return { | ||
"tag": "withdrawRequest", | ||
"callback": request.url_for( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this now is str(request.url_for(...))
tasks.py
Outdated
@@ -20,7 +20,7 @@ async def wait_for_paid_invoices(): | |||
|
|||
|
|||
async def on_invoice_paid(payment: Payment) -> None: | |||
if payment.extra.get("tag") != "tpos" or payment.extra.get("tipSplitted"): | |||
if payment.extra.get("tag") != "tpos": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
keep the tipSplitted
or tpos will make double tips on payment
@@ -52,7 +52,7 @@ async def on_invoice_paid(payment: Payment) -> None: | |||
wallet_id=wallet_id, | |||
amount=int(tipAmount), | |||
internal=True, | |||
memo="tpos tip", | |||
memo=f"tpos tip", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for the f
templates/tpos/index.html
Outdated
this.updateTPos(wallet, data) | ||
} else { | ||
this.createTPoS(wallet, data) | ||
if(self.formDialog.data.id != undefined){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is this here?
manifest.json
Outdated
@@ -2,7 +2,7 @@ | |||
"repos": [ | |||
{ | |||
"id": "tpos", | |||
"organisation": "lnbits", | |||
"organisation": "arcbtc", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are this changes ok? your this started in an old tpos repo, and got smuggled here?
README.md
Outdated
@@ -1,5 +1,4 @@ | |||
# TPoS - <small>[LNbits](https://github.com/lnbits/lnbits) extension</small> | |||
<small>For more about LNBits extension check [this tutorial](https://github.com/lnbits/lnbits/wiki/LNbits-Extensions)</small> | |||
# TPoS |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are this changes ok? your this started in an old tpos repo, and got smuggled here?
Steps to test:
|
|
||
db = Database("ext_tpos") | ||
|
||
|
||
class LNURLErrorResponseHandler(APIRoute): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this would handle all the /tpos API calls like LNURLErrorResponses right?
btw. i saw that handleer already multiple times in extensions, would it make sense to offer it from core in helpers.py
or lnurl.py
?
No description provided.