Skip to content

Conversation

@devin-ai-integration
Copy link
Contributor

Summary

Adds deprecation warnings to the IEntropy.sol interface to help users understand the correct methods to use and prevent confusion around callback functionality.

Rationale

A user recently called request() instead of requestWithCallback() and was confused why their callback wasn't being invoked. To prevent this issue in the future, this PR adds clear warnings:

  • Interface-level deprecation: Warns users that IEntropy is deprecated and they should use IEntropyV2 instead
  • request() method warning: Explicitly states this method does NOT invoke callbacks and recommends requestV2
  • requestWithCallback() deprecation: Marks the method as deprecated and recommends requestV2 from IEntropyV2

How has this been tested?

  • Current tests cover my changes (documentation-only change)
  • Added new tests (not applicable)
  • Manually tested the code (verified linting passes with pnpm turbo fix)

The changes are documentation-only additions that don't affect contract functionality. Linting and formatting checks pass successfully.


Link to Devin run: https://app.devin.ai/sessions/a7070651e6cd4396aaf26d3830979970
Requested by: Jayant Krishnamurthy ([email protected])

Human Review Checklist

  • Verify that the warning messages are clear and accurate
  • Confirm that IEntropyV2 and requestV2 are the correct recommendations
  • Check that the deprecation warnings don't conflict with existing documentation
  • Ensure the interface-level deprecation notice is appropriate

- Add deprecation warning at top of interface directing users to IEntropyV2
- Warn that request() method does NOT invoke callbacks, recommend requestV2
- Mark requestWithCallback() as deprecated, recommend requestV2 from IEntropyV2

This addresses user confusion where calling request() instead of requestWithCallback()
results in no callback being invoked, helping users understand the correct methods to use.

Co-Authored-By: Jayant <[email protected]>
@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@vercel
Copy link

vercel bot commented Aug 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
api-reference Ready Ready Preview Comment Aug 28, 2025 5:40pm
6 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
component-library Skipped Skipped Aug 28, 2025 5:40pm
developer-hub Skipped Skipped Aug 28, 2025 5:40pm
entropy-explorer Skipped Skipped Aug 28, 2025 5:40pm
insights Skipped Skipped Aug 28, 2025 5:40pm
proposals Skipped Skipped Aug 28, 2025 5:40pm
staking Skipped Skipped Aug 28, 2025 5:40pm

Apply Solidity formatting rules to fix CI test failure

Co-Authored-By: Jayant <[email protected]>
@vercel vercel bot temporarily deployed to Preview – staking August 28, 2025 17:37 Inactive
@vercel vercel bot temporarily deployed to Preview – insights August 28, 2025 17:37 Inactive
@vercel vercel bot temporarily deployed to Preview – component-library August 28, 2025 17:37 Inactive
@vercel vercel bot temporarily deployed to Preview – developer-hub August 28, 2025 17:37 Inactive
@vercel vercel bot temporarily deployed to Preview – entropy-explorer August 28, 2025 17:37 Inactive
@vercel vercel bot temporarily deployed to Preview – proposals August 28, 2025 17:37 Inactive
@tejasbadadare tejasbadadare merged commit 8e8172d into main Aug 28, 2025
9 of 10 checks passed
@tejasbadadare tejasbadadare deleted the devin/1756401883-deprecate-ientropy-interface branch August 28, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants