From 21ac8dd4664f230815ef4aa683ca61081ff8490b Mon Sep 17 00:00:00 2001 From: nikdementev Date: Wed, 9 Jun 2021 17:28:06 +0300 Subject: [PATCH] fix: update --- .gitignore | 4 ++-- subgraphs/instance-tornado-subgraph.yaml | 29 ++++++++++++++++++++++++ subgraphs/proxy-tornado-subgraph.yaml | 26 +++++++++++++++++++++ 3 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 subgraphs/instance-tornado-subgraph.yaml create mode 100644 subgraphs/proxy-tornado-subgraph.yaml diff --git a/.gitignore b/.gitignore index 0f8b703..39cc42f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ node_modules -build -generated +build/**/* +generated/**/* diff --git a/subgraphs/instance-tornado-subgraph.yaml b/subgraphs/instance-tornado-subgraph.yaml new file mode 100644 index 0000000..4330534 --- /dev/null +++ b/subgraphs/instance-tornado-subgraph.yaml @@ -0,0 +1,29 @@ + 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 diff --git a/subgraphs/proxy-tornado-subgraph.yaml b/subgraphs/proxy-tornado-subgraph.yaml new file mode 100644 index 0000000..b7c4310 --- /dev/null +++ b/subgraphs/proxy-tornado-subgraph.yaml @@ -0,0 +1,26 @@ + specVersion: 0.0.2 + description: Proxy + repository: https://github.com/Synthetixio/synthetix-subgraph + schema: + file: ../schema.graphql + dataSources: + - kind: ethereum/contract + name: Proxy + network: bsc + source: + address: '0x5D595DB16eb6d074E0e7E7f0bE37E7e75f23BEc7' + abi: Proxy + startBlock: 7941563 + 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