safe-global / safe-modules

A collection of modules that can be used with the Safe contract
GNU Lesser General Public License v3.0
147 stars 73 forks source link

Emit Event on Shared Signer Configuration #456

Closed nlordell closed 3 months ago

nlordell commented 3 months ago

Fixes https://github.com/hats-finance/Safe-0x2909fdefd24a1ced675cb1444918fa766d76bdac/issues/3

This PR adds an event that is emitted on shared signer configuration. Note that the event is emitted in the context of the configured Safe account. In order to prevent event topic0 collisions, we chose an explicitly verbose name.

With respect to indexing, we explicitly chose not to index any of the fields so that it matches the Created event:

https://github.com/safe-global/safe-modules/blob/bb5e1f7360633d5ecfb175c5d8667b2a3a1b746d/modules/passkey/contracts/interfaces/ISafeSignerFactory.sol#L13-L20

To re-iterate on the reasons we chose to not index some of the fields (same reasoning applies to Created event above):