From dc565c6257113a0e985c64e87cf35ad6a577cb4d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 1 Dec 2023 00:14:51 +0000 Subject: [PATCH] Version Packages --- .changeset/rare-wolves-cheat.md | 19 ---------------- .changeset/sharp-bobcats-sin.md | 5 ----- .../src/version/ContractVersionBase.sol | 2 +- packages/protocol-sdk/CHANGELOG.md | 22 +++++++++++++++++++ packages/protocol-sdk/package.json | 2 +- 5 files changed, 24 insertions(+), 26 deletions(-) delete mode 100644 .changeset/rare-wolves-cheat.md delete mode 100644 .changeset/sharp-bobcats-sin.md diff --git a/.changeset/rare-wolves-cheat.md b/.changeset/rare-wolves-cheat.md deleted file mode 100644 index 90710c3b8..000000000 --- a/.changeset/rare-wolves-cheat.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"@zoralabs/protocol-sdk": patch ---- - -### 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}` \ No newline at end of file diff --git a/.changeset/sharp-bobcats-sin.md b/.changeset/sharp-bobcats-sin.md deleted file mode 100644 index 9d7232003..000000000 --- a/.changeset/sharp-bobcats-sin.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@zoralabs/protocol-sdk": patch ---- - -Fix reading the FIXED_PRICE_MINTER from the subgraph diff --git a/packages/1155-contracts/src/version/ContractVersionBase.sol b/packages/1155-contracts/src/version/ContractVersionBase.sol index e74b2415d..34a37e1d8 100644 --- a/packages/1155-contracts/src/version/ContractVersionBase.sol +++ b/packages/1155-contracts/src/version/ContractVersionBase.sol @@ -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; diff --git a/packages/protocol-sdk/CHANGELOG.md b/packages/protocol-sdk/CHANGELOG.md index 0fa007d54..3aa793ef1 100644 --- a/packages/protocol-sdk/CHANGELOG.md +++ b/packages/protocol-sdk/CHANGELOG.md @@ -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 diff --git a/packages/protocol-sdk/package.json b/packages/protocol-sdk/package.json index 21eb80033..69c8378e1 100644 --- a/packages/protocol-sdk/package.json +++ b/packages/protocol-sdk/package.json @@ -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",