Function createArvoEventHandler

Creates an ArvoEventHandler for processing events defined by a specific contract. Each handler manages event validation, processing, and telemetry for its contract.

const handler = createArvoEventHandler({
contract: userContract,
executionunits: 10,
handler: {
'1.0.0': async ({ event }) => {
// Process event according to contract v1.0.0
}
}
});