Decodes a log emitted by an ETH contract.
Parameters
abi: a canonical ETH log event definition. Should be formatted exactly as in Solidity. Each argument must be named. Examples:NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt)AuthorizedSendersChanged(address[] senders)data: the ABI-encoded log data. Can be:0x$(jobRun.logData) (see the Direct Request page)topics: the ABI-encoded log topics (i.e., the indexed parameters)0x$(jobRun.logTopics) (see the Direct Request page)Outputs
A map containing the decoded values.
Example
decode [type="ethabidecodelog"
abi="NewRound(uint256 indexed roundId, address indexed startedBy, uint256 startedAt)"
data="$(jobRun.logData)"
topics="$(jobRun.logTopics)"]
This task will return a map with the following schema:
{
"roundId": ..., // a number
"startedBy": ..., // an address
"startedAt": ..., // a number
}