Enhance ManifestCoder for Encoding/Decoding Routine Arguments and Returned Values
[!IMPORTANT]
This pull request has breaking changes
This pull request enhances the ManifestCoder class by introducing new methods and improvements to existing ones. These changes aim to simplify the process of encoding and decoding routine arguments and returned values, improving the overall developer experience.
Changes:
ElementDescriptor:
The ElementDescriptor class has been relocated from js-moi-logic to js-moi-manifest.
Developers can now instantiate an ElementDescriptor object with a manifest object, providing more flexibility and integration with the manifest data.
ManifestCoder:
This constructor method now accepts a manifest of type LogicManifest.Manifest as input. (Breaking Change)
Manifest.encodeArguments:
This method now supports extracting routine type fields from arguments based on the routine name.
It can encode arguments into the POLO format, simplifying the developer experience.
The existing functionality remains unaffected, ensuring backward compatibility.
Enhance
ManifestCoder
for Encoding/Decoding Routine Arguments and Returned ValuesThis pull request enhances the
ManifestCoder
class by introducing new methods and improvements to existing ones. These changes aim to simplify the process of encoding and decoding routine arguments and returned values, improving the overall developer experience.Changes:
ElementDescriptor
:ElementDescriptor
class has been relocated fromjs-moi-logic
tojs-moi-manifest
.ElementDescriptor
object with a manifest object, providing more flexibility and integration with the manifest data.ManifestCoder
:LogicManifest.Manifest
as input. (Breaking Change)Manifest.encodeArguments
:ManifestCoder.decodeArguments
:These changes streamline the process of working with routine arguments and returned values within the
ManifestCoder
class.Changes include
Checklist