tornado-subgraph/subgraphs/tornado-subgraph-xdai.yaml

70 lines
1.9 KiB
YAML
Raw Normal View History

2021-08-17 06:30:46 +03:00
specVersion: 0.0.2
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
schema:
file: ../schema.graphql
dataSources:
- kind: ethereum/contract
name: Echoer
network: xdai
source:
address: "0xEd2B6bf192cFAb45810FC06c5E44e4Df48Eef47d"
abi: Echoer
startBlock: 17626717
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-echo-account.ts
entities:
- NoteAccount
abis:
- name: Echoer
file: ../abis/Echoer.json
eventHandlers:
- event: Echo(indexed address,bytes)
handler: handleEcho
- kind: ethereum/contract
name: Instance-100-xdai
network: xdai
source:
address: "0x980C75f9b2A62d1206C2C146aE4aa1a19E4A21C0"
abi: Instance
startBlock: 17626717
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
- kind: ethereum/contract
name: Proxy
network: xdai
source:
address: "0xa77350E1a72bE5bC7634d359C5011b4E359f4320"
abi: Proxy
startBlock: 17626717
mapping:
kind: ethereum/events
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-encrypted-note.ts
entities:
- EncryptedNote
abis:
- name: Proxy
file: ../abis/Proxy.json
eventHandlers:
- event: EncryptedNote(indexed address,bytes)
handler: handleEncryptedNote