Closed escottalexander closed 1 month ago
I can take a crack at this. I will likely have clarification questions but can start with stubbing out a solidity contract with pseudo code. I'm thinking of taking on #2, #5, or #6 as well.
PR #31 closes this issue :)
The setup is like this;
eth-tech-tree
is a CLI for downloading, submitting and managing which challenges a user has completed. The repo that houses all the challenges in calledeth-tech-tree-challenges
. Each challenge is a new branch on that repo.Follow the example left by the Token Wrapper WETH challenge and see how that challenge is configured in the challenges.json file in the eth-tech-tree repo.
Here are the steps for adding a new challenge:
Creating a new challenge
git push
Adding the new challenge to eth-tech-tree CLI app
yarn build && yarn cli
Later, in another task, we will erase your specific solution code from the git history for your new branch in eth-tech-tree-challenges.
Multisend challenge specifics
This challenge will require the user to build a contract that is capable of sending tokens or ETH to multiple provided addresses. I would go about this by creating two separate methods, one for sending ETH and one for sending any ERC20 token. Each method will be provided an array of addresses and an array of amounts. The ERC20 method will also receive the token address. Let me know if you have any questions or ideas to make this more instructional for the end user.
It already has an object in challenges.json which has the name field 'multisend'.