Helper method to accumulate cost while checking limit.
Helper method to accumulate cost while checking limit.
current cost value
additional cost to add to the current value
total cost limit
new increased cost when it doesn't exceed the limit
Convert SigmaDsl representation of tuple to ErgoTree serializable representation.
Tries to reconstruct RType of the given value.
Tries to reconstruct RType of the given value. If not successfull returns failure.
Transforms RType descriptor of SigmaDsl, which is used during evaluation, to the corresponding serializable ErgoTree type descriptor,
Transforms a serializable ErgoTree type descriptor to the corresponding RType descriptor of SigmaDsl, which is used during evaluation.
Convert ErgoTree serializable representation of tuple to SigmaDsl representation.