When a task is created, there are two key components that must be uploaded to the Koii Network to initiate the task.
- Task function — This function contains the core logic of the task executable and submits the proof of the work done by participating nodes to K2. Learn more
- Audit function — This function audits other participating nodes. Learn More
- Distribution function — This function creates the distribution list and submits it on-chain. Learn More
Task metadata is essential structured data that provides valuable information about a Koii task. By examining the metadata, node operators can gain a comprehensive understanding of a specific task. It is highly recommended to include key details such as the minimum computer specifications and reward structure within the metadata. This inclusion allows node operators to have a clear understanding of how rewards will be distributed, minimizing any potential confusion or uncertainty when executing your task.
Task metadata sample:
name: 'Sample Task',
description: 'This a demo task',
os: [ 'Linux', 'Windows', 'MacOS' ],
"minimum stake amount": '5',
"total bounty amount" : '10000000',
"bounty amount per round": '10',
"distribution per round": '0.15',
"distribution mechanism": "every node gets fixed amount of reward every round",
"stake dependence": "rewards do not depend on stake",
"time dependence": "longer staking does not mean more reward"
There are two types of task metadata:
Data that is stored on an IPFS metadata file - which is done on task creation
- Task manager — K2 wallet address of task creator.
- Task description — An optional field for adding a detailed description of the task.
- Task name — Name of the task.
Data that are stored on K2 - updated over time and reflect the latest state of the task