@zoralabs/protocol-sdk 0.13.16 → 0.13.21

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,22 +1,22 @@
1
1
 
2
- > @zoralabs/protocol-sdk@0.13.16 build:js /home/runner/work/zora-protocol-private/zora-protocol-private/legacy/protocol-sdk
2
+ > @zoralabs/protocol-sdk@0.13.21 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.16 build /home/runner/work/zora-protocol-private/zora-protocol-private/legacy/protocol-sdk
6
+ > @zoralabs/protocol-sdk@0.13.21 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
10
10
  CLI Using tsconfig: tsconfig.build.json
11
- CLI tsup v8.4.0
11
+ CLI tsup v8.5.1
12
12
  CLI Using tsup config: /home/runner/work/zora-protocol-private/zora-protocol-private/legacy/protocol-sdk/tsup.config.ts
13
13
  CLI Target: es2021
14
14
  CLI Cleaning output folder
15
15
  CJS Build start
16
16
  ESM Build start
17
- CJS dist/index.cjs 223.68 KB
18
- CJS dist/index.cjs.map 453.72 KB
19
- CJS ⚡️ Build success in 350ms
20
- ESM dist/index.js 217.41 KB
21
- ESM dist/index.js.map 450.71 KB
22
- ESM ⚡️ Build success in 394ms
17
+ ESM dist/index.js 217.98 KB
18
+ ESM dist/index.js.map 452.33 KB
19
+ ESM ⚡️ Build success in 358ms
20
+ CJS dist/index.cjs 224.25 KB
21
+ CJS dist/index.cjs.map 455.34 KB
22
+ CJS ⚡️ Build success in 359ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,42 @@
1
1
  # @zoralabs/protocol-sdk
2
2
 
3
+ ## 0.13.21
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [625684d2]
8
+ - Updated dependencies [50134ebc]
9
+ - @zoralabs/protocol-deployments@0.7.5
10
+
11
+ ## 0.13.20
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [78dffbdc]
16
+ - @zoralabs/protocol-deployments@0.7.4
17
+
18
+ ## 0.13.19
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [67d27f1d]
23
+ - Updated dependencies [27f588b2]
24
+ - @zoralabs/protocol-deployments@0.7.3
25
+
26
+ ## 0.13.18
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies [668bfa3c]
31
+ - @zoralabs/protocol-deployments@0.7.2
32
+
33
+ ## 0.13.17
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies [9af2904a]
38
+ - @zoralabs/protocol-deployments@0.7.1
39
+
3
40
  ## 0.13.16
4
41
 
5
42
  ### Patch Changes
@@ -208,7 +245,6 @@
208
245
  ### Patch Changes
209
246
 
210
247
  - 85d09fa5: - Adds new fields to `SecondaryInfo` type to expose more information about the secondary market configuration:
211
-
212
248
  - `name`: The ERC20Z token name
213
249
  - `symbol`: The ERC20Z token symbol
214
250
  - `saleStart`: Earliest time tokens can be minted
@@ -245,7 +281,6 @@
245
281
 
246
282
  - 66f33bbb: fix: update secondary swap helper contract address
247
283
  - 8d7fdc02: For the functions `getToken` and `getTokensOfContract`, the returned `MintableReturn` type has been updated to provide more information about the primary mint status:
248
-
249
284
  - Added `primaryMintActive` boolean to indicate if the primary mint is currently active.
250
285
  - Added `primaryMintEnd` optional `bigint` to show the end time of the primary mint, if applicable.
251
286
  - Added `secondaryMarketActive` boolean to indicate if the secondary market is currently active.
@@ -270,7 +305,6 @@
270
305
  ### Minor Changes
271
306
 
272
307
  - 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:
273
-
274
308
  - Slippage protection for both buying and selling operations
275
309
  - Detailed price breakdowns in wei, sparks, and USDC
276
310
  - Support for specifying recipient addresses
@@ -549,7 +583,6 @@
549
583
  ### Minor Changes
550
584
 
551
585
  - a52d245: Fix premint v2 support in premint client and add support for sepolia to SDK:
552
-
553
586
  - Fix chain constants config for Zora Goerli.
554
587
  - Support Zora-Sepolia for premint client.
555
588
  - Fix passing of `config_version` to and from the backend API.
@@ -604,7 +637,6 @@
604
637
  - 7eb5e3f: ### Changes to `preminter`
605
638
 
606
639
  lower level `preminter.ts` now supports premint v2 by defining v2 typed data defintions.
607
-
608
640
  - `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.
609
641
  - new function `premintTypedDataDefinition` which takes a premint config version and returns the signable typed data definition for that version
610
642
  - new function `recoverCreatorFromCreatorAttribution` which recovers the creator address from a `CreatorAttribution` event
@@ -614,7 +646,6 @@
614
646
  ### Changes to PremintClient
615
647
 
616
648
  `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.
617
-
618
649
  - `isValidSignature` now just takes the data directly as a param, instead of `{data}`
619
650
 
620
651
  - 27a2e23: Fix reading the FIXED_PRICE_MINTER from the subgraph
@@ -638,7 +669,6 @@
638
669
  `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.
639
670
 
640
671
  `MintClient.makePrepareMintTokenParams` has the following changes:
641
-
642
672
  - returns a `SimulateContractParams`, instead of an object containing it indexed by key
643
673
  - no longer takes a `PublicClient` as an argument (it should be specified in the constructor instead)
644
674
 
@@ -677,7 +707,6 @@
677
707
  ### Patch Changes
678
708
 
679
709
  - b62e471: created new package `protocol-deployments` that includes the deployed contract addresses.
680
-
681
710
  - 1155-contracts js no longer exports deployed addresses, just the abis
682
711
  - premint-sdk imports deployed addresses from `protocol-deployments
683
712