chore: update to listing with seaport 1.5 (#6485)

update to listing with seaport 1.5

Co-authored-by: Charles Bachmeier <charlie@genie.xyz>
This commit is contained in:
Charles Bachmeier 2023-05-02 18:46:12 -07:00 committed by GitHub
parent c2a972eb75
commit ef4a80852d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

@ -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",

@ -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

@ -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) {

@ -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"