Skip to content

Commit

Permalink
Merge pull request #532 from reservoirprotocol/jaden/platf-4383-updat…
Browse files Browse the repository at this point in the history
…e-explorer-to-default-to-seaport-16-when-available

feat: default to seaport 1.6 when available
  • Loading branch information
JadenDurnford authored Oct 8, 2024
2 parents 358eae8 + 678612a commit d24f72a
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/buttons/Bid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@ const Bid: FC<Props> = ({
currencies={bidCurrencies}
oracleEnabled={marketplaceChain.oracleBidsEnabled}
chainId={marketplaceChain.id}
orderKind={
marketplaceChain.seaportV15 ? 'seaport-v1.5' : 'seaport-v1.6'
}
onClose={(data, stepData, currentStep) => {
if (mutate && currentStep == BidStep.Complete) mutate()
}}
Expand Down
3 changes: 3 additions & 0 deletions components/buttons/List.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ const List: FC<Props> = ({
feesBps={orderFees}
currencies={listingCurrencies}
chainId={marketplaceChain.id}
orderKind={
marketplaceChain.seaportV15 ? 'seaport-v1.5' : 'seaport-v1.6'
}
onClose={(data, stepData, currentStep) => {
if (mutate && currentStep == ListStep.Complete) mutate()
}}
Expand Down
12 changes: 12 additions & 0 deletions utils/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export type ReservoirChain = Chain & {
oracleBidsEnabled?: boolean
checkPollingInterval?: number
paperContractId?: string
seaportV15?: boolean
}

const nativeCurrencyBase = {
Expand Down Expand Up @@ -224,6 +225,7 @@ export default [
coingeckoId: 'binancecoin',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.opBnb.checkPollingInterval,
seaportV15: true,
},
{
...customChains.ancient8,
Expand All @@ -235,6 +237,7 @@ export default [
coingeckoId: 'ethereum',
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.ancient8.checkPollingInterval,
seaportV15: true,
},
{
...avalanche,
Expand Down Expand Up @@ -274,6 +277,7 @@ export default [
community: process.env.NEXT_PUBLIC_LINEA_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.linea.checkPollingInterval,
seaportV15: true,
},
{
...polygonZkEvm,
Expand All @@ -288,6 +292,7 @@ export default [
community: process.env.NEXT_PUBLIC_POLYGON_ZKEVM_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.polygonZkEvm.checkPollingInterval,
seaportV15: true,
},
{
...zkSync,
Expand Down Expand Up @@ -318,6 +323,7 @@ export default [
community: process.env.NEXT_PUBLIC_SCROLL_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.scroll.checkPollingInterval,
seaportV15: true,
},
{
...customChains.apexPop,
Expand All @@ -333,6 +339,7 @@ export default [
community: process.env.NEXT_PUBLIC_APEX_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.apexPop.checkPollingInterval,
seaportV15: true,
},
{
...customChains.blast,
Expand Down Expand Up @@ -363,6 +370,7 @@ export default [
community: process.env.NEXT_PUBLIC_ASTAR_ZKEVM_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.astarZkEVM.checkPollingInterval,
seaportV15: true,
},
{
...customChains.redstone,
Expand All @@ -378,6 +386,7 @@ export default [
community: process.env.NEXT_PUBLIC_REDSTONE_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.redstone.checkPollingInterval,
seaportV15: true,
},
{
...customChains.degen,
Expand All @@ -393,6 +402,7 @@ export default [
community: process.env.NEXT_PUBLIC_DEGEN_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.degen.checkPollingInterval,
seaportV15: true,
},
{
...customChains.xai,
Expand Down Expand Up @@ -442,6 +452,7 @@ export default [
],
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.nebula.checkPollingInterval,
seaportV15: true,
},
{
...customChains.cyber,
Expand Down Expand Up @@ -472,6 +483,7 @@ export default [
community: process.env.NEXT_PUBLIC_BITLAYER_COMMUNITY,
oracleBidsEnabled: true,
checkPollingInterval: reservoirChains.bitlayer.checkPollingInterval,
seaportV15: true,
},
{
...customChains.sei,
Expand Down

0 comments on commit d24f72a

Please sign in to comment.