Skip to content

Refactor endpoint types and align Atomic Assets client with API#10

Merged
aaroncox merged 1 commit intowharfkit:masterfrom
includenull:missing-market-tyes
Mar 31, 2026
Merged

Refactor endpoint types and align Atomic Assets client with API#10
aaroncox merged 1 commit intowharfkit:masterfrom
includenull:missing-market-tyes

Conversation

@includenull
Copy link
Copy Markdown
Contributor

This change aligns the Atomic Assets client with the upstream eosio-contract-api Atomic Assets namespace.

  • Added missing asset query filters to GetAssetsOptions:
    • has_template_buyoffer
    • template_mint
    • min_template_mint
    • max_template_mint
  • Added get_collection_schemas(collection_name) for /atomicassets/v1/collections/:collection_name/schemas.
  • Added response types for the collection schemas endpoint so the client can decode its lightweight payload correctly.
  • Added the missing search filter to GetTemplatesOptions.
  • Updated get_template_stats to support both upstream route forms:
    • /atomicassets/v1/templates/:template_id/stats
    • /atomicassets/v1/templates/:collection_name/:template_id/stats
  • Updated GetOffersOptions so offer_id and ids are list types, matching upstream boundary handling.
  • Added hide_offers support to get_burns.
  • Removed misleading client-only options that are not applied by the upstream API:
    • order from GetAccountsOptions
    • order from get_burns
  • Corrected boundary ids typing for string-key endpoints so collections, schemas, accounts, and burns use name lists instead of numeric ID lists.
  • Added assets back to SchemaObject to match schema responses from the upstream API.
  • Relaxed CollectionStats and SchemaStats so assets and burned can be absent when upstream aggregate queries return null.

- consolidate endpoint response type exports and related model fixes

- align Atomic Assets client options and response structs with upstream API behavior

- add collection schema response support, schema asset count handling, and related nullability fixes

- update package metadata, TypeScript/tooling dependencies, and lockfile
@aaroncox aaroncox merged commit 0a36a0e into wharfkit:master Mar 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants