authority docs
Authority
_adapterBySelector
_permission
_roleToList
onlyWhitelister
constructor
addMethod
Allows a whitelister to whitelist a method. We do not save list of approved as better queried by events.
Parameters
selector
bytes4
Bytes4 hex of the method selector.
adapter
address
Address of the adapter implementing the method.
removeMethod
Allows a whitelister to remove a method.
Parameters
selector
bytes4
Bytes4 hex of the method selector.
adapter
address
Address of the adapter implementing the method.
setWhitelister
Allows the owner to set whitelister permission. Whitelister permission is required to approve methods in extensions adapter.
Parameters
whitelister
address
Address of the whitelister.
isWhitelisted
bool
Bool whitelisted.
setAdapter
Allows owner to set extension adapter address.
Parameters
adapter
address
Address of the target adapter.
isWhitelisted
bool
Bool whitelisted.
setFactory
Allows an admin to set factory permission.
Parameters
factory
address
Address of the target factory.
isWhitelisted
bool
Bool whitelisted.
isWhitelistedFactory
Provides whether a factory is whitelisted.
Parameters
target
address
Address of the target factory.
Return Values
[0]
bool
Bool is whitelisted.
getApplicationAdapter
Returns the address of the adapter associated to the signature.
Parameters
selector
bytes4
Hex of the method signature.
Return Values
[0]
address
Address of the adapter.
isWhitelister
Provides whether an address is whitelister.
Parameters
target
address
Address of the target whitelister.
Return Values
[0]
bool
Bool is whitelisted.
_changePermission
Last updated