Commit 6387604
committed
feat(abstract-lightning): make valueMsat optional add valueSat support
The CreateInvoiceBody type is updated to:
1. Make valueMsat field optional instead of required
2. Add new optional valueSat field (numeric representation)
3. Simplify the type definition structure
Also adds valueSat field to the Invoice type as a backward compatibility
measure with older API versions.
BTC-2775
TICKET: BTC-27751 parent 30f26d9 commit 6387604
1 file changed
Lines changed: 9 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
33 | 27 | | |
34 | 28 | | |
35 | 29 | | |
| |||
52 | 46 | | |
53 | 47 | | |
54 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
| |||
0 commit comments