Request form
Cookbook may introduce a token in the future. Share and contribute to be eligible for future airdrops.
close icon
relevant tag icon
Denylistable
copy icon
DirtyCajunRice
• version 1.0.0
Utility
Upgradeable
Denylist
Blacklist
Inheritable

Denylistable

Abstract denylist contract to build off of when creating a generally-allowed but deny-listable contract

*Visit desktop site to download or deploy

Version

1.0.0

Last Publish

12/12/2022
Any contract you deploy is yours.
Fully owned and controlled by your wallet.
Documentation
Source Code
__Denylistable_init() :
This function is used to initialize the Denylistable contract. It is an internal function that is only called when the contract is first deployed. It does not have any code in it, so it does not perform any specific tasks. (autogenerated documentation)
_addDenylisted(address) :
This function adds an address to the denylist. It does this by calling the add() function on the _denylist mapping, which stores the address of the user as a key and a boolean value of true as the value. This ensures that the user is not allowed to access the contract's functions. (autogenerated documentation)
_removeDenylisted(address) :
This function removes an address from the denylist. It does this by using the remove() function from the _denylist mapping, which takes the address of the user as an argument. This function is internal and virtual, meaning that it can be accessed and overridden by other contracts. (autogenerated documentation)
isDenylisted(address) :
This function checks if a given address is present in a denylist. It takes an address as an argument and returns a boolean value indicating whether the address is present in the denylist or not. The function works by checking if the given address is present in the _denylist mapping. If the address is present, the function returns true, otherwise it returns false. (autogenerated documentation)
denylisted() :
This function returns an array of addresses that have been added to the denylist. The denylist is a mapping of addresses to booleans, where true indicates that the address has been added to the denylist. This function iterates through the mapping and returns an array of all the addresses that have been added to the denylist. (autogenerated documentation)

Get Cookin'
share iconShare

copy iconDownload Source
copy iconnpx cookbookdev i Denylistable
copy icon

Last Publish

12/12/2022

Version

1.0.0

Cookbook is free.
Any contract you deploy is yours.
Your contract is owned and controlled by you.