paid-services 3.17.1 → 3.17.2
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 +1 -1
- package/package.json +1 -1
- package/trades/buy_channel.js +1 -1
- package/trades/buy_preimage.js +1 -1
- package/trades/create_channel_sale.js +6 -6
- package/trades/create_trade.js +7 -7
- package/trades/find_trade.js +1 -1
- package/trades/manage_trade.js +4 -4
- package/trades/manage_trades.js +3 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"integration-tests": "tap -j 2 --branches=1 --functions=1 --lines=1 --statements=1 -t 180 test/integration/*.js",
|
|
48
48
|
"test": "tap --branches=1 --functions=1 --lines=1 --statements=1 -t 60 test/actions/*.js test/balanced/*.js test/capacity/*.js test/client/*.js test/config/*.js test/p2p/*.js test/records/*.js test/respond/*.js test/server/*.js test/server/*.js test/services/*.js test/trades/*.js"
|
|
49
49
|
},
|
|
50
|
-
"version": "3.17.
|
|
50
|
+
"version": "3.17.2"
|
|
51
51
|
}
|
package/trades/buy_channel.js
CHANGED
package/trades/buy_preimage.js
CHANGED
|
@@ -112,7 +112,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
112
112
|
return true;
|
|
113
113
|
},
|
|
114
114
|
},
|
|
115
|
-
cbk);
|
|
115
|
+
res => cbk(null, res));
|
|
116
116
|
}],
|
|
117
117
|
|
|
118
118
|
// Select method of pricing
|
|
@@ -128,7 +128,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
128
128
|
name: 'action',
|
|
129
129
|
type: 'list',
|
|
130
130
|
},
|
|
131
|
-
cbk);
|
|
131
|
+
res => cbk(null, res));
|
|
132
132
|
}],
|
|
133
133
|
|
|
134
134
|
// Ask for fiat based cost
|
|
@@ -156,7 +156,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
156
156
|
return true;
|
|
157
157
|
},
|
|
158
158
|
},
|
|
159
|
-
cbk);
|
|
159
|
+
res => cbk(null, res));
|
|
160
160
|
}],
|
|
161
161
|
|
|
162
162
|
// Ask for absolute cost
|
|
@@ -189,7 +189,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
189
189
|
return true;
|
|
190
190
|
},
|
|
191
191
|
},
|
|
192
|
-
cbk);
|
|
192
|
+
res => cbk(null, res));
|
|
193
193
|
}],
|
|
194
194
|
|
|
195
195
|
// Ask for rate-based cost
|
|
@@ -222,7 +222,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
222
222
|
return true;
|
|
223
223
|
},
|
|
224
224
|
},
|
|
225
|
-
cbk);
|
|
225
|
+
res => cbk(null, res));
|
|
226
226
|
}],
|
|
227
227
|
|
|
228
228
|
// Ask for the expiration of the channel sale
|
|
@@ -239,7 +239,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
239
239
|
return true;
|
|
240
240
|
},
|
|
241
241
|
},
|
|
242
|
-
cbk);
|
|
242
|
+
res => cbk(null, res));
|
|
243
243
|
}],
|
|
244
244
|
|
|
245
245
|
// Check ability to get fiat prices
|
package/trades/create_trade.js
CHANGED
|
@@ -88,7 +88,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
88
88
|
return true;
|
|
89
89
|
},
|
|
90
90
|
},
|
|
91
|
-
cbk);
|
|
91
|
+
res => cbk(null, res));
|
|
92
92
|
}],
|
|
93
93
|
|
|
94
94
|
// Get the public channels to use for an open trade
|
|
@@ -129,7 +129,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
129
129
|
return true;
|
|
130
130
|
},
|
|
131
131
|
},
|
|
132
|
-
cbk);
|
|
132
|
+
res => cbk(null, res));
|
|
133
133
|
}],
|
|
134
134
|
|
|
135
135
|
// Ask for the actual payload of the trade
|
|
@@ -150,7 +150,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
150
150
|
return true;
|
|
151
151
|
},
|
|
152
152
|
},
|
|
153
|
-
cbk);
|
|
153
|
+
res => cbk(null, res));
|
|
154
154
|
}],
|
|
155
155
|
|
|
156
156
|
// Select pricing type
|
|
@@ -173,7 +173,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
173
173
|
name: 'type',
|
|
174
174
|
type: 'list',
|
|
175
175
|
},
|
|
176
|
-
cbk);
|
|
176
|
+
res => cbk(null, res));
|
|
177
177
|
}],
|
|
178
178
|
|
|
179
179
|
// Ask for the fiat price of the secret
|
|
@@ -201,7 +201,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
201
201
|
return true;
|
|
202
202
|
},
|
|
203
203
|
},
|
|
204
|
-
cbk);
|
|
204
|
+
res => cbk(null, res));
|
|
205
205
|
}],
|
|
206
206
|
|
|
207
207
|
// Ask for the price of the secret
|
|
@@ -234,7 +234,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
234
234
|
return true;
|
|
235
235
|
},
|
|
236
236
|
},
|
|
237
|
-
cbk);
|
|
237
|
+
res => cbk(null, res));
|
|
238
238
|
}],
|
|
239
239
|
|
|
240
240
|
// Ask for the expiration of the trade
|
|
@@ -252,7 +252,7 @@ module.exports = ({ask, lnd, logger, request}, cbk) => {
|
|
|
252
252
|
return true;
|
|
253
253
|
},
|
|
254
254
|
},
|
|
255
|
-
cbk);
|
|
255
|
+
res => cbk(null, res));
|
|
256
256
|
}],
|
|
257
257
|
|
|
258
258
|
// Get the conversion to tokens for fiat
|
package/trades/find_trade.js
CHANGED
package/trades/manage_trade.js
CHANGED
|
@@ -56,7 +56,7 @@ module.exports = ({ask, lnd, logger}, cbk) => {
|
|
|
56
56
|
type: 'input',
|
|
57
57
|
validate: input => !!input,
|
|
58
58
|
},
|
|
59
|
-
cbk);
|
|
59
|
+
res => cbk(null, res));
|
|
60
60
|
}],
|
|
61
61
|
|
|
62
62
|
// Derive the self public key
|
|
@@ -182,7 +182,7 @@ module.exports = ({ask, lnd, logger}, cbk) => {
|
|
|
182
182
|
name: 'action',
|
|
183
183
|
type: 'list',
|
|
184
184
|
},
|
|
185
|
-
cbk);
|
|
185
|
+
res => cbk(null, res));
|
|
186
186
|
}],
|
|
187
187
|
|
|
188
188
|
// Cancel past offer
|
|
@@ -244,7 +244,7 @@ module.exports = ({ask, lnd, logger}, cbk) => {
|
|
|
244
244
|
name: 'action',
|
|
245
245
|
type: 'list',
|
|
246
246
|
},
|
|
247
|
-
cbk);
|
|
247
|
+
res => cbk(null, res));
|
|
248
248
|
}],
|
|
249
249
|
|
|
250
250
|
// Ask for preimage in case it is separately known
|
|
@@ -279,7 +279,7 @@ module.exports = ({ask, lnd, logger}, cbk) => {
|
|
|
279
279
|
return true;
|
|
280
280
|
},
|
|
281
281
|
},
|
|
282
|
-
cbk);
|
|
282
|
+
res => cbk(null, res));
|
|
283
283
|
}],
|
|
284
284
|
|
|
285
285
|
// Pay and get the preimage through paying for it
|
package/trades/manage_trades.js
CHANGED
|
@@ -95,7 +95,7 @@ module.exports = ({ask, lnd, logger, request, separator}, cbk) => {
|
|
|
95
95
|
name: 'action',
|
|
96
96
|
type: 'list',
|
|
97
97
|
},
|
|
98
|
-
cbk);
|
|
98
|
+
res => cbk(null, res));
|
|
99
99
|
}],
|
|
100
100
|
|
|
101
101
|
// Confirm that signer RPC is enabled, this is required for trade secret
|
|
@@ -212,7 +212,7 @@ module.exports = ({ask, lnd, logger, request, separator}, cbk) => {
|
|
|
212
212
|
name: 'manage',
|
|
213
213
|
type: 'list',
|
|
214
214
|
},
|
|
215
|
-
cbk);
|
|
215
|
+
res => cbk(null, res));
|
|
216
216
|
}],
|
|
217
217
|
|
|
218
218
|
// Manage an open trades
|
|
@@ -232,7 +232,7 @@ module.exports = ({ask, lnd, logger, request, separator}, cbk) => {
|
|
|
232
232
|
name: 'trade',
|
|
233
233
|
type: 'list',
|
|
234
234
|
},
|
|
235
|
-
cbk);
|
|
235
|
+
res => cbk(null, res));
|
|
236
236
|
}],
|
|
237
237
|
|
|
238
238
|
// Service an open trade
|