Skip to content

seamless-protocol/aave-helpers

This branch is 83 commits behind bgd-labs/aave-helpers:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ffdfec5 ยท Mar 24, 2024
Mar 7, 2024
Jan 24, 2024
Mar 14, 2024
Mar 24, 2024
Mar 14, 2024
Sep 21, 2023
Mar 22, 2024
Mar 24, 2024
Mar 22, 2024
Jan 12, 2024
Mar 14, 2024
Feb 19, 2024
Jun 30, 2022
Jun 30, 2022
Jun 30, 2022
Jun 29, 2023
Jun 30, 2022
Jan 15, 2024
Nov 8, 2023
Jan 15, 2024
Mar 24, 2024
Mar 23, 2023
Mar 24, 2024

Repository files navigation

BGD <> AAVE helpers

This package contains various contracts which allow you to streamline testing within the aave protocol in foundry.

Development

This project uses Foundry. See the book for detailed instructions on how to install and use Foundry.

Some of the tooling relies on external calls via ffi to aave-cli. Therefore you need to install aave-cli locally.

Setup

cp .env.example .env
forge install
yarn

Usage

GovHelpers (deprecated)

These helpers allow you to create and execute proposals on L1 so you don't have to care about having enough proposition power, timings, etc.

GovV3Helpers

These helpers allow the creation of proposal for aave governance v3.

The GovernanceV3Helpers also contain scripts to cast a vote directly via foundry. To do so just run make vote proposalId=n support=true/false.

ProxyHelpers

These helpers allow you to fetch the current implementation & admin for a specified proxy.

BridgeExecutorHelpers

These helpers allow you to simulate execution of proposals on governance controlled Aave V2/V3 pools.

ProtocolV3TestBase

The ProtocolV3TestBase is intended to be used with proposals that alter a V3 pool. While the helpers are libraries, you can use from where ever you want ProtocolV3TestBase is intended to be inherited from in your test via is ProtocolV3TestBase.

When inheriting from ProtocolV3TestBase you have access to methods to create readable configuration snapshots of a pool and e2e tests of a pool.

ProtocolV2TestBase

Analog to ProtocolV3TestBase but for v2 pools.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 97.9%
  • Makefile 2.1%