diff --git a/src/abi/addresses.json b/src/abi/addresses.json index 8444037..40016e4 100644 --- a/src/abi/addresses.json +++ b/src/abi/addresses.json @@ -14,6 +14,7 @@ "4002": "0xeA2f99fE93E5D07F61334C5Eb9c54c5D5C957a6a", "80001": "0xC74f279E5A7FDAd6624054518773ae4EC77E78D3", "42161": "0x4bD57a848c56E6241296a1256FB2bDEbCdbb9dB0", + "42766": "0x2f5cd4366c16AFC3b04A4b2327BbFf9e3955dbC1", "59144": "0xbbA4dB63DA448C124ee38EeC636b697CA9bdf9e1", "167007": "0x2f5cd4366c16AFC3b04A4b2327BbFf9e3955dbC1", "421611": "0x844d982FDc1F5C8eaD82E95d522F2486a7CBb3EE", diff --git a/src/abi/resolver.json b/src/abi/resolver.json index 8aaa177..c89541d 100644 --- a/src/abi/resolver.json +++ b/src/abi/resolver.json @@ -13,6 +13,7 @@ "4002": "0xa97c7AF10ee564EBf452A9347bB9653454Ba69C0", "80001": "0xC17E9347Ce26D7630A98eC4158Bd7200E54bf4Cd", "42161": "0xd64A2DF9d73CD1Cb50139A3eC3176070e00C67cA", + "42766": "0xeA2f99fE93E5D07F61334C5Eb9c54c5D5C957a6a", "59144": "0x2f5cd4366c16AFC3b04A4b2327BbFf9e3955dbC1", "167007": "0xeA2f99fE93E5D07F61334C5Eb9c54c5D5C957a6a", "421611": "0xe2b9bC4c1d65B5F5583144d9d5c5F0683158C372", diff --git a/src/abi/tlds.json b/src/abi/tlds.json index 304292c..0d7fa90 100644 --- a/src/abi/tlds.json +++ b/src/abi/tlds.json @@ -72,6 +72,9 @@ ".misie": "0x526Ff108F5d422d0e1d6650E2Bc015BBE1fdb058", ".ppl": "0xbC9d19e5f97a572f428F7292DBf3dc182Cc05C82" }, + "42766": { + ".fairchat": "0x4087fb91A1fBdef05761C02714335D232a2Bf3a1" + }, "59144": { ".alinea": "0x6c66f1d5684630fb69350a7a88bcca60629d7252" }, diff --git a/src/abi/tokens.json b/src/abi/tokens.json index 423b7d7..f8d07ba 100644 --- a/src/abi/tokens.json +++ b/src/abi/tokens.json @@ -73,6 +73,9 @@ "LINK": "0xf97f4df75117a78c1A5a0DBb814Af92458539FB4", "UNI": "0xFa7F8980b0f1E64A2062791cc3b0871572f1F7f0" }, + "42766": { + "USDC": "0x0" + }, "59144": { "ETH": "0x0" }, diff --git a/src/hooks/useChainHelpers.ts b/src/hooks/useChainHelpers.ts index d00a5ab..9466b59 100644 --- a/src/hooks/useChainHelpers.ts +++ b/src/hooks/useChainHelpers.ts @@ -31,6 +31,8 @@ export default function useChainHelpers() { return "Fantom Testnet"; } else if (chainId === 42161) { return "Arbitrum"; + } else if (chainId === 42766) { + return "ZKFair"; } else if (chainId === 59144) { return "Linea"; } else if (chainId === 80001) { @@ -123,6 +125,11 @@ export default function useChainHelpers() { urls = [ "https://rpc.ankr.com/arbitrum" ]; + } else if (networkId === 42766) { + // zkFair + urls = [ + "https://rpc.zkfair.io" + ]; } else if (networkId === 59144) { // Linea urls = [ @@ -350,6 +357,15 @@ export default function useChainHelpers() { nativeCurrency: { decimals: 18, name: "ETH", symbol: "ETH" }, rpcUrls: ["https://rpc.jolnir.taiko.xyz"] }] + } else if (networkName == "ZKFair") { + method = "wallet_addEthereumChain" + params = [{ + blockExplorerUrls: [ "https://scan.zkfair.io/" ], + chainId: "0xa70e", + chainName: "ZKFair", + nativeCurrency: { decimals: 18, name: "USDC", symbol: "USDC" }, + rpcUrls: ["https://rpc.zkfair.io"] + }] } return { diff --git a/src/store/modules/network.ts b/src/store/modules/network.ts index f455922..cb8daa7 100644 --- a/src/store/modules/network.ts +++ b/src/store/modules/network.ts @@ -16,6 +16,7 @@ export default { 137: "Polygon", 255: "Kroma", 42161: "Arbitrum", + 42766: "ZKFair", 59144: "Linea", 534352: "Scroll", 56: "BNB Smart Chain", @@ -53,6 +54,8 @@ export default { return "https://testnet.ftmscan.com"; } else if (chainId.value === 42161) { return "https://arbiscan.io"; + } else if (chainId.value === 42766) { + return "https://scan.zkfair.io"; } else if (chainId.value === 59144) { return "https://lineascan.build"; } else if (chainId.value === 80001) { @@ -97,6 +100,8 @@ export default { return "https://testnet.ftmscan.com"; } else if (netId === 42161) { return "https://arbiscan.io"; + } else if (netId === 42766) { + return "https://scan.zkfair.io"; } else if (netId === 59144) { return "https://lineascan.build"; } else if (netId === 80001) { @@ -185,6 +190,11 @@ export default { urls = [ "https://rpc.ankr.com/arbitrum", ]; + } else if (networkId === 42766) { + // ZKFair + urls = [ + "https://rpc.zkfair.io", + ]; } else if (networkId === 59144) { // Linea urls = [ @@ -309,6 +319,9 @@ export default { } else if (chainId.value === 42161) { state.networkName = "Arbitrum"; state.networkCurrency = "ETH"; + } else if (chainId.value === 42766) { + state.networkName = "ZKFair"; + state.networkCurrency = "USDC"; } else if (chainId.value === 59144) { state.networkName = "Linea"; state.networkCurrency = "ETH";