Skip to content

Commit

Permalink
Merge pull request #2 from SynthwaveAndy/feature-menu
Browse files Browse the repository at this point in the history
Feature menu
  • Loading branch information
SynthwaveAndy committed Apr 6, 2023
2 parents a09abab + c513722 commit 0ee585f
Show file tree
Hide file tree
Showing 17 changed files with 478 additions and 617 deletions.
1 change: 1 addition & 0 deletions Example_Output/DIDless.csv
@@ -0,0 +1 @@
nft_name,nft_id,owner_address
1 change: 1 addition & 0 deletions Example_Output/excluded_NFTs.csv
@@ -0,0 +1 @@
nft_name,nft_id,owner_name,owner_DID,owner_address
1 change: 1 addition & 0 deletions Example_Output/nft_ownership.csv
@@ -0,0 +1 @@
nft_name,nft_id,owner_name,owner_DID,owner_address
1 change: 1 addition & 0 deletions Example_Output/nft_ownership_agg.csv
@@ -0,0 +1 @@
owner_name,NFTs_owned_count,owner_DID,owner_address
217 changes: 0 additions & 217 deletions Output/didless.csv

This file was deleted.

8 changes: 0 additions & 8 deletions Output/excluded_NFTs.csv

This file was deleted.

138 changes: 0 additions & 138 deletions Output/nft_ownership.csv

This file was deleted.

36 changes: 0 additions & 36 deletions Output/nft_ownership_agg.csv

This file was deleted.

57 changes: 37 additions & 20 deletions README.md
@@ -1,55 +1,72 @@
# P.O.R.N.O
(Proof of Related NFT Ownership)
# DID PIX

Version 1.1.0

<div align="center">
<img src="https://bafybeiam6rq5c5jmg5lp524q6elln33stojpsclipzr5whicyegmzmfdym.ipfs.nftstorage.link/DIDPIX.png" style="width:40%;height:auto;"/>
<p><a href="https://mintgarden.io/nfts/nft1frue7ehxrj975q3dy9f8n0lq0a7lt7676jlg5rl59yr2dzc2y46qdksvxk">Johnson Peeperton</a> the DID PIX Mascot!</p>
</div>

## About
This simple script can be used to generate a list of XCH Receive addresses for owners of Chia NFTs in any number listed collections. You can also specify DID's to exclude from the output list (For example, if the collection creator has their own NFT's in their DID).

This simple program can be used to generate a list of XCH Receive addresses for owners of Chia NFTs in any number given collections. You can also specify DID's to exclude from the output list (For example, if the collection creator has their own NFT's in their DID).

> Note: In previous versions of this tool, you would edit CSV Files to list the collections and excluded DIDs, this is now handled via a novel menu implementation.
## Dependancies

- [Python 3.7+](https://www.python.org/downloads/)
- Use `pip install <import>` for any missing imports.

## Customizing
By default and for example, this is configured for the [$DEGEN](https://www.taildatabase.com/tail/320b869bc8d293cca8784187312da1a61cf43b9cf0724b47d8e027dcca1dd501) Airdrop snapshot.
## Example

Simply open the `collections.csv` file and add your Collection names and ID's.
Then open the `excluded_DIDs.csv` file and add any DID's you need to exclude.

*Do not modify the file headers (first rows)*
Included for example, is the output for the [$DEGEN](https://www.taildatabase.com/tail/320b869bc8d293cca8784187312da1a61cf43b9cf0724b47d8e027dcca1dd501) Airdrop snapshot which was performed in early 2023.

## Running
`$ python porno_snapshot.py`

`$ python didpix.py`

## Output
This script will produce the following Four output files.

This program will produce the following 4 output files.

### **nft_ownership.csv**

> *Schema/Header:* `nft_name,nft_id,owner_name,owner_DID,owner_address`
Contains records of all NFT's which are assigned to a DID. This excludes any DIDs listed in `excluded_DIDs.csv`, and includes any "Unclaimed" DIDs on MintGarden - as Denoted by "Unclaimed DID". This is pre-sorted by Owner Name.
Contains records of all NFT's which are assigned to a DID. This excludes any DIDs provided, and includes any "Unclaimed" DIDs on MintGarden - as Denoted by "Unclaimed DID". This is pre-sorted by Owner Name.

### **nft_ownership_agg.csv**

> *Schema/Header:* `owner_name,NFTs_owned_count,owner_DID,owner_address`
Containts aggregations (tallied records) of `nft_ownership.csv` by DID. The Owners XCH Receive Address maintained for this dataset it is simply taken from the first record in `nft_ownership.csv`
Contains aggregations (tallied records) of `nft_ownership.csv` by DID. The Owners XCH Receive Address maintained for this dataset it is simply taken from the first record in `nft_ownership.csv`

### **DIDless.csv**

### **didless.csv**
> *Schema/Header:* `nft_name,nft_id,owner_address`
The entries in this file represent the NFTs which have not been assigned to a DID (Claimed or Not). Most of these NFTs are simply unsold

### **excluded_NFTs.csv**

> *Schema/Header:* `nft_name,nft_id,owner_name,owner_DID,owner_address`
Contains records of all NFTs belonging to Excluded DIDs

## Support Development

- If you would like to support future development of this tool, or tools like it, consider buying a [ChiFi Degen](https://dexie.space/offers/col1cueue8anxk6uyf0gu92gwxfm2myf7mdq06z744h32wlw37urhlvsjnpu9c/xch) :D
- Please provide `feature requests` or report `issues` in the Issues tab on GitHub.
- Want to ask a question, get help or provide feedback? Join my [Discord]() server.

## Credits
Thankfully powered by [MintGarden.io](mintgarden.io) public API.

Not associated with MintGarden.io.
Thankfully powered by [MintGarden.io](mintgarden.io) public API.

Based on the work of Steve Stepp [xchdev.com](xchdev.com)
> Not associated with MintGarden.io.
## Disclaimer
This software is provided "As Is", it is your responsibility to ensure correctness of data produced.
The author takes no liability for any losses incured.

A lot to do with Chia NFTs, nothing to do with any Hubs..
This software is provided "As Is", it is your responsibility to ensure correctness of data produced.
The author takes no liability for any losses incurred.
Binary file added __pycache__/query_user.cpython-310.pyc
Binary file not shown.
Binary file added __pycache__/utils.cpython-310.pyc
Binary file not shown.
4 changes: 0 additions & 4 deletions collections.csv

This file was deleted.

0 comments on commit 0ee585f

Please sign in to comment.