fedimint_ln_client

Module pay

Source

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 the derive statement causes it to be ignored for some reason, so instead the enum declaration is wrapped in its own module.

Structsยง

LightningPayCommon
LightningPayCreatedOutgoingLnContract
LightningPayFunded
LightningPayRefund
LightningPayRefundable
LightningPayStateMachine
PayInvoicePayload

Enumsยง

GatewayPayError
LightningPayStates
State machine that requests the lightning gateway to pay an invoice on behalf of a federation client.
PaymentData
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