Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pcaversaccio/torn-detector
Detect if a contract has been deployed in the latest (or predefined) block from an address that was previously funded through Tornado.Cash.
https://github.com/pcaversaccio/torn-detector
deployment ethereum ethersjs smart-contracts tornado-cash
Last synced: 11 days ago
JSON representation
Detect if a contract has been deployed in the latest (or predefined) block from an address that was previously funded through Tornado.Cash.
- Host: GitHub
- URL: https://github.com/pcaversaccio/torn-detector
- Owner: pcaversaccio
- License: wtfpl
- Created: 2022-04-11T12:58:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-26T18:16:12.000Z (18 days ago)
- Last Synced: 2024-10-26T20:14:39.309Z (18 days ago)
- Topics: deployment, ethereum, ethersjs, smart-contracts, tornado-cash
- Language: TypeScript
- Homepage: https://tornado.cash
- Size: 1.1 MB
- Stars: 22
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🕵️♂️ TORN Detector
[![🕵️♂️ Test TORN detector](https://github.com/pcaversaccio/torn-detector/actions/workflows/test.yml/badge.svg)](https://github.com/pcaversaccio/torn-detector/actions/workflows/test.yml)
[![License: WTFPL](https://img.shields.io/badge/License-WTFPL-blue.svg)](http://www.wtfpl.net/about/)Detect if a contract has been deployed in the latest (or predefined) block from an address that was previously funded through Tornado.Cash.
## Installation
It is recommended to install [`pnpm`](https://pnpm.io) through the `npm` package manager, which comes bundled with [Node.js](https://nodejs.org/en) when you install it on your system. It is recommended to use a Node.js version `>= 20.0.0`.
Once you have `npm` installed, you can run the following both to install and upgrade `pnpm`:
```console
npm install -g pnpm
```After having installed `pnpm`, simply run:
```console
pnpm install
```## `.env` File
You must specify the RPC URL of your mainnet node as well as your Etherscan API key in the `.env` file:
```txt
ETH_MAINNET_URL=https://eth-mainnet.alchemyapi.io/v2/
ETHERSCAN_API_KEY=6FECCD7C9B8C24...
```## Testing
Simply run
```console
pnpm test
```