All Projects → itsjerryokolo → CryptoPunks

itsjerryokolo / CryptoPunks

Licence: other
Subgraph for the Cryptopunks marketplace

Programming Languages

typescript
32286 projects
solidity
1140 projects

Projects that are alternatives of or similar to CryptoPunks

fnd-docs
Foundation developer docs
Stars: ✭ 33 (-10.81%)
Mutual labels:  subgraph, nft, nfts
wordpress-nft-plugin
NFT Auction Product Type WordPress Plugin for WooCommerce – BID HAUS
Stars: ✭ 197 (+432.43%)
Mutual labels:  nft, nfts
incomplete-guide-to-imx
An attempt to TLDR; Layer 2 development with IMX.
Stars: ✭ 29 (-21.62%)
Mutual labels:  nft, nfts
Awesome NFTs
A curated collection about NFTs - by bt3gl
Stars: ✭ 42 (+13.51%)
Mutual labels:  nft, nfts
samila
Generative Art Generator
Stars: ✭ 750 (+1927.03%)
Mutual labels:  nft, nfts
subgraph
🇬 The Hop Protocol Subgraph for The Graph
Stars: ✭ 17 (-54.05%)
Mutual labels:  subgraph, thegraphprotocol
enjin-java-sdk
Enjin Platform SDK for Java.
Stars: ✭ 32 (-13.51%)
Mutual labels:  nft, nfts
air-support
Airdrop automation tools for Solana from The Skeleton Crew
Stars: ✭ 112 (+202.7%)
Mutual labels:  nft, nfts
nft-collection-generator
Generates images and metadata for a collection of NFTs.
Stars: ✭ 77 (+108.11%)
Mutual labels:  nft, nfts
punks.attributes
cryptopunks.csv - All 10 000 CryptoPunks by ID with Type, Accessories & More
Stars: ✭ 59 (+59.46%)
Mutual labels:  cryptopunks, cryptopunk
Axie Infinity Extras
Here are all the websites and projects that are useful if you are an Axie Infinity player. If you find some projects that are not on the list, feel free to make a pull request!
Stars: ✭ 13 (-64.86%)
Mutual labels:  nft, nfts
opensea automatic uploader
(Bypass reCAPTCHAs) A Selenium Python bot to automatically and bulky upload and list your NFTs on OpenSea (all metadata integrated - Ethereum and Polygon supported); reCAPTCHA solver & bypasser included.
Stars: ✭ 205 (+454.05%)
Mutual labels:  nft, nfts
enjin-cpp-sdk
Enjin Platform SDK for C++.
Stars: ✭ 15 (-59.46%)
Mutual labels:  nft, nfts
opensea-scraper
Scrapes nft floor prices and additional information from opensea. Used for https://nftfloorprice.info
Stars: ✭ 129 (+248.65%)
Mutual labels:  nft, nfts
niftygate
Drop-in Access Control via NFT Ownership
Stars: ✭ 61 (+64.86%)
Mutual labels:  nft
nft-app
How to create your own NFT and mint NFT token
Stars: ✭ 145 (+291.89%)
Mutual labels:  nft
ethereum-dex
Decentralized exchange implementation for the 0xcert protocol on the Ethereum blockchain.
Stars: ✭ 18 (-51.35%)
Mutual labels:  nft
nft-tutorial
Tezos FA2 NFT CLI Tool And Tutorial
Stars: ✭ 81 (+118.92%)
Mutual labels:  nft
nft-marketplace-flutter
No description or website provided.
Stars: ✭ 23 (-37.84%)
Mutual labels:  nft
jsartoolkit5
Javascript ARToolKit v5.x
Stars: ✭ 37 (+0%)
Mutual labels:  nft

CryptoPunks

The CryptoPunks are 10,000 uniquely generated characters. No two are exactly alike, and each one of them can be officially owned by a single person on the Ethereum blockchain.

Subgraph url

https://thegraph.com/hosted-service/subgraph/itsjerryokolo/cryptopunks

GraphQL endpoint

Query the subgraph via its endpoint

https://api.thegraph.com/subgraphs/name/itsjerryokolo/cryptopunks

Entities

You'll find the description of the various fields in the schema.graphql

  • ASK: This entity captures the ASKS for a punk or from a user. It also shows the current ASK of the Punk. An ask can be open or closed. You can also query when the ask was created and when it was removed
  • BID: This entity captures the BIDS for a punk or from a user. It also shows the current BID of the Punk. An ask can be open or closed. You can also query when the bid was created and when it was removed
  • PUNK: This entity holds useful information about the Punks; traits, accessories, gender, owner etc
  • ACCOUNT: Account contains the user data; Trades, Hodlings etc
  • CONTRACT: Contract metadata including Trade Volume
  • METADATA: Here, you can retrieve the punk tokenURI, image URI, traits, and other useful metadata
  • SALE - Query punk sale events

Queries

See the Queries.md for example queries.

Query Owner Data

{
  accounts(where: {id: "0x6aeda057364cc4aad943cac04a1c149d90e10a3b"}) {
    id
    nftsOwned {
      id
    }
    bids{
      id
    }
    asks{
      id
      created{
        id
        txHash
        timestamp
      }
    }
    bought{
      id
      timestamp
      nft{
        id
      }
    }
    sent{
      id
      nft{
        id
      }
      txHash
      timestamp
    }
    received{
      id
      nft{
        id
      }
      txHash
      timestamp
    }
    assigned{
      id
      nft{id}
      timestamp
      txHash
    }
  }
}

Available Enums for Punk

  • male
  • female
  • zombie
  • alien
  • ape

Query male Punks

{
  punks(where: { type: male }) {
    id
    accessories
    type
  }
}

Run your local Graph Node

ETHEREUM_RPC=mainnet:https://eth-mainnet.alchemyapi.io/v2/${YOUR_API_KEY} docker compose up

Logic for Transfers/Wraps

  • Regular PunkTransfer
    • In handlePunkTransfer:
      • decrement from
      • increment to
      • set owner
      • create Transfer event
  • Mint/Wrap
    • In handlePunkTransfer (to = WrappedPunkAddress):
      • decrement from
      • In handleWrappedPunkTransfer (from = ZeroAddress):
      • increment to
      • set owner
      • create Wrap event
  • Burn/Unwrap
    • In handlePunkTransfer (from = WrappedPunkAddress):
      • increment to
      • set owner
    • In handleWrappedPunkTransfer (to = ZeroAddress):
      • decrement from
      • create Unwrap event
  • Wrapped Transfer
    • In handleWrappedPunkTransfer:
      • decrement from
      • increment to
      • set owner
      • create Transfer event
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].