Skip to content

Commit

Permalink
move deserializers that we use from api schema (#8699)
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Harris <paul.harris@consensys.net>
  • Loading branch information
rolfyone authored Oct 9, 2024
1 parent f29119a commit 7397737
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@
* specific language governing permissions and limitations under the License.
*/

package tech.pegasys.teku.provider;
package tech.pegasys.teku.validator.client.proposerconfig.loader;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonDeserializer;
import java.io.IOException;
import tech.pegasys.teku.bls.BLSPublicKey;

public class BLSPublicKeyDeserializer extends JsonDeserializer<BLSPublicKey> {
class BLSPublicKeyDeserializer extends JsonDeserializer<BLSPublicKey> {
@Override
public BLSPublicKey deserialize(final JsonParser p, final DeserializationContext ctxt)
throws IOException {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/

package tech.pegasys.teku.provider;
package tech.pegasys.teku.validator.client.proposerconfig.loader;

import com.fasterxml.jackson.core.JsonGenerator;
import com.fasterxml.jackson.databind.JsonSerializer;
Expand All @@ -20,7 +20,7 @@
import java.util.Locale;
import tech.pegasys.teku.bls.BLSPublicKey;

public class BLSPublicKeySerializer extends JsonSerializer<BLSPublicKey> {
class BLSPublicKeySerializer extends JsonSerializer<BLSPublicKey> {
@Override
public void serialize(
final BLSPublicKey value, final JsonGenerator gen, final SerializerProvider serializers)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
import tech.pegasys.teku.infrastructure.exceptions.InvalidConfigurationException;
import tech.pegasys.teku.infrastructure.http.UrlSanitizer;
import tech.pegasys.teku.infrastructure.jackson.deserializers.bytes.Bytes48KeyDeserializer;
import tech.pegasys.teku.provider.BLSPublicKeyDeserializer;
import tech.pegasys.teku.provider.BLSPublicKeySerializer;
import tech.pegasys.teku.validator.client.ProposerConfig;

public class ProposerConfigLoader {
Expand Down

0 comments on commit 7397737

Please sign in to comment.