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

Data Update #57

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/docs/CryptoPunks.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ CryptoPunks has a GraphQL API Endpoint hosted by [The Graph](https://thegraph.co

This subgraph can be used to query on-chain CryptoPunks data. The subgraph data is serviced by a decentralized group of server operators called [Indexers](https://thegraph.com/docs/en/network/indexing/).

The CryptoPunks subgraph works by listening for events emitted by one or more data sources (Smart Contracts) on the various chains. It handles the indexing and caching of data which can later be queried using the GraphQL API Endpoint, providing an excellent developer experience.

### Get Started

Learn more about how subgraphs work by checking out [The Graph's official documentation](https://thegraph.com/docs/en/).
Expand Down
175 changes: 86 additions & 89 deletions docs/docs/Entities.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,88 +24,85 @@ sidebar_position: 2
- [UserProxy](#userproxy)
- [EpnsNotificationCounter](#epnsnotificationcounter)
- [EpnsPushNotification](#epnspushnotification)
- [NFT](#nft)
- [Event](#event)
- [Offer](#offer)

## Account

| Field | Type | Description |
| --------------------- | ------------ | ------------------------------------------------- |
| id | Bytes! | Etherum address |
| punksOwned | [Punk!] | All punks owned by account |
| bought | [Sale!]! | Purchases by account |
| nftsOwned | [NFT!]! | All punks owned by account |
| punksOwned | [Punk!] | All Punks owned by account |
| bought | [Sale!]! | Purchases by Account |
| nftsOwned | [NFT!]! | All Punks owned by account |
| assigned | [Assign!]! | Punks assigned to account (if any) |
| sent | [Transfer!]! | Punk transfers by account |
| received | [Transfer!]! | Punk transfers to account |
| bids | [Bid!]! | Query bids by account |
| asks | [Ask!]! | Punks offered for sale by account |
| numberOfPunksOwned | BigInt! | Total number of punks owned by account |
| numberOfPunksAssigned | BigInt! | Total number of punks assigned to account |
| numberOfTransfers | BigInt! | Total number of transfer by account |
| numberOfSales | BigInt! | Total number of sales by account |
| numberOfPurchases | BigInt! | Total number of purchases by account |
| totalSpent | BigInt! | Total amount spent buying punks by account |
| totalEarned | BigInt! | Total amount earned by account from selling punks |
| averageAmountSpent | BigInt! | Average amount spent buying punks by account |
| sent | [Transfer!]! | Punk transfers by Account |
| received | [Transfer!]! | Punk transfers to Account |
| bids | [Bid!]! | Query bids by Account |
| asks | [Ask!]! | Punks offered for sale by Account |
| numberOfPunksOwned | BigInt! | Total number of Punks owned by account |
| numberOfPunksAssigned | BigInt! | Total number of Punks assigned to account |
| numberOfTransfers | BigInt! | Total number of transfer by Account |
| numberOfSales | BigInt! | Total number of sales by Account |
| numberOfPurchases | BigInt! | Total number of purchases by Account |
| totalSpent | BigInt! | Total amount spent buying Punks by Account |
| totalEarned | BigInt! | Total amount earned by Account from selling Punks |
| averageAmountSpent | BigInt! | Average amount spent buying Punks by Account |
| accountUrl | String! | Account URL |

## Punk

| Field | Type | Description |
| ---------------------- | ---------- | ------------------------------------------------------------------------ |
| id | ID! | Punk ID |
| transferedTo | Account | Account that received punk |
| assignedTo | Account | Account that claimed punk |
| purchasedBy | Account | Punk buyers |
| metadata | MetaData | Punk metadata |
| contract | Contract | Contract data |
| tokenId | BigInt! | Punk tokenID |
| owner | Account! | Current owner of punk |
| wrapped | Boolean! | Wrap status |
| events | [Event!]! | All punk events |
| currentAsk | Ask | Current ask for punk |
| currentBid | Bid | Current bid for punk |
| transferedTo | Account | Account that received Punk |
| assignedTo | Account | Account that claimed Punk |
| purchasedBy | Account | Punk Buyers |
| metadata | MetaData | Punk Metadata |
| contract | Contract | Contract Data |
| tokenId | BigInt! | Punk TokenID |
| owner | Account! | Current owner of Punk |
| wrapped | Boolean! | Wrap Status |
| events | [Event!]! | All Punk events |
| currentAsk | Ask | Current Ask for Punk |
| currentBid | Bid | Current Bid for Punk |
| currentAskCreated | AskCreated | Current AskCreated event |
| currentBidCreated | BidCreated | Current BidCreated event |
| numberOfTransfers | BigInt! | Number of times punk has been transferred |
| numberOfSales | BigInt! | Number of times punk was sold |
| numberOfTransfers | BigInt! | Number of times Punk has been transferred |
| numberOfSales | BigInt! | Number of times Punk was sold |
| currentAskRemoved | AskRemoved | Current AskRemoved event |
| currentBidRemoved | BidRemoved | Current BidRemoved event |
| totalAmountSpentOnPunk | BigInt! | Total amount spent purchasing punk across opensea & rarible marketplaces |
| averageSalesPrice | BigInt! | Average price for punk across opensea & rarible marketplaces |
| totalAmountSpentOnPunk | BigInt! | Total amount spent purchasing Punk across OpenSea & Rarible marketplaces |
| averageSalesPrice | BigInt! | Average price for Punk across OpenSea & Rarible marketplaces |

## MetaData

| Field | Type | Description |
| ----------- | --------- | -------------- |
| id | ID! | Metadata ID |
| tokenId | BigInt! | Punk token ID |
| tokenURI | String! | URI of punk |
| image | String | Punk image |
| svg | String | Punk svg image |
| tokenId | BigInt! | Punk Token ID |
| tokenURI | String! | URI of Punk |
| image | String | Punk Image |
| svg | String | Punk Svg image |
| contractURI | String! | Contract URI |
| punk | Punk! | Punk |
| traits | [Trait!]! | Punk traits |
| traits | [Trait!]! | Punk Traits |

## Trait

| Field | Type | Description |
| ------------ | ------------ | ------------------------------- |
| id | ID! | Trait ID |
| type | TraitType! | Type of trait |
| metaDatas | [Metadata!]! | Punk metadata |
| numberOfNfts | BigInt! | Number of punks with this trait |
| type | TraitType! | Type of Trait |
| metaDatas | [Metadata!]! | Punk Metadata |
| numberOfNfts | BigInt! | Number of Punks with this trait |

## Ask

| Field | Type | Description |
| ------- | -------- | ------------------------------------------------------ |
| id | ID! | Ask ID |
| from | Account! | Account that created ask |
| open | Boolean! | Open status of punk. Asks can be either open or closed |
| amount | BigInt! | Ask for punk in ETH |
| from | Account! | Account that created Ask |
| open | Boolean! | Open Status of Punk. Asks can be either Open or Closed |
| amount | BigInt! | Ask for Punk in ETH |
| nft | NFT | Punk being offered for sale |
| created | Event | Ask created at |
| removed | Event | Ask removed at |
Expand All @@ -116,7 +113,7 @@ sidebar_position: 2
| --------- | ---------- | ------------------------------------------------------ |
| id | ID! | Bid ID |
| from | Account! | Bidder |
| open | Boolean! | Open status of punk. Bids can be either open or closed |
| open | Boolean! | Open status of Punk. Bids can be either Open or Closed |
| amount | BigInt! | Bid amount in ETH |
| nft | NFT | Punk bidded |
| created | Event | Bid created at |
Expand All @@ -127,24 +124,24 @@ sidebar_position: 2

| Field | Type | Description |
| ----------------- | ------- | ------------------------------------------------ |
| id | ID! | Contract address |
| symbol | String | Token symbol |
| name | String | Token name |
| id | ID! | Contract Address |
| symbol | String | Token Symbol |
| name | String | Token Name |
| totalSupply | BigInt! | Total supply of tokens |
| totalSales | BigInt! | Total number of punk sales |
| totalAmountTraded | BigInt! | Total sales in ETH for punks |
| imageHash | String | The hash of the composite image of all the punks |
| totalSales | BigInt! | Total number of Punk sales |
| totalAmountTraded | BigInt! | Total Sales in ETH for Punks |
| imageHash | String | The hash of the composite image of all the Punks |

## Assign

| Field | Type | Description |
| ----------- | ---------- | --------------------------- |
| id | ID! | Assign ID |
| contract | Contract | Contract metadata |
| contract | Contract | Contract Metada |
| nft | NFT | Punk that was assigned |
| to | Account | Account that claimed punk |
| to | Account | Account that claimed Punk |
| amount | BigInt | Punk amount |
| from | Account | Account that created assign |
| from | Account | Account that created Assign |
| type | EventType! | Event type |
| logNumber | BigInt! | Transaction log number |
| blockNumber | BigInt! | Transaction block number |
Expand Down Expand Up @@ -207,39 +204,39 @@ sidebar_position: 2

## BidRemoved

| Field | Type | Description |
| ----------- | ---------- | -------------------------- |
| id | ID! | BidRemoved ID |
| from | Account | Account that removed bid |
| to | Account | Account |
| bid | bid | Punk bid removed |
| amount | BigInt | Bid in ETH |
| contract | Contract | Contract metadata |
| nft | NFT | Punk whose bid was removed |
| logNumber | BigInt! | Transaction log number |
| type | EventType! | Event type |
| blockNumber | BigInt! | Transaction block number |
| blockHash | Bytes! | Event block hash |
| txHash | Bytes! | Event transaction hash |
| timeStamp | BigInt! | Transaction timestamp |
| Field | Type | Description |
| ----------- | ---------- | ---------------------------- |
| id | ID! | BidRemoved ID |
| from | Account | Account that removed bid |
| to | Account | Account |
| bid | bid | Punk bid removed |
| amount | BigInt | Bid that was removed, in ETH |
| contract | Contract | Contract metadata |
| nft | NFT | Punk whose bid was removed |
| logNumber | BigInt! | Transaction log number |
| type | EventType! | Event type |
| blockNumber | BigInt! | Transaction block number |
| blockHash | Bytes! | Event block hash |
| txHash | Bytes! | Event transaction hash |
| timeStamp | BigInt! | Transaction timestamp |

## AskRemoved

| Field | Type | Description |
| ----------- | ---------- | -------------------------- |
| id | ID! | AskRemoved ID |
| ask | bid | Punk ask removed |
| from | Account | Account that removed ask |
| to | Account | Account |
| amount | BigInt | Ask in ETH |
| contract | Contract | Contract metadata |
| nft | NFT | Punk whose ask was removed |
| logNumber | BigInt! | Transaction log number |
| type | EventType! | Event type |
| blockNumber | BigInt! | Transaction block number |
| blockHash | Bytes! | Event block hash |
| txHash | Bytes! | Event transaction hash |
| timeStamp | BigInt! | Transaction timestamp |
| Field | Type | Description |
| ----------- | ---------- | ---------------------------- |
| id | ID! | AskRemoved ID |
| ask | bid | Punk ask removed |
| from | Account | Account that removed Ask |
| to | Account | Account |
| amount | BigInt | Ask that was removed, in ETH |
| contract | Contract | Contract metadata |
| nft | NFT | Punk whose ask was removed |
| logNumber | BigInt! | Transaction log number |
| type | EventType! | Event type |
| blockNumber | BigInt! | Transaction block number |
| blockHash | Bytes! | Event block hash |
| txHash | Bytes! | Event transaction hash |
| timeStamp | BigInt! | Transaction timestamp |

## Transfer

Expand All @@ -265,7 +262,7 @@ sidebar_position: 2
| id | ID! | TxHash + logNumber |
| from | Account | Sender |
| to | Account | Receiver |
| owner | String! | New owner of punk |
| owner | String! | New owner of Punk |
| amount | BigInt | Amount of cToken transferred |
| punkId | String | Punk ID |
| referenceId | String! | Field for storing referenceIDs of other events in the same transaction |
Expand All @@ -279,7 +276,7 @@ sidebar_position: 2
| Field | Type | Description |
| ----------- | ---------- | ------------------------- |
| id | ID! | Wrap ID |
| from | Account | Account that wrapped punk |
| from | Account | Account that wrapped Punk |
| to | Account | Receiver |
| amount | BigInt | Punk amount |
| contract | Contract | Contract metadata |
Expand All @@ -296,7 +293,7 @@ sidebar_position: 2
| Field | Type | Description |
| ----------- | ---------- | --------------------------- |
| id | ID! | Wrap ID |
| from | Account | Account that unwrapped punk |
| from | Account | Account that unwrapped Punk |
| to | Account | Receiver |
| amount | BigInt | Punk amount |
| contract | Contract | Contract metadata |
Expand All @@ -312,8 +309,8 @@ sidebar_position: 2

| Field | Type | Description |
| ----------- | -------- | ----------------------------- |
| id | ID! | Contract address of UserProxy |
| user | Account! | Account that owns the proxy |
| id | ID! | Contract Address of UserProxy |
| user | Account! | Account that owns the Proxy |
| blockNumber | BigInt! | Transaction block number |
| blockHash | Bytes! | Event block hash |
| txHash | Bytes! | Event transaction hash |
Expand Down