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
Name | Type | Description |
---|---|---|
_vaultAddress | address | the vault whose whitelist will be edited |
_addresses | address[] | 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
Name | Type | Description |
---|---|---|
_0 | address | undefined |
_1 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | uint256 | undefined |
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
Name | Type | Description |
---|---|---|
manager | address | the 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
Name | Type | Description |
---|---|---|
_vaultAddress | address | the vault whose whitelist will be edited |
_addresses | address[] | the addresses to be removed from the whitelist |
whitelistManagers(address)
Solidity
function whitelistManagers(address) external view returns (address)
Parameters
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Returns
Name | Type | Description |
---|---|---|
_0 | address | undefined |
Events
ManagerAdded
Solidity
event ManagerAdded(address vaultAddress, address manager)
Parameters
Name | Type | Description |
---|---|---|
vaultAddress | address | undefined |
manager | address | undefined |
PermissionsAdded
Solidity
event PermissionsAdded(address whitelistManager, address vault, address[] addressesAdded)
Parameters
Name | Type | Description |
---|---|---|
whitelistManager | address | undefined |
vault | address | undefined |
addressesAdded | address[] | undefined |
PermissionsRemoved
Solidity
event PermissionsRemoved(address whitelistManager, address vault, address[] addressesRemoved)
Parameters
Name | Type | Description |
---|---|---|
whitelistManager | address | undefined |
vault | address | undefined |
addressesRemoved | address[] | undefined |