Subgraph for Swap Aggregator Connector.
Go to file
2022-07-09 18:26:43 +05:30
abis Initial commit 2022-07-03 06:23:42 +05:30
src Revert "Revert "added handler"" 2022-07-03 07:30:05 +05:30
.gitignore modified 2022-07-03 07:32:16 +05:30
networks.json Revert "Revert "added handler"" 2022-07-03 07:30:05 +05:30
package.json Initial commit 2022-07-03 06:23:42 +05:30
README.md Update README.md 2022-07-09 18:26:43 +05:30
schema.graphql Revert "Revert "added handler"" 2022-07-03 07:30:05 +05:30
subgraph.yaml Revert "Revert "added handler"" 2022-07-03 07:30:05 +05:30
tsconfig.json Initial commit 2022-07-03 06:23:42 +05:30
yarn.lock Revert "Revert "added handler"" 2022-07-03 07:30:05 +05:30

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

Query

{
  swapAggregatorDatas {
    id
    connectors
    callData
    eventName
    eventParams
    transactionDetail {
      hash
      from
      to
      input
      value
      index
      blockNumber
      timestamp
      gasUsed
      gasLimit
      gasPrice
    }
  }
}