What occurs in electroplating?

Deposition of a metal layer on a material

Deposition of a salt layer on a metal

Decomposition of a salt layer

Decomposition of a metal layer