Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add helper script to compile solana artifacts locally #16180

Merged
merged 3 commits into from
Feb 5, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions deployment/scripts/setup_solana_for_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/usr/bin/env bash

# Helper to setup Solana contracts for testing
# Note: this may stop working if the structure of the chainlink-ccip repository changes
set -e

CDIR="$(dirname "$0")"

DEPLOYMENT_DIR=$(realpath "$CDIR/..") # deployment/
TARGET_DIR="$DEPLOYMENT_DIR/ccip/changeset/internal/solana_contracts"
mkdir -p "$TARGET_DIR"

SOLANA_DIR=$(go list -m -f "{{.Dir}}" github.com/smartcontractkit/chainlink-ccip/chains/solana)
cd $SOLANA_DIR
TARGET_DIR=${TARGET_DIR} make docker-build-contracts

# copy to top level
cp -r $TARGET_DIR/deploy/* $TARGET_DIR

echo "Script completed successfully."
echo "Artifacts are in $TARGET_DIR"
Loading