You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new struct in a separate module(file) in mir module and add it to Expr enum.
The constructor should check the types of the arguments (see Fold::new, ByIndex::new, etc.).
Serialization
Implement SigmaSerializable trait and add node's op code in serialization::expr;
Implement Arbitrary trait and add serialization roundtrip PBT test for this node;
Evaluation
Implement Evaluable trait in ergotree-interpreter crate;
Add evaluation tests;
Check out existing IR node implementation (Fold, ByIndex) for details.
Check out the detailed implementation instructions for Append op in #301
Create a new struct in a separate module(file) in
mir
module and add it toExpr
enum.The constructor should check the types of the arguments (see
Fold::new
,ByIndex::new
, etc.).Serialization
SigmaSerializable
trait and add node's op code inserialization::expr
;Arbitrary
trait and add serialization roundtrip PBT test for this node;Evaluation
Evaluable
trait inergotree-interpreter
crate;Check out existing IR node implementation (
Fold
,ByIndex
) for details.Check out the detailed implementation instructions for
Append
op in #301Reference Scala version:
IR node and eval - https://github.com/ScorexFoundation/sigmastate-interpreter/blob/89afefa935d52dd83741f6530f97e4c935992f76/sigmastate/src/main/scala/sigmastate/trees.scala#L1087-L1106
The text was updated successfully, but these errors were encountered: