Repository navigation
feat: Nirium on Base - verifier, policy, pay/charge library, market - #1
Merged
Merged
Conversation
Ported from the nirium-avalanche EVM code with Base networks and USDC domains. Selftests on 1 Dec 2026 (team funds, not usage): Base Sepolia 0xa89dde53 and Base mainnet 0xaa086c5e, each with a payer-signed receipt that verifies 18/18. Verifier fixtures: 10/10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…eipts The tests were ported with the Avalanche code and still read Fuji evidence (evidence/2026-11-26), which this repo does not have, so CI failed. They now use the 1 Dec 2026 Sepolia selftest receipt and its recorded RPC answers. CodeQL is skipped while the repo is private (code scanning needs Advanced Security). npm test 40/40, run-tests.sh 10/10. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
M0nsxx
approved these changes
Dec 1, 2026
M0nsxx
left a comment
Member
There was a problem hiding this comment.
AI-assisted review (Claude)
Reviewed the PR: Nirium on Base, ported from the nirium-avalanche EVM code with Base networks and USDC domains (USDC on Sepolia, USD Coin on mainnet). The selftest receipts for Base Sepolia (0xa89dde53) and Base mainnet (0xaa086c5e) are in evidence/2026-12-01 and verify against the chain. Tests now use this repo's own receipts; CI passes, CodeQL skipped while private. No keys or local paths in the diff. Approving.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
First code for Nirium on Base: the payer-signed receipt verifier, the pre-sign policy, the pay/charge library (x402 through PayAI) and the x402 market. Ported from the
nirium-avalancheEVM code, with Base's networks and USDC contracts.Selftests, 1 Dec 2026 (team funds, labeled
selftest, not usage):0xa89dde53…0xaa086c5e…PayAI paid the gas on both; the payer holds no ETH. The receipts are in
evidence/2026-12-01/, and each verifies against the chain withverify-evm-receipt.mjs(exit 0).Tests: verifier fixtures 10/10 (
bash run-tests.sh). CI runs the suites on every PR.Not in this PR: the market is not deployed, Reporting on the node does not count Base yet, and Base is not on nirium.xyz/chains (that waits for a Mexico legal check).
The repo is private. Keys live outside it, and a sweep found no secrets, local paths or internal names.
🤖 Generated with Claude Code