Skip to content

v2.2.0

Choose a tag to compare

@robrigo robrigo released this 05 Aug 01:07
· 18 commits to main since this release
1c0bf0e

Composes the purchase and listing flows and adds the delphi settlement helpers.

Features

  • purchaseSaleActions composes assertsale, the deposit transfer, and purchasesale. announceSaleActions composes announcesale and the atomicassets createoffer carrying the sale memo. Both emit authorization-free action data in the order the market contract expects. (#16)
  • purchaseSaleActions throws when a delphi-priced sale arrives without a settlement_quantity, because that omission pays the wrong amount rather than failing the transaction. (#16)
  • deriveSettlementAmount reproduces the market contract's settlement math with BigInt, the float formula losing precision at on-chain magnitudes. formatQuantity renders raw integer amounts as chain quantities. (#16)
  • DelphiPairSpec projects a supported pair from getConfig and rejects a non-positive median or a precision outside the chain's 0 to 18, naming the field in the error. (#16)
  • IMarketPair.data.quote_precision is typed number rather than the literal 2, so a pair read from the API feeds a DelphiPairSpec directly. (#16)
  • regmarket and withdraw action builders cover marketplace registration and market-balance withdrawal. (#15)

Commits

  • 5a2028d feat: add regmarket and withdraw action builders (#15)
  • d9051b0 feat: compose the purchase and listing flows so integrators stop hand-rolling them (#16)
  • 1c0bf0e chore(release): 2.2.0

Full changelog: v2.1.0...v2.2.0