Skip to content

Commit

Permalink
Fix package.json issues and hardhat tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pizzaman1337 committed Jul 24, 2024
1 parent b43873a commit 783dca0
Show file tree
Hide file tree
Showing 6 changed files with 4,333 additions and 14,626 deletions.
9 changes: 0 additions & 9 deletions projects/dex-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,9 @@
},
"dependencies": {
"@beanstalk/sdk": "workspace:*",
<<<<<<< HEAD
"@tanstack/react-query": "5.28.4",
"@tanstack/react-query-devtools": "5.28.4",
"@typechain/ethers-v5": "10.2.1",
=======
"@radix-ui/react-dialog": "1.0.5",
"@radix-ui/react-dropdown-menu": "2.1.1",
"@tanstack/react-query": "5.28.4",
"@tanstack/react-query-devtools": "5.28.4",
"@typechain/ethers-v5": "10.2.1",
"alchemy-sdk": "3.3.1",
>>>>>>> master
"connectkit": "1.7.2",
"ethers": "^5.7.2",
"graphql-request": "5.2.0",
Expand Down
4 changes: 0 additions & 4 deletions projects/subgraph-basin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,7 @@
"codegen": "rm -rf ./generated && graph codegen",
"build": "yarn codegen && graph build",
"test": "graph test",
<<<<<<< HEAD
"testd": "docker run -it --rm --mount type=bind,source=\"$(pwd)\"/matchstick.yaml.docker,target=/matchstick/matchstick.yaml --mount type=bind,source=\"$(pwd)\"/../../,target=/matchstick/repo-mounted/ matchstick",
=======
"testd": "docker run -it --rm --mount type=bind,source=\"$(pwd)\"/matchstick-docker.yaml,target=/matchstick/matchstick.yaml --mount type=bind,source=\"$(pwd)\"/../../,target=/matchstick/repo-mounted/ matchstick",
>>>>>>> master
"testd-named": "../subgraph-core/tests/scripts/docker-run-named.sh",
"create-local": "graph create --node http://127.0.0.1:8020/ basin",
"remove-local": "graph remove --node http://127.0.0.1:8020/ basin",
Expand Down
4 changes: 0 additions & 4 deletions projects/subgraph-beanft/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
"codegen": "rm -rf ./generated && graph codegen",
"build": "yarn codegen && graph build",
"test": "graph test",
<<<<<<< HEAD
"testd": "docker run -it --rm --mount type=bind,source=\"$(pwd)\"/matchstick.yaml.docker,target=/matchstick/matchstick.yaml --mount type=bind,source=\"$(pwd)\"/../../,target=/matchstick/repo-mounted/ matchstick",
=======
"testd": "docker run -it --rm --mount type=bind,source=\"$(pwd)\"/matchstick-docker.yaml,target=/matchstick/matchstick.yaml --mount type=bind,source=\"$(pwd)\"/../../,target=/matchstick/repo-mounted/ matchstick",
>>>>>>> master
"testd-named": "../subgraph-core/tests/scripts/docker-run-named.sh",
"create-local": "graph create --node http://localhost:8020/ beanft",
"remove-local": "graph remove --node http://localhost:8020/ beanft",
Expand Down
3 changes: 0 additions & 3 deletions projects/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@
"buffer": "^6.0.3",
"d3-scale": "^4.0.2",
"d3-time-format": "^4.1.0",
<<<<<<< HEAD
=======
"date-fns": "3.6.0",
>>>>>>> master
"ethers": "^5.7.2",
"ethers-multicall": "^0.2.3",
"events": "^3.3.0",
Expand Down
8 changes: 4 additions & 4 deletions protocol/test/hardhat/Marketplace.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ describe("Marketplace", function () {
beforeEach(async function () {
this.userBeanBalance = await bean.balanceOf(user.address);
this.beanstalkBeanBalance = await bean.balanceOf(mockBeanstalk.address);
this.podOrder = PodOrder(user.address, 0, 100000, 1000, 0);
this.podOrder = PodOrder(user.address, 0, 100000, 1000, 1);
this.result = await mockBeanstalk
.connect(user)
.createPodOrder(this.podOrder, 500, EXTERNAL);
Expand All @@ -698,13 +698,13 @@ describe("Marketplace", function () {
it("emits an event", async function () {
await expect(this.result)
.to.emit(mockBeanstalk, "PodOrderCreated")
.withArgs(user.address, this.id, 500, 0, 100000, 1000, 0);
.withArgs(user.address, this.id, 500, 0, 100000, 1000, 1);
});

it("cancels old order, replacing with new order", async function () {
let newOrder = await mockBeanstalk
.connect(user)
.createPodOrder(PodOrder(user.address, 0, 100000, 1000, 0), 100, EXTERNAL);
.createPodOrder(PodOrder(user.address, 0, 100000, 1000, 1), 100, EXTERNAL);
await expect(newOrder)
.to.emit(mockBeanstalk, "PodOrderCancelled")
.withArgs(user.address, this.id);
Expand Down Expand Up @@ -944,7 +944,7 @@ describe("Marketplace", function () {

describe("Cancel", async function () {
beforeEach(async function () {
this.podOrder = PodOrder(user.address, 0, 100000, 1000, 0);
this.podOrder = PodOrder(user.address, 0, 100000, 1000, 1);
this.result = await mockBeanstalk
.connect(user)
.createPodOrder(this.podOrder, 500, EXTERNAL);
Expand Down
Loading

0 comments on commit 783dca0

Please sign in to comment.