How aave/aptos-aave-v3 works
Project type and purpose
• This is a blockchain-centric monorepo implementing Aave V3 smart-contracts on the Aptos chain, written in Move.
• It includes:
– aave-core: a collection of inter-dependent Move packages (ACL, Pool, Oracle, Tokens, Math, Periphery, Bridge, FlashLoan, etc.)
– apterly: a TypeScript indexer and CLI for simulating and querying a local Aptos testnet
– test-suites: TypeScript e2e/integration tests using clients against deployed contracts
– Makefile and scripts to bootstrap a local Aptos testnet, compile & publish packages, run unit/test suites
File structure
• Top-level directories:
– aave-core: Move packages organized by domain (aave-acl, aave-config, aave-math, aave-oracle, aave-pool, aave-tokens, aave-periphery, aave-scripts, etc.)
– apterly: Node.js service (Dockerfile, CLI in index.ts, docker-compose, Postgres init SQL)
– test-suites: TS clients, configs, scripts, Jest tests for end-to-end scenarios
– audits, CI workflows (.github/workflows), lint & formatter configs
• Key files:
– Makefile: orchestrates local-testnet, compile-all, publish-all, test-all, ts-test
– .env.template: environment variables for local testnet and apterly
– package.json/pnpm-lock.yaml: dependencies for root and sub-projects
README for additional insights
• Describes two dev flows:
– Local testnet via Makefile + Aptos CLI
– Local testnet + Apterly (Docker Compose)
• Outlines the build-publish-test cycle for smart contracts and TS integration tests