Skip to content

Commit

Permalink
fix: rever network and chain changes
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Feb 6, 2024
1 parent f7deb61 commit 0f9766a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 54 deletions.
24 changes: 2 additions & 22 deletions report/schemas.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,6 @@ export enum CatalogSortDirection {

// @alpha
export enum ChainId {
// (undocumented)
ARBITRUM_MAINNET = 42161,
// (undocumented)
AVALANCHE_MAINNET = 43114,
// (undocumented)
BNB_MAINNET = 56,
// (undocumented)
ETHEREUM_GOERLI = 5,
// (undocumented)
Expand All @@ -354,13 +348,9 @@ export enum ChainId {
// (undocumented)
ETHEREUM_SEPOLIA = 11155111,
// (undocumented)
FANTOM_MAINNET = 250,
// (undocumented)
MATIC_MAINNET = 137,
// (undocumented)
MATIC_MUMBAI = 80001,
// (undocumented)
OPTIMISM_MAINNET = 10
MATIC_MUMBAI = 80001
}

// @alpha (undocumented)
Expand Down Expand Up @@ -1191,20 +1181,10 @@ export enum MintSortBy {

// @alpha
export enum Network {
// (undocumented)
ARBITRUM = "ARBITRUM",
// (undocumented)
AVALANCHE = "AVALANCHE",
// (undocumented)
BINANCE = "BINANCE",
// (undocumented)
ETHEREUM = "ETHEREUM",
// (undocumented)
FANTOM = "FANTOM",
// (undocumented)
MATIC = "MATIC",
// (undocumented)
OPTIMISM = "OPTIMISM"
MATIC = "MATIC"
}

// @alpha (undocumented)
Expand Down
17 changes: 1 addition & 16 deletions src/dapps/chain-id.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ export enum ChainId {
ETHEREUM_KOVAN = 42,
ETHEREUM_SEPOLIA = 11155111,
MATIC_MAINNET = 137,
MATIC_MUMBAI = 80001,
BNB_MAINNET = 56,
OPTIMISM_MAINNET = 10,
ARBITRUM_MAINNET = 42161,
FANTOM_MAINNET = 250,
AVALANCHE_MAINNET = 43114
MATIC_MUMBAI = 80001
}

/**
Expand Down Expand Up @@ -152,16 +147,6 @@ export function getNetwork(chainId: ChainId): Network {
case ChainId.MATIC_MAINNET:
case ChainId.MATIC_MUMBAI:
return Network.MATIC
case ChainId.BNB_MAINNET:
return Network.BINANCE
case ChainId.OPTIMISM_MAINNET:
return Network.OPTIMISM
case ChainId.ARBITRUM_MAINNET:
return Network.ARBITRUM
case ChainId.FANTOM_MAINNET:
return Network.FANTOM
case ChainId.AVALANCHE_MAINNET:
return Network.AVALANCHE
}
}

Expand Down
10 changes: 0 additions & 10 deletions src/dapps/chain-name.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,6 @@ export function getChainId(chainName: ChainName): ChainId | null {
return ChainId.MATIC_MAINNET
case ChainName.MATIC_MUMBAI:
return ChainId.MATIC_MUMBAI
case ChainName.AVALANCHE_MAINNET:
return ChainId.AVALANCHE_MAINNET
case ChainName.BINANCE_MAINNET:
return ChainId.BNB_MAINNET
case ChainName.ARBITRUM_MAINNET:
return ChainId.ARBITRUM_MAINNET
case ChainName.OPTIMISM_MAINNET:
return ChainId.OPTIMISM_MAINNET
case ChainName.FANTOM_MAINNET:
return ChainId.FANTOM_MAINNET
default:
return null
}
Expand Down
7 changes: 1 addition & 6 deletions src/dapps/network.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,7 @@ import { generateLazyValidator, JSONSchema, ValidateFunction } from '../validati
*/
export enum Network {
ETHEREUM = 'ETHEREUM',
MATIC = 'MATIC',
AVALANCHE = 'AVALANCHE',
BINANCE = 'BINANCE',
OPTIMISM = 'OPTIMISM',
ARBITRUM = 'ARBITRUM',
FANTOM = 'FANTOM'
MATIC = 'MATIC'
}

/**
Expand Down

0 comments on commit 0f9766a

Please sign in to comment.