Skip to content

Commit cd03062

Browse files
authored
Update to final Seaport v1.2 address (ProjectOpenSea#165)
* update to final 1.2 address * add updated package-lock
1 parent 2c8e9be commit cd03062

File tree

7 files changed

+16581
-9941
lines changed

7 files changed

+16581
-9941
lines changed

.c8rc

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"reporter": ["lcov","text"],
3-
"src": ["src"],
4-
"exclude": ["hardhat.config.ts", "src/__tests__/*", "src/abi/*"]
5-
}
2+
"reporter": ["lcov", "text"],
3+
"src": ["src"],
4+
"exclude": ["hardhat.config.ts", "src/__tests__/*", "src/abi/*"]
5+
}

package-lock.json

+16,562-9,918
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@
2828
"eslint:check": "eslint . --max-warnings 0 --ext .js,.jsx,.ts,.tsx",
2929
"lint": "concurrently \"npm run check-types\" \"npm run eslint:check\" \"npm run prettier:check\" \"npm run prettier:check:package.json\"",
3030
"prepare": "husky install && npm run build",
31-
"test": "hardhat test",
3231
"prettier:check": "prettier --check .",
3332
"prettier:check:package.json": "prettier-package-json --list-different",
34-
"prettier:fix": "prettier --write ."
33+
"prettier:fix": "prettier --write .",
34+
"test": "hardhat test"
3535
},
3636
"types": "lib/index.d.ts",
3737
"resolutions": {
@@ -92,7 +92,7 @@
9292
"prettier-package-json": "^2.6.3",
9393
"prettier-plugin-solidity": "^1.0.0-beta.13",
9494
"seaport": "ProjectOpenSea/seaport#76e508657888e3ec84039e1da269c822826991ef",
95-
"seaportv12": "ProjectOpenSea/seaport#1.2-alpha-deploy",
95+
"seaport_v1_2": "ProjectOpenSea/seaport#1.2",
9696
"sinon": "^13.0.1",
9797
"sinon-chai": "^3.7.0",
9898
"solhint": "^3.3.7",

src/__tests__/utils/setup.ts

+9-8
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type {
55
TestERC20,
66
TestERC1155,
77
Seaport as SeaportContract,
8-
SeaportAlphaVersion as Seaportv12Contract,
98
DomainRegistry,
109
} from "../../typechain";
1110
import chai from "chai";
@@ -17,7 +16,7 @@ chai.use(sinonChai);
1716

1817
type Fixture = {
1918
seaportContract: SeaportContract;
20-
seaportv12Contract: Seaportv12Contract;
19+
seaportv12Contract: SeaportContract;
2120
seaport: Seaport;
2221
seaportv12: Seaport;
2322
domainRegistry: DomainRegistry;
@@ -34,10 +33,12 @@ export const describeWithFixture = (
3433
const fixture: Partial<Fixture> = {};
3534

3635
beforeEach(async () => {
37-
const SeaportFactory = await ethers.getContractFactory("Seaport");
36+
const SeaportFactory = await ethers.getContractFactory(
37+
"seaport/contracts/Seaport.sol:Seaport"
38+
);
3839

3940
const Seaportv12Factory = await ethers.getContractFactory(
40-
"SeaportAlphaVersion"
41+
"seaport_v1_2/contracts/Seaport.sol:Seaport"
4142
);
4243

4344
const ConduitControllerFactory = await ethers.getContractFactory(
@@ -46,13 +47,13 @@ export const describeWithFixture = (
4647

4748
const conduitController = await ConduitControllerFactory.deploy();
4849

49-
const seaportContract = await SeaportFactory.deploy(
50+
const seaportContract = (await SeaportFactory.deploy(
5051
conduitController.address
51-
);
52+
)) as SeaportContract;
5253

53-
const seaportv12Contract = await Seaportv12Factory.deploy(
54+
const seaportv12Contract = (await Seaportv12Factory.deploy(
5455
conduitController.address
55-
);
56+
)) as SeaportContract;
5657

5758
await seaportContract.deployed();
5859

src/constants.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { BigNumber } from "ethers";
22

33
export const SEAPORT_CONTRACT_NAME = "Seaport";
4-
export const SEAPORT_CONTRACT_NAME_ALPHA = "Seaport-alpha";
54
export const SEAPORT_CONTRACT_VERSION = "1.1";
65
export const SEAPORT_CONTRACT_VERSION_V1_2 = "1.2";
76
export const OPENSEA_CONDUIT_KEY =
@@ -122,7 +121,7 @@ export const CROSS_CHAIN_SEAPORT_ADDRESS =
122121
"0x00000000006c3852cbef3e08e8df289169ede581";
123122

124123
export const CROSS_CHAIN_SEAPORT_V1_2_ADDRESS =
125-
"0x000000000090d2b159528c290616cf919b24e1d9";
124+
"0x00000000000006c7676171937C444f6BDe3D6282";
126125

127126
export const DOMAIN_REGISTRY_ADDRESS =
128127
"0x000000000DaD0DE04D2B2D4a5A74581EBA94124A";
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity 0.8.17;
33

4-
import "seaportv12/contracts/Seaport.sol";
4+
import "seaport_v1_2/contracts/Seaport.sol";

src/seaport.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { SeaportABI } from "./abi/Seaport";
1313
import { SeaportABIv12 } from "./abi/Seaport_v1_2";
1414
import {
1515
SEAPORT_CONTRACT_NAME,
16-
SEAPORT_CONTRACT_NAME_ALPHA,
1716
SEAPORT_CONTRACT_VERSION,
1817
SEAPORT_CONTRACT_VERSION_V1_2,
1918
EIP_712_ORDER_TYPE,
@@ -447,10 +446,7 @@ export class Seaport {
447446
const { chainId } = await this.provider.getNetwork();
448447

449448
return {
450-
name:
451-
this.config.seaportVersion === "1.2"
452-
? SEAPORT_CONTRACT_NAME_ALPHA
453-
: SEAPORT_CONTRACT_NAME,
449+
name: SEAPORT_CONTRACT_NAME,
454450
version:
455451
this.config.seaportVersion === "1.2"
456452
? SEAPORT_CONTRACT_VERSION_V1_2

0 commit comments

Comments
 (0)