Files
smom-dbis-138/scripts/run-lint-test-build-deploy.sh
defiQUG 2b52cc6e32 refactor(archive): move historical contracts and adapters to archive directory
- Archived multiple non-EVM adapters (Algorand, Hedera, Tron, TON, Cosmos, Solana) and compliance contracts (IndyVerifier) to `archive/solidity/contracts/`.
- Updated documentation to reflect the historical status of archived components.
- Adjusted `foundry.toml` and `README.md` for clarity on historical dependencies and configurations.
- Enhanced Makefile and package.json scripts for improved contract testing and building processes.
- Removed obsolete contracts (AlltraCustomBridge, CommodityCCIPBridge, ISO4217WCCIPBridge, VaultBridgeAdapter) from the main directory.
- Updated implementation reports to indicate archived status for various components.
2026-04-12 18:21:05 -07:00

35 lines
1.2 KiB
Bash
Executable File

#!/usr/bin/env bash
# Run: lint, test, compile, then deploy (dry-run by default).
# Usage: ./scripts/run-lint-test-build-deploy.sh [--deploy-live]
set -e
PROJECT_ROOT="$(cd "$(dirname "$0")/.." && pwd)"
cd "$PROJECT_ROOT"
export FOUNDRY_PROFILE=default
FORGE_SCOPE="${FORGE_SCOPE:-full}"
echo "=== 1. Compile ==="
bash scripts/forge/scope.sh build "$FORGE_SCOPE"
echo "✅ Build OK"
echo ""
echo "=== 2. Lint ==="
forge lint 2>&1 | head -100 || true
echo "✅ Lint done"
echo ""
echo "=== 3. Test ==="
bash scripts/forge/scope.sh test "$FORGE_SCOPE" 2>&1 | tail -50
echo "✅ Tests done"
echo ""
echo "=== 4. Deploy ==="
if [[ "${1:-}" == "--deploy-live" ]]; then
echo "Live deploy: run your preferred deploy script, e.g.:"
echo " bash scripts/deployment/deploy-tokens-and-weth-all-chains-skip-canonical.sh"
echo " or: bash scripts/forge/scope.sh script script/deploy/DeployCWTokens.s.sol:DeployCWTokens --rpc-url \$RPC_URL --chain-id 138 --broadcast --private-key \$PRIVATE_KEY --legacy"
exit 0
fi
echo "Dry-run: DeployCWTokens (simulation only)"
bash scripts/forge/scope.sh script script/deploy/DeployCWTokens.s.sol:DeployCWTokens --rpc-url "https://eth.llamarpc.com" --chain-id 1 2>&1 | tail -30
echo "✅ Deploy dry-run done (no broadcast)"