From 3cdc2a1380bb711609e947afc4313ea7e4469da2 Mon Sep 17 00:00:00 2001 From: Vladimir Agaev Date: Thu, 16 Feb 2023 16:22:00 +0000 Subject: [PATCH] Feat/add optimism (#282) * feat: add optimism * fix: progress bar alignment --- public/assets/chains/optimism.logo.svg | 12 ++++++++++ src/config/web3/evm/testnet/index.ts | 2 ++ src/config/web3/evm/testnet/optimism.ts | 23 +++++++++++++++++++ .../states/06.SrcChainTxPropagation.tsx | 2 +- 4 files changed, 38 insertions(+), 1 deletion(-) create mode 100644 public/assets/chains/optimism.logo.svg create mode 100644 src/config/web3/evm/testnet/optimism.ts diff --git a/public/assets/chains/optimism.logo.svg b/public/assets/chains/optimism.logo.svg new file mode 100644 index 000000000..81be4b04d --- /dev/null +++ b/public/assets/chains/optimism.logo.svg @@ -0,0 +1,12 @@ + + + + + + \ No newline at end of file diff --git a/src/config/web3/evm/testnet/index.ts b/src/config/web3/evm/testnet/index.ts index 9c838d8d0..d0d197ade 100644 --- a/src/config/web3/evm/testnet/index.ts +++ b/src/config/web3/evm/testnet/index.ts @@ -8,6 +8,7 @@ import { ethereum } from "./ethereum"; import { fantom } from "./fantom"; import { kava } from "./kava"; import { moonbeam } from "./moonbeam"; +import { optimism } from "./optimism"; import { polygon } from "./polygon"; export const testnetChains: ChainExtension[] = [ @@ -21,4 +22,5 @@ export const testnetChains: ChainExtension[] = [ kava, arbitrum, celo, + optimism, ]; diff --git a/src/config/web3/evm/testnet/optimism.ts b/src/config/web3/evm/testnet/optimism.ts new file mode 100644 index 000000000..933d3f2ad --- /dev/null +++ b/src/config/web3/evm/testnet/optimism.ts @@ -0,0 +1,23 @@ +import { ChainExtension } from "../interface"; + +export const optimism: ChainExtension = { + id: 420, + name: "Optimism Goerli Testnet", + network: "optimism-goerli", + networkNameOverride: "optimism", + nativeCurrency: { + name: "Ether", + symbol: "ETH", + decimals: 18, + }, + blockExplorers: { + default: { + name: "Etherscan", + url: "https://goerli-optimism.etherscan.io/", + }, + }, + rpcUrls: { + default: "https://goerli.optimism.io", + }, + testnet: true, +}; diff --git a/src/features/swap-states/states/06.SrcChainTxPropagation.tsx b/src/features/swap-states/states/06.SrcChainTxPropagation.tsx index 5e6902cf8..214601246 100644 --- a/src/features/swap-states/states/06.SrcChainTxPropagation.tsx +++ b/src/features/swap-states/states/06.SrcChainTxPropagation.tsx @@ -101,7 +101,7 @@ export const SrcChainTxPropagation = () => { Axelar... -
+