Skip to content

Latest commit

 

History

History
60 lines (37 loc) · 1.96 KB

README.md

File metadata and controls

60 lines (37 loc) · 1.96 KB

MantleDA

The current version of MantleDA is powered by EigenDA technology and licensed by EigenLabs.

EigenLayer

EigenLayer (formerly 'EigenLayr') is a set of smart contracts deployed on Ethereum that enable restaking of assets to secure new services. At present, this repository contains both the contracts for EigenLayer and a set of general "middleware" contracts, designed to be reuseable across different applications built on top of EigenLayer.

Click the links in the Table of Contents below to access more specific documentation. We recommend starting with the EigenLayer Technical Specification to get a better overview before diving into any of the other docs.

Table of Contents

Design Docs

Flow Docs

Installation and Running Tests / Analyzers

Installation

foundry up

This repository uses Foundry as a smart contract development toolchain.

See the Foundry Docs for more info on installation and usage.

Run Tests

forge test -vv

Run Static Analysis

solhint 'src/contracts/**/*.sol'

slither .

Generate Inheritance and Control-Flow Graphs

first install surya

then run

surya inheritance ./src/contracts/**/*.sol | dot -Tpng > InheritanceGraph.png

and/or

surya graph ./src/contracts/middleware/*.sol | dot -Tpng > MiddlewareControlFlowGraph.png

and/or

surya mdreport surya_report.md ./src/contracts/**/*.sol