From 0483668dffdb482adeee3528d0b40999faee6d8f Mon Sep 17 00:00:00 2001 From: sam <1211977+sambarnes@users.noreply.github.com> Date: Fri, 7 Jul 2023 12:24:23 -0400 Subject: [PATCH] feat: add zora chain identifiers (#1066) * feat: add zora chain identifiers * fix: gitignore .idea * fix: one more spot for testnet --- .gitignore | 1 + src/types.ts | 2 ++ src/utils/utils.ts | 1 + 3 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index 810150331..b1f144d05 100644 --- a/.gitignore +++ b/.gitignore @@ -68,6 +68,7 @@ lib docs .DS_Store +.idea/ # Auto generated typechain contracts src/typechain/contracts/ diff --git a/src/types.ts b/src/types.ts index d9d6b6e56..4fd9d97eb 100644 --- a/src/types.ts +++ b/src/types.ts @@ -97,6 +97,7 @@ export enum Chain { Avalanche = "avalanche", Optimism = "optimism", Solana = "solana", + Zora = "zora", // Testnet Chains Goerli = "goerli", @@ -108,6 +109,7 @@ export enum Chain { Fuji = "avalanche_fuji", OptimismGoerli = "optimism_goerli", SolanaDevnet = "soldev", + ZoraTestnet = "zora_testnet", } /** diff --git a/src/utils/utils.ts b/src/utils/utils.ts index 6fa345a90..8d71de98d 100644 --- a/src/utils/utils.ts +++ b/src/utils/utils.ts @@ -391,6 +391,7 @@ export const isTestChain = (chain: Chain): boolean => { case Chain.Fuji: case Chain.OptimismGoerli: case Chain.SolanaDevnet: + case Chain.ZoraTestnet: return true; default: return false;