tornado-core 1.0.4

* remove obsolete rpc urls
This commit is contained in:
Tornado Contrib 2024-09-19 18:34:36 +00:00
parent 95dbf208c3
commit 3df238e55f
Signed by: tornadocontrib
GPG Key ID: 60B4DF1A076C64B1
6 changed files with 371 additions and 236 deletions

150
dist/index.js vendored

@ -2344,14 +2344,6 @@ var NetId = /* @__PURE__ */ ((NetId2) => {
NetId2[NetId2["SEPOLIA"] = 11155111] = "SEPOLIA"; NetId2[NetId2["SEPOLIA"] = 11155111] = "SEPOLIA";
return NetId2; return NetId2;
})(NetId || {}); })(NetId || {});
const theGraph = {
name: "Hosted Graph",
url: "https://api.thegraph.com"
};
const tornado = {
name: "Tornado Subgraphs",
url: "https://tornadocash-rpc.com"
};
const defaultConfig = { const defaultConfig = {
[1 /* MAINNET */]: { [1 /* MAINNET */]: {
rpcCallRetryAttempt: 15, rpcCallRetryAttempt: 15,
@ -2369,14 +2361,26 @@ const defaultConfig = {
networkName: "Ethereum Mainnet", networkName: "Ethereum Mainnet",
deployedBlock: 9116966, deployedBlock: 9116966,
rpcUrls: { rpcUrls: {
tornadoRPC: {
name: "Tornado RPC",
url: "https://tornadocash-rpc.com/mainnet"
},
mevblockerRPC: { mevblockerRPC: {
name: "MevblockerRPC", name: "MevblockerRPC",
url: "https://rpc.mevblocker.io" url: "https://rpc.mevblocker.io"
}, },
keydonix: {
name: "keydonix",
url: "https://ethereum.keydonix.com/v1/mainnet"
},
SecureRpc: {
name: "SecureRpc",
url: "https://api.securerpc.com/v1"
},
meowrpc: {
name: "Meow RPC",
url: "https://eth.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/ethereum-mainnet"
},
oneRPC: { oneRPC: {
name: "1RPC", name: "1RPC",
url: "https://1rpc.io/eth" url: "https://1rpc.io/eth"
@ -2395,10 +2399,7 @@ const defaultConfig = {
tornadoSubgraph: "tornadocash/mainnet-tornado-subgraph", tornadoSubgraph: "tornadocash/mainnet-tornado-subgraph",
registrySubgraph: "tornadocash/tornado-relayer-registry", registrySubgraph: "tornadocash/tornado-relayer-registry",
governanceSubgraph: "tornadocash/tornado-governance", governanceSubgraph: "tornadocash/tornado-governance",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
tokens: { tokens: {
eth: { eth: {
instanceAddress: { instanceAddress: {
@ -2501,14 +2502,27 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/bsc-tornado-subgraph", tornadoSubgraph: "tornadocash/bsc-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
tornadoRPC: { bnbchain: {
name: "Tornado RPC", name: "BNB Chain",
url: "https://tornadocash-rpc.com/bsc" url: "https://bsc-dataseed.bnbchain.org"
},
ninicoin: {
name: "ninicoin",
url: "https://bsc-dataseed1.ninicoin.io"
},
nodereal: {
name: "NodeReal",
url: "https://binance.nodereal.io"
},
meowrpc: {
name: "Meow RPC",
url: "https://bsc.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/bsc-mainnet"
}, },
oneRPC: { oneRPC: {
name: "1RPC", name: "1RPC",
@ -2554,14 +2568,19 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/matic-tornado-subgraph", tornadoSubgraph: "tornadocash/matic-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
oneRpc: { oneRpc: {
name: "1RPC", name: "1RPC",
url: "https://1rpc.io/matic" url: "https://1rpc.io/matic"
},
meowrpc: {
name: "Meow RPC",
url: "https://polygon.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/polygon-mainnet"
} }
}, },
tokens: { tokens: {
@ -2604,14 +2623,19 @@ const defaultConfig = {
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
ovmGasPriceOracleContract: "0x420000000000000000000000000000000000000F", ovmGasPriceOracleContract: "0x420000000000000000000000000000000000000F",
tornadoSubgraph: "tornadocash/optimism-tornado-subgraph", tornadoSubgraph: "tornadocash/optimism-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
tornadoRPC: { optimism: {
name: "Tornado RPC", name: "Optimism",
url: "https://tornadocash-rpc.com/op" url: "https://mainnet.optimism.io"
},
meowrpc: {
name: "Meow RPC",
url: "https://optimism.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/optimism-mainnet"
}, },
oneRpc: { oneRpc: {
name: "1RPC", name: "1RPC",
@ -2657,18 +2681,23 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/arbitrum-tornado-subgraph", tornadoSubgraph: "tornadocash/arbitrum-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
oneRpc: {
name: "1rpc",
url: "https://1rpc.io/arb"
},
Arbitrum: { Arbitrum: {
name: "Arbitrum RPC", name: "Arbitrum RPC",
url: "https://arb1.arbitrum.io/rpc" url: "https://arb1.arbitrum.io/rpc"
},
meowrpc: {
name: "Meow RPC",
url: "https://arbitrum.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/arbitrum-one"
},
oneRpc: {
name: "1rpc",
url: "https://1rpc.io/arb"
} }
}, },
tokens: { tokens: {
@ -2710,18 +2739,19 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/xdai-tornado-subgraph", tornadoSubgraph: "tornadocash/xdai-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
tornadoRPC: { gnosis: {
name: "Tornado RPC", name: "Gnosis",
url: "https://tornadocash-rpc.com/gnosis" url: "https://rpc.gnosischain.com"
}, },
blockPi: { blockPi: {
name: "BlockPi", name: "BlockPi",
url: "https://gnosis.blockpi.network/v1/rpc/public" url: "https://gnosis.blockpi.network/v1/rpc/public"
},
oneRpc: {
name: "1rpc",
url: "https://1rpc.io/gnosis"
} }
}, },
tokens: { tokens: {
@ -2763,9 +2793,7 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/avalanche-tornado-subgraph", tornadoSubgraph: "tornadocash/avalanche-tornado-subgraph",
subgraphs: { subgraphs: {},
theGraph
},
rpcUrls: { rpcUrls: {
publicRpc: { publicRpc: {
name: "Avalanche RPC", name: "Avalanche RPC",
@ -2823,17 +2851,23 @@ const defaultConfig = {
aggregatorContract: "0x4088712AC9fad39ea133cdb9130E465d235e9642", aggregatorContract: "0x4088712AC9fad39ea133cdb9130E465d235e9642",
reverseRecordsContract: "0xEc29700C0283e5Be64AcdFe8077d6cC95dE23C23", reverseRecordsContract: "0xEc29700C0283e5Be64AcdFe8077d6cC95dE23C23",
tornadoSubgraph: "tornadocash/sepolia-tornado-subgraph", tornadoSubgraph: "tornadocash/sepolia-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado
},
rpcUrls: { rpcUrls: {
tornadoRPC: { pandaops: {
name: "Tornado RPC", name: "ethpandaops",
url: "https://tornadocash-rpc.com/sepolia" url: "https://rpc.sepolia.ethpandaops.io"
}, },
sepolia: { sepolia: {
name: "Sepolia RPC", name: "Sepolia RPC",
url: "https://rpc.sepolia.org" url: "https://rpc.sepolia.org"
},
stackup: {
name: "Stackup",
url: "https://public.stackup.sh/api/v1/node/ethereum-sepolia"
},
onerpc: {
name: "1rpc",
url: "https://1rpc.io/sepolia"
} }
}, },
tokens: { tokens: {

150
dist/index.mjs vendored

@ -2323,14 +2323,6 @@ var NetId = /* @__PURE__ */ ((NetId2) => {
NetId2[NetId2["SEPOLIA"] = 11155111] = "SEPOLIA"; NetId2[NetId2["SEPOLIA"] = 11155111] = "SEPOLIA";
return NetId2; return NetId2;
})(NetId || {}); })(NetId || {});
const theGraph = {
name: "Hosted Graph",
url: "https://api.thegraph.com"
};
const tornado = {
name: "Tornado Subgraphs",
url: "https://tornadocash-rpc.com"
};
const defaultConfig = { const defaultConfig = {
[1 /* MAINNET */]: { [1 /* MAINNET */]: {
rpcCallRetryAttempt: 15, rpcCallRetryAttempt: 15,
@ -2348,14 +2340,26 @@ const defaultConfig = {
networkName: "Ethereum Mainnet", networkName: "Ethereum Mainnet",
deployedBlock: 9116966, deployedBlock: 9116966,
rpcUrls: { rpcUrls: {
tornadoRPC: {
name: "Tornado RPC",
url: "https://tornadocash-rpc.com/mainnet"
},
mevblockerRPC: { mevblockerRPC: {
name: "MevblockerRPC", name: "MevblockerRPC",
url: "https://rpc.mevblocker.io" url: "https://rpc.mevblocker.io"
}, },
keydonix: {
name: "keydonix",
url: "https://ethereum.keydonix.com/v1/mainnet"
},
SecureRpc: {
name: "SecureRpc",
url: "https://api.securerpc.com/v1"
},
meowrpc: {
name: "Meow RPC",
url: "https://eth.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/ethereum-mainnet"
},
oneRPC: { oneRPC: {
name: "1RPC", name: "1RPC",
url: "https://1rpc.io/eth" url: "https://1rpc.io/eth"
@ -2374,10 +2378,7 @@ const defaultConfig = {
tornadoSubgraph: "tornadocash/mainnet-tornado-subgraph", tornadoSubgraph: "tornadocash/mainnet-tornado-subgraph",
registrySubgraph: "tornadocash/tornado-relayer-registry", registrySubgraph: "tornadocash/tornado-relayer-registry",
governanceSubgraph: "tornadocash/tornado-governance", governanceSubgraph: "tornadocash/tornado-governance",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
tokens: { tokens: {
eth: { eth: {
instanceAddress: { instanceAddress: {
@ -2480,14 +2481,27 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/bsc-tornado-subgraph", tornadoSubgraph: "tornadocash/bsc-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
tornadoRPC: { bnbchain: {
name: "Tornado RPC", name: "BNB Chain",
url: "https://tornadocash-rpc.com/bsc" url: "https://bsc-dataseed.bnbchain.org"
},
ninicoin: {
name: "ninicoin",
url: "https://bsc-dataseed1.ninicoin.io"
},
nodereal: {
name: "NodeReal",
url: "https://binance.nodereal.io"
},
meowrpc: {
name: "Meow RPC",
url: "https://bsc.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/bsc-mainnet"
}, },
oneRPC: { oneRPC: {
name: "1RPC", name: "1RPC",
@ -2533,14 +2547,19 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/matic-tornado-subgraph", tornadoSubgraph: "tornadocash/matic-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
oneRpc: { oneRpc: {
name: "1RPC", name: "1RPC",
url: "https://1rpc.io/matic" url: "https://1rpc.io/matic"
},
meowrpc: {
name: "Meow RPC",
url: "https://polygon.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/polygon-mainnet"
} }
}, },
tokens: { tokens: {
@ -2583,14 +2602,19 @@ const defaultConfig = {
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
ovmGasPriceOracleContract: "0x420000000000000000000000000000000000000F", ovmGasPriceOracleContract: "0x420000000000000000000000000000000000000F",
tornadoSubgraph: "tornadocash/optimism-tornado-subgraph", tornadoSubgraph: "tornadocash/optimism-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
tornadoRPC: { optimism: {
name: "Tornado RPC", name: "Optimism",
url: "https://tornadocash-rpc.com/op" url: "https://mainnet.optimism.io"
},
meowrpc: {
name: "Meow RPC",
url: "https://optimism.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/optimism-mainnet"
}, },
oneRpc: { oneRpc: {
name: "1RPC", name: "1RPC",
@ -2636,18 +2660,23 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/arbitrum-tornado-subgraph", tornadoSubgraph: "tornadocash/arbitrum-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
oneRpc: {
name: "1rpc",
url: "https://1rpc.io/arb"
},
Arbitrum: { Arbitrum: {
name: "Arbitrum RPC", name: "Arbitrum RPC",
url: "https://arb1.arbitrum.io/rpc" url: "https://arb1.arbitrum.io/rpc"
},
meowrpc: {
name: "Meow RPC",
url: "https://arbitrum.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/arbitrum-one"
},
oneRpc: {
name: "1rpc",
url: "https://1rpc.io/arb"
} }
}, },
tokens: { tokens: {
@ -2689,18 +2718,19 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/xdai-tornado-subgraph", tornadoSubgraph: "tornadocash/xdai-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
tornadoRPC: { gnosis: {
name: "Tornado RPC", name: "Gnosis",
url: "https://tornadocash-rpc.com/gnosis" url: "https://rpc.gnosischain.com"
}, },
blockPi: { blockPi: {
name: "BlockPi", name: "BlockPi",
url: "https://gnosis.blockpi.network/v1/rpc/public" url: "https://gnosis.blockpi.network/v1/rpc/public"
},
oneRpc: {
name: "1rpc",
url: "https://1rpc.io/gnosis"
} }
}, },
tokens: { tokens: {
@ -2742,9 +2772,7 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/avalanche-tornado-subgraph", tornadoSubgraph: "tornadocash/avalanche-tornado-subgraph",
subgraphs: { subgraphs: {},
theGraph
},
rpcUrls: { rpcUrls: {
publicRpc: { publicRpc: {
name: "Avalanche RPC", name: "Avalanche RPC",
@ -2802,17 +2830,23 @@ const defaultConfig = {
aggregatorContract: "0x4088712AC9fad39ea133cdb9130E465d235e9642", aggregatorContract: "0x4088712AC9fad39ea133cdb9130E465d235e9642",
reverseRecordsContract: "0xEc29700C0283e5Be64AcdFe8077d6cC95dE23C23", reverseRecordsContract: "0xEc29700C0283e5Be64AcdFe8077d6cC95dE23C23",
tornadoSubgraph: "tornadocash/sepolia-tornado-subgraph", tornadoSubgraph: "tornadocash/sepolia-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado
},
rpcUrls: { rpcUrls: {
tornadoRPC: { pandaops: {
name: "Tornado RPC", name: "ethpandaops",
url: "https://tornadocash-rpc.com/sepolia" url: "https://rpc.sepolia.ethpandaops.io"
}, },
sepolia: { sepolia: {
name: "Sepolia RPC", name: "Sepolia RPC",
url: "https://rpc.sepolia.org" url: "https://rpc.sepolia.org"
},
stackup: {
name: "Stackup",
url: "https://public.stackup.sh/api/v1/node/ethereum-sepolia"
},
onerpc: {
name: "1rpc",
url: "https://1rpc.io/sepolia"
} }
}, },
tokens: { tokens: {

150
dist/index.umd.js vendored

@ -61170,14 +61170,6 @@ var NetId = /* @__PURE__ */ ((NetId2) => {
NetId2[NetId2["SEPOLIA"] = 11155111] = "SEPOLIA"; NetId2[NetId2["SEPOLIA"] = 11155111] = "SEPOLIA";
return NetId2; return NetId2;
})(NetId || {}); })(NetId || {});
const theGraph = {
name: "Hosted Graph",
url: "https://api.thegraph.com"
};
const tornado = {
name: "Tornado Subgraphs",
url: "https://tornadocash-rpc.com"
};
const defaultConfig = { const defaultConfig = {
[1 /* MAINNET */]: { [1 /* MAINNET */]: {
rpcCallRetryAttempt: 15, rpcCallRetryAttempt: 15,
@ -61195,14 +61187,26 @@ const defaultConfig = {
networkName: "Ethereum Mainnet", networkName: "Ethereum Mainnet",
deployedBlock: 9116966, deployedBlock: 9116966,
rpcUrls: { rpcUrls: {
tornadoRPC: {
name: "Tornado RPC",
url: "https://tornadocash-rpc.com/mainnet"
},
mevblockerRPC: { mevblockerRPC: {
name: "MevblockerRPC", name: "MevblockerRPC",
url: "https://rpc.mevblocker.io" url: "https://rpc.mevblocker.io"
}, },
keydonix: {
name: "keydonix",
url: "https://ethereum.keydonix.com/v1/mainnet"
},
SecureRpc: {
name: "SecureRpc",
url: "https://api.securerpc.com/v1"
},
meowrpc: {
name: "Meow RPC",
url: "https://eth.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/ethereum-mainnet"
},
oneRPC: { oneRPC: {
name: "1RPC", name: "1RPC",
url: "https://1rpc.io/eth" url: "https://1rpc.io/eth"
@ -61221,10 +61225,7 @@ const defaultConfig = {
tornadoSubgraph: "tornadocash/mainnet-tornado-subgraph", tornadoSubgraph: "tornadocash/mainnet-tornado-subgraph",
registrySubgraph: "tornadocash/tornado-relayer-registry", registrySubgraph: "tornadocash/tornado-relayer-registry",
governanceSubgraph: "tornadocash/tornado-governance", governanceSubgraph: "tornadocash/tornado-governance",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
tokens: { tokens: {
eth: { eth: {
instanceAddress: { instanceAddress: {
@ -61327,14 +61328,27 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/bsc-tornado-subgraph", tornadoSubgraph: "tornadocash/bsc-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
tornadoRPC: { bnbchain: {
name: "Tornado RPC", name: "BNB Chain",
url: "https://tornadocash-rpc.com/bsc" url: "https://bsc-dataseed.bnbchain.org"
},
ninicoin: {
name: "ninicoin",
url: "https://bsc-dataseed1.ninicoin.io"
},
nodereal: {
name: "NodeReal",
url: "https://binance.nodereal.io"
},
meowrpc: {
name: "Meow RPC",
url: "https://bsc.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/bsc-mainnet"
}, },
oneRPC: { oneRPC: {
name: "1RPC", name: "1RPC",
@ -61380,14 +61394,19 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/matic-tornado-subgraph", tornadoSubgraph: "tornadocash/matic-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
oneRpc: { oneRpc: {
name: "1RPC", name: "1RPC",
url: "https://1rpc.io/matic" url: "https://1rpc.io/matic"
},
meowrpc: {
name: "Meow RPC",
url: "https://polygon.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/polygon-mainnet"
} }
}, },
tokens: { tokens: {
@ -61430,14 +61449,19 @@ const defaultConfig = {
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
ovmGasPriceOracleContract: "0x420000000000000000000000000000000000000F", ovmGasPriceOracleContract: "0x420000000000000000000000000000000000000F",
tornadoSubgraph: "tornadocash/optimism-tornado-subgraph", tornadoSubgraph: "tornadocash/optimism-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
tornadoRPC: { optimism: {
name: "Tornado RPC", name: "Optimism",
url: "https://tornadocash-rpc.com/op" url: "https://mainnet.optimism.io"
},
meowrpc: {
name: "Meow RPC",
url: "https://optimism.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/optimism-mainnet"
}, },
oneRpc: { oneRpc: {
name: "1RPC", name: "1RPC",
@ -61483,18 +61507,23 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/arbitrum-tornado-subgraph", tornadoSubgraph: "tornadocash/arbitrum-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
oneRpc: {
name: "1rpc",
url: "https://1rpc.io/arb"
},
Arbitrum: { Arbitrum: {
name: "Arbitrum RPC", name: "Arbitrum RPC",
url: "https://arb1.arbitrum.io/rpc" url: "https://arb1.arbitrum.io/rpc"
},
meowrpc: {
name: "Meow RPC",
url: "https://arbitrum.meowrpc.com"
},
stackup: {
name: "Stackup RPC",
url: "https://public.stackup.sh/api/v1/node/arbitrum-one"
},
oneRpc: {
name: "1rpc",
url: "https://1rpc.io/arb"
} }
}, },
tokens: { tokens: {
@ -61536,18 +61565,19 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/xdai-tornado-subgraph", tornadoSubgraph: "tornadocash/xdai-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado,
theGraph
},
rpcUrls: { rpcUrls: {
tornadoRPC: { gnosis: {
name: "Tornado RPC", name: "Gnosis",
url: "https://tornadocash-rpc.com/gnosis" url: "https://rpc.gnosischain.com"
}, },
blockPi: { blockPi: {
name: "BlockPi", name: "BlockPi",
url: "https://gnosis.blockpi.network/v1/rpc/public" url: "https://gnosis.blockpi.network/v1/rpc/public"
},
oneRpc: {
name: "1rpc",
url: "https://1rpc.io/gnosis"
} }
}, },
tokens: { tokens: {
@ -61589,9 +61619,7 @@ const defaultConfig = {
echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4", echoContract: "0xa75BF2815618872f155b7C4B0C81bF990f5245E4",
offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8", offchainOracleContract: "0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8",
tornadoSubgraph: "tornadocash/avalanche-tornado-subgraph", tornadoSubgraph: "tornadocash/avalanche-tornado-subgraph",
subgraphs: { subgraphs: {},
theGraph
},
rpcUrls: { rpcUrls: {
publicRpc: { publicRpc: {
name: "Avalanche RPC", name: "Avalanche RPC",
@ -61649,17 +61677,23 @@ const defaultConfig = {
aggregatorContract: "0x4088712AC9fad39ea133cdb9130E465d235e9642", aggregatorContract: "0x4088712AC9fad39ea133cdb9130E465d235e9642",
reverseRecordsContract: "0xEc29700C0283e5Be64AcdFe8077d6cC95dE23C23", reverseRecordsContract: "0xEc29700C0283e5Be64AcdFe8077d6cC95dE23C23",
tornadoSubgraph: "tornadocash/sepolia-tornado-subgraph", tornadoSubgraph: "tornadocash/sepolia-tornado-subgraph",
subgraphs: { subgraphs: {},
tornado
},
rpcUrls: { rpcUrls: {
tornadoRPC: { pandaops: {
name: "Tornado RPC", name: "ethpandaops",
url: "https://tornadocash-rpc.com/sepolia" url: "https://rpc.sepolia.ethpandaops.io"
}, },
sepolia: { sepolia: {
name: "Sepolia RPC", name: "Sepolia RPC",
url: "https://rpc.sepolia.org" url: "https://rpc.sepolia.org"
},
stackup: {
name: "Stackup",
url: "https://public.stackup.sh/api/v1/node/ethereum-sepolia"
},
onerpc: {
name: "1rpc",
url: "https://1rpc.io/sepolia"
} }
}, },
tokens: { tokens: {

@ -1,6 +1,6 @@
{ {
"name": "@tornado/core", "name": "@tornado/core",
"version": "1.0.3", "version": "1.0.4",
"description": "An SDK for building applications on top of Privacy Pools", "description": "An SDK for building applications on top of Privacy Pools",
"main": "./dist/index.js", "main": "./dist/index.js",
"module": "./dist/index.mjs", "module": "./dist/index.mjs",
@ -53,7 +53,7 @@
"@types/circomlibjs": "^0.1.6", "@types/circomlibjs": "^0.1.6",
"@types/node": "^22.5.5", "@types/node": "^22.5.5",
"@types/node-fetch": "^2.6.11", "@types/node-fetch": "^2.6.11",
"@typescript-eslint/eslint-plugin": "8.6.0", "@typescript-eslint/eslint-plugin": "^8.6.0",
"@typescript-eslint/parser": "^8.6.0", "@typescript-eslint/parser": "^8.6.0",
"esbuild-loader": "^4.2.2", "esbuild-loader": "^4.2.2",
"eslint": "8.57.0", "eslint": "8.57.0",

@ -102,15 +102,6 @@ export type networkConfig = {
[key in NetIdType]: Config; [key in NetIdType]: Config;
}; };
const theGraph = {
name: 'Hosted Graph',
url: 'https://api.thegraph.com',
};
const tornado = {
name: 'Tornado Subgraphs',
url: 'https://tornadocash-rpc.com',
};
export const defaultConfig: networkConfig = { export const defaultConfig: networkConfig = {
[NetId.MAINNET]: { [NetId.MAINNET]: {
rpcCallRetryAttempt: 15, rpcCallRetryAttempt: 15,
@ -128,14 +119,26 @@ export const defaultConfig: networkConfig = {
networkName: 'Ethereum Mainnet', networkName: 'Ethereum Mainnet',
deployedBlock: 9116966, deployedBlock: 9116966,
rpcUrls: { rpcUrls: {
tornadoRPC: {
name: 'Tornado RPC',
url: 'https://tornadocash-rpc.com/mainnet',
},
mevblockerRPC: { mevblockerRPC: {
name: 'MevblockerRPC', name: 'MevblockerRPC',
url: 'https://rpc.mevblocker.io', url: 'https://rpc.mevblocker.io',
}, },
keydonix: {
name: 'keydonix',
url: 'https://ethereum.keydonix.com/v1/mainnet',
},
SecureRpc: {
name: 'SecureRpc',
url: 'https://api.securerpc.com/v1',
},
meowrpc: {
name: 'Meow RPC',
url: 'https://eth.meowrpc.com',
},
stackup: {
name: 'Stackup RPC',
url: 'https://public.stackup.sh/api/v1/node/ethereum-mainnet',
},
oneRPC: { oneRPC: {
name: '1RPC', name: '1RPC',
url: 'https://1rpc.io/eth', url: 'https://1rpc.io/eth',
@ -154,10 +157,7 @@ export const defaultConfig: networkConfig = {
tornadoSubgraph: 'tornadocash/mainnet-tornado-subgraph', tornadoSubgraph: 'tornadocash/mainnet-tornado-subgraph',
registrySubgraph: 'tornadocash/tornado-relayer-registry', registrySubgraph: 'tornadocash/tornado-relayer-registry',
governanceSubgraph: 'tornadocash/tornado-governance', governanceSubgraph: 'tornadocash/tornado-governance',
subgraphs: { subgraphs: {},
tornado,
theGraph,
},
tokens: { tokens: {
eth: { eth: {
instanceAddress: { instanceAddress: {
@ -260,14 +260,27 @@ export const defaultConfig: networkConfig = {
echoContract: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4', echoContract: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4',
offchainOracleContract: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8', offchainOracleContract: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8',
tornadoSubgraph: 'tornadocash/bsc-tornado-subgraph', tornadoSubgraph: 'tornadocash/bsc-tornado-subgraph',
subgraphs: { subgraphs: {},
tornado,
theGraph,
},
rpcUrls: { rpcUrls: {
tornadoRPC: { bnbchain: {
name: 'Tornado RPC', name: 'BNB Chain',
url: 'https://tornadocash-rpc.com/bsc', url: 'https://bsc-dataseed.bnbchain.org',
},
ninicoin: {
name: 'ninicoin',
url: 'https://bsc-dataseed1.ninicoin.io',
},
nodereal: {
name: 'NodeReal',
url: 'https://binance.nodereal.io',
},
meowrpc: {
name: 'Meow RPC',
url: 'https://bsc.meowrpc.com',
},
stackup: {
name: 'Stackup RPC',
url: 'https://public.stackup.sh/api/v1/node/bsc-mainnet',
}, },
oneRPC: { oneRPC: {
name: '1RPC', name: '1RPC',
@ -313,15 +326,20 @@ export const defaultConfig: networkConfig = {
echoContract: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4', echoContract: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4',
offchainOracleContract: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8', offchainOracleContract: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8',
tornadoSubgraph: 'tornadocash/matic-tornado-subgraph', tornadoSubgraph: 'tornadocash/matic-tornado-subgraph',
subgraphs: { subgraphs: {},
tornado,
theGraph,
},
rpcUrls: { rpcUrls: {
oneRpc: { oneRpc: {
name: '1RPC', name: '1RPC',
url: 'https://1rpc.io/matic', url: 'https://1rpc.io/matic',
}, },
meowrpc: {
name: 'Meow RPC',
url: 'https://polygon.meowrpc.com',
},
stackup: {
name: 'Stackup RPC',
url: 'https://public.stackup.sh/api/v1/node/polygon-mainnet',
},
}, },
tokens: { tokens: {
matic: { matic: {
@ -363,14 +381,19 @@ export const defaultConfig: networkConfig = {
offchainOracleContract: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8', offchainOracleContract: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8',
ovmGasPriceOracleContract: '0x420000000000000000000000000000000000000F', ovmGasPriceOracleContract: '0x420000000000000000000000000000000000000F',
tornadoSubgraph: 'tornadocash/optimism-tornado-subgraph', tornadoSubgraph: 'tornadocash/optimism-tornado-subgraph',
subgraphs: { subgraphs: {},
tornado,
theGraph,
},
rpcUrls: { rpcUrls: {
tornadoRPC: { optimism: {
name: 'Tornado RPC', name: 'Optimism',
url: 'https://tornadocash-rpc.com/op', url: 'https://mainnet.optimism.io',
},
meowrpc: {
name: 'Meow RPC',
url: 'https://optimism.meowrpc.com',
},
stackup: {
name: 'Stackup RPC',
url: 'https://public.stackup.sh/api/v1/node/optimism-mainnet',
}, },
oneRpc: { oneRpc: {
name: '1RPC', name: '1RPC',
@ -416,19 +439,24 @@ export const defaultConfig: networkConfig = {
echoContract: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4', echoContract: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4',
offchainOracleContract: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8', offchainOracleContract: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8',
tornadoSubgraph: 'tornadocash/arbitrum-tornado-subgraph', tornadoSubgraph: 'tornadocash/arbitrum-tornado-subgraph',
subgraphs: { subgraphs: {},
tornado,
theGraph,
},
rpcUrls: { rpcUrls: {
oneRpc: {
name: '1rpc',
url: 'https://1rpc.io/arb',
},
Arbitrum: { Arbitrum: {
name: 'Arbitrum RPC', name: 'Arbitrum RPC',
url: 'https://arb1.arbitrum.io/rpc', url: 'https://arb1.arbitrum.io/rpc',
}, },
meowrpc: {
name: 'Meow RPC',
url: 'https://arbitrum.meowrpc.com',
},
stackup: {
name: 'Stackup RPC',
url: 'https://public.stackup.sh/api/v1/node/arbitrum-one',
},
oneRpc: {
name: '1rpc',
url: 'https://1rpc.io/arb',
},
}, },
tokens: { tokens: {
eth: { eth: {
@ -469,19 +497,20 @@ export const defaultConfig: networkConfig = {
echoContract: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4', echoContract: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4',
offchainOracleContract: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8', offchainOracleContract: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8',
tornadoSubgraph: 'tornadocash/xdai-tornado-subgraph', tornadoSubgraph: 'tornadocash/xdai-tornado-subgraph',
subgraphs: { subgraphs: {},
tornado,
theGraph,
},
rpcUrls: { rpcUrls: {
tornadoRPC: { gnosis: {
name: 'Tornado RPC', name: 'Gnosis',
url: 'https://tornadocash-rpc.com/gnosis', url: 'https://rpc.gnosischain.com',
}, },
blockPi: { blockPi: {
name: 'BlockPi', name: 'BlockPi',
url: 'https://gnosis.blockpi.network/v1/rpc/public', url: 'https://gnosis.blockpi.network/v1/rpc/public',
}, },
oneRpc: {
name: '1rpc',
url: 'https://1rpc.io/gnosis',
},
}, },
tokens: { tokens: {
xdai: { xdai: {
@ -522,9 +551,7 @@ export const defaultConfig: networkConfig = {
echoContract: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4', echoContract: '0xa75BF2815618872f155b7C4B0C81bF990f5245E4',
offchainOracleContract: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8', offchainOracleContract: '0x0AdDd25a91563696D8567Df78D5A01C9a991F9B8',
tornadoSubgraph: 'tornadocash/avalanche-tornado-subgraph', tornadoSubgraph: 'tornadocash/avalanche-tornado-subgraph',
subgraphs: { subgraphs: {},
theGraph,
},
rpcUrls: { rpcUrls: {
publicRpc: { publicRpc: {
name: 'Avalanche RPC', name: 'Avalanche RPC',
@ -582,18 +609,24 @@ export const defaultConfig: networkConfig = {
aggregatorContract: '0x4088712AC9fad39ea133cdb9130E465d235e9642', aggregatorContract: '0x4088712AC9fad39ea133cdb9130E465d235e9642',
reverseRecordsContract: '0xEc29700C0283e5Be64AcdFe8077d6cC95dE23C23', reverseRecordsContract: '0xEc29700C0283e5Be64AcdFe8077d6cC95dE23C23',
tornadoSubgraph: 'tornadocash/sepolia-tornado-subgraph', tornadoSubgraph: 'tornadocash/sepolia-tornado-subgraph',
subgraphs: { subgraphs: {},
tornado,
},
rpcUrls: { rpcUrls: {
tornadoRPC: { pandaops: {
name: 'Tornado RPC', name: 'ethpandaops',
url: 'https://tornadocash-rpc.com/sepolia', url: 'https://rpc.sepolia.ethpandaops.io',
}, },
sepolia: { sepolia: {
name: 'Sepolia RPC', name: 'Sepolia RPC',
url: 'https://rpc.sepolia.org', url: 'https://rpc.sepolia.org',
}, },
stackup: {
name: 'Stackup',
url: 'https://public.stackup.sh/api/v1/node/ethereum-sepolia',
},
onerpc: {
name: '1rpc',
url: 'https://1rpc.io/sepolia',
},
}, },
tokens: { tokens: {
eth: { eth: {

@ -1001,7 +1001,7 @@
resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975" resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975"
integrity sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q== integrity sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==
"@typescript-eslint/eslint-plugin@8.6.0": "@typescript-eslint/eslint-plugin@^8.6.0":
version "8.6.0" version "8.6.0"
resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.6.0.tgz#20049754ff9f6d3a09bf240297f029ce04290999" resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.6.0.tgz#20049754ff9f6d3a09bf240297f029ce04290999"
integrity sha512-UOaz/wFowmoh2G6Mr9gw60B1mm0MzUtm6Ic8G2yM1Le6gyj5Loi/N+O5mocugRGY+8OeeKmkMmbxNqUCq3B4Sg== integrity sha512-UOaz/wFowmoh2G6Mr9gw60B1mm0MzUtm6Ic8G2yM1Le6gyj5Loi/N+O5mocugRGY+8OeeKmkMmbxNqUCq3B4Sg==