Task Drafts
Create draft task
Inputs
Code
```solidity
function createDraftTask(
bytes calldata _metadata,
uint64 _startDate,
uint64 _endDate,
CreateTaskInfo calldata _taskInfo
) external {
// Could also add approve ERC20's of budget here
// Currently the DAO should approve select ERC20's in advance (once) for unlimited spending
IDAO.Action[] memory actions = new IDAO.Action[](1);
{
bytes memory callData = abi.encodeWithSelector(
tasks.createTask.selector,
_taskInfo.metadata,
_taskInfo.deadline,
_taskInfo.budget,
_taskInfo.manager,
_taskInfo.preapproved
);
actions[0] = IDAO.Action(address(tasks), 0, callData);
}
governancePlugin.createPluginProposal(
_metadata,
actions,
0,
_startDate,
_endDate
);
}
```Update Addresses
Inputs
Code
Last updated
