DEV Community

esteblock
esteblock

Posted on

Setup your environment

Setup your environment.

In order to experiment with these contracts, you'll need to

1.- Clone the SoroswapFinance core repo:

git clone https://github.com/soroswap/core
Enter fullscreen mode Exit fullscreen mode

2.- Run the quickstart.sh script

cd core
bash quickstart.sh standalone
Enter fullscreen mode Exit fullscreen mode

This script will create the soroban-network Docker network, and will open two Docker containers:
(a) A Stellar Quickstart container that will be used to run a local standalone soroban blockchain.
(b) A Soroban-Preview docker container. Currently in PREVIEW-8

This last container is important for developers that might be developing different projects with different SDK versions. Currently, Soroswap.Finance is supporting PREVIEW-8, so the Docker image to be used will be:

stellar/quickstart:soroban-dev@sha256:a057ec6f06c6702c005693f8265ed1261e901b153a754e97cf18b0962257e872

and

esteblock/soroban-preview:8

3.- Enter to the soroban-preview-8 docker container in order to run scripts inside:

docker exec -it soroban-preview-8 bash
Enter fullscreen mode Exit fullscreen mode

Also, if you don't want to copy or write this line all the time, you can just run the run.sh script

bash run.sh
Enter fullscreen mode Exit fullscreen mode

As this is optional, this is important to be able to interact with the protocol using the correct soroban CLI version.

Once you are inside the soroban-preview-8 container, you are ready to experiment with the SoroswapPair or the SoroswapFactory contract!

Top comments (0)