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

feat: added support for ERC Registry tool to dynamically configure the number of contracts to scan per operation #1132

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

quiet-node
Copy link
Member

@quiet-node quiet-node commented Dec 24, 2024

Description:
This PR introduces a new configuration parameter, SCAN_CONTRACT_LIMIT, to enhance the flexibility of the ERC Registry tool. Users can now dynamically configure the number of contracts scanned per operation, with a default value of 100 and a customizable range of 1 to 100.

Additionally, this setting overrides the limit parameter in the next link if one exists in storage or composed from STARTING_POINT. For example, if the next link is /api/v1/contracts?limit=100&order=asc&contract.id=gt:0.0.5294198 and SCAN_CONTRACT_LIMIT is set to 30, the link will be updated to /api/v1/contracts?limit=30&order=asc&contract.id=gt:0.0.5294198.

Related issue(s):

Fixes #1131

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

@quiet-node quiet-node added the enhancement New feature or request label Dec 24, 2024
@quiet-node quiet-node added this to the 0.12.0 milestone Dec 24, 2024
@quiet-node quiet-node self-assigned this Dec 24, 2024
@quiet-node quiet-node requested review from a team as code owners December 24, 2024 17:22
Copy link

github-actions bot commented Dec 24, 2024

Test Results

 16 files  ±0   83 suites  ±0   12m 40s ⏱️ +28s
294 tests ±0  288 ✅ +1  6 💤 ±0  0 ❌  - 1 
303 runs  ±0  296 ✅ +1  7 💤 ±0  0 ❌  - 1 

Results for commit f3a65d7. ± Comparison against base commit ae65209.

♻️ This comment has been updated with latest results.

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
None yet
Development

Successfully merging this pull request may close these issues.

[ERC Registry] Phase 3: Add Support for Scanning a Dynamic Number of Contracts
1 participant