fn typed_data_types( primary_type: &str, typed_data: TypedDataSpec, ) -> BTreeMap<String, Vec<TypeField>>