From cb90c88770d19c16b04125f718bdd32d6324144f Mon Sep 17 00:00:00 2001 From: Nicolas Mahe Date: Wed, 10 Jan 2024 10:41:38 +0700 Subject: [PATCH 1/5] add config for neon EVM --- environment.ts | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/environment.ts b/environment.ts index af27992f..97b62988 100644 --- a/environment.ts +++ b/environment.ts @@ -228,7 +228,7 @@ const getEnvironment = async (): Promise => { url: 'https://phoenix.lightlink.io', }, }, - } as Chain, + }, { name: 'LightLink Pegasus Testnet', network: 'lightlink-pegasus', @@ -259,7 +259,38 @@ const getEnvironment = async (): Promise => { url: 'https://pegasus.lightlink.io', }, }, - } as Chain, + }, + { + id: 245022926, + network: 'neonDevnet', + name: 'Neon EVM DevNet', + nativeCurrency: { + name: 'NEON', + symbol: 'NEON', + decimals: 18, + }, + rpcUrls: { + default: { + http: ['https://devnet.neonevm.org'], + }, + public: { + http: ['https://devnet.neonevm.org'], + }, + }, + blockExplorers: { + default: { + name: 'Neonscan', + url: 'https://neonscan.org', + }, + }, + contracts: { + multicall3: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 205206112, + }, + }, + testnet: true, + }, ], WALLET_CONNECT_PROJECT_ID: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID, From a72d53630bb5e99c6011d915ef57c0fc84ad6b31 Mon Sep 17 00:00:00 2001 From: Nicolas Mahe Date: Wed, 10 Jan 2024 11:44:03 +0700 Subject: [PATCH 2/5] fix block explorer url --- environment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment.ts b/environment.ts index 97b62988..4f20e6cb 100644 --- a/environment.ts +++ b/environment.ts @@ -280,7 +280,7 @@ const getEnvironment = async (): Promise => { blockExplorers: { default: { name: 'Neonscan', - url: 'https://neonscan.org', + url: 'https://devnet.neonscan.org', }, }, contracts: { From 48c0fb8991b4ae779c553983e1598feb4180b176 Mon Sep 17 00:00:00 2001 From: Nicolas Mahe Date: Tue, 16 Jan 2024 12:39:02 +0700 Subject: [PATCH 3/5] add neon evm config --- environment.ts | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/environment.ts b/environment.ts index 4f20e6cb..b108b806 100644 --- a/environment.ts +++ b/environment.ts @@ -260,6 +260,37 @@ const getEnvironment = async (): Promise => { }, }, }, + { + id: 245022934, + network: 'neonMainnet', + name: 'Neon EVM MainNet', + nativeCurrency: { + name: 'NEON', + symbol: 'NEON', + decimals: 18, + }, + rpcUrls: { + default: { + http: ['https://neon-proxy-mainnet.solana.p2p.org'], + }, + public: { + http: ['https://neon-proxy-mainnet.solana.p2p.org'], + }, + }, + blockExplorers: { + default: { + name: 'Neonscan', + url: 'https://neonscan.org', + }, + }, + contracts: { + multicall3: { + address: '0xca11bde05977b3631167028862be2a173976ca11', + blockCreated: 206545524, + }, + }, + testnet: false, + }, { id: 245022926, network: 'neonDevnet', From 45afb3798eee078bc83281004aa27b4be56c721e Mon Sep 17 00:00:00 2001 From: Nicolas Mahe Date: Wed, 24 Jan 2024 14:50:19 +0700 Subject: [PATCH 4/5] use neon chain config from wagmi --- environment.ts | 66 +++----------------------------------------------- 1 file changed, 4 insertions(+), 62 deletions(-) diff --git a/environment.ts b/environment.ts index b108b806..fbbb27e5 100644 --- a/environment.ts +++ b/environment.ts @@ -8,6 +8,8 @@ import { Chain, goerli as ethereumGoerli, mainnet as ethereumMainnet, + neonDevnet, + neonMainnet, polygon, polygonMumbai, } from 'wagmi/chains' @@ -199,6 +201,8 @@ const getEnvironment = async (): Promise => { bsc, polygon, polygonMumbai, + neonMainnet, + neonDevnet, { name: 'LightLink Phoenix', network: 'lightlink-phoenix', @@ -260,68 +264,6 @@ const getEnvironment = async (): Promise => { }, }, }, - { - id: 245022934, - network: 'neonMainnet', - name: 'Neon EVM MainNet', - nativeCurrency: { - name: 'NEON', - symbol: 'NEON', - decimals: 18, - }, - rpcUrls: { - default: { - http: ['https://neon-proxy-mainnet.solana.p2p.org'], - }, - public: { - http: ['https://neon-proxy-mainnet.solana.p2p.org'], - }, - }, - blockExplorers: { - default: { - name: 'Neonscan', - url: 'https://neonscan.org', - }, - }, - contracts: { - multicall3: { - address: '0xca11bde05977b3631167028862be2a173976ca11', - blockCreated: 206545524, - }, - }, - testnet: false, - }, - { - id: 245022926, - network: 'neonDevnet', - name: 'Neon EVM DevNet', - nativeCurrency: { - name: 'NEON', - symbol: 'NEON', - decimals: 18, - }, - rpcUrls: { - default: { - http: ['https://devnet.neonevm.org'], - }, - public: { - http: ['https://devnet.neonevm.org'], - }, - }, - blockExplorers: { - default: { - name: 'Neonscan', - url: 'https://devnet.neonscan.org', - }, - }, - contracts: { - multicall3: { - address: '0xca11bde05977b3631167028862be2a173976ca11', - blockCreated: 205206112, - }, - }, - testnet: true, - }, ], WALLET_CONNECT_PROJECT_ID: process.env.NEXT_PUBLIC_WALLET_CONNECT_PROJECT_ID, From 4ed1956af2084f246df46328fc3334b6258e45ba Mon Sep 17 00:00:00 2001 From: Nicolas Mahe Date: Wed, 24 Jan 2024 14:52:36 +0700 Subject: [PATCH 5/5] add neon evm icons --- public/chains/245022926.svg | 3 +++ public/chains/245022934.svg | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 public/chains/245022926.svg create mode 100644 public/chains/245022934.svg diff --git a/public/chains/245022926.svg b/public/chains/245022926.svg new file mode 100644 index 00000000..6eb40c4f --- /dev/null +++ b/public/chains/245022926.svg @@ -0,0 +1,3 @@ + + + diff --git a/public/chains/245022934.svg b/public/chains/245022934.svg new file mode 100644 index 00000000..79d5bfca --- /dev/null +++ b/public/chains/245022934.svg @@ -0,0 +1,3 @@ + + +