Releases: Azuro-protocol/toolkit
Release list
v6.4.0
What's new
Per-outcome state, condition categories & market sorting
- New
OutcomeStateenum (Active/Canceled/Stopped/Won/Lost) andConditionCategorytype. - Per-outcome
hidden&state— added toOutcomeData(getConditionsByGameIds) and to
ConditionStateData.outcomes[](getConditionsState). An individual outcome can now be suspended or hidden
while the rest of its condition stays open for betting. categoryadded toConditionDetailedData;sort+categoryadded toConditionStateData.groupConditionsByMarket:MarketandMarketConditionnow carrycategory; eachMarketConditionexposes its ownsort;
MarketOutcomegainshidden+state.- Returned markets are ordered by their first condition's
sort(ascending). - The per-condition shape is now exported as
MarketCondition(previously an internalCondition). - Empty / nullish input now returns
[]instead of throwing.
Note
MarketOutcome and the raw OutcomeData gained required hidden / state fields. Reading API
responses is unaffected (you just get more data), but code that constructs these objects by hand must add
the new fields.
Docs:
groupConditionsByMarket
getConditionsByGameIds
getConditionsState
Full Changelog: v6.3.1...v6.4.0
v6.3.1
Fixes
getPredefinedCombofalls back to the dictionary market/selection name (or'Unknown'for
new-generation conditions) when the API returns an empty-string title — previously onlynull/
undefinedtriggered the fallback, so blank titles from the API were passed through as-is.
Full Changelog: v6.3.0...v6.3.1
v6.3.0
Predefined combo bets — ready-made express selections, each a list of conditions with a precomputed totalOdds.
getPredefinedCombo({ chainId })— fetches the curated combos for a chain's environment. Each returned
PredefinedComboConditionDatapins a single pickedoutcome(the API'soutcomesfield is normalized to
a singularoutcome).- New exported types:
GetPredefinedComboParams,GetPredefinedComboResult,PredefinedComboData,
PredefinedComboConditionData.
Docs: https://gem.azuro.org/hub/apps/toolkit/feed/getPredefinedCombo
Full Changelog: v6.2.0...v6.3.0
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