Skip to content

Commit

Permalink
feat: add manta chain icon support (#1978)
Browse files Browse the repository at this point in the history
* feat: add manta chain icon support

* fix: tweak manta mainnet display name

* chore: resize and minify manta icon

* fix: lock pnpm version temporarily

---------

Co-authored-by: Daniel Sinclair <d@niel.nyc>
  • Loading branch information
hungdoansy and DanielSinclair committed May 14, 2024
1 parent 8841891 commit 1ad4514
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ It's never a fun experience to have your pull request declined after investing a

## Prerequisites

This project uses [`pnpm`](https://pnpm.io) as a package manager. The required `pnpm` version to get started is `9.1.0`.
This project uses [`pnpm`](https://pnpm.io) as a package manager. The required `pnpm` version to get started is `9.1.1`.

## Development environment

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on: [pull_request, push]

env:
pnpm: 9
pnpm: 9.1.1
WALLETCONNECT_PROJECT_ID: YOUR_PROJECT_ID
ALCHEMY_ID: YOUR_ALCHEMY_ID

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
"vitest": "^0.33.0",
"wagmi": "^2.5.11"
},
"packageManager": "pnpm@9.1.0",
"packageManager": "pnpm@9.1.1",
"pnpm": {
"onlyBuiltDependencies": [
"esbuild"
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ type ChainName =
| 'kovan'
| 'localhost'
| 'mainnet'
| 'manta'
| 'mantaSepolia'
| 'mantaTestnet'
| 'optimism'
| 'optimismKovan'
| 'optimismGoerli'
Expand Down Expand Up @@ -106,6 +109,11 @@ const optimismIcon: IconMetadata = {
iconUrl: async () => (await import('./chainIcons/optimism.svg')).default,
};

const mantaIcon: IconMetadata = {
iconBackground: '#ffffff',
iconUrl: async () => (await import('./chainIcons/manta.svg')).default,
};

const polygonIcon: IconMetadata = {
iconBackground: '#9f71ec',
iconUrl: async () => (await import('./chainIcons/polygon.svg')).default,
Expand Down Expand Up @@ -159,6 +167,9 @@ const chainMetadataByName: Record<ChainName, ChainMetadata | null> = {
klaytnBaobab: { chainId: 1_001, name: 'Klaytn Baobab', ...klaytnIcon },
localhost: { chainId: 1_337, ...ethereumIcon },
mainnet: { chainId: 1, name: 'Ethereum', ...ethereumIcon },
manta: { chainId: 169, name: 'Manta', ...mantaIcon },
mantaSepolia: { chainId: 3_441_006, ...mantaIcon },
mantaTestnet: { chainId: 3_441_005, ...mantaIcon },
optimism: { chainId: 10, name: 'Optimism', ...optimismIcon },
optimismGoerli: { chainId: 420, ...optimismIcon },
optimismKovan: { chainId: 69, ...optimismIcon },
Expand Down

0 comments on commit 1ad4514

Please sign in to comment.