build_verifiable_program.sh 732 B

12345678910111213141516171819
  1. #/bin/bash
  2. set -euo pipefail
  3. # Root of the repository
  4. REPO_ROOT=$(git rev-parse --show-toplevel)
  5. echo "Building the image for the receiver program"
  6. docker build --platform linux/x86_64 -t solana-receiver-builder -f $REPO_ROOT/target_chains/solana/Dockerfile $REPO_ROOT
  7. echo "Building the receiver program"
  8. docker run --platform linux/x86_64 --rm -v $REPO_ROOT/target_chains/solana/artifacts:/artifacts solana-receiver-builder
  9. echo "Successfully built the receiver program."
  10. echo "The artifacts are available at $REPO_ROOT/target_chains/solana/artifacts"
  11. CHECKSUM=$(sha256sum $REPO_ROOT/target_chains/solana/artifacts/pyth_solana_receiver.so | awk '{print $1}')
  12. echo "sha256sum of the pyth_solana_receiver program: $CHECKSUM"