Fantasy football example updated with clearer docs and signed integer support
Sep 9, 2022
- New fantasy football example data spec — Added an `ExampleFantasyFootball` spec for sports-related demos and hackathons, with query details, response formatting, and encoding examples.
- ExampleFantasyFootball now uses signed integers — The example query and response fields changed from unsigned to signed integers. Existing integrations may need to update type handling before using the latest spec.
Documentation
- Clarified how the fantasy football example is structured, including player IDs, game IDs, and rating values.
- Added clearer Python examples for encoding and decoding the sample response data.
- Added Solidity examples for building the query data, generating the query ID, and reading the returned value on-chain.
- Included a link to the Tellor Solidity docs for additional help.
- Added a clearer example for encoding and decoding `SportsData[]` arrays.
Breaking Changes
- Changed the `ExampleFantasyFootball` query and response fields from unsigned integers to signed integers, which may require integration updates.