Files
dexorder/doc/alpha-deploy.md
2024-08-05 02:24:39 -04:00

1.4 KiB

  1. cd deploy/k8s
  2. kubectl apply -f postgres.yaml -f redis.yaml -f anvil.yaml
  3. cd ../../contract to the contracts project folder
  4. RPC_URL=https://rpc.alpha.dexorder.trade ./bin/deploy alpha mirror This uses dev account #0 to deploy the init contracts to the alpha rpc url, and also the mockenv contract. The broadcast files and all compiler output files are labeled and organized with the tag alpha, and copied into the contract/deployment/ directory. The Dockerfiles will copy this tagged deployment directory into subproject containers to provide the contract ABI's and bytecode along with the init contract deployment addresses.
  5. cd .. back to top-level dexorder. The init contracts should be running on anvil now
  6. RPC_URL=https://rpc.alpha.dexorder.trade TAG=alpha ./bin/build_version_json
  7. check-in the new deployment files created under contract/deployment/alpha
  8. ./bin/mirrorprice-deploy
    • This builds the backend without metadata yet
  9. kubectl cp mirrorprice-<tab>:metadata.json metadata-alpha.json
    • This gets the metadata file from the mirror, so all the pools and tokens have their mirrored addresses. Subsequent builds using the "alpha" config will put this metadata file into ./web/public/metadata.json (see Dockerfiles)
  10. check-in the new metadata file
  11. ./bin/deploy backend alpha no trailing slash: backend is a tag not the directory name
  12. ./bin/deploy server alpha
  13. ./bin/deploy web alpha