Skip to content

Commit

Permalink
#495 - udpate avalanche explorer (#524)
Browse files Browse the repository at this point in the history
* #495 - udpate avalanche explorer

* #495 - fix prettier issue
  • Loading branch information
sebastianscatularo authored Nov 16, 2023
1 parent 6dcb643 commit f872c75
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/components/NFTOriginVerifier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -429,14 +429,14 @@ export default function NFTOriginVerifier() {
</Button>
) : originInfo.chainId === CHAIN_ID_AVAX ? (
<Button
href={`https://snowtrace.io/token/${readableAddress}?a=${originInfo.tokenId}`}
href={`https://avascan.info/blockchain/c/token/${readableAddress}?a=${originInfo.tokenId}`}
target="_blank"
rel="noopener noreferrer"
startIcon={<Launch />}
className={classes.viewButton}
variant="outlined"
>
View on Snowtrace
View on Avascan
</Button>
) : originInfo.chainId === CHAIN_ID_AURORA ? (
<Button
Expand Down
2 changes: 1 addition & 1 deletion src/components/ShowTx.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default function ShowTx({
: chainId === CHAIN_ID_AVAX
? `https://${
CLUSTER === "testnet" ? "testnet." : ""
}snowtrace.io/tx/${tx?.id}`
}avascan.info/blockchain/c/tx/${tx?.id}`
: chainId === CHAIN_ID_OASIS
? `https://${
CLUSTER === "testnet" ? "testnet." : ""
Expand Down
4 changes: 3 additions & 1 deletion src/components/SmartAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,9 @@ export default function SmartAddress({
isAsset ? "token" : "address"
}/${useableAddress}`
: chainId === CHAIN_ID_AVAX
? `https://${CLUSTER === "testnet" ? "testnet." : ""}snowtrace.io/${
? `https://${
CLUSTER === "testnet" ? "testnet." : ""
}avascan.info/blockchain/c/${
isAsset ? "token" : "address"
}/${useableAddress}`
: chainId === CHAIN_ID_OASIS
Expand Down
2 changes: 1 addition & 1 deletion src/utils/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ export const getExplorerName = (chainId: ChainId) =>
: chainId === CHAIN_ID_POLYGON
? "Polygonscan"
: chainId === CHAIN_ID_AVAX
? "Snowtrace"
? "Avascan"
: chainId === CHAIN_ID_ALGORAND
? "AlgoExplorer"
: chainId === CHAIN_ID_FANTOM
Expand Down
4 changes: 2 additions & 2 deletions src/utils/metaMaskChainParameters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,14 +169,14 @@ export const METAMASK_CHAIN_PARAMETERS: {
chainName: "Avalanche Fuji Testnet",
nativeCurrency: { name: "Avalanche", symbol: "AVAX", decimals: 18 },
rpcUrls: ["https://api.avax-test.network/ext/bc/C/rpc"],
blockExplorerUrls: ["https://testnet.snowtrace.io"],
blockExplorerUrls: ["https://testnet.avascan.info/blockchain/c/"],
},
43114: {
chainId: "0xa86a",
chainName: "Avalanche C-Chain",
nativeCurrency: { name: "Avalanche", symbol: "AVAX", decimals: 18 },
rpcUrls: ["https://api.avax.network/ext/bc/C/rpc"],
blockExplorerUrls: ["https://snowtrace.io"],
blockExplorerUrls: ["https://avascan.info/blockchain/c/"],
},
80001: {
chainId: "0x13881",
Expand Down

0 comments on commit f872c75

Please sign in to comment.