diff --git a/package.json b/package.json index 56fb6b0c63..65c330a214 100644 --- a/package.json +++ b/package.json @@ -138,7 +138,7 @@ "@lingui/react": "^3.14.0", "@looksrare/sdk": "^0.10.2", "@metamask/jazzicon": "^2.0.0", - "@opensea/seaport-js": "^1.0.10", + "@opensea/seaport-js": "^1.2.0", "@popperjs/core": "^2.4.4", "@reach/dialog": "^0.10.3", "@reach/portal": "^0.10.3", diff --git a/src/nft/queries/openSea/constants.ts b/src/nft/queries/openSea/constants.ts index 7170748732..8e6a1157f1 100644 --- a/src/nft/queries/openSea/constants.ts +++ b/src/nft/queries/openSea/constants.ts @@ -2,6 +2,6 @@ export const OPENSEA_FEE_ADDRESS = '0x0000a26b00c1F0DF003000390027140000fAa719' export const OPENSEA_DEFAULT_CROSS_CHAIN_CONDUIT_KEY = '0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000' export const OPENSEA_CROSS_CHAIN_CONDUIT = '0x1e0049783f008a0085193e00003d00cd54003c71' -export const OPENSEA_SEAPORT_V1_4_CONTRACT = '0x00000000000001ad428e4906ae43d8f9852d0dd6' +export const OPENSEA_SEAPORT_V1_5_CONTRACT = '0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC' export const OPENSEA_KEY_TO_CONDUIT = { [OPENSEA_DEFAULT_CROSS_CHAIN_CONDUIT_KEY]: OPENSEA_CROSS_CHAIN_CONDUIT } export const INVERSE_BASIS_POINTS = 10000 diff --git a/src/nft/utils/listNfts.ts b/src/nft/utils/listNfts.ts index 27b84ab4fd..bee8978cb7 100644 --- a/src/nft/utils/listNfts.ts +++ b/src/nft/utils/listNfts.ts @@ -13,7 +13,7 @@ import { OPENSEA_DEFAULT_CROSS_CHAIN_CONDUIT_KEY, OPENSEA_FEE_ADDRESS, OPENSEA_KEY_TO_CONDUIT, - OPENSEA_SEAPORT_V1_4_CONTRACT, + OPENSEA_SEAPORT_V1_5_CONTRACT, } from 'nft/queries/openSea' import ERC721 from '../../abis/erc721.json' @@ -122,7 +122,7 @@ export async function signListing( overrides: { defaultConduitKey: OPENSEA_DEFAULT_CROSS_CHAIN_CONDUIT_KEY, }, - seaportVersion: '1.4', + seaportVersion: '1.5', }) const signerAddress = await signer.getAddress() @@ -156,9 +156,9 @@ export async function signListing( ) const order = await executeAllActions() - const seaportV14Order = { ...order, protocol_address: OPENSEA_SEAPORT_V1_4_CONTRACT } + const seaportV15Order = { ...order, protocol_address: OPENSEA_SEAPORT_V1_5_CONTRACT } setStatus(ListingStatus.PENDING) - const res = await PostOpenSeaSellOrder(seaportV14Order) + const res = await PostOpenSeaSellOrder(seaportV15Order) res ? setStatus(ListingStatus.APPROVED) : setStatus(ListingStatus.FAILED) return res } catch (error) { diff --git a/yarn.lock b/yarn.lock index 5e92067b1d..2af272e4f6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3385,10 +3385,10 @@ mkdirp "^1.0.4" rimraf "^3.0.2" -"@opensea/seaport-js@^1.0.10": - version "1.0.10" - resolved "https://registry.yarnpkg.com/@opensea/seaport-js/-/seaport-js-1.0.10.tgz#538eed1316a99d2cf06a57fd874b719efad9c22e" - integrity sha512-k4kBmkCNYxAuB6DYRqwcGXik/8x80cHQ4r4bWWFyB0v4AxGNsqMGOwdeDiP1ajxbg4NnmdEpyA8b2p73GiaK7Q== +"@opensea/seaport-js@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@opensea/seaport-js/-/seaport-js-1.2.0.tgz#4edebaa8226f62abc2e5bf350680f172e2860b58" + integrity sha512-l5Y5ZfMC2Tm2ZXfsyZZNYo72zKHKUUS4J3UTUdK1+1Sd8GgRzwHkBGlBLyowqTrvosGfXR0BDDupP04H+APUZQ== dependencies: "@0xsequence/multicall" "^0.39.0" ethers "^5.6.7"