From f58ee955e6b50c13e90b4cfd72ab4b68dce86fad Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:32:57 -0800 Subject: [PATCH] Version Packages (#389) Co-authored-by: github-actions[bot] --- .changeset/chilled-seahorses-protect.md | 17 --------------- .changeset/pink-turtles-watch.md | 5 ----- .../src/version/ContractVersionBase.sol | 2 +- packages/protocol-sdk/CHANGELOG.md | 21 +++++++++++++++++++ packages/protocol-sdk/package.json | 2 +- 5 files changed, 23 insertions(+), 24 deletions(-) delete mode 100644 .changeset/chilled-seahorses-protect.md delete mode 100644 .changeset/pink-turtles-watch.md diff --git a/.changeset/chilled-seahorses-protect.md b/.changeset/chilled-seahorses-protect.md deleted file mode 100644 index b2640f0a0..000000000 --- a/.changeset/chilled-seahorses-protect.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -"@zoralabs/protocol-sdk": patch ---- - -`MintAPIClient` is now a class, that takes a chain id and httpClient in the constructor, enabling the httpClient methods `fetch`, `post`, and `retries` to be overridden. - -new methods on `MintAPIClient`: - -`getMintableForToken` - takes a token id and token contract address and returns the mintable for it. Easier to use for fetching specific tokens than `getMintable`. - -`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. - -`MintClient.makePrepareMintTokenParams` has the following changes: - * returns a `SimulateContractParams`, instead of an object containing it indexed by key - * no longer takes a `PublicClient` as an argument (it should be specified in the constructor instead) - -new function `MintClient.getMintCosts` takes a mintable and quantity to mint and returns the mintFee, paidMintPrice, and totalCost. \ No newline at end of file diff --git a/.changeset/pink-turtles-watch.md b/.changeset/pink-turtles-watch.md deleted file mode 100644 index 65e056711..000000000 --- a/.changeset/pink-turtles-watch.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@zoralabs/protocol-sdk": patch ---- - -premintClient can have http methods overridable via DI, and now takes publicClient and http overrides in `createPremintClient` function. it no longer takes `publicClient` as an argument in functions, and rather uses them from the constructor. `executePremint` has been renamed ot `makeMintParameters` diff --git a/packages/1155-contracts/src/version/ContractVersionBase.sol b/packages/1155-contracts/src/version/ContractVersionBase.sol index 16ea67e49..954215a8b 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-27T17:37:45.815Z +// Last updated on 2023-11-28T23:30:25.008Z // SPDX-License-Identifier: MIT pragma solidity 0.8.17; diff --git a/packages/protocol-sdk/CHANGELOG.md b/packages/protocol-sdk/CHANGELOG.md index 949addb18..2c7dca3bc 100644 --- a/packages/protocol-sdk/CHANGELOG.md +++ b/packages/protocol-sdk/CHANGELOG.md @@ -1,5 +1,26 @@ # @zoralabs/protocol-sdk +## 0.3.3 + +### Patch Changes + +- 97f58b3: `MintAPIClient` is now a class, that takes a chain id and httpClient in the constructor, enabling the httpClient methods `fetch`, `post`, and `retries` to be overridden. + + new methods on `MintAPIClient`: + + `getMintableForToken` - takes a token id and token contract address and returns the mintable for it. Easier to use for fetching specific tokens than `getMintable`. + + `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. + + `MintClient.makePrepareMintTokenParams` has the following changes: + + - returns a `SimulateContractParams`, instead of an object containing it indexed by key + - no longer takes a `PublicClient` as an argument (it should be specified in the constructor instead) + + new function `MintClient.getMintCosts` takes a mintable and quantity to mint and returns the mintFee, paidMintPrice, and totalCost. + +- d02484e: premintClient can have http methods overridable via DI, and now takes publicClient and http overrides in `createPremintClient` function. it no longer takes `publicClient` as an argument in functions, and rather uses them from the constructor. `executePremint` has been renamed ot `makeMintParameters` + ## 0.3.2 ### Patch Changes diff --git a/packages/protocol-sdk/package.json b/packages/protocol-sdk/package.json index 43072386b..583ba20b1 100644 --- a/packages/protocol-sdk/package.json +++ b/packages/protocol-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@zoralabs/protocol-sdk", - "version": "0.3.2", + "version": "0.3.3", "repository": "https://github.com/ourzora/zora-protocol", "license": "MIT", "main": "./dist/index.js",