Skip to content

v2.3.0

Choose a tag to compare

@robrigo robrigo released this 16 Aug 18:11
· 13 commits to main since this release
36aee58

Adds the auction, buy-offer and template-buy-offer builders and aligns the purchase path with the v2 contract.

Breaking changes

  • purchaseSaleActions throws when asset_ids has more than one entry. On AtomicMarket v2 a bundle purchase commits with the buyer charged and nothing delivered. Set allow_v1_bundle_sale: true on chains still running v1, where bundles are ordinary listings. (#19)
  • deriveSettlementAmount matches 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)
  • purchaseSaleActions requires settlement_quantity in settlement_symbol on the cross-symbol branch, and on a same-symbol sale it must equal listing_price with intended_delphi_median set to '0'. (#19)
  • purchaseSaleActions picks its branch from the contract's settlement discriminator, full symbol equality between listing_price and settlement_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 MarketActionBuilder and MarketActionGenerator: announceauct, cancelauct, auctionbid, auctclaimbuy, auctclaimsel, assertauct, createbuyo, cancelbuyo, declinebuyo, createtbuyo, canceltbuyo. (#20)
  • announceAuctionActions, acceptBuyofferActions and fulfillTemplateBuyofferActions compose the multi-action flows. acceptbuyo and fulfilltbuyo read 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, AcceptBuyofferInput and FulfillTemplateBuyofferInput are exported beside PurchaseSaleInput and AnnounceSaleInput. (#20)

Other changes

  • sideEffects: false in package.json, matching the sibling @atomichub/atomicassets package, 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