immutable / contracts

Smart contracts for developers in the Immutable ecosystem.
Other
36 stars 36 forks source link

Random Values provider #166

Closed drinkcoffee closed 9 months ago

drinkcoffee commented 9 months ago

This PR contains the initial version of the Random Values Provider. This will provide a standardised interface for games to access random numbers.

The discussion document for the Random Provider is here: https://immutable.atlassian.net/wiki/spaces/BR/pages/2361984032/Secure+Random+Number+Generation+in+the+Immutable+zkEVM

The code is accompanied with description and architecture information and a test plan. The test coverage is 100%.

The PR also updates the solhint configuration in preparation for applying the linting rules across the codebase.

The code in the PR also has had prettier applied to fix basic spacing / formatting issues.

Once the initial version of this code has been merged to main, an entry will be added to developer hub.

openzeppelin-code[bot] commented 9 months ago

Random Values provider

Generated at commit: 86e43a335d0756717eec6860894d33c4c159f32d

🚨 Report Summary

Severity Level Results
Contracts Critical
High
Medium
Low
Note
Total
1
0
0
10
33
44
Dependencies Critical
High
Medium
Low
Note
Total
0
0
0
1
57
58

For more details view the full report in OpenZeppelin Code Inspector