First, create a fork of the mev-share-java repo in your own account so that you can work with your own copy.
To create a fork using the website
- Log in to your Github account.
- Browse to the mev-share-java repo on GitHub.
- Choose Fork in the top-right, then choose Create new fork.
- For Owner, select your username.
- For Repository name, we suggest keeping the name mev-share-java, but you can use any name.
- Optional. To contribute you need only the main branch of the repo. To include all branches, unselect the checkbox for Copy the
main
branch only. - Click Create fork.
Next, clone your fork of the repo to your local workspace.
To clone your fork to your local workspace
- Open the GitHub page for your fork of the repo, then click Sync fork.
- Click Code, then click HTTPS and copy the web URL displayed.
- Open a terminal session and navigate to the folder to use, then run the following command, replacing the URL with the URL you copied from the Git page:
git clone https://github.com/github-user-name/mev-share-java.git
The repo is automatically cloned into the mev-share-java
folder in your workspace.
Create a branch of your fork with following command (or follow the GitHub topic on branching)
git checkout -b your-branch-name
Use the following command to set the remote upstream repo:
git remote add upstream https://github.com/optimism-java/mev-share-java.git
You now have a fork of the mev-share-java repo set up in your local workspace. You can make changes to the files in the workspace, add commits, then push your changes to your fork of the repo to then create a Pull Request.
GOERLI_RPC_URL=<GOERLI_RPC_URL> SIGNER_PRIVATE_KEY=<SIGNER_PRIVATE_KEY> ./gradlew clean build
Run build and test before you submit a Pull Request.