Skip to content

Commit 8a43fa9

Browse files
authored
Merge pull request #63 from hbarcelos/master
Fix: update xDAI Chain references to Gnosis Chain
2 parents f135b76 + fc9ebd6 commit 8a43fa9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/features/linguo/api/createContractApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -836,11 +836,11 @@ export default async function createContractApi({ web3, archon, linguo, arbitrat
836836
};
837837
}
838838

839-
// TODO: Add xDAI params
840839
const chainIdToFirstRelevantBlock = {
841840
1: 11237802,
842841
42: 0,
843842
77: 22580202,
843+
100: 18668091,
844844
};
845845

846846
const chainIdToCurrentEvidenceDisplayInterfaceURI = {

src/features/web3/blockExplorer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const chainIdToBaseUrl = {
22
1: 'https://etherscan.io',
33
42: 'https://kovan.etherscan.io',
44
77: 'https://blockscout.com/poa/sokol',
5-
100: 'https://blockscout.com/poa/xdai',
5+
100: 'https://blockscout.com/xdai/mainnet',
66
};
77

88
export const getBaseUrl = chainId => chainIdToBaseUrl[chainId] ?? chainIdToBaseUrl[1];

src/features/web3/getNetworkInfo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const chainIdToNetworkShortName = {
22
42: 'Kovan',
33
1: 'Mainnet',
44
77: 'Sokol',
5-
100: 'xDAI',
5+
100: 'Gnosis',
66
};
77

88
export function getNetworkShortName(chainId) {
@@ -13,7 +13,7 @@ const chainIdToNetworkName = {
1313
42: 'Ethereum Kovan',
1414
1: 'Ethereum Mainnet',
1515
77: 'Sokol Testnet',
16-
100: 'xDAI Chain',
16+
100: 'Gnosis Chain',
1717
};
1818

1919
export function getNetworkName(chainId) {

src/features/web3/supportedChains.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const supportedSideChains = {
1616
// xDai
1717
100: {
1818
chainId: 100,
19-
chainName: 'xDAI Chain',
19+
chainName: 'Gnosis Chain',
2020
nativeCurrency: { name: 'xDAI', symbol: 'xDAI', decimals: 18 },
2121
rpcUrls: [jsonRpcUrls[100]],
2222
blockExplorerUrls: [getBaseUrl(100)],

0 commit comments

Comments
 (0)