openzeppelin_access 2.0.0
OpenZeppelin Contracts written in Cairo for Starknet, a decentralized ZK Rollup
NOTE: This document is better viewed at https://docs.openzeppelin.com/contracts-cairo/2.0.0/api/access
This crate provides ways to restrict who can access the functions of a contract or when they can do it.
Ownable
is a simple mechanism with a single "owner" role that can be assigned to a single contract (usually an
account). This mechanism can be useful in simple scenarios, but fine-grained access needs are likely to outgrow it.
AccessControl
provides a general role based access control mechanism. Multiple hierarchical roles can be created
and assigned each to multiple accounts.
Version 2.0.0
Uploaded 1 week ago
License non‑standard
Cairo version ^2.11.4
Size 10.4 KB
Run the following command in your project dir
scarb add openzeppelin_access@2.0.0
Or add the following line to your Scarb.toml
openzeppelin_access = "2.0.0"