Registers a CBOR encoder for the TokenAmount type with the cbor2 library.
This allows TokenAmount instances to be automatically encoded when used with
the cbor2 library's encode function.
Returns
Example
// Register the encoder registerCBOREncoder(); // Now TokenAmount instances can be encoded directly constencoded = encode(myTokenAmount);
Registers a CBOR encoder for the TokenAmount type with the
cbor2library. This allows TokenAmount instances to be automatically encoded when used with thecbor2library's encode function.Returns
Example