Skip to content

Commit

Permalink
docs (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
GusevTimofey authored Nov 30, 2023
1 parent f1622a4 commit 1c388d0
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ Windows:
cd ergo-dex-backend
copy ./config-example.env ./config.env
```
The 2 values that need to be changed in the `config.env` file are the mnemonic ([howto](https://github.com/spectrum-finance/ergo-dex-backend/blob/master/modules/amm-executor/src/test/scala/org/ergoplatfrom/dex/executor/amm/HowTo.scala)) from which bot will create the wallet to receive fees on and pay miner fees from (in SPF fee cases)
The 3 values that need to be changed in the `config.env` file are the mnemonic ([howto](https://github.com/spectrum-finance/ergo-dex-backend/blob/master/modules/amm-executor/src/test/scala/org/ergoplatfrom/dex/executor/amm/HowTo.scala)) from which bot will create the wallet to receive fees on and pay miner fees from (in SPF fee cases)
and the URI to your node (localhost/127.0.0.1 might not be accessible from within a docker container, it is best to use the local lan ip if the node is running on the same host).
You have to setup URI twice.
### Running the services
Once the `config.env` file is created, make sure you have funds on expected address (you can check which address bot will use with `HowTo.scala` script). Next, the only thing left to do is to run the containers:

Expand Down
3 changes: 2 additions & 1 deletion config-example.env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
JAVA_TOOL_OPTIONS="-Dnetwork.node-uri=http://<my node ip>:9053 -Dexchange.mnemonic='<my ergo mnemonic>' "
JAVA_TOOL_OPTIONS="-Dnetwork.node-uri=http://<my node ip>:9053 -Dexchange.mnemonic='<my ergo mnemonic>' "
URL=http://<my node ip>:9053
12 changes: 12 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,18 @@ services:
- kafka
networks:
- spectrum-network
events-tracker:
image: spectrumlabs/ergo-bots-tracker:latest
volumes:
- "log-data:/usr/src/events-streaming/log"
env_file: config.env
depends_on:
- kafka1
- kafka2
- kafka3
- utxo-tracker
networks:
- spectrum-network

networks:
spectrum-network:
Expand Down
4 changes: 2 additions & 2 deletions modules/utxo-tracker/src/main/resources/application.conf
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ redis.uri = "redis://redis:6379"

mempool-tx-consumer.group-id = "ergo-mempool"
mempool-tx-consumer.client-id = "ergo-mempool-1"
mempool-tx-consumer.topic-id = "dex.amm.cfmm.mempool.events"
mempool-tx-consumer.topic-id = "mempool-tx-topic"

ledger-tx-consumer.group-id = "ergo-ledger"
ledger-tx-consumer.client-id = "ergo-ledger-1"
ledger-tx-consumer.topic-id = "dex.amm.cfmm.ledger.events"
ledger-tx-consumer.topic-id = "ledger-tx-topic"

0 comments on commit 1c388d0

Please sign in to comment.