Commit 3f61125
Pack: using Chainlink VRF v2 (Direct Funding Method) (#296)
* add chainlink contracts package
* Create PackVRFDirect: VRF with Direct payment
* Burn packs in the claimRewards function instead
* Remove addPackContents to bring down size
* Change contract type Pack - Pack_VRF
* Move pack test to dir
* Bug fix: expect randomWords to initially be empty.
* Move PackVRFDirect events to interface
* Tests for PackVRFDirect
* PackVRFDirect: Update docs
* Add benchmark test: fulfillRandomness
* Make openerToReqId public
* Offer convenience public fn canClaimRewards
* pkg update
* fix canClaimRewards
* pkg release
* Add openPackAdnClaimRewards
* pkg release
* Add tests for openPackAndClaimRewards
* allow VRF wrapper to call claim rewards
* prevent calling open twice while in flight
* Add openPackAndClaim to interface
* pkg release
* Add tests for not being able to open pack while repvious req is in flight
* fulfillRandomWords: low gas failsafe
* add WIP comment
Co-authored-by: Joaquim Verges <joaquim.verges@gmail.com>
Co-authored-by: Yash <kumaryashcse@gmail.com>1 parent ab250a7 commit 3f61125
File tree
14 files changed
+3810
-11
lines changed- contracts
- interfaces
- pack
- docs
- lib
- src/test
- pack
- utils
14 files changed
+3810
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
0 commit comments