Swap-Aggregator-Subgraph/subgraph.yaml
Richa-iitr d211083153 Revert "Revert "added handler""
This reverts commit c36ee8c5ca.
2022-07-03 07:30:05 +05:30

25 lines
654 B
YAML

specVersion: 0.0.5
schema:
file: ./schema.graphql
dataSources:
- kind: ethereum
name: SwapAggregator
network: matic
source:
abi: ConnectV2SwapAggregator
address: "0x403e1559ef503C12CF2ec8E07dBC592Ff298EEc3"
startBlock: 29593000
mapping:
kind: ethereum/events
apiVersion: 0.0.5
language: wasm/assemblyscript
entities:
- SwapAggregatorData
abis:
- name: ConnectV2SwapAggregator
file: ./abis/ConnectV2SwapAggregator.json
callHandlers:
- function: swap(string[],bytes[])
handler: handleSwap
file: ./src/connect-v-2-swap-aggregator.ts