Skip to main content

WhitelistRegistry.sol

Methods

addPermissions(address,address[])

Solidity

function addPermissions(address _vaultAddress, address[] _addresses) external nonpayable
Details

add whitelist permissions for any number of addresses.

Parameters

NameTypeDescription
_vaultAddressaddressthe vault whose whitelist will be edited
_addressesaddress[]the addresses to be added to the whitelist

permissions(address,address)

Solidity

function permissions(address, address) external view returns (uint256)
Details

info, per address, of permissions. 0 = no permissions, 1 = whitelisted. This is only relevant for vaults with whitelists.

Parameters

NameTypeDescription
_0addressundefined
_1addressundefined

Returns

NameTypeDescription
_0uint256undefined

registerWhitelistManager(address)

Solidity

function registerWhitelistManager(address manager) external nonpayable
Details

function meant to be called by contracts (usually in initializer) to register a whitelist manager for that contract

Parameters

NameTypeDescription
manageraddressthe address of the vault's whitelist manager No access control, since any given contract can only modify their own data here.

revokePermissions(address,address[])

Solidity

function revokePermissions(address _vaultAddress, address[] _addresses) external nonpayable
Details

add whitelist permissions for any number of addresses.

Parameters

NameTypeDescription
_vaultAddressaddressthe vault whose whitelist will be edited
_addressesaddress[]the addresses to be removed from the whitelist

whitelistManagers(address)

Solidity

function whitelistManagers(address) external view returns (address)

Parameters

NameTypeDescription
_0addressundefined

Returns

NameTypeDescription
_0addressundefined

Events

ManagerAdded

Solidity

event ManagerAdded(address vaultAddress, address manager)

Parameters

NameTypeDescription
vaultAddressaddressundefined
manageraddressundefined

PermissionsAdded

Solidity

event PermissionsAdded(address whitelistManager, address vault, address[] addressesAdded)

Parameters

NameTypeDescription
whitelistManageraddressundefined
vaultaddressundefined
addressesAddedaddress[]undefined

PermissionsRemoved

Solidity

event PermissionsRemoved(address whitelistManager, address vault, address[] addressesRemoved)

Parameters

NameTypeDescription
whitelistManageraddressundefined
vaultaddressundefined
addressesRemovedaddress[]undefined