Deserializes an OracleJob from on-chain buffer data
Serialized OracleJob data as Buffer or Uint8Array
A decoded OracleJob instance
If deserialization fails or data is invalid
// From Bufferconst buffer = Buffer.from('...'); // serialized job dataconst job1 = decodeOracleJob(buffer);// From Uint8Arrayconst uint8Array = new Uint8Array([...]); // serialized job dataconst job2 = decodeOracleJob(uint8Array); Copy
// From Bufferconst buffer = Buffer.from('...'); // serialized job dataconst job1 = decodeOracleJob(buffer);// From Uint8Arrayconst uint8Array = new Uint8Array([...]); // serialized job dataconst job2 = decodeOracleJob(uint8Array);
Deserializes an OracleJob from on-chain buffer data