- 364d7906: Change DEFAULT_MINIMUM_MARKET_ETH to 0.0123321 eth (1,111 mints) to match default that is set on zora.co
- e68ce881: Fix filtering for active markets
- 4a29c2b9: Bump viem to 2.21.21
- Updated dependencies [4a29c2b9]
- @zoralabs/[email protected]
-
66f33bbb: fix: update secondary swap helper contract address
-
8d7fdc02: For the functions
getToken
andgetTokensOfContract
, the returnedMintableReturn
type has been updated to provide more information about the primary mint status:- Added
primaryMintActive
boolean to indicate if the primary mint is currently active. - Added
primaryMintEnd
optionalbigint
to show the end time of the primary mint, if applicable. - Added
secondaryMarketActive
boolean to indicate if the secondary market is currently active. - Modified
prepareMint
to be conditionally available:- When
primaryMintActive
istrue
,prepareMint
is available as aPrepareMint
function. - When
primaryMintActive
isfalse
,prepareMint
is set toundefined
.
- When
This allows for developers to know if the primary mint is active or not, and if not, if they should buy on secondary.
- Added
-
Updated dependencies [66f33bbb]
- @zoralabs/[email protected]
- Updated dependencies [b885539f]
- @zoralabs/[email protected]
-
21247473: Added new functions
buy1155OnSecondary
andsell1155OnSecondary
to the collector client in the protocol SDK. These functions enable users to buy and sell ERC1155 tokens on the secondary market. Key features include:- Slippage protection for both buying and selling operations
- Detailed price breakdowns in wei, sparks, and USDC
- Support for specifying recipient addresses
- Error handling and simulation parameters
- fc4a7f65: Support viewing and withdrawing protocol rewards and secondary royalties balances from the sdk, using the new methods
getRewardsBalances
andwithdrawRewards
.
- 24520e9a: Fix sdk setSale for v2 params
- Updated dependencies [247ebc86]
- Updated dependencies [24520e9a]
- @zoralabs/[email protected]
- 879a019a: - Fixed types, defaults, and queries for v2 timed sales
- b9fcab20: Removed unneeded async in token setup
- Updated dependencies [d221894d]
- Updated dependencies [f94e5f03]
- Updated dependencies [1b4d5ee7]
- @zoralabs/[email protected]
- c75eb65b: Fix bug where for timed sale strategy, sales settings were not being set. For getting default erc20 name, get it from the contract name instead of fetching from ipfs.
- 5f964909: To speed up performance for
create1155OnExistingContract
, use subgraph to get contract info and reduce quantity of rpc reads.
- f40c4a8f:
create1155
andcreate1155OnExistingContract
return an asyncprepareMint
function, enabling to mint right after creating without needing to rely on the subgraph.
- 8c50a99c: Add support for creating 1155s and collecting using the new ZoraTimedSaleStrategy. Default to using the new ZoraTimedSaleStrategy as a minter for new 1155s.
- 47c20f4d: - Added support for allowlist mint creation and collection
- For creating an erc20 mint, the parameter
type
must be set toerc20Mint
on thetoken.salesConfig
object
- For creating an erc20 mint, the parameter
- 5417f4dd: ProtocolSdk
create1155
can only be used for new contracts, and returns the correct deterministic contract address. A new functioncreate1155OnExistingContract
is added to support creating 1155 tokens on existing contracts
- Updated dependencies [58f59243]
- Updated dependencies [b5a7fac4]
- @zoralabs/[email protected]
- 12909b5b: Renamed Mints to Sparks
- Updated dependencies [12909b5b]
- Updated dependencies [58914a0c]
- @zoralabs/[email protected]
- 527aa518: Move from yarn to pnpm properly pinning deps packages
- Updated dependencies [527aa518]
- @zoralabs/[email protected]
-
898c84a7: [chore] Update dependencies and runtime scripts
This ensures jobs do not match binary names to make runs less ambigious and also that all deps are accounted for.
-
Updated dependencies [898c84a7]
-
Updated dependencies [0ec838a4]
-
Updated dependencies [e0b5074d]
- @zoralabs/[email protected]
- cd5ac235: protocol sdk gets mint price from the default mint price entity on the subgraph
- 5c009569: Added metadata builder methods to sdk. sdk's method createPremint returns collect/manage urls
- f52f28f3: Added methods to Collector Client: getToken, getTokensOfContract
- 8c23f05b: - new high-level sdks:
createCreatorClient
andcreateCollectorClient
.createPremintClient
,createMintClient
,create1155CreatorClient
, andcreatePremintClient
are removed.- external apis, such as the premint api can be stubbed/replaced/mocked.
- new function
mint
on the collector sdk that works with1155
,premint
, and721
s. create1155
now supports creating erc20, free, and paid mints. Setup actions now mimic what's on zora.co.
- b0f0fb74: premintClient - fix default mint duration to be unlimited (it was one week before)
- b16078bc:
- premintClient now supports creating/minting premints with additional admins.
- premint client supports creating premints with just a collection address, as long as the premint has been brought onchain
- 502f3295: premint sdk - on createPremint,
payoutRecipient
argument moved totokenCreationConfig
. premintConfigVersion is no longer an argument; the sdk automatically figures out which is the appropriate version - Updated dependencies [9cdd81ac]
- @zoralabs/[email protected]
- 12387133:
create1155CreatorClient
requireschain
to be passed as a default argument instead of apublicClient
- Updated dependencies [7af9c4db]
- @zoralabs/[email protected]
- 888168b8: Fix protocol-sdk to point to
isAuthorizedToCreatePremint
- 344f452b: Add support for ERC-20 minting on 1155s using ERC20 minters within the function
makePrepareMintTokenParams
.
- 1a4aa02d: Remove graphql-request library and add base sepolia
- Updated dependencies [399ba552]
- @zoralabs/[email protected]
- 16deff0c: Moved typed data definitions from protocol-sdk to protocol-deployments
- Updated dependencies [16deff0c]
- @zoralabs/[email protected]
- e2452f7d: Removed
zora-1155-contracts
,1155-deployments
,mints-contracts
, andmints-deployments
from devDependencies hierarchy.
- 8e514b7: Cleanup protocol-sdk to have better docs around all methods, and remove methods that do not need to be exported and are not used.
- 598a95b: Bumps protocol-sdk to use [email protected] see the viem 2.X.X migration guide for breaking changes when migratring from viem 1.X.X to 2.X.X
- Updated dependencies [8e514b7]
- @zoralabs/[email protected]
- Updated dependencies [9a16b81]
- @zoralabs/[email protected]
- 825e5f7: Adds optional
createReferral
tocreateNew1155Token
params
- 50a4e09: Added sdk method to get total MINT balance
- Updated dependencies [042edbe]
- Updated dependencies [50a4e09]
- @zoralabs/[email protected]
- 2eda168: Update default premint version to v2
- 4066420: Adding protocol SDK to base and sepolia networks
- Updated dependencies [bb163d3]
- @zoralabs/[email protected]
- 52b16aa: Publishing package in format that supports commonjs imports by specifying exports
- Updated dependencies [52b16aa]
- @zoralabs/[email protected]
- 8a87809: Undo changes to package export because it didn't properly bundle all files in
dist
- 9710e5e: Defining exports in protocol-sdk
- a07499d: Allows an
Account
object to be passed forsignTypedData
compatiblity with Local Accounts
- 5c536dc: Update optimism eth constant
- Updated dependencies [f3332ee]
- Updated dependencies [d2085fd]
- Updated dependencies [a51a0cb]
- @zoralabs/[email protected]
- 73070c0:
- Fix types export - make sure that types are exported to the correct directory. Broken by commit 627f8c37716f0b5c201f75ab1d025ae878be0ae29e7a269d21185fa04e4bcf93
- Exclude tests from built bundle
- Fixes #396
-
a52d245: Fix premint v2 support in premint client and add support for sepolia to SDK:
- Fix chain constants config for Zora Goerli.
- Support Zora-Sepolia for premint client.
- Fix passing of
config_version
to and from the backend API. - Change parameter on
makeMintParameters
fromaccount
tominterAccount
. - Fix price minter address for premint client by chain, since it is not the same on all chains (yet).
- Updated dependencies [3af77cf]
- Updated dependencies [23dba1c]
- @zoralabs/[email protected]
- 92b1b0e: Export premint conversions
- 9b03ed2: Support premint v2 in sdk
- Updated dependencies [bff853a]
- @zoralabs/[email protected]
- 7e00197: * For premintV1 and V2 - mintReferrer has been changed to an array
mintRewardsRecipients
- which the first element in array ismintReferral
, and second element isplatformReferral
.platformReferral is not used by the premint contract yet
. - 0ceb709: Add mint costs getter for premint to protocol sdk
- Updated dependencies [5156b9e]
- @zoralabs/[email protected]
- 28884c9: *
PremintClient
now takes a premint config v1 or v2, and a premint config version, for every call to create/update/delete a premint. PremintClient methods have been simplified and are easier to use - for examplecreatePremint
no longer allows to specifydeleted
= true. FormakeMintParameters
- it now just takes the uid and contract address (instead of full premint config)PremintAPIClient
now converts entities to contract entities before returning them, and correspondingly expects them as contract entities when passed in. It internally converts them to backend entities before sending them to the backend.
- Updated dependencies [4b77307]
- @zoralabs/[email protected]
-
7eb5e3f: ### Changes to
preminter
lower level
preminter.ts
now supports premint v2 by defining v2 typed data defintions.isValidSignature
now takes either v1 or v2 of a premint config, along with the premint config version. and both recovers the signer address and validates if the signer can create a premint on the given contract.- new function
premintTypedDataDefinition
which takes a premint config version and returns the signable typed data definition for that version - new function
recoverCreatorFromCreatorAttribution
which recovers the creator address from aCreatorAttribution
event - new function
supportsPremintVersion
which checks if a given token contract supports a given premint config version - new function
tryRecoverPremintSigner
which takes a premint config version and a premint signature, and tries to recover the signer address from the signature. If the signature is invalid, it returns undefined.
PremintClient
creation, updating, and deletion now take both premint config v1 and v2, but currently rejects them until the backend api supports creating v2 premints.isValidSignature
now just takes the data directly as a param, instead of{data}
-
27a2e23: Fix reading the FIXED_PRICE_MINTER from the subgraph
- ea27f01: Fix reading the FIXED_PRICE_MINTER from the subgraph
-
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:- 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. - returns a
-
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
- de0b0b7:
preminter
exposes new function isValidSignatureV1 that recovers a signer from a signed premint and determines if that signer is authorized to sign - Updated dependencies [f3b7df8]
- @zoralabs/[email protected]
- 92da3ed: Exporting mint client
- Updated dependencies [293e2c0]
- @zoralabs/[email protected]
- 40e0b32:
- rename premint-sdk to protocol-sdk
- added minting sdk, usable with
createMintClient
- added 1155 creation sdk, usable with
create1155CreatorClient
- premint sdk is now useable with
createPremintClient
-
b62e471: created new package
protocol-deployments
that includes the deployed contract addresses.- 1155-contracts js no longer exports deployed addresses, just the abis
- premint-sdk imports deployed addresses from `protocol-deployments
-
Updated dependencies [4d79b49]
-
Updated dependencies [b62e471]
-
Updated dependencies [7d1a4c1]
- @zoralabs/[email protected]
- 4afa879: Added new premint api that abstracts out calls to the chain signature and submission logic around submitting a premint. This change also incorporates test helpers for premints and introduces docs and an api client for the zora api's premint module.
- Updated dependencies [4afa879]
- @zoralabs/[email protected]
- c29e080: Update retry and error reporting
- 6eaf7bb: add retries
- Updated dependencies [8395b8e]
- Updated dependencies [aae756b]
- Updated dependencies [cf184b3]
- @zoralabs/[email protected]