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

voting-cw721-staked has no way to query address from NFT id #820

Open
Reecepbcups opened this issue Apr 8, 2024 · 1 comment
Open

voting-cw721-staked has no way to query address from NFT id #820

Reecepbcups opened this issue Apr 8, 2024 · 1 comment
Labels
good-first-issue Issue that is good for first.

Comments

@Reecepbcups
Copy link
Collaborator

Affected

  • crates.io:dao-voting-cw721-staked 2.3.0
  • Looks to be the same in main

Summary

I am building out https://github.com/Reecepbcups/stargaze-nft-snapshots to snapshot NFT holders. This iterates all NFT id's and exports them to make airdrops easier.

Issue

Staked DAODAO CW721 are no longer apart of the original collection for Racoon or Rekt bulls due to staking. In doing so, I need to query the crates.io:dao-voting-cw721-staked contract to get staked id -> stars address. Currently DAODAO only has stars address -> [list of staked ids]

Solution

It would be nice to add a query to get nft idx -> user address that has it staked. Since there is no way to query who is staking without indexing?

@JakeHartnell
Copy link
Member

Ah, really good suggestion. This shouldn't be too hard to add.

@JakeHartnell JakeHartnell added the good-first-issue Issue that is good for first. label May 24, 2024
theghostmac added a commit to theghostmac/dao-contracts that referenced this issue Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good-first-issue Issue that is good for first.
Projects
None yet
Development

No branches or pull requests

3 participants
@JakeHartnell @Reecepbcups and others