|
392 | 392 | let returnValue = InitFeatures(cType: nativeCallResult)
|
393 | 393 |
|
394 | 394 |
|
395 |
| - return returnValue |
| 395 | + try! returnValue.addAnchor(anchor: config) |
| 396 | +return returnValue |
396 | 397 | }
|
397 | 398 |
|
398 | 399 | /// Equivalent to [`crate::ln::channelmanager::ChannelManager::create_inbound_payment`], but no
|
|
437 | 438 | let returnValue = Result_C2Tuple_PaymentHashPaymentSecretZNoneZ(cType: nativeCallResult)
|
438 | 439 |
|
439 | 440 |
|
440 |
| - return returnValue |
| 441 | + try! returnValue.addAnchor(anchor: keys) |
| 442 | +return returnValue |
441 | 443 | }
|
442 | 444 |
|
443 | 445 | /// Equivalent to [`crate::ln::channelmanager::ChannelManager::create_inbound_payment_for_hash`],
|
|
478 | 480 | let returnValue = Result_PaymentSecretNoneZ(cType: nativeCallResult)
|
479 | 481 |
|
480 | 482 |
|
481 |
| - return returnValue |
| 483 | + try! returnValue.addAnchor(anchor: keys) |
| 484 | +return returnValue |
482 | 485 | }
|
483 | 486 |
|
484 | 487 | /// Gets the weight for an HTLC-Success transaction.
|
|
1079 | 1082 | let returnValue = Result_RouteLightningErrorZ(cType: nativeCallResult)
|
1080 | 1083 |
|
1081 | 1084 |
|
1082 |
| - return returnValue |
| 1085 | + try! returnValue.addAnchor(anchor: routeParams) |
| 1086 | + try! returnValue.addAnchor(anchor: networkGraph) |
| 1087 | +return returnValue |
1083 | 1088 | }
|
1084 | 1089 |
|
1085 | 1090 | /// Construct a route from us (payer) to the target node (payee) via the given hops (which should
|
|
1124 | 1129 | let returnValue = Result_RouteLightningErrorZ(cType: nativeCallResult)
|
1125 | 1130 |
|
1126 | 1131 |
|
1127 |
| - return returnValue |
| 1132 | + try! returnValue.addAnchor(anchor: routeParams) |
| 1133 | + try! returnValue.addAnchor(anchor: networkGraph) |
| 1134 | +return returnValue |
1128 | 1135 | }
|
1129 | 1136 |
|
1130 | 1137 | /// Pays the given [`Invoice`], retrying if needed based on [`Retry`].
|
|
1157 | 1164 | let returnValue = Result_PaymentIdPaymentErrorZ(cType: nativeCallResult)
|
1158 | 1165 |
|
1159 | 1166 |
|
1160 |
| - return returnValue |
| 1167 | + try! returnValue.addAnchor(anchor: invoice) |
| 1168 | + try! returnValue.addAnchor(anchor: channelmanager) |
| 1169 | +return returnValue |
1161 | 1170 | }
|
1162 | 1171 |
|
1163 | 1172 | /// Pays the given [`Invoice`] with a custom idempotency key, retrying if needed based on [`Retry`].
|
|
1197 | 1206 | let returnValue = Result_NonePaymentErrorZ(cType: nativeCallResult)
|
1198 | 1207 |
|
1199 | 1208 |
|
1200 |
| - return returnValue |
| 1209 | + try! returnValue.addAnchor(anchor: invoice) |
| 1210 | + try! returnValue.addAnchor(anchor: channelmanager) |
| 1211 | +return returnValue |
1201 | 1212 | }
|
1202 | 1213 |
|
1203 | 1214 | /// Pays the given zero-value [`Invoice`] using the given amount, retrying if needed based on
|
|
1232 | 1243 | let returnValue = Result_PaymentIdPaymentErrorZ(cType: nativeCallResult)
|
1233 | 1244 |
|
1234 | 1245 |
|
1235 |
| - return returnValue |
| 1246 | + try! returnValue.addAnchor(anchor: invoice) |
| 1247 | + try! returnValue.addAnchor(anchor: channelmanager) |
| 1248 | +return returnValue |
1236 | 1249 | }
|
1237 | 1250 |
|
1238 | 1251 | /// Pays the given zero-value [`Invoice`] using the given amount and custom idempotency key,
|
|
1274 | 1287 | let returnValue = Result_NonePaymentErrorZ(cType: nativeCallResult)
|
1275 | 1288 |
|
1276 | 1289 |
|
1277 |
| - return returnValue |
| 1290 | + try! returnValue.addAnchor(anchor: invoice) |
| 1291 | + try! returnValue.addAnchor(anchor: channelmanager) |
| 1292 | +return returnValue |
1278 | 1293 | }
|
1279 | 1294 |
|
1280 | 1295 | /// Utility to create an invoice that can be paid to one of multiple nodes, or a \"phantom invoice.\"
|
|
1467 | 1482 | let returnValue = Result_InvoiceSignOrCreationErrorZ(cType: nativeCallResult)
|
1468 | 1483 |
|
1469 | 1484 |
|
1470 |
| - return returnValue |
| 1485 | + try! returnValue.addAnchor(anchor: channelmanager) |
| 1486 | +return returnValue |
1471 | 1487 | }
|
1472 | 1488 |
|
1473 | 1489 | /// Utility to construct an invoice. Generally, unless you want to do something like a custom
|
|
1509 | 1525 | let returnValue = Result_InvoiceSignOrCreationErrorZ(cType: nativeCallResult)
|
1510 | 1526 |
|
1511 | 1527 |
|
1512 |
| - return returnValue |
| 1528 | + try! returnValue.addAnchor(anchor: channelmanager) |
| 1529 | +return returnValue |
1513 | 1530 | }
|
1514 | 1531 |
|
1515 | 1532 | /// See [`create_invoice_from_channelmanager_with_description_hash`]
|
|
1538 | 1555 | let returnValue = Result_InvoiceSignOrCreationErrorZ(cType: nativeCallResult)
|
1539 | 1556 |
|
1540 | 1557 |
|
1541 |
| - return returnValue |
| 1558 | + try! returnValue.addAnchor(anchor: channelmanager) |
| 1559 | +return returnValue |
1542 | 1560 | }
|
1543 | 1561 |
|
1544 | 1562 | /// See [`create_invoice_from_channelmanager`]
|
|
1572 | 1590 | let returnValue = Result_InvoiceSignOrCreationErrorZ(cType: nativeCallResult)
|
1573 | 1591 |
|
1574 | 1592 |
|
1575 |
| - return returnValue |
| 1593 | + try! returnValue.addAnchor(anchor: channelmanager) |
| 1594 | +return returnValue |
1576 | 1595 | }
|
1577 | 1596 |
|
1578 | 1597 | /// See [`create_invoice_from_channelmanager_and_duration_since_epoch`]
|
|
1612 | 1631 | let returnValue = Result_InvoiceSignOrCreationErrorZ(cType: nativeCallResult)
|
1613 | 1632 |
|
1614 | 1633 |
|
1615 |
| - return returnValue |
| 1634 | + try! returnValue.addAnchor(anchor: channelmanager) |
| 1635 | +return returnValue |
1616 | 1636 | }
|
1617 | 1637 |
|
1618 | 1638 | /// Read a C2Tuple_BlockHashChannelMonitorZ from a byte array, created by C2Tuple_BlockHashChannelMonitorZ_write
|
|
0 commit comments