Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"lint:fix": "biome check --write ."
},
"dependencies": {
"@circle-fin/x402-batching": "^2.0.4",
"@circle-fin/x402-batching": "^3.0.2",
"@connectrpc/connect": "^2.0.0",
"@connectrpc/connect-web": "^2.0.0",
"@solana/codecs": "^2.1.0",
Expand Down
2 changes: 2 additions & 0 deletions src/gateway.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ export const CAIP2_TO_GATEWAY_CHAIN: Record<string, string> = {
'eip155:84532': 'baseSepolia',
'eip155:80002': 'polygonAmoy',
'eip155:5042002': 'arcTestnet',
'eip155:8453': 'base',
'eip155:137': 'polygon',
};
8 changes: 8 additions & 0 deletions test/gateway.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ describe('gateway module', () => {
it('maps Arc Testnet', () => {
expect(CAIP2_TO_GATEWAY_CHAIN['eip155:5042002']).toBe('arcTestnet');
});

it('maps Base Mainnet', () => {
expect(CAIP2_TO_GATEWAY_CHAIN['eip155:8453']).toBe('base');
});

it('maps Polygon Mainnet', () => {
expect(CAIP2_TO_GATEWAY_CHAIN['eip155:137']).toBe('polygon');
});
});

describe('re-exports', () => {
Expand Down