Advanced
phil@phil
7/16/2023

Functionality I deeply want: the ability for smart contracts to take action based on certain onchain events For example: if wallet A sends ETH to wallet B, smart contract does X Is this possible today / is anyone working on this?

In reply to @phil
moritz@moritz
7/16/2023

The closest to this I'm aware of is offchain hooks that trigger other onchain actions, like: https://docs.tenderly.co/web3-actions/intro-to-web3-actions

In reply to @phil
woj.eth@woj
7/16/2023

one way to do it is to implement a function that a searcher can call once the condition is met and get rewarded for it very expensive on mainnet and/or without token emissions tho

In reply to @phil
Michael Boyle@mboyle
7/16/2023

Someone at OP labs built something like this but I can't remember the name of the project

In reply to @phil
Idan Levin@idanlevin
7/16/2023

It's called event based smart contracts, basically allowing smart contracts to subscribe to on chain events Found some research here: https://ethresear.ch/t/event-driven-smart-contract-development/3047 I think there have been attempts, but the issue is that it introduces a lot of complexity to the VM