Skip to content

feat: add abstract vRNG consumer - #2

Merged
coffee-the-dev merged 12 commits into
mainfrom
feat/vrf-consumer
Jul 2, 2025
Merged

feat: add abstract vRNG consumer#2
coffee-the-dev merged 12 commits into
mainfrom
feat/vrf-consumer

Conversation

@coffee-the-dev

@coffee-the-dev coffee-the-dev commented Jul 2, 2025

Copy link
Copy Markdown
Contributor

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}

@coffee-the-dev coffee-the-dev changed the title feat: add abstract VRF consumer feat: add abstract vRNG consumer Jul 2, 2025
@coffee-the-dev
coffee-the-dev merged commit 52be242 into main Jul 2, 2025
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.

1 participant