Added src/types.ts file to define custom TypeScript interfaces, such as NonCirculatingSupplyBalance.
Added src/utils.ts file to implement utility functions like getBep2TokenBalance and getErc20TokenBalance.
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.
Modified src/getSupplyAcrossNetworks.ts to use the newly added utility functions and configurations, as well as to improve error handling and logging.
Overall improvements in code structure and readability, making it easier to maintain and extend the project in the future.
src/types.ts
file to define custom TypeScript interfaces, such asNonCirculatingSupplyBalance
.src/utils.ts
file to implement utility functions likegetBep2TokenBalance
andgetErc20TokenBalance
.src/config.ts
to include a newgetNetworkConfigurations function,
theApiResponse interface
, and thechainIdToNetworkMap object
. Additionally, thenonCirculatingSupplyAddressesConfig
array has been updated with new entries.src/getSupplyAcrossNetworks.ts
to use the newly added utility functions and configurations, as well as to improve error handling and logging.