From 112e26d0e77fa55519166c4f143381e5b794d5ed Mon Sep 17 00:00:00 2001 From: nikdementev Date: Wed, 9 Jun 2021 17:24:07 +0300 Subject: [PATCH] feat: build for instance & proxy --- build/Instance/Instance.wasm | Bin 11302 -> 11347 bytes build/Proxy/Proxy.wasm | Bin 7635 -> 7656 bytes build/subgraph.yaml | 48 ++++------------------------------- package.json | 6 +++-- 4 files changed, 9 insertions(+), 45 deletions(-) diff --git a/build/Instance/Instance.wasm b/build/Instance/Instance.wasm index df6cec3ca6f7bf97904f6483e25d238aade7d219..bc17bccf0bfaba1203e81a60aa1e1b2c033baa6a 100644 GIT binary patch delta 225 zcmZ1$aXDf`mjvVf$=wpyc?}r!7z`P78Il-^8Im{WOR6(->5DNi07dl}^f%9vS;NHH zD#enQn48M@ceB5|3Olowp5EjDE!oWz)Vdg%HNhN3uEgB@(!3HaZ3ve)xwNP#H7~hR z+g49ce{!ydHH!s=p+EVC##Uwxh_cD+G})N-AZ-4moc!c$ztY^K)FLAtu$aou$y zO@XBT~cLBz8n|}y2F>&dOF)%Rb0ipipI^iRXobv=(@)C1X8K-Ub7Oi7t(bdz_ u-+W3+h>^t#$eMgtx`xF8!qA!ACey&82I8EOlIJW=EK5}~1o3oamjeJYTOK(8 delta 73 zcmaE1ec5`$cLBx|n|}y2F|lY0Gcas!5kA7m*)PbFmzbN%*uFVXw2qZgYqF%Q{Nztk dpBc?3zm%?Fw4IzOvxZR_D5}D!H`!5kIRMG97<>Q# diff --git a/build/subgraph.yaml b/build/subgraph.yaml index 71d5223..c8ae49d 100644 --- a/build/subgraph.yaml +++ b/build/subgraph.yaml @@ -1,67 +1,29 @@ specVersion: 0.0.2 +description: Instance +repository: https://github.com/tornadocash/tornado-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 - entities: - - EncryptedNote - abis: - - name: Proxy - file: Proxy/abis/Proxy.json - eventHandlers: - - event: EncryptedNote(indexed address,bytes) - handler: handleEncryptedNote - file: Proxy/Proxy.wasm - - kind: ethereum/contract - name: Echoer - network: bsc - source: - address: "0x60eaCBd5535ADB86955A0154E44Aded78F161643" - abi: Echoer - startBlock: 7941563 - mapping: - kind: ethereum/events - apiVersion: 0.0.4 - language: wasm/assemblyscript - entities: - - NoteAccount - abis: - - name: Echoer - file: Echoer/abis/Echoer.json - eventHandlers: - - event: Echo(indexed address,bytes) - handler: handleEcho - file: Echoer/Echoer.wasm - kind: ethereum/contract name: Instance network: bsc source: address: "0x0Ce22770451A8acAD1220D9d1678656b4fAe4a1d" abi: Instance - startBlock: 7941563 + startBlock: 7942402 mapping: kind: ethereum/events apiVersion: 0.0.4 language: wasm/assemblyscript + file: Instance/Instance.wasm entities: - Deposit - Withdrawal abis: - name: Instance - file: Instance/abis/Instance.json + file: abis/Instance.json eventHandlers: - event: Deposit(indexed bytes32,uint32,uint256) handler: handleDeposit - event: Withdrawal(address,bytes32,indexed address,uint256) handler: handleWithdrawal - file: Instance/Instance.wasm diff --git a/package.json b/package.json index 8a22887..7f79a3d 100644 --- a/package.json +++ b/package.json @@ -2,12 +2,14 @@ "name": "sub-graph-proxy", "license": "UNLICENSED", "scripts": { - "codegen": "graph codegen", - "build": "graph build", "yaml:proxy": "node ./create-yaml-file create-yaml -s proxy -e bsc | mustache - mustache/yaml.mustache > subgraphs/proxy-tornado-subgraph.yaml", "yaml:instance": "node ./create-yaml-file create-yaml -s instance -e bsc | mustache - mustache/yaml.mustache > subgraphs/instance-tornado-subgraph.yaml", + "codegen": "graph codegen", "codegen:proxy": "yarn yaml:proxy && yarn codegen -- subgraphs/proxy-tornado-subgraph.yaml", "codegen:instance": "yarn yaml:instance && yarn codegen -- subgraphs/instance-tornado-subgraph.yaml", + "build": "graph build", + "build:proxy": "graph build subgraphs/proxy-tornado-subgraph.yaml", + "build:instance": "graph build subgraphs/instance-tornado-subgraph.yaml", "deploy": "graph deploy --node https://api.thegraph.com/deploy/ --ipfs https://api.thegraph.com/ipfs/ tornadocash/bsc-tornado-subgraph" }, "dependencies": {