Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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