Skip to content

IC3 Blockchain Summer Camp 2021 Project, based on HoneyBadgerSwap

License

Notifications You must be signed in to change notification settings

initc3/badgerswap-v3

Repository files navigation

BadgerSwap V3

IC3 Blockchain Summer Camp Project

Development Environment Setup

We'll use the fork and pull model, meaning that you should first create a fork of the repository, and clone this fork.

  1. Fork the project
  2. Clone your fork, e.g., if your GitHub username is alice:
git clone --recursive git@github.com:alice/badgerswap-v3.git

Once you have clone the fork, add the upstream remote:

git remote add upstream git@github.com:initc3/badgerswap-v3.git

Using alice as the username for examples, git remote --verbose would show:

git remote --verbose
origin  git@github.com:alice/badgerswap-v3.git (fetch)
origin  git@github.com:alice/badgerswap-v3.git (push)
upstream        git@github.com:initc3/badgerswap-v3.git (fetch)
upstream        git@github.com:initc3/badgerswap-v3.git (push)
  1. Build the image:
docker-compose -f dev.yml build --no-cache

Running a demo

docker-compose -f dev.yml up -d
docker exec -it badgerswap-v3_dev_1 bash
./ratel/src/compile.sh
./ratel/src/python/badgerswapv3/run.sh
python -m ratel.src.python.badgerswapv3.deposit
python -m ratel.src.python.badgerswapv3.initPool
python -m ratel.src.python.badgerswapv3.addLiquidity
python -m ratel.src.python.badgerswapv3.trade

Contributing

Updating your main branch code to the latest main branch code:

git fetch upstream
git rebase upstream/main main

For another branch just replace main with the branch name.

Ideas, questions, etc

Use the issues to document problems, questions, ideas etc.

Since this is a hackathon, do not hesitate to use the issues to document any idea, or question.

Don't censor yourself!

Any idea is welcome!

We have very little time, and we can not afford to risk missing a good idea. So don't judge your ideas, leave this responsibility to time; time will tell.

View the issues as a place to document brainstorming ideas!

Code

To submit code, create a branch, push it to your fork, and make a pull request. Ask for help if you don't know how.

Troubleshooting

Expired TLS/SSL Certificates

See ./testkeys/README.md.

About

IC3 Blockchain Summer Camp 2021 Project, based on HoneyBadgerSwap

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published