Skip to content

Commit 8b3f265

Browse files
authored
add polygon support (#55)
1 parent be22b0a commit 8b3f265

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/lib/config/features.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ export const supportedWallets = {
1111
export const SUPPORTED_CHAINS = [
1212
'1', '0x1', // ETH Mainnet
1313
'42161', '0xa4b1', // Arbitrum One
14+
'137', '0x89' // Polygon Mainnet
1415
];

src/lib/simulation/server.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ function getSimulationEndpoint(chainId: string): string {
125125
case "0xa4b1":
126126
case '42161':
127127
return `${TAS_SERVER_URL_PROD}/v0/arb/mainnet/transaction`;
128+
case '0x89':
129+
case '137':
130+
return `${TAS_SERVER_URL_PROD}/v0/polygon/mainnet/transaction`;
128131
default:
129132
return `${TAS_SERVER_URL_PROD}/v0/eth/mainnet/transaction`;
130133
}
@@ -135,9 +138,12 @@ function getSignatureEndpoint(chainId: string): string {
135138
case '0x1':
136139
case '1':
137140
return `${TAS_SERVER_URL_PROD}/v0/eth/mainnet/signature`;
138-
case "0xa4b1":
141+
case '0xa4b1':
139142
case '42161':
140143
return `${TAS_SERVER_URL_PROD}/v0/arb/mainnet/signature`;
144+
case '0x89':
145+
case '137':
146+
return `${TAS_SERVER_URL_PROD}/v0/polygon/mainnet/signature`;
141147
default:
142148
return `${TAS_SERVER_URL_PROD}/v0/eth/mainnet/signature`;
143149
}

0 commit comments

Comments
 (0)