ava-labs / avalanche-faucet

Avalanche Faucet for Fuji Network and Subnets.
https://faucet.avax.network/
Other
472 stars 211 forks source link

Mainnet address tracker service #137

Closed rajranjan0608 closed 9 months ago

rajranjan0608 commented 9 months ago

This pull request primarily focuses on the creation of a new MainnetCheckService class in the mainnetCheckService.ts file and the subsequent integration of this service into the existing codebase. The MainnetCheckService class is designed to interact with a DynamoDB database to track and manage the number of balance checks performed on a specific address. This is done to limit the number of balance checks to a maximum of three times, after which the user is required to perform a transaction on the mainnet to reset the check count.

The main changes can be grouped into two categories:

Creation of the MainnetCheckService:

Integration of MainnetCheckService into the existing codebase: