Authority
Overview
License: Apache 2.0
contract Authority is Owned, IAuthorityAuthor: Gabriele Rigo - gab@rigoblock.com
Modifiers info
onlyWhitelister
modifier onlyWhitelister()Functions info
constructor
constructor(address newOwner)addMethod (0xcd29d473)
function addMethod(
bytes4 selector,
address adapter
) external override onlyWhitelisterAllows a whitelister to whitelist a method.
Parameters:
selector
bytes4
Bytes4 hex of the method selector.
adapter
address
Address of the adapter implementing the method.
removeMethod (0xd9efcc1e)
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 (0xc91b0149)
Allows the owner to set whitelister permission.
Parameters:
whitelister
address
Address of the whitelister.
isWhitelisted
bool
Bool whitelisted.
setAdapter (0x332f6465)
Allows owner to set extension adapter address.
Parameters:
adapter
address
Address of the target adapter.
isWhitelisted
bool
Bool whitelisted.
setFactory (0x71013c10)
Allows an admin to set factory permission.
Parameters:
factory
address
Address of the target factory.
isWhitelisted
bool
Bool whitelisted.
isWhitelistedFactory (0xdcb7a3e0)
Provides whether a factory is whitelisted.
Parameters:
target
address
Address of the target factory.
Return values:
[0]
bool
Bool is whitelisted.
getApplicationAdapter (0xc348fa19)
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 (0x7d0c269f)
Provides whether an address is whitelister.
Parameters:
target
address
Address of the target whitelister.
Return values:
[0]
bool
Bool is whitelisted.
Last updated