Skip to main content

Crate lnv2_module_tests

Crate lnv2_module_tests 

Source

Modulesยง

common ๐Ÿ”’

Structsยง

Cli ๐Ÿ”’
LnUrlPayInvoiceResponse ๐Ÿ”’
LnUrlPayResponse ๐Ÿ”’

Enumsยง

Commands ๐Ÿ”’

Constantsยง

LNURL_BALANCE_WAIT_ATTEMPTS ๐Ÿ”’

Functionsยง

add_gateway ๐Ÿ”’
assert_module_sanity ๐Ÿ”’
fetch_invoice ๐Ÿ”’
generate_lnurl ๐Ÿ”’
join_client ๐Ÿ”’
Creates a fresh client and joins it to the federation identified by invite_code, unlike Federation::new_joined_client which always joins whichever federation last wrote the shared invite-code file.
main ๐Ÿ”’
module_is_present ๐Ÿ”’
pegin_gateways ๐Ÿ”’
remove_gateway ๐Ÿ”’
test_duplicate_payment ๐Ÿ”’
Three independent clients โ€” two in the primary federation and one in a second federation, all served by the same gateway โ€” race to pay the same invoice. The gateway pays the invoice only once, so it may claim only one of the three outgoing contracts regardless of which federation funded them; the other two must be forfeited and refunded. Exactly one payment settles.
test_fees ๐Ÿ”’
test_gateway_registration ๐Ÿ”’
test_iroh_payment ๐Ÿ”’
test_lnurl_pay ๐Ÿ”’
test_lnurl_recovery ๐Ÿ”’
Tests LNURL receives after recovery from seed.
test_payments ๐Ÿ”’
verify_payment ๐Ÿ”’
verify_payment_wait ๐Ÿ”’
verify_preimage ๐Ÿ”’
wait_for_lnurl_balance ๐Ÿ”’