smartcontractkit / smartcontractkit/chainlink

[FEAT] Adding show and get available subscriptions method in VRFCoordinatorV2.sol

Open
#8,420 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

investigating
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.