Releases: Azuro-protocol/toolkit
Releases · Azuro-protocol/toolkit
v6.2.0
Features
Dynamic markets & richer condition data
- Added support for the new dynamic markets ("5…" conditions) that are managed via API and are not present in the
dictionariespackage. getConditionsByGameIdsnow accepts anextended?: booleanflag. Set it totrueto receive the new dynamic conditions in the response (defaults tofalse).ConditionDetailedDatanow exposes market/outcome titles directly, plus new fields for grouping and presentation:titleis now always present (no longer nullable).- New
sort,marketIdandmarketVarietyIdfields on the condition. - Outcomes are now typed via the exported
OutcomeDatatype and carrytitle,sort, and apointfield (numeric handicap/line value such as"-2.5"for modern conditions).
groupConditionsByMarketreworked to group both legacy and new dynamic markets (split intolegacyandv5grouping internally).
SIWE authentication
- New auth utilities for Sign-In With Ethereum:
getSiweNonce— request a nonce from the API.buildSiweMessage— build the SIWE message to be signed.verifySiwe— verify the signed message and obtain a session token.
User favorites
- New API helpers to manage a user's favorite countries and leagues:
getUserFavoritescreateUserFavorite(requires user auth token)deleteUserFavorite(requires user auth token)
- New exported types:
Favorites,FavoriteCountry,FavoriteCountryRef,FavoriteLeague,FavoriteSport.
Full Changelog: v6.1.1...v6.2.0
v6.1.0
- support new field
isTopLeaguefor leagues from API - add new filter
topLeagueFiltertogetSports - add deprecation marks for discontinued envs
Full Changelog: v6.0.2...v6.1.0
v6.0.2
- add
hiddenfield toConditionDetailedDatatype, pass it ingroupConditionsByMarket - fix default sorting for
getSports - pass
environmentingetConditionsStaterequest for more accurate results in edge cases
Full Changelog: v6.0.1...v6.0.2
v6.0.0
Toolkit v6.0.0:
- New Feed REST API utilities for fetching games and conditions that replace the deprecated and removed GraphQL feed queries:
getConditionsByGameIds- replacesConditionsquerygetConditionsState- replacesConditionsBatchquerygetGamesByFilters- replacesGamesquerygetGamesByIds- replacesGamequery andGameswhen you need to fetch multiple games by IDgetNavigation- replacesNavigationandNavigationSportqueriesgetSports- replacesSportsquerysearchGames- new one to search games by text query
- New
getBetsByBettormethod for v3 bets history, including preparing orders getBetCalculationreplaces the deprecatedgetMaxBet(it now requires user account address for accuracy and returnsminBetandmaxBet).- Improved typing system
- Extended enum
GameState - Extended enum
BetStatusto include pending bet orders - Renamed and extended enum
BetState→BetOrderState - Helper
getBetStatusnow requiresBetOrderStatefrom bet entity (in case of bets fetched from graphql feed, passnull) - Fixed typo:
calcMindOdds→calcMinOdds - Added field
redeemedAtto legacy bets graphql doc - Removed Data Feed graphql documents and types
Full Changelog: v5.1.9...v6.0.0
v5.1.8
Changed api and graph endpoints
v5.1.7
v5.1.6
v5.1.5
v5.1.4
v5.1.3
- New
BetState.Canceledbet's state - Upgraded dependencies