v0.1.0
Release v0.1.0
In this release, we've introduced significant improvements to the code organization, refactored the codebase for better maintainability, and added new types and utility functions. Here are the detailed release notes:
Major Changes
Code Organization
- Created a new folder named
src
and moved all TypeScript files into thesrc
folder. - Created a new
types
folder inside thesrc
folder to store TypeScript types and interfaces. - Created a new
utils
folder inside thesrc
folder to store utility functions. - Created separate files for open staking and standard staking functions:
src/openStaking.ts
andsrc/standardStaking.ts
.
New Types
- Added a new type definition for
StakingContractDataItem
insrc/types.ts
.
Utility Functions
- Moved
getRpcUrl
,getTokenDecimals
, andupdateTotalStakedBalances
to separate files in thesrc/utils
folder. Each utility function now has its own file:getRpcUrl.ts
,getTokenDecimals.ts
, andupdateTotalStakedBalances.ts
.
Additional Functionality in src/index.ts
- Added functionality to sum the staked balances from all staking contracts, even if they are deployed across different blockchain networks.
- The main function now retrieves the appropriate RPC URL for each chain by calling the
getRpcUrl
function with the relevantchainId
.
Minor Changes
- Updated the
DataItem
type toStakingContractDataItem
and updated the rest of the code accordingly. - Renamed the
DataItem
type toStakingContractDataItem
. - Updated the function calls in
src/index.ts
to pass required additional parameters, such asDB_CONNECTION_STRING
,DB_NAME
, andDB_COLLECTION
.
Bug Fixes
- None
Known Issues
- None
This release represents a significant step towards a cleaner and more maintainable codebase. We encourage users to update to v0.1.0 and provide feedback on any issues or suggestions for improvement.
What's Changed
- Added functionality to get balances for contracts across chains and standard and open staking contracts along with structural changes by @taha-abbasi in #9
Full Changelog: v0.0.3...v0.1.0