Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hipo/tealinspector
The Teal Inspector for lovely Algorand Developers
https://github.com/hipo/tealinspector
algorand algorand-blockchain algorand-smart-contract algorand-teal
Last synced: 3 months ago
JSON representation
The Teal Inspector for lovely Algorand Developers
- Host: GitHub
- URL: https://github.com/hipo/tealinspector
- Owner: Hipo
- License: mit
- Created: 2022-11-17T04:48:33.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-17T05:17:33.000Z (about 2 years ago)
- Last Synced: 2024-04-16T02:10:42.345Z (9 months ago)
- Topics: algorand, algorand-blockchain, algorand-smart-contract, algorand-teal
- Language: Python
- Homepage: https://pypi.org/project/tealinspector/
- Size: 7.81 KB
- Stars: 15
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tealinspector
As a developer error like below is not descriptive,
```python
AlgodHTTPError: TransactionPool.Remember: transaction T4EVC7YANLFGBO5KJRIDEAYZBN3KKJC2B7VFRY4ZFMTSZOPTHBTQ: logic eval error: assert failed pc=1328. Details: pc=1328, opcodes===
&&
assert
```This package gets the lines from the "pc".
## Install the dependency
```python
pip install tealinspector
```## Use in CLI
```python
tealinspector --network mainnet --application_id 942781578 --program_counter 1328
```Additionally,
- `--network` is optional. The default value is `mainnet`.
- `--line_count` parameter can be passed. The default value is `25`.### Output
```python
Line: 594
569 &&
570 gtxn 4 Fee
571 global MinTxnFee
572 intc 10 // 9
573 *
574 ==
575 &&
576 gtxn 4 NumAppArgs
577 intc_0 // 1
578 ==
579 &&
580 gtxna 4 Assets 0
581 bytec_2 // "global_list_asset"
582 app_global_get
583 ==
584 &&
585 gtxna 4 Accounts 1
586 bytec_1 // "global_list_owner"
587 app_global_get
588 ==
589 &&
590 gtxna 4 Accounts 2
591 bytec 8 // addr KQMEN76UOQEHGXPBXUMRGW3KFI7Z57IFXBXWO77HAXYKMISCZF5CAOOITI
592 ==
593 &&
594 assert <----------
```## About
Developed by [Hipo](https://hipolabs.com).
Licensed under MIT.