openzeppelin_access 1.0.0

OpenZeppelin Contracts written in Cairo for Starknet, a decentralized ZK Rollup

Readme

Access Control

NOTE: This document is better viewed at https://docs.openzeppelin.com/contracts-cairo/1.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.

Interfaces

Components

Metadata

Version 1.0.0

Uploaded 22 hours ago

Size 8.3 KB

Installation

Run the following command in your project dir

scarb add openzeppelin_access@1.0.0

Or add the following line to your Scarb.toml

openzeppelin_access = "1.0.0"

Monthly downloads

Links

Repository github.com/OpenZeppelin/cairo-contracts

Documentation docs.openzeppelin.com/contracts-cairo

Keywords

  • openzeppelin
  • starknet
  • contracts
  • standards
  • access

Owners