Commit a302f04
fix(abi): handle imports in
`leo abi` on a `.aleo` file that declares imports now loads each dependency
from a sibling `imports/` directory (or `--imports-dir`) before disassembling.
With `-o DIR`, every ABI (main and deps) is written to `<DIR>/<name>.abi.json`.
Network builtins like `credits.aleo` are picked up from the snarkVM `Process`
and don't need to be on disk.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>leo abi (#29437)1 parent f65890d commit a302f04
14 files changed
Lines changed: 906 additions & 33 deletions
File tree
- crates
- abi/src
- disassembler/src
- leo/src
- cli/commands
- tests
- expectations/cli/test_abi_from_aleo
- contents
- importer_out
- imports
- simple_out
- tests/cli/test_abi_from_aleo
- contents
- imports
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
129 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
130 | 143 | | |
131 | 144 | | |
132 | 145 | | |
| |||
0 commit comments