Repository navigation
v2.3.0
Adds the auction, buy-offer and template-buy-offer builders and aligns the purchase path with the v2 contract.
Breaking changes
purchaseSaleActionsthrows whenasset_idshas more than one entry. On AtomicMarket v2 a bundle purchase commits with the buyer charged and nothing delivered. Setallow_v1_bundle_sale: trueon chains still running v1, where bundles are ordinary listings. (#19)deriveSettlementAmountmatches the contract's own conversion instead of the exact quotient: where the contract's double arithmetic lands one raw unit above the exact floor, so does the SDK, and that unit is the difference between a deposit that funds the purchase and one that leaves it short. It throws on a pair with a negative exponent and on a result at or past 2^64. (#19)purchaseSaleActionsrequiressettlement_quantityinsettlement_symbolon the cross-symbol branch, and on a same-symbol sale it must equallisting_pricewithintended_delphi_medianset to'0'. (#19)purchaseSaleActionspicks its branch from the contract's settlement discriminator, full symbol equality betweenlisting_priceandsettlement_symbol. A settlement symbol differing from the price in precision alone therefore settles through the oracle rather than reading as a mismatch. (#19)
Features
- Adds auction, buy-offer and template-buy-offer actions to
MarketActionBuilderandMarketActionGenerator:announceauct,cancelauct,auctionbid,auctclaimbuy,auctclaimsel,assertauct,createbuyo,cancelbuyo,declinebuyo,createtbuyo,canceltbuyo. (#20) announceAuctionActions,acceptBuyofferActionsandfulfillTemplateBuyofferActionscompose the multi-action flows.acceptbuyoandfulfilltbuyoread the last created row of the AtomicAssets offers table, so neither is safe to build alone and both are reachable only through these helpers. (#20)AnnounceAuctionInput,AcceptBuyofferInputandFulfillTemplateBuyofferInputare exported besidePurchaseSaleInputandAnnounceSaleInput. (#20)
Other changes
sideEffects: falseinpackage.json, matching the sibling@atomichub/atomicassetspackage, so bundlers may drop the package from builds that import nothing from it. (#19)
Commits
- 2e9f74a fix: make the purchase path agree with the contract it builds for (#19)
- 9ba4137 feat: cover the auction and buy-offer families so consumers stop hand-rolling payloads (#20)
- 36aee58 chore(release): 2.3.0
Full changelog: v2.2.1...v2.3.0