lbryio / lbryio/lbry-sdk

Support methods should work with claim names as well

Open
#3,540 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
7.2k
Forks
493
PR merge metrics
No merged PRs in 30d

Description

Currently support_create and support_abandon only support claim_id as input.

https://github.com/lbryio/lbry-sdk/blob/e6efc1ad4a9a85003561ba175e2443097f3fb54d/lbry/extras/daemon/daemon.py#L4203-L4207

https://github.com/lbryio/lbry-sdk/blob/e6efc1ad4a9a85003561ba175e2443097f3fb54d/lbry/extras/daemon/daemon.py#L4316-L4318

It would be good if we could use a claim URI, name or channel name directly.

lbrynet support create --claim_id=5a23d1ca8cb8e6926902c5beafd725682bfac048 "10.0"
lbrynet support create "fight-the-SEC" "10.0"
lbrynet support create --claim_id=3fda836a92faaceedfe398225fb9b2ee2ed1f01a --keep="50.0"
lbrynet support create "@lbry:3f" --keep="50.0"

In my personal code I first do a claim_search on the URI or name to get the claim_id, and then pass it to support_create or support_abandon.

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 with the linked sections of lbry/extras/daemon/daemon.py around support_create and support_abandon, then trace how the lbrynet support commands pass their arguments. The change is complete when both methods accept a claim URI, claim name, or channel name directly while preserving claim_id support, as shown by the issue's command examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend, cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.