Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ERC Registry] Add ContractScanner service class to handle fetching contracts from mirror node #1038

Closed
Tracked by #1066
quiet-node opened this issue Dec 3, 2024 · 0 comments · Fixed by #1044
Closed
Tracked by #1066
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@quiet-node
Copy link
Member

quiet-node commented Dec 3, 2024

Problem

According to the design document, a new ContractScanner service class is needed to handle fetching contracts from the mirror node.

Solution

Implement a ContractScanner service class under tools/erc-repository-indexer/src/services/contractScanner.ts. The class should include:

  • A fetchContracts() method to retrieve all contracts from the mirror node.
  • A fetchContractByteCode() method to fetch detailed contract objects using contractId.

The ContractScanner class should also be tested using the Jest testing framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
1 participant