Skip to main content

IDynamicJobs.sol

Methods

executeJob(address[],bytes[],bytes[])

Solidity

function executeJob(address[] _targetAddresses, bytes[] _userProvidedData, bytes[] _strategyProvidedData) external nonpayable

Parameters

NameTypeDescription
_targetAddressesaddress[]undefined
_userProvidedDatabytes[]undefined
_strategyProvidedDatabytes[]undefined

registerJob(bytes[],address[],string,string)

Solidity

function registerJob(bytes[] _userProvidedData, address[] _targetAddresses, string _name, string _ipfsForJobDetails) external nonpayable

Parameters

NameTypeDescription
_userProvidedDatabytes[]undefined
_targetAddressesaddress[]undefined
_namestringundefined
_ipfsForJobDetailsstringundefined

registerJobAndDepositGas(bytes[],address[],string,string)

Solidity

function registerJobAndDepositGas(bytes[] _userProvidedData, address[] _targetAddresses, string _name, string _ipfsForJobDetails) external payable

Parameters

NameTypeDescription
_userProvidedDatabytes[]undefined
_targetAddressesaddress[]undefined
_namestringundefined
_ipfsForJobDetailsstringundefined

setJobState(bytes32,uint256)

Solidity

function setJobState(bytes32 _jobHash, uint256 _toggle) external nonpayable

Parameters

NameTypeDescription
_jobHashbytes32undefined
_toggleuint256undefined

withdrawGas(uint256,address)

Solidity

function withdrawGas(uint256 _amount, address payable to) external nonpayable

Parameters

NameTypeDescription
_amountuint256undefined
toaddress payableundefined

Events

JobExecuted

Solidity

event JobExecuted(bytes32 jobHash, address executor)

Parameters

NameTypeDescription
jobHashbytes32undefined
executoraddressundefined

JobRegistered

Solidity

event JobRegistered(bytes[] jobInfo, address[] targetAddresses, bytes32 jobHash, string name, string ipfsForJobDetails)

Parameters

NameTypeDescription
jobInfobytes[]undefined
targetAddressesaddress[]undefined
jobHashbytes32undefined
namestringundefined
ipfsForJobDetailsstringundefined

JobToggledByCreator

Solidity

event JobToggledByCreator(bytes32 jobHash, uint256 toggle)

Parameters

NameTypeDescription
jobHashbytes32undefined
toggleuint256undefined