Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lnd_methods/offchain/pay.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const payViaRoutes = require('./pay_via_routes');
[pathfinding_timeout]: <Time to Spend Finding a Route Milliseconds Number>
[request]: <BOLT 11 Payment Request String>
[tokens]: <Total Tokens To Pay to Payment Request Number>
[amp]: <Should Use AMP (atomic multipath payment) Bool>
}

@returns via cbk or Promise
Expand Down Expand Up @@ -142,6 +143,7 @@ module.exports = (args, cbk) => {
pathfinding_timeout: args.pathfinding_timeout,
request: args.request,
tokens: args.tokens,
amp: args.amp
},
cbk);
}],
Expand Down
2 changes: 2 additions & 0 deletions lnd_methods/offchain/pay_via_payment_details.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ export type PayViaPaymentDetailsArgs = AuthenticatedLightningArgs<{
}[][];
/** Tokens To Pay */
tokens?: number;
/** Use AMP (atomic multipath payment) Bool> */
amp?: boolean;
}>;

export type PayViaPaymentDetailsResult = {
Expand Down
2 changes: 2 additions & 0 deletions lnd_methods/offchain/pay_via_payment_details.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ const type = 'router';
public_key: <Forward Edge Public Key Hex String>
}]]
[tokens]: <Tokens To Pay Number>
[amp]: <Should Use AMP (atomic multipath payment) Bool>
}

@returns via cbk or Promise
Expand Down Expand Up @@ -130,6 +131,7 @@ module.exports = (args, cbk) => {
payment: args.payment,
routes: args.routes,
tokens: args.tokens,
amp: args.amp
});

const finished = (err, res) => {
Expand Down
2 changes: 2 additions & 0 deletions lnd_methods/offchain/pay_via_payment_request.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ export type PayViaPaymentRequestArgs = AuthenticatedLightningArgs<{
request: string;
/** Tokens To Pay */
tokens?: number;
/** Use AMP (atomic multipath payment) Bool> */
amp?: boolean;
}>;

export type PayViaPaymentRequestResult = {
Expand Down
2 changes: 2 additions & 0 deletions lnd_methods/offchain/pay_via_payment_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ const type = 'router';
[pathfinding_timeout]: <Time to Spend Finding a Route Milliseconds Number>
request: <BOLT 11 Payment Request String>
[tokens]: <Tokens To Pay Number>
[amp]: <Should Use AMP (atomic multipath payment) Bool>
}

@returns via cbk or Promise
Expand Down Expand Up @@ -108,6 +109,7 @@ module.exports = (args, cbk) => {
pathfinding_timeout: args.pathfinding_timeout,
request: args.request,
tokens: args.tokens,
amp: args.amp
});

const finished = (err, res) => {
Expand Down
2 changes: 2 additions & 0 deletions lnd_methods/offchain/subscribe_to_pay.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ export type SubscribeToPayOptionsArgs = {
}[][];
/** Tokens to Pay Number> */
tokens?: number;
/** Use AMP (atomic multipath payment) Bool> */
amp?: boolean;
};

export type SubscribeToPayArgs = AuthenticatedLightningArgs<
Expand Down
2 changes: 2 additions & 0 deletions lnd_methods/offchain/subscribe_to_pay.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ const unsupportedFeatures = [30, 31];
public_key: <Forward Edge Public Key Hex String>
}]]
[tokens]: <Tokens to Probe Number>
[amp]: <Should Use AMP (atomic multipath payment) Bool>
}

@throws
Expand Down Expand Up @@ -430,6 +431,7 @@ module.exports = args => {
route_hints: !hints.length ? undefined : hints,
time_pref: asTimePreference(args.confidence),
timeout_seconds: timeoutSecs || defaultTimeoutSeconds,
amp: !!args.amp
});
}],

Expand Down
2 changes: 2 additions & 0 deletions lnd_methods/offchain/subscribe_to_pay_via_details.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const type = 'router';
public_key: <Forward Edge Public Key Hex String>
}]]
[tokens]: <Tokens to Pay Number>
[amp]: <Should Use AMP (atomic multipath payment) Bool>
}

@throws
Expand Down Expand Up @@ -214,5 +215,6 @@ module.exports = args => {
payment: args.payment,
routes: args.routes,
tokens: args.tokens,
amp: args.amp
});
};
2 changes: 2 additions & 0 deletions lnd_methods/offchain/subscribe_to_pay_via_request.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const type = 'router';
[pathfinding_timeout]: <Time to Spend Finding a Route Milliseconds Number>
request: <BOLT 11 Payment Request String>
[tokens]: <Tokens To Pay Number>
[amp]: <Should Use AMP (atomic multipath payment) Bool>
}

@throws
Expand Down Expand Up @@ -189,5 +190,6 @@ module.exports = args => {
pathfinding_timeout: args.pathfinding_timeout,
request: args.request,
tokens: args.tokens,
amp: args.amp,
});
};