Based on changes in #5383, I noticed the enums weren't in the c2 global and nested structs weren't supported. This PR applies the fix from #5383 and moves everything we declare into the c2 global. The rule of thumb is: everything that gets a declaration in the metadata should be prefixed with c2 (→ "interfaces" i.e. classes without functions don't have to be in c2).
Based on changes in #5383, I noticed the enums weren't in the
c2
global and nested structs weren't supported. This PR applies the fix from #5383 and moves everything we declare into thec2
global. The rule of thumb is: everything that gets a declaration in the metadata should be prefixed withc2
(→ "interfaces" i.e. classes without functions don't have to be inc2
).