Modulesยง
- lightningpay ๐
lightningpay
module is needed to suppress the deprecation warning on the enum declaration. Suppressing the deprecation warning on the enum declaration is not enough, since thederive
statement causes it to be ignored for some reason, so instead the enum declaration is wrapped in its own module.
Structsยง
- Lightning
PayCommon - Lightning
PayCreated Outgoing LnContract - Lightning
PayFunded - Lightning
PayRefund - Lightning
PayRefundable - Lightning
PayState Machine - PayInvoice
Payload
Enumsยง
- Gateway
PayError - Lightning
PayStates - State machine that requests the lightning gateway to pay an invoice on behalf of a federation client.
- Payment
Data - Data needed to pay an invoice, may be the whole invoice or only the required parts of it.
Constantsยง
- RETRY_
DELAY ๐
Functionsยง
- await_
contract_ ๐cancelled - Waits for a contract with
contract_id
to be cancelled by the gateway. - await_
contract_ ๐timeout - Waits until a specific block height at which the contract will be able to be reclaimed.
- try_
refund_ ๐outgoing_ contract - Claims a refund for an expired or cancelled outgoing contract