- In one terminal
bash quickstart.sh standalone
- In another terminal
bash run.sh
Create 8 tokens in the standalone network, deploy factory and 4 pairs. List will be available in .soroban/tokens.json
bash scripts/deploy_tokens_n_pairs.sh standalone 8
List will be available in .soroban/tokens.json
Serve the list of tokens at http://localhost:8010/api/tokens and the address of the factory at http://localhost:8010/api/tokens
- In another terminal
bash serve_with_docker.sh
This will serve:
- List of tokens at http://localhost:8010/api/tokens
- Factory addresses http://localhost:8010/api/factory
- Admin keys http://localhost:8010/api/keys
1.- Run the Stellar Quicktart and the @esteblock/soroban-preview:9 Docker containers
Currently, Soroswap Protocol supports PREVIEW-9:
Here you can choose to use an standalone
or futurenet
instance
bash quickstart.sh standalone
With this, a stellar
container and a soroban-preview-9
will run, sharing the soroban-network
network in Docker
2.- Run a terminal of the soroban-preview
bash run.sh
Inside the soroban-preview container, compile both the core
and the factory
contract
make build
If you ran this command in the /workspace
path, this will compile both contracts
1.- Run tests of the Pair contract:
cd pair
make test
2.- Run tests of the Factory contract:
cd factory
make test
A full tutorial has been written showing in detail, step-by-step how to experiment with these contracts using the soroban CLI
Check it in: docs.soroswap.finance, on a 6 chapters dev.to tutorial: or directly on the soroswap/docs repo
If you want to go fast to the soroban CLI experiment, just run:
To test the Pair contract, inside the soroban-preview-9
container run:
bash initialize_pair.sh standalone
To test the Pair contract, inside the soroban-preview-9
container run:
bash initialize_factory.sh standalone