diff --git a/scripts/chain-configs/sepolia/index.ts b/scripts/chain-configs/sepolia/index.ts index 1b48722f9..a7d3667c6 100644 --- a/scripts/chain-configs/sepolia/index.ts +++ b/scripts/chain-configs/sepolia/index.ts @@ -17,7 +17,7 @@ export default { }, chainId, publicRpcUrl: "https://gateway.tenderly.co/public/sepolia", - tokens: ["WETH", "ETH", "USDC", "WGRASS"], + tokens: ["WETH", "ETH", "USDC", "GRASS"], enableCCTP: false, swapTokens: [], } as ChainConfig; diff --git a/scripts/generate-routes.ts b/scripts/generate-routes.ts index 4a7a88061..b8fdac709 100644 --- a/scripts/generate-routes.ts +++ b/scripts/generate-routes.ts @@ -304,20 +304,6 @@ function transformChainConfigs( return tokenSymbol; }); - if ( - chainConfig.tokens.includes("WGRASS") && - toChainConfig.tokens.includes("GRASS") - ) { - // Add route from WGRASS to GRASS - tokens.push({ - inputTokenSymbol: "WGRASS", - outputTokenSymbol: "GRASS", - }); - - // Add route from WGRASS to WGRASS - tokens.push("WGRASS"); - } - // Handle USDC swap tokens const usdcSwapTokens = chainConfig.enableCCTP ? getUsdcSwapTokens(fromChainId, toChainId) @@ -350,8 +336,6 @@ function transformChainConfigs( }); } - console.log(JSON.stringify(transformedChainConfigs, undefined, 2)); - return transformedChainConfigs; } diff --git a/src/data/chains_11155111.json b/src/data/chains_11155111.json index 9ec1a4a17..1c75bda45 100644 --- a/src/data/chains_11155111.json +++ b/src/data/chains_11155111.json @@ -31,10 +31,10 @@ }, { "address": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df", - "symbol": "WGRASS", - "name": "Wrapped Grass", + "symbol": "GRASS", + "name": "Grass", "decimals": 18, - "logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/wgrass.svg" + "logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/grass.svg" } ], "outputTokens": [ @@ -61,10 +61,10 @@ }, { "address": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df", - "symbol": "WGRASS", - "name": "Wrapped Grass", + "symbol": "GRASS", + "name": "Grass", "decimals": 18, - "logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/wgrass.svg" + "logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/grass.svg" } ] }, @@ -406,19 +406,19 @@ "spokePool": "0x6A0a7f39530923911832Dd60667CE5da5449967B", "spokePoolBlock": 156275, "inputTokens": [ + { + "address": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8", + "symbol": "GRASS", + "name": "Grass", + "decimals": 18, + "logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/grass.svg" + }, { "address": "0xaA91D645D7a6C1aeaa5988e0547267B77d33fe16", "symbol": "WETH", "name": "Wrapped Ether", "decimals": 18, "logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/weth.svg" - }, - { - "address": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8", - "symbol": "WGRASS", - "name": "Wrapped Grass", - "decimals": 18, - "logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/wgrass.svg" } ], "outputTokens": [ @@ -436,13 +436,6 @@ "decimals": 18, "logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/eth.svg" }, - { - "address": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8", - "symbol": "WGRASS", - "name": "Wrapped Grass", - "decimals": 18, - "logoUrl": "https://raw.githubusercontent.com/across-protocol/frontend/master/src/assets/token-logos/wgrass.svg" - }, { "address": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8", "symbol": "GRASS", diff --git a/src/data/routes_11155111_0x14224e63716afAcE30C9a417E0542281869f7d9e.json b/src/data/routes_11155111_0x14224e63716afAcE30C9a417E0542281869f7d9e.json index 791e5a434..d7c91db63 100644 --- a/src/data/routes_11155111_0x14224e63716afAcE30C9a417E0542281869f7d9e.json +++ b/src/data/routes_11155111_0x14224e63716afAcE30C9a417E0542281869f7d9e.json @@ -240,33 +240,11 @@ "fromTokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df", "toTokenAddress": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8", "fromSpokeAddress": "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662", - "fromTokenSymbol": "WGRASS", - "toTokenSymbol": "WGRASS", - "isNative": false, - "l1TokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df" - }, - { - "fromChain": 11155111, - "toChain": 37111, - "fromTokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df", - "toTokenAddress": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8", - "fromSpokeAddress": "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662", - "fromTokenSymbol": "WGRASS", + "fromTokenSymbol": "GRASS", "toTokenSymbol": "GRASS", "isNative": false, "l1TokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df" }, - { - "fromChain": 11155111, - "toChain": 37111, - "fromTokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df", - "toTokenAddress": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8", - "fromSpokeAddress": "0x5ef6C01E11889d86803e0B23e3cB3F9E9d97B662", - "fromTokenSymbol": "WGRASS", - "toTokenSymbol": "WGRASS", - "isNative": false, - "l1TokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df" - }, { "fromChain": 84532, "toChain": 11155111, @@ -1535,24 +1513,24 @@ { "fromChain": 37111, "toChain": 11155111, - "fromTokenAddress": "0xaA91D645D7a6C1aeaa5988e0547267B77d33fe16", - "toTokenAddress": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14", + "fromTokenAddress": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8", + "toTokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df", "fromSpokeAddress": "0x6A0a7f39530923911832Dd60667CE5da5449967B", - "fromTokenSymbol": "WETH", - "toTokenSymbol": "WETH", + "fromTokenSymbol": "GRASS", + "toTokenSymbol": "GRASS", "isNative": false, - "l1TokenAddress": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14" + "l1TokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df" }, { "fromChain": 37111, "toChain": 11155111, - "fromTokenAddress": "0xeee5a340Cdc9c179Db25dea45AcfD5FE8d4d3eB8", - "toTokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df", + "fromTokenAddress": "0xaA91D645D7a6C1aeaa5988e0547267B77d33fe16", + "toTokenAddress": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14", "fromSpokeAddress": "0x6A0a7f39530923911832Dd60667CE5da5449967B", - "fromTokenSymbol": "WGRASS", - "toTokenSymbol": "WGRASS", + "fromTokenSymbol": "WETH", + "toTokenSymbol": "WETH", "isNative": false, - "l1TokenAddress": "0x2Be68B15c693D3b5747F9F0D49D30A2E81BAA2Df" + "l1TokenAddress": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14" }, { "fromChain": 37111,