Patch Changes
-
97f58b3:
MintAPIClientis now a class, that takes a chain id and httpClient in the constructor, enabling the httpClient methodsfetch,post, andretriesto 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.MintClientnow takes the optionalPublicClientin 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 optionalhttpClientparam in the constructor, allowing thefetch,post, andretriesmethods to be overridden when using the api. It now internally creates the MintAPIClient.MintClient.makePrepareMintTokenParamshas the following changes:- returns a
SimulateContractParams, instead of an object containing it indexed by key - no longer takes a
PublicClientas an argument (it should be specified in the constructor instead)
new function
MintClient.getMintCoststakes a mintable and quantity to mint and returns the mintFee, paidMintPrice, and totalCost. - returns a
-
d02484e: premintClient can have http methods overridable via DI, and now takes publicClient and http overrides in
createPremintClientfunction. it no longer takespublicClientas an argument in functions, and rather uses them from the constructor.executePreminthas been renamed otmakeMintParameters