Parses a token module event, decoding the details from CBOR format.
The parsed token module event with decoded details.
const parsedEvent = parseTokenModuleEvent(encodedEvent);switch (parsedEvent.type) { // typed details are now available, e.g.: case TokenOperationType.AddAllowList: console.log(parsedEvent.details.target); ... default: console.warn('Unknown event encountered:', parsedEvent);}
The token module event to parse.
Generated using TypeDoc
Parses a token module event, decoding the details from CBOR format.
Returns
The parsed token module event with decoded details.
Example