paid-services 9.1.0 → 9.2.0
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/CHANGELOG.md +5 -0
- package/index.js +4 -0
- package/offers/pay_offer_invoice.js +3 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Versions
|
|
2
2
|
|
|
3
|
+
## Version 9.2.0
|
|
4
|
+
|
|
5
|
+
- `getOfferInvoice`: Add method to get an invoice for a BOLT 12 offer
|
|
6
|
+
- `payOfferInvoice`: Add method to pay a BOLT 12 invoice
|
|
7
|
+
|
|
3
8
|
## Version 9.1.0
|
|
4
9
|
|
|
5
10
|
- `createGroupFanout`: Fix error response for an invalid key spend signature
|
package/index.js
CHANGED
|
@@ -7,6 +7,7 @@ const {createSupportOffer} = require('./support');
|
|
|
7
7
|
const {decodeTrade} = require('./trades');
|
|
8
8
|
const {encodeTrade} = require('./trades');
|
|
9
9
|
const {getAnchoredTrade} = require('./trades');
|
|
10
|
+
const {getOfferInvoice} = require('./offers');
|
|
10
11
|
const {getServiceSchema} = require('./client');
|
|
11
12
|
const {getServicesList} = require('./client');
|
|
12
13
|
const {joinGroupChannel} = require('./groups');
|
|
@@ -16,6 +17,7 @@ const {makeServiceRequest} = require('./client');
|
|
|
16
17
|
const {manageGroupJoin} = require('./groups');
|
|
17
18
|
const {manageSwap} = require('./swaps');
|
|
18
19
|
const {manageTrades} = require('./trades');
|
|
20
|
+
const {payOfferInvoice} = require('./offers');
|
|
19
21
|
const {schema} = require('./services');
|
|
20
22
|
const {serviceAnchoredTrades} = require('./trades');
|
|
21
23
|
const {servicePaidRequests} = require('./server');
|
|
@@ -34,6 +36,7 @@ module.exports = {
|
|
|
34
36
|
decodeTrade,
|
|
35
37
|
encodeTrade,
|
|
36
38
|
getAnchoredTrade,
|
|
39
|
+
getOfferInvoice,
|
|
37
40
|
getServiceSchema,
|
|
38
41
|
getServicesList,
|
|
39
42
|
joinGroupChannel,
|
|
@@ -43,6 +46,7 @@ module.exports = {
|
|
|
43
46
|
manageGroupJoin,
|
|
44
47
|
manageSwap,
|
|
45
48
|
manageTrades,
|
|
49
|
+
payOfferInvoice,
|
|
46
50
|
serviceAnchoredTrades,
|
|
47
51
|
serviceIds,
|
|
48
52
|
servicePaidRequests,
|
|
@@ -11,6 +11,9 @@ const isMtokens = n => typeof n === 'string' && /^\d+$/.test(n);
|
|
|
11
11
|
|
|
12
12
|
/** Pay a BOLT 12 invoice over its blinded payment paths
|
|
13
13
|
|
|
14
|
+
The invoice is not checked against an offer. Pay an invoice from
|
|
15
|
+
`getOfferInvoice`, which checks that it is for the offer and amount asked.
|
|
16
|
+
|
|
14
17
|
{
|
|
15
18
|
invoice: <BOLT 12 Invoice String>
|
|
16
19
|
lnd: <Authenticated LND API Object>
|
package/package.json
CHANGED
|
@@ -73,5 +73,5 @@
|
|
|
73
73
|
"integration-tests": "node test/integration",
|
|
74
74
|
"test": "node --experimental-test-coverage --test test/actions/*.js test/balanced/*.js test/client/*.js test/config/*.js test/network/*.js test/offers/*.js test/p2p/*.js test/records/*.js test/respond/*.js test/server/*.js test/service_records/*.js test/swaps/*.js test/services/*.js test/support/*.js test/trades/*.js"
|
|
75
75
|
},
|
|
76
|
-
"version": "9.
|
|
76
|
+
"version": "9.2.0"
|
|
77
77
|
}
|