@zoralabs/protocol-sdk 0.13.18 → 0.13.22

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,9 +1,9 @@
1
1
 
2
- > @zoralabs/protocol-sdk@0.13.18 build:js /home/runner/work/zora-protocol-private/zora-protocol-private/legacy/protocol-sdk
2
+ > @zoralabs/protocol-sdk@0.13.22 build:js /home/runner/work/zora-protocol-private/zora-protocol-private/legacy/protocol-sdk
3
3
  > pnpm run build
4
4
 
5
5
 
6
- > @zoralabs/protocol-sdk@0.13.18 build /home/runner/work/zora-protocol-private/zora-protocol-private/legacy/protocol-sdk
6
+ > @zoralabs/protocol-sdk@0.13.22 build /home/runner/work/zora-protocol-private/zora-protocol-private/legacy/protocol-sdk
7
7
  > pnpm tsup
8
8
 
9
9
  CLI Building entry: src/index.ts
@@ -14,9 +14,9 @@
14
14
  CLI Cleaning output folder
15
15
  CJS Build start
16
16
  ESM Build start
17
- ESM dist/index.js 217.98 KB
18
- ESM dist/index.js.map 452.33 KB
19
- ESM ⚡️ Build success in 323ms
20
17
  CJS dist/index.cjs 224.25 KB
21
- CJS dist/index.cjs.map 455.34 KB
22
- CJS ⚡️ Build success in 324ms
18
+ CJS dist/index.cjs.map 455.19 KB
19
+ CJS ⚡️ Build success in 346ms
20
+ ESM dist/index.js 217.98 KB
21
+ ESM dist/index.js.map 452.18 KB
22
+ ESM ⚡️ Build success in 346ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,39 @@
1
1
  # @zoralabs/protocol-sdk
2
2
 
3
+ ## 0.13.22
4
+
5
+ ### Patch Changes
6
+
7
+ - fbb389583: Bump viem to 2.53.1
8
+
9
+ Raise the pinned viem version from 2.22.12 to 2.53.1 across the monorepo to pick up newer chain definitions and support the latest x402 v2 client packages.
10
+
11
+ - Updated dependencies [fbb389583]
12
+ - @zoralabs/protocol-deployments@0.7.6
13
+
14
+ ## 0.13.21
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [625684d2]
19
+ - Updated dependencies [50134ebc]
20
+ - @zoralabs/protocol-deployments@0.7.5
21
+
22
+ ## 0.13.20
23
+
24
+ ### Patch Changes
25
+
26
+ - Updated dependencies [78dffbdc]
27
+ - @zoralabs/protocol-deployments@0.7.4
28
+
29
+ ## 0.13.19
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies [67d27f1d]
34
+ - Updated dependencies [27f588b2]
35
+ - @zoralabs/protocol-deployments@0.7.3
36
+
3
37
  ## 0.13.18
4
38
 
5
39
  ### Patch Changes
@@ -222,7 +256,6 @@
222
256
  ### Patch Changes
223
257
 
224
258
  - 85d09fa5: - Adds new fields to `SecondaryInfo` type to expose more information about the secondary market configuration:
225
-
226
259
  - `name`: The ERC20Z token name
227
260
  - `symbol`: The ERC20Z token symbol
228
261
  - `saleStart`: Earliest time tokens can be minted
@@ -259,7 +292,6 @@
259
292
 
260
293
  - 66f33bbb: fix: update secondary swap helper contract address
261
294
  - 8d7fdc02: For the functions `getToken` and `getTokensOfContract`, the returned `MintableReturn` type has been updated to provide more information about the primary mint status:
262
-
263
295
  - Added `primaryMintActive` boolean to indicate if the primary mint is currently active.
264
296
  - Added `primaryMintEnd` optional `bigint` to show the end time of the primary mint, if applicable.
265
297
  - Added `secondaryMarketActive` boolean to indicate if the secondary market is currently active.
@@ -284,7 +316,6 @@
284
316
  ### Minor Changes
285
317
 
286
318
  - 21247473: Added new functions `buy1155OnSecondary` and `sell1155OnSecondary` to the collector client in the protocol SDK. These functions enable users to buy and sell ERC1155 tokens on the secondary market. Key features include:
287
-
288
319
  - Slippage protection for both buying and selling operations
289
320
  - Detailed price breakdowns in wei, sparks, and USDC
290
321
  - Support for specifying recipient addresses
@@ -563,7 +594,6 @@
563
594
  ### Minor Changes
564
595
 
565
596
  - a52d245: Fix premint v2 support in premint client and add support for sepolia to SDK:
566
-
567
597
  - Fix chain constants config for Zora Goerli.
568
598
  - Support Zora-Sepolia for premint client.
569
599
  - Fix passing of `config_version` to and from the backend API.
@@ -618,7 +648,6 @@
618
648
  - 7eb5e3f: ### Changes to `preminter`
619
649
 
620
650
  lower level `preminter.ts` now supports premint v2 by defining v2 typed data defintions.
621
-
622
651
  - `isValidSignature` now takes either v1 or v2 of a premint config, along with the premint config version. and both recovers the signer address and validates if the signer can create a premint on the given contract.
623
652
  - new function `premintTypedDataDefinition` which takes a premint config version and returns the signable typed data definition for that version
624
653
  - new function `recoverCreatorFromCreatorAttribution` which recovers the creator address from a `CreatorAttribution` event
@@ -628,7 +657,6 @@
628
657
  ### Changes to PremintClient
629
658
 
630
659
  `PremintClient` creation, updating, and deletion now take both premint config v1 and v2, but currently rejects them until the backend api supports creating v2 premints.
631
-
632
660
  - `isValidSignature` now just takes the data directly as a param, instead of `{data}`
633
661
 
634
662
  - 27a2e23: Fix reading the FIXED_PRICE_MINTER from the subgraph
@@ -652,7 +680,6 @@
652
680
  `MintClient` now takes the optional `PublicClient` in the constructor instead of in each function, and stores it or creates a default one if none is provided in the constructor. It also takes an optional `httpClient` param in the constructor, allowing the `fetch`, `post`, and `retries` methods to be overridden when using the api. It now internally creates the MintAPIClient.
653
681
 
654
682
  `MintClient.makePrepareMintTokenParams` has the following changes:
655
-
656
683
  - returns a `SimulateContractParams`, instead of an object containing it indexed by key
657
684
  - no longer takes a `PublicClient` as an argument (it should be specified in the constructor instead)
658
685
 
@@ -691,7 +718,6 @@
691
718
  ### Patch Changes
692
719
 
693
720
  - b62e471: created new package `protocol-deployments` that includes the deployed contract addresses.
694
-
695
721
  - 1155-contracts js no longer exports deployed addresses, just the abis
696
722
  - premint-sdk imports deployed addresses from `protocol-deployments
697
723