IDynamicJobs.sol
Methods
executeJob(address[],bytes[],bytes[])
Solidity
function executeJob(address[] _targetAddresses, bytes[] _userProvidedData, bytes[] _strategyProvidedData) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
_targetAddresses | address[] | undefined |
_userProvidedData | bytes[] | undefined |
_strategyProvidedData | bytes[] | undefined |
registerJob(bytes[],address[],string,string)
Solidity
function registerJob(bytes[] _userProvidedData, address[] _targetAddresses, string _name, string _ipfsForJobDetails) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
_userProvidedData | bytes[] | undefined |
_targetAddresses | address[] | undefined |
_name | string | undefined |
_ipfsForJobDetails | string | undefined |
registerJobAndDepositGas(bytes[],address[],string,string)
Solidity
function registerJobAndDepositGas(bytes[] _userProvidedData, address[] _targetAddresses, string _name, string _ipfsForJobDetails) external payable
Parameters
Name | Type | Description |
---|---|---|
_userProvidedData | bytes[] | undefined |
_targetAddresses | address[] | undefined |
_name | string | undefined |
_ipfsForJobDetails | string | undefined |
setJobState(bytes32,uint256)
Solidity
function setJobState(bytes32 _jobHash, uint256 _toggle) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
_jobHash | bytes32 | undefined |
_toggle | uint256 | undefined |
withdrawGas(uint256,address)
Solidity
function withdrawGas(uint256 _amount, address payable to) external nonpayable
Parameters
Name | Type | Description |
---|---|---|
_amount | uint256 | undefined |
to | address payable | undefined |
Events
JobExecuted
Solidity
event JobExecuted(bytes32 jobHash, address executor)
Parameters
Name | Type | Description |
---|---|---|
jobHash | bytes32 | undefined |
executor | address | undefined |
JobRegistered
Solidity
event JobRegistered(bytes[] jobInfo, address[] targetAddresses, bytes32 jobHash, string name, string ipfsForJobDetails)
Parameters
Name | Type | Description |
---|---|---|
jobInfo | bytes[] | undefined |
targetAddresses | address[] | undefined |
jobHash | bytes32 | undefined |
name | string | undefined |
ipfsForJobDetails | string | undefined |
JobToggledByCreator
Solidity
event JobToggledByCreator(bytes32 jobHash, uint256 toggle)
Parameters
Name | Type | Description |
---|---|---|
jobHash | bytes32 | undefined |
toggle | uint256 | undefined |