code: def make_opfields( cls ):
          
          # construct fields 
          opfields = {}
          for opname in SERIALIZE_FIELDS.keys():
              opcode = NAME_OPCODES[opname]
              opfields[opcode] = SERIALIZE_FIELDS[opname]
  
          return opfields
docs: Calculate the virtulachain-required opfields dict.