Skip to content

Commit

Permalink
Merge pull request #879 from makerdao/remove-goerli
Browse files Browse the repository at this point in the history
Remove goerli
  • Loading branch information
tyler17 authored Apr 30, 2024
2 parents b696c22 + 5bf0f12 commit 2fc698a
Show file tree
Hide file tree
Showing 44 changed files with 43 additions and 109 deletions.
5 changes: 0 additions & 5 deletions hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ module.exports = {
timeout: 2000000,
chainId: 31337
},
goerli: {
url: 'http://127.0.0.1:8545',
timeout: 2000000,
chainId: 31337
},
arbTestnet: {
url: 'http://127.0.0.1:8546',
timeout: 2000000,
Expand Down
1 change: 0 additions & 1 deletion lib/theme/icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ export const icons = {
Trezor: brandIcons.trezor,
Ledger: brandIcons.ledger,
Mainnet: brandIcons.ether_circle_color,
Goerli: brandIcons.ether_circle_color,
Tenderly: brandIcons.ether_circle_color,
play: {
path: (
Expand Down
19 changes: 0 additions & 19 deletions modules/contracts/eth-sdk.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,25 +58,6 @@ const config: EthSdkConfig = {
voteProxyFactoryOld: '0xa63E145309cadaa6A903a19993868Ef7E85058BE',
vow: '0xA950524441892A31ebddF91d3cEEFa04Bf454466'
},
goerli: {
chief: '0x33Ed584fc655b08b2bca45E1C5b5f07c98053bC1',
dai: '0x11fe4b6ae13d2a6055c8d9cf65c55bac32b5d844',
// This is an arbitrary spell address that must be changed with each implementation
dssSpell: '0xc4BCED0F4f141915dcCE58DbAB2D2DEe88af472B',
end: '0xb82F60bAf6980b9fE035A82cF6Acb770C06d3896',
esm: '0x023A960cb9BE7eDE35B433256f4AfE9013334b55',
iou: '0x651D1B91e4F657392a51Dba7A6A1A1a72eC6aD1c',

mkr: '0xc5e4eab513a7cd12b2335e8a0d57273e13d499f7',
pause: '0xefcd235B1f13e7fC5eab1d05C910d3c390b3439F',
pauseProxy: '0x5DCdbD3cCF9B09EAAD03bc5f50fA2B3d3ACA0121',
polling: '0xdbE5d00b2D8C13a77Fb03Ee50C87317dbC1B15fb',
pot: '0x50672F0a14B40051B65958818a7AcA3D54Bd81Af',
vat: '0xB966002DDAa2Baf48369f5015329750019736031',
voteDelegateFactory: '0xE2d249AE3c156b132C40D07bd4d34e73c1712947',
voteProxyFactory: '0x1a7c1ee5eE2A3B67778ff1eA8c719A3fA1b02b6f',
vow: '0x23f78612769b9013b3145E43896Fa1578cAa2c2a'
},
arbitrumSepolia: {
polling: ArbitrumPollingAddressMap['sepolia']
},
Expand Down
6 changes: 0 additions & 6 deletions modules/migration/delegateAddressLinks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ import { SupportedNetworks } from 'modules/web3/constants/networks';

export const delegateAddressLinks = {
// Format: Old Address -> new address
[SupportedNetworks.GOERLI]: {
'0x2c204c7f54F6FB1014fc5F87526aB469d3Bc098c': '0xDED748b570C810f46f29c6B97807557820023BFA',
'0x44ad5FA4D36Dc37b7B83bAD6Ac6F373C47C3C837': '0x846FF49d72F4e3CA7a3D318820C6C2debe23c68A',
'0x2DD49B0AaCbAB93D7c8327e62DD145DEF2B84C6f': '0x7C924CCE0Dc79655019B142F26fA26df62777884',
'0x68208127C20185b2C9772FE31e970B5704cd8922': '0x772c7141cd4A961aBec1B4241641f810d6188149'
},
[SupportedNetworks.TENDERLY]: {
// Nothing
},
Expand Down
8 changes: 1 addition & 7 deletions modules/polling/helpers/relayerCredentials.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,16 @@ SPDX-License-Identifier: AGPL-3.0-or-later
*/

import {
getArbitrumGoerliTestnetSdk,
getArbitrumOneSdk,
getArbitrumSepoliaSdk
} from '@dethcrypto/eth-sdk-client';
import { getArbitrumOneSdk, getArbitrumSepoliaSdk } from '@dethcrypto/eth-sdk-client';
import { config } from 'lib/config';
import { ArbitrumSdkGenerators } from 'modules/web3/types/contracts';

export const relayerCredentials = {
mainnet: { apiKey: config.DEFENDER_API_KEY_MAINNET, apiSecret: config.DEFENDER_API_SECRET_MAINNET },
goerli: { apiKey: config.DEFENDER_API_KEY_TESTNET, apiSecret: config.DEFENDER_API_SECRET_TESTNET },
sepolia: { apiKey: config.DEFENDER_API_KEY_TESTNET, apiSecret: config.DEFENDER_API_SECRET_TESTNET }
};

export const arbitrumSdkGenerators: ArbitrumSdkGenerators = {
mainnet: getArbitrumOneSdk,
goerli: getArbitrumGoerliTestnetSdk,
sepolia: getArbitrumSepoliaSdk
};
2 changes: 1 addition & 1 deletion modules/polling/hooks/usePollCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const usePollCreate = (): CreateResponse => {
}

const createTxCreator = async () => {
const populatedTransaction = await (network === SupportedNetworks.GOERLI
const populatedTransaction = await (network === SupportedNetworks.TENDERLY
? polling
: pollingOld
).populateTransaction.createPoll(startDate, endDate, multiHash, url);
Expand Down
8 changes: 2 additions & 6 deletions modules/polling/polling.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,16 +75,12 @@ export const POLLS_HASH_FILE_URL = {
[SupportedNetworks.MAINNET]:
'https://raw.githubusercontent.com/makerdao/community/master/governance/polls/meta/hashed-polls.json',
[SupportedNetworks.TENDERLY]:
'https://raw.githubusercontent.com/makerdao/community/master/governance/polls/meta/hashed-polls.json',
[SupportedNetworks.GOERLI]:
'https://raw.githubusercontent.com/makerdao-dux/community/polls-aggregated/governance/polls/meta/hashed-goerli-polls.json'
'https://raw.githubusercontent.com/makerdao/community/master/governance/polls/meta/hashed-polls.json'
};

export const AGGREGATED_POLLS_FILE_URL = {
[SupportedNetworks.MAINNET]:
'https://raw.githubusercontent.com/makerdao/community/master/governance/polls/meta/polls.json',
[SupportedNetworks.TENDERLY]:
'https://raw.githubusercontent.com/makerdao/community/master/governance/polls/meta/polls.json',
[SupportedNetworks.GOERLI]:
'https://raw.githubusercontent.com/makerdao-dux/community/polls-aggregated/governance/polls/meta/goerli-polls.json'
'https://raw.githubusercontent.com/makerdao/community/master/governance/polls/meta/polls.json'
};
5 changes: 2 additions & 3 deletions modules/web3/connections/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ const [web3Network, web3NetworkHooks] = initializeConnector<Network>(
actions,
urlMap: {
[SupportedChainId.MAINNET]: getRPCFromChainID(SupportedChainId.MAINNET),
[SupportedChainId.GOERLI]: getRPCFromChainID(SupportedChainId.GOERLI),
[SupportedChainId.TENDERLY]: getRPCFromChainID(SupportedChainId.TENDERLY)
},
defaultChainId: 1
Expand Down Expand Up @@ -55,10 +54,10 @@ const [web3WalletConnect, web3WalletConnectHooks] = initializeConnector<WalletCo
projectId: config.WALLETCONNECT_PROJECT_ID,
showQrModal: true,
chains: [SupportedChainId.MAINNET],
optionalChains: [SupportedChainId.GOERLI],
optionalChains: [SupportedChainId.TENDERLY],
rpcMap: {
[SupportedChainId.MAINNET]: getRPCFromChainID(SupportedChainId.MAINNET),
[SupportedChainId.GOERLI]: getRPCFromChainID(SupportedChainId.GOERLI)
[SupportedChainId.TENDERLY]: getRPCFromChainID(SupportedChainId.TENDERLY)
},
optionalMethods: ['eth_signTypedData_v4'],
metadata: {
Expand Down
1 change: 0 additions & 1 deletion modules/web3/constants/chainID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ SPDX-License-Identifier: AGPL-3.0-or-later

export enum SupportedChainId {
MAINNET = 1,
GOERLI = 5,
ARBITRUM = 42161,
ARBITRUMTESTNET = 421614,
ARBITRUMTESTNETFORK = 521613,
Expand Down
17 changes: 0 additions & 17 deletions modules/web3/constants/networks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ export const NetworkContextName = 'NETWORK';
import {
MAINNET_SPOCK_URL,
STAGING_MAINNET_SPOCK_URL,
GOERLI_SPOCK_URL,
LOCAL_SPOCK_URL,
TENDERLY_SPOCK_URL
} from 'modules/gql/gql.constants';
Expand All @@ -30,7 +29,6 @@ export enum SupportedConnectors {

export enum SupportedNetworks {
MAINNET = 'mainnet',
GOERLI = 'goerli',
ARBITRUMTESTNET = 'arbitrumTestnet',
ARBITRUM = 'arbitrum',
ARBITRUMTESTNETFORK = 'arbitrumTestnetFork',
Expand Down Expand Up @@ -66,21 +64,6 @@ export const CHAIN_INFO: ChainInfo = {
},
showInProduction: true
},
[SupportedChainId.GOERLI]: {
blockExplorerUrl: 'goerli.etherscan.io',
blockExplorerName: 'Etherscan',
chainId: SupportedChainId.GOERLI,
label: 'Goerli',
type: 'normal',
network: SupportedNetworks.GOERLI,
defaultRpc: NodeProviders.ALCHEMY,
spockUrl: GOERLI_SPOCK_URL,
rpcs: {
[NodeProviders.INFURA]: `https://goerli.infura.io/v3/${config.INFURA_KEY}`,
[NodeProviders.ALCHEMY]: `https://eth-goerli.alchemyapi.io/v2/${config.ALCHEMY_KEY}`
},
showInProduction: false
},
[SupportedChainId.ARBITRUMTESTNET]: {
blockExplorerUrl: 'sepolia.arbiscan.io',
blockExplorerName: 'Arbiscan',
Expand Down
6 changes: 2 additions & 4 deletions modules/web3/helpers/getContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { getGoerliSdk, getMainnetSdk } from '@dethcrypto/eth-sdk-client';

import { getMainnetSdk } from '@dethcrypto/eth-sdk-client';
import { providers } from 'ethers';
import { CHAIN_INFO, DEFAULT_NETWORK } from '../constants/networks';
import { SupportedChainId } from '../constants/chainID';
Expand All @@ -18,8 +17,7 @@ import { EthSdk, SdkGenerators } from '../types/contracts';

const sdkGenerators: SdkGenerators = {
mainnet: getMainnetSdk,
tenderly: getMainnetSdk,
goerli: getGoerliSdk
tenderly: getMainnetSdk
};

let connectedAccount: string | undefined;
Expand Down
6 changes: 2 additions & 4 deletions modules/web3/helpers/getReadOnlyContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { providers } from 'ethers';
import { getGoerliSdk, getMainnetSdk } from '@dethcrypto/eth-sdk-client';

import { getMainnetSdk } from '@dethcrypto/eth-sdk-client';
import { SupportedNetworks } from '../constants/networks';
import { EthSdk, SdkGenerators } from '../types/contracts';

const sdkGenerators: SdkGenerators = {
mainnet: getMainnetSdk,
tenderly: getMainnetSdk,
goerli: getGoerliSdk,
tenderly: getMainnetSdk
};

let currentNetwork: string | undefined;
Expand Down
4 changes: 1 addition & 3 deletions modules/web3/types/contracts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later
*/

import { GoerliSdk, MainnetSdk, ArbitrumGoerliTestnetSdk, ArbitrumOneSdk } from '@dethcrypto/eth-sdk-client';
import { GoerliSdk, MainnetSdk, ArbitrumOneSdk } from '@dethcrypto/eth-sdk-client';
import { providers, Signer } from 'ethers';

export type ContractName =
Expand Down Expand Up @@ -34,12 +34,10 @@ export type SignerOrProvider = Signer | providers.Provider;

export type SdkGenerators = {
mainnet: (signerOrProvider: SignerOrProvider) => MainnetSdk;
goerli: (signerOrProvider: SignerOrProvider) => GoerliSdk;
tenderly: (signerOrProvider: SignerOrProvider) => MainnetSdk;
};

export type ArbitrumSdkGenerators = {
mainnet: (signerOrProvider: SignerOrProvider) => ArbitrumOneSdk;
goerli: (signerOrProvider: SignerOrProvider) => ArbitrumGoerliTestnetSdk;
sepolia: (signerOrProvider: SignerOrProvider) => ArbitrumSepoliaSdk;
};
2 changes: 1 addition & 1 deletion pages/api/address/[address]/delegated-to.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export default withApiHandler(
'string',
{
defaultValue: null,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
},
n => !!n,
new ApiError('Invalid network', 400, 'Invalid network')
Expand Down
2 changes: 1 addition & 1 deletion pages/api/address/[address]/delegations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default withApiHandler(
'string',
{
defaultValue: null,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
},
n => !!n,
new ApiError('Invalid network', 400, 'Invalid network')
Expand Down
2 changes: 1 addition & 1 deletion pages/api/address/[address]/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export default withApiHandler(async (req: NextApiRequest, res: NextApiResponse<A
'string',
{
defaultValue: null,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
},
n => !!n,
new ApiError('Invalid network', 400, 'Invalid network')
Expand Down
2 changes: 1 addition & 1 deletion pages/api/address/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default withApiHandler(async (req: NextApiRequest, res: NextApiResponse)
'string',
{
defaultValue: null,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
},
n => !!n,
new ApiError('Invalid network', 400, 'Invalid network')
Expand Down
2 changes: 1 addition & 1 deletion pages/api/avcs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ import { NextApiRequest, NextApiResponse } from 'next';
export default withApiHandler(async (req: NextApiRequest, res: NextApiResponse<AvcsAPIResponse>) => {
const network = validateQueryParam(req.query.network, 'string', {
defaultValue: DEFAULT_NETWORK.network,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
}) as SupportedNetworks;

const orderBy = validateQueryParam(req.query.orderBy, 'string', {
Expand Down
2 changes: 1 addition & 1 deletion pages/api/cache/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default withApiHandler(async (req: NextApiRequest, res: NextApiResponse)
'string',
{
defaultValue: null,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
},
n => !!n,
new ApiError('Invalid network', 400, 'Invalid network')
Expand Down
2 changes: 1 addition & 1 deletion pages/api/cache/invalidate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default withApiHandler(
'string',
{
defaultValue: null,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
},
n => !!n,
new ApiError('Invalid network', 400, 'Invalid network')
Expand Down
2 changes: 1 addition & 1 deletion pages/api/comments/[address].ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default withApiHandler(
'string',
{
defaultValue: null,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
},
n => !!n,
new ApiError('Invalid network', 400, 'Invalid network')
Expand Down
2 changes: 1 addition & 1 deletion pages/api/comments/executive/[address].ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export default withApiHandler(async (req: NextApiRequest, res: NextApiResponse)
'string',
{
defaultValue: null,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
},
n => !!n,
new ApiError('Invalid network', 400, 'Invalid network')
Expand Down
2 changes: 1 addition & 1 deletion pages/api/comments/executive/add/[address].ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default withApiHandler(
'string',
{
defaultValue: null,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
},
n => !!n,
new ApiError('Invalid network', 400, 'Invalid network')
Expand Down
2 changes: 1 addition & 1 deletion pages/api/comments/polling/[poll-id].ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export default withApiHandler(
'string',
{
defaultValue: null,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
},
n => !!n,
new ApiError('Invalid network', 400, 'Invalid network')
Expand Down
2 changes: 1 addition & 1 deletion pages/api/comments/polling/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default withApiHandler(

const network = validateQueryParam(req.query.network, 'string', {
defaultValue: DEFAULT_NETWORK.network,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
}) as SupportedNetworks;

const gaslessNetwork = validateQueryParam(req.query.gasless, 'string', {
Expand Down
2 changes: 1 addition & 1 deletion pages/api/delegates/[address]/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ import { ApiError } from 'modules/app/api/ApiError';
export default withApiHandler(async (req: NextApiRequest, res: NextApiResponse<DelegateInfo | null>) => {
const network = validateQueryParam(req.query.network, 'string', {
defaultValue: DEFAULT_NETWORK.network,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
}) as SupportedNetworks;

const address = await validateAddress(
Expand Down
2 changes: 1 addition & 1 deletion pages/api/delegates/delegation-history/[address].ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default withApiHandler(async (req: NextApiRequest, res: NextApiResponse)
'string',
{
defaultValue: null,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
},
n => !!n,
new ApiError('Invalid network', 400, 'Invalid network')
Expand Down
2 changes: 1 addition & 1 deletion pages/api/delegates/info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ import validateQueryParam from 'modules/app/api/validateQueryParam';
export default withApiHandler(async (req: NextApiRequest, res: NextApiResponse<DelegateInfo[]>) => {
const network = validateQueryParam(req.query.network, 'string', {
defaultValue: DEFAULT_NETWORK.network,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
}) as SupportedNetworks;

const delegates = await fetchDelegatesInfo(network, true, false);
Expand Down
2 changes: 1 addition & 1 deletion pages/api/delegates/names.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default withApiHandler(async (req: NextApiRequest, res: NextApiResponse<D
'string',
{
defaultValue: null,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
},
n => !!n,
new ApiError('Invalid network', 400, 'Invalid network')
Expand Down
2 changes: 1 addition & 1 deletion pages/api/delegates/v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ import validateQueryParam from 'modules/app/api/validateQueryParam';
export default withApiHandler(async (req: NextApiRequest, res: NextApiResponse<DelegatesAPIResponse>) => {
const network = validateQueryParam(req.query.network, 'string', {
defaultValue: DEFAULT_NETWORK.network,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
}) as SupportedNetworks;

const sortBy = validateQueryParam(req.query.sortBy, 'string', {
Expand Down
2 changes: 1 addition & 1 deletion pages/api/delegates/v2/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export default withApiHandler(
async (req: NextApiRequest, res: NextApiResponse<DelegatesPaginatedAPIResponse>) => {
const network = validateQueryParam(req.query.network, 'string', {
defaultValue: DEFAULT_NETWORK.network,
validValues: [SupportedNetworks.GOERLI, SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
validValues: [SupportedNetworks.TENDERLY, SupportedNetworks.MAINNET]
}) as SupportedNetworks;

const pageSize = validateQueryParam(req.query.pageSize, 'number', {
Expand Down
Loading

0 comments on commit 2fc698a

Please sign in to comment.