Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@quicknode/x402",
"version": "0.1.3",
"version": "0.1.4",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Version mismatch between package.json and package-lock.json

Medium Severity

The package.json version is set to 0.1.4 while package-lock.json version is 0.1.3. The PR description states the intent is to bump to 0.1.3, but the two files disagree. This means the published package version won't match what the lock file records, and running npm install will cause the lock file to be modified unexpectedly.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit ddfb851. Configure here.

"description": "Quicknode x402 client — multi-chain payment, SIWX auth, session management",
"license": "MIT",
"publishConfig": {
Expand Down 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