v0.0.3
Release Notes for v0.0.3
This version includes significant improvements and new features since v0.0.26. Below are the highlights of the changes:
New Features
Environment Variables
- Added support for environment variables using
.env
file. The RPC URL is now stored in the.env
file instead of directly in thesrc/index.ts
file.
Staking Pool Name
- Added functionality to retrieve the name of the staking pool by calling the
name()
function on the staking contract.
Token Decimals
- Added support for tokens with different decimal values. Users can now provide the
tokenContractAddress
of the token they want to work with. - Updated the
getStakedBalances
function to receive the token contract address and use the decimals of the token to convert the balances accurately.
Improvements
Code Structure
- Updated the
tsconfig.json
to specify thesrc
directory as the base directory for TypeScript files. - Changed the output directory from
./dist
to./build
in thetsconfig.json
file. - Added the
erc20Abi
import to thesrc/index.ts
file for working with the token contract.
Bug Fixes
- Fixed an issue where the
tsc
was outputting the compiled code to the root directory instead of the specified output directory.
Please refer to the README.md file for instructions on how to build and run the project.
What's Changed
- updated RPC endpoint to be pulled from .env per resolves issue #3 by @taha-abbasi in #7
- Added functionality to check for decimals in a tokenContract address … by @taha-abbasi in #8
Full Changelog: v0.0.26...v0.0.3