Skip to content

feat: Nirium on Base - verifier, policy, pay/charge library, market - #1

Merged
M0nsxx merged 2 commits into
mainfrom
feat/initial-code
Dec 1, 2026
Merged

M0nsxx merged 2 commits into
mainfrom
feat/initial-code

Conversation

@Eras256

@Eras256 Eras256 commented Dec 1, 2026

Copy link
Copy Markdown
Member

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-avalanche EVM code, with Base's networks and USDC contracts.

Selftests, 1 Dec 2026 (team funds, labeled selftest, not usage):

Network Tx Receipt
Base Sepolia 0xa89dde53… 18/18 checks
Base mainnet 0xaa086c5e… 18/18 checks

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 with verify-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

Eras256 and others added 2 commits December 1, 2026 15:29
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 M0nsxx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@M0nsxx
M0nsxx merged commit 9fb0041 into main Dec 1, 2026
3 checks passed
@Eras256
Eras256 deleted the feat/initial-code branch December 3, 2026 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants