@zoralabs/protocol-sdk 0.11.2 → 0.11.3-COMMENTS.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
 
2
- > @zoralabs/protocol-sdk@0.11.2 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-sdk
2
+ > @zoralabs/protocol-sdk@0.11.3-COMMENTS.0 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-sdk
3
3
  > pnpm tsup
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -10,9 +10,9 @@ CLI Target: es2021
10
10
  CLI Cleaning output folder
11
11
  CJS Build start
12
12
  ESM Build start
13
- CJS dist/index.cjs 224.10 KB
14
- CJS dist/index.cjs.map 454.19 KB
15
- CJS ⚡️ Build success in 322ms
16
13
  ESM dist/index.js 217.84 KB
17
14
  ESM dist/index.js.map 452.19 KB
18
- ESM ⚡️ Build success in 338ms
15
+ ESM ⚡️ Build success in 323ms
16
+ CJS dist/index.cjs 224.10 KB
17
+ CJS dist/index.cjs.map 454.19 KB
18
+ CJS ⚡️ Build success in 328ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # @zoralabs/protocol-sdk
2
2
 
3
+ ## 0.11.3-COMMENTS.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [7e285fb1]
8
+ - @zoralabs/protocol-deployments@0.3.5-COMMENTS.0
9
+
3
10
  ## 0.11.2
4
11
 
5
12
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoralabs/protocol-sdk",
3
- "version": "0.11.2",
3
+ "version": "0.11.3-COMMENTS.0",
4
4
  "repository": "https://github.com/ourzora/zora-protocol",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "abitype": "^1.0.2",
20
- "@zoralabs/protocol-deployments": "^0.3.4"
20
+ "@zoralabs/protocol-deployments": "^0.3.5-COMMENTS.0"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "viem": "^2.13.2"
@@ -22,7 +22,7 @@ import { advanceToSaleAndAndLaunchMarket } from "src/secondary/secondary-client.
22
22
 
23
23
  describe("rewardsClient", () => {
24
24
  makeAnvilTest({
25
- forkBlockNumber: 13914833,
25
+ forkBlockNumber: 14653556,
26
26
  forkUrl: forkUrls.zoraSepolia,
27
27
  anvilChainId: zoraSepolia.id,
28
28
  })(
@@ -117,7 +117,7 @@ describe("rewardsClient", () => {
117
117
  30_000,
118
118
  );
119
119
  makeAnvilTest({
120
- forkBlockNumber: 13914833,
120
+ forkBlockNumber: 14653556,
121
121
  forkUrl: forkUrls.zoraSepolia,
122
122
  anvilChainId: zoraSepolia.id,
123
123
  })(
@@ -80,7 +80,7 @@ export async function advanceToSaleAndAndLaunchMarket({
80
80
 
81
81
  describe("secondary", () => {
82
82
  makeAnvilTest({
83
- forkBlockNumber: 13914833,
83
+ forkBlockNumber: 14653556,
84
84
  forkUrl: forkUrls.zoraSepolia,
85
85
  anvilChainId: zoraSepolia.id,
86
86
  })(
@@ -128,7 +128,7 @@ describe("secondary", () => {
128
128
  );
129
129
 
130
130
  makeAnvilTest({
131
- forkBlockNumber: 13914833,
131
+ forkBlockNumber: 14653556,
132
132
  forkUrl: forkUrls.zoraSepolia,
133
133
  anvilChainId: zoraSepolia.id,
134
134
  })(
@@ -199,6 +199,13 @@ describe("secondary", () => {
199
199
  account: collectorAccount,
200
200
  });
201
201
 
202
+ const balanceBefore = await publicClient.readContract({
203
+ abi: zoraCreator1155ImplABI,
204
+ address: contractAddress,
205
+ functionName: "balanceOf",
206
+ args: [collectorAccount, newTokenId],
207
+ });
208
+
202
209
  // now get the price ot buy on secondary
203
210
  const quantityToBuy = 1000n;
204
211
 
@@ -236,7 +243,7 @@ describe("secondary", () => {
236
243
  args: [collectorAccount, newTokenId],
237
244
  });
238
245
 
239
- expect(balance).toBe(quantityToBuy + quantityToMint);
246
+ expect(balance - balanceBefore).toBe(quantityToBuy);
240
247
 
241
248
  // now sell 10_000n tokens
242
249
  const quantityToSell = 10_000n;