Archived
1
0
Fork 0
Commit graph

3 commits

Author SHA1 Message Date
3d4c049323
fix: Convert big integers to float64
Large numbers can be returned by the Flexpool API reaching the `int64`
limit. Blocks reward were seen as 0 ETH. Using `float64` instead. Also
converting signed int64 to unsigned int64 for non-timestamp numbers.

BREAKING CHANGE: please follow the upgrades instructions from 1.2 to
1.3 to convert such types in the database.

Signed-off-by: Julien Riou <julien@riou.xyz>
2021-10-15 18:22:48 +02:00
ebbd4ac2cd
refactor: Use struct to parse API responses
- Return bytes for each request to the Flexpool API
- Delegate JSON marshalling the higher functions
- Use int64 when possible

BREAKING CHANGE: database structure has to be updated to use integer
instead of real. Please follow instructions to upgrade from 1.0 to 1.1.

Signed-off-by: Julien Riou <julien@riou.xyz>
2021-10-11 08:54:37 +02:00
f51679193a
feat: Initial release (1.0)
Signed-off-by: Julien Riou <julien@riou.xyz>
2021-10-06 19:07:41 +02:00