Hey I need some suggestion. I want to store Flow’s event data in my own database, I’m having a trouble figuring out how to store the event field’s values since I’m storing for any arbitrary events (not for any known events).
I’m new to Go, since the event field’s data type is cadence.Value
and calling ToGoValue()
would give me an interface{}
which could be anything from simple integers to nested arrays, how could I serialize and store it so that I could safely deserialize it later?