Skip to content

feat: Nirium on Arbitrum - 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 Arbitrum: 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 Arbitrum's networks and USDC contracts.

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

Network Tx Receipt
Arbitrum Sepolia 0xd423c455… 18/18 checks
Arbitrum One 0x47be2a4a… 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 Arbitrum yet, and Arbitrum 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 Arbitrum networks and USDC
domains. Selftests on 1 Dec 2026 (team funds, not usage): Arbitrum Sepolia 0xd423c455 and
Arbitrum One 0x47be2a4a, 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 Arbitrum, ported from the nirium-avalanche EVM code. The selftest receipts for Arbitrum Sepolia (0xd423c455) and Arbitrum One (0x47be2a4a) are in evidence/2026-12-01 and verify against the chain. The verifier fixtures now use our own Arbitrum One tx instead of a Base tx copied by mistake; 10/10. Tests use this repo's own receipts; CI passes, CodeQL skipped while private. Approving.

@M0nsxx
M0nsxx merged commit 5eb91fc into main Dec 1, 2026
3 checks passed
@Eras256
Eras256 deleted the feat/initial-code branch December 3, 2026 06:01
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