Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#495 - udpate avalanche explorer #524

Merged
merged 2 commits into from
Nov 16, 2023
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
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