Alexander Slesarenko
Alexander Slesarenko
Closes #486 In this PR a new method Numeric.toBigEndianBytes is implemented for Byte, Short, Int, Long, BigInt types.
In this PR, IRContext cake is simplified by removing unnecessary level of abstractions, which will simplify adding new operations to ErgoScript: - [removed Library trait (merged with Scalan)](https://github.com/ScorexFoundation/sigmastate-interpreter/commit/302b09d494c3bdc449b6e83f0bbaf1112463caf8) -
### Problem Currently there is no way in ErgoScript to create objects of pre-defined types such as AvlTree, Header, Box, etc. It is possible to introduce new objects only by...
This new operation will allow creating AvlTree instances from parameters (which is not possible in v5.x) Details https://github.com/ScorexFoundation/sigmastate-interpreter/blob/2b72f2fddcd9ceedd84aa6bb225d6717c04c4f48/interpreter/shared/src/main/scala/sigmastate/trees.scala#L207
Numeric.toBigEndianBytes method should be added to ErgoScript and ErgoTree. Example: ```scala 512.toBigEndianBytes == Coll(0.toByte, 0.toByte, 2.toByte, 0.toByte) ```
### Problem **Problem 1: Scalability** The function `deserialize` as we have it now is not compatible with script caching. The caching assumes that the script template is fixed and only...
This is to allow CostTable parameters to be updated via soft-fork.
Use the following usability pattern in all error messages.  **Source:** https://wix-ux.com/when-life-gives-you-lemons-write-better-error-messages-46c5223e1a2f