Encoder contract defining the interface for converting decoded data to encoded format.
Common use cases:
The type of data before encoding (original/source format)
The type of data after encoding (target/transport format)
IMPORT_PATH: "@daiso-tech/core/codec/contracts"
"@daiso-tech/core/codec/contracts"
Encodes the given decoded value into encoded format. Transforms data from original format to target encoding.
The value in original format to encode
The value in encoded format
Encoder contract defining the interface for converting decoded data to encoded format.
Common use cases: