BuidlGuidl / eth-tech-tree-backend

A server used for grading submitted ETH Tech Tree challenges
MIT License
1 stars 2 forks source link

Script to install & update challenge branches #5

Closed MattPereira closed 4 months ago

MattPereira commented 4 months ago

Overview

In order to run a test against each of the challenges, we need a way to programmatically grab and save all the challenge code into this repo so that another script can execute the tests later.

See the install.js file from the speedrun-grader repo for an example of how this can be done

Resources

MattPereira commented 4 months ago

I think it might make sense to put all the challenge data that is currently being kept in challenges.json on both the eth-tech-tree and eth-tech-tree-backend into the database so they can share same source of truth and have matching properties.

Note that challenges.jsondoes not have contractName which is necessary to make the install script work for the etherscan contract code fetching step