From 4dcd5b06e1ff4b9c8aac2c5023c920dbfed01366 Mon Sep 17 00:00:00 2001 From: Guantong Date: Wed, 23 Oct 2024 14:37:35 +0800 Subject: [PATCH] support morph --- public/images/chains/morph.svg | 1 + src/config/chains.ts | 13 ++++++++++++- src/types/chains.ts | 3 ++- 3 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 public/images/chains/morph.svg diff --git a/public/images/chains/morph.svg b/public/images/chains/morph.svg new file mode 100644 index 0000000..e27f396 --- /dev/null +++ b/public/images/chains/morph.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/config/chains.ts b/src/config/chains.ts index 6e5fd87..181517b 100644 --- a/src/config/chains.ts +++ b/src/config/chains.ts @@ -168,5 +168,16 @@ export const chains: CHAIN[] = [ } }, testnet: true - } + }, + { + id: ChAIN_ID.MORPH, + name: 'Morph', + iconUrl: '/images/chains/morph.svg', + blockExplorers: { + default: { + name: 'Morph', + url: 'https://explorer.morphl2.io/' + } + } + }, ]; diff --git a/src/types/chains.ts b/src/types/chains.ts index a69dae8..14696ea 100644 --- a/src/types/chains.ts +++ b/src/types/chains.ts @@ -16,7 +16,8 @@ export enum ChAIN_ID { MOONBEAM = 1284, TAIKO_HEKLA = 167009, PANGORO = 45, - KOI = 701 + KOI = 701, + MORPH = 2818 } export type CHAIN = {