Skip to content

Commit

Permalink
Feat/add optimism (#282)
Browse files Browse the repository at this point in the history
* feat: add optimism

* fix: progress bar alignment
  • Loading branch information
vladwulf authored Feb 16, 2023
1 parent 9c36853 commit 3cdc2a1
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 1 deletion.
12 changes: 12 additions & 0 deletions public/assets/chains/optimism.logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/config/web3/evm/testnet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand All @@ -21,4 +22,5 @@ export const testnetChains: ChainExtension[] = [
kava,
arbitrum,
celo,
optimism,
];
23 changes: 23 additions & 0 deletions src/config/web3/evm/testnet/optimism.ts
Original file line number Diff line number Diff line change
@@ -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,
};
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export const SrcChainTxPropagation = () => {
Axelar...
</span>
</div>
<div className="flex items-center mt-2 gap-x-2">
<div className="flex items-center justify-center mt-2 gap-x-2">
<progress
className="w-56 progress progress-success"
value={numConfirmationsSoFar}
Expand Down

1 comment on commit 3cdc2a1

@vercel
Copy link

@vercel vercel bot commented on 3cdc2a1 Feb 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.