paritytech / paritytech/dotns

[Feat]: Share the pagination page-size limit across contracts

Open Beginner friendly
#247 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

P2
Dominant language
Solidity
Stars
4
Forks
2
Avg merge
1d 18h
Merged PRs (30d)
24

Description

Component

Other

Priority

P2

Summary

DotnsNameEscrow defines its own MAX_RELEASED_PAGE_SIZE and MAX_REFUND_PAGE_SIZE, both 200. DotnsConstants.MAX_PAGE_SIZE (200) now holds the shared page-size ceiling and backs the PoP controller's paginated reads. Point the escrow constants at DotnsConstants.MAX_PAGE_SIZE so the limit lives in one place rather than being repeated per contract.

Proposal
  • Replace DotnsNameEscrow.MAX_RELEASED_PAGE_SIZE and MAX_REFUND_PAGE_SIZE with DotnsConstants.MAX_PAGE_SIZE.
  • Keep the value at 200, so there is no change to the enforced page size.
Acceptance criteria
  • The escrow pagination bounds read from DotnsConstants.MAX_PAGE_SIZE.
  • The enforced page size is unchanged.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with DotnsNameEscrow and DotnsConstants, locating the two escrow pagination constants and the shared MAX_PAGE_SIZE definition. Point both escrow bounds at DotnsConstants.MAX_PAGE_SIZE, then verify the enforced page-size limit remains 200 and the contract tests pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
solidity
Domain
blockchain
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Clearly specified
Newbie friendliness
86/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.