hats-finance / Palmera-0x5fee7541ddcd51ba9f4af606f87b2c42eea655be

Palmera hierarchical module
0 stars 1 forks source link

Audit Competition for Palmera

This repository is for the audit competition for the Palmera. To participate, submit your findings only by using the on-chain submission process on https://app.hats.finance/vulnerability .

How to participate

Overview

Tech requirements

Copy .env.example as .env and fill it with your own API KEYS (alchemy, etherscan) & mnemonic to be used locally

Foundry is used as the development framework. Please install it following the instructions:

https://book.getfoundry.sh/getting-started/installation

Init submodules

The external smart contracts dependencies are place in the lib/ folder. In order to initialize them use this command:

git submodule update --init --recursive

Compile contracts foundry

forge build or make build

Run tests foundry

Tests foundry docs

To run the tests using the local VM (anvil)

forge test

Run tests hardhat

Tests hardat docs

To run the tests using the local VM (hardhat)

yarn run test