Skip to content

Commit

Permalink
Merge pull request #19 from ourzora/changeset-release/main
Browse files Browse the repository at this point in the history
Version Packages
  • Loading branch information
iainnash authored Dec 1, 2023
2 parents 27a2e23 + dc565c6 commit 8d1fe9b
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 26 deletions.
19 changes: 0 additions & 19 deletions .changeset/rare-wolves-cheat.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sharp-bobcats-sin.md

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file is automatically generated by code; do not manually update
// Last updated on 2023-11-30T17:33:00.844Z
// Last updated on 2023-12-01T00:14:51.057Z
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

Expand Down
22 changes: 22 additions & 0 deletions packages/protocol-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
# @zoralabs/protocol-sdk

## 0.3.5

### Patch Changes

- 7eb5e3f: ### Changes to `preminter`

lower level `preminter.ts` now supports premint v2 by defining v2 typed data defintions.

- `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.
- new function `premintTypedDataDefinition` which takes a premint config version and returns the signable typed data definition for that version
- new function `recoverCreatorFromCreatorAttribution` which recovers the creator address from a `CreatorAttribution` event
- new function `supportsPremintVersion` which checks if a given token contract supports a given premint config version
- new function `tryRecoverPremintSigner` which takes a premint config version and a premint signature, and tries to recover the signer address from the signature. If the signature is invalid, it returns undefined.

### Changes to PremintClient

`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.

- `isValidSignature` now just takes the data directly as a param, instead of `{data}`

- 27a2e23: Fix reading the FIXED_PRICE_MINTER from the subgraph

## 0.3.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/protocol-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zoralabs/protocol-sdk",
"version": "0.3.4",
"version": "0.3.5",
"repository": "https://github.com/ourzora/zora-protocol",
"license": "MIT",
"main": "./dist/index.js",
Expand Down

0 comments on commit 8d1fe9b

Please sign in to comment.