Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```