tinkle-community
4774348ed6
refactor: centralize x402 payment flow into shared mcp/x402.go
Extract duplicated doRequestWithPayment/call/CallWithRequestFull/buildRequest/
setAuthHeader (~165 lines x3) into shared helpers in mcp/x402.go. Consolidate
shared types (x402v2PaymentRequired, x402AcceptOption, x402Resource) and remove
duplicate Solana types. Fix validAfter to 0 (official SDK standard), drain 402
body before retry, log Payment-Response tx hash, check Payment-Required before
X-Payment-Required.
2026-03-11 15:42:19 +08:00
..
2025-11-15 23:04:53 -05:00
2026-03-11 15:42:19 +08:00
2026-03-11 15:42:19 +08:00
2026-03-08 17:44:50 +08:00
2026-03-08 17:29:21 +08:00
2026-03-11 15:42:19 +08:00
2025-12-08 01:43:22 +08:00
2026-03-08 17:29:21 +08:00
2025-12-08 01:43:22 +08:00
2026-03-10 00:14:01 +08:00
2025-12-08 01:43:22 +08:00
2025-12-08 01:43:22 +08:00
2025-12-08 01:43:22 +08:00
2025-12-11 15:16:59 +08:00
2025-12-11 15:16:59 +08:00
2026-03-08 17:29:21 +08:00
2025-12-11 15:16:59 +08:00
2025-12-08 01:43:22 +08:00
2026-03-09 23:18:51 +08:00
2026-03-09 23:18:51 +08:00
2025-12-08 01:43:22 +08:00
2026-03-08 00:22:16 +08:00
2025-12-08 01:43:22 +08:00
2026-03-10 00:14:01 +08:00
2025-12-08 01:43:22 +08:00
2025-12-08 01:43:22 +08:00
2025-12-08 01:43:22 +08:00
2025-12-08 01:43:22 +08:00
2026-03-08 17:10:07 +08:00
2026-03-11 15:42:19 +08:00