Skip to content

Commit

Permalink
Merge pull request #272 from reservoirprotocol/ted/grwth-3008-add-bas…
Browse files Browse the repository at this point in the history
…e-mainnet-to-explorer

Add base to supported chains
  • Loading branch information
pedromcunha committed Jul 25, 2023
2 parents b65b504 + a6bfa6e commit 450b5a6
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 1 deletion.
Binary file added public/home/logos/base-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/icons/base-icon-dark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions public/icons/base-icon-light.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 37 additions & 1 deletion utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,31 @@ export const zora = {
},
} as const satisfies Chain

//Chains that are missing from wagmi:
export const base = {
id: 8453,
name: 'Base',
network: 'base',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://developer-access-mainnet.base.org'],
},
public: {
http: ['https://developer-access-mainnet.base.org'],
},
},
blockExplorers: {
etherscan: {
name: 'Basescan',
url: 'https://basescan.org',
},
default: {
name: 'BaseScan',
url: 'https://basescan.org',
},
},
} as const satisfies Chain

export const arbitrumNova = {
id: 42170,
name: 'Arbitrum Nova',
Expand Down Expand Up @@ -181,4 +205,16 @@ export default [
collectionSetId: process.env.NEXT_PUBLIC_BSC_COLLECTION_SET_ID,
community: process.env.NEXT_PUBLIC_BSC_COMMUNITY,
},
{
...base,
lightIconUrl: '/icons/base-icon-dark.svg',
darkIconUrl: '/icons/base-icon-light.svg',
reservoirBaseUrl: 'https://api-base.reservoir.tools',
proxyApi: '/api/reservoir/base',
routePrefix: 'base',
apiKey: process.env.BASE_RESERVOIR_API_KEY,
coingeckoId: 'ethereum',
collectionSetId: process.env.NEXT_PUBLIC_BASE_COLLECTION_SET_ID,
community: process.env.NEXT_PUBLIC_BASE_COMMUNITY,
},
] as ReservoirChain[]

2 comments on commit 450b5a6

@vercel
Copy link

@vercel vercel bot commented on 450b5a6 Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

artblocks-v2 – ./

artblocks-v2-git-main-unevenlabs.vercel.app
artblocks-v2.vercel.app
artblocks-v2-unevenlabs.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 450b5a6 Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.