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
@@ -244,25 +242,25 @@ Browse all modules, structs, functions, and events used across Aave's V3 Aptos p
244
242
245
243
---
246
244
247
-
## 📜 Running Scripts
245
+
## 📜 Running Examples
248
246
249
-
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.
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. They are all located under the `./examples` packages at root level.
250
248
251
-
### 🛠️ Compile Scripts
249
+
### 🛠️ Compile Example Scripts
252
250
253
-
Scripts are compiled separately from the core packages:
251
+
Example are compiled separately via calling the main commands listed under `./examples/Makefile`:
254
252
255
253
```bash
256
-
# For testnet deployments
254
+
# For testnet
257
255
make compile-scripts-testnet
258
256
259
-
# For mainnet deployments
257
+
# For mainnet
260
258
make compile-scripts-mainnet
261
259
```
262
260
263
261
### 🚀 Execute Example Scripts
264
262
265
-
Once compiled, scripts can be executed against the target network. For example:
263
+
Once compiled, scripts can be executed against the target network compiled above. For example:
266
264
267
265
```bash
268
266
# Simple flashloan example
@@ -272,8 +270,7 @@ make execute-flashloan-simple
272
270
make execute-flashloan-complex
273
271
```
274
272
275
-
Each script corresponds to a .mv compiled Move script under `aave-scripts/build/AaveScripts/bytecode_scripts/`.
276
-
They are executed via aptos move run-script, with arguments such as asset addresses and flashloan amounts passed in from the Makefile.
273
+
Each script corresponds to a .mv compiled Move script under `./examples/build/AaveScripts/bytecode_scripts/`. They are executed via aptos move run-script, with arguments such as asset addresses and flashloan amounts passed in from the Makefile.
277
274
278
275
🔍 These scripts are primarily intended as examples and tests of protocol functionality, such as taking and repaying flashloans.
0 commit comments