Compare commits
3
Commits
main
...
enable-cctp-l2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
238b5456b7 | ||
|
|
74961b8da5 | ||
|
|
92481e29fc |
+21
-11
@@ -1,12 +1,22 @@
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
"chainId": "1",
|
"chainId": "1",
|
||||||
"tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
"tokenAddress": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
|
||||||
"name": "Ethereum"
|
"name": "Ethereum"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"chainId": "5",
|
"chainId": "5",
|
||||||
"tokenAddress": "0x07865c6E87B9F70255377e024ace6630C1Eaa37F",
|
"tokenAddress": "0x07865c6E87B9F70255377e024ace6630C1Eaa37F",
|
||||||
"name": "Ethereum Goerli"
|
"name": "Ethereum Goerli"
|
||||||
}
|
},
|
||||||
]
|
{
|
||||||
|
"chainId": "43114",
|
||||||
|
"tokenAddress": "0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",
|
||||||
|
"name": "Avalanche"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"chainId": "10",
|
||||||
|
"tokenAddress": "0x0b2C639c533813f4Aa9D7837CAf62653d097Ff85",
|
||||||
|
"name": "optimism"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
|||||||
+3
-3
@@ -31,13 +31,13 @@ export const fetchSquidStatus = async (
|
|||||||
|
|
||||||
const response = await fetch(url, {
|
const response = await fetch(url, {
|
||||||
headers: {
|
headers: {
|
||||||
"x-integrator-id": integratorId || 'dYdX-api'
|
'x-integrator-id': integratorId || 'dYdX-api',
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
const error = await response.json();
|
const error = await response.json();
|
||||||
throw new Error(error);
|
throw error;
|
||||||
}
|
}
|
||||||
|
|
||||||
return response.json();
|
return response.json();
|
||||||
@@ -45,4 +45,4 @@ export const fetchSquidStatus = async (
|
|||||||
|
|
||||||
export const getNobleChainId = () => {
|
export const getNobleChainId = () => {
|
||||||
return isMainnet ? 'noble-1' : 'grand-1';
|
return isMainnet ? 'noble-1' : 'grand-1';
|
||||||
}
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user