Any token (replaces the BridgePay/LocalAppKitSdk simulation, now deleted):
- lib/any-token.ts: Relay/LI.FI router from ROUTING_* env, per-session
destination (the token the verifier checks), policy-checked EXACT_OUTPUT
quotes stored as session.route, status polling that settles ONLY through
recordAndConfirm on the destination fill (routed fills skip the payer and
memo bindings, never payTo/amount/token/time); provider success without a
qualifying transfer is reported as unverified and stays unpaid
- routes [sessionId]/route/{quote,status} with the same-origin guard
- AnyTokenPay: origin chain + token picker, fees and quote TTL, EIP-6963
execution of the provider's transactions, deposit-address QR fallback,
progress, refund notice
- network changes are locked while a route moves funds; a payment confirmed
by the worker now completes and fulfils the session on the next confirm
HyperCore: runtime (HYPERCORE_*), usdSend params/submit/status routes,
HyperCorePay (wallet signs usdSend, manual hash fallback), verify-payment
case, network options, explorer links.
Tempo: evm params expose memoRequired; sessions with requireMemo only settle
with transferWithMemo(keccak256(sessionId)).
Per-network payment components are lazy-loaded; the Arc demo wallet is
labelled as a simulation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- lib/evm.ts loads enabled EVM chains with the same loader as the API and
worker; lib/zcash.ts adds the transparent Zcash runtime, quote locking,
verification and a 60 s per-payTo address scan cache
- verify-payment is an exhaustive switch over every PaymentNetwork; a
network without a runtime fails closed; bindings come from the session
(payTo per network, notBefore = createdAt, payer, Tempo memo, ZEC quote)
- store claims a valid transfer still awaiting confirmations (or a late
Zcash payment) as a pending payment and reports payment_pending /
payment_under_review instead of a hard failure
- tx-hash re-exports @settlekit/chains; format gains registry-backed
network + asset labels (USDC, USDG, USDC.e, pathUSD, ZEC) and badges
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- recordAndConfirm verifies every network on-chain (Solana via
@settlekit/solana, Arc via @settlekit/arc) and fails closed when a
network has no configured verifier; Solana requires the session
reference
- network-aware tx hash validation on the confirm route and form
- duplicate tx hash (lookup or unique violation) -> 409 conflict
- confirmFromReference finds Solana Pay payments by reference, idempotent
- fulfillment runs once per confirmed payment: entitlement row via
@settlekit/entitlements plus a real GitHub App invite
(grantGitHubRepoAccess); missing GitHub App env shows pending setup,
never a fabricated invite link
- receipts carry explorer links (Solscan for Solana)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>