Skip to content

Conversation

@coffeexcoin
Copy link
Contributor

@coffeexcoin coffeexcoin commented Jul 2, 2025

PR-Codex overview

This PR introduces a new vrng module for handling verified random number generation in smart contracts. It includes interfaces, error handling, and consumer contracts to facilitate random number requests and callbacks.

Detailed summary

  • Added IVRNGSystem and IVRNGSystemCallback interfaces.
  • Created VRNGConsumer and VRNGConsumerAdvanced contracts for randomness requests.
  • Implemented error handling in Errors.sol.
  • Developed mock implementations for testing: MockVRNGSystem, MockVRNGConsumerImplementation, and MockVRNGConsumerAdvancedImplementation.
  • Updated README.md to include vrng module details.
  • Added tests in VRNGConsumerTest.sol for various scenarios and validations.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@coffeexcoin coffeexcoin changed the title feat: add abstract VRF consumer feat: add abstract vRNG consumer Jul 2, 2025
@coffeexcoin coffeexcoin merged commit 52be242 into main Jul 2, 2025
4 of 8 checks passed
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.

2 participants