beignet 0.7.4 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +427 -586
- package/dist/cli/beignet-node.js +3 -1
- package/dist/cli/beignet-node.js.map +1 -1
- package/dist/lightning/node/lightning-node.js +16 -7
- package/dist/lightning/node/lightning-node.js.map +1 -1
- package/dist/lightning/offer/offer-manager.js +6 -0
- package/dist/lightning/offer/offer-manager.js.map +1 -1
- package/dist/types/lightning/offer/offer-manager.d.ts +4 -0
- package/docs/RECOVERY-PROTOCOL.md +131 -6
- package/package.json +2 -2
package/dist/cli/beignet-node.js
CHANGED
|
@@ -2640,7 +2640,9 @@ class BeignetNode extends events_1.EventEmitter {
|
|
|
2640
2640
|
}
|
|
2641
2641
|
listOffers() {
|
|
2642
2642
|
const mgr = this.node.getOfferManager();
|
|
2643
|
-
return mgr
|
|
2643
|
+
return mgr
|
|
2644
|
+
.listOfferEntries()
|
|
2645
|
+
.map(({ offer, encoded }) => this.toOfferInfo(offer, encoded));
|
|
2644
2646
|
}
|
|
2645
2647
|
async payOffer(offerStr, amountSats, timeoutMs = 60000) {
|
|
2646
2648
|
const offer = (0, decode_2.decodeOffer)(offerStr);
|