Skip to content

Commit

Permalink
Merge pull request #274 from reservoirprotocol/pedro/grwth-3014-avala…
Browse files Browse the repository at this point in the history
…nche-chain

Add avalanche
  • Loading branch information
pedromcunha authored Aug 11, 2023
2 parents a51357f + 5c2ac3b commit c430c5f
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 1 deletion.
Binary file added public/home/logos/avalanche-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions public/icons/avalanche-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.
10 changes: 10 additions & 0 deletions public/icons/avalanche-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.
14 changes: 13 additions & 1 deletion utils/chains.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Currency } from '@reservoir0x/reservoir-kit-ui'
import wrappedContracts from './wrappedContracts'
import { zeroAddress } from 'viem'
import { arbitrum, mainnet, polygon, optimism, Chain, bsc } from 'wagmi/chains'
import { arbitrum, mainnet, polygon, optimism, Chain, bsc, avalanche } from 'wagmi/chains'
import usdcContracts from './usdcContracts'

//Chains that are missing from wagmi:
Expand Down Expand Up @@ -297,6 +297,18 @@ export default [
},
],
},
{
...avalanche,
lightIconUrl: '/icons/avalanche-icon-dark.svg',
darkIconUrl: '/icons/avalanche-icon-light.svg',
reservoirBaseUrl: 'https://api-avalanche.reservoir.tools',
proxyApi: '/api/reservoir/avalanche',
routePrefix: 'avalanche',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'avalanche-2',
collectionSetId: process.env.NEXT_PUBLIC_AVALANCHE_COLLECTION_SET_ID,
community: process.env.NEXT_PUBLIC_AVALANCHE_COMMUNITY,
},
{
...base,
lightIconUrl: '/icons/base-icon-dark.svg',
Expand Down
1 change: 1 addition & 0 deletions utils/wrappedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const wrappedContracts: Record<number, string> = {
56: '0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c', //bnb
137: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', //polygon
42161: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1', //arbitrum
43114: '0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7', //avalance
42170: '0x722e8bdd2ce80a4422e880164f2079488e115365', //arbitrum nova
59144: '0xe5d7c2a44ffddf6b295a15c148167daaaf5cf34f', //linea
999: '0x8a5027ea12f45a13deb6CB96A07913c6e192BE84', //zoratestnet
Expand Down

2 comments on commit c430c5f

@vercel
Copy link

@vercel vercel bot commented on c430c5f Aug 11, 2023

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on c430c5f Aug 11, 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.vercel.app
artblocks-v2-git-main-unevenlabs.vercel.app
artblocks-v2-unevenlabs.vercel.app

Please sign in to comment.