-
we are supposed to run script/mockOffchain.js to test Chainlink upkeep and VRF functionalities. I thought that we are already integrated "VRFCoordinatorV2Mock.sol " to mock or simulate on localhost. What does script/mockOffchain.js do that VRFCoordinatorV2Mock.sol doesn't ? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@tsuccar : We use |
Beta Was this translation helpful? Give feedback.
-
There is no similarity between them. VRFCoordinatorV2Mock is a contract, and used for randomness (i.e. fulfillRandomWords). Essentially, it is a random function (VRF = verifiable random function). Whereas, mockOffchain is a script, and used arbitrarily w/ its logic primarily as a conditional ("checker") for upkeep; ultimately, used for integration w/ the front-end section. |
Beta Was this translation helpful? Give feedback.
There is no similarity between them.
VRFCoordinatorV2Mock is a contract, and used for randomness (i.e. fulfillRandomWords). Essentially, it is a random function (VRF = verifiable random function).
Whereas, mockOffchain is a script, and used arbitrarily w/ its logic primarily as a conditional ("checker") for upkeep; ultimately, used for integration w/ the front-end section.