@zoralabs/protocol-sdk 0.11.3-COMMENTS.3 → 0.11.3-COMMENTS.6

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.3-COMMENTS.3 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/protocol-sdk
2
+ > @zoralabs/protocol-sdk@0.11.3-COMMENTS.6 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
@@ -12,7 +12,7 @@ CJS Build start
12
12
  ESM Build start
13
13
  CJS dist/index.cjs 224.30 KB
14
14
  CJS dist/index.cjs.map 454.54 KB
15
- CJS ⚡️ Build success in 387ms
15
+ CJS ⚡️ Build success in 359ms
16
16
  ESM dist/index.js 218.03 KB
17
17
  ESM dist/index.js.map 452.53 KB
18
- ESM ⚡️ Build success in 388ms
18
+ ESM ⚡️ Build success in 359ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # @zoralabs/protocol-sdk
2
2
 
3
+ ## 0.11.3-COMMENTS.6
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @zoralabs/protocol-deployments@0.3.5-COMMENTS.6
9
+
10
+ ## 0.11.3-COMMENTS.5
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+ - @zoralabs/protocol-deployments@0.3.5-COMMENTS.5
16
+
17
+ ## 0.11.3-COMMENTS.4
18
+
19
+ ### Patch Changes
20
+
21
+ - Updated dependencies
22
+ - @zoralabs/protocol-deployments@0.3.5-COMMENTS.4
23
+
3
24
  ## 0.11.3-COMMENTS.3
4
25
 
5
26
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoralabs/protocol-sdk",
3
- "version": "0.11.3-COMMENTS.3",
3
+ "version": "0.11.3-COMMENTS.6",
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.5-COMMENTS.3"
20
+ "@zoralabs/protocol-deployments": "^0.3.5-COMMENTS.6"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "viem": "^2.21.21"
@@ -1,6 +1,6 @@
1
1
  import { describe, expect } from "vitest";
2
2
  import { forkUrls, makeAnvilTest, writeContractWithRetries } from "src/anvil";
3
- import { base, zora, zoraSepolia } from "viem/chains";
3
+ import { base, zora } from "viem/chains";
4
4
  import {
5
5
  commentsABI,
6
6
  commentsAddress,
@@ -10,8 +10,8 @@ import {
10
10
  sparkValue,
11
11
  CommentIdentifier,
12
12
  permitSparkCommentTypedDataDefinition,
13
- permitTimedSaleMintAndCommentTypedDataDefinition,
14
- PermitTimedSaleMintAndComment,
13
+ permitMintAndCommentTypedDataDefinition,
14
+ PermitMintAndComment,
15
15
  callerAndCommenterAddress as callerAndCommenterAddresses,
16
16
  callerAndCommenterABI,
17
17
  zoraCreator1155ImplABI,
@@ -278,7 +278,7 @@ describe("comments", () => {
278
278
  const mintReferral = zeroAddress;
279
279
  const comment = "This is a test comment for timed sale mint";
280
280
 
281
- const permitTimedSaleMintAndComment: PermitTimedSaleMintAndComment = {
281
+ const permitMintAndComment: PermitMintAndComment = {
282
282
  commenter: commenterAddress,
283
283
  quantity,
284
284
  collection: contractAddress,
@@ -292,9 +292,8 @@ describe("comments", () => {
292
292
  };
293
293
 
294
294
  // Step 3: Generate the typed data for signing
295
- const typedData = permitTimedSaleMintAndCommentTypedDataDefinition(
296
- permitTimedSaleMintAndComment,
297
- );
295
+ const typedData =
296
+ permitMintAndCommentTypedDataDefinition(permitMintAndComment);
298
297
 
299
298
  // Step 4: Sign the typed data
300
299
  const signature = await walletClient.signTypedData(typedData);
@@ -313,7 +312,7 @@ describe("comments", () => {
313
312
  abi: callerAndCommenterABI,
314
313
  address: callerAndCommenterAddress,
315
314
  functionName: "permitTimedSaleMintAndComment",
316
- args: [permitTimedSaleMintAndComment, signature],
315
+ args: [permitMintAndComment, signature],
317
316
  account: executorAddress,
318
317
  value: quantity * parseEther("0.000111"),
319
318
  });