https://github.com/0chain/dex_subgraph
A subgraph for DEX core smart contracts.
https://github.com/0chain/dex_subgraph
defi ethereum
Last synced: 5 months ago
JSON representation
A subgraph for DEX core smart contracts.
- Host: GitHub
- URL: https://github.com/0chain/dex_subgraph
- Owner: 0chain
- License: other
- Created: 2023-02-12T11:57:50.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-09-10T06:55:42.000Z (almost 2 years ago)
- Last Synced: 2024-09-10T09:12:22.991Z (almost 2 years ago)
- Topics: defi, ethereum
- Language: TypeScript
- Homepage:
- Size: 519 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# DEX subgraph
Subgraph, which allows to index chosen **Ethereum** network and provide queries to retreive data.
**This subgraph is supposed to be used in CI workflows with Linux environment.**
## Setup
Installation process is performed using GNU Make project building system.
Depending on the network you want to deploy DEX core smart contracts to you should select proper GNU Make target parameters.
| Name | Description | Possible value |
-------| --------------| ------------- |
network | network where the tracked smart contract is deployed | mumbai(default), mainnet |
smart_contract_address | ddress of the smart contract, which will be tracked | 0xa358ADf3864Ea36EdeccB9d4c46EEeb9C02C1ed9 |
ethereum_node_url | URL of the ethereum JSON-RPC node | https://mainnet.infura.io/v3/6852119f9d84410e8039e00faf4928f7 |
graph_deploy | URL of the deployed JSON-RPC admin server of the graph node instance | https://graphnode.test.network/ |
graph_index | URL of the status GraphQL server of the deployed graph node instance | https://graphnode.test.network/status/ |
```shell
make deploy
network=mainnet
smart_contract_address=0xa358ADf3864Ea36EdeccB9d4c46EEeb9C02C1ed9
ethereum_node_url=https://mainnet.infura.io/v3/6852119f9d84410e8039e00faf4928f7
graph_deploy=https://graphnode.test.network/
graph_index=https://graphnode.test.network/status/
```