WhitelistGuard
Inherits: MezzGuard
Author: Daniel Yamagata & Jerry Qi & Naveen Ailawadi
A Mezzanine guard that is capable of whitelisting operations that a team can execute. All non-whitelisted operations will revert. Whitelisted operations are determined by a 'controller', which is typically the parent of the 'controlled'
*Operations are whitelisted based on two sets:
A set of whitelisted contracts
A set of whitelisted selectors, which are each associated with a contract For example, if ERC20 contract 'Foo' is part of the contract set, all functions associated with it will be enabled. Similarly, if the function selector of 'bar()' is part of the whitelisted selectors for 'Foo', all calls to 'bar()' by the team will be enabled
Functions
checkTransaction
Reverts if 'to' or the function selector of 'data' for 'to' is not whitelisted. Will also revert if the operation is a delegate call or relates to the management of the owners, modules, or guard of the 'controlled' Reference: https://github.com/safe-global/safe-smart-account/blob/f03dfae65fd1d085224b00a10755c509a4eaacfe/contracts/Safe.sol#L173-L190
coreId
version
Last updated