Listening for events in clone contracts in Sentinel

Hi,

I understand defender - sentinel can be used to listen for events in a smart contract and act upon it. I have a factory contract which clones proxy contracts based on an implementation contract (using openzeppelin's clone.sol).

I just wanna know would Sentinal react to the delegate call made by proxy contract to the implementation contract.

Do I need to just create a sentinel with the Implementation contract address?

Hi @pinoybai,

I just wanna know would Sentinal react to the delegate call made by proxy contract to the implementation contract.

Do I need to just create a sentinel with the Implementation contract address?

Sentinels can recognize proxies so what you need to do is setup a sentinel pointed at the proxy contract address, not the implementation. However, sentinels at the moment only allow you to monitor one address at a time, so you will need setup a sentinel for each contract.

1 Like