Skip to content

[backend] contractController/ContractUpgradeController list endpoints have no pagination #932

Description

@Wilfred007

Description

Both contractController.getContracts() and ContractUpgradeController.listContracts() return the full result set with no pagination. As the number of deployed contracts per organization grows, these endpoints will become slow and return increasingly large payloads.

Where

backend/src/controllers — contractController.getContracts, ContractUpgradeController.listContracts

Acceptance Criteria

  • Add page/limit pagination to both endpoints, consistent with other list endpoints
  • Add tests asserting paginated responses

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend developmentmediumModerate tasks

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions