updated May 9, 6:02pm PST based on dev feedback for touch more gas savings.
In JBTiered721DelegateStore
tiers
=> tiersOf
. Adapt argument for category
to categories
. Send a _includeResolvedUri
bool which will return in each tier a result from a tokenUriResolver if one is included in the delegate. Send empty array to get from all categories sequentially.
When adding tiers, a category of 0 is now acceptable since it's no longer needed as a wildcard. 0 should be used as the default for clients that dont care, it's a little cheaper.
tier
=> tierOf
. Send a _includeResolvedUri
bool which will return in the tier a result from a tokenUriResolver if one is included in the delegate.
in tierOfTokenId
, send a _includeResolvedUri
bool which will return in the tier a result from a tokenUriResolver if one is included in the delegate.
remove baseUriOf
and contractUriOf
properties. These are now found directly in the delegate.
In JB721TieredDelegate
setContractUri
, setBaseUri
, setTokenUriResolver
and setEncodedIPFSURI
are now condensed into one function setMetadata
. the provided params will be set, the rest ignored. send both _encodedIPFSUriTierId
and _encodedIPFSUri
to set a tier's encodedIPFSUri.
(included 5/10 at 4:55pm PST after gas review)
Remove pricingCurrency
pricingDecimals
and prices
properties in favor of pricingContext
.
(included 5/10 at 4:55pm PST after gas review)
Fidelity change of currency
and decimals
in JBPricingParams
In JB721Tier
struct
contributionFloor
=> price
. Remove lockedUntil
. Remove royalty data. Add resolvedUri
which is the content produced by the delegate.tokenUriResolver
for the tier if one is included (which would override the contents of encodedIPFSURI
.
In JB721TierParams
struct
contributionFloor
=> price
. Remove lockedUntil
. Remove royalty params. Larger fidelity for votingUnits
, category
, and price
. Introduction of useVotingUnits
flag -- if left false, the price
will be used as the voting units by default, else if true the provided votingUnits
will be used.
The diff also shows new fidelity for initialQuantity
, but the current max of 1,000,000,000 is unchanged. Nothing changed here.
Get rid of the tierGovernance
option. Only two governance types now, sent as 0 and 1.