Skip to content

Commit

Permalink
Merge pull request #485 from reservoirprotocol/feature/astar-zkevm
Browse files Browse the repository at this point in the history
Astar zkevm
  • Loading branch information
pedromcunha authored Mar 7, 2024
2 parents eec34ce + 5bd2ebc commit 081771f
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 11 deletions.
2 changes: 2 additions & 0 deletions hooks/useIsUnsupportedChain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ const MAINNET_CHAINS: Chain[] = [
reservoirChains.scroll,
reservoirChains.opBnb,
reservoirChains.ancient8,
reservoirChains.astarZkEVM,
reservoirChains.blast,
]

const MAINNET_DEPLOYMENT_URLS = [
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"@radix-ui/react-toggle-group": "^1.0.1",
"@radix-ui/react-tooltip": "1.0.6",
"@rainbow-me/rainbowkit": "2.0.0",
"@reservoir0x/reservoir-kit-ui": "2.3.3",
"@reservoir0x/reservoir-kit-ui": "2.3.7",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand Down
20 changes: 20 additions & 0 deletions public/icons/astar-zkevm-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.
20 changes: 20 additions & 0 deletions public/icons/astar-zkevm-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.
16 changes: 15 additions & 1 deletion utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ export default [
name: 'Blast',
lightIconUrl: '/icons/blast-icon-light.svg',
darkIconUrl: '/icons/blast-icon-dark.svg',
reservoirBaseUrl: 'https://api-blast.reservoir.tools',
reservoirBaseUrl: reservoirChains.blast.baseApiUrl,
proxyApi: '/api/reservoir/blast',
routePrefix: 'blast',
apiKey: process.env.RESERVOIR_API_KEY,
Expand All @@ -334,4 +334,18 @@ export default [
community: process.env.NEXT_PUBLIC_BLAST_COMMUNITY,
checkPollingInterval: reservoirChains.blast.checkPollingInterval,
},
{
...customChains.astarZkEVM,
name: 'Astar ZkEVM',
lightIconUrl: '/icons/astar-zkevm-icon-light.svg',
darkIconUrl: '/icons/astar-zkevm-icon-dark.svg',
reservoirBaseUrl: reservoirChains.astarZkEVM.baseApiUrl,
proxyApi: '/api/reservoir/astar-zkevm',
routePrefix: 'astar-zkevm',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'ethereum',
collectionSetId: process.env.NEXT_PUBLIC_ASTAR_ZKEVM_COLLECTION_SET_ID,
community: process.env.NEXT_PUBLIC_ASTAR_ZKEVM_COMMUNITY,
checkPollingInterval: reservoirChains.astarZkEVM.checkPollingInterval,
},
] as ReservoirChain[]
2 changes: 2 additions & 0 deletions utils/wrappedContracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ const wrappedContracts: Record<number, string> = {
11155111: '0x7b79995e5f793a07bc00c21412e50ecae098e7f9', //sepolia
70700: '0x77684A04145a5924eFCE0D92A7c4a2A2E8C359de', //Apex Pop
168587773: '0x4200000000000000000000000000000000000006', //blast sepolia
81457: '0x4300000000000000000000000000000000000004', //blast
3776: '0xE9CC37904875B459Fa5D0FE37680d36F1ED55e38', // astar zkEVM
}

export default wrappedContracts
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1888,10 +1888,10 @@
dependencies:
merge-options "^3.0.4"

"@reservoir0x/[email protected].3":
version "2.3.3"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.3.3.tgz#d6be9bebeb02dedc260fa359189f96330116e620"
integrity sha512-mBvZIIS9k8KE/fiifCeFUKer2lC09THC4YSHx454ReRA9ifUKZmYgue8Kyend/bouAZXFMi9rBd58eQx96Uc4A==
"@reservoir0x/[email protected].7":
version "2.3.7"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-2.3.7.tgz#33ecdf5ed57922ba999e1902268ea9cba1c826cb"
integrity sha512-ns+vtkBOB2lrj1GUW0yiX4/M/8GWZhG97f3q4htWY5laRuSLF5Nhx6tdiu2BEHL0v6yJLeQG3JPdJ4nxSXkfMA==
dependencies:
"@fortawesome/fontawesome-svg-core" "^6.1.1"
"@fortawesome/free-solid-svg-icons" "^6.1.1"
Expand All @@ -1907,18 +1907,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" "2.0.5"
"@reservoir0x/reservoir-sdk" "2.0.7"
"@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].5":
version "2.0.5"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.0.5.tgz#f158627ab8c4f5ceba2402d8e5cf3e3a82b9d4d9"
integrity sha512-UOLxzIyR+cOpuenC0EuqX4GX4FgH3GkyTi3eQFC1Tnc+zU1SSdMiF8caXPe0csWEIwtDysQ0L0Vzk2suBg07bQ==
"@reservoir0x/[email protected].7":
version "2.0.7"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-sdk/-/reservoir-sdk-2.0.7.tgz#4d3c2a8bb0059c2c925f7bf74934390ad8f12fc4"
integrity sha512-HimR3H1urwiYeWOME2XZd/2nkclkHjq0jEM5wAJa46zM3k6GjGMThp95Jg/LV6cV2Cu4ydD68zSrRpwnQTvbCQ==
dependencies:
axios "^1.6.7"

Expand Down

0 comments on commit 081771f

Please sign in to comment.