You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use this tribe to test: sphinx.chat://?action=tribeV2&pubkey=02562730251fc79a4299bc15553de1d7e31d8090415cf9d0298029d5fe9214993a&host=tribes.v2.sphinx.chat
tapping on Second Brain icon
Or create a new one and set this url: https://machinelearning.sphinx.chat/
We need a new database table with LSat name and the following columns:
To be asked for a budget authorizations you need to try to add content. For that tap on + icon the left column and try to add a link of any tweet
SETBUDGET
- application: sphinx
- type: SETBUDGET
Show authorize popup with amount field
On Authorize button touched save budget locally
Sen SETBUDGET RESPONSE
SETBUDGET RESPONSE
- application: sphinx
- type: SETBUDGET
- password: random password length 16 (save locally)
- pubkey: your public key
- budget: 20 (the budget you set on the form)
Check if can play with current saved budget: check if the amount you entered in authorize popup and you saved locally is enough to pay the payment request amount. If so then subtract the payment request amount to the saved budget and save again (it will be 0 now)
Save LSAT in db with macaroon, paymentRequest, issuer and identifier (get identifier from macaroon using binding idFromMacaroon)
Pay invoice using bindings and wait for settle status (same as we do when paying an invoice). Add a 10 seconds timeout.
On settled save preimage on lsat and send response
SUCCESS RESPONSE
- application: sphinx
- type: LSAT
- success: 1
- budget: 0
- password: random password length 16 (save locally)
- lsat: "LSAT \(lsat.macaroon):\(lsat.preimage ?? "")" (check format of LSAT value: LSAT string first, then macaroon and preimage separated by :)
You can use this tribe to test:
sphinx.chat://?action=tribeV2&pubkey=02562730251fc79a4299bc15553de1d7e31d8090415cf9d0298029d5fe9214993a&host=tribes.v2.sphinx.chat
tapping on Second Brain icon
Or create a new one and set this url:
https://machinelearning.sphinx.chat/
We need a new database table with LSat name and the following columns:
On first launch you will get a first message:
AUTHORIZE
Message:
Response:
GETLSAT
RESPONSE IF THERE'S NO ACTIVE LSAT
RESPONSE IF THERE IS ACTIVE LSAT
SIGN
SUCCESS RESPONSE
FAILURE RESPONSE
To be asked for a budget authorizations you need to try to add content. For that tap on + icon the left column and try to add a link of any tweet
SETBUDGET
SETBUDGET RESPONSE
LSAT
macaroon
,paymentRequest
,issuer
andidentifier
(get identifier from macaroon using bindingidFromMacaroon
)preimage
on lsat and send responseSUCCESS RESPONSE
FALURE RESPONSE
If you try to add a new tweet when you just run out of budget you will get the UPDATELSAT message
UPDATELSAT
RESPONSE TO UPDATE LSAT
After this your will get SETBUDGET message again
The text was updated successfully, but these errors were encountered: