x402 icon indicating copy to clipboard operation
x402 copied to clipboard

Adds TypeScript support for 0G networks

Open mandatedisrael opened this issue 2 months ago • 2 comments

Description

Adds TypeScript support for 0G networks:

  • 0G Aristotle Mainnet (chainId: 16661)
  • 0G Galileo Testnet (chainId: 16602)

Key changes:

  • Network schema: add 0G Mainnet(Aristotle ) and 0G Testnet(Galileo)
  • Update viem to version ^2.38.2 for the support of 0G Mainnet and Testnet
  • EVM chain IDs: map 16661 and 16602
  • USDC config: add mainnet/testnet addresses
  • EVM wallet: map zeroGMainnet/zeroGGalileoTestnet to viem chains
  • Tests: cover default asset selection for both networks
  • Paywall: regenerated artifacts as required by CONTRIBUTING.md

Tests

  • Ran TypeScript package tests:
    • pnpm -C typescript test — all packages passed
  • Rebuilt paywall:
    • pnpm -C typescript/packages/x402 build:paywall

Checklist

  • [X] I have formatted and linted my code
  • [X] All new and existing tests pass
  • [X] My commits are signed (required for merge)

mandatedisrael avatar Oct 15 '25 11:10 mandatedisrael

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

cb-heimdall avatar Oct 15 '25 11:10 cb-heimdall

@mandatedisrael is attempting to deploy a commit to the Coinbase Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Oct 15 '25 11:10 vercel[bot]