From 725d4f544ba57974ccb9152a76748499e8f877c2 Mon Sep 17 00:00:00 2001 From: lukachi Date: Mon, 22 Apr 2024 16:51:31 +0300 Subject: [PATCH] add fuji testnet --- .env-development | 6 +++--- .env.example | 2 +- src/assets/fallback-supported-chains.json | 13 +++++++++++++ src/config.ts | 1 + 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/.env-development b/.env-development index 2c41f1f..f2a6614 100644 --- a/.env-development +++ b/.env-development @@ -5,6 +5,6 @@ VITE_WORLDCOIN_APP_ID=app_staging_bd301ed345395d5c4021e590a682ed3c VITE_RARIMO_CORE_API_URL='https://worldcoin.relayer.mainnet-beta.rarimo.com' -VITE_SEMAPHORE_VERIFIER_CONTRACT_ADDRESS_POLYGON_TESTNET='0x30Cb7805aC7e7dd20Ccb2601f02A9951bC3Ec3a1' -VITE_IDENTITY_MANAGER_CONTRACT_ADDRESS_POLYGON_TESTNET='0xEC503177a19bFFd325f4D4f21080Fb7D1bf6624E' -VITE_DEFAULT_CHAIN='POLYGON_TESTNET' +VITE_SEMAPHORE_VERIFIER_CONTRACT_ADDRESS_FUJI='0x0b3bF6da243fA96Bc859754B4fE1614E9c91Ad5E' +VITE_IDENTITY_MANAGER_CONTRACT_ADDRESS_FUJI='0xE5B74274072D9159b79593db3Ca7939e693F2FB5' +VITE_DEFAULT_CHAIN='FUJI' diff --git a/.env.example b/.env.example index a96fc16..7f456f0 100644 --- a/.env.example +++ b/.env.example @@ -8,4 +8,4 @@ VITE_RARIMO_CORE_API_URL= VITE_SEMAPHORE_VERIFIER_CONTRACT_ADDRESS_POLYGON_TESTNET= VITE_IDENTITY_MANAGER_CONTRACT_ADDRESS_POLYGON_TESTNET= -VITE_DEFAULT_CHAIN=SEPOLIA +VITE_DEFAULT_CHAIN=POLYGON_TESTNET diff --git a/src/assets/fallback-supported-chains.json b/src/assets/fallback-supported-chains.json index b8a3eb0..8e03974 100644 --- a/src/assets/fallback-supported-chains.json +++ b/src/assets/fallback-supported-chains.json @@ -12,6 +12,19 @@ "type": "EVM", "icon": "avalanche" }, + "FUJI": { + "id": "43113", + "name": "Avalance Fuji Testnet", + "rpcUrl": "https://avalanche-fuji-c-chain-rpc.publicnode.com", + "explorerUrl": "https://testnet.snowtrace.io", + "token": { + "name": "AVAX", + "symbol": "AVAX", + "decimals": 18 + }, + "type": "EVM", + "icon": "avalanche" + }, "SEPOLIA": { "id": "11155111", "name": "Sepolia", diff --git a/src/config.ts b/src/config.ts index 628e290..e48bd85 100644 --- a/src/config.ts +++ b/src/config.ts @@ -23,6 +23,7 @@ export const RELAYER_RELAY_CHAIN_NAMES: Record = { ARBITRUM: 'Arbitrum', XDC: 'Xdc', AVALANCHE: 'Avalanche', + FUJI: 'Fuji', } export const config: {