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
There is a common logic especially with regards to how transaction operations are generated from "database" types like InternalCommand, UserCommand or ZkAppCommand. The block database types (like InternalCommandMetadata) are slightly different than search types (InternallCommand) and they also ultimately transform to slightly different response types, however the logic for generating operations is the same or very similar.
I believe that the way to approach it could be to create a common trait for each type e.g. InternalCommandOperations (including fn generate_operations()) and implement it for each respective type.
The text was updated successfully, but these errors were encountered:
There is a common logic especially with regards to how transaction operations are generated from "database" types like
InternalCommand
,UserCommand
orZkAppCommand
. Theblock
database types (likeInternalCommandMetadata
) are slightly different thansearch
types (InternallCommand
) and they also ultimately transform to slightly different response types, however the logic for generating operations is the same or very similar.I believe that the way to approach it could be to create a common
trait
for each type e.g.InternalCommandOperations
(including fngenerate_operations()
) and implement it for each respective type.The text was updated successfully, but these errors were encountered: