Draft: [#647] Add structured logging
Description
One very desired feature - log arbitrary stuff during contract execution, and later assert that in tests. This MR implements this feature.
-
Do something with the failing tests - currently, we lose PRINT_STRUCTUREDduring conversions to untyped contract.- Add the new instruction to untyped
AbstractInstr(and extract logging stuff to a separate module)? Probably we need this for the debugger in either way. - Or avoid untype/typecheck roundtrip in the test framework? Waiting for #576 (closed).
- Add the new instruction to untyped
-
Update test primitives after #461 (closed) is done. -
Move the tests to a dedicated module - after !924 (merged) is merged.
Related issue(s)
Resolves #647
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.
Edited by Konstantin Ivanov