Alluvial Finance Inc.
Allowlist (v1)
This contract handles the list of allowed recipients.All accounts have an uint256 value associated with their addresses where each bit represents a right in the system. The DENY_MASK defined the mask used to identify if the denied bit is on, preventing users from interacting with the system
Accept the transfer of ownership
Only callable by the pending admin. Resets the pending admin if successful.
Retrieves the current admin address
_0
address
The admin address
Retrieves the allower address
_0
address
The address of the allower
Retrieves the denier address
_0
address
The address of the denier
Retrieve the current pending admin address
_0
address
The pending admin address
This method retrieves the raw permission value
_account
address
Recipient to verify
_0
uint256
The raw permissions value of the account
This method returns true if the user has the expected permission ignoring any deny list membership
_account
address
Recipient to verify
_mask
uint256
Combination of permissions to verify
_0
bool
True if mask is respected
Initializes the allowlist
_admin
address
Address of the Allowlist administrator
_allower
address
Address of the allower
Initializes the allowlist denier
_denier
address
Address of the denier
This method returns true if the user has the expected permission and is not in the deny list
_account
address
Recipient to verify
_mask
uint256
Combination of permissions to verify
_0
bool
True if mask is respected and user is allowed
This method returns true if the user is in the deny list
_account
address
Recipient to verify
_0
bool
True if user is denied access
This method should be used as a modifier and is expected to revert if the user hasn't got the required permission or if the user is in the deny list.
_account
address
Recipient to verify
_mask
uint256
Combination of permissions to verify
Proposes a new address as admin
This security prevents setting an invalid address as an admin. The pending admin has to claim its ownership of the contract, and prove that the new address is able to perform regular transactions.
_newAdmin
address
New admin address
Sets the allow permissions for one or more accounts
This function is for allocating or removing deposit, redeem or donate permissions. This function could be used to give any permissions that we come up with in the future. An address which was denied has to be undenied first before they could be given any permission(s).
_accounts
address[]
Accounts to update
_permissions
uint256[]
New permission values
Changes the allower address
_newAllowerAddress
address
New address allowed to edit the allowlist
Changes the denier address
_newDenierAddress
address
New address allowed to edit the allowlist
Sets the deny permissions for one or more accounts
This function is for allocating or removing deny permissions. An address which is undenied has to be given permissions again for them to be able to deposit, donate or redeem.
_accounts
address[]
Accounts to update
_permissions
uint256[]
New permission values
Retrieves the version of the contract
_0
string
Version of the contract
Emitted when the contract is properly initialized
version
uint256
New version of the contracts
cdata
bytes
Complete calldata that was used during the initialization
The admin address changed
admin indexed
address
New admin address
The stored allower address has been changed
allower indexed
address
The new allower address
The permissions of several accounts have changed
accounts
address[]
List of accounts
permissions
uint256[]
New permissions for each account at the same index
The stored denier address has been changed
denier indexed
address
The new denier address
The pending admin address changed
pendingAdmin indexed
address
New pending admin address
Allower can't remove deny permission
Allower can't set deny permission
The account is denied access
_account
address
The denied account
The provided accounts list is empty
An error occurred during the initialization
version
uint256
The version that was attempting to be initialized
expectedVersion
uint256
The version that was expected
The address is zero
The provided accounts and permissions list have different lengths
The operator is unauthorized for the caller
caller
address
Address performing the call