Skip to content

Commit

Permalink
Merge pull request #63 from hbarcelos/master
Browse files Browse the repository at this point in the history
Fix: update xDAI Chain references to Gnosis Chain
  • Loading branch information
alcercu authored Nov 14, 2022
2 parents f135b76 + fc9ebd6 commit 8a43fa9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/features/linguo/api/createContractApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -836,11 +836,11 @@ export default async function createContractApi({ web3, archon, linguo, arbitrat
};
}

// TODO: Add xDAI params
const chainIdToFirstRelevantBlock = {
1: 11237802,
42: 0,
77: 22580202,
100: 18668091,
};

const chainIdToCurrentEvidenceDisplayInterfaceURI = {
Expand Down
2 changes: 1 addition & 1 deletion src/features/web3/blockExplorer.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const chainIdToBaseUrl = {
1: 'https://etherscan.io',
42: 'https://kovan.etherscan.io',
77: 'https://blockscout.com/poa/sokol',
100: 'https://blockscout.com/poa/xdai',
100: 'https://blockscout.com/xdai/mainnet',
};

export const getBaseUrl = chainId => chainIdToBaseUrl[chainId] ?? chainIdToBaseUrl[1];
Expand Down
4 changes: 2 additions & 2 deletions src/features/web3/getNetworkInfo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const chainIdToNetworkShortName = {
42: 'Kovan',
1: 'Mainnet',
77: 'Sokol',
100: 'xDAI',
100: 'Gnosis',
};

export function getNetworkShortName(chainId) {
Expand All @@ -13,7 +13,7 @@ const chainIdToNetworkName = {
42: 'Ethereum Kovan',
1: 'Ethereum Mainnet',
77: 'Sokol Testnet',
100: 'xDAI Chain',
100: 'Gnosis Chain',
};

export function getNetworkName(chainId) {
Expand Down
2 changes: 1 addition & 1 deletion src/features/web3/supportedChains.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const supportedSideChains = {
// xDai
100: {
chainId: 100,
chainName: 'xDAI Chain',
chainName: 'Gnosis Chain',
nativeCurrency: { name: 'xDAI', symbol: 'xDAI', decimals: 18 },
rpcUrls: [jsonRpcUrls[100]],
blockExplorerUrls: [getBaseUrl(100)],
Expand Down

0 comments on commit 8a43fa9

Please sign in to comment.