Skip to content

aave/aptos-aave-v3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

58 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Logo

Aave's V3 Protocol on Aptos

This is the official Aptos version of the Aave V3 Protocol.

CI Coverage License

πŸ“š Documentation Β  πŸ› Report Bug Β  ✨ Request Feature


β”œβ”€β”€ aave-acl                // Access control list Package
β”œβ”€β”€ aave-config             // Configurator Package
β”œβ”€β”€ aave-data               // Data & Deployment Configurations
β”œβ”€β”€ aave-large-packages     // Large Packages Package
β”œβ”€β”€ aave-math               // Math library Package
β”œβ”€β”€ aave-mock-underlyings   // Mock Underlyings Package
β”œβ”€β”€ aave-oracle             // Oracle Package
β”œβ”€β”€ aave-core               // Core Package

πŸ“Š Inter-package Dependency Graph

flowchart TD

  %% Level 1
  aave-config
  chainlink-data-feeds
  aave-large-packages
  aave-mock-underlyings

  %% Level 2
  aave-acl --> aave-config
  aave-math --> aave-config

  %% Level 3
  aave-oracle --> aave-config
  aave-oracle --> aave-acl
  aave-oracle --> chainlink-data-feeds

  %% Level 4
  aave-pool --> aave-acl
  aave-pool --> aave-config
  aave-pool --> aave-math
  aave-pool --> aave-oracle

  %% Level 5
  aave-data --> aave-acl
  aave-data --> aave-config
  aave-data --> aave-oracle
  aave-data --> aave-data
  aave-data --> aave-pool
Loading

πŸš€ Getting Started

1. 🧩 Clone the Repository

git clone https://github.com/aave/aptos-aave-v3.git && cd aptos-aave-v3

2. πŸ› οΈ Prerequisites

Make sure the following tools are installed:


πŸ§ͺ Running a Local Testnet

🧰 Option 1: Using Makefile

Start by copying .env.template to .env and editing any relevant values.

βœ… Start the testnet

make local-testnet

βœ… With indexer (e.g. for Petra Wallet support)

make local-testnet-with-indexer

πŸ”§ Configure workspace

make set-workspace-config \
  && make init-workspace-config \
  && make init-profiles \
  && make init-test-profiles \
  && make fund-profiles \
  && make fund-test-profiles

This will initialize, configure, and fund local accounts with APT.

πŸ› οΈ Compile & Deploy

make compile-all
make publish-all

🌐 View your local testnet

https://explorer.aptoslabs.com/?network=local


🐳 Option 2: Using aave-test-kit (Docker)

aave-test-kit is a local simulation environment for Aave on Aptos, inspired by Tenderly.

➑️ See the linked README for Docker-based setup and usage.


πŸ§ͺ Testing

βœ… Run Unit Tests (Move)

These do not require a local testnet.

make test-all

πŸ”¬ Run TypeScript Integration Tests

These must be run after successful contract deployment:

make ts-test

πŸ“ Generate Aptos Move Docs

Generate full module documentation across all packages:

make doc-all

Docs will be generated under each package's doc/ directory.


🧰 TypeScript SDK

A TypeScript SDK is available for interacting with the Aave V3 Protocol on Aptos directly from your applications.

πŸ“¦ Install via npm

pnpm add @aave/aave-v3-aptos-ts-sdk
# or
npm install @aave/aave-v3-aptos-ts-sdk

πŸ“˜ Explore the SDK

πŸ‘‰ View on npm Browse available functions, types, and usage examples.

πŸ“– For full usage details, please refer to the README documentation on the npm package page.


πŸ” Security Audits

All audit reports related to Aave's Move implementation on Aptos are stored in the /audits directory at the root of this repository.

πŸ“ Audit Directory Structure

/audits
β”œβ”€β”€ Certora Aave Aptos Core V3.0.2 Report.pdf
β”œβ”€β”€ Certora Aave Aptos Core V3.1-V3.3 Report.pdf
└── Certora Aave Aptos Periphery V3.0.2 Report.pdf
β”œβ”€β”€ Spearbit Aave Aptos Core V3.0.2 Report.pdf
β”œβ”€β”€ Spearbit Aave Aptos Core V3.1-V3.3 Report.pdf
└── Spearbit Aave Aptos Periphery V3.0.2 Report.pdf

πŸ“‚ Browse Audit Reports


πŸ“š Aave Move Smart Contract Docs

Official documentation for Aave's Move-based smart contracts is now available via GitHub Pages.

The docs are auto-generated from each package and published using MkDocs Material, with clean navigation and search.

πŸ“₯ Explore the Docs

πŸ‘‰ View Smart Contract Documentation Browse all modules, structs, functions, and events used across Aave's V3 Aptos packages.