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ยง
Enumsยง
- State machine that requests the lightning gateway to pay an invoice on behalf of a federation client.
- Data needed to pay an invoice, may be the whole invoice or only the required parts of it.
Constantsยง
- RETRY_
DELAY ๐
Functionsยง
- Waits for a contract with
contract_id
to be cancelled by the gateway. - Waits until a specific block height at which the contract will be able to be reclaimed.
- Claims a refund for an expired or cancelled outgoing contract