ParaSwap aggregates decentralized exchanges and other DeFi services in one comprehensive interface to streamline and facilitate users' interactions with decentralized finance.
To read more about Paraswap, visit the official documentaion page here.
This subgraph dynamically tracks all the transactions (swaps) made via Paraswap on the Ethereum (mainnet) chain. This subgraph supports Paraswap v0.1.0 to the latest v5 release.
You can query the subgraph via GraphQL from the legacy explorer here.
-
Have a local graph-node setup. Please visit https://github.com/graphprotocol/graph-node for more instructions.
-
Start the local graph-node using the instructions. Replace the
[url]
segment of the cargo command with your RPC provider's url with the network prefix. Example (for mainnet):cargo run -p graph-node --release -- \ --postgres-url postgresql://USERNAME[:PASSWORD]@localhost:5432/graph-node \ --ethereum-rpc mainnet:<URL> \ --ipfs 127.0.0.1:5001
- Clone the subgraph, and run
yarn codegen
to generate the required schema and TS files. - Run
yarn build
to generate the build files to be deployed. - Run
yarn create-local
followed byyarn deploy-local
to deploy the subgraph to the local graph-node. - If you wish to remove the local deployed graph, run
yarn remove-local
. - To redploy, follow steps 2 and 3 again.
Checkout package.json to check the corresponding yarn commands.