smartcontractkit / chainlink

node of the decentralized oracle network, bridging on and off-chain computation
https://chain.link
Other
7.05k stars 1.72k forks source link

[SMRT] Missing VRFConsumerV2Plus Contract #15145

Open Metaxona opened 2 weeks ago

Metaxona commented 2 weeks ago

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 commented 2 weeks ago

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?