wildcard import
This commit is contained in:
parent
ba411e4212
commit
79280e2d30
1 changed files with 4 additions and 8 deletions
|
|
@ -30,11 +30,7 @@ const {
|
||||||
const GunActions = require('../services/gunDB/contact-api/actions')
|
const GunActions = require('../services/gunDB/contact-api/actions')
|
||||||
const GunGetters = require('../services/gunDB/contact-api/getters')
|
const GunGetters = require('../services/gunDB/contact-api/getters')
|
||||||
const GunKey = require('../services/gunDB/contact-api/key')
|
const GunKey = require('../services/gunDB/contact-api/key')
|
||||||
const {
|
const LV2 = require('../utils/lightningServices/v2')
|
||||||
sendPaymentV2Keysend,
|
|
||||||
sendPaymentV2Invoice,
|
|
||||||
listPayments
|
|
||||||
} = require('../utils/lightningServices/v2')
|
|
||||||
const GunWriteRPC = require('../services/gunDB/rpc')
|
const GunWriteRPC = require('../services/gunDB/rpc')
|
||||||
|
|
||||||
const DEFAULT_MAX_NUM_ROUTES_TO_QUERY = 10
|
const DEFAULT_MAX_NUM_ROUTES_TO_QUERY = 10
|
||||||
|
|
@ -1375,7 +1371,7 @@ module.exports = async (
|
||||||
}
|
}
|
||||||
|
|
||||||
return res.status(200).json(
|
return res.status(200).json(
|
||||||
await listPayments({
|
await LV2.listPayments({
|
||||||
include_incomplete,
|
include_incomplete,
|
||||||
index_offset,
|
index_offset,
|
||||||
max_payments,
|
max_payments,
|
||||||
|
|
@ -1662,7 +1658,7 @@ module.exports = async (
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const payment = await sendPaymentV2Keysend({
|
const payment = await LV2.sendPaymentV2Keysend({
|
||||||
amt,
|
amt,
|
||||||
dest,
|
dest,
|
||||||
feeLimit,
|
feeLimit,
|
||||||
|
|
@ -1675,7 +1671,7 @@ module.exports = async (
|
||||||
}
|
}
|
||||||
const { payreq } = req.body
|
const { payreq } = req.body
|
||||||
|
|
||||||
const payment = await sendPaymentV2Invoice({
|
const payment = await LV2.sendPaymentV2Invoice({
|
||||||
feeLimit,
|
feeLimit,
|
||||||
payment_request: payreq,
|
payment_request: payreq,
|
||||||
amt: req.body.amt,
|
amt: req.body.amt,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue