smartcontractkit / smartcontractkit/chainlink
[FEAT] Adding show and get available subscriptions method in VRFCoordinatorV2.sol
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 8.2k
- Forks
- 2k
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 202
Description
Description
Adding a method to show the available subscriptions related to a account and providing the owner an option to get the sub_id of all the available subscriptions through code.
Motivation
Because I wanted to create a subscription only if there was no existing subscription but I did not find a way to do so.
Justification
It will help programmers to not always create a subscription if there are already some existing subscriptions.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading VRFCoordinatorV2.sol and the existing subscription-related methods and state. Define how available subscriptions for an account should be exposed and how an owner can retrieve their subscription IDs, then add focused coverage for the requested behavior using the repository's existing contract tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100