@zoralabs/protocol-sdk 0.13.18 → 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,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.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.18 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
@@ -16,7 +16,7 @@
16
16
  ESM Build start
17
17
  ESM dist/index.js 217.98 KB
18
18
  ESM dist/index.js.map 452.33 KB
19
- ESM ⚡️ Build success in 323ms
19
+ ESM ⚡️ Build success in 358ms
20
20
  CJS dist/index.cjs 224.25 KB
21
21
  CJS dist/index.cjs.map 455.34 KB
22
- CJS ⚡️ Build success in 324ms
22
+ CJS ⚡️ Build success in 359ms
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
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
+
3
26
  ## 0.13.18
4
27
 
5
28
  ### Patch Changes
@@ -222,7 +245,6 @@
222
245
  ### Patch Changes
223
246
 
224
247
  - 85d09fa5: - Adds new fields to `SecondaryInfo` type to expose more information about the secondary market configuration:
225
-
226
248
  - `name`: The ERC20Z token name
227
249
  - `symbol`: The ERC20Z token symbol
228
250
  - `saleStart`: Earliest time tokens can be minted
@@ -259,7 +281,6 @@
259
281
 
260
282
  - 66f33bbb: fix: update secondary swap helper contract address
261
283
  - 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
284
  - Added `primaryMintActive` boolean to indicate if the primary mint is currently active.
264
285
  - Added `primaryMintEnd` optional `bigint` to show the end time of the primary mint, if applicable.
265
286
  - Added `secondaryMarketActive` boolean to indicate if the secondary market is currently active.
@@ -284,7 +305,6 @@
284
305
  ### Minor Changes
285
306
 
286
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:
287
-
288
308
  - Slippage protection for both buying and selling operations
289
309
  - Detailed price breakdowns in wei, sparks, and USDC
290
310
  - Support for specifying recipient addresses
@@ -563,7 +583,6 @@
563
583
  ### Minor Changes
564
584
 
565
585
  - a52d245: Fix premint v2 support in premint client and add support for sepolia to SDK:
566
-
567
586
  - Fix chain constants config for Zora Goerli.
568
587
  - Support Zora-Sepolia for premint client.
569
588
  - Fix passing of `config_version` to and from the backend API.
@@ -618,7 +637,6 @@
618
637
  - 7eb5e3f: ### Changes to `preminter`
619
638
 
620
639
  lower level `preminter.ts` now supports premint v2 by defining v2 typed data defintions.
621
-
622
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.
623
641
  - new function `premintTypedDataDefinition` which takes a premint config version and returns the signable typed data definition for that version
624
642
  - new function `recoverCreatorFromCreatorAttribution` which recovers the creator address from a `CreatorAttribution` event
@@ -628,7 +646,6 @@
628
646
  ### Changes to PremintClient
629
647
 
630
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.
631
-
632
649
  - `isValidSignature` now just takes the data directly as a param, instead of `{data}`
633
650
 
634
651
  - 27a2e23: Fix reading the FIXED_PRICE_MINTER from the subgraph
@@ -652,7 +669,6 @@
652
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.
653
670
 
654
671
  `MintClient.makePrepareMintTokenParams` has the following changes:
655
-
656
672
  - returns a `SimulateContractParams`, instead of an object containing it indexed by key
657
673
  - no longer takes a `PublicClient` as an argument (it should be specified in the constructor instead)
658
674
 
@@ -691,7 +707,6 @@
691
707
  ### Patch Changes
692
708
 
693
709
  - b62e471: created new package `protocol-deployments` that includes the deployed contract addresses.
694
-
695
710
  - 1155-contracts js no longer exports deployed addresses, just the abis
696
711
  - premint-sdk imports deployed addresses from `protocol-deployments
697
712
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoralabs/protocol-sdk",
3
- "version": "0.13.18",
3
+ "version": "0.13.21",
4
4
  "repository": "https://github.com/ourzora/zora-protocol",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -16,7 +16,7 @@
16
16
  }
17
17
  },
18
18
  "dependencies": {
19
- "@zoralabs/protocol-deployments": "^0.7.2"
19
+ "@zoralabs/protocol-deployments": "^0.7.5"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "viem": "2.22.12",
@@ -289,7 +289,7 @@ describe("mint-client", () => {
289
289
  12 * 1000,
290
290
  );
291
291
 
292
- makeAnvilTest({
292
+ (makeAnvilTest({
293
293
  forkUrl: forkUrls.zoraSepolia,
294
294
  forkBlockNumber: 10970943,
295
295
  anvilChainId: zoraSepolia.id,
@@ -369,7 +369,7 @@ describe("mint-client", () => {
369
369
  expect(contract).toBeDefined();
370
370
  },
371
371
  12 * 1000,
372
- );
372
+ ));
373
373
 
374
374
  makeAnvilTest({
375
375
  forkUrl: forkUrls.zoraMainnet,
@@ -173,7 +173,7 @@ const zoraSepoliaAnvilTest = makeAnvilTest({
173
173
  });
174
174
 
175
175
  describe("ZoraCreator1155Preminter", () => {
176
- zoraSepoliaAnvilTest(
176
+ (zoraSepoliaAnvilTest(
177
177
  "can sign and mint multiple tokens",
178
178
  async ({ viemClients }) => {
179
179
  const {
@@ -705,5 +705,5 @@ describe("ZoraCreator1155Preminter", () => {
705
705
  },
706
706
  // 10 second timeout
707
707
  40 * 1000,
708
- );
708
+ ));
709
709
  });