Skip to content

v0.4.0

Compare
Choose a tag to compare
@taha-abbasi taha-abbasi released this 28 Mar 17:59
· 50 commits to main since this release

Release Notes for v0.4.0:

  1. Added dynamic fetching of network configurations using an API in config.ts.
  2. Updated the server (server.ts) to use the new getNetworkConfigurations function for both /totalSupplyAcrossNetworks and /totalSupply endpoints.
  3. Improved application flexibility and adaptability to network configuration changes.

With these updates, the tokenSupply application in Release v0.4.0 now provides a more flexible and accurate solution for querying the total supply of tokens across various networks.

What's Changed

Release v0.4.0 of the tokenSupply application introduces dynamic fetching of network configurations using an API, providing a more up-to-date and flexible solution. The following changes have been made to the codebase:

  • Dynamic Network Configuration based on API Response by @taha-abbasi in #7
  • config.ts: Network configurations are now fetched using the getNetworkConfigurations function, which makes an API call to fetch token contract addresses for different networks. The hardcoded network configurations have been replaced with a chain ID to network mapping (chainIdToNetworkMap), which is used to construct the final network configurations.
  • server.ts: Both /totalSupplyAcrossNetworks and /totalSupply endpoints now call the getNetworkConfigurations function to fetch network configurations dynamically before calling getTotalSupplyAcrossNetworks.

Full Changelog: v0.3.0...v0.4.0