Skip to content

Commit

Permalink
Avascan to Snowtrace
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinoConti committed Dec 30, 2023
1 parent 57185cb commit caf23f5
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xlabs/portal-bridge-ui",
"version": "0.1.91",
"version": "0.1.92",
"private": true,
"dependencies": {
"@certusone/wormhole-sdk": "^0.10.4",
Expand Down
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://avascan.info/blockchain/c/token/${readableAddress}?a=${originInfo.tokenId}`}
href={`https://snowtrace.io/token/${readableAddress}?a=${originInfo.tokenId}`}
target="_blank"
rel="noopener noreferrer"
startIcon={<Launch />}
className={classes.viewButton}
variant="outlined"
>
View on Avascan
View on Snowtrace
</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." : ""
}avascan.info/blockchain/c/tx/${tx?.id}`
}snowtrace.io/tx/${tx?.id}`
: chainId === CHAIN_ID_OASIS
? `https://${
CLUSTER === "testnet" ? "testnet." : ""
Expand Down
4 changes: 1 addition & 3 deletions src/components/SmartAddress.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ export default function SmartAddress({
isAsset ? "token" : "address"
}/${useableAddress}`
: chainId === CHAIN_ID_AVAX
? `https://${
CLUSTER === "testnet" ? "testnet." : ""
}avascan.info/blockchain/c/${
? `https://${CLUSTER === "testnet" ? "testnet." : ""}snowtrace.io/${
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
? "Avascan"
? "Snowtrace"
: 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.avascan.info/blockchain/c/"],
blockExplorerUrls: ["https://testnet.snowtrace.io/"],
},
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://avascan.info/blockchain/c/"],
blockExplorerUrls: ["https://snowtrace.io/"],
},
80001: {
chainId: "0x13881",
Expand Down

0 comments on commit caf23f5

Please sign in to comment.