Keyan cc289089cf
not-custodial zap beta (#1178)
* not-custodial zap scaffolding

* invoice forward state machine

* small refinements to state machine

* make wrap invoice work

* get state machine working end to end

* untested logic layout for paidAction invoice wraps

* perform pessimisitic actions before outgoing payment

* working end to end

* remove unneeded params from wallets/server/createInvoice

* fix cltv relative/absolute confusion + cancelling forwards

* small refinements

* add p2p wrap info to paidAction docs

* fallback to SN invoice when wrap fails

* fix paidAction retry description

* consistent naming scheme for state machine

* refinements

* have sn pay bounded outbound fee

* remove debug logging

* reenable lnc permissions checks

* don't p2p zap on item forward splits

* make createInvoice params json encodeable

* direct -> p2p badge on notifications

* allow no tls in dev for core lightning

* fix autowithdraw to create invoice with msats

* fix autowithdraw msats/sats inconsitency

* label p2p zaps properly in satistics

* add fees to autowithdrawal notifications

* add RETRYING as terminal paid action state

* Update api/paidAction/README.md

Co-authored-by: ekzyis <ek@stacker.news>

* Update api/paidAction/README.md

Co-authored-by: ekzyis <ek@stacker.news>

* Update api/lnd/index.js

Co-authored-by: ekzyis <ek@stacker.news>

* ek suggestions

* add bugetable to nwc card

* get paranoid with numbers

* better finalize retries and better max timeout height

* refine forward failure transitions

* more accurate satistics p2p status

* make sure paidaction cancel in state machine only

* dont drop bolt11s unless status is not null

* only allow PENDING_HELD to transition to FORWARDING

* add mermaid state machine diagrams to paid action doc

* fix cancel transition name

* cleanup readme

* move forwarding outside of transition

* refine testServerConnect and make sure ensureB64 transforms

* remove unused params from testServerConnect

---------

Co-authored-by: ekzyis <ek@stacker.news>
Co-authored-by: k00b <k00b@stacker.news>
2024-08-13 09:48:30 -05:00
..
2024-07-12 17:34:46 -05:00
2024-05-13 10:14:35 -05:00
2024-03-19 19:37:31 -05:00
2024-04-16 17:58:26 -05:00
2024-04-26 21:22:30 -05:00
2023-08-25 18:21:51 -05:00
2024-03-25 15:35:32 -04:00
2024-07-10 19:23:05 -05:00
2024-07-12 15:18:13 -05:00
2024-07-01 12:02:29 -05:00
2024-07-01 12:02:29 -05:00
2023-08-04 20:45:12 -05:00
2024-07-01 12:02:29 -05:00
2024-07-01 12:02:29 -05:00
2023-11-10 09:22:14 -06:00
2024-04-28 17:25:25 -05:00
2024-07-12 10:15:57 -05:00
2024-03-19 19:37:31 -05:00
2024-04-08 17:54:39 -05:00
2021-05-06 16:15:22 -05:00
2024-08-02 17:41:47 -05:00
2024-06-20 11:28:25 -05:00
2024-03-19 19:37:31 -05:00
2024-05-15 12:05:50 -05:00
2024-07-11 16:58:55 -05:00
2024-07-12 15:18:13 -05:00
2024-07-11 16:58:55 -05:00
2022-01-27 13:18:48 -06:00
2024-07-01 12:02:29 -05:00
2024-03-26 19:49:10 -05:00
2024-03-27 14:04:04 -05:00
2024-03-19 19:37:31 -05:00
2024-07-01 12:02:29 -05:00
2024-07-11 16:58:55 -05:00
2024-04-14 17:34:21 -05:00
2024-04-03 17:27:21 -05:00
2024-03-19 19:37:31 -05:00
2024-03-19 19:37:31 -05:00
2021-10-15 13:05:34 -05:00
2024-04-08 09:13:12 -05:00
2024-07-01 12:02:29 -05:00
2024-07-11 16:58:55 -05:00
2024-03-19 19:37:31 -05:00
2024-03-19 19:37:31 -05:00
2023-07-24 13:53:53 -05:00
2023-07-24 13:53:53 -05:00
2023-10-03 14:35:53 -05:00
2024-07-01 12:02:29 -05:00
2024-07-09 13:10:41 -05:00
2024-03-26 18:36:31 -05:00
2024-07-11 16:58:55 -05:00
2024-03-19 19:37:31 -05:00
2024-07-12 15:18:13 -05:00
2024-07-12 15:18:13 -05:00
2023-05-06 16:51:17 -05:00
2024-03-19 19:37:31 -05:00
2024-04-03 17:27:21 -05:00
2024-03-19 19:37:31 -05:00
2024-03-19 19:37:31 -05:00
2024-03-26 18:36:31 -05:00
2023-08-25 18:21:51 -05:00
2024-07-11 16:58:55 -05:00
2024-06-25 17:18:21 -05:00
2024-07-09 11:46:38 -05:00
2024-07-11 16:58:55 -05:00
2024-08-03 19:37:43 -05:00
2024-07-12 15:18:13 -05:00
2024-05-15 12:05:50 -05:00