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
8 changes: 8 additions & 0 deletions typescript/packages/x402/src/types/shared/evm/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ export const config: Record<string, ChainConfig> = {
usdcAddress: "0xbbA60da06c2c5424f03f7434542280FCAd453d10",
usdcName: "USDC",
},
"1135": {
usdcAddress: "0xF242275d3a6527d877f2c927a82D9b057609cc71",
usdcName: "Bridged USDC",
},
"4202": {
usdcAddress: "0x0E82fDDAd51cc3ac12b69761C45bBCB9A2Bf3C83",
usdcName: "Bridged USDC",
},
"2741": {
usdcAddress: "0x84a71ccd554cc1b02749b35d22f684cc8ec987e1",
usdcName: "Bridged USDC",
Expand Down
6 changes: 6 additions & 0 deletions typescript/packages/x402/src/types/shared/evm/wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ import {
avalanche,
iotexTestnet,
iotex,
lisk,
liskSepolia,
abstract,
abstractTestnet,
story,
Expand Down Expand Up @@ -229,6 +231,10 @@ export function getChainFromNetwork(network: string | undefined): Chain {
return iotex;
case "iotex-testnet":
return iotexTestnet;
case "lisk":
return lisk;
case "lisk-sepolia":
return liskSepolia;
default:
throw new Error(`Unsupported network: ${network}`);
}
Expand Down
6 changes: 6 additions & 0 deletions typescript/packages/x402/src/types/shared/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export const NetworkSchema = z.enum([
"polygon",
"polygon-amoy",
"peaq",
"lisk",
"lisk-sepolia",
"story",
]);
export type Network = z.infer<typeof NetworkSchema>;
Expand All @@ -33,6 +35,8 @@ export const SupportedEVMNetworks: Network[] = [
"polygon",
"polygon-amoy",
"peaq",
"lisk",
"lisk-sepolia",
"story",
];
export const EvmNetworkToChainId = new Map<Network, number>([
Expand All @@ -48,6 +52,8 @@ export const EvmNetworkToChainId = new Map<Network, number>([
["polygon", 137],
["polygon-amoy", 80002],
["peaq", 3338],
["lisk", 1135],
["lisk-sepolia", 4202],
["story", 1514],
]);

Expand Down