Skip to content

Deprecate challengeWindow() function #336

@rjan90

Description

@rjan90

Description

As mentioned in issue #335, the challengeWindow() external view function should be deprecated once challengeWindowSize is made public.

Current Situation

The challengeWindow() function is currently exposed as an external view function in:

  • service_contracts/src/FilecoinWarmStorageServiceStateView.sol (line 21-23)
function challengeWindow() external view returns (uint256) {
    return service.challengeWindow();
}

This function retrieves the challenge window size from storage using extsload.

Background

In issue #335, it was decided to make challengeWindowSize public so that tools can fetch this information directly from the contract instead of hard-coding it. Once challengeWindowSize is made public, the challengeWindow() function becomes redundant and should be deprecated.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

🔎 Awaiting review

Relationships

None yet

Development

No branches or pull requests

Issue actions