Skip to content

Commit

Permalink
Merge branch 'jaden/platf-4535-support-zerθ-mainnet-announcement-on-o…
Browse files Browse the repository at this point in the history
…ct-30' into dev
  • Loading branch information
JadenDurnford committed Oct 25, 2024
2 parents f2ad28e + 23f8126 commit d747fbe
Show file tree
Hide file tree
Showing 15 changed files with 257 additions and 26 deletions.
1 change: 1 addition & 0 deletions components/buttons/Bid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ const Bid: FC<Props> = ({
currencies={bidCurrencies}
oracleEnabled={marketplaceChain.oracleBidsEnabled}
chainId={marketplaceChain.id}
orderKind={marketplaceChain.seaportV15 ? 'seaport' : 'seaport-v1.6'}
onClose={(data, stepData, currentStep) => {
if (mutate && currentStep == BidStep.Complete) mutate()
}}
Expand Down
1 change: 1 addition & 0 deletions components/buttons/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ const List: FC<Props> = ({
feesBps={orderFees}
currencies={listingCurrencies}
chainId={marketplaceChain.id}
orderKind={marketplaceChain.seaportV15 ? 'seaport' : 'seaport-v1.6'}
onClose={(data, stepData, currentStep) => {
if (mutate && currentStep == ListStep.Complete) mutate()
}}
Expand Down
1 change: 1 addition & 0 deletions components/collections/TokenCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,7 @@ export default ({
description: 'Request to refresh this token was accepted.',
})
}}
disableOnChainRendering={true}
/>
</Box>
</Link>
Expand Down
1 change: 1 addition & 0 deletions components/portfolio/PortfolioTokenCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ export default ({
description: 'Request to refresh this token was accepted.',
})
}}
disableOnChainRendering={true}
/>
</Box>
</Link>
Expand Down
1 change: 1 addition & 0 deletions components/token/FullscreenMedia.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const FullscreenMedia: FC<Props> = ({ token }) => {
height: 'auto',
padding: '4px',
}}
disableOnChainRendering={true}
/>
</Flex>
</motion.div>
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.1.2",
"@reservoir0x/reservoir-kit-ui": "^2.7.24",
"@reservoir0x/reservoir-kit-ui": "^2.7.32",
"@sentry/nextjs": "^7.85.0",
"@tanstack/react-query": "5.20.2",
"@types/uuid": "^9.0.1",
Expand Down
1 change: 1 addition & 0 deletions pages/[chain]/asset/[assetId].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ const IndexPage: NextPage<Props> = ({ assetId, ssr }) => {
description: 'Request to refresh this token was accepted.',
})
}}
disableOnChainRendering={true}
/>
<FullscreenMedia token={token} />
</Box>
Expand Down
12 changes: 6 additions & 6 deletions public/icons/nebula-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.
12 changes: 6 additions & 6 deletions public/icons/nebula-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: 16 additions & 0 deletions public/icons/zero-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.
16 changes: 16 additions & 0 deletions public/icons/zero-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.
26 changes: 26 additions & 0 deletions utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export type ReservoirChain = Chain & {
oracleBidsEnabled?: boolean
checkPollingInterval?: number
paperContractId?: string
seaportV15?: boolean
}

const nativeCurrencyBase = {
Expand Down Expand Up @@ -251,6 +252,7 @@ export default [
coingeckoId: 'binancecoin',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.opBnb.checkPollingInterval,
seaportV15: true,
},
{
...customChains.ancient8,
Expand All @@ -262,6 +264,7 @@ export default [
coingeckoId: 'ethereum',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.ancient8.checkPollingInterval,
seaportV15: true,
},
{
...avalanche,
Expand Down Expand Up @@ -301,6 +304,7 @@ export default [
community: process.env.NEXT_PUBLIC_LINEA_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.linea.checkPollingInterval,
seaportV15: true,
},
{
...polygonZkEvm,
Expand All @@ -315,6 +319,7 @@ export default [
community: process.env.NEXT_PUBLIC_POLYGON_ZKEVM_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.polygonZkEvm.checkPollingInterval,
seaportV15: true,
},
{
...zkSync,
Expand All @@ -330,6 +335,7 @@ export default [
community: process.env.NEXT_PUBLIC_ZKSYNC_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.zkSync.checkPollingInterval,
seaportV15: true,
},
{
...scroll,
Expand All @@ -345,6 +351,7 @@ export default [
community: process.env.NEXT_PUBLIC_SCROLL_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.scroll.checkPollingInterval,
seaportV15: true,
},
{
...customChains.apexPop,
Expand All @@ -360,6 +367,7 @@ export default [
community: process.env.NEXT_PUBLIC_APEX_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.apexPop.checkPollingInterval,
seaportV15: true,
},
{
...customChains.blast,
Expand Down Expand Up @@ -390,6 +398,7 @@ export default [
community: process.env.NEXT_PUBLIC_ASTAR_ZKEVM_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.astarZkEVM.checkPollingInterval,
seaportV15: true,
},
{
...customChains.redstone,
Expand All @@ -405,6 +414,7 @@ export default [
community: process.env.NEXT_PUBLIC_REDSTONE_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.redstone.checkPollingInterval,
seaportV15: true,
},
{
...customChains.degen,
Expand All @@ -420,6 +430,7 @@ export default [
community: process.env.NEXT_PUBLIC_DEGEN_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.degen.checkPollingInterval,
seaportV15: true,
},
{
...customChains.xai,
Expand Down Expand Up @@ -469,6 +480,7 @@ export default [
],
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.nebula.checkPollingInterval,
seaportV15: true,
},
{
...customChains.cyber,
Expand Down Expand Up @@ -499,6 +511,7 @@ export default [
community: process.env.NEXT_PUBLIC_BITLAYER_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.bitlayer.checkPollingInterval,
seaportV15: true,
},
{
...customChains.sei,
Expand Down Expand Up @@ -604,4 +617,17 @@ export default [
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.flow.checkPollingInterval,
},
{
...customChains.zero,
name: 'Zero',
lightIconUrl: '/icons/zero-icon-light.svg',
darkIconUrl: '/icons/zero-icon-dark.svg',
reservoirBaseUrl: reservoirChains.zero.baseApiUrl,
proxyApi: '/api/reservoir/zero',
routePrefix: 'zero',
apiKey: process.env.RESERVOIR_API_KEY,
coingeckoId: 'ethereum',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.zero.checkPollingInterval,
},
] as ReservoirChain[]
Loading

0 comments on commit d747fbe

Please sign in to comment.