Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.

Contracts written in Cairo for Starknet, a decentralized ZK Rollup

License

Notifications You must be signed in to change notification settings

LedgerHQ/ledger-cairo-contracts

Repository files navigation

Ledger Contracts for Cairo based on OpenZeppelin

Warning This repo contains highly experimental code. It has no code coverage checks. It hasn't been audited. Use at your own risk.

Prepare the environment

Simply install Cairo and scarb.

Development

Set up the project

Clone the repository:

git clone git@github.com:LedgerHQ/ledger-cairo-contracts.git

cd into it and build:

$ cd ledger-cairo-contracts
$ scarb build

Compiling lib(ledgerCairoContract) ledgerCairoContract v0.1.0 (~/ledger-cairo-contracts/Scarb.toml)
Compiling starknet-contract(ledgerCairoContract) ledgerCairoContract v0.1.0 (~/ledger-cairo-contracts/Scarb.toml)
Finished release target(s) in 10 seconds

Run tests

scarb test

Deploiement

pip install -r requirements.txt

To use invoke do not forget to set the address of the account in .env!

python3 scripts/deploy.py 
python3 scripts/invoke.py 

Security

⚠️ Warning! ⚠️ This project is still in a very early and experimental phase. It has never been audited nor thoroughly reviewed for security vulnerabilities. Do not use in production.

License

Contracts are released under the MIT License.

Special thanks to OpenZeppelin

Base contracts can be found on Github

About

Contracts written in Cairo for Starknet, a decentralized ZK Rollup

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published