[#105] Add versions of `finalizeParamCallingDoc`
Description
Problem: currently this function is tied to specific case when user has
contract parameter at the top of the stack after initial unpair
instruction. This makes this function unusable e.g. when the entire
contract is written via Indigo.
Solution: add Indigo version of finalizeParamCallingDoc
.
This required generalizing that function to accept proxy with parameter
rather that requiring it to be at the top of the stack; old behaviour is
retained in finalizeParamCallingDocP
.
Another solution is to have finalizeParamCallingDocC
which accepts the
whole ContractCode
which we eventually have even with Indigo; this
function is provided as well.
Related issue(s)
Resolves #
✅ 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.