UNPKG

@nori-zk/mina-token-bridge

Version:

A Mina zk-program contract allowing users to mint tokens on Nori Bridge.

29 lines 786 B
/** * Simple worker demonstrating basic request/response behavior. */ export class EchoWorker { /** * Echoes back the input message. * @param req - Object containing the message to echo * @returns Object containing the echoed message */ async echo(req) { return { echoed: `Echo: ${req.msg}` }; } /** * Converts the input message to uppercase. * @param req - Object containing the message to shout * @returns Object containing the uppercase message */ async shout(req) { return { upper: req.msg.toUpperCase() }; } } /** * Proxy spec for EchoWorker. */ export const workerSpec = { echo: async (req) => ({ echoed: '' }), shout: async (req) => ({ upper: '' }), }; //# sourceMappingURL=worker.js.map