Skip to content

Commit

Permalink
create scripts and adapt coreSDK to run the opensea/price discovery flow
Browse files Browse the repository at this point in the history
  • Loading branch information
levalleux-ludo committed Apr 12, 2024
1 parent e8666da commit 47c279a
Show file tree
Hide file tree
Showing 25 changed files with 5,596 additions and 75 deletions.
4 changes: 3 additions & 1 deletion contracts/hardhat.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,9 @@ module.exports = {
"MockNativeMetaTransaction",
"IBosonGroupHandler",
"MockForwarder",
"IBosonConfigHandler"
"IBosonConfigHandler",
"IBosonPriceDiscoveryHandler",
"Seaport"
]
}
};
2 changes: 1 addition & 1 deletion e2e/tests/meta-tx.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { BigNumberish } from "@ethersproject/bignumber";
import { Wallet, BigNumber, constants } from "ethers";
import { OfferFieldsFragment } from "../../packages/core-sdk/src/subgraph";
import { mockCreateOfferArgs } from "../../packages/common/tests/mocks";
import { encodeValidate } from "../../packages/core-sdk/src/seaport/handler";
import { encodeValidate } from "../../packages/core-sdk/src/seaport/interface";

import {
initCoreSDKWithWallet,
Expand Down
274 changes: 272 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@
"ipfs-upload": "ts-node -P tsconfig.base.json ./scripts/upload-to-ipfs.ts",
"explore-offer": "ts-node -P tsconfig.base.json ./scripts/explore-offer.ts",
"create-offer": "ts-node -P tsconfig.base.json ./scripts/create-offer.ts",
"create-pd-offer": "ts-node -P tsconfig.base.json ./scripts/create-price-discovery-offer.ts",
"opensea:list": "ts-node -P tsconfig.base.json ./scripts/create-listing-opensea.ts",
"opensea:bid": "ts-node -P tsconfig.base.json ./scripts/create-offer-opensea.ts",
"opensea:fulfil": "ts-node -P tsconfig.base.json ./scripts/fulfil-order-opensea.ts",
"ts-run": "ts-node -P tsconfig.base.json",
"create-offer-batch": "ts-node -P tsconfig.base.json ./scripts/create-offer-batch.ts",
"create-seller": "ts-node -P tsconfig.base.json ./scripts/create-seller.ts",
"update-seller": "ts-node -P tsconfig.base.json ./scripts/update-seller.ts",
Expand Down Expand Up @@ -70,10 +75,12 @@
"eslint-config-prettier": "^8.4.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-tsdoc": "^0.2.16",
"ethers-v6": "npm:ethers@^6.10.0",
"form-data": "^4.0.0",
"graphql": "^16.8.1",
"ipfs-utils": "^9.0.14",
"lerna": "^5.5.1",
"opensea-js": "^7.1.2",
"prettier": "^2.6.2",
"run-script-os": "^1.1.6",
"ts-jest": "29.1.1",
Expand Down
Loading

0 comments on commit 47c279a

Please sign in to comment.