diff --git a/package.json b/package.json index 1254024eb..b4c86c216 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/public/home/logos/arbitrum-nova-logo.png b/public/home/logos/arbitrum-nova-logo.png new file mode 100644 index 000000000..1c8504212 Binary files /dev/null and b/public/home/logos/arbitrum-nova-logo.png differ diff --git a/public/icons/arbitrum-nova-icon-dark.svg b/public/icons/arbitrum-nova-icon-dark.svg new file mode 100644 index 000000000..106e4a5fe --- /dev/null +++ b/public/icons/arbitrum-nova-icon-dark.svg @@ -0,0 +1,18 @@ + + + + + + diff --git a/public/icons/arbitrum-nova-icon-light.svg b/public/icons/arbitrum-nova-icon-light.svg new file mode 100644 index 000000000..6b749eceb --- /dev/null +++ b/public/icons/arbitrum-nova-icon-light.svg @@ -0,0 +1,18 @@ + + + + + + diff --git a/utils/chains.ts b/utils/chains.ts index 5b5b19f4f..9c7eaae1a 100644 --- a/utils/chains.ts +++ b/utils/chains.ts @@ -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 @@ -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', diff --git a/utils/wrappedContracts.ts b/utils/wrappedContracts.ts index c9573abb1..184737870 100644 --- a/utils/wrappedContracts.ts +++ b/utils/wrappedContracts.ts @@ -4,6 +4,7 @@ const wrappedContracts: Record = { 10: '0x4200000000000000000000000000000000000006', //optimism 137: '0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270', //polygon 42161: '0x82af49447d8a07e3bd95bd0d56f35241523fbab1', //arbitrum + 42170: '0x722e8bdd2ce80a4422e880164f2079488e115365', //arbitrum nova 999: '0x8a5027ea12f45a13deb6CB96A07913c6e192BE84', //zoratestnet 80001: '0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889', //mumbai 84531: '0x4200000000000000000000000000000000000006', //base goerli diff --git a/yarn.lock b/yarn.lock index ec14ea4f2..1c75df13c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" @@ -1670,7 +1670,7 @@ "@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" @@ -1678,10 +1678,10 @@ 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"