Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SMRT] Missing VRFConsumerV2Plus Contract #15145

Open
Metaxona opened this issue Nov 7, 2024 · 1 comment
Open

[SMRT] Missing VRFConsumerV2Plus Contract #15145

Metaxona opened this issue Nov 7, 2024 · 1 comment

Comments

@Metaxona
Copy link

Metaxona commented Nov 7, 2024

Description
Missing Contracts for the latest VRF contract v2.5 specially VRFConsumerV2Plus

Basic Information
I was trying to integrate a vrf random number for a smart contract and found that all versions below 2.5 are being deprecated/marked as legacy, so I was trying to use the newer version which is v2.5 instead, but can't find it in contracts/src/v0.8 or any links directing to it in the docs

Steps to Reproduce
install contracts using foundry
forge install smartcontractkit/chainlink

Additional Information
forge version: forge 0.2.0 (c3069a5 2024-11-05T00:22:10.424475717Z)

@Metaxona
Copy link
Author

Metaxona commented Nov 7, 2024

nvm found it on vrf/dev/*, but why is it on dev when it's already reflected on the docs? is it stable enough already for production or should we just use the previous one (v2)?

Aside from the ability to set the coordinator and this

function requestRandomWords(VRFV2PlusClient.RandomWordsRequest calldata req) external returns (uint256 requestId)

are there any other difference with v2 that is required by the vrf service for the contract to have?

and then regarding the mode of payments, how does v2.5 affect direct and subscription methods?

do i still need to implement them by needs like using the subscription version of the contract if i want it to be subscription based and the regular one for direct funding or are they just the same contract?

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

No branches or pull requests

1 participant