Skip to content

Commit

Permalink
feat: add zora chain identifiers (#1066)
Browse files Browse the repository at this point in the history
* feat: add zora chain identifiers

* fix: gitignore .idea

* fix: one more spot for testnet
  • Loading branch information
sambarnes authored Jul 7, 2023
1 parent 3ab45e7 commit 0483668
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ lib
docs

.DS_Store
.idea/

# Auto generated typechain contracts
src/typechain/contracts/
Expand Down
2 changes: 2 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ export enum Chain {
Avalanche = "avalanche",
Optimism = "optimism",
Solana = "solana",
Zora = "zora",

// Testnet Chains
Goerli = "goerli",
Expand All @@ -108,6 +109,7 @@ export enum Chain {
Fuji = "avalanche_fuji",
OptimismGoerli = "optimism_goerli",
SolanaDevnet = "soldev",
ZoraTestnet = "zora_testnet",
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0483668

Please sign in to comment.