Giter Club home page Giter Club logo

cairo-contracts's Introduction

CodeforDAO Contracts in Cairo (StarkNet)

Base on, build upon and code for DAOs.

Make DAO the next generation of productivity tools for global collaboration.

Follow us on Twitter @codefordao.

mit license

This project is a work in progress, it has not been audited for code security and is being deployed in local development and test networks at this time. Please use with caution.

The CodeforDAO contract is a set of DAO infrastructure and efficiency tools with member NFT at its core.

It is centered on a set of membership contracts for the ERC721 protocol, the creation of its counterpart share contracts, two parallel governance frameworks and a timelock vault contract.

It introduces some basic features to DAO, including vault contracts for self-service participation in investments, a set of modular frameworks to support aggressive governance.

Read the full documents in this Solidity Repo of CodeforDAO contracts

Set up the project

Before creating virtual environment, please make sure to install Python 3.7.12 using the Python version management tool and activate that version.

Create a Python virtual environment

python -m venv env
source env/bin/activate

Install the requirements

pip install -r requirements.txt

Notice: this project use the latest version of OpenZeppelin contract for Cairo instead of the stable release of it.

Compile

nile compile --directory src

Running tests

Running spec tests where you can find them in ./test folder

$ pytest tests

Use this module in your project

Note: these smart contracts are not designed to be library contracts(except Module.cairo), and you can fork these contracts locally to modify them yourself, rather than importing them directly by a git link.

pip install git+https://github.com/CodeforDAO/cairo-contracts.git

License

This project is released under the MIT.

cairo-contracts's People

Contributors

guo-yu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

yneear zhu1971

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.