Skip to content

v0.1.0

Compare
Choose a tag to compare
@taha-abbasi taha-abbasi released this 05 May 00:29
· 75 commits to main since this release

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 the src folder.
  • Created a new types folder inside the src folder to store TypeScript types and interfaces.
  • Created a new utils folder inside the src folder to store utility functions.
  • Created separate files for open staking and standard staking functions: src/openStaking.ts and src/standardStaking.ts.

New Types

  • Added a new type definition for StakingContractDataItem in src/types.ts.

Utility Functions

  • Moved getRpcUrl, getTokenDecimals, and updateTotalStakedBalances to separate files in the src/utils folder. Each utility function now has its own file: getRpcUrl.ts, getTokenDecimals.ts, and updateTotalStakedBalances.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 relevant chainId.

Minor Changes

  • Updated the DataItem type to StakingContractDataItem and updated the rest of the code accordingly.
  • Renamed the DataItem type to StakingContractDataItem.
  • Updated the function calls in src/index.ts to pass required additional parameters, such as DB_CONNECTION_STRING, DB_NAME, and DB_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