Skip to content

Commit

Permalink
Merge pull request #353 from reservoirprotocol/pedro/grwth-3456-add-s…
Browse files Browse the repository at this point in the history
…croll-mainnet-to-explorer

Add scroll mainnet to explorer
  • Loading branch information
ted-palmer authored Oct 27, 2023
2 parents e93e757 + e78c0c7 commit 0c20d04
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@radix-ui/react-toggle-group": "^1.0.1",
"@radix-ui/react-tooltip": "1.0.6",
"@rainbow-me/rainbowkit": "^1.0.9",
"@reservoir0x/reservoir-kit-ui": "1.12.0",
"@reservoir0x/reservoir-kit-ui": "1.12.3",
"@sentry/nextjs": "^7.53.1",
"@types/uuid": "^9.0.1",
"dayjs": "^1.11.6",
Expand Down
46 changes: 46 additions & 0 deletions utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,39 @@ import {
} from 'wagmi/chains'
import usdcContracts from './usdcContracts'

export const scroll = {
id: 534352,
name: 'Scroll',
network: 'scroll',
nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 },
rpcUrls: {
default: {
http: ['https://rpc.scroll.io'],
webSocket: ['wss://wss-rpc.scroll.io/ws'],
},
public: {
http: ['https://rpc.scroll.io'],
webSocket: ['wss://wss-rpc.scroll.io/ws'],
},
},
blockExplorers: {
default: {
name: 'Scrollscan',
url: 'https://scrollscan.com',
},
blockscout: {
name: 'Blockscout',
url: 'https://blockscout.scroll.io',
},
},
contracts: {
multicall3: {
address: '0xca11bde05977b3631167028862be2a173976ca11',
blockCreated: 14,
},
},
} 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 @@ -256,4 +289,17 @@ export default [
collectionSetId: process.env.NEXT_PUBLIC_ZKSYNC_COLLECTION_SET_ID,
community: process.env.NEXT_PUBLIC_ZKSYNC_COMMUNITY,
},
{
...scroll,
name: 'Scroll',
lightIconUrl: '/icons/scroll-testnet-icon-dark.svg',
darkIconUrl: '/icons/scroll-testnet-icon-light.svg',
reservoirBaseUrl: 'https://api-scroll.reservoir.tools',
proxyApi: '/api/reservoir/scroll',
routePrefix: 'scroll',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'ethereum',
collectionSetId: process.env.NEXT_PUBLIC_SCROLL_COLLECTION_SET_ID,
community: process.env.NEXT_PUBLIC_SCROLL_COMMUNITY,
},
] as ReservoirChain[]
1 change: 1 addition & 0 deletions utils/wrappedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const wrappedContracts: Record<number, string> = {
80001: '0x9c3C9283D3e44854697Cd22D3Faa240Cfb032889', //mumbai
84531: '0x4200000000000000000000000000000000000006', //base goerli
534353: '0xa1EA0B2354F5A344110af2b6AD68e75545009a03', //scrolltestnet
534352: '0x5300000000000000000000000000000000000004', //scroll
7777777: '0x4200000000000000000000000000000000000006', //zora
11155111: '0x7b79995e5f793a07bc00c21412e50ecae098e7f9', //sepolia
}
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1417,10 +1417,10 @@
dependencies:
"@react-hookz/deep-equal" "^1.0.3"

"@reservoir0x/[email protected].0":
version "1.12.0"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-1.12.0.tgz#b2414ca9f056ca06a54f3d2ee34d6cacbca2d9d7"
integrity sha512-7Vxmx81e8smtB3CtMw25auh5D5o8eZf2axtDnxq+BY/pruYOcutYYwHloALaayY73x3jm0uhamGKOU39JOT1Lw==
"@reservoir0x/[email protected].3":
version "1.12.3"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-1.12.3.tgz#90af83de6611b7ba9629b97db55d356b180b6a03"
integrity sha512-MBsL60VCZm0moqJnevUWtlwAkRfOsFnxpPqV5LJJsZH5lSpN3tSSFw/aGoWi/P94F7+N/xcQXF9g+NVNqK1zlg==
dependencies:
"@fortawesome/fontawesome-svg-core" "^6.1.1"
"@fortawesome/free-solid-svg-icons" "^6.1.1"
Expand All @@ -1436,18 +1436,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.5.2"
"@reservoir0x/reservoir-sdk" "1.5.3"
"@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/[email protected].2":
version "1.5.2"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-1.5.2.tgz#389a8d102b53c661c45c463a4db9db35dee131f9"
integrity sha512-xfDAHWoVwoAgv7EqF8ncqOgiMrTIK6kFV+mYkSkSZmKhonlTbc25PgswBOyBPeqf5329lkISty0VTZJfLU/Hvw==
"@reservoir0x/[email protected].3":
version "1.5.3"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-1.5.3.tgz#7a662c35051a35fc169f059b19baa88b51ae7cec"
integrity sha512-SeHVt0o190f7dbSonh1Zyqg38S7D8etPC9qp1YNR2EmkxQOS/FTrXov0eIPT6o0sBJ2NvLxpUqPyhTNox41JmQ==
dependencies:
axios "^0.27.2"

Expand Down

1 comment on commit 0c20d04

@vercel
Copy link

@vercel vercel bot commented on 0c20d04 Oct 27, 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.