Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #389

Merged
merged 1 commit into from
Nov 28, 2023
Merged

Version Packages #389

merged 1 commit into from
Nov 28, 2023

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Nov 28, 2023

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@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

@github-actions github-actions bot force-pushed the changeset-release/main branch from 74065ef to 32ccf24 Compare November 28, 2023 23:30
@oveddan oveddan self-assigned this Nov 28, 2023
@oveddan oveddan merged commit f58ee95 into main Nov 28, 2023
@oveddan oveddan deleted the changeset-release/main branch November 28, 2023 23:33
iainnash pushed a commit that referenced this pull request Jan 5, 2024
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
iainnash pushed a commit that referenced this pull request Jan 11, 2024
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
iainnash pushed a commit that referenced this pull request Jan 11, 2024
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
oveddan added a commit that referenced this pull request Jun 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant