mock fixes

This commit is contained in:
Tim Olson
2023-10-20 01:11:29 -04:00
parent 626267e2a0
commit a57f936b88
4 changed files with 7 additions and 6 deletions

Submodule backend updated: 558b94bfb2...2fd378a936

View File

@@ -26,7 +26,7 @@ cd contract || err cd contract
bin/build.sh || err build error
# launch anvil
anvil -f arbitrum_alchemy --chain-id 1338 --tracing &> ../tmp/anvil.txt &
anvil -f arbitrum_mock --chain-id 1338 --tracing &> ../tmp/anvil.txt &
ANVIL_PID=$!
# deploy mock environment

View File

@@ -44,12 +44,13 @@
5. starts dragonfly (redis clone) using Docker
6. log files for background processes go into `./tmp/*.txt`
7. the script traps ctrl-c to cleanly shut down anvil & dragonfly
3. run backend
3. wait until the mock script says "ONCHAIN EXECUTION COMPLETE & SUCCESSFUL"
4. run backend
1. `cd backend`
2. `PYTHONPATH=src python -u src/dexorder/bin/main.py`
4. run server (port 3001)
5. run server (port 3001)
1. `cd server`
2. `DEXORDER_PORT=3001 node main.js`
5. browse to http://localhost:3000
6. browse to http://localhost:3000
*NOTE*: you can leave the web process (Vue) running while resetting everything else from #2 onwards. Just refresh the web browser after a new mock deployment