Skip to content

Subquery indexer#22

Merged
ETeissonniere merged 21 commits intomainfrom
subquery-indexer
Apr 5, 2024
Merged

Subquery indexer#22
ETeissonniere merged 21 commits intomainfrom
subquery-indexer

Conversation

@Douglasacost
Copy link
Copy Markdown
Collaborator

Port previous graph indexing schemas to subquery

Copy link
Copy Markdown
Member

@ETeissonniere ETeissonniere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Douglas! I have requested some changes, additionally, shall we remove the graph folder?

Comment on lines +5 to +11
## Start

First, install SubQuery CLI globally on your terminal by using NPM `npm install -g @subql/cli`

You can either clone this GitHub repo, or use the `subql` CLI to bootstrap a clean project in the network of your choosing by running `subql init` and following the prompts.

Don't forget to install dependencies with `npm install` or `yarn install`!
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add the SubQL CLI to the devcontainer and remove graph's?

.gitignore Outdated
subquery/dist/
subquery/.data/
subquery/**/types/
contracts/
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we need to gitignore this one

},
network: {
chainId: "270", // private network
endpoint: ["https://rpc-iu435q.nodleprotocol.io"],
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not deployed on the public testnet! Check RPCs here: https://www.notion.so/nodle/ZkSync-Public-Deployments-2c1309f63072424794ad2999bf7ff1c8?pm=c

// Must be a key of assets
abi: "erc721",
// This is the contract address for wrapped ether https://explorer.zksync.io/address/0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4
address: "0xf98633dd7a7af38a3da2c7fc34f1a7a3a14a26b9",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator Author

@Douglasacost Douglasacost Apr 1, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once merged will update the values. This is currently pointing to the private ContentSign contract
Just done

Comment on lines +94 to +99
options: {
// Must be a key of assets
abi: "AccessControl",
// This is the contract address for wrapped ether https://explorer.zksync.io/address/0x3355df6D4c9C3035724Fd0e3914dE96A5a83aaf4
address: "0x27d45764490b8C4135d1EC70130163791BDE6db5",
},
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AccessControl was deprecated to the profit of the WhitelistPaymaster built in's whitelist. Can we adjust this?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, @ETeissonniere could we store the ABI's somewhere?

Also, this means is not required to index every user role, thus removing this mapping from the code is Ok?
Saw AccessControl is used but only for admin roles 👍

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it is fine to remove for now!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ABI wise... would a github release work for you?

@ETeissonniere ETeissonniere enabled auto-merge (squash) April 5, 2024 19:01
@ETeissonniere ETeissonniere merged commit 714a5c2 into main Apr 5, 2024
@ETeissonniere ETeissonniere deleted the subquery-indexer branch April 5, 2024 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants