What you’ll need
- Basic knowledge of The Graph and subgraphs.
- Your subgraph project files
- The Graph CLI installed
- A Mobula API key (for authentication)
Walkthrough
Prepare Your Subgraph
Make sure your subgraph is set up for Oasis. Modify your
subgraph.yaml file to point to Oasis Emerald specific contracts and events. If you don’t have a subgraph yet, you can clone the Uniswap V2 (YuzuSwap) subgraph template and adjust it for Oasis:Authenticate
When prompted, enter your Mobula API key for authentication. For more information on obtaining and using your API key, refer to the authentication section.
Best Practices
- Keep your subgraph regularly updated to maintain compatibility with the latest Oasis Emerald network changes.
- Thoroughly test your subgraph on a testnet before deploying to the mainnet.
- Continuously monitor your subgraph’s performance and optimize queries for better efficiency.
Troubleshooting
If you encounter issues during deployment:- Carefully review your
subgraph.yamlconfiguration. - Confirm that you’re using the correct network name and Mobula node URLs.
- Make sure your API key is valid and has the required permissions.