Skip to content

Commit

Permalink
Version Packages (#389)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Nov 28, 2023
1 parent d02484e commit f58ee95
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 24 deletions.
17 changes: 0 additions & 17 deletions .changeset/chilled-seahorses-protect.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/pink-turtles-watch.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-27T17:37:45.815Z
// Last updated on 2023-11-28T23:30:25.008Z
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;

Expand Down
21 changes: 21 additions & 0 deletions packages/protocol-sdk/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
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.2",
"version": "0.3.3",
"repository": "https://github.com/ourzora/zora-protocol",
"license": "MIT",
"main": "./dist/index.js",
Expand Down

0 comments on commit f58ee95

Please sign in to comment.