Repository navigation
v2.0.1
Publishes the AtomicHub fork as @atomichub/atomicmarket, covering 2.0.0 (shipped to npm without a tag) and 2.0.1.
Breaking changes
- The package name is
@atomichub/atomicmarket. Install it under that name and change imports from'atomicmarket'. (#1) - Deep imports such as
atomicmarket/build/API/Explorer/Paramsare replaced by root exports, for exampleimport { SaleApiParams } from '@atomichub/atomicmarket'. (#1) - Numeric ABI fields (
template_id, weights, splits) are numbers. The 64-bit id fields, sale ids and rule ids, remain strings. (#1) - Node.js 20 or newer is required. (#1)
BuyofferStatenames the lifecycle the indexer reports (Pending,Declined,Canceled,Accepted,Invalid) instead of the sale lifecycle. The numeric values are unchanged, so filters built from raw numbers behave the same. Code using the removedBuyofferState.ListedandBuyofferState.Soldno longer compiles and moves to the corrected names. (#13)
Features
- The package has no third-party runtime dependencies. The built-in
fetchreplaces node-fetch, and a customfetchcan still be injected. The only dependency is the sibling@atomichub/atomicassets. (#1) - Ships dual CJS and ESM output with bundled type declarations, plus a browser IIFE build. (#1)
- Adds the v2 royalty read endpoints
getRoyaltyConfig,getRoyaltyTemplateRulesandgetRoyaltyAttributeRules. (#1) - Adds
MarketActionBuilder, a synchronous builder for royalty-config actions, alongsideMarketActionGenerator, which covers the six royalty-configuration actions and their deletes. (#1) - Exports typed on-chain table rows and the
AtomicMarketActionsaction-name constants. (#1) - Exports the market API response-object, query-parameter and enum types from the package root, so no deep
build/imports are needed. (#1) - Adds
current_collection_feeto sales, auctions and buyoffers. (#1) TemplateBuyofferStateis new. The template buyoffer routes number their states fromListed, one below the other listing types. (#13)
Bug fixes
- A bare
import ... from '@atomichub/atomicmarket'under Node ESM no longer fails with "does not provide an export named 'AtomicHubNetwork'".Networks.tsnow splits the value importNETWORK_ENDPOINTSfrom the type-onlyAtomicHubNetwork, so esbuild drops the type from the emitted graph. The CJS build was never affected. (#7) IBuyoffermatches what the publishedatomicmarket1.1.6 returns. It carriesbuyoffer_id,memoanddecline_memo, where it used to carryauction_idand neither memo field. (#1)
Other changes
- The
@atomichub/atomicassetsdependency is a registry range,^2.0.0, rather than a git ref, so the lockfile carries a tarball with an integrity hash. (#10) - npm publishing runs through the trusted publisher rather than a stored token, so releases carry provenance with no long-lived publish secret. (#8)
Commits
- 278bdfa feat!: modernize as @atomichub/atomicmarket v2.0.0 (#1)
- e8c741f ci: type-check in CI instead of leaning on the test runner (#6)
- b1fb4f8 fix: keep type-only atomicassets imports out of the esm runtime graph (#7)
- 34b95d4 chore(deps): depend on the published @atomichub/atomicassets (#10)
- c66121b ci: publish through the trusted publisher instead of a token (#8)
- d22b490 docs(readme): lead with what the library is for, not its capability list (#9)
- d21a4df chore(release): 2.0.1 (#11)
- 0e19532 fix(test): identify the pack report by shape, not by position (#12)
- 95aeb55 fix(enums): number listing states per listing type, not from the sale lifecycle (#13)
Full changelog: v1.1.2...v2.0.1