4 txs
5 calls
constructor
constructor()
functions
getAddressById
viewfunction getAddressById(uint256 id) view returns (address)
getAllPaginated
viewfunction getAllPaginated(uint256 offset, uint256 limit) view returns (tuple[])
getAllWhitelisted
viewfunction getAllWhitelisted() view returns (tuple[])
getIdByAddress
viewfunction getIdByAddress(address user) view returns (uint256)
getLastId
viewfunction getLastId() view returns (uint256)
getUserInfo
viewfunction getUserInfo(address user) view returns (tuple)
isWhitelisted
viewfunction isWhitelisted(address user) view returns (bool)
removeFromWhitelist
nonpayablefunction removeFromWhitelist(address user)
whitelist
nonpayablefunction whitelist(address user)
events
Removed
event Removed(address indexed addr, uint256 indexed id)
Whitelisted
event Whitelisted(address indexed addr, uint256 indexed id, uint256 timestamp)
errors
AlreadyWhitelisted
error AlreadyWhitelisted()
NotWhitelisted
error NotWhitelisted()
NullAddress
error NullAddress()
OutOfBounds
error OutOfBounds()
SafeCastOverflowedUintDowncast
error SafeCastOverflowedUintDowncast(uint8 bits, uint256 value)
creation bytecode
0x60808060405234601a57600160025561086b908161001f8239f35b5f80fdfe60806040526004361015610011575f80fd5b5f3560e01c806324713556146100a45780633af32abf1461009f5780634245b7af1461009a5780636386c1c7146100955780638ab1d681146100905780638d80c9221461008b5780639b19251a14610086578063a8e5862d146100815763dff3b4971461007c575f80fd5b610674565b610657565b61048b565b610450565b61037f565b6102d5565b610235565b6101f5565b34610164576040366003190112610164576004356024356002549081831015610155578215610155576100d68161070c565b905f5b8385108061014c575b156101285761011c61012291865f525f60205261010160405f206107bb565b61010b8287610793565b526101168186610793565b50610785565b94610785565b936100d9565b826101376101489282516107f5565b815103815260405191829182610168565b0390f35b508181106100e2565b632d0483c560e21b5f5260045ffd5b5f80fd5b60206040818301928281528451809452019201905f5b81811061018b5750505090565b90919260206060826101c860019488516040809160018060a01b03815116845267ffffffffffffffff602082015116602085015201511515910152565b01940192910161017e565b6020906003190112610164576004356001600160a01b03811681036101645790565b34610164576001600160a01b0361020b366101d3565b165f52600160205260405f20545f525f602052602060ff60405f205460e01c166040519015158152f35b34610164575f36600319011261016457600254600181018082116102d05761025c9061070c565b5f916001905b8082111561027957610148836101378682516107f5565b9092835f525f60205261029660ff60405f205460e01c1615151590565b6102c6576102ba6102c0916101016102b5875f525f60205260405f2090565b6107bb565b93610785565b90610262565b926102c090610785565b610771565b34610164576102e3366101d3565b6102eb6106f2565b5060018060a01b03165f52600160205260405f20545f525f60205261014860405f2060ff6103176106b5565b915460018060a01b038116835267ffffffffffffffff8160a01c16602084015260e01c16151560408201526040519182918281516001600160a01b0316815260208083015167ffffffffffffffff169082015260409182015115159181019190915260600190565b34610164576001600160a01b03610395366101d3565b16805f52600160205260405f205490815f525f60205260ff60405f205460e01c1615610441575f828152602081905260409020805460ff60e01b1916905561041b6103df42610802565b6103f0845f525f60205260405f2090565b805467ffffffffffffffff60a01b191660a09290921b67ffffffffffffffff60a01b16919091179055565b7fbe80a446a00b8794a7d05e8386915bdde937fe8b48da8d16175a5362b4c3f4f85f80a3005b630b094f2760e31b5f5260045ffd5b3461016457602036600319011261016457600435600254811015610155575f525f602052602060018060a01b0360405f205416604051908152f35b3461016457610499366101d3565b6001600160a01b0381168015610648576001600160a01b0382165f90815260016020526040902054916104e06104d6845f525f60205260405f2090565b5460e01c60ff1690565b610639576104ed42610802565b9083156105d6575b7f1b2d5773afec568c98779f6b1382306a08df138d18b1118d2ec11fece4d1e8b5916105b66105d1926105386105296106b5565b6001600160a01b039092168252565b67ffffffffffffffff8316602082015260016040820152610560875f525f60205260405f2090565b81518154602084015167ffffffffffffffff60a01b60a09190911b166001600160a01b039092166001600160e01b0319909116171781559060400151815460ff60e01b191690151560e01b60ff60e01b16179055565b60405167ffffffffffffffff90911681529081906020820190565b0390a3005b92506105d17f1b2d5773afec568c98779f6b1382306a08df138d18b1118d2ec11fece4d1e8b5916105b66002549561061561061088610785565b600255565b6001600160a01b0381165f90815260016020526040902087905592505091506104f5565b63b73e95e160e01b5f5260045ffd5b63e99d5ac560e01b5f5260045ffd5b34610164575f366003190112610164576020600254604051908152f35b34610164576001600160a01b0361068a366101d3565b165f526001602052602060405f2054604051908152f35b634e487b7160e01b5f52604160045260245ffd5b604051906060820182811067ffffffffffffffff8211176106d557604052565b6106a1565b67ffffffffffffffff81116106d55760051b60200190565b6106fa6106b5565b905f82525f60208301525f6040830152565b90610716826106da565b60405190601f01601f1916810167ffffffffffffffff8111828210176106d557604052828152809261074a601f19916106da565b01905f5b82811061075a57505050565b6020906107656106f2565b8282850101520161074e565b634e487b7160e01b5f52601160045260245ffd5b5f1981146102d05760010190565b80518210156107a75760209160051b010190565b634e487b7160e01b5f52603260045260245ffd5b9060ff6107c66106b5565b92546001600160a01b038116845260a081901c67ffffffffffffffff16602085015260e01c1615156040830152565b919082039182116102d057565b67ffffffffffffffff811161081e5767ffffffffffffffff1690565b6306dfcc6560e41b5f52604060045260245260445ffdfea264697066735822122095fc90d8e896db7314c90d6a3741cd9cde5c4d20cb012d8d273e3d5bf49fbd3a64736f6c634300081c0033