Set Up Modules
How to set up the modules on your own:
This page is for instructions on setting up and running each of the different tests modules that we have described on this website. Follow the instructions here and then go to the module page that you would like to test to get specific instructions on how and when to deploy each individual contract or test.
Things Needed
Remix - Online Ethereum IDE
Can be found here: https://remix-project.org/
Scroll down to the "Start Here" where there will be four options
We recommend using the online IDE as that is what we used, however the remix desktop app is just as serviceable
Once clicking on or downloading the IDE you should have access to a space that will have example contracts, artifacts, and code as well as a getting started page.
The link to just get started on the online IDE is here (running on the 8.7 compiler): https://remix.ethereum.org/#optimize=false&runs=200&evmVersion=null&version=soljson-v0.8.7+commit.e28d00a7.js
Ganache - Truffle Suite
Can be found here: https://trufflesuite.com/ganache/
Go to the download and click
Go to your file explorer downloads and click on the APPX file to start the install
Go through the install process and then Open Ganache
MetaMask
Can be found here: https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn
This is a chrome extension so add the extension then within a google chrome browser click on MetaMask
Create an account and password
Our Code
Can be found here: https://github.com/EricWeese/Cyber-Security-in-Blockchain
Click on the green Code button then press Download Zip
Extract the files into any folder you choose
Importing Files into Remix
Open the Remix IDE
Click on the side bar the file image
Once in the workspace click the image that looks like and upload arrow It should say "Load a local file into current workspace"
This should open file explorer. Navigate to the Extracted folder with all of the files it should look like this:
Click on the module file that you want to run
then select the proper .sol file that you want to run
Then Remix will add the file to the default workspace
Click on the file to open it
Remix will look something like this:
You have now imported the specific file into remix
At this point proceed to the individual module's page and follow the steps there to run the file as it was intended.
Click the icon on the left to deploy and run transactions. In the environment select Ganach Provider.
When selected, you will need to input the Ganache JSON-RPC Endpoint. The port number can be found in Ganache by going to Settings->Server->Port Number (typically 7545 is used).