Skip to content

v6.0.0

Choose a tag to compare

@on47sky on47sky released this 16 Mar 11:17
· 19 commits to main since this release

Toolkit v6.0.0:

  • New Feed REST API utilities for fetching games and conditions that replace the deprecated and removed GraphQL feed queries:
    • getConditionsByGameIds - replaces Conditions query
    • getConditionsState - replaces ConditionsBatch query
    • getGamesByFilters - replaces Games query
    • getGamesByIds - replaces Game query and Games when you need to fetch multiple games by ID
    • getNavigation - replaces Navigation and NavigationSport queries
    • getSports - replaces Sports query
    • searchGames - new one to search games by text query
  • New getBetsByBettor method for v3 bets history, including preparing orders
  • getBetCalculation replaces the deprecated getMaxBet (it now requires user account address for accuracy and returns minBet and maxBet).
  • Improved typing system
  • Extended enum GameState
  • Extended enum BetStatus to include pending bet orders
  • Renamed and extended enum BetStateBetOrderState
  • Helper getBetStatus now requires BetOrderState from bet entity (in case of bets fetched from graphql feed, pass null)
  • Fixed typo: calcMindOddscalcMinOdds
  • Added field redeemedAt to legacy bets graphql doc
  • Removed Data Feed graphql documents and types

Full Changelog: v5.1.9...v6.0.0

Migration Guide