You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35Lines changed: 35 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -241,3 +241,38 @@ The docs are auto-generated from each package and published using [MkDocs Materi
241
241
Browse all modules, structs, functions, and events used across Aave's V3 Aptos packages.
242
242
243
243
---
244
+
245
+
## 📜 Running Scripts
246
+
247
+
In addition to Move unit tests and integration tests, this repository contains **example scripts** (such as flashloans) that demonstrate how to interact with the deployed protocol on Aptos.
248
+
249
+
### 🛠️ Compile Scripts
250
+
251
+
Scripts are compiled separately from the core packages:
252
+
253
+
```bash
254
+
# For testnet deployments
255
+
make compile-scripts-testnet
256
+
257
+
# For mainnet deployments
258
+
make compile-scripts-mainnet
259
+
```
260
+
261
+
### 🚀 Execute Example Scripts
262
+
263
+
Once compiled, scripts can be executed against the target network. For example:
264
+
265
+
```bash
266
+
# Simple flashloan example
267
+
make execute-flashloan-simple
268
+
269
+
# Complex flashloan example
270
+
make execute-flashloan-complex
271
+
```
272
+
273
+
Each script corresponds to a .mv compiled Move script under `aave-scripts/build/AaveScripts/bytecode_scripts/`.
274
+
They are executed via aptos move run-script, with arguments such as asset addresses and flashloan amounts passed in from the Makefile.
275
+
276
+
🔍 These scripts are primarily intended as examples and tests of protocol functionality, such as taking and repaying flashloans.
0 commit comments