Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 methodsfetch
,post
, andretries
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 thangetMintable
.MintClient
now takes the optionalPublicClient
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 optionalhttpClient
param in the constructor, allowing thefetch
,post
, andretries
methods to be overridden when using the api. It now internally creates the MintAPIClient.MintClient.makePrepareMintTokenParams
has the following changes:SimulateContractParams
, instead of an object containing it indexed by keyPublicClient
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 takespublicClient
as an argument in functions, and rather uses them from the constructor.executePremint
has been renamed otmakeMintParameters