Skip to content

Commit

Permalink
Merge pull request #252 from reservoirprotocol/feature/arbitrum-nova
Browse files Browse the repository at this point in the history
Add arbitrum nova to chains
  • Loading branch information
pedromcunha authored Jul 24, 2023
2 parents c0b0d13 + 4c303a1 commit b65b504
Show file tree
Hide file tree
Showing 7 changed files with 93 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"@radix-ui/react-toggle-group": "^1.0.1",
"@radix-ui/react-tooltip": "^1.0.2",
"@rainbow-me/rainbowkit": "^1.0.3",
"@reservoir0x/reservoir-kit-ui": "1.3.1",
"@reservoir0x/reservoir-kit-ui": "1.3.3",
"@sentry/nextjs": "^7.53.1",
"@types/uuid": "^9.0.1",
"dayjs": "^1.11.6",
Expand Down
Binary file added public/home/logos/arbitrum-nova-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions public/icons/arbitrum-nova-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.
18 changes: 18 additions & 0 deletions public/icons/arbitrum-nova-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.
46 changes: 46 additions & 0 deletions utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,40 @@ export const zora = {
},
} as const satisfies Chain

//Chains that are missing from wagmi:
export const arbitrumNova = {
id: 42170,
name: 'Arbitrum Nova',
network: 'arbitrum-nova',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
blast: {
http: ['https://arbitrum-nova.public.blastapi.io'],
webSocket: ['wss://arbitrum-nova.public.blastapi.io'],
},
default: {
http: ['https://nova.arbitrum.io/rpc'],
},
public: {
http: ['https://nova.arbitrum.io/rpc'],
},
},
blockExplorers: {
etherscan: { name: 'Arbiscan', url: 'https://nova.arbiscan.io' },
blockScout: {
name: 'BlockScout',
url: 'https://nova-explorer.arbitrum.io/',
},
default: { name: 'Arbiscan', url: 'https://nova.arbiscan.io' },
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 1746963,
},
},
} as const satisfies Chain

//CONFIGURABLE: The default export controls the supported chains for the marketplace. Removing
// or adding chains will result in adding more or less chains to the marketplace.
// They are an extension of the wagmi chain objects
Expand Down Expand Up @@ -99,6 +133,18 @@ export default [
collectionSetId: process.env.NEXT_PUBLIC_ARBITRUM_COLLECTION_SET_ID,
community: process.env.NEXT_PUBLIC_ARBITRUM_COMMUNITY,
},
{
...arbitrumNova,
lightIconUrl: '/icons/arbitrum-nova-icon-dark.svg',
darkIconUrl: '/icons/arbitrum-nova-icon-light.svg',
reservoirBaseUrl: 'https://api-arbitrum-nova.reservoir.tools',
proxyApi: '/api/reservoir/arbitrum-nova',
routePrefix: 'arbitrum-nova',
apiKey: process.env.ARBITRUM_NOVA_RESERVOIR_API_KEY,
coingeckoId: 'ethereum',
collectionSetId: process.env.NEXT_PUBLIC_ARBITRUM_NOVA_COLLECTION_SET_ID,
community: process.env.NEXT_PUBLIC_ARBITRUM_NOVA_COMMUNITY,
},
{
...optimism,
name: 'Optimism',
Expand Down
1 change: 1 addition & 0 deletions utils/wrappedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const wrappedContracts: Record<number, string> = {
10: '0x4200000000000000000000000000000000000006', //optimism
137: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', //polygon
42161: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1', //arbitrum
42170: '0x722e8bdd2ce80a4422e880164f2079488e115365', //arbitrum nova
999: '0x8a5027ea12f45a13deb6CB96A07913c6e192BE84', //zoratestnet
80001: '0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889', //mumbai
84531: '0x4200000000000000000000000000000000000006', //base goerli
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1652,10 +1652,10 @@
dependencies:
"@react-hookz/deep-equal" "^1.0.3"

"@reservoir0x/reservoir-kit-ui@1.3.1":
version "1.3.1"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-1.3.1.tgz#f6b876b58de737e3b43a7d71dfb9e0f6e7d93e93"
integrity sha512-YDJhFpvaB+8BFuweD2uV1UwHYfDxod99Qr7P5/M5ORg+EZ1Wk7e+LOq/8yKG72GAge2qXg1DnCSnDVXgqU5KBw==
"@reservoir0x/reservoir-kit-ui@1.3.3":
version "1.3.3"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-1.3.3.tgz#0a4b93122775badb8562c5de7d353817dd7a4881"
integrity sha512-aEDIJ+5KknjZoEXjk+T6lJkCRTglL1hBspi8iNvefG77DYuH4t33Al+b+gv0lqS+JYjuEJifExDJpN9iqGyz1w==
dependencies:
"@fortawesome/fontawesome-svg-core" "^6.1.1"
"@fortawesome/free-solid-svg-icons" "^6.1.1"
Expand All @@ -1670,18 +1670,18 @@
"@radix-ui/react-toggle-group" "1.0.4"
"@radix-ui/react-tooltip" "1.0.6"
"@react-hookz/web" "^19.2.0"
"@reservoir0x/reservoir-sdk" "1.1.18"
"@reservoir0x/reservoir-sdk" "1.1.19"
"@stitches/react" "1.3.1-1"
dayjs "^1.11.4"
flatpickr "^4.6.13"
framer-motion "^6.4.2"
react-flatpickr "^3.10.13"
swr "2.0.1"

"@reservoir0x/reservoir-sdk@1.1.18":
version "1.1.18"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-1.1.18.tgz#71c2bc85569f5c510c194ac0d5a66566bca1da66"
integrity sha512-aIX5FGLCO5GHKvv/Er7gPZGaNaKpLmQHazs1Feuh0bLg8h9vS0vzuKKV2RLX2rFYDef6qWt0J5eGchhcmp0zqw==
"@reservoir0x/reservoir-sdk@1.1.19":
version "1.1.19"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-1.1.19.tgz#63057084ea102f7b7b147208161f8886e58a227d"
integrity sha512-6IL216u4UYf80atZ99JUn/oyeEvnE7UgbLW/CfF6g3lNnhwO4nkXCM7rF+RP5LqkAPFBLfAyJPx/71Qk6NS7Sw==
dependencies:
axios "^0.27.2"

Expand Down

2 comments on commit b65b504

@vercel
Copy link

@vercel vercel bot commented on b65b504 Jul 24, 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

@vercel
Copy link

@vercel vercel bot commented on b65b504 Jul 24, 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.