mirror of
https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
synced 2024-07-29 21:57:12 +00:00
1.3 KiB
1.3 KiB
Swap Aggregator Subgraph
Basic subgraph for Swap Aggregator Connector. Tracks all the calls made to the swap method and stores the data which includes:
- connectors: The connector names array passed by the user to perform swaps on any, in preference order.
- callData: Array of call data passed by the user - input details for the respective connectors.
- eventName: "LogSwapAggregator(string[],string,string,bytes)"
- eventParam: Encoded data including connectors array, connector name where swap took place, eventName and eventParams returned by the connector where swap occured.
Support added for Mainnet and Matic
- Mainnet: Swap Aggregator Subgraph
- Polygon: Swap Aggregator Subgraph
Query
{ swapAggregatorDatas { id connectors callData eventName eventParams transactionDetail { hash from to input value index blockNumber timestamp gasUsed gasLimit gasPrice } } }