Skip to content

Commit

Permalink
comment out base changes (#1762)
Browse files Browse the repository at this point in the history
  • Loading branch information
corlard3y committed Jul 29, 2024
1 parent 8108cd2 commit f2f2432
Show file tree
Hide file tree
Showing 9 changed files with 91 additions and 74 deletions.
15 changes: 8 additions & 7 deletions src/components/Faucets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,14 @@ const Faucets = () => {
function: () => {},
link: 'https://cyber-testnet.testnets.rollbridge.app/',
},
{
id: '84532',
value: 'Base Sepolia',
title: 'Base Sepolia Faucet',
function: () => {},
link: 'https://www.alchemy.com/faucets/base-sepolia',
},
// comment base
// {
// id: '84532',
// value: 'Base Sepolia',
// title: 'Base Sepolia Faucet',
// function: () => {},
// link: 'https://www.alchemy.com/faucets/base-sepolia',
// },
];

// render
Expand Down
9 changes: 5 additions & 4 deletions src/components/VerifyAlias.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,11 @@ const VerifyAlias = ({ aliasEthAccount, setAliasVerified }) => {
label: 'Cyber ETH',
url: 'https://cyber-testnet.testnets.rollbridge.app/',
},
84532: {
label: 'Base Sepolia',
url: 'https://www.alchemy.com/faucets/base-sepolia',
},
// comment base
// 84532: {
// label: 'Base Sepolia',
// url: 'https://www.alchemy.com/faucets/base-sepolia',
// },
};

const checkAlias = async () => {
Expand Down
18 changes: 10 additions & 8 deletions src/config/config-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ export const config = {
421614, // arbitrum testnet
123, // fuse testnet
111557560, // Cyber testnet
84532, //base sepolia
// comment base
// 84532, //base sepolia
],

/**
Expand Down Expand Up @@ -183,11 +184,12 @@ export const CHAIN_DETAILS = {
rpcUrl: 'https://cyber-testnet.alt.technology/',
commAddress: '0x9cb3bd7550B5c92baA056Fc0F08132f49508145F',
},
84532: {
label: 'Base Sepolia',
name: 'BASE_TESTNET',
chainid: 84532,
rpcUrl: 'https://sepolia.base.org/',
commAddress: '0x9cb3bd7550B5c92baA056Fc0F08132f49508145F',
},
// comment base
// 84532: {
// label: 'Base Sepolia',
// name: 'BASE_TESTNET',
// chainid: 84532,
// rpcUrl: 'https://sepolia.base.org/',
// commAddress: '0x9cb3bd7550B5c92baA056Fc0F08132f49508145F',
// },
};
18 changes: 10 additions & 8 deletions src/config/config-prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ export const config = {
1101, // polygon zkevm mainnet
122, // fuse mainnet
7560, // Cyber mainnet
8453, //base mainnet
// comment base
// 8453, //base ma innet
],

/**
Expand Down Expand Up @@ -176,11 +177,12 @@ export const CHAIN_DETAILS = {
rpcUrl: 'https://cyber.alt.technology/',
commAddress: '0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa',
},
8453: {
label: 'Base Mainnet',
name: 'BASE_MAINNET',
chainid: 8453,
rpcUrl: 'https://mainnet.base.org/',
commAddress: '0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa',
},
// comment base
// 8453: {
// label: 'Base Mainnet',
// name: 'BASE_MAINNET',
// chainid: 8453,
// rpcUrl: 'https://mainnet.base.org/',
// commAddress: '0xb3971BCef2D791bc4027BbfedFb47319A4AAaaAa',
// },
};
18 changes: 10 additions & 8 deletions src/config/config-staging.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export const config = {
421614, // arbitrum testnet
123, // fuse testnet
111557560, // Cyber testnet
84532, //base sepolia
// comment base
// 84532, //base sepolia
],

/**
Expand Down Expand Up @@ -180,11 +181,12 @@ export const CHAIN_DETAILS = {
rpcUrl: 'https://cyber-testnet.alt.technology/',
commAddress: '0x6e489B7af21cEb969f49A90E481274966ce9D74d',
},
84532: {
label: 'Base Sepolia',
name: 'BASE_TESTNET',
chainid: 84532,
rpcUrl: 'https://sepolia.base.org/',
commAddress: '0x6e489B7af21cEb969f49A90E481274966ce9D74d',
},
// comment base
// 84532: {
// label: 'Base Sepolia',
// name: 'BASE_TESTNET',
// chainid: 84532,
// rpcUrl: 'https://sepolia.base.org/',
// commAddress: '0x6e489B7af21cEb969f49A90E481274966ce9D74d',
// },
};
26 changes: 14 additions & 12 deletions src/connectors/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,13 @@ export const MAINNET_CHAINS: ChainConfig = {
nativeCurrency: ETH,
blockExplorerUrls: ['https://cyberscan.co/'],
},
8453: {
name: 'Base Mainnet',
urls: ['https://mainnet.base.org/'],
nativeCurrency: ETH,
blockExplorerUrls: ['https://basescan.org/'],
},
// comment base
// 8453: {
// name: 'Base Mainnet',
// urls: ['https://mainnet.base.org/'],
// nativeCurrency: ETH,
// blockExplorerUrls: ['https://basescan.org/'],
// },
};

export const TESTNET_CHAINS: ChainConfig = {
Expand Down Expand Up @@ -198,12 +199,13 @@ export const TESTNET_CHAINS: ChainConfig = {
nativeCurrency: ETH,
blockExplorerUrls: ['https://testnet.cyberscan.co/'],
},
84532: {
name: 'Base Sepolia',
urls: ['https://sepolia.base.org/'],
nativeCurrency: ETH,
blockExplorerUrls: ['https://sepolia-explorer.base.org/'],
},
// comment base
// 84532: {
// name: 'Base Sepolia',
// urls: ['https://sepolia.base.org/'],
// nativeCurrency: ETH,
// blockExplorerUrls: ['https://sepolia-explorer.base.org/'],
// },
};

export const CHAINS: ChainConfig = {
Expand Down
5 changes: 4 additions & 1 deletion src/helpers/CaipHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@
import { appConfig } from '../config/index.js';

export const Eip155EnabledIds: Array<Number> = [
1, 56, 137, 10, 1101, 42161, 11155111, 97, 80002, 11155420, 2442, 421614, 122, 123, 111557560, 7560, 84532, 8453,
1, 56, 137, 10, 1101, 42161, 11155111, 97, 80002, 11155420, 2442, 421614, 122, 123, 111557560, 7560,
];

// comment base
// 84532, 8453,

// Types
type CAIPProps = {
chainId: number;
Expand Down
52 changes: 28 additions & 24 deletions src/helpers/UtilityHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ const UtilityHelper = {
chainId === 10 ||
chainId === 42161 ||
chainId === 122 ||
chainId === 7560 ||
chainId === 8453
chainId === 7560
) {
return true;
}
Expand Down Expand Up @@ -63,8 +62,9 @@ export const MaskedAliasChannels: {
123: {},
111557560: {},
7560: {},
8453: {},
84532: {},
// comment base
// 8453: {},
// 84532: {},
};

export const findObject = (data: any, parentArray: any[], property: string): boolean => {
Expand Down Expand Up @@ -129,8 +129,9 @@ export const networkName = {
123: 'Fuse Testnet',
111557560: 'Cyber Testnet',
7560: 'Cyber Mainnet',
8453: 'Base Mainnet',
84532: 'Base Sepolia',
// comment base
// 8453: 'Base Mainnet',
// 84532: 'Base Sepolia',
};

export const chainNameBackendStandard = {
Expand All @@ -156,8 +157,9 @@ export const aliasChainIdToChainName = {
123: 'FUSE',
111557560: 'CYBERCONNECT',
7560: 'CYBERCONNECT',
8453: 'BASE',
84532: 'BASE',
// comment base
// 8453: 'BASE',
// 84532: 'BASE',
};

export const aliasChainIdsMapping = {
Expand Down Expand Up @@ -266,20 +268,21 @@ export const NETWORK_DETAILS = {
rpcUrls: ['https://cyber.alt.technology/'],
blockExplorerUrls: [' https://.cyberscan.co/'],
},
BASE_TESTNET: {
chainId: utils.hexValue(84532),
chainName: 'Base Testnet',
nativeCurrency: { name: 'ETH', symbol: 'ETH', decimals: 18 },
rpcUrls: ['https://sepolia.base.org/'],
blockExplorerUrls: ['https://sepolia-explorer.base.org/'],
},
BASE_MAINNET: {
chainId: utils.hexValue(8453),
chainName: 'Base Mainnet',
nativeCurrency: { name: 'ETH', symbol: 'ETH', decimals: 18 },
rpcUrls: ['https://mainnet.base.org/'],
blockExplorerUrls: ['https://basescan.org/'],
},
// comment base
// BASE_TESTNET: {
// chainId: utils.hexValue(84532),
// chainName: 'Base Testnet',
// nativeCurrency: { name: 'ETH', symbol: 'ETH', decimals: 18 },
// rpcUrls: ['https://sepolia.base.org/'],
// blockExplorerUrls: ['https://sepolia-explorer.base.org/'],
// },
// BASE_MAINNET: {
// chainId: utils.hexValue(8453),
// chainName: 'Base Mainnet',
// nativeCurrency: { name: 'ETH', symbol: 'ETH', decimals: 18 },
// rpcUrls: ['https://mainnet.base.org/'],
// blockExplorerUrls: ['https://basescan.org/'],
// },
};

export const CORE_CHAIN_ID: number = appConfig.coreContractChain;
Expand All @@ -304,8 +307,9 @@ export const LOGO_FROM_CHAIN_ID: {
123: 'Fuse.svg',
111557560: 'Cyber.svg',
7560: 'Cyber.svg',
8453: 'Base.svg',
84532: 'Base.svg',
// comment base
// 8453: 'Base.svg',
// 84532: 'Base.svg',
};

export type getAliasResponseType = {
Expand Down
4 changes: 2 additions & 2 deletions src/hooks/useInactiveListener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export function useInactiveListener() {
if (appConfig.coreContractChain === 42)
return 'Unsupported Network, please connect to the Ethereum Kovan network or Polygon Amoy network';
else if (appConfig.coreContractChain === 11155111)
return 'Unsupported Network, please connect to the Ethereum Sepolia, Polygon Amoy, BNB testnet, Optimism Sepolia, Arbitrum Sepolia, Base Sepolia or Polygon zkEVM testnet';
return 'Unsupported Network, please connect to the Ethereum Sepolia, Polygon Amoy, BNB testnet, Optimism Sepolia, Arbitrum Sepolia or Polygon zkEVM testnet';
else
return 'Unsupported Network, please connect to the Ethereum, Polygon, BNB, Optimism, Arbitrum, Base or Polygon zkEVM Mainnet';
return 'Unsupported Network, please connect to the Ethereum, Polygon, BNB, Optimism, Arbitrum or Polygon zkEVM Mainnet';
};

useEffect(() => {
Expand Down

0 comments on commit f2f2432

Please sign in to comment.