From 4e09c9ab76de7fa0b9e155f64e16b2e811f401f1 Mon Sep 17 00:00:00 2001 From: franm Date: Wed, 4 Sep 2024 11:39:08 -0300 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8Fstaking:=20update=20protocol?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hooks/useStakingPreviewer.ts | 4 +++- package.json | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hooks/useStakingPreviewer.ts b/hooks/useStakingPreviewer.ts index d0e83337f..439af454f 100644 --- a/hooks/useStakingPreviewer.ts +++ b/hooks/useStakingPreviewer.ts @@ -1,14 +1,16 @@ import { isAddress, zeroAddress } from 'viem'; -import { optimismSepolia } from 'wagmi/chains'; +import { optimismSepolia, optimism } from 'wagmi/chains'; import { useWeb3 } from './useWeb3'; import { useStakingPreviewerAllClaimable, useStakingPreviewerStaking } from 'types/abi'; import sepoliaPreviewer from '@exactly/protocol/deployments/op-sepolia/StakingPreviewer.json' assert { type: 'json' }; +import optimismPreviewer from '@exactly/protocol/deployments/optimism/StakingPreviewer.json' assert { type: 'json' }; export const usePreviewerStaking = (override?: number) => { const { chain, walletAddress } = useWeb3(); const address = { + [optimism.id]: optimismPreviewer.address, [optimismSepolia.id]: sepoliaPreviewer.address, }[override ?? chain.id]; diff --git a/package.json b/package.json index 1d1ed254a..bc2a07434 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,7 @@ "@emotion/react": "^11.11.4", "@emotion/styled": "^11.11.0", "@exactly/lib": "exactly/lib#90a6d1121e3350bd2a77c474bd59bfe1b0b8dd1e", - "@exactly/protocol": "exactly/protocol#0890c2e27e00054e1643608eac413f8548ce1ded", + "@exactly/protocol": "exactly/protocol#7e606d6e80e67e557b3bbee2a264520f67755f14", "@mui/icons-material": "^5.15.14", "@mui/lab": "^5.0.0-alpha.169", "@mui/material": "^5.15.14",