Code Monkey home page Code Monkey logo

citadel-contracts's Introduction

Citadel

Assemby of the Knights

The high-level concepts and progress updates can be found on Medium.

An informal video offering a summary of the smart contracts.

Getting Started

Prerequisites

Installation

Install and update submodules:

git submodule init
git submodule update

Installation

Install hardhat dependencies:

npm install

Compilation

forge build

Tests

Because the tests interact with mainnet contracts, tests must be run in mainnet fork mode.

forge test --fork-url <mainnet-rpc-url>

โš ๏ธ Some tests are currently failing, they are under active development

Hardhat deploy

Hardhat Ganace is more reliable than ganache itself for UI testing so we provide an integration with hardhat as well. This will be run the deploy script on default network, but don't be shy to use other hardhat options for it

npx hardhat run scripts/deploy-local.js --network localhost

For deploying using mock cvx and wbtc use this script

npx hardhat run scripts/deploy-mock.js --network YOUR_SELECTED_NETWORK

For minting mock wbtc or cvx use this tasks

npx hardhat  --network YOUR_SELECTED_NETWORK  mint-wbtc --address YOUR_SELECTED_ADDRESS --amount YOUR_SELECTED_AMOUNT
npx hardhat  --network YOUR_SELECTED_NETWORK  mint-cvx --address YOUR_SELECTED_ADDRESS --amount YOUR_SELECTED_AMOUNT

System Overview

An informal video offering a summary of the system.

Contract / Subsystem Overviews

Codearena: Audit Scope & Assumptions

  • Assume all allocated role permissions are correct in the setup of the system.

    • e.g. holders of CONTRACT_GOVERNANCE_ROLE won't rug or set malicious permissions for other roles.
    • However, if roles can be set in an unintended manner, this is a very valid finding,

    See BaseFixture.sol for how the system components are wired together in practice.

What's in scope?

citadel-contracts's People

Contributors

ajand avatar dapp-whisperer avatar fatimanaz avatar gallodasballo avatar harleythedogc4 avatar sajanrajdev avatar shuklaayush 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.