Skip to content

arbitraryexecution/forta-examples

Repository files navigation

forta-examples

This repo contains basic examples of Forta agents that monitor for specific events happening on Ethereum.

anomalous-gas-js

Monitors gas spend of transactions and fires an alert when a gas price 10 standard devations over the last 5000 transactions average is used.

anomalous-value-js

Detects transactions that have a large value relative to other transactions that interact with the same smart contract. Fires when the transaction value is 5 standard deviations above the average.

big-tx-js

Detects transactions with a value above a specific threshold and fires an alert.

blacklisted-address-js

Fires an alert when an address on a blacklist transacts.

deployment-blacklist-js

Fires an alert when a specific (blacklisted) address deploys a contract.

forta-uniswap-event-py

Fires an alert when a Deposit or Withdrawal event occurs on the WETH contract above the 5 ether threshold limit via the Uniswap V2 Router contract

forta-uniswap-py

Detects swaps occurring via the swapExactTokensForETH or swapExactETHForTokens calls on the Uniswap v2 Router contract. Fires an alert when the swap value is above 5 ether.

function-call-js

Detects transfer calls on the USDT contract. It serves as an example of how to monitor any contract for any function call.

malicious-addr-py

Checks transactions against a pre-defined list of addresses that are known to have been involved in public hacks. Fires an alert when the malicious address initiates a transaction.

transfer-ownership-js

Detects the OwnershipTransferred and RoleAdminChanged events on Ownable contracts and fires an alert when they occur.

About

forta-examples

Resources

License

Unknown, AGPL-3.0 licenses found

Licenses found

Unknown
LICENSE
AGPL-3.0
COPYING

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •