Skip to content

Commit

Permalink
chore: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
nachomazzara committed Jun 24, 2021
1 parent 4eb69e9 commit ca5ac41
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions indexer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ npm run deploy -- --network mainnet

checkout the docs https://thegraph.com/docs/quick-start


### Queries

The collection's `id` is the smart contract address of the collection.
The item's `id` is `{collection_contract_address}-{item_blochain_id}`. The `item_blockchain_id` is the index of the item in the collection. E.g: if you have a collection with 2 items, the first is `0` and the second one is `1`. Therefore, the id of the first item will be: `{contract_address}-0`

Ethereum addresses should be passed lowercased:

- `0xB549B2442b2BD0a53795BC5cDcBFE0cAF7ACA9f8`
- `0xb549b2442b2bd0a53795bc5cdcbfe0caf7aca9f8`

Expand All @@ -37,7 +37,7 @@ Ethereum addresses should be passed lowercased:
id
}
}

estates(first: 5) {
id
parcels {
Expand All @@ -47,20 +47,20 @@ Ethereum addresses should be passed lowercased:
id
}
}

enss(first: 5) {
id
subdomain
subdomain
owner {
id
}
}
}

wearables(first: 5) {
id
owner {
id
}
}
}
}
```
Expand All @@ -75,7 +75,7 @@ Category could be: `parcel`, `estate`, `ens`, `wearable`
nfts(first: 5) {
id
category
tokenId
tokenId
owner {
id
}
Expand All @@ -96,7 +96,7 @@ Category could be: `parcel`, `estate`, `ens`, `wearable`
status
nft {
id
}
}
}
}
```

0 comments on commit ca5ac41

Please sign in to comment.