v0.2.0
Release Notes - v0.2.0
This release includes significant improvements and updates to the getUniqueStakers
and getUniqueStakersFromOpenStaking
functions, as well as the introduction of a new services
directory and stakingService.ts
file that contains the new getLatestStakingSnapshot
and saveStakingSnapshot
functions.
Updates to getUniqueStakers
and getUniqueStakersFromOpenStaking
- Improved error handling and logging for better clarity and easier debugging.
- Fixed an issue with the calculation of the
endBlock
variable, ensuring that it updates correctly with each iteration. - Implemented log iteration to overcome log size and rate limit issues. This new approach fetches logs in smaller, manageable chunks, ensuring that no logs are left out due to size and rate limits, providing more accurate and complete data.
New Services Directory and Functions
A new services
directory has been introduced to the project, which will contain service-related functions and utilities. In this release, a new file called stakingService.ts
has been added, which includes two new functions:
getLatestStakingSnapshot
This function retrieves the latest staking snapshot from the database for a specific staking contract and token contract on a specified chain. This enables the application to keep track of the latest staking data and avoid re-processing information that has already been captured.
saveStakingSnapshot
This function saves a staking snapshot to the database, including the staking pool name, staking and token contract addresses, chain ID, latest block captured, and the unique stakers list. This provides a convenient way to persist the staking data obtained during the processing of unique stakers and their staked balances.
These new functions help streamline the data processing and storage flow, making the application more efficient and easier to maintain.
Overall, these updates and additions to the application in v0.2.0 enhance its performance, reliability, and maintainability, setting a solid foundation for future improvements and features.
What's Changed
- added functionality to iterate over logs based on blockIterationSize by @taha-abbasi in #14
Full Changelog: v0.1.0...v0.2.0