Giter Club home page Giter Club logo

cairo-damn-vulnerable-defi's Introduction

A set of challenges to learn offensive security of smart contracts on Starknet.

Featuring flash loans, price oracles, governance, NFTs, lending pools, smart contract wallets, timelocks, and more!

Play

Visit damnvulnerabledefi.xyz.
Note that this is an adaptation of the original set of challenges, which were written in Solidity, so you would have to use this repository to complete the challenges in Cairo.

Setup

Install Cairo compiler v2.0.1
See https://github.com/franalgaba/cairo-installer

Install Scarb version 0.5.1.
See https://github.com/software-mansion/asdf-scarb (recommended) and https://docs.swmansion.com/scarb
To confirm installation, run $ scarb --version which should output

scarb 0.5.1 (798acce7f 2023-07-05)
cairo: 2.0.1 (https://crates.io/crates/cairo-lang-compiler/2.0.1)

To test your solution, run scarb cairo-test -f <TEST_FILE_NAME>.
E.g scarb cairo-test -f side_entrance_lender_pool

Support

For Q&A, support and troubleshooting running Damn Vulnerable DeFi, go here.

Disclaimer

All Cairo code, practices and patterns in this repository are DAMN VULNERABLE and for educational purposes only.

DO NOT USE IN PRODUCTION.

cairo-damn-vulnerable-defi's People

Contributors

credence0x avatar tinchoabbate avatar dbejarano820 avatar mpetrone avatar

Stargazers

 avatar

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.