- Go to https://admin.buildergym.xyz/code-tasks.
- You’ll see a list of existing Code Tasks (if any). To create a new one, click the “Add Coding Task” button.
-
Name:
- Enter a name for the coding task.
- This name will appear in the Task Type dropdown menu when you create a Task Message.
-
Description:
- Write the challenge description in Markdown format.
- This will be displayed to the user when they start the task. Example: ### Deploy Your First Smart Contract Write a Solidity smart contract that implements a simple wallet with a `deposit` and `withdraw` function.
-
Hint:
- Add a hint in Markdown format.
- This will be visible when the user clicks the “Hint” button in the IDE. Example: Check out Solidity’s documentation on [function modifiers](https://docs.soliditylang.org) to secure your contract.
-
Language(Currently inactive):
- Choose the programming language. This has no effect on functionality for now, but can be updated later.
-
TaskContent(Required):
- Provide a GitHub URL to the starter content.
- This content will load into the user’s workspace the first time they open the task.
- Example: A skeleton smart contract or starter code.
-
ShowAnswerContent(Required):
- Provide a GitHub URL to the solution file.
- If the user clicks “Show Answer”, this content will replace the task content in their IDE.
- Example: A completed and correct version of the contract or code. Also your repo should contain /test folder with unit-tests, it is required, but the tests themselves may be empty. Example test code:
- When creating a Task Message, you’ll see a dropdown for Task Type.
- Select the Code Task you created earlier from the dropdown.
- Configure other task settings (e.g., completion points, additional checks) as needed.