ICoprocessor

Git Source

Defines the interface for interacting with a coprocessor contract

Functions

issueTask

Issues a task to the coprocessor

function issueTask(bytes32 machineHash, bytes calldata input, address callbackAddress) external;

Parameters

NameTypeDescription
machineHashbytes32The hash of the machine to which the task is assigned
inputbytesThe ABI-encoded input data for the task
callbackAddressaddressThe address to which the callback will be sent upon task completion