diff options
| author | Your Name <you@example.com> | 2026-05-17 04:37:15 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-17 04:37:15 +0530 |
| commit | cb4bd7d7c10cadcb43f82c09b13ffed744e541f7 (patch) | |
| tree | 1f01c31083e9252b7f41e89ba201373d6606a47d /tests/unit/Makefile | |
| parent | 78dd599277b8e8b2ddc39a4ae710ec91d737272e (diff) | |
Phase 5: Lightning auto-payout with LNURL-pay and NUT-05 melt
- New lnurl_pay.c/h: LNURL-pay protocol (GET .well-known/lnurlp + callback)
- New lightning_payout.c/h: threshold-based auto-payout with multi-recipient split
- Extended nucula_wallet bridge with nucula_wallet_melt() (NUT-05)
- Config: payout section with multi-mint, multi-recipient, fee_tolerance
- Default: enabled, TollGate@coinos.io, min_payout=128, min_balance=64
- 18 new unit tests (all passing), 134 total
Diffstat (limited to 'tests/unit/Makefile')
| -rw-r--r-- | tests/unit/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/unit/Makefile b/tests/unit/Makefile index e4ea388..f31172b 100644 --- a/tests/unit/Makefile +++ b/tests/unit/Makefile | |||
| @@ -17,11 +17,11 @@ CFLAGS := -Wall -Wextra -Wno-unused-parameter -Wno-unused-function -Wno-sign-com | |||
| 17 | -I $(SECP256K1_CFG) \ | 17 | -I $(SECP256K1_CFG) \ |
| 18 | -I /usr/include/cjson | 18 | -I /usr/include/cjson |
| 19 | 19 | ||
| 20 | LDFLAGS := -lmbedcrypto -lcjson | 20 | LDFLAGS := -lmbedcrypto -lcjson -lm |
| 21 | 21 | ||
| 22 | SECP256K1_OBJ := secp256k1.o precomputed_ecmult.o precomputed_ecmult_gen.o | 22 | SECP256K1_OBJ := secp256k1.o precomputed_ecmult.o precomputed_ecmult_gen.o |
| 23 | 23 | ||
| 24 | TESTS := test_geohash test_identity test_nostr_event test_cashu test_session test_tollgate_client | 24 | TESTS := test_geohash test_identity test_nostr_event test_cashu test_session test_tollgate_client test_lnurl_pay test_lightning_payout |
| 25 | 25 | ||
| 26 | .PHONY: all test clean $(TESTS) | 26 | .PHONY: all test clean $(TESTS) |
| 27 | 27 | ||
| @@ -65,5 +65,11 @@ test_session: test_session.c $(REPO_ROOT)/main/session.c | |||
| 65 | test_tollgate_client: test_tollgate_client.c | 65 | test_tollgate_client: test_tollgate_client.c |
| 66 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) | 66 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) |
| 67 | 67 | ||
| 68 | test_lnurl_pay: test_lnurl_pay.c | ||
| 69 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) | ||
| 70 | |||
| 71 | test_lightning_payout: test_lightning_payout.c | ||
| 72 | $(CC) $(CFLAGS) $< -o $@ $(LDFLAGS) | ||
| 73 | |||
| 68 | clean: | 74 | clean: |
| 69 | rm -f $(TESTS) $(SECP256K1_OBJ) | 75 | rm -f $(TESTS) $(SECP256K1_OBJ) |