Expand description
Module containing a contract’s types and functions.
interface ITIP403Registry {
enum PolicyType { WHITELIST, BLACKLIST }
function policyIdCounter() external view returns (uint64);
function policyData(uint64 policyId) external view returns (PolicyType policyType, address admin);
function isAuthorized(uint64 policyId, address user) external view returns (bool);
function createPolicy(address admin, PolicyType policyType) external returns (uint64);
function createPolicyWithAccounts(address admin, PolicyType policyType, address[] calldata accounts) external returns (uint64);
function setPolicyAdmin(uint64 policyId, address admin) external;
function modifyPolicyWhitelist(uint64 policyId, address account, bool allowed) external;
function modifyPolicyBlacklist(uint64 policyId, address account, bool restricted) external;
event PolicyAdminUpdated(uint64 indexed policyId, address indexed updater, address indexed admin);
event PolicyCreated(uint64 indexed policyId, address indexed updater, PolicyType policyType);
event WhitelistUpdated(uint64 indexed policyId, address indexed updater, address indexed account, bool allowed);
event BlacklistUpdated(uint64 indexed policyId, address indexed updater, address indexed account, bool restricted);
error Unauthorized();
error IncompatiblePolicyType();
}Modules§
- abi
- Contains dynamic ABI definitions for this contract.
Structs§
- Blacklist
Updated - Event with signature
BlacklistUpdated(uint64,address,address,bool)and selector0x94c23f8f319426f2da63b46b024acbc55fe44a5c59dc4c00d11b792515083c54. - ITIP403
Registry Instance - A
ITIP403Registryinstance. - Incompatible
Policy Type - Custom error with signature
IncompatiblePolicyType()and selector0xf1011ef5. - Policy
Admin Updated - Event with signature
PolicyAdminUpdated(uint64,address,address)and selector0x98925cfb1bc09c5b43dd0dd56d3d95aa04fb3300927580cc588c3f5dd58c15e1. - Policy
Created - Event with signature
PolicyCreated(uint64,address,uint8)and selector0x718d87917f0c4cfd1263707ef0e77c656ed8d8bfaca06152bdb0b8094142ec27. - Unauthorized
- Custom error with signature
Unauthorized()and selector0x82b42900. - Whitelist
Updated - Event with signature
WhitelistUpdated(uint64,address,address,bool)and selector0xb15f514df899cf1b4ef0dc78f930c10d98883756fa3a1a8853a98132e7f4c5a6. - create
Policy Call - Function with signature
createPolicy(address,uint8)and selector0xca5d55f6. - create
Policy Return - Container type for the return parameters of the
createPolicy(address,uint8)function. - create
Policy With Accounts Call - Function with signature
createPolicyWithAccounts(address,uint8,address[])and selector0xa2d3044f. - create
Policy With Accounts Return - Container type for the return parameters of the
createPolicyWithAccounts(address,uint8,address[])function. - isAuthorized
Call - Function with signature
isAuthorized(uint64,address)and selector0x55a1179e. - isAuthorized
Return - Container type for the return parameters of the
isAuthorized(uint64,address)function. - modify
Policy Blacklist Call - Function with signature
modifyPolicyBlacklist(uint64,address,bool)and selector0xc62b27d4. - modify
Policy Blacklist Return - Container type for the return parameters of the
modifyPolicyBlacklist(uint64,address,bool)function. - modify
Policy Whitelist Call - Function with signature
modifyPolicyWhitelist(uint64,address,bool)and selector0x71ec67a3. - modify
Policy Whitelist Return - Container type for the return parameters of the
modifyPolicyWhitelist(uint64,address,bool)function. - policy
Data Call - Function with signature
policyData(uint64)and selector0x50214329. - policy
Data Return - Container type for the return parameters of the
policyData(uint64)function. - policy
IdCounter Call - Function with signature
policyIdCounter()and selector0x3cc32f9c. - policy
IdCounter Return - Container type for the return parameters of the
policyIdCounter()function. - setPolicy
Admin Call - Function with signature
setPolicyAdmin(uint64,address)and selector0x25f7d376. - setPolicy
Admin Return - Container type for the return parameters of the
setPolicyAdmin(uint64,address)function.
Enums§
- ITIP403
Registry Calls - Container for all the
ITIP403Registryfunction calls. - ITIP403
Registry Errors - Container for all the
ITIP403Registrycustom errors. - ITIP403
Registry Events - Container for all the
ITIP403Registryevents. - Policy
Type
Functions§
- new
- Creates a new wrapper around an on-chain
ITIP403Registrycontract instance.