Skip to content

Commit

Permalink
Added base to explorer
Browse files Browse the repository at this point in the history
  • Loading branch information
D4mph1r committed Jun 6, 2024
1 parent 0d8d280 commit 9081948
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/assets/icons/base.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 13 additions & 6 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ import Hedera from "./assets/icons/Hedera.svg";
import Aptos from "./assets/icons/aptos.svg";
import optimism from "./assets/icons/optimism.svg";
import casper from "./assets/icons/casper.svg";
import Bitgert from "./assets/icons/brise.png"
import Bitgert from "./assets/icons/brise.png";
import Base from "./assets/icons/base.svg";

export const currency: any = {
"4": "BNB",
Expand Down Expand Up @@ -53,6 +54,7 @@ export const currency: any = {
"40": "ETH",
"38": "BRISE",
"39": "CSPR",
"43": "BASE"
};

export const txExplorers: any = {
Expand Down Expand Up @@ -89,7 +91,8 @@ export const txExplorers: any = {
"34": "https://explorer.aptoslabs.com/txn/",
"40": "https://optimistic.etherscan.io/tx/",
"39": "https://cspr.live/deploy/",
"38": "https://brisescan.com/tx/"
"38": "https://brisescan.com/tx/",
"43": "https://basescan.org/tx/"
};

export const addressExplorers: any = {
Expand Down Expand Up @@ -126,7 +129,8 @@ export const addressExplorers: any = {
"34": "https://explorer.aptoslabs.com/account/",
"40": "https://optimistic.etherscan.io/address/",
"39": "https://cspr.live/address/",
"38": "https://brisescan.com/address/"
"38": "https://brisescan.com/address/",
"43": "https://basescan.org/address/"
};

export const collectionExplorers: any = {
Expand All @@ -143,7 +147,8 @@ export const collectionExplorers: any = {
"20": "https://iotexscan.io/address/",
"9": "https://tronscan.org/#/contract/",
"39": "https://cspr.live/contract-package/",
"38": "https://brisescan.com/address/"
"38": "https://brisescan.com/address/",
"43": "https://basescan.org/address/"
};

export const chainNoncetoName: any = {
Expand Down Expand Up @@ -181,7 +186,8 @@ export const chainNoncetoName: any = {
"34": "Aptos",
"40": "Optimism",
"39": "Casper",
"38": "Bitgert"
"38": "Bitgert",
"43": "Base"
};

export const _headers = {
Expand Down Expand Up @@ -253,7 +259,8 @@ export const chains = [
icon: Dfinity,
dec: -8,
},
{ id: "bitrise-token", name: "Bitgert", icon: Bitgert }
{ id: "bitrise-token", name: "Bitgert", icon: Bitgert },
{ id: "ethereum", name: "Base", icon: Base }
];

export const url = "https://explorer-app.xp.network/";
Expand Down
15 changes: 15 additions & 0 deletions src/values.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ import arbitrumTestNet from "./assets/icons/arbitrumTN.svg";
import Aptos from "./assets/icons/aptos.svg";
import brise from "./assets/icons/brise.png";
import casper from "./assets/icons/casper.svg";
import base from "./assets/icons/base.svg";

export const EVM = "EVM";
export const ELROND = "MultiversX";
Expand Down Expand Up @@ -526,4 +527,18 @@ export const chains = [
chainId: 32520,
tnChainId: 64668,
},
{
type: "EVM",
key: "Base",
text: "Base",
value: "Base",
nonce: 0x2b,
chainId: 8453,
order: 24,
image: { avatar: true, src: base },
maintenance: false,
testNet: true,
mainnet: true,
newChain: true,
},
];
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7505,7 +7505,7 @@ neo-async@^2.6.2:

"nft-parser@git+https://github.com/xp-network/nft-parser#bleeding-edge":
version "0.2.0"
resolved "git+https://github.com/xp-network/nft-parser#8914891531c0eba627047dcb7a4cad77bad0a105"
resolved "git+https://github.com/xp-network/nft-parser#2a684016c8463e454348cce1d1c43e615bd31867"
dependencies:
"@ethersproject/providers" "^5.7.2"
"@moralisweb3/common-evm-utils" "^2.17.0"
Expand Down

0 comments on commit 9081948

Please sign in to comment.