Skip to content

Commit 714a5c2

Browse files
Subquery indexer (#22)
* Add new files and implement mapping handlers * Add ERC721 mappings and access control * Update Gitignore and ERC721 mapping*** * Add contracts and update dependencies * Add unsafe option to node runner and update dependencies * Reduce readme file * remove starter code references * Remove unused files and directories * Update subquery/project.ts Co-authored-by: Eliott Teissonniere <10683430+ETeissonniere@users.noreply.github.com> * Delete the graph references * Update README.md with subquery information * Remove 'contracts' from .gitignore * Remove subquery generated project.yaml file * Update project.ts with new chainId and endpoint * Add subquery files to .gitignore * remove unused abi * update project conf * Update .gitignore and package.json, remove unused files * add compatibility with node-fetch * Refactor ERC721 mapping and update contract retrieval --------- Co-authored-by: Eliott Teissonniere <10683430+ETeissonniere@users.noreply.github.com>
1 parent 01577c0 commit 714a5c2

32 files changed

+32002
-2859
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,9 @@ docs/
1515

1616
# Dotenv file
1717
.env
18+
19+
# Subquery files
20+
subquery/dist/
21+
subquery/.data/
22+
subquery/**/types/
23+
subquery/project.yaml

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,17 @@
22
![Banner](https://github.com/NodleCode/rollup/assets/10683430/b50803ff-41d1-4faa-99eb-72c9eeaf3194)
33

44
# Development setup
5-
> We recommend you run within the provided [devcontainer](https://code.visualstudio.com/remote/advancedcontainers/overview) to ensure you have all the necessary tooling installed such `graph`, `zksync-cli`, and `forge`.
5+
> We recommend you run within the provided [devcontainer](https://code.visualstudio.com/remote/advancedcontainers/overview) to ensure you have all the necessary tooling installed such `zksync-cli`, and `forge`.
6+
7+
For subquery utilization refer to [Nodle-zksync-subquery](/subquery/README.md)
68

79
## Repo organization
810
- `./` contains foundry contracts for Nodle and Click on ZkSync:
911
- `./lib` contains libraries we depend on.
1012
- `./src` contains contract sources.
1113
- `./scripts` contains deployment scripts.
1214
- `./test` contains unit tests.
13-
- `./graph` contains a custom SubGraph for this project.
15+
- `./subquery` contains a custom subquery for this project.
1416
- ...more to come
1517

1618
# Usage

graph/.gitignore

Lines changed: 0 additions & 4 deletions
This file was deleted.

graph/README.md

Lines changed: 0 additions & 28 deletions
This file was deleted.

graph/config.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

graph/package.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

graph/prepare.js

Lines changed: 0 additions & 43 deletions
This file was deleted.

graph/prepare.sh

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)