Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Genesis3800 authored May 11, 2023
1 parent b81648d commit 0b8fb15
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ type Property @entity {
mouth: String
}
```
We define 3 entities in the schema file:
1. The Transfer entity keeps a record of all the transactions that involved the transfer of a bored ape NFT.
2. The BoredApe entity keeps a record of all the bored ape NFTs themselves. We record the original owner and the current owner amongst other data points. Please note that some fields like the current owner will keep on changing everytime the NFT is transferred.
3. The Property entity stores the metatadata for each Ape.
## subgraph.yaml
Expand Down Expand Up @@ -114,6 +119,7 @@ dataSources:
handler: handleTransfer
file: ./src/bored-ape-yacht-club.ts
```
The YAML file is a collection of nested key value pairs that keeps a store of some crucial metadata about our subgraph. It is important to keep it updated.

## Mapping functions to schemas

Expand Down Expand Up @@ -268,5 +274,3 @@ const ipfshash = "QmeSjSinHpPnmXmspMjwiXyN6zS4E9zccariGR3jxcaWtq"

property.save();
```


0 comments on commit 0b8fb15

Please sign in to comment.