ferrumnet / tokenSupply

MIT License
1 stars 1 forks source link

nonCirculatingSupply Configuration and Circulating Supply Balance #8

Closed taha-abbasi closed 1 year ago

taha-abbasi commented 1 year ago
  1. Added src/types.ts file to define custom TypeScript interfaces, such as NonCirculatingSupplyBalance.
  2. Added src/utils.ts file to implement utility functions like getBep2TokenBalance and getErc20TokenBalance.
  3. Updated src/config.ts to include a new getNetworkConfigurations function, the ApiResponse interface, and the chainIdToNetworkMap object. Additionally, the nonCirculatingSupplyAddressesConfig array has been updated with new entries.
  4. Modified src/getSupplyAcrossNetworks.ts to use the newly added utility functions and configurations, as well as to improve error handling and logging.
  5. Overall improvements in code structure and readability, making it easier to maintain and extend the project in the future.