Skip to content

Commit f58ee95

Browse files
Version Packages (#389)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent d02484e commit f58ee95

File tree

5 files changed

+23
-24
lines changed

5 files changed

+23
-24
lines changed

.changeset/chilled-seahorses-protect.md

Lines changed: 0 additions & 17 deletions
This file was deleted.

.changeset/pink-turtles-watch.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/1155-contracts/src/version/ContractVersionBase.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// This file is automatically generated by code; do not manually update
2-
// Last updated on 2023-11-27T17:37:45.815Z
2+
// Last updated on 2023-11-28T23:30:25.008Z
33
// SPDX-License-Identifier: MIT
44
pragma solidity 0.8.17;
55

packages/protocol-sdk/CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# @zoralabs/protocol-sdk
22

3+
## 0.3.3
4+
5+
### Patch Changes
6+
7+
- 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.
8+
9+
new methods on `MintAPIClient`:
10+
11+
`getMintableForToken` - takes a token id and token contract address and returns the mintable for it. Easier to use for fetching specific tokens than `getMintable`.
12+
13+
`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.
14+
15+
`MintClient.makePrepareMintTokenParams` has the following changes:
16+
17+
- returns a `SimulateContractParams`, instead of an object containing it indexed by key
18+
- no longer takes a `PublicClient` as an argument (it should be specified in the constructor instead)
19+
20+
new function `MintClient.getMintCosts` takes a mintable and quantity to mint and returns the mintFee, paidMintPrice, and totalCost.
21+
22+
- 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`
23+
324
## 0.3.2
425

526
### Patch Changes

packages/protocol-sdk/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@zoralabs/protocol-sdk",
3-
"version": "0.3.2",
3+
"version": "0.3.3",
44
"repository": "https://github.com/ourzora/zora-protocol",
55
"license": "MIT",
66
"main": "./dist/index.js",

0 commit comments

Comments
 (0)