pokt-network / pocket

Official implementation of the Pocket Network Protocol v1
https://pokt.network
MIT License
63 stars 33 forks source link

[Codec] Add new Interface Registry #909

Closed h5law closed 1 year ago

h5law commented 1 year ago

NOTE: This specific implementation is a mock, although it passes tests it may be changed depending on feedback in #906

Description

Summary generated by Reviewpad on 17 Jul 23 12:37 UTC

This pull request adds a new interface registry with the following changes:

The interface_registry.go file contains the implementation of an interface registry that handles registration and marshaling/unmarshaling of interfaces. It provides methods for registering interfaces, registering implementations, marshaling interfaces into byte arrays, and unmarshaling byte arrays into interfaces.

The interface_registry_test.go file contains tests for the interface registry implementation. It tests the registration of interfaces, registration of implementations, marshaling of interfaces, and unmarshaling of interfaces.

The codec_test.proto file is modified by adding a new message TestProtoStructure2.

Issue

Fixes #906

Type of change

Please mark the relevant option(s):

List of changes

Testing

Required Checklist

If Applicable Checklist

h5law commented 1 year ago
Screenshot 2023-07-18 at 02 00 47

Closing due to more appropriate alternative