Skip to content

vesuxyz/vesu-v1

Repository files navigation

VESU Contracts V1

This repository contains the Cairo contracts for VESU V1.

Overview

Screenshot 2024-05-21 at 16 26 34

Setup

Requirements

This project uses Starknet Foundry for testing. To install Starknet Foundry follow these instructions.

Install

We advise that you use nvm to manage your Node versions.

yarn

Test

scarb run test

Gas Reporting

Requires running a local devnet. You should have docker installed, then you can start the devnet by running the following command:

scarb run startDevnet
# in another terminal instance
scarb run updateGasReport

Deployment

Prerequisite

Copy and update the contents of .env.example to .env.

Declare and deploy contracts

Declare and deploy all contracts under src using the account with PRIVATE_KEY and ADDRESS specified in .env

scarb run deployProtocol
scarb run deploySepolia
scarb run deployMainnet