tornado-subgraph/subgraphs/instance-tornado-subgraph.yaml
2021-06-10 12:47:29 +03:00

30 lines
828 B
YAML

specVersion: 0.0.2
description: Instance
repository: https://github.com/tornadocash/tornado-subgraph
schema:
file: ../schema.graphql
dataSources:
- kind: ethereum/contract
name: Instance
network: bsc
source:
address: '0x0Ce22770451A8acAD1220D9d1678656b4fAe4a1d'
abi: Instance
startBlock: 7942402
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
- Deposit
- Withdrawal
abis:
- name: Instance
file: ../abis/Instance.json
eventHandlers:
- event: Deposit(indexed bytes32,uint32,uint256)
handler: handleDeposit
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal