{"repo":"OpenZeppelin/cairo-contracts","free":true,"listed":false,"github":"https://github.com/OpenZeppelin/cairo-contracts","clone":"git clone https://github.com/OpenZeppelin/cairo-contracts.git","description":"OpenZeppelin Contracts written in Cairo for Starknet, a decentralized ZK Rollup","language":"Rust","stars":911,"topics":["cairo","smart-contracts","starknet","ethereum","security"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"OpenZeppelin Contracts for Cairo A library for secure smart contract development written in Cairo for Starknet, a decentralized ZK Rollup. [!TIP] :mage: Not sure how to get started? Check out Contracts Wizard for Cairo — an interactive smart contract generator. Usage Prepare the environment Simply install Cairo and scarb. Set up your project Create a new project and cd into it. The contents of my project should look like this: Install the library Edit scarb.toml and add: The previous example would import the entire library. We can also add each package as a separate dependency to improve the building time by not including modules that won't be used: Build the project to download it: Using the library Open src/lib.cairo and write your contract. For example, this is how to write an ERC20-compliant contract: Learn Documentation Check out the full documentation site! Cairo - Cairo book - Cairo language documentation - Starknet documentation - Cairopractice Tooling - Scarb Development [!NOTE] You can track our roadmap and future milestones in our Github Project. OpenZeppelin Contracts for Cairo exists thanks to its contributors. There are many ways you can participate and help build high quality software, make sure to check out the contribution guide in advance. Set up the project Clone the repository: cd into it and build: Run tests Security This project is maintained by OpenZeppelin with the goal of providing a secure and reliable library of smart contract components for the Sta","default_branch":null,"files":null,"tree":[],"storefront":"/r/OpenZeppelin","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/OpenZeppelin/cairo-contracts/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}