1.4 KiB
1.4 KiB
cd deploy/k8skubectl apply -f postgres.yaml -f redis.yaml -f anvil.yamlcd ../../contractto the contracts project folderRPC_URL=https://rpc.alpha.dexorder.trade ./bin/deploy alpha mirrorThis 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 tagalpha, and copied into thecontract/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.cd ..back to top-level dexorder. The init contracts should be running on anvil nowRPC_URL=https://rpc.alpha.dexorder.trade TAG=alpha ./bin/build_version_json- check-in the new deployment files created under contract/deployment/alpha
./bin/mirrorprice-deploy- This builds the backend without metadata yet
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)
- check-in the new metadata file
./bin/deploy backend alphano trailing slash: backend is a tag not the directory name./bin/deploy server alpha./bin/deploy web alpha