跳到主要内容

IJBPermissions

Git Source

Functions

WILDCARD_PROJECT_ID

function WILDCARD_PROJECT_ID() external view returns (uint256);

permissionsOf

function permissionsOf(address operator, address account, uint256 projectId) external view returns (uint256);

hasPermission

function hasPermission(
address operator,
address account,
uint256 projectId,
uint256 permissionId,
bool includeRoot,
bool includeWildcardProjectId
)
external
view
returns (bool);

hasPermissions

function hasPermissions(
address operator,
address account,
uint256 projectId,
uint256[] calldata permissionIds,
bool includeRoot,
bool includeWildcardProjectId
)
external
view
returns (bool);

setPermissionsFor

function setPermissionsFor(address account, JBPermissionsData calldata permissionsData) external;

Events

OperatorPermissionsSet

event OperatorPermissionsSet(
address indexed operator,
address indexed account,
uint256 indexed projectId,
uint8[] permissionIds,
uint256 packed,
address caller
);