Compare commits

..

No commits in common. "master" and "master" have entirely different histories.

26 changed files with 2345 additions and 4558 deletions

21
LICENSE
View File

@ -1,21 +0,0 @@
MIT License
Copyright (c) 2025 Tornado Cash
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -153,57 +153,37 @@ ingestor = "primary_node"
[chains.mainnet]
shard = "primary"
provider = [
{ label = "mainnet", transport = "rpc", url = "https://mainnet.chainnodes.org/${API_KEY}", features = [] }
{ label = "mainnet", transport = "rpc", url = "https://mainnet.chainnodes.org/${API_KEY}", features = ["traces", "archive"] }
]
[chains.matic]
shard = "primary"
provider = [
{ label = "matic", transport = "rpc", url = "https://polygon-mainnet.chainnodes.org/${API_KEY}", features = [] }
{ label = "matic", transport = "rpc", url = "https://polygon-mainnet.chainnodes.org/${API_KEY}", features = ["traces", "archive"] }
]
[chains.bsc]
shard = "primary"
provider = [
{ label = "bsc", transport = "rpc", url = "https://bsc-mainnet.chainnodes.org/${API_KEY}", features = [] }
{ label = "bsc", transport = "rpc", url = "https://bsc-mainnet.chainnodes.org/${API_KEY}", features = ["traces", "archive"] }
]
[chains.xdai]
shard = "primary"
provider = [
{ label = "xdai", transport = "rpc", url = "https://gnosis-mainnet.chainnodes.org/${API_KEY}", features = [] }
{ label = "xdai", transport = "rpc", url = "https://gnosis-mainnet.chainnodes.org/${API_KEY}", features = ["traces", "archive"] }
]
[chains.goerli]
shard = "primary"
provider = [
{ label = "goerli", transport = "rpc", url = "https://goerli.chainnodes.org/${API_KEY}", features = ["traces", "archive"] }
]
[chains.arbitrum-one]
shard = "primary"
provider = [
{ label = "arbitrum-one", transport = "rpc", url = "https://arbitrum-one.chainnodes.org/${API_KEY}", features = [] }
{ label = "arbitrum-one", transport = "rpc", url = "https://arbitrum-one.chainnodes.org/${API_KEY}", features = ["traces", "archive"] }
]
[chains.optimism]
shard = "primary"
provider = [
{ label = "optimism", transport = "rpc", url = "https://optimism-mainnet.chainnodes.org/${API_KEY}", features = [] }
]
[chains.sepolia]
shard = "primary"
provider = [
{ label = "sepolia", transport = "rpc", url = "https://sepolia.chainnodes.org/${API_KEY}", features = [] }
]
[chains.base]
shard = "primary"
provider = [
{ label = "base", transport = "rpc", url = "https://base-mainnet.chainnodes.org/${API_KEY}", features = [] }
]
[chains.blast]
shard = "primary"
provider = [
{ label = "blast", transport = "rpc", url = "https://blast-rpc-here", features = [] }
]
[chains.etc]
shard = "primary"
provider = [
{ label = "etc", transport = "rpc", url = "https://etc-rpc-here", features = [] }
]
[chains.mordor]
shard = "primary"
provider = [
{ label = "mordor", transport = "rpc", url = "https://mordor-rpc-here", features = [] }
{ label = "optimism", transport = "rpc", url = "https://optimism-mainnet.chainnodes.org/${API_KEY}", features = ["traces", "archive"] }
]
[deployment]
@ -215,7 +195,7 @@ indexers = [
]
```
Note that chains are optional and you only need to provide necessary chains and it's RPC urls for the specific network's subgraph.
If Avalanche support is needed, extend the above config accordingly and make sure to use an RPC link for Avalanche.
Double check everything and deploy with `docker compose up -d`.

View File

@ -1,7 +1,7 @@
'use strict';
const path = require('path');
const { program } = require('commander');
const program = require('commander');
program
.command('create-yaml')

View File

@ -1,12 +1,12 @@
module.exports = {
yaml: [
{
specVersion: '1.3.0',
specVersion: '0.0.2',
repository: 'https://github.com/tornadocash/tornado-subgraph',
dataSourceKind: 'ethereum/contract',
mapping: {
kind: 'ethereum/events',
version: '0.0.9',
version: '0.0.4',
language: 'wasm/assemblyscript',
},
},

View File

@ -53,30 +53,6 @@ const contracts = [
name: 'Echoer',
address: '0xcDD1fc3F5ac2782D83449d3AbE80D6b7B273B0e5',
},
{
prod: 23149794,
network: 'base',
name: 'Echoer',
address: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4',
},
{
prod: 12144065,
network: 'blast',
name: 'Echoer',
address: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4',
},
{
prod: 22412211,
network: 'etc',
name: 'Echoer',
address: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4',
},
{
prod: 13890096,
network: 'mordor',
name: 'Echoer',
address: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4',
},
];
module.exports = contracts;

View File

@ -8,10 +8,6 @@ const deployedBlocks = {
arbitrum: 3430648,
avalanche: 4429818,
sepolia: 5594395,
base: 23149794,
blast: 12144065,
etc: 22412211,
mordor: 13890096,
};
const contracts = [
@ -567,262 +563,6 @@ const contracts = [
name: 'Instance',
address: '0x73B4BD04bF83206B6e979BE2507098F92EDf4F90',
},
{
prod: deployedBlocks.base,
amount: '0.001',
network: 'base',
currency: 'eth',
name: 'Instance',
address: '0x82859DC3697062c16422E9b5e8Ba1B6a6EC72c76',
},
{
prod: deployedBlocks.base,
amount: '0.01',
network: 'base',
currency: 'eth',
name: 'Instance',
address: '0xA287c40411685438750a247Ca67488DEBe56EE32',
},
{
prod: deployedBlocks.base,
amount: '0.1',
network: 'base',
currency: 'eth',
name: 'Instance',
address: '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F',
},
{
prod: deployedBlocks.base,
amount: '1',
network: 'base',
currency: 'eth',
name: 'Instance',
address: '0xd47438C816c9E7f2E2888E060936a499Af9582b3',
},
{
prod: deployedBlocks.base,
amount: '10',
network: 'base',
currency: 'eth',
name: 'Instance',
address: '0x330bdFADE01eE9bF63C209Ee33102DD334618e0a',
},
{
prod: deployedBlocks.base,
amount: '100',
network: 'base',
currency: 'eth',
name: 'Instance',
address: '0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD',
},
{
prod: deployedBlocks.base,
amount: '10',
network: 'base',
currency: 'dai',
name: 'Instance',
address: '0x70CC374aE7D1549a4666b7172B78dDCF672B74f7',
},
{
prod: deployedBlocks.base,
amount: '100',
network: 'base',
currency: 'dai',
name: 'Instance',
address: '0xD063894588177B8362Dda6C0A7EF09BF6fDF851c',
},
{
prod: deployedBlocks.base,
amount: '1000',
network: 'base',
currency: 'dai',
name: 'Instance',
address: '0xa7513fdfF61fc83a9C5c08CE31266e6dd400C54E',
},
{
prod: deployedBlocks.base,
amount: '10000',
network: 'base',
currency: 'dai',
name: 'Instance',
address: '0x8f05eDE57098D843F30bE74AC25c292F87b7f775',
},
{
prod: deployedBlocks.base,
amount: '100000',
network: 'base',
currency: 'dai',
name: 'Instance',
address: '0xeB7fc86c32e9a5E9DD2a0a78C091b8b625cbee24',
},
{
prod: deployedBlocks.base,
amount: '0.0001',
network: 'base',
currency: 'tbtc',
name: 'Instance',
address: '0x5465800D7Be34dAe2c1572d2227De94dE93B4432',
},
{
prod: deployedBlocks.base,
amount: '0.001',
network: 'base',
currency: 'tbtc',
name: 'Instance',
address: '0xf2d3404c03C8cC0b120bd6E8edD6F69226F03c6d',
},
{
prod: deployedBlocks.base,
amount: '0.01',
network: 'base',
currency: 'tbtc',
name: 'Instance',
address: '0x4261d5209A285410DEa8173B6FE1A0e7BCf20f7c',
},
{
prod: deployedBlocks.base,
amount: '0.1',
network: 'base',
currency: 'tbtc',
name: 'Instance',
address: '0x9FB147F49bFE17D19789547187EAE2406590b217',
},
{
prod: deployedBlocks.base,
amount: '1',
network: 'base',
currency: 'tbtc',
name: 'Instance',
address: '0x2A8515F39716B0C160a3eB32D24E4cbeB76932d2',
},
{
prod: deployedBlocks.blast,
amount: '0.001',
network: 'blast',
currency: 'eth',
name: 'Instance',
address: '0x82859DC3697062c16422E9b5e8Ba1B6a6EC72c76',
},
{
prod: deployedBlocks.blast,
amount: '0.01',
network: 'blast',
currency: 'eth',
name: 'Instance',
address: '0xA287c40411685438750a247Ca67488DEBe56EE32',
},
{
prod: deployedBlocks.blast,
amount: '0.1',
network: 'blast',
currency: 'eth',
name: 'Instance',
address: '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F',
},
{
prod: deployedBlocks.blast,
amount: '1',
network: 'blast',
currency: 'eth',
name: 'Instance',
address: '0xd47438C816c9E7f2E2888E060936a499Af9582b3',
},
{
prod: deployedBlocks.blast,
amount: '10',
network: 'blast',
currency: 'eth',
name: 'Instance',
address: '0x330bdFADE01eE9bF63C209Ee33102DD334618e0a',
},
{
prod: deployedBlocks.blast,
amount: '100',
network: 'blast',
currency: 'eth',
name: 'Instance',
address: '0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD',
},
{
prod: deployedBlocks.etc,
amount: '0.1',
network: 'etc',
currency: 'etc',
name: 'Instance',
address: '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F',
},
{
prod: deployedBlocks.etc,
amount: '1',
network: 'etc',
currency: 'etc',
name: 'Instance',
address: '0xd47438C816c9E7f2E2888E060936a499Af9582b3',
},
{
prod: deployedBlocks.etc,
amount: '10',
network: 'etc',
currency: 'etc',
name: 'Instance',
address: '0x330bdFADE01eE9bF63C209Ee33102DD334618e0a',
},
{
prod: deployedBlocks.etc,
amount: '100',
network: 'etc',
currency: 'etc',
name: 'Instance',
address: '0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD',
},
{
prod: deployedBlocks.etc,
amount: '1000',
network: 'etc',
currency: 'etc',
name: 'Instance',
address: '0xdf231d99Ff8b6c6CBF4E9B9a945CBAcEF9339178',
},
{
prod: deployedBlocks.mordor,
amount: '0.1',
network: 'mordor',
currency: 'etc',
name: 'Instance',
address: '0x84443CFd09A48AF6eF360C6976C5392aC5023a1F',
},
{
prod: deployedBlocks.mordor,
amount: '1',
network: 'mordor',
currency: 'etc',
name: 'Instance',
address: '0xd47438C816c9E7f2E2888E060936a499Af9582b3',
},
{
prod: deployedBlocks.mordor,
amount: '10',
network: 'mordor',
currency: 'etc',
name: 'Instance',
address: '0x330bdFADE01eE9bF63C209Ee33102DD334618e0a',
},
{
prod: deployedBlocks.mordor,
amount: '100',
network: 'mordor',
currency: 'etc',
name: 'Instance',
address: '0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD',
},
{
prod: deployedBlocks.mordor,
amount: '1000',
network: 'mordor',
currency: 'etc',
name: 'Instance',
address: '0xdf231d99Ff8b6c6CBF4E9B9a945CBAcEF9339178',
},
];
module.exports = contracts;

View File

@ -6,7 +6,7 @@ const Contracts = require('./contracts');
module.exports = {
createYaml: (env) => {
const createInstanceBlock = ({ name, amount, currency, network, startBlocks, address }) => ({
name: `${name}-${network}-${amount}-${currency}`,
name: `${name}-${amount}-${currency}`,
network,
mappingFile: '../src/mapping-instance.ts',
startBlock: startBlocks.prod,
@ -43,7 +43,7 @@ module.exports = {
contractsToInstancesContent += `contractsToInstances.set("${address.toLowerCase()}_${network}",${space}//${space}${name}-${currency}-${amount}${newLine}${doubleSpace}"${currency}${'-'}${amount}"${newLine});${newLine}`;
}
if (network === env && reExportContent === '') {
reExportContent += `${readOnlyComment}${newLine}export * from "./${name}-${network}-${amount}-${currency}/Instance";${newLine}`;
reExportContent += `${readOnlyComment}${newLine}export * from "./${name}-${amount}-${currency}/Instance";${newLine}`;
}
});

View File

@ -65,30 +65,6 @@ const contracts = [
network: 'sepolia',
address: '0x1572AFE6949fdF51Cb3E0856216670ae9Ee160Ee',
},
{
prod: 23149794,
name: 'Proxy',
network: 'base',
address: '0x0D5550d52428E7e3175bfc9550207e4ad3859b17',
},
{
prod: 12144065,
name: 'Proxy',
network: 'blast',
address: '0x0D5550d52428E7e3175bfc9550207e4ad3859b17',
},
{
prod: 22412211,
name: 'Proxy',
network: 'etc',
address: '0x0D5550d52428E7e3175bfc9550207e4ad3859b17',
},
{
prod: 13890096,
name: 'Proxy',
network: 'mordor',
address: '0x0D5550d52428E7e3175bfc9550207e4ad3859b17',
},
];
module.exports = contracts;

View File

@ -2,8 +2,6 @@
specVersion: {{specVersion}}
description: {{description}}
repository: {{&repository}}
indexerHints:
prune: auto
schema:
file: {{&schemaFile}}
dataSources:

View File

@ -1,107 +1,85 @@
{
"name": "tornado-subgraph",
"private": true,
"version": "1.0.0",
"description": "Tornado Cash Classic Contracts Subgraph",
"author": "Tornado Cash",
"license": "MIT",
"name": "sub-graph-proxy",
"license": "UNLICENSED",
"scripts": {
"lint": "eslint .",
"generate": "yarn generate-bsc && yarn generate-xdai && yarn generate-matic && yarn generate-mainnet && yarn generate-avalanche && yarn generate-arbitrum && yarn generate-optimism && yarn generate-sepolia && yarn generate-base && yarn generate-blast && yarn generate-etc && yarn generate-mordor",
"generate": "yarn generate-bsc && yarn generate-xdai && yarn generate-matic && yarn generate-mainnet && yarn generate-goerli && yarn generate-avalanche && yarn generate-arbitrum && yarn generate-optimism && yarn generate-sepolia",
"generate-bsc": "yarn codegen:tornado-bsc && yarn build:tornado-bsc",
"generate-xdai": "yarn codegen:tornado-xdai && yarn build:tornado-xdai",
"generate-matic": "yarn codegen:tornado-matic && yarn build:tornado-matic",
"generate-mainnet": "yarn codegen:tornado-mainnet && yarn build:tornado-mainnet",
"generate-goerli": "yarn codegen:tornado-goerli && yarn build:tornado-goerli",
"generate-avalanche": "yarn codegen:tornado-avalanche && yarn build:tornado-avalanche",
"generate-arbitrum": "yarn codegen:tornado-arbitrum && yarn build:tornado-arbitrum",
"generate-optimism": "yarn codegen:tornado-optimism && yarn build:tornado-optimism",
"generate-sepolia": "yarn codegen:tornado-sepolia && yarn build:tornado-sepolia",
"generate-base": "yarn codegen:tornado-base && yarn build:tornado-base",
"generate-blast": "yarn codegen:tornado-blast && yarn build:tornado-blast",
"generate-etc": "yarn codegen:tornado-etc && yarn build:tornado-etc",
"generate-mordor": "yarn codegen:tornado-mordor && yarn build:tornado-mordor",
"yaml:tornado-bsc": "node ./create-yaml-file create-yaml -e bsc | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-bsc.yaml",
"yaml:tornado-xdai": "node ./create-yaml-file create-yaml -e xdai | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-xdai.yaml",
"yaml:tornado-matic": "node ./create-yaml-file create-yaml -e matic | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-matic.yaml",
"yaml:tornado-mainnet": "node ./create-yaml-file create-yaml -e mainnet | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-mainnet.yaml",
"yaml:tornado-goerli": "node ./create-yaml-file create-yaml -e goerli | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-goerli.yaml",
"yaml:tornado-avalanche": "node ./create-yaml-file create-yaml -e avalanche | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-avalanche.yaml",
"yaml:tornado-arbitrum": "node ./create-yaml-file create-yaml -e arbitrum-one | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-arbitrum.yaml",
"yaml:tornado-optimism": "node ./create-yaml-file create-yaml -e optimism | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-optimism.yaml",
"yaml:tornado-sepolia": "node ./create-yaml-file create-yaml -e sepolia | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-sepolia.yaml",
"yaml:tornado-base": "node ./create-yaml-file create-yaml -e base | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-base.yaml",
"yaml:tornado-blast": "node ./create-yaml-file create-yaml -e blast | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-blast.yaml",
"yaml:tornado-etc": "node ./create-yaml-file create-yaml -e etc | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-etc.yaml",
"yaml:tornado-mordor": "node ./create-yaml-file create-yaml -e mordor | mustache - mustache/yaml.mustache > subgraphs/tornado-subgraph-mordor.yaml",
"codegen": "graph codegen",
"codegen:tornado-bsc": "yarn yaml:tornado-bsc && yarn codegen -- subgraphs/tornado-subgraph-bsc.yaml",
"codegen:tornado-xdai": "yarn yaml:tornado-xdai && yarn codegen -- subgraphs/tornado-subgraph-xdai.yaml",
"codegen:tornado-matic": "yarn yaml:tornado-matic && yarn codegen -- subgraphs/tornado-subgraph-matic.yaml",
"codegen:tornado-mainnet": "yarn yaml:tornado-mainnet && yarn codegen -- subgraphs/tornado-subgraph-mainnet.yaml",
"codegen:tornado-goerli": "yarn yaml:tornado-goerli && yarn codegen -- subgraphs/tornado-subgraph-goerli.yaml",
"codegen:tornado-avalanche": "yarn yaml:tornado-avalanche && yarn codegen -- subgraphs/tornado-subgraph-avalanche.yaml",
"codegen:tornado-arbitrum": "yarn yaml:tornado-arbitrum && yarn codegen -- subgraphs/tornado-subgraph-arbitrum.yaml",
"codegen:tornado-optimism": "yarn yaml:tornado-optimism && yarn codegen -- subgraphs/tornado-subgraph-optimism.yaml",
"codegen:tornado-sepolia": "yarn yaml:tornado-sepolia && yarn codegen -- subgraphs/tornado-subgraph-sepolia.yaml",
"codegen:tornado-base": "yarn yaml:tornado-base && yarn codegen -- subgraphs/tornado-subgraph-base.yaml",
"codegen:tornado-blast": "yarn yaml:tornado-blast && yarn codegen -- subgraphs/tornado-subgraph-blast.yaml",
"codegen:tornado-etc": "yarn yaml:tornado-etc && yarn codegen -- subgraphs/tornado-subgraph-etc.yaml",
"codegen:tornado-mordor": "yarn yaml:tornado-mordor && yarn codegen -- subgraphs/tornado-subgraph-mordor.yaml",
"build": "graph build",
"build:tornado-bsc": "graph build subgraphs/tornado-subgraph-bsc.yaml",
"build:tornado-xdai": "graph build subgraphs/tornado-subgraph-xdai.yaml",
"build:tornado-matic": "graph build subgraphs/tornado-subgraph-matic.yaml",
"build:tornado-mainnet": "graph build subgraphs/tornado-subgraph-mainnet.yaml",
"build:tornado-goerli": "graph build subgraphs/tornado-subgraph-goerli.yaml",
"build:tornado-avalanche": "graph build subgraphs/tornado-subgraph-avalanche.yaml",
"build:tornado-arbitrum": "graph build subgraphs/tornado-subgraph-arbitrum.yaml",
"build:tornado-optimism": "graph build subgraphs/tornado-subgraph-optimism.yaml",
"build:tornado-sepolia": "graph build subgraphs/tornado-subgraph-sepolia.yaml",
"build:tornado-base": "graph build subgraphs/tornado-subgraph-base.yaml",
"build:tornado-blast": "graph build subgraphs/tornado-subgraph-blast.yaml",
"build:tornado-etc": "graph build subgraphs/tornado-subgraph-etc.yaml",
"build:tornado-mordor": "graph build subgraphs/tornado-subgraph-mordor.yaml",
"create": "graph create --node http://127.0.0.1:8020/",
"create": "graph create --node http://127.0.0.1:8020/ --ipfs http://127.0.0.1:5001/",
"create:all": "yarn run create:tornado-bsc && yarn run create:tornado-xdai && yarn run create:tornado-matic && yarn run create:tornado-mainnet && yarn run create:tornado-avalanche && yarn run create:tornado-arbitrum && yarn run create:tornado-optimism && yarn run create:tornado-sepolia",
"create:tornado-bsc": "yarn run create -- tornadocash/bsc-tornado-subgraph",
"create:tornado-xdai": "yarn run create -- tornadocash/xdai-tornado-subgraph",
"create:tornado-matic": "yarn run create -- tornadocash/matic-tornado-subgraph",
"create:tornado-mainnet": "yarn run create -- tornadocash/mainnet-tornado-subgraph",
"create:tornado-avalanche": "yarn run create -- tornadocash/avalanche-tornado-subgraph",
"create:tornado-arbitrum": "yarn run create -- tornadocash/arbitrum-tornado-subgraph",
"create:tornado-optimism": "yarn run create -- tornadocash/optimism-tornado-subgraph",
"create:tornado-sepolia": "yarn run create -- tornadocash/sepolia-tornado-subgraph",
"create:tornado-base": "yarn run create -- tornadocash/base-tornado-subgraph",
"create:tornado-blast": "yarn run create -- tornadocash/blast-tornado-subgraph",
"create:tornado-etc": "yarn run create -- tornadocash/etc-tornado-subgraph",
"create:tornado-mordor": "yarn run create -- tornadocash/mordor-tornado-subgraph",
"create:tornado-bsc": "yarn run create -- tornadocash/bsc-tornado-subgraph subgraphs/tornado-subgraph-bsc.yaml",
"create:tornado-xdai": "yarn run create -- tornadocash/xdai-tornado-subgraph subgraphs/tornado-subgraph-xdai.yaml",
"create:tornado-matic": "yarn run create -- tornadocash/matic-tornado-subgraph subgraphs/tornado-subgraph-matic.yaml",
"create:tornado-mainnet": "yarn run create -- tornadocash/mainnet-tornado-subgraph subgraphs/tornado-subgraph-mainnet.yaml",
"create:tornado-goerli": "yarn run create -- tornadocash/goerli-tornado-subgraph subgraphs/tornado-subgraph-goerli.yaml",
"create:tornado-avalanche": "yarn run create -- tornadocash/avalanche-tornado-subgraph subgraphs/tornado-subgraph-avalanche.yaml",
"create:tornado-arbitrum": "yarn run create -- tornadocash/arbitrum-tornado-subgraph subgraphs/tornado-subgraph-arbitrum.yaml",
"create:tornado-optimism": "yarn run create -- tornadocash/optimism-tornado-subgraph subgraphs/tornado-subgraph-optimism.yaml",
"create:tornado-sepolia": "yarn run create -- tornadocash/sepolia-tornado-subgraph subgraphs/tornado-subgraph-sepolia.yaml",
"deploy": "graph deploy --node http://127.0.0.1:8020/ --ipfs http://127.0.0.1:5001/",
"deploy:all": "yarn deploy:tornado-bsc && yarn deploy:tornado-xdai && yarn deploy:tornado-matic && yarn deploy:tornado-mainnet && yarn deploy:tornado-avalanche && yarn deploy:tornado-arbitrum && yarn deploy:tornado-optimism && yarn deploy:tornado-sepolia",
"deploy:tornado-bsc": "yarn deploy -- tornadocash/bsc-tornado-subgraph subgraphs/tornado-subgraph-bsc.yaml",
"deploy:tornado-xdai": "yarn deploy -- tornadocash/xdai-tornado-subgraph subgraphs/tornado-subgraph-xdai.yaml",
"deploy:tornado-matic": "yarn deploy -- tornadocash/matic-tornado-subgraph subgraphs/tornado-subgraph-matic.yaml",
"deploy:tornado-mainnet": "yarn deploy -- tornadocash/mainnet-tornado-subgraph subgraphs/tornado-subgraph-mainnet.yaml",
"deploy:tornado-goerli": "yarn deploy -- tornadocash/goerli-tornado-subgraph subgraphs/tornado-subgraph-goerli.yaml",
"deploy:tornado-avalanche": "yarn deploy -- tornadocash/avalanche-tornado-subgraph subgraphs/tornado-subgraph-avalanche.yaml",
"deploy:tornado-arbitrum": "yarn deploy -- tornadocash/arbitrum-tornado-subgraph subgraphs/tornado-subgraph-arbitrum.yaml",
"deploy:tornado-optimism": "yarn deploy -- tornadocash/optimism-tornado-subgraph subgraphs/tornado-subgraph-optimism.yaml",
"deploy:tornado-sepolia": "yarn deploy -- tornadocash/sepolia-tornado-subgraph subgraphs/tornado-subgraph-sepolia.yaml",
"deploy:tornado-base": "yarn deploy -- tornadocash/base-tornado-subgraph subgraphs/tornado-subgraph-base.yaml",
"deploy:tornado-blast": "yarn deploy -- tornadocash/blast-tornado-subgraph subgraphs/tornado-subgraph-blast.yaml",
"deploy:tornado-etc": "yarn deploy -- tornadocash/etc-tornado-subgraph subgraphs/tornado-subgraph-etc.yaml",
"deploy:tornado-mordor": "yarn deploy -- tornadocash/mordor-tornado-subgraph subgraphs/tornado-subgraph-mordor.yaml"
"deploy:tornado-sepolia": "yarn deploy -- tornadocash/sepolia-tornado-subgraph subgraphs/tornado-subgraph-sepolia.yaml"
},
"dependencies": {
"@graphprotocol/graph-cli": "^0.97.1",
"@graphprotocol/graph-ts": "^0.37.0"
"@graphprotocol/graph-cli": "^0.20.0",
"@graphprotocol/graph-ts": "^0.20.0"
},
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^8.35.1",
"@typescript-eslint/parser": "^8.35.1",
"commander": "^14.0.0",
"eslint": "^9.30.0",
"eslint-config-prettier": "^10.1.5",
"eslint-import-resolver-typescript": "^4.4.4",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-prettier": "^5.5.1",
"@typescript-eslint/eslint-plugin": "^4.26.1",
"@typescript-eslint/parser": "^4.26.1",
"commander": "^7.2.0",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-prettier": "^3.4.0",
"mustache": "^4.2.0",
"prettier": "^3.6.2",
"typescript": "^5.8.3"
"prettier": "^2.3.1",
"typescript": "^4.3.2"
}
}

View File

@ -1,4 +1,4 @@
type Deposit @entity(immutable: true) {
type Deposit @entity {
id: ID!
from: Bytes!
index: BigInt!
@ -10,7 +10,7 @@ type Deposit @entity(immutable: true) {
transactionHash: Bytes!
}
type Withdrawal @entity(immutable: true) {
type Withdrawal @entity {
id: ID!
to: Bytes!
fee: BigInt!
@ -23,7 +23,7 @@ type Withdrawal @entity(immutable: true) {
transactionHash: Bytes!
}
type EncryptedNote @entity(immutable: true) {
type EncryptedNote @entity {
id: ID!
index: BigInt!
blockNumber: BigInt!
@ -31,7 +31,7 @@ type EncryptedNote @entity(immutable: true) {
transactionHash: Bytes!
}
type NoteAccount @entity(immutable: true) {
type NoteAccount @entity {
id: ID!
index: BigInt!
blockNumber: BigInt!

View File

@ -207,100 +207,4 @@ contractsToInstances.set("0xecd649870407cd43923a816cc6334a5bdf113621_sepolia", 
contractsToInstances.set("0x73b4bd04bf83206b6e979be2507098f92edf4f90_sepolia", // Instance-dai-100000
  "dai-100000"
);
contractsToInstances.set("0x82859dc3697062c16422e9b5e8ba1b6a6ec72c76_base", // Instance-eth-0.001
  "eth-0.001"
);
contractsToInstances.set("0xa287c40411685438750a247ca67488debe56ee32_base", // Instance-eth-0.01
  "eth-0.01"
);
contractsToInstances.set("0x84443cfd09a48af6ef360c6976c5392ac5023a1f_base", // Instance-eth-0.1
  "eth-0.1"
);
contractsToInstances.set("0xd47438c816c9e7f2e2888e060936a499af9582b3_base", // Instance-eth-1
  "eth-1"
);
contractsToInstances.set("0x330bdfade01ee9bf63c209ee33102dd334618e0a_base", // Instance-eth-10
  "eth-10"
);
contractsToInstances.set("0x1e34a77868e19a6647b1f2f47b51ed72dede95dd_base", // Instance-eth-100
  "eth-100"
);
contractsToInstances.set("0x70cc374ae7d1549a4666b7172b78ddcf672b74f7_base", // Instance-dai-10
  "dai-10"
);
contractsToInstances.set("0xd063894588177b8362dda6c0a7ef09bf6fdf851c_base", // Instance-dai-100
  "dai-100"
);
contractsToInstances.set("0xa7513fdff61fc83a9c5c08ce31266e6dd400c54e_base", // Instance-dai-1000
  "dai-1000"
);
contractsToInstances.set("0x8f05ede57098d843f30be74ac25c292f87b7f775_base", // Instance-dai-10000
  "dai-10000"
);
contractsToInstances.set("0xeb7fc86c32e9a5e9dd2a0a78c091b8b625cbee24_base", // Instance-dai-100000
  "dai-100000"
);
contractsToInstances.set("0x5465800d7be34dae2c1572d2227de94de93b4432_base", // Instance-tbtc-0.0001
  "tbtc-0.0001"
);
contractsToInstances.set("0xf2d3404c03c8cc0b120bd6e8edd6f69226f03c6d_base", // Instance-tbtc-0.001
  "tbtc-0.001"
);
contractsToInstances.set("0x4261d5209a285410dea8173b6fe1a0e7bcf20f7c_base", // Instance-tbtc-0.01
  "tbtc-0.01"
);
contractsToInstances.set("0x9fb147f49bfe17d19789547187eae2406590b217_base", // Instance-tbtc-0.1
  "tbtc-0.1"
);
contractsToInstances.set("0x2a8515f39716b0c160a3eb32d24e4cbeb76932d2_base", // Instance-tbtc-1
  "tbtc-1"
);
contractsToInstances.set("0x82859dc3697062c16422e9b5e8ba1b6a6ec72c76_blast", // Instance-eth-0.001
  "eth-0.001"
);
contractsToInstances.set("0xa287c40411685438750a247ca67488debe56ee32_blast", // Instance-eth-0.01
  "eth-0.01"
);
contractsToInstances.set("0x84443cfd09a48af6ef360c6976c5392ac5023a1f_blast", // Instance-eth-0.1
  "eth-0.1"
);
contractsToInstances.set("0xd47438c816c9e7f2e2888e060936a499af9582b3_blast", // Instance-eth-1
  "eth-1"
);
contractsToInstances.set("0x330bdfade01ee9bf63c209ee33102dd334618e0a_blast", // Instance-eth-10
  "eth-10"
);
contractsToInstances.set("0x1e34a77868e19a6647b1f2f47b51ed72dede95dd_blast", // Instance-eth-100
  "eth-100"
);
contractsToInstances.set("0x84443cfd09a48af6ef360c6976c5392ac5023a1f_etc", // Instance-etc-0.1
  "etc-0.1"
);
contractsToInstances.set("0xd47438c816c9e7f2e2888e060936a499af9582b3_etc", // Instance-etc-1
  "etc-1"
);
contractsToInstances.set("0x330bdfade01ee9bf63c209ee33102dd334618e0a_etc", // Instance-etc-10
  "etc-10"
);
contractsToInstances.set("0x1e34a77868e19a6647b1f2f47b51ed72dede95dd_etc", // Instance-etc-100
  "etc-100"
);
contractsToInstances.set("0xdf231d99ff8b6c6cbf4e9b9a945cbacef9339178_etc", // Instance-etc-1000
  "etc-1000"
);
contractsToInstances.set("0x84443cfd09a48af6ef360c6976c5392ac5023a1f_mordor", // Instance-etc-0.1
  "etc-0.1"
);
contractsToInstances.set("0xd47438c816c9e7f2e2888e060936a499af9582b3_mordor", // Instance-etc-1
  "etc-1"
);
contractsToInstances.set("0x330bdfade01ee9bf63c209ee33102dd334618e0a_mordor", // Instance-etc-10
  "etc-10"
);
contractsToInstances.set("0x1e34a77868e19a6647b1f2f47b51ed72dede95dd_mordor", // Instance-etc-100
  "etc-100"
);
contractsToInstances.set("0xdf231d99ff8b6c6cbf4e9b9a945cbacef9339178_mordor", // Instance-etc-1000
  "etc-1000"
);
// this is a read only file generated by manual inputs to file mustache/templates/rates/contracts.js.

View File

@ -1,8 +1,6 @@
specVersion: 1.3.0
specVersion: 0.0.2
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
indexerHints:
prune: auto
schema:
file: ../schema.graphql
dataSources:
@ -15,7 +13,7 @@
startBlock: 3430605
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-echo-account.ts
entities:
@ -27,7 +25,7 @@
- event: Echo(indexed address,bytes)
handler: handleEcho
- kind: ethereum/contract
name: Instance-arbitrum-one-0.1-eth
name: Instance-0.1-eth
network: arbitrum-one
source:
address: "0x84443CFd09A48AF6eF360C6976C5392aC5023a1F"
@ -35,7 +33,7 @@
startBlock: 3430648
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -50,7 +48,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-arbitrum-one-1-eth
name: Instance-1-eth
network: arbitrum-one
source:
address: "0xd47438C816c9E7f2E2888E060936a499Af9582b3"
@ -58,7 +56,7 @@
startBlock: 3430648
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -73,7 +71,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-arbitrum-one-10-eth
name: Instance-10-eth
network: arbitrum-one
source:
address: "0x330bdFADE01eE9bF63C209Ee33102DD334618e0a"
@ -81,7 +79,7 @@
startBlock: 3430648
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -96,7 +94,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-arbitrum-one-100-eth
name: Instance-100-eth
network: arbitrum-one
source:
address: "0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD"
@ -104,7 +102,7 @@
startBlock: 3430648
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -127,7 +125,7 @@
startBlock: 3430648
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-encrypted-note.ts
entities:

View File

@ -1,8 +1,6 @@
specVersion: 1.3.0
specVersion: 0.0.2
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
indexerHints:
prune: auto
schema:
file: ../schema.graphql
dataSources:
@ -15,7 +13,7 @@
startBlock: 4429813
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-echo-account.ts
entities:
@ -27,7 +25,7 @@
- event: Echo(indexed address,bytes)
handler: handleEcho
- kind: ethereum/contract
name: Instance-avalanche-10-avax
name: Instance-10-avax
network: avalanche
source:
address: "0x330bdFADE01eE9bF63C209Ee33102DD334618e0a"
@ -35,7 +33,7 @@
startBlock: 4429818
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -50,7 +48,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-avalanche-100-avax
name: Instance-100-avax
network: avalanche
source:
address: "0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD"
@ -58,7 +56,7 @@
startBlock: 4429818
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -73,7 +71,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-avalanche-500-avax
name: Instance-500-avax
network: avalanche
source:
address: "0xaf8d1839c3c67cf571aa74B5c12398d4901147B3"
@ -81,7 +79,7 @@
startBlock: 4429818
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -104,7 +102,7 @@
startBlock: 4429818
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-encrypted-note.ts
entities:

View File

@ -1,416 +0,0 @@
specVersion: 1.3.0
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
indexerHints:
prune: auto
schema:
file: ../schema.graphql
dataSources:
- kind: ethereum/contract
name: Echoer
network: base
source:
address: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4"
abi: Echoer
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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-base-0.001-eth
network: base
source:
address: "0x82859DC3697062c16422E9b5e8Ba1B6a6EC72c76"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-0.01-eth
network: base
source:
address: "0xA287c40411685438750a247Ca67488DEBe56EE32"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-0.1-eth
network: base
source:
address: "0x84443CFd09A48AF6eF360C6976C5392aC5023a1F"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-1-eth
network: base
source:
address: "0xd47438C816c9E7f2E2888E060936a499Af9582b3"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-10-eth
network: base
source:
address: "0x330bdFADE01eE9bF63C209Ee33102DD334618e0a"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-100-eth
network: base
source:
address: "0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-10-dai
network: base
source:
address: "0x70CC374aE7D1549a4666b7172B78dDCF672B74f7"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-100-dai
network: base
source:
address: "0xD063894588177B8362Dda6C0A7EF09BF6fDF851c"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-1000-dai
network: base
source:
address: "0xa7513fdfF61fc83a9C5c08CE31266e6dd400C54E"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-10000-dai
network: base
source:
address: "0x8f05eDE57098D843F30bE74AC25c292F87b7f775"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-100000-dai
network: base
source:
address: "0xeB7fc86c32e9a5E9DD2a0a78C091b8b625cbee24"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-0.0001-tbtc
network: base
source:
address: "0x5465800D7Be34dAe2c1572d2227De94dE93B4432"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-0.001-tbtc
network: base
source:
address: "0xf2d3404c03C8cC0b120bd6E8edD6F69226F03c6d"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-0.01-tbtc
network: base
source:
address: "0x4261d5209A285410DEa8173B6FE1A0e7BCf20f7c"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-0.1-tbtc
network: base
source:
address: "0x9FB147F49bFE17D19789547187EAE2406590b217"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-base-1-tbtc
network: base
source:
address: "0x2A8515F39716B0C160a3eB32D24E4cbeB76932d2"
abi: Instance
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: base
source:
address: "0x0D5550d52428E7e3175bfc9550207e4ad3859b17"
abi: Proxy
startBlock: 23149794
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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

View File

@ -1,186 +0,0 @@
specVersion: 1.3.0
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
indexerHints:
prune: auto
schema:
file: ../schema.graphql
dataSources:
- kind: ethereum/contract
name: Echoer
network: blast
source:
address: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4"
abi: Echoer
startBlock: 12144065
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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-blast-0.001-eth
network: blast
source:
address: "0x82859DC3697062c16422E9b5e8Ba1B6a6EC72c76"
abi: Instance
startBlock: 12144065
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-blast-0.01-eth
network: blast
source:
address: "0xA287c40411685438750a247Ca67488DEBe56EE32"
abi: Instance
startBlock: 12144065
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-blast-0.1-eth
network: blast
source:
address: "0x84443CFd09A48AF6eF360C6976C5392aC5023a1F"
abi: Instance
startBlock: 12144065
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-blast-1-eth
network: blast
source:
address: "0xd47438C816c9E7f2E2888E060936a499Af9582b3"
abi: Instance
startBlock: 12144065
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-blast-10-eth
network: blast
source:
address: "0x330bdFADE01eE9bF63C209Ee33102DD334618e0a"
abi: Instance
startBlock: 12144065
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-blast-100-eth
network: blast
source:
address: "0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD"
abi: Instance
startBlock: 12144065
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: blast
source:
address: "0x0D5550d52428E7e3175bfc9550207e4ad3859b17"
abi: Proxy
startBlock: 12144065
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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

View File

@ -1,8 +1,6 @@
specVersion: 1.3.0
specVersion: 0.0.2
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
indexerHints:
prune: auto
schema:
file: ../schema.graphql
dataSources:
@ -15,7 +13,7 @@
startBlock: 8158799
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-echo-account.ts
entities:
@ -27,7 +25,7 @@
- event: Echo(indexed address,bytes)
handler: handleEcho
- kind: ethereum/contract
name: Instance-bsc-0.1-bnb
name: Instance-0.1-bnb
network: bsc
source:
address: "0x84443CFd09A48AF6eF360C6976C5392aC5023a1F"
@ -35,7 +33,7 @@
startBlock: 8158799
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -50,7 +48,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-bsc-1-bnb
name: Instance-1-bnb
network: bsc
source:
address: "0xd47438C816c9E7f2E2888E060936a499Af9582b3"
@ -58,7 +56,7 @@
startBlock: 8158799
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -73,7 +71,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-bsc-10-bnb
name: Instance-10-bnb
network: bsc
source:
address: "0x330bdFADE01eE9bF63C209Ee33102DD334618e0a"
@ -81,7 +79,7 @@
startBlock: 8158799
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -96,7 +94,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-bsc-100-bnb
name: Instance-100-bnb
network: bsc
source:
address: "0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD"
@ -104,7 +102,7 @@
startBlock: 8158799
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -127,7 +125,7 @@
startBlock: 8158799
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-encrypted-note.ts
entities:

View File

@ -1,163 +0,0 @@
specVersion: 1.3.0
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
indexerHints:
prune: auto
schema:
file: ../schema.graphql
dataSources:
- kind: ethereum/contract
name: Echoer
network: etc
source:
address: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4"
abi: Echoer
startBlock: 22412211
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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-etc-0.1-etc
network: etc
source:
address: "0x84443CFd09A48AF6eF360C6976C5392aC5023a1F"
abi: Instance
startBlock: 22412211
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-etc-1-etc
network: etc
source:
address: "0xd47438C816c9E7f2E2888E060936a499Af9582b3"
abi: Instance
startBlock: 22412211
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-etc-10-etc
network: etc
source:
address: "0x330bdFADE01eE9bF63C209Ee33102DD334618e0a"
abi: Instance
startBlock: 22412211
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-etc-100-etc
network: etc
source:
address: "0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD"
abi: Instance
startBlock: 22412211
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-etc-1000-etc
network: etc
source:
address: "0xdf231d99Ff8b6c6CBF4E9B9a945CBAcEF9339178"
abi: Instance
startBlock: 22412211
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: etc
source:
address: "0x0D5550d52428E7e3175bfc9550207e4ad3859b17"
abi: Proxy
startBlock: 22412211
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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

View File

@ -1,8 +1,6 @@
specVersion: 1.3.0
specVersion: 0.0.2
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
indexerHints:
prune: auto
schema:
file: ../schema.graphql
dataSources:
@ -15,7 +13,7 @@
startBlock: 11842486
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-echo-account.ts
entities:
@ -27,7 +25,7 @@
- event: Echo(indexed address,bytes)
handler: handleEcho
- kind: ethereum/contract
name: Instance-mainnet-0.1-eth
name: Instance-0.1-eth
network: mainnet
source:
address: "0x12D66f87A04A9E220743712cE6d9bB1B5616B8Fc"
@ -35,7 +33,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -50,7 +48,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-1-eth
name: Instance-1-eth
network: mainnet
source:
address: "0x47CE0C6eD5B0Ce3d3A51fdb1C52DC66a7c3c2936"
@ -58,7 +56,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -73,7 +71,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-10-eth
name: Instance-10-eth
network: mainnet
source:
address: "0x910Cbd523D972eb0a6f4cAe4618aD62622b39DbF"
@ -81,7 +79,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -96,7 +94,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-100-eth
name: Instance-100-eth
network: mainnet
source:
address: "0xA160cdAB225685dA1d56aa342Ad8841c3b53f291"
@ -104,7 +102,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -119,7 +117,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-100-dai
name: Instance-100-dai
network: mainnet
source:
address: "0xD4B88Df4D29F5CedD6857912842cff3b20C8Cfa3"
@ -127,7 +125,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -142,7 +140,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-1000-dai
name: Instance-1000-dai
network: mainnet
source:
address: "0xFD8610d20aA15b7B2E3Be39B396a1bC3516c7144"
@ -150,7 +148,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -165,7 +163,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-10000-dai
name: Instance-10000-dai
network: mainnet
source:
address: "0x07687e702b410Fa43f4cB4Af7FA097918ffD2730"
@ -173,7 +171,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -188,7 +186,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-100000-dai
name: Instance-100000-dai
network: mainnet
source:
address: "0x23773E65ed146A459791799d01336DB287f25334"
@ -196,7 +194,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -211,7 +209,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-5000-cdai
name: Instance-5000-cdai
network: mainnet
source:
address: "0x22aaA7720ddd5388A3c0A3333430953C68f1849b"
@ -219,7 +217,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -234,7 +232,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-50000-cdai
name: Instance-50000-cdai
network: mainnet
source:
address: "0x03893a7c7463AE47D46bc7f091665f1893656003"
@ -242,7 +240,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -257,7 +255,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-500000-cdai
name: Instance-500000-cdai
network: mainnet
source:
address: "0x2717c5e28cf931547B621a5dddb772Ab6A35B701"
@ -265,7 +263,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -280,7 +278,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-5000000-cdai
name: Instance-5000000-cdai
network: mainnet
source:
address: "0xD21be7248e0197Ee08E0c20D4a96DEBdaC3D20Af"
@ -288,7 +286,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -303,7 +301,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-100-usdc
name: Instance-100-usdc
network: mainnet
source:
address: "0xd96f2B1c14Db8458374d9Aca76E26c3D18364307"
@ -311,7 +309,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -326,7 +324,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-1000-usdc
name: Instance-1000-usdc
network: mainnet
source:
address: "0x4736dCf1b7A3d580672CcE6E7c65cd5cc9cFBa9D"
@ -334,7 +332,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -349,7 +347,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-100-usdt
name: Instance-100-usdt
network: mainnet
source:
address: "0x169AD27A470D064DEDE56a2D3ff727986b15D52B"
@ -357,7 +355,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -372,7 +370,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-1000-usdt
name: Instance-1000-usdt
network: mainnet
source:
address: "0x0836222F2B2B24A3F36f98668Ed8F0B38D1a872f"
@ -380,7 +378,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -395,7 +393,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-0.1-wbtc
name: Instance-0.1-wbtc
network: mainnet
source:
address: "0x178169B423a011fff22B9e3F3abeA13414dDD0F1"
@ -403,7 +401,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -418,7 +416,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-1-wbtc
name: Instance-1-wbtc
network: mainnet
source:
address: "0x610B717796ad172B316836AC95a2ffad065CeaB4"
@ -426,7 +424,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -441,7 +439,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-mainnet-10-wbtc
name: Instance-10-wbtc
network: mainnet
source:
address: "0xbB93e510BbCD0B7beb5A853875f9eC60275CF498"
@ -449,7 +447,7 @@
startBlock: 9116966
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -472,7 +470,7 @@
startBlock: 12143762
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-encrypted-note.ts
entities:
@ -492,7 +490,7 @@
startBlock: 15402258
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-encrypted-note.ts
entities:
@ -512,7 +510,7 @@
startBlock: 14248730
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-encrypted-note.ts
entities:

View File

@ -1,8 +1,6 @@
specVersion: 1.3.0
specVersion: 0.0.2
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
indexerHints:
prune: auto
schema:
file: ../schema.graphql
dataSources:
@ -15,7 +13,7 @@
startBlock: 16257996
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-echo-account.ts
entities:
@ -27,7 +25,7 @@
- event: Echo(indexed address,bytes)
handler: handleEcho
- kind: ethereum/contract
name: Instance-matic-100-matic
name: Instance-100-matic
network: matic
source:
address: "0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD"
@ -35,7 +33,7 @@
startBlock: 16257962
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -50,7 +48,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-matic-1000-matic
name: Instance-1000-matic
network: matic
source:
address: "0xdf231d99Ff8b6c6CBF4E9B9a945CBAcEF9339178"
@ -58,7 +56,7 @@
startBlock: 16257962
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -73,7 +71,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-matic-10000-matic
name: Instance-10000-matic
network: matic
source:
address: "0xaf4c0B70B2Ea9FB7487C7CbB37aDa259579fe040"
@ -81,7 +79,7 @@
startBlock: 16257962
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -96,7 +94,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-matic-100000-matic
name: Instance-100000-matic
network: matic
source:
address: "0xa5C2254e4253490C54cef0a4347fddb8f75A4998"
@ -104,7 +102,7 @@
startBlock: 16257962
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -127,7 +125,7 @@
startBlock: 16257989
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-encrypted-note.ts
entities:

View File

@ -1,163 +0,0 @@
specVersion: 1.3.0
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
indexerHints:
prune: auto
schema:
file: ../schema.graphql
dataSources:
- kind: ethereum/contract
name: Echoer
network: mordor
source:
address: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4"
abi: Echoer
startBlock: 13890096
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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-mordor-0.1-etc
network: mordor
source:
address: "0x84443CFd09A48AF6eF360C6976C5392aC5023a1F"
abi: Instance
startBlock: 13890096
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-mordor-1-etc
network: mordor
source:
address: "0xd47438C816c9E7f2E2888E060936a499Af9582b3"
abi: Instance
startBlock: 13890096
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-mordor-10-etc
network: mordor
source:
address: "0x330bdFADE01eE9bF63C209Ee33102DD334618e0a"
abi: Instance
startBlock: 13890096
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-mordor-100-etc
network: mordor
source:
address: "0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD"
abi: Instance
startBlock: 13890096
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: Instance-mordor-1000-etc
network: mordor
source:
address: "0xdf231d99Ff8b6c6CBF4E9B9a945CBAcEF9339178"
abi: Instance
startBlock: 13890096
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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: mordor
source:
address: "0x0D5550d52428E7e3175bfc9550207e4ad3859b17"
abi: Proxy
startBlock: 13890096
mapping:
kind: ethereum/events
apiVersion: 0.0.9
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

View File

@ -1,8 +1,6 @@
specVersion: 1.3.0
specVersion: 0.0.2
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
indexerHints:
prune: auto
schema:
file: ../schema.graphql
dataSources:
@ -15,7 +13,7 @@
startBlock: 2243694
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-echo-account.ts
entities:
@ -27,7 +25,7 @@
- event: Echo(indexed address,bytes)
handler: handleEcho
- kind: ethereum/contract
name: Instance-optimism-0.1-eth
name: Instance-0.1-eth
network: optimism
source:
address: "0x84443CFd09A48AF6eF360C6976C5392aC5023a1F"
@ -35,7 +33,7 @@
startBlock: 2243689
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -50,7 +48,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-optimism-1-eth
name: Instance-1-eth
network: optimism
source:
address: "0xd47438C816c9E7f2E2888E060936a499Af9582b3"
@ -58,7 +56,7 @@
startBlock: 2243689
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -73,7 +71,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-optimism-10-eth
name: Instance-10-eth
network: optimism
source:
address: "0x330bdFADE01eE9bF63C209Ee33102DD334618e0a"
@ -81,7 +79,7 @@
startBlock: 2243689
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -96,7 +94,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-optimism-100-eth
name: Instance-100-eth
network: optimism
source:
address: "0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD"
@ -104,7 +102,7 @@
startBlock: 2243689
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -127,7 +125,7 @@
startBlock: 2243689
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-encrypted-note.ts
entities:

View File

@ -1,8 +1,6 @@
specVersion: 1.3.0
specVersion: 0.0.2
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
indexerHints:
prune: auto
schema:
file: ../schema.graphql
dataSources:
@ -15,7 +13,7 @@
startBlock: 5594395
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-echo-account.ts
entities:
@ -27,7 +25,7 @@
- event: Echo(indexed address,bytes)
handler: handleEcho
- kind: ethereum/contract
name: Instance-sepolia-0.1-eth
name: Instance-0.1-eth
network: sepolia
source:
address: "0x8C4A04d872a6C1BE37964A21ba3a138525dFF50b"
@ -35,7 +33,7 @@
startBlock: 5594395
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -50,7 +48,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-sepolia-1-eth
name: Instance-1-eth
network: sepolia
source:
address: "0x8cc930096B4Df705A007c4A039BDFA1320Ed2508"
@ -58,7 +56,7 @@
startBlock: 5594395
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -73,7 +71,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-sepolia-10-eth
name: Instance-10-eth
network: sepolia
source:
address: "0x8D10d506D29Fc62ABb8A290B99F66dB27Fc43585"
@ -81,7 +79,7 @@
startBlock: 5594395
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -96,7 +94,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-sepolia-100-eth
name: Instance-100-eth
network: sepolia
source:
address: "0x44c5C92ed73dB43888210264f0C8b36Fd68D8379"
@ -104,7 +102,7 @@
startBlock: 5594395
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -119,7 +117,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-sepolia-100-dai
name: Instance-100-dai
network: sepolia
source:
address: "0x6921fd1a97441dd603a997ED6DDF388658daf754"
@ -127,7 +125,7 @@
startBlock: 5594395
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -142,7 +140,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-sepolia-1000-dai
name: Instance-1000-dai
network: sepolia
source:
address: "0x50a637770F5d161999420F7d70d888DE47207145"
@ -150,7 +148,7 @@
startBlock: 5594395
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -165,7 +163,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-sepolia-10000-dai
name: Instance-10000-dai
network: sepolia
source:
address: "0xecD649870407cD43923A816Cc6334a5bdf113621"
@ -173,7 +171,7 @@
startBlock: 5594395
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -188,7 +186,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-sepolia-100000-dai
name: Instance-100000-dai
network: sepolia
source:
address: "0x73B4BD04bF83206B6e979BE2507098F92EDf4F90"
@ -196,7 +194,7 @@
startBlock: 5594395
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -219,7 +217,7 @@
startBlock: 5594395
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-encrypted-note.ts
entities:
@ -229,4 +227,4 @@
file: ../abis/Proxy.json
eventHandlers:
- event: EncryptedNote(indexed address,bytes)
handler: handleEncryptedNote
handler: handleEncryptedNote

View File

@ -1,8 +1,6 @@
specVersion: 1.3.0
specVersion: 0.0.2
description: Proxy
repository: https://github.com/tornadocash/tornado-subgraph
indexerHints:
prune: auto
schema:
file: ../schema.graphql
dataSources:
@ -15,7 +13,7 @@
startBlock: 17754564
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-echo-account.ts
entities:
@ -27,7 +25,7 @@
- event: Echo(indexed address,bytes)
handler: handleEcho
- kind: ethereum/contract
name: Instance-xdai-100-xdai
name: Instance-100-xdai
network: xdai
source:
address: "0x1E34A77868E19A6647b1f2F47B51ed72dEDE95DD"
@ -35,7 +33,7 @@
startBlock: 17754561
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -50,7 +48,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-xdai-1000-xdai
name: Instance-1000-xdai
network: xdai
source:
address: "0xdf231d99Ff8b6c6CBF4E9B9a945CBAcEF9339178"
@ -58,7 +56,7 @@
startBlock: 17754561
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -73,7 +71,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-xdai-10000-xdai
name: Instance-10000-xdai
network: xdai
source:
address: "0xaf4c0B70B2Ea9FB7487C7CbB37aDa259579fe040"
@ -81,7 +79,7 @@
startBlock: 17754561
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -96,7 +94,7 @@
- event: Withdrawal(address,bytes32,indexed address,uint256)
handler: handleWithdrawal
- kind: ethereum/contract
name: Instance-xdai-100000-xdai
name: Instance-100000-xdai
network: xdai
source:
address: "0xa5C2254e4253490C54cef0a4347fddb8f75A4998"
@ -104,7 +102,7 @@
startBlock: 17754561
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-instance.ts
entities:
@ -127,7 +125,7 @@
startBlock: 17754561
mapping:
kind: ethereum/events
apiVersion: 0.0.9
apiVersion: 0.0.4
language: wasm/assemblyscript
file: ../src/mapping-encrypted-note.ts
entities:

View File

@ -1,7 +0,0 @@
{
"extends": "@graphprotocol/graph-ts/types/tsconfig.base.json",
"include": [
"src",
"tests"
]
}

5125
yarn.lock

File diff suppressed because it is too large Load Diff